:root { --ink:#15213a; --muted:#68738a; --line:#e6e9f0; --blue:#075bea; --violet:#6022d9; --surface:#f6f7fb; --sidebar:#10182b; }
html { font-size:16px; min-height:100%; }
body { margin:0; min-height:100%; background:var(--surface); color:var(--ink); font-family:Inter,Segoe UI,Arial,sans-serif; }
a { color:var(--blue); text-decoration:none; }
.topbar { height:72px; display:flex; align-items:center; padding:0 28px; background:#fff; border-bottom:1px solid var(--line); position:fixed; inset:0 0 auto 0; z-index:1040; }
.brand img { width:185px; height:auto; display:block; }
.sidebar-toggle { font-size:1.35rem; margin-right:12px; }
.app-shell { min-height:100vh; padding-top:72px; }
.sidebar { width:292px; background:var(--sidebar); color:#fff; position:fixed; inset:72px auto 0 0; padding:0; overflow:hidden; border-right:1px solid rgba(255,255,255,.04); box-shadow:8px 0 32px rgba(12,20,38,.08); }
.sidebar,.sidebar.offcanvas-lg,.sidebar .offcanvas-body { background:linear-gradient(180deg,#111b31 0%,#0d1629 100%) !important; }
.sidebar .offcanvas-body { height:100%; overflow-y:auto; overflow-x:hidden; padding:22px 14px 18px !important; scrollbar-width:thin; scrollbar-color:#435170 transparent; }
.nav-label { display:block; color:#7886a6; font-size:.7rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; padding:0 13px; margin:0 0 8px; }
.nav-label:not(:first-child) { margin-top:28px; }
.portal-nav { display:grid; gap:5px; }
.portal-nav a { color:#d8def0; border-radius:9px; padding:11px 13px; display:flex; gap:11px; align-items:center; font-weight:600; }
.portal-nav a:hover { background:#1c2843; color:#fff; }
.portal-nav a span { width:20px; text-align:center; color:#8fa9ff; }
.portal-nav a small { margin-left:auto; background:#263456; padding:2px 7px; border-radius:10px; font-size:.66rem; }
.portal-nav .disabled { cursor:default; opacity:.58; }
.main-content { margin-left:292px; padding:38px; min-height:calc(100vh - 72px); }
.page-heading h1 { font-size:2.15rem; font-weight:750; letter-spacing:-.03em; margin:.25rem 0; }
.page-heading p { color:var(--muted); margin:0; font-size:1rem; }
.eyebrow { color:var(--violet); font-size:.78rem; font-weight:800; text-transform:uppercase; letter-spacing:.11em; }
.metric-card,.content-card { background:#fff; border:1px solid var(--line); border-radius:15px; box-shadow:0 8px 26px rgba(24,34,55,.045); }
.metric-card { padding:22px; display:flex; flex-direction:column; min-height:145px; }
.metric-card span { color:var(--muted); font-weight:650; }
.metric-card strong { font-size:2rem; margin:10px 0 4px; }
.metric-card small { color:#8a93a5; margin-top:auto; }
.content-card { padding:26px; }
.btn-primary { background:linear-gradient(135deg,var(--blue),var(--violet)); border:0; box-shadow:0 6px 18px rgba(35,82,224,.22); }
.form-control,.form-select { border-color:#dce1ea; padding:.68rem .8rem; }
.form-control:focus,.form-select:focus { border-color:#7c73e8; box-shadow:0 0 0 .2rem rgba(96,34,217,.10); }
.table-card { overflow:hidden; }.table-card table { margin:0; }
.table-card th { background:#f9fafc; color:#68738a; font-size:.75rem; text-transform:uppercase; letter-spacing:.05em; }
.status-active,.status-inactive { padding:4px 9px; border-radius:20px; font-size:.78rem; font-weight:700; }
.status-active { color:#137a54; background:#e8f7f0; }.status-inactive { color:#9d3145; background:#fcecef; }
footer { color:#9299a8; font-size:.78rem; margin-top:45px; padding-top:20px; border-top:1px solid var(--line); }
@media (max-width:991.98px) { .sidebar { position:fixed; inset:0 auto 0 0; width:min(320px,88vw); height:100vh; } .sidebar .offcanvas-body { height:calc(100% - 68px); }.main-content { margin-left:0; padding:25px 18px; } }

/* Authentication */
.auth-body { overflow-x:hidden; background:#fff; }
.auth-shell { min-height:100vh; display:grid; grid-template-columns:minmax(440px,1.08fr) minmax(430px,.92fr); }
.auth-story { position:relative; overflow:hidden; display:flex; align-items:center; padding:8vw; color:#fff; background:linear-gradient(145deg,#07142e 0%,#112c67 48%,#4023aa 100%); }
.auth-story::before { content:""; position:absolute; inset:0; opacity:.14; background-image:linear-gradient(rgba(255,255,255,.12) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.12) 1px,transparent 1px); background-size:42px 42px; mask-image:linear-gradient(to bottom right,#000,transparent); }
.auth-story-inner { position:relative; z-index:2; max-width:660px; }
.auth-story-logo { width:210px; filter:brightness(0) invert(1); margin-bottom:70px; }
.auth-kicker { display:inline-flex; border:1px solid rgba(255,255,255,.25); background:rgba(255,255,255,.08); backdrop-filter:blur(8px); padding:7px 13px; border-radius:30px; font-size:.7rem; font-weight:800; letter-spacing:.14em; text-transform:uppercase; }
.auth-story h1 { font-size:clamp(2.6rem,4.7vw,5.2rem); line-height:1.02; letter-spacing:-.055em; max-width:740px; margin:24px 0; }
.auth-story-inner>p { max-width:580px; color:#cbd6f6; font-size:1.1rem; line-height:1.7; }
.auth-feature-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:52px; }
.auth-feature-grid>div { border:1px solid rgba(255,255,255,.14); border-radius:14px; padding:17px; background:rgba(255,255,255,.06); backdrop-filter:blur(8px); display:grid; }
.auth-feature-grid span { color:#88b5ff; font-size:.72rem; font-weight:800; }.auth-feature-grid strong { margin:8px 0 3px; }.auth-feature-grid small { color:#acbadd; line-height:1.4; }
.auth-orb { position:absolute; border-radius:50%; }.auth-orb-one { width:360px; height:360px; right:-180px; top:-140px; background:rgba(92,66,255,.38); }.auth-orb-two { width:220px; height:220px; left:-90px; bottom:-100px; background:rgba(0,138,255,.28); }
.auth-panel { display:flex; flex-direction:column; align-items:center; justify-content:center; padding:54px; position:relative; }
.auth-card { width:min(100%,475px); }.auth-card h2 { font-size:2.25rem; letter-spacing:-.04em; margin:9px 0; }.auth-subtitle { color:var(--muted); margin-bottom:35px; }.auth-mobile-brand { display:none; }
.form-field { margin-bottom:21px; }.form-field label { font-weight:700; font-size:.86rem; margin-bottom:8px; }.input-with-icon { position:relative; }.input-with-icon>span { position:absolute; z-index:2; top:50%; left:15px; transform:translateY(-50%); color:#8a95aa; font-size:.82rem; }.input-with-icon .form-control { height:52px; padding-left:43px; border-radius:10px; background:#fbfcfe; }.input-with-icon .form-control[type=password] { padding-right:65px; }
.password-toggle { position:absolute; right:10px; top:50%; transform:translateY(-50%); border:0; background:transparent; color:var(--blue); font-weight:700; font-size:.78rem; }.remember-check { display:flex; gap:8px; align-items:center; color:#5f687a; font-size:.86rem; }.remember-check input { width:16px; height:16px; accent-color:var(--blue); }
.auth-submit { height:52px; width:100%; display:flex; align-items:center; justify-content:space-between; padding:0 21px; border-radius:10px; font-weight:750; }.auth-security { display:flex; align-items:flex-start; gap:12px; border-top:1px solid var(--line); margin-top:30px; padding-top:23px; color:#788195; }.auth-security>span { display:grid; place-items:center; width:29px; height:29px; flex:0 0 auto; border-radius:50%; background:#eaf8f2; color:#11865a; font-weight:900; }.auth-security p { margin:0; font-size:.8rem; line-height:1.5; }.auth-footer { position:absolute; bottom:22px; color:#9aa2b1; font-size:.75rem; }
.field-validation { display:block; color:#b4233b; font-size:.78rem; margin-top:6px; }.validation-summary { color:#a6273f; background:#fff0f2; border:1px solid #ffd5db; border-radius:10px; padding:12px 14px; margin-bottom:18px; font-size:.85rem; }.validation-summary:empty { display:none; }.validation-summary ul { margin:0; padding-left:18px; }

/* Notifications */
.notification-stack { position:fixed; top:88px; right:22px; width:min(390px,calc(100vw - 32px)); z-index:2000; display:grid; gap:10px; }.app-toast { display:grid; grid-template-columns:38px 1fr 24px; gap:12px; align-items:start; background:#fff; border:1px solid var(--line); border-left-width:4px; border-radius:12px; padding:14px; box-shadow:0 18px 50px rgba(14,25,48,.16); animation:toast-in .28s ease-out; transition:.22s ease; }.app-toast p { margin:2px 0 0; color:#667085; font-size:.84rem; }.app-toast>button { border:0; background:transparent; color:#9aa3b5; font-size:1.1rem; }.toast-symbol { width:34px; height:34px; border-radius:50%; display:grid; place-items:center; font-weight:900; }.app-toast-success { border-left-color:#12a36d; }.app-toast-success .toast-symbol { background:#e8f8f1; color:#11865a; }.app-toast-error { border-left-color:#d13d55; }.app-toast-error .toast-symbol { background:#fff0f2; color:#b4233b; }.app-toast-warning { border-left-color:#e7a326; }.app-toast-warning .toast-symbol { background:#fff7e7; color:#a66c05; }.app-toast-info { border-left-color:#3478ef; }.app-toast-info .toast-symbol { background:#edf4ff; color:#2362cb; }.app-toast.is-hiding { opacity:0; transform:translateX(28px); } @keyframes toast-in { from { opacity:0; transform:translateX(28px); } }

/* Dashboard */
.topbar-action { width:40px; height:40px; border:1px solid var(--line); border-radius:10px; background:#fff; position:relative; color:#526079; }.topbar-action i { width:7px; height:7px; background:#e2435d; border:2px solid #fff; border-radius:50%; position:absolute; right:8px; top:7px; }.navbar-nav { align-items:center; flex-direction:row; }.user-chip { display:flex; align-items:center; margin-left:5px; }.user-avatar { width:34px; height:34px; border-radius:9px; display:grid; place-items:center; color:#fff; background:linear-gradient(135deg,var(--blue),var(--violet)); font-weight:800; }
.dashboard-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:25px; margin-bottom:26px; }.dashboard-heading h1 { font-size:2.35rem; margin:6px 0 8px; letter-spacing:-.04em; font-weight:760; }.dashboard-heading p { margin:0; color:#606b80; font-size:1.02rem; }.heading-actions { display:flex; align-items:center; gap:12px; }.today-pill { display:grid; padding:9px 16px; border:1px solid var(--line); border-radius:10px; background:#fff; }.today-pill small { color:#7b8495; font-size:.74rem; }.today-pill strong { font-size:.88rem; }
.stat-card { height:100%; min-height:152px; background:#fff; border:1px solid var(--line); border-radius:15px; padding:23px; display:flex; align-items:flex-start; gap:16px; box-shadow:0 8px 26px rgba(24,34,55,.04); }.stat-icon { width:46px; height:46px; flex:0 0 auto; display:grid; place-items:center; border-radius:12px; font-size:1.2rem; }.stat-card>div:last-child { display:flex; flex-direction:column; }.stat-card span { color:#59657a; font-size:.88rem; font-weight:750; }.stat-card strong { font-size:2.15rem; margin:5px 0; letter-spacing:-.04em; }.stat-card small { color:#7f899b; font-size:.84rem; line-height:1.45; }.stat-blue .stat-icon { background:#eaf2ff;color:#1767e8; }.stat-violet .stat-icon { background:#f1ecff;color:#6b36dc; }.stat-amber .stat-icon { background:#fff4dc;color:#b87400; }.stat-green .stat-icon { background:#e7f8f0;color:#11855a; }
.dashboard-panel { margin-top:24px; padding:0; overflow:hidden; }.panel-heading { display:flex; justify-content:space-between; align-items:center; gap:15px; padding:23px 25px; border-bottom:1px solid var(--line); }.panel-heading h2 { margin:4px 0 0; font-size:1.08rem; }.dashboard-table table { margin:0; }.dashboard-table th { background:#fafbfc; color:#7c8597; font-size:.7rem; letter-spacing:.07em; text-transform:uppercase; padding:12px 25px; }.dashboard-table td { padding:15px 25px; }.person-cell { display:flex; align-items:center; gap:11px; }.person-cell>span { width:36px; height:36px; border-radius:10px; display:grid; place-items:center; background:#edf2ff; color:#345dc1; font-weight:800; text-transform:uppercase; }.person-cell>div { display:grid; }.person-cell small { color:#8a93a4; }
.readiness-score { font-size:1.2rem; font-weight:850; color:var(--violet); }.readiness-progress { height:7px; margin:20px 25px 10px; }.readiness-progress .progress-bar { background:linear-gradient(90deg,var(--blue),var(--violet)); }.readiness-list { padding:5px 25px 25px; display:grid; }.readiness-list>div { display:flex; gap:12px; align-items:center; padding:12px 0; border-bottom:1px solid #f0f2f6; }.readiness-list>div>span { width:30px; height:30px; border-radius:9px; display:grid; place-items:center; background:#f0f2f6; color:#7d8798; font-size:.78rem; font-weight:800; }.readiness-list .done>span { background:#e7f8f0; color:#11855a; }.readiness-list>div>div { display:grid; }.readiness-list small { color:#8d95a5; }
.callout-card { display:flex; align-items:center; gap:18px; background:linear-gradient(120deg,#fff,#f4f1ff); }.callout-card h2 { font-size:1.1rem; margin:4px 0; }.callout-card p { margin:0; color:#747e91; }.callout-card .btn { margin-left:auto; }.callout-icon { width:48px; height:48px; border-radius:14px; flex:0 0 auto; display:grid; place-items:center; background:#e9e5ff; color:#6040ca; font-size:1.3rem; }.empty-state { text-align:center; max-width:600px; margin:70px auto; }.empty-state-icon { width:60px;height:60px;border-radius:50%;display:grid;place-items:center;margin:0 auto 18px;background:#fff4dc;color:#b87400;font-size:1.5rem;font-weight:900; }
@media (max-width:991.98px) { .auth-shell { grid-template-columns:1fr; }.auth-story { display:none; }.auth-panel { min-height:100vh; padding:42px 24px 80px; }.auth-mobile-brand { display:block; margin-bottom:45px; }.auth-mobile-brand img { width:190px; }.dashboard-heading { align-items:flex-start; flex-direction:column; }.heading-actions { width:100%; justify-content:space-between; } }
@media (max-width:575.98px) { .auth-panel { padding-inline:20px; }.auth-card h2 { font-size:1.9rem; }.notification-stack { top:14px; right:16px; }.topbar { padding-inline:15px; }.brand img { width:145px; }.user-chip .nav-link { display:none; }.main-content { padding:24px 15px; }.callout-card { align-items:flex-start; flex-wrap:wrap; }.callout-card .btn { margin-left:66px; } }

/* Account menu */
.account-trigger { display:flex; align-items:center; gap:10px; min-width:250px; border:0; border-left:1px solid var(--line); background:#fff; padding:8px 5px 8px 18px; text-align:left; }
.account-trigger:hover { background:#fafbfe; }.account-copy { display:grid; min-width:0; flex:1; }.account-copy strong { font-size:.83rem; color:var(--ink); }.account-copy small { max-width:160px; overflow:hidden; text-overflow:ellipsis; color:#818a9b; font-size:.7rem; }.account-chevron { color:#8a94a7; margin:0 8px; }
.account-dropdown { width:285px; margin-top:9px !important; padding:10px; border:1px solid var(--line); border-radius:12px; box-shadow:0 18px 50px rgba(18,30,55,.15); }.account-dropdown-head { display:flex; align-items:center; gap:11px; padding:8px; }.account-dropdown-head>div { display:grid; min-width:0; }.account-dropdown-head small { color:#7f899b; overflow:hidden; text-overflow:ellipsis; }.user-avatar.large { width:42px; height:42px; border-radius:12px; }.account-dropdown .dropdown-item { display:flex; align-items:center; gap:10px; border-radius:8px; padding:9px 10px; font-size:.82rem; }.account-dropdown .dropdown-item span { width:19px; color:#65718a; }.logout-item { color:#b52942; }.logout-item:hover { color:#a51f38; background:#fff1f3; }

/* Staff access */
.password-field { position:relative; }.password-field .form-control { padding-right:50px; }.password-eye { position:absolute; top:50%; right:8px; transform:translateY(-50%); width:36px; height:36px; display:grid; place-items:center; border:0; border-radius:8px; background:transparent; color:#65718a; font-size:1rem; }.password-eye:hover { background:#eef3fb; color:var(--blue); }.password-eye.is-visible { color:var(--violet); background:#f1ecff; }
.staff-summary { display:flex; align-items:center; gap:13px; background:#fff; border:1px solid var(--line); border-radius:13px; padding:17px 19px; }.staff-summary>div { display:grid; }.staff-summary strong { font-size:1.35rem; line-height:1.1; }.staff-summary small { color:#7e8798; }.presence-dot { width:13px; height:13px; border-radius:50%; box-shadow:0 0 0 5px rgba(20,171,111,.12); }.presence-dot.online { background:#14ab6f; }.summary-icon { width:30px; height:30px; border-radius:9px; display:grid; place-items:center; font-weight:900; }.summary-icon.active { color:#147e57; background:#e7f8f0; }.summary-icon.disabled { color:#9c3850; background:#fff0f2; }
.staff-table th { white-space:nowrap; }.staff-table td { min-width:115px; }.staff-table td:first-child { min-width:245px; }.staff-table td:last-child { min-width:175px; }.role-label { color:#6f5cb5 !important; font-size:.7rem !important; }.you-label { display:inline-block; margin-left:5px; color:#365fc7 !important; background:#ebf2ff; border-radius:10px; padding:2px 7px; font-size:.63rem !important; vertical-align:middle; }.presence-label { display:flex; align-items:center; gap:7px; font-size:.8rem; font-weight:750; }.presence-label i { width:8px; height:8px; border-radius:50%; }.presence-label.online { color:#128158; }.presence-label.online i { background:#13aa70; box-shadow:0 0 0 4px rgba(19,170,112,.11); }.presence-label.offline { color:#7c8595; }.presence-label.offline i { background:#aeb5c1; }.last-seen { display:block; color:#9aa1ae; font-size:.66rem; margin:4px 0 0 15px; }.staff-actions { display:flex; justify-content:flex-end; gap:7px; }.staff-actions form { margin:0; }.retention-note { display:flex; gap:11px; align-items:flex-start; color:#687287; font-size:.8rem; }.retention-note>span { width:25px; height:25px; border-radius:50%; background:#eaf2ff; color:#2464c8; display:grid; place-items:center; flex:0 0 auto; font-weight:800; }.retention-note p { margin:2px 0 0; }
@media (max-width:767.98px) { .account-trigger { min-width:auto; padding-left:10px; border-left:0; }.account-copy { display:none; }.account-chevron { display:none; }.topbar-action { display:none; }.staff-actions { justify-content:flex-start; } }

/* Customers */
.page-heading-actions { display:flex; justify-content:space-between; align-items:flex-end; gap:24px; }.summary-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }.summary-card { display:grid; gap:4px; padding:19px 22px; background:#fff; border:1px solid var(--line); border-radius:13px; }.summary-card span { color:var(--muted); font-size:.78rem; font-weight:700; }.summary-card strong { font-size:1.6rem; }.filter-bar { display:flex; align-items:flex-end; gap:12px; margin-bottom:22px; }.filter-bar label { display:block; font-size:.75rem; font-weight:750; margin-bottom:6px; }.filter-search { flex:1; min-width:240px; }.portal-table th { color:#788195; font-size:.7rem; letter-spacing:.06em; text-transform:uppercase; border-bottom-color:var(--line); }.portal-table td { padding:15px 9px; }.portal-table td:first-child { min-width:230px; }.portal-table td:nth-child(2) { min-width:235px; }.portal-table td small { display:block; color:#8c94a4; margin-top:3px; }.record-link { color:var(--ink); font-weight:750; }.record-link:hover { color:var(--blue); }.status-pill { display:inline-flex; border-radius:20px; padding:4px 9px; font-size:.72rem; font-weight:800; }.status-pill.active { color:#137a54; background:#e8f7f0; }.status-pill.inactive { color:#9d3145; background:#fcecef; }.table-actions { display:flex; gap:6px; }.table-actions form { margin:0; }.empty-state { padding:55px 20px; color:var(--muted); }.empty-state strong { display:block; color:var(--ink); font-size:1.15rem; }.empty-state p { margin:7px 0 18px; }
.customer-form { max-width:980px; }.form-section { padding:4px 0 27px; margin-bottom:26px; border-bottom:1px solid var(--line); }.form-section h2,.detail-grid h2 { font-size:1.05rem; margin:0 0 4px; }.form-section>p { color:var(--muted); font-size:.82rem; margin:0 0 18px; }.form-actions { display:flex; gap:9px; }.detail-grid { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(280px,.7fr); gap:20px; }.section-heading { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:19px; }.detail-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0; margin:0; }.detail-list>div { padding:13px 0; border-top:1px solid #eff1f5; }.detail-list dt { color:#818a9b; font-size:.7rem; text-transform:uppercase; letter-spacing:.06em; }.detail-list dd { margin:5px 0 0; font-weight:650; }.detail-list .detail-wide { grid-column:1/-1; }.activity-list { list-style:none; margin:20px 0 0; padding:0; }.activity-list li { display:flex; gap:12px; padding:0 0 20px; }.activity-list li>span { width:10px; height:10px; margin-top:5px; border-radius:50%; background:var(--blue); box-shadow:0 0 0 4px #e8f0ff; }.activity-list li>div { display:grid; }.activity-list small { color:#8a93a4; font-size:.7rem; margin-top:3px; }.empty-compact { color:#8a93a4; padding:20px 0; }
@media (max-width:767.98px) { .page-heading-actions { align-items:flex-start; flex-direction:column; }.summary-grid { grid-template-columns:1fr; }.filter-bar { align-items:stretch; flex-direction:column; }.filter-search { min-width:0; }.detail-grid { grid-template-columns:1fr; }.detail-list { grid-template-columns:1fr; }.detail-list .detail-wide { grid-column:auto; } }

/* Onboarding and subscriptions */
.workflow-status { color:#5943a8; background:#f0edff; }.onboarding-grid { grid-template-columns:minmax(0,1.4fr) minmax(330px,.7fr); }.review-panel { border-top:1px solid var(--line); margin-top:25px; padding-top:22px; }.approval-card { align-self:start; position:sticky; top:104px; }.approval-card>h2 { margin:8px 0; }.approval-card>p { color:var(--muted); font-size:.82rem; line-height:1.55; }.approval-note { display:block; color:#7e8799; line-height:1.45; margin-top:12px; }.approval-complete { border-radius:12px; padding:18px; background:#eaf8f1; color:#176c4e; margin-top:22px; }.approval-complete p { margin:5px 0 14px; }.subscription-list { display:grid; }.subscription-list>div { display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:16px; padding:14px 0; border-top:1px solid var(--line); }.subscription-list>div>div { display:grid; }.subscription-list small { color:#838c9d; margin-top:4px; }
@media (max-width:767.98px) { .onboarding-grid { grid-template-columns:1fr; }.approval-card { position:static; }.subscription-list>div { grid-template-columns:1fr; align-items:start; } }

/* Operational alerts and navigation counters */
.topbar-count,.nav-count,.button-count { display:inline-grid; place-items:center; min-width:20px; height:20px; padding:0 6px; border-radius:999px; background:#df3452; color:#fff; font-size:.67rem; font-weight:850; line-height:1; box-shadow:0 4px 12px rgba(223,52,82,.24); }
.topbar-count { position:absolute; right:-7px; top:-7px; border:2px solid #fff; min-width:21px; height:21px; }
.nav-count { margin-left:auto; }
.button-count { margin-left:8px; background:rgba(255,255,255,.22); box-shadow:none; }
.dashboard-alert { display:grid; grid-template-columns:42px 1fr auto; align-items:center; gap:14px; margin-bottom:20px; padding:15px 18px; border:1px solid #ffd9a1; border-radius:14px; background:linear-gradient(105deg,#fff8e9,#fff); color:#6e4900; box-shadow:0 8px 24px rgba(116,75,0,.06); }
.dashboard-alert:hover { color:#513600; transform:translateY(-1px); }
.dashboard-alert-icon { width:38px; height:38px; display:grid; place-items:center; border-radius:11px; background:#f4a825; color:#fff; font-weight:900; }
.dashboard-alert strong,.dashboard-alert small { display:block; }.dashboard-alert small { margin-top:3px; color:#8a7041; }
.stat-link { color:inherit; transition:transform .18s ease,box-shadow .18s ease; }.stat-link:hover { color:inherit; transform:translateY(-2px); box-shadow:0 13px 32px rgba(24,34,55,.09); }
.workflow-sequence>div>div { display:grid; }.workflow-sequence strong { font-size:.84rem; }.workflow-sequence small { color:#8d95a5; }
@media (max-width:575.98px) { .dashboard-alert { grid-template-columns:42px 1fr; }.dashboard-alert>span:last-child { grid-column:2; }.nav-count { margin-left:8px; } }
.report-tabs { display:flex; gap:8px; flex-wrap:wrap; padding:6px; border:1px solid var(--line); background:#fff; border-radius:13px; width:max-content; max-width:100%; }.report-tabs a { padding:9px 15px; border-radius:9px; color:#687287; font-size:.82rem; font-weight:750; }.report-tabs a.active { color:#fff; background:linear-gradient(135deg,var(--blue),var(--violet)); box-shadow:0 7px 18px rgba(76,66,210,.2); }

/* Scalable ERP navigation */
.sidebar-intro { display:grid; gap:4px; padding:3px 12px 18px; border-bottom:1px solid rgba(255,255,255,.07); margin-bottom:14px; }
.sidebar-kicker { color:#9dacc8; font-size:.72rem; font-weight:800; text-transform:uppercase; letter-spacing:.12em; }
.sidebar-intro strong { color:#f5f7ff; font-size:1rem; letter-spacing:.01em; }
.nav-search { height:40px; display:flex; align-items:center; gap:9px; margin:0 3px 14px; padding:0 12px; border:1px solid rgba(255,255,255,.09); border-radius:10px; background:#172239; color:#8fa1c3; }
.nav-search:focus-within { border-color:#607ed9; box-shadow:0 0 0 3px rgba(92,124,219,.12); }
.nav-search input { min-width:0; width:100%; border:0; outline:0; background:transparent; color:#fff; font-size:.88rem; }
.nav-search input::placeholder { color:#7f8ca8; }
.portal-nav-root { display:grid; gap:6px; }
.portal-nav-root .nav-direct,.nav-module-toggle { min-height:54px; width:100%; color:#e2e8f5; border:0; border-radius:10px; padding:10px 11px; display:flex; gap:11px; align-items:center; background:transparent; font:inherit; font-size:.91rem; text-align:left; transition:background .16s ease,color .16s ease; }
.portal-nav-root .nav-direct:hover,.nav-module-toggle:hover { background:#1b2944; color:#fff; }
.portal-nav-root .nav-direct.active { background:linear-gradient(100deg,#1d4fa3,#4934a5); color:#fff; box-shadow:0 8px 20px rgba(0,0,0,.16); }
.nav-icon { width:34px !important; height:34px; flex:0 0 34px; display:grid; place-items:center; border-radius:9px; background:rgba(126,157,231,.13); color:#a9bfff !important; font-size:1rem; }
.nav-module { border-radius:11px; }
.nav-module-copy { display:grid; min-width:0; flex:1; }
.nav-module-copy strong { font-size:.9rem; font-weight:750; color:#e4eaf8; }
.nav-module-copy small { color:#a0aec7; font-size:.72rem; font-weight:500; margin-top:3px; line-height:1.3; }
.nav-chevron { width:18px !important; color:#70809f !important; font-size:.86rem; transition:transform .18s ease; }
.nav-module.is-open .nav-chevron { transform:rotate(180deg); }
.nav-submenu { display:grid; max-height:0; overflow:hidden; opacity:0; transition:max-height .24s ease,opacity .18s ease; }
.nav-module.is-open .nav-submenu { max-height:330px; opacity:1; }
.nav-submenu a { min-height:41px; margin:1px 3px 1px 42px; padding:10px 10px 10px 13px; border-left:1px solid #2d3b57; border-radius:0 8px 8px 0; color:#bec8dc; display:flex; align-items:center; gap:7px; font-size:.84rem; font-weight:600; }
.nav-submenu a:hover { color:#fff; background:#182642; border-left-color:#6887dc; }
.nav-submenu a.active { color:#fff; background:#1c2d4b; border-left:3px solid #7698ff; padding-left:11px; }
.nav-submenu a.disabled { opacity:.5; cursor:default; }
.nav-submenu a small { margin-left:auto; color:#6f7e9b; font-size:.58rem; }
.nav-submenu .nav-count { margin-left:auto; }
.nav-live-dot { width:7px; height:7px; margin-left:auto; border-radius:50%; background:#20bd82; box-shadow:0 0 0 4px rgba(32,189,130,.12); }
.nav-no-results { display:none; margin:18px 8px; padding:16px; color:#a5b1c8; text-align:center; font-size:.82rem; border:1px dashed #31405d; border-radius:10px; }
.nav-no-results.is-visible { display:block; }
.nav-search-hidden { display:none !important; }
.sidebar-footer { display:flex; align-items:center; gap:10px; margin:20px 5px 0; padding:14px 10px 2px; border-top:1px solid rgba(255,255,255,.07); }
.sidebar-footer>span { width:8px; height:8px; border-radius:50%; background:#20bd82; box-shadow:0 0 0 4px rgba(32,189,130,.12); }
.sidebar-footer>div { display:grid; }
.sidebar-footer strong { color:#c6cee0; font-size:.74rem; }
.sidebar-footer small { color:#8997b0; font-size:.67rem; margin-top:3px; }
.offcanvas-header small { color:#8090ad; font-size:.62rem; text-transform:uppercase; letter-spacing:.1em; }.offcanvas-header h5 { margin:2px 0 0; font-size:1rem; }
@media (max-width:1199.98px) and (min-width:992px) { .sidebar { width:270px; }.main-content { margin-left:270px; padding:30px; } }
/* Expandable staff knowledge base */
.knowledge-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.knowledge-topic h2{margin:.35rem 0 .65rem}.knowledge-topic details{margin-top:18px;border-top:1px solid var(--line);padding-top:14px}.knowledge-topic summary{cursor:pointer;color:var(--blue);font-weight:800}.knowledge-topic h3{font-size:1rem;margin:18px 0 8px}.knowledge-topic li{margin-bottom:7px;line-height:1.55}@media(max-width:900px){.knowledge-grid{grid-template-columns:1fr}}
/* Work assignment and internal queue */
.work-priority{display:inline-flex;padding:5px 10px;border-radius:999px;font-size:.8rem;font-weight:800;background:#eef2f7;color:#465064}.work-priority.high{background:#fff1d6;color:#9a5b00}.work-priority.urgent{background:#ffe3e7;color:#b42336}.work-priority.low{background:#e8f6ef;color:#14734b}.work-description{white-space:pre-line;line-height:1.7}.work-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:24px 0 0}.work-meta div{padding:14px;background:#f7f9fc;border-radius:12px}.work-meta dt{font-size:.75rem;text-transform:uppercase;color:var(--muted)}.work-meta dd{margin:5px 0 0;font-weight:750}.work-thread{display:grid;gap:12px}.work-thread article{padding:14px 16px;border:1px solid var(--line);border-radius:13px;background:#fafbfe}.work-thread article>div{display:flex;justify-content:space-between;gap:12px}.work-thread time{font-size:.8rem;color:var(--muted)}.work-thread p{margin:8px 0 0;white-space:pre-line}@media(max-width:700px){.work-meta{grid-template-columns:1fr}}
/* Central email delivery and archive copy */
.archive-copy-box{padding:15px;border:1px solid var(--line);border-radius:13px;background:#f8faff}.email-envelope{display:grid;gap:8px;padding:16px;border:1px solid var(--line);border-radius:13px;background:#f8faff}.email-envelope div{display:grid;grid-template-columns:100px 1fr;gap:12px}.email-envelope span{color:var(--muted);font-size:.85rem}.email-preview{width:100%;min-height:520px;margin-top:16px;border:1px solid var(--line);border-radius:13px;background:#fff}.email-source{max-height:380px;overflow:auto;padding:14px;border-radius:10px;background:#111827;color:#e5e7eb;white-space:pre-wrap}
.kb-language-switch{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap;background:#fff;border:1px solid #e2e8f3;border-radius:14px;padding:.7rem}.kb-language-switch span{font-weight:700;margin-right:.25rem}.kb-language-switch a{padding:.55rem .9rem;border-radius:9px;text-decoration:none;color:#53617b;font-weight:700}.kb-language-switch a.active{background:linear-gradient(135deg,#155eef,#5b27d8);color:#fff}.knowledge-feature{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;border-left:5px solid #5b27d8}.knowledge-feature p{max-width:850px}.kb-sop h2{margin-bottom:.65rem}.kb-sop ol>li,.kb-sop ul>li,.kb-sticky li{margin-bottom:.65rem;line-height:1.6}.kb-checklist{list-style:'✓  ';padding-left:1.4rem}.kb-safeguards{background:#f5f7fc;border-left:4px solid #f3a712;border-radius:8px;padding:1rem 1.15rem;margin-top:1.2rem}.kb-safeguards ul{margin:.65rem 0 0}.kb-sticky{position:sticky;top:1rem}.kb-sticky h2{font-size:1.15rem}.kb-sticky a{overflow-wrap:anywhere}@media(max-width:767px){.knowledge-feature{align-items:flex-start;flex-direction:column}.kb-sticky{position:static}}

.user-avatar.has-photo { background:transparent; border-radius:50%; overflow:hidden; }
