/* Business ERP — department portal shell. Screens inside reuse admin.css (.berp-wrap). */

html, body.berp-portal { margin: 0; padding: 0; background: #f6f4f0; }
body.berp-portal {
	--p-ink: #14161a;
	--p-muted: #6b7280;
	--p-line: #e6e3dd;
	--p-accent: #0e5e55;
	/* The same palette as the ERP screens, for things drawn outside them (sign in). */
	--berp-ink: #14161a;
	--berp-ink-2: #3b4048;
	--berp-line: #e6e3dd;
	--berp-surface: #ffffff;
	--berp-accent: var(--p-accent);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--p-ink);
	font-size: 14px;
	line-height: 1.45;
	-webkit-font-smoothing: antialiased;
	min-height: 100vh;
}
.berp-portal *, .berp-portal *::before, .berp-portal *::after { box-sizing: border-box; }

/* Each department gets its own accent so staff always know which portal they're in. */
body.berp-portal.berp-dept-production { --p-accent: #6d4fb3; }
body.berp-portal.berp-dept-packaging { --p-accent: #b5651d; }
body.berp-portal.berp-dept-warehouse { --p-accent: #2f5aa8; }
body.berp-portal.berp-dept-sales { --p-accent: #0e5e55; }
.berp-portal .berp-wrap { --berp-accent: var(--p-accent); }

/* Links to other departments' screens are never shown. */
.berp-portal a[href^="#berp-unavailable"] { display: none !important; }

/* ---------- Left menu ---------- */
.bp-shell { display: flex; min-height: 100vh; background: linear-gradient(to right, var(--p-ink) 260px, transparent 260px); }
.bp-side { width: 260px; flex: none; background: var(--p-ink); color: #fff; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; padding: 20px 14px; border-top: 3px solid var(--p-accent); }
.bp-content { flex: 1; min-width: 0; }

.bp-brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; min-width: 0; padding: 0 8px 18px; }
.bp-brand strong { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-brand small { display: block; font-size: 12px; color: var(--p-muted); }
.bp-side .bp-brand small { color: rgba(255, 255, 255, .6); }
.bp-brand__mark { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; flex: none; }
.bp-brand__mark--text { display: grid; place-items: center; background: var(--p-accent); color: #fff; font-weight: 700; font-size: 16px; }

.bp-side__label { margin: 14px 10px 6px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .42); font-weight: 600; }

.bp-switch, .bp-nav { display: flex; flex-direction: column; gap: 2px; }
.bp-switch a, .bp-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: rgba(255, 255, 255, .72); text-decoration: none; font-weight: 500; font-size: 14px; }
.bp-switch a:hover, .bp-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.bp-switch a.is-active { background: rgba(255, 255, 255, .1); color: #fff; font-weight: 600; }
.bp-nav a { padding-left: 14px; position: relative; }
.bp-nav a > span:first-child { flex: 1; }
.bp-nav a.is-active { background: #fff; color: var(--p-ink); font-weight: 600; }
.bp-nav a.is-active::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--p-accent); }

.bp-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.bp-dot--purchasing { background: #d4a72c; }
.bp-dot--production { background: #9b7fe0; }
.bp-dot--primary { background: #c46fb5; }
.bp-dot--packaging { background: #e0904a; }
.bp-dot--warehouse { background: #6b93e0; }
.bp-dot--sales { background: #3fb39f; }
.bp-switch a > .bp-badge { margin-left: auto; }

.bp-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #d4462b; color: #fff; font-size: 11px; font-weight: 700; line-height: 1; }
.bp-extra { font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .75); }
.bp-nav a.is-active .bp-extra { background: #f1eee8; color: var(--p-muted); }

.bp-user { margin-top: auto; padding: 16px 8px 0; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; align-items: center; gap: 10px; font-size: 13px; }
.bp-user__avatar { width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .14); display: grid; place-items: center; font-weight: 700; flex: none; }
.bp-user__who { min-width: 0; }
.bp-user__who strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-user a { color: rgba(255, 255, 255, .6); text-decoration: none; }
.bp-user a:hover { color: #fff; }

.bp-mobilebar, .bp-scrim { display: none; }

/* ---------- Screens ---------- */
.berp-portal__main { max-width: 1280px; margin: 0 auto; padding: 0 32px 48px; }
.berp-portal .berp-wrap { margin: 0; max-width: none; }
.berp-portal .berp-eyebrow { color: var(--p-accent); }

/* Things wp-admin normally supplies */
.berp-portal button, .berp-portal input, .berp-portal select, .berp-portal textarea { font-family: inherit; font-size: 14px; color: inherit; }
.berp-portal .berp-wrap input[type=search], .berp-portal .berp-wrap input[type=text], .berp-portal .berp-wrap input[type=email], .berp-portal .berp-wrap input[type=number], .berp-portal .berp-wrap input[type=date], .berp-portal .berp-wrap input[type=password], .berp-portal .berp-wrap input:not([type]), .berp-portal .berp-wrap select, .berp-portal .berp-wrap textarea {
	background-color: #fff; border: 1px solid var(--p-line); border-radius: 8px; min-height: 38px; padding: 0 12px; margin: 0;
}
.berp-portal .berp-wrap select {
	-webkit-appearance: none; appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236b7280'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 12px center; padding-right: 30px;
}
.berp-portal .berp-wrap input[type=checkbox], .berp-portal .berp-wrap input[type=radio] { width: 16px; height: 16px; margin: 0 6px 0 0; vertical-align: -3px; accent-color: var(--p-accent); }
.berp-portal .berp-wrap h1, .berp-portal .berp-wrap h2, .berp-portal .berp-wrap h3 { font-family: inherit; }
.berp-portal .berp-wrap p { margin: 0 0 12px; }
.berp-portal .berp-wrap table { border-collapse: collapse; }
.berp-portal .berp-wrap details summary { cursor: pointer; }

/* ---------- Sign in ---------- */
.berp-portal--login { background: #f6f4f0; }
.bp-auth { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, 46%) 1fr; }
.bp-auth__story { position: relative; overflow: hidden; background: #14161a; color: #fff; padding: 44px 52px; display: flex; flex-direction: column; gap: 40px; }
.bp-auth__story::before { content: ""; position: absolute; inset: auto -20% -35% auto; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--p-accent) 55%, transparent), color-mix(in srgb, var(--p-accent) 0%, transparent) 65%); pointer-events: none; }
.bp-auth__story::after { content: ""; position: absolute; inset: -30% auto auto -25%; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(181, 101, 29, .28), rgba(181, 101, 29, 0) 65%); pointer-events: none; }
.bp-auth__story > * { position: relative; z-index: 1; }
.bp-brand--light small { color: rgba(255, 255, 255, .55); }
.bp-auth__pitch { margin-top: auto; max-width: 440px; }
.bp-auth__pitch h2 { font-size: 34px; line-height: 1.12; letter-spacing: -.02em; font-weight: 600; margin: 0 0 14px; }
.bp-auth__pitch p { margin: 0; color: rgba(255, 255, 255, .66); font-size: 15px; line-height: 1.55; }
.bp-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-width: 440px; }
.bp-flow li { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.bp-flow strong { display: block; font-size: 14px; font-weight: 600; }
.bp-flow small { display: block; font-size: 12.5px; color: rgba(255, 255, 255, .5); }
.bp-flow__n { width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); display: grid; place-items: center; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .8); }
.bp-auth__form { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 40px 24px; }
.bp-auth__mobilebrand { display: none !important; }
.bp-login { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; gap: 28px; }
.bp-login__card { width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--p-line); border-radius: 18px; padding: 36px 34px; box-shadow: 0 1px 2px rgba(20, 22, 26, .04), 0 20px 50px rgba(20, 22, 26, .08); }
.bp-login__card .bp-brand { margin-bottom: 28px; padding: 0; }
.bp-login__card h1 { font-size: 26px; font-weight: 600; letter-spacing: -.015em; margin: 0 0 6px; }
.bp-login__sub { color: var(--p-muted); margin: 0 0 24px; }
.bp-login__card form { display: grid; gap: 16px; }
.bp-login__card label { display: grid; gap: 6px; font-weight: 600; font-size: 13px; }
.bp-login__card input:not([type=checkbox]) { height: 46px; border: 1px solid var(--p-line); border-radius: 10px; padding: 0 14px; font-size: 15px; width: 100%; background: #fff; transition: border-color .15s, box-shadow .15s; }
.bp-login__card input:focus { outline: 0; border-color: var(--p-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--p-accent) 14%, transparent); }
.bp-login__remember { display: flex !important; align-items: center; gap: 8px !important; font-weight: 500 !important; color: var(--p-muted); }
.bp-login__remember input { accent-color: var(--p-accent); width: 16px; height: 16px; margin: 0; }
.bp-login__error { background: #fbe9e4; border: 1px solid #f1c6bb; color: #8a2f1e; border-radius: 10px; padding: 10px 14px; margin: 0 0 16px; font-weight: 500; }
.bp-login__note { background: #eef3fb; border: 1px solid #c8d6f1; color: #23457f; border-radius: 10px; padding: 10px 14px; margin: 0 0 16px; font-weight: 500; }
.bp-login__help { margin: 18px 0 0; text-align: center; font-size: 13px; }
.bp-login__help a { color: var(--p-muted); }
.bp-login__depts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.bp-login__depts li { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--p-muted); border: 1px solid var(--p-line); border-radius: 99px; padding: 5px 12px; background: #fff; }

/* ---------- Choose a department ---------- */
.berp-portal--choose { background: #f6f4f0; }
.bp-choose { min-height: 100vh; display: flex; flex-direction: column; }
.bp-choose__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 32px; border-bottom: 1px solid var(--p-line); background: #fff; }
.bp-choose__head .bp-brand { padding: 0; }
.bp-choose__user { font-size: 13px; color: var(--p-muted); }
.bp-choose__user a { color: var(--p-ink); text-decoration: none; font-weight: 500; }
.bp-choose__body { width: 100%; max-width: 1080px; margin: 0 auto; padding: 56px 32px; }
.bp-choose__body h1 { font-size: 32px; letter-spacing: -.02em; font-weight: 600; margin: 0 0 6px; }
.bp-choose__body .berp-eyebrow { margin: 0 0 8px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--p-muted); font-weight: 600; }
.bp-choose__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin-top: 28px; }
.bp-dept { --d: #0e5e55; position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px; min-height: 200px; background: #fff; border: 1px solid var(--p-line); border-radius: 16px; color: var(--p-ink); text-decoration: none; box-shadow: 0 1px 2px rgba(20, 22, 26, .04); transition: transform .15s ease, box-shadow .15s ease, border-color .15s; overflow: hidden; }
.bp-dept::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--d); }
.bp-dept:hover { transform: translateY(-2px); border-color: var(--d); box-shadow: 0 14px 34px rgba(20, 22, 26, .1); }
.bp-dept--production { --d: #6d4fb3; } .bp-dept--packaging { --d: #b5651d; } .bp-dept--warehouse { --d: #2f5aa8; } .bp-dept--sales { --d: #0e5e55; }
.bp-dept__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.bp-dept__icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--d); color: #fff; font-weight: 700; font-size: 17px; }
.bp-dept strong { font-size: 17px; letter-spacing: -.01em; }
.bp-dept small { color: var(--p-muted); font-size: 12.5px; line-height: 1.5; }
.bp-dept__todo { font-size: 12px; font-weight: 700; color: #fff; background: #d4462b; padding: 4px 10px; border-radius: 99px; }
.bp-dept__clear { font-size: 12px; font-weight: 600; color: #1f7a5a; background: #e2f3ec; padding: 4px 10px; border-radius: 99px; }
.bp-dept__go { margin-top: auto; padding-top: 14px; font-weight: 600; font-size: 13px; color: var(--d); }

/* ---------- Department home ---------- */
.bh { padding-top: 28px; }
.bh-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding: 30px 32px; margin-bottom: 26px; border-radius: 18px; background: #14161a; color: #fff; position: relative; overflow: hidden; }
.bh-hero::after { content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, var(--p-accent), transparent 68%); opacity: .55; pointer-events: none; }
.bh-hero > * { position: relative; z-index: 1; }
.berp-portal .bh-hero .berp-eyebrow { color: rgba(255, 255, 255, .6); }
.bh-hero__title { font-size: 30px; line-height: 1.15; letter-spacing: -.02em; font-weight: 600; margin: 0; color: #fff; }
.bh-hero__sub { margin: 8px 0 0 !important; color: rgba(255, 255, 255, .72); font-size: 15px; }
.bh-hero__sub strong { color: #fff; }
.bh-quick { display: flex; flex-wrap: wrap; gap: 8px; max-width: 560px; justify-content: flex-end; }
.berp-wrap .bh-quick a { color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); padding: 8px 13px; border-radius: 99px; font-size: 13px; font-weight: 500; transition: background .15s; }
.berp-wrap .bh-quick a:hover { background: rgba(255, 255, 255, .2); }

.bh-section { margin-bottom: 30px; }
.bh-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.bh-section__head h2 { font-size: 18px !important; margin: 0 !important; letter-spacing: -.01em; }
.bh-section__head .berp-btn { padding: 6px 12px; font-size: 13px; }

.bh-todos { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.berp-wrap a.bh-todo { --t: var(--berp-transfer); position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px 18px 16px; background: #fff; border: 1px solid var(--p-line); border-radius: 14px; color: var(--p-ink); box-shadow: var(--berp-shadow); transition: transform .15s, box-shadow .15s, border-color .15s; overflow: hidden; }
.berp-wrap a.bh-todo::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--t); }
.berp-wrap a.bh-todo:hover { transform: translateY(-2px); border-color: var(--t); box-shadow: 0 12px 28px rgba(20, 22, 26, .09); }
.bh-todo--warn { --t: #c98a12 !important; } .bh-todo--danger { --t: #d4462b !important; } .bh-todo--info { --t: var(--p-accent) !important; }
.bh-todo__n { font-size: 30px; font-weight: 650; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.bh-todo__n small { font-size: 13px; font-weight: 500; color: var(--p-muted); margin-left: 5px; letter-spacing: 0; }
.bh-todo__title { font-weight: 600; font-size: 14px; }
.bh-todo__meta { font-size: 12.5px; color: var(--p-muted); line-height: 1.45; }
.bh-todo__cta { margin-top: auto; padding-top: 12px; font-size: 13px; font-weight: 600; color: var(--t); }
.bh-allclear { display: flex; align-items: center; gap: 10px; padding: 18px 20px; background: #fff; border: 1px solid var(--p-line); border-radius: 14px; font-weight: 600; }
.bh-check { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #e2f3ec; color: #1f7a5a; font-size: 11px; font-weight: 800; flex: none; }
.bh-done { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.bh-done li { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--p-ink); font-weight: 500; }
.bh-done li span:last-child { color: var(--p-muted); font-weight: 400; }

.bh-stats { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.bh-stats--stack { grid-template-columns: 1fr; margin: 0; }
.bh-stat { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; background: #fff; border: 1px solid var(--p-line); border-radius: 14px; box-shadow: var(--berp-shadow); }
.bh-stat--hero { background: linear-gradient(135deg, var(--p-accent), color-mix(in srgb, var(--p-accent) 70%, #000)); color: #fff; border-color: transparent; }
.bh-stat__label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--p-muted); }
.bh-stat--hero .bh-stat__label, .bh-stat--hero .bh-stat__meta { color: rgba(255, 255, 255, .78); }
.bh-stat__value { font-size: 26px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bh-stat__value small { font-size: 13px; font-weight: 500; color: inherit; opacity: .7; }
.bh-stat__meta { font-size: 12.5px; color: var(--p-muted); }
.bh-delta { font-size: 11.5px; font-weight: 700; padding: 1px 6px; border-radius: 6px; }
.bh-delta--up, .bh-delta--down-good { color: #1f7a5a; background: #e2f3ec; }
.bh-delta--down, .bh-delta--up-bad { color: #b4442f; background: #fbe9e4; }
.bh-stat--hero .bh-delta { background: rgba(255, 255, 255, .18); color: #fff; }

.bh-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bh-grid--wide { grid-template-columns: 1.7fr 1fr; }
.bh-grid--narrow-first { grid-template-columns: minmax(220px, .6fr) 2fr; align-items: start; }
.bh-grid .berp-card { margin: 0; }
.bh-card-title { font-size: 14px; font-weight: 600; margin: 0 0 14px; }

.bh-bars { display: flex; align-items: flex-end; gap: 6px; height: 170px; }
.bh-bars__col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.bh-bars__bar { width: 100%; max-width: 28px; border-radius: 6px 6px 2px 2px; background: color-mix(in srgb, var(--p-accent) 35%, #fff); min-height: 0; }
.bh-bars__bar.is-today { background: var(--p-accent); }
.bh-bars__col:hover .bh-bars__bar { background: var(--p-accent); }
.bh-bars__label { font-size: 11px; color: var(--p-muted); font-variant-numeric: tabular-nums; }

.bh-rank { list-style: none; margin: 0; padding: 0; }
.bh-rank li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--p-line); }
.bh-rank li:first-child { border-top: 0; padding-top: 0; }
.bh-rank__n { width: 24px; height: 24px; border-radius: 7px; background: #f1eee8; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.bh-rank__name { flex: 1; min-width: 0; }
.bh-rank__name strong, .bh-rank__name small { display: block; }
.bh-rank__v { font-weight: 600; font-variant-numeric: tabular-nums; }

.bh-changes { list-style: none; margin: 0; padding: 0; }
.bh-changes li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--p-line); }
.bh-changes li:first-child { border-top: 0; padding-top: 0; }
.bh-changes strong, .bh-changes small { display: block; }
.bh-changes__v { white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.bh-changes__v s { color: var(--p-muted); font-weight: 400; margin-right: 4px; }

@media (max-width: 1100px) {
	.bh-grid, .bh-grid--wide, .bh-grid--narrow-first { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
	.bp-auth { grid-template-columns: 1fr; }
	.bp-auth__story { display: none; }
	.bp-auth__mobilebrand { display: flex !important; }
	.berp-portal--login { background: radial-gradient(1200px 600px at 50% -10%, #ffffff 0%, #f6f4f0 55%, #ece8e1 100%); }
	.bh { padding-top: 14px; }
	.bh-hero { padding: 22px 20px; }
	.bh-hero__title { font-size: 24px; }
	.bh-quick { justify-content: flex-start; }
	.bh-stats { grid-template-columns: 1fr; }
	.bp-choose__body { padding: 32px 16px; }
	.bp-choose__head { padding: 14px 16px; }
}

.berp-btn--block { width: 100%; justify-content: center; height: 44px; font-size: 14px; }
.berp-portal .berp-btn { font-family: inherit; }
.berp-portal .berp-btn--primary:hover { background: var(--p-accent); }

/* ---------- Small screens (phones on the warehouse floor): menu slides in from the left ---------- */
@media (max-width: 900px) {
	.bp-shell { background: none; }
	.bp-side { position: fixed; left: 0; top: 0; bottom: 0; z-index: 60; transform: translateX(-100%); transition: transform .2s ease; box-shadow: 0 0 40px rgba(0, 0, 0, .3); }
	body.bp-open .bp-side { transform: none; }
	body.bp-open .bp-scrim { display: block; position: fixed; inset: 0; background: rgba(20, 22, 26, .45); z-index: 55; }
	.bp-mobilebar { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 40; background: var(--p-ink); color: #fff; padding: 10px 14px; border-top: 3px solid var(--p-accent); }
	.bp-menu-btn { background: rgba(255, 255, 255, .12); color: #fff; border: 0; border-radius: 8px; padding: 8px 12px; font-weight: 600; cursor: pointer; }
	.berp-portal__main { padding: 0 14px 40px; }
	.berp-portal .berp-title { font-size: 22px; }
}

@media print {
	.bp-side, .bp-mobilebar { display: none !important; }
	body.berp-portal { background: #fff; }
}


/* =====================================================================
 * Front page (landing)
 * =================================================================== */
body.berp-landing { background: #f6f4f0; font-size: 15px; }
.berp-landing a { color: inherit; }
.bl-nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px clamp(20px, 5vw, 64px); background: rgba(246, 244, 240, .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid rgba(20, 22, 26, .06); }
.bl-nav__brand { text-decoration: none; }
.bl-nav__brand .bp-brand { padding: 0; }
.bl-nav__links { display: flex; align-items: center; gap: 28px; }
.bl-nav__links > a:not(.bl-btn) { text-decoration: none; color: var(--p-muted); font-weight: 500; font-size: 14px; }
.bl-nav__links > a:not(.bl-btn):hover { color: var(--p-ink); }

.bl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; text-decoration: none !important; border: 1px solid transparent; transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.bl-btn:hover { transform: translateY(-1px); }
.bl-btn--lg { padding: 14px 24px; font-size: 15px; }
.bl-btn--dark { background: var(--p-ink); color: #fff !important; }
.bl-btn--accent { background: var(--p-accent); color: #fff !important; box-shadow: 0 8px 24px color-mix(in srgb, var(--p-accent) 25%, transparent); }
.bl-btn--accent:hover { box-shadow: 0 12px 30px color-mix(in srgb, var(--p-accent) 32%, transparent); }
.bl-btn--ghost { background: #fff; color: var(--p-ink) !important; border-color: var(--p-line); }

.bl-eyebrow { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--p-accent); margin-bottom: 14px; }

.bl-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 5vw, 72px); padding: clamp(48px, 8vw, 104px) clamp(20px, 5vw, 64px) clamp(56px, 8vw, 110px); max-width: 1320px; margin: 0 auto; }
.bl-hero h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.04; letter-spacing: -.03em; font-weight: 650; margin: 0 0 20px; max-width: 14ch; }
.bl-hero__text > p { font-size: 17px; line-height: 1.6; color: #4b5059; margin: 0 0 30px; max-width: 52ch; }
.bl-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.bl-hero .bl-hero__note { font-size: 13px; color: var(--p-muted); margin: 18px 0 0; }

/* Hero illustration: an abstract portal screen */
.bl-hero__art { position: relative; padding: 28px 10px 40px; }
.bl-hero__art::before { content: ""; position: absolute; inset: -6% -4% 0 6%; border-radius: 40px; background: radial-gradient(circle at 70% 30%, color-mix(in srgb, var(--p-accent) 18%, transparent), transparent 60%), radial-gradient(circle at 20% 80%, rgba(181, 101, 29, .14), transparent 55%); z-index: 0; }
.bl-mock { position: relative; z-index: 1; display: flex; background: #fff; border: 1px solid var(--p-line); border-radius: 20px; overflow: hidden; box-shadow: 0 2px 4px rgba(20, 22, 26, .04), 0 30px 70px rgba(20, 22, 26, .14); min-height: 330px; }
.bl-mock__side { width: 64px; flex: none; background: var(--p-ink); padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; border-top: 3px solid var(--p-accent); }
.bl-mock__logo { width: 34px; height: 34px; border-radius: 9px; background: var(--p-accent); margin-bottom: 10px; }
.bl-mock__side i { display: block; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .16); }
.bl-mock__side i.is-on { background: #fff; }
.bl-mock__main { flex: 1; padding: 22px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bl-mock__title { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--p-muted); }
.bl-mock__todos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 6px; }
.bl-todo { --t: #2f5aa8; position: relative; padding: 14px 12px 12px; border: 1px solid var(--p-line); border-radius: 12px; overflow: hidden; }
.bl-todo::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--t); }
.bl-todo b { display: block; font-size: 22px; letter-spacing: -.02em; color: var(--t); }
.bl-todo span { display: block; font-size: 11.5px; color: var(--p-muted); line-height: 1.3; }
.bl-todo--danger { --t: #b4442f; }
.bl-todo--warn { --t: #9a6a12; }
.bl-mock__bars { flex: 1; min-height: 110px; display: flex; align-items: flex-end; gap: 6px; padding-top: 8px; border-bottom: 1px solid var(--p-line); }
.bl-mock__bars span { flex: 1; border-radius: 5px 5px 0 0; background: linear-gradient(to top, color-mix(in srgb, var(--p-accent) 85%, transparent), color-mix(in srgb, var(--p-accent) 45%, transparent)); }
.bl-mock__bars span:last-child { background: var(--p-accent); }
.bl-float { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #fff; border: 1px solid var(--p-line); border-radius: 14px; box-shadow: 0 16px 40px rgba(20, 22, 26, .14); }
.bl-float strong { display: block; font-size: 13px; }
.bl-float small { display: block; font-size: 12px; color: var(--p-muted); white-space: nowrap; }
.bl-float--a { left: -8px; bottom: 6px; }
.bl-float--b { right: -6px; top: 0; }
.bl-float__ring svg { width: 34px; height: 34px; transform: rotate(-90deg); display: block; }
.bl-float__ring circle { fill: none; stroke: #e9ede9; stroke-width: 4; }
.bl-float__ring circle.is-val { stroke: #1f7a5a; stroke-dasharray: 94.2; stroke-dashoffset: 7.5; stroke-linecap: round; }

/* Sections */
.bl-section { max-width: 1320px; margin: 0 auto; padding: clamp(48px, 7vw, 96px) clamp(20px, 5vw, 64px); }
.bl-section__head { max-width: 640px; margin-bottom: 40px; }
.bl-section__head h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -.025em; font-weight: 650; margin: 0 0 14px; }
.bl-section__head p { margin: 0; font-size: 16px; line-height: 1.6; color: #4b5059; }
.bl-depts { --cols: 4; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 18px; }
.bl-dept { --d: #0e5e55; position: relative; padding: 28px 24px; background: #fff; border: 1px solid var(--p-line); border-radius: 18px; box-shadow: var(--berp-shadow, 0 4px 16px rgba(20, 22, 26, .04)); overflow: hidden; }
.bl-dept::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: var(--d); opacity: .08; }
.bl-dept__dot { display: block; width: 40px; height: 40px; border-radius: 12px; background: var(--d); margin-bottom: 20px; box-shadow: inset 0 0 0 10px rgba(255, 255, 255, .28); }
.bl-dept h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -.01em; }
.bl-dept p { margin: 0; color: var(--p-muted); font-size: 14px; line-height: 1.6; }
.bl-dept--production { --d: #6d4fb3; }
.bl-dept--packaging { --d: #b5651d; }
.bl-dept--warehouse { --d: #2f5aa8; }
.bl-dept--sales { --d: #0e5e55; }

.bl-flow { position: relative; overflow: hidden; background: var(--p-ink); color: #fff; padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 64px); }
.bl-flow::before { content: ""; position: absolute; right: -10%; bottom: -60%; width: 760px; height: 760px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--p-accent) 50%, transparent), transparent 65%); }
.bl-flow > * { position: relative; max-width: 1192px; margin-left: auto; margin-right: auto; }
.bl-section__head--light p { color: rgba(255, 255, 255, .66); }
.bl-section__head--light .bl-eyebrow { color: #6fd1bf; }
.bl-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.bl-steps li { padding: 26px 22px 6px 0; display: flex; flex-direction: column; gap: 6px; }
.bl-steps li + li { padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, .1); }
.bl-steps__n { font-size: 13px; font-weight: 600; color: #6fd1bf; margin-bottom: 8px; }
.bl-steps strong { font-size: 19px; letter-spacing: -.01em; }
.bl-steps small { font-size: 13.5px; color: rgba(255, 255, 255, .58); line-height: 1.5; }

.bl-cta { max-width: 1192px; margin: clamp(48px, 7vw, 88px) auto; padding: clamp(36px, 5vw, 56px); border-radius: 28px; background: #fff; border: 1px solid var(--p-line); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; box-shadow: 0 20px 60px rgba(20, 22, 26, .06); }
.bl-cta h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.02em; }

.bl-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px; padding: 28px clamp(20px, 5vw, 64px) 40px; border-top: 1px solid var(--p-line); color: var(--p-muted); font-size: 13px; }
.bl-foot .bp-brand { padding: 0; color: var(--p-ink); }
.bl-foot .bp-brand__mark { width: 28px; height: 28px; font-size: 13px; border-radius: 7px; }
.bl-foot__meta { flex: 1; }
.bl-foot__links a { color: var(--p-muted); }

@media (max-width: 1080px) {
	.bl-depts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bl-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bl-steps li, .bl-steps li + li { padding: 22px 16px 18px 0; border-left: 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
}
@media (max-width: 860px) {
	.bl-hero { grid-template-columns: 1fr; }
	.bl-hero h1 { max-width: none; }
	.bl-nav__links > a:not(.bl-btn) { display: none; }
}
@media (max-width: 560px) {
	.bl-depts, .bl-steps { grid-template-columns: 1fr; }
	.bl-mock__todos { grid-template-columns: 1fr 1fr; }
	.bl-mock__todos .bl-todo:last-child { display: none; }
	.bl-float--b { right: 0; top: -6px; }
	.bl-float--a { left: 0; }
	.bl-hero__cta .bl-btn { width: 100%; }
	.bl-cta { margin-left: 16px; margin-right: 16px; }
}

/* ---------- Paused account (CEE network) ---------- */
body.berp-paused { min-height: 100vh; display: grid; place-items: center; margin: 0; padding: 32px 20px; background: radial-gradient(1000px 500px at 50% -10%, color-mix(in srgb, var(--p-accent) 10%, transparent), transparent 70%), #f5f4f0; }
.bp-paused { width: 100%; max-width: 480px; background: #fff; border: 1px solid #e7e4dc; border-radius: 22px; padding: 40px 40px 36px; box-shadow: 0 30px 60px -30px rgba(20,20,20,.25); text-align: left; }
.bp-paused .bl-brand, .bp-paused > a:first-child { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px; text-decoration: none; color: inherit; font-weight: 600; }
.bp-paused__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: color-mix(in srgb, var(--p-accent) 12%, transparent); color: var(--p-accent); margin-bottom: 18px; }
.bp-paused h1 { font-size: 28px; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 12px; }
.bp-paused p { color: #55524b; line-height: 1.6; margin: 0 0 12px; }
.bp-paused__help { font-size: 14px; padding: 14px 16px; background: #f7f6f2; border-radius: 12px; margin-top: 18px !important; }
.bp-paused__help strong { color: #1a1a1a; }
.bp-paused .bl-btn { margin-top: 18px; }

/* Powered by CEE */
.cee-powered { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: inherit; opacity: .7; text-decoration: none; }
.cee-powered:hover { opacity: 1; }
.cee-powered .cee-logo { height: 22px; width: auto; }
.bp-side .cee-powered { color: rgba(255, 255, 255, .75); margin: 16px 10px 0; }
.bl-foot .cee-powered { flex-basis: 100%; justify-content: center; margin-top: 6px; }
.bp-paused .cee-powered { margin-top: 36px; }

/* Landing: records you can trust */
.bl-dept--purchasing { --d: #8a5a2b; }
.bl-dept--primary { --d: #b0397a; }
.bl-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--p-line); }
.bl-feature { padding: 28px 28px 28px 0; border-bottom: 1px solid var(--p-line); }
.bl-feature:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--p-line); }
.bl-feature__n { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--p-accent); margin-bottom: 14px; }
.bl-feature h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -.01em; }
.bl-feature p { margin: 0; color: var(--p-muted); font-size: 14px; line-height: 1.6; }
@media (max-width: 1000px) {
	.bl-features { grid-template-columns: 1fr 1fr; }
	.bl-feature, .bl-feature:not(:nth-child(3n+1)) { padding: 24px; border-left: 0; }
	.bl-feature:nth-child(2n) { border-left: 1px solid var(--p-line); }
}
@media (max-width: 640px) {
	.bl-features { grid-template-columns: 1fr; }
	.bl-feature, .bl-feature:nth-child(2n) { padding: 22px 0; border-left: 0; }
}
