/* Existing layout and print support; visual components are in design-system.css. */
@layer legacy {

    :root{--navy:#071931;--navy2:#0d2848;--orange:#f59e0b;--orange2:#ea7a11;--ink:#172033;--muted:#64748b;--line:#dce3ec;--panel:#fff;--canvas:#f2f5f9;--green:#dff1dc;--yellow:#fff0c2;--peach:#fde1d0;--coral:#f6ad7a;--blue:#d9eaf7;--danger:#b42318;--shadow:0 10px 30px rgba(7,25,49,.08);--radius:18px}
    *{box-sizing:border-box}
    html{color-scheme:light}
    body{margin:0;background:var(--canvas);color:var(--ink);font-family:Arial,Helvetica,sans-serif;font-size:16px;line-height:1.45}
    button,input,select,textarea{font:inherit}
    button{cursor:pointer}
    button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(245,158,11,.35);outline-offset:2px}
    .topbar{position:sticky;top:0;z-index:20;background:linear-gradient(115deg,var(--navy),var(--navy2));color:#fff;border-bottom:4px solid var(--orange);box-shadow:0 8px 24px rgba(7,25,49,.18)}
    .topbar-inner{max-width:1500px;margin:auto;padding:16px 24px;display:flex;align-items:center;gap:18px}
    .brandmark{width:48px;height:48px;border:1px solid rgba(255,255,255,.3);border-radius:14px;display:grid;place-items:center;font-weight:900;letter-spacing:-2px;background:linear-gradient(145deg,#f8fafc,#aeb9c7);color:var(--navy);box-shadow:inset 0 1px 0 #fff,0 8px 20px rgba(0,0,0,.2)}
    .brandcopy{min-width:260px}.brandcopy .eyebrow{font-size:.75rem;letter-spacing:.11em;text-transform:uppercase;color:#b7c5d8}.brandcopy h1{font-size:1.24rem;line-height:1.2;margin:3px 0 0}
    .save-state{margin-left:auto;display:flex;align-items:center;gap:8px;color:#d8e4f2;font-size:.88rem;white-space:nowrap}.dot{width:9px;height:9px;border-radius:50%;background:#35c56f;box-shadow:0 0 0 4px rgba(53,197,111,.13)}
    .header-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
    .btn{border:1px solid transparent;border-radius:10px;padding:10px 14px;font-weight:700;min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:.18s ease;background:#fff;color:var(--navy)}
    .btn:hover{transform:translateY(-1px);box-shadow:0 7px 18px rgba(7,25,49,.14)}
    .btn-primary{background:var(--orange);color:var(--navy);border-color:#ffc353}.btn-secondary{background:#fff;color:var(--navy);border-color:#cbd5e1}.btn-ghost{background:rgba(255,255,255,.09);color:#fff;border-color:rgba(255,255,255,.22)}.btn-danger{background:#fff1f0;color:var(--danger);border-color:#fecaca}.btn-small{min-height:34px;padding:6px 10px;font-size:.86rem}.btn-icon{width:36px;height:36px;min-height:36px;padding:0}
    main{max-width:1500px;margin:auto;padding:24px}
    .section-head{display:flex;align-items:end;justify-content:space-between;gap:16px;margin:2px 0 14px}.section-head h2{font-size:1.25rem;margin:0;color:var(--navy)}.section-head p{margin:4px 0 0;color:var(--muted);font-size:.9rem}
    .metrics{display:grid;grid-template-columns:1.35fr repeat(4,1fr);gap:12px;margin-bottom:18px}
    .metric{background:var(--panel);border:1px solid var(--line);border-radius:15px;padding:17px 18px;box-shadow:0 5px 18px rgba(7,25,49,.05);position:relative;overflow:hidden}.metric:before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:var(--metric,var(--orange))}.metric-label{display:block;color:var(--muted);font-size:.82rem;font-weight:700;text-transform:uppercase;letter-spacing:.055em}.metric-value{display:block;color:var(--navy);font-size:1.75rem;font-weight:900;line-height:1.1;margin-top:7px;font-variant-numeric:tabular-nums}.metric.total{--metric:var(--orange)}.metric.a{--metric:#64a85a}.metric.b{--metric:#e2b230}.metric.c{--metric:#e59568}.metric.d{--metric:#df6d25}
    .layout{display:grid;grid-template-columns:minmax(450px,.78fr) minmax(0,1.22fr);gap:18px;align-items:start}
    .panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.panel-head{padding:18px 20px 14px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-head h2{font-size:1.08rem;margin:0;color:var(--navy)}.panel-head .meta{font-size:.85rem;color:var(--muted)}
    .summary-wrap{padding:10px 16px 16px;overflow:auto}.summary-table{width:100%;border-collapse:separate;border-spacing:0;font-variant-numeric:tabular-nums}.summary-table th{background:var(--navy);color:#fff;text-align:center;padding:11px 10px;font-size:.88rem;border-right:1px solid rgba(255,255,255,.24)}.summary-table th:first-child{text-align:left;border-radius:10px 0 0 0}.summary-table th:last-child{border-radius:0 10px 0 0;border-right:0}.summary-table td{padding:10px;border-bottom:1px solid var(--line);text-align:right}.summary-table td:first-child{text-align:left;font-weight:700}.summary-table td.cat-a{background:var(--green)}.summary-table td.cat-b{background:var(--yellow)}.summary-table td.cat-c{background:var(--peach)}.summary-table td.cat-d{background:var(--coral)}.summary-table td.total{background:var(--blue);font-weight:900;color:var(--navy)}.summary-table tfoot td{background:var(--navy);color:#fff;font-weight:900;border-bottom:3px solid var(--orange)}
    .privacy-note{margin:0 16px 16px;padding:12px 14px;border-radius:12px;background:#f7f9fc;border:1px solid var(--line);font-size:.84rem;color:var(--muted)}
    .data-panel{grid-column:1/-1}.toolbar{padding:14px 16px;display:grid;grid-template-columns:minmax(220px,1.6fr) repeat(2,minmax(150px,.65fr)) auto;gap:10px;border-bottom:1px solid var(--line)}
    .field,.search{width:100%;min-height:44px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:var(--ink);padding:9px 12px}.search{padding-left:40px}.search-wrap{position:relative}.search-wrap:before{content:"⌕";position:absolute;left:14px;top:7px;color:var(--muted);font-size:1.35rem}
    .table-scroll{overflow:auto;max-height:560px}.records-table{width:100%;border-collapse:separate;border-spacing:0;min-width:1180px}.records-table thead{position:sticky;top:0;z-index:3}.records-table th{padding:11px 12px;background:#edf2f7;color:#475569;text-align:left;text-transform:uppercase;letter-spacing:.045em;font-size:.74rem;border-bottom:1px solid var(--line);white-space:nowrap}.records-table td{padding:11px 12px;border-bottom:1px solid #e8edf3;vertical-align:top;font-size:.9rem}.records-table tbody tr:hover{background:#f8fafc}.records-table .customer{font-weight:700;color:var(--navy)}.records-table .muted{color:var(--muted)}.records-table .actions{display:flex;gap:6px;white-space:nowrap}.cat-badge{display:inline-flex;align-items:center;justify-content:center;width:32px;height:28px;border-radius:8px;font-weight:900;color:var(--navy)}.cat-badge.a{background:var(--green)}.cat-badge.b{background:var(--yellow)}.cat-badge.c{background:var(--peach)}.cat-badge.d{background:var(--coral)}

    /* Customer table: category colours are derived at render time only. */
    .records-table th{color:#06265A;font-weight:700;text-shadow:0 1px 0 rgba(255,255,255,.85)}
    .records-table td{color:#0A2B60;font-weight:600;border-bottom-color:#c6d1df}
    .records-table .customer{color:#0A2B60;font-weight:700}
    .records-table .muted{color:#0A2B60}
    .records-table tbody tr{background:#fff}
    .records-table tbody tr:hover{background:#f8fafc}
    .records-table tbody tr.category-row-a{background:#DFF2DB}
    .records-table tbody tr.category-row-b{background:#FFF0CC}
    .records-table tbody tr.category-row-c{background:#DDEEFF}
    .records-table tbody tr.category-row-d{background:#FFE0E0}
    .records-table tbody tr.category-row-a:hover{background:#D2E8CD}
    .records-table tbody tr.category-row-b:hover{background:#F5E4B8}
    .records-table tbody tr.category-row-c:hover{background:#CEE3F7}
    .records-table tbody tr.category-row-d:hover{background:#F5CECE}
    .records-table .cat-badge.a{background:#BFE0B8;color:#17451F}
    .records-table .cat-badge.b{background:#F4D98E;color:#624500}
    .records-table .cat-badge.c{background:#BBD9F5;color:#123F70}
    .records-table .cat-badge.d{background:#F1BABA;color:#752424}
    .empty{display:none;text-align:center;padding:46px 20px;color:var(--muted)}.empty strong{display:block;color:var(--navy);font-size:1.05rem;margin-bottom:4px}
    .pager{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-top:1px solid var(--line);background:#fbfcfe}.pager-info{font-size:.86rem;color:var(--muted)}.pager-buttons{display:flex;gap:8px}
    dialog{border:0;border-radius:18px;padding:0;box-shadow:0 30px 80px rgba(7,25,49,.35);width:min(760px,calc(100vw - 28px));color:var(--ink)}dialog::backdrop{background:rgba(3,12,25,.65);backdrop-filter:blur(3px)}.dialog-head{padding:18px 20px;background:var(--navy);color:#fff;display:flex;align-items:center;justify-content:space-between}.dialog-head h2{margin:0;font-size:1.12rem}.close-btn{border:0;background:transparent;color:#fff;font-size:1.5rem;line-height:1;width:38px;height:38px;border-radius:9px}.close-btn:hover{background:rgba(255,255,255,.12)}
    .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:20px}.form-group{display:flex;flex-direction:column;gap:6px}.form-group.full{grid-column:1/-1}.form-group label{font-size:.86rem;font-weight:700;color:#334155}.form-group textarea{min-height:82px;resize:vertical}.required{color:var(--danger)}.dialog-actions{padding:14px 20px 20px;display:flex;justify-content:flex-end;gap:10px}.confirm-body{padding:22px 20px 8px}.confirm-body p{margin:0;color:#475569}
    .toast{position:fixed;right:22px;bottom:22px;z-index:50;background:var(--navy);color:#fff;border-left:5px solid var(--orange);padding:13px 16px;border-radius:10px;box-shadow:0 15px 40px rgba(7,25,49,.28);max-width:360px;opacity:0;transform:translateY(20px);pointer-events:none;transition:.22s ease}.toast.show{opacity:1;transform:translateY(0)}
    .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
    @media(max-width:1050px){.topbar-inner{align-items:flex-start;flex-wrap:wrap}.save-state{margin-left:0}.header-actions{margin-left:auto}.layout{grid-template-columns:1fr}.metrics{grid-template-columns:repeat(5,1fr)}.toolbar{grid-template-columns:1fr 1fr}.search-wrap{grid-column:1/-1}.data-panel{grid-column:auto}}
    @media(max-width:700px){body{font-size:15px}.topbar-inner,main{padding:14px}.brandmark{width:44px;height:44px}.brandcopy{min-width:0;flex:1}.brandcopy .eyebrow{font-size:.68rem}.brandcopy h1{font-size:1.05rem}.save-state{order:3;width:100%}.header-actions{width:100%;justify-content:stretch}.header-actions .btn{flex:1}.metrics{grid-template-columns:repeat(2,1fr)}.metric.total{grid-column:1/-1}.metric{padding:14px}.metric-value{font-size:1.5rem}.toolbar{grid-template-columns:1fr}.search-wrap{grid-column:auto}.records-table{min-width:0}.records-table thead{display:none}.records-table,.records-table tbody,.records-table tr,.records-table td{display:block;width:100%}.records-table tbody{padding:10px}.records-table tr{border:1px solid var(--line);border-radius:14px;margin-bottom:10px;padding:10px;background:#fff}.records-table td{display:grid;grid-template-columns:112px 1fr;gap:8px;padding:7px 4px;border:0}.records-table td:before{content:attr(data-label);font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}.records-table td.actions-cell{display:block;padding-top:10px}.records-table .actions{justify-content:flex-end}.table-scroll{max-height:none}.pager{align-items:flex-start;flex-direction:column}.form-grid{grid-template-columns:1fr}.form-group.full{grid-column:auto}}
    @media print{body{background:#fff}.topbar{position:static;box-shadow:none}.header-actions,.save-state,.toolbar,.pager,.actions-cell,.privacy-note{display:none!important}main{max-width:none;padding:14px}.metrics{grid-template-columns:repeat(5,1fr)}.layout{display:block}.panel{box-shadow:none;margin-bottom:16px}.table-scroll{max-height:none;overflow:visible}.records-table{min-width:0;font-size:11px}.records-table th,.records-table td{padding:6px}.records-table th:last-child,.records-table td:last-child{display:none}}
  
[hidden]{display:none}.login-screen{min-height:100dvh;display:grid;place-items:center;background:radial-gradient(ellipse at top,#183451,#071931 65%);padding:24px 16px}.login-card{width:min(100%,400px);padding:28px;border:1px solid #63748a;border-top:3px solid #f59e0b;border-radius:18px;background:#10243d;color:#fff;box-shadow:0 24px 80px #0005}.login-card h1{font-size:1.3rem;line-height:1.3;margin:20px 0 6px}.login-card p{color:#c4cfdd;font-size:.8rem}.login-card label{display:block;margin:16px 0 6px}.login-card .remember{display:flex;align-items:center;gap:8px;font-size:.85rem}.password-row{display:flex;gap:6px}.password-row input{min-width:0}.login-card button[type=submit]{width:100%;margin-top:8px}.login-card [role=status]{min-height:2.8em;margin-top:16px;font-size:.85rem}.btn:disabled{opacity:.55;cursor:wait}.dot{display:none}dialog{max-height:calc(100dvh - 28px);overflow:auto}.records-table td{overflow-wrap:anywhere}.save-state{white-space:normal}#signedUser{font-size:.8rem} .login-card :focus-visible{outline:3px solid #ffbf54;outline-offset:3px}
/* Performance sprint: scoped analytics and register filter additions. */
.toolbar{grid-template-columns:minmax(210px,1.3fr) repeat(3,minmax(150px,.7fr)) auto}.toolbar>*{min-width:0}.view-actions{display:flex;flex-wrap:wrap;gap:8px}.active-filters{padding:0 16px;font-size:.85rem;color:var(--navy)}button.metric{text-align:left}.metric[aria-pressed=true]{outline:2px solid var(--navy)}.link-button{border:0;background:transparent;color:var(--navy);font:inherit;text-align:left;padding:4px 0;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}.analytics-filters{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr)) auto;gap:12px;align-items:end;margin:20px 0}.analytics-filters label{font-size:.85rem;font-weight:700;min-width:0}.analytics-filters select{display:block;margin-top:5px}.analytics-explanation{margin:18px 0}.analytics-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:18px 0}.analytics-kpis .metric-value{font-size:1.4rem;overflow-wrap:anywhere}#analyticsReconciliation{font-size:.85rem;margin:12px 0 18px}#analyticsWarning{padding:16px;background:#FFE0E0;border:2px solid #752424;color:#752424}.analytics-table-wrap{overflow:auto}.performance-table{width:100%;border-collapse:collapse;min-width:1700px;font-size:.86rem;font-variant-numeric:tabular-nums}.performance-table th{background:var(--navy);color:white;text-align:left;padding:12px 9px;vertical-align:bottom}.performance-table th button{border:0;background:transparent;color:inherit;font:inherit;font-weight:700;text-align:left;padding:0}.performance-table th[aria-sort=ascending] button:after{content:' ↑'}.performance-table th[aria-sort=descending] button:after{content:' ↓'}.performance-table td{padding:12px 9px;border-bottom:1px solid var(--line)}.performance-table tbody tr:nth-child(even){background:#f7f9fc}.performance-table tfoot{background:var(--navy);color:white;font-weight:700}.strong-value{font-weight:800;color:var(--navy)}.performance-table tbody .strong-value{background:#fff0cc}.band-badge,.sample-badge{display:inline-block;border:1px solid #cbd5e1;background:#f1f5f9;color:#173754;border-radius:6px;padding:4px 7px;font-size:.78rem;max-width:180px}.analytics-graphs{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}.graph{padding:18px;min-width:0}.graph h3{margin:0 0 18px;color:var(--navy);font-size:1.05rem}.chart-row{display:grid;grid-template-columns:140px minmax(30px,1fr);gap:5px 12px;margin:14px 0;align-items:center;font-size:.86rem}.chart-row>span:last-child{grid-column:2;color:#334155}.bar-track{height:18px;border-radius:4px;background:#e8edf3;overflow:hidden}.bar-fill{display:block;background:var(--navy);height:100%;min-width:0}.bar-fill.top-performer{background:#e99416}.distribution-row{margin:14px 0}.stacked-bar{display:flex;min-height:36px;width:100%;border-radius:5px;overflow:hidden}.segment{border:1px solid #ffffff;min-width:0;padding:5px 2px;overflow:hidden;color:#173754;font-size:.8rem;font-weight:700}.segment-A{background:#DFF2DB}.segment-B{background:#FFF0CC}.segment-C{background:#DDEEFF}.segment-D{background:#FFE0E0}.segment-Other{background:#e8edf3}.mix-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 12px;margin:6px 0;border-radius:6px;font-size:.85rem}.analytics-footer{margin-top:25px;border-top:1px solid var(--line);padding-top:14px;font-size:.8rem;color:var(--muted)}
@media(max-width:1100px){.toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}.search-wrap{grid-column:1/-1}.analytics-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.analytics-graphs{grid-template-columns:1fr}.section-head{align-items:flex-start;flex-wrap:wrap}}
@media(max-width:700px){.toolbar,.analytics-filters{grid-template-columns:1fr}.toolbar .search-wrap{grid-column:auto}.analytics-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.analytics-kpis .metric-value{font-size:1.15rem}.chart-row{grid-template-columns:100px minmax(0,1fr)}.view-actions{width:100%}.view-actions .btn{flex:1}.performance-table{min-width:0}.performance-table thead{display:none}.performance-table,.performance-table tbody,.performance-table tr,.performance-table td{display:block;width:100%}.performance-table tr{padding:12px;border-bottom:2px solid var(--line)}.performance-table td{display:grid;grid-template-columns:minmax(125px,.9fr) 1fr;gap:12px;padding:6px}.performance-table td:before{content:attr(data-label);font-weight:700;color:#334155}.performance-table tfoot{display:none}.analytics-table-wrap{max-height:640px}.panel-head{flex-wrap:wrap}}
@media print{
 @page{size:A4 landscape;margin:10mm}
 .topbar{display:none!important}.view-actions,.analytics-filters,#analyticsView .analytics-explanation,.analytics-footer button,#registerView .section-head button,dialog,.toast{display:none!important}#analyticsView .analytics-explanation{display:block!important}main{padding:0}.analytics-kpis{grid-template-columns:repeat(3,1fr)}.analytics-kpis .metric{padding:8px}.analytics-kpis .metric-value{font-size:14px}.analytics-table-wrap{overflow:visible;max-height:none}.performance-table{display:table;min-width:0;width:100%;table-layout:fixed;font-size:7px}.performance-table thead{display:table-header-group}.performance-table tbody{display:table-row-group}.performance-table tfoot{display:table-footer-group}.performance-table tr{display:table-row;break-inside:avoid}.performance-table th,.performance-table td{display:table-cell;width:auto;padding:4px 2px;overflow-wrap:anywhere}.performance-table td:before{display:none}.performance-table th button:after{display:none!important}.performance-table th button{font-size:7px}.performance-table .band-badge,.performance-table .sample-badge{font-size:7px;padding:2px}.analytics-graphs{display:block}.graph{break-inside:avoid;margin:12px 0;box-shadow:none}.chart-row{margin:7px 0;grid-template-columns:160px 1fr}.bar-track,.bar-fill,.segment,.mix-row,.performance-table th,.performance-table tfoot{print-color-adjust:exact;-webkit-print-color-adjust:exact}.link-button{text-decoration:none;padding:0}.analytics-footer{display:block}.records-table{display:table;width:100%;min-width:0}.records-table thead{display:table-header-group}.records-table tbody{display:table-row-group}.records-table tr{display:table-row}.records-table th,.records-table td{display:table-cell;width:auto;font-size:9px}.records-table td:before{display:none}
}
@media(max-width:700px){.brandcopy{flex:1;min-width:160px}#signedUser{order:3}#signOutBtn{margin-left:auto}.header-actions{order:4}.save-state{order:5}}
@media print{.performance-table{font-size:11px}.performance-table th button{font-size:10px}.performance-table .band-badge,.performance-table .sample-badge{font-size:9px}.performance-table th:nth-child(2){width:9%}.performance-table th:nth-child(n+4):nth-child(-n+8){width:3%}.performance-table th:nth-child(16){width:10%}}

/* Original supplied COREAXIS artwork is displayed without modifying the image. */
/* UI/UX closure sprint — presentation tokens and responsive overrides. */
:root{--navy:#0B2748;--navy2:#061A33;--orange:#F59E0B;--orange2:#E58D00;--canvas:#F3F6FA;--panel:#FFFFFF;--ink:#10233F;--muted:#607089;--text-on-soft:#53647C;--line:#D8E1EC;--soft-line:#E8EEF5;--success:#198754;--danger:#C93636;--warning:#B77900;--green:#DFF2DB;--yellow:#FFF0CC;--peach:#DDEEFF;--coral:#FFE0E0;--category-a:#DFF2DB;--category-b:#FFF0CC;--category-c:#DDEEFF;--category-d:#FFE0E0;--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-6:24px;--space-8:32px;--radius:16px;--control-radius:10px;--badge-radius:8px;--shadow:0 2px 12px rgba(11,39,72,.05);--focus-ring:0 0 0 3px #fff,0 0 0 5px #1763A6;--control-height:44px;--content-width:1440px;--motion:160ms}
@media screen{
 body{font-family:Inter,"Segoe UI",Roboto,Arial,sans-serif;font-size:15px;line-height:1.5;color:var(--ink);background:var(--canvas);padding-top:0}button,input,select,textarea{font:inherit}button{touch-action:manipulation}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible,summary:focus-visible{outline:2px solid #1763A6;outline-offset:3px;box-shadow:0 0 0 2px #fff}h2:focus{outline:none}h2,h3,p{overflow-wrap:break-word}
 .topbar{position:relative;top:auto;z-index:30;background:var(--navy2);border-bottom:3px solid var(--orange);box-shadow:none;isolation:isolate}.topbar-inner{max-width:var(--content-width);min-height:80px;padding:12px 24px;margin:0 auto;display:grid;grid-template-columns:minmax(260px,1fr) auto auto auto auto;grid-template-areas:"brand identity actions add signout";gap:12px;align-items:center}.brand-group{grid-area:brand;display:flex;align-items:center;gap:12px;min-width:0}.brandmark{flex:0 0 40px;width:40px;height:40px;border-radius:10px}.brandcopy{min-width:0}.brandcopy .eyebrow{font-size:12px;letter-spacing:0;text-transform:none;color:#C3D1E1;white-space:nowrap}.brandcopy h1{font-size:16px;line-height:1.4;margin:0;white-space:nowrap;letter-spacing:0}.identity{grid-area:identity;display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0}.save-state{margin:0;order:initial;width:auto;font-size:12px;line-height:1.4;gap:8px;color:#E5EDF6;max-width:154px}.save-state .dot{display:block;width:8px;height:8px;flex:0 0 8px;background:var(--warning);box-shadow:none}.save-state[data-state=connected] .dot{background:#15803D}.save-state[data-state=offline] .dot{background:#FF9696}#signedUser{order:initial;font-size:12px;color:#C3D1E1;max-width:154px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.header-actions{grid-area:actions;display:flex;flex-wrap:nowrap;gap:8px;margin:0;justify-content:flex-end;width:auto}#addBtn{grid-area:add;white-space:nowrap}#signOutBtn{grid-area:signout;margin:0;white-space:nowrap}.tools-toggle,.tools-print{display:none}.topbar .btn{min-height:40px;padding:8px 10px;font-size:13px;border-radius:var(--control-radius)}.topbar .btn-ghost{background:#142F4D;border:1px solid #46617E;color:#F2F6FB}#signOutBtn{background:transparent;border-color:transparent;color:#D6E0EC}
 main{max-width:var(--content-width);padding:24px;margin:0 auto;min-width:0}.view-switcher{max-width:var(--content-width);padding:20px 24px 0;margin:0 auto}.view-switcher [role=tablist]{display:inline-flex;gap:4px;background:#E6EDF5;border:1px solid var(--line);border-radius:12px;padding:4px}.view-tab{min-height:44px;border:1px solid transparent;border-radius:8px;padding:10px 20px;font-size:14px;font-weight:700;color:var(--text-on-soft);background:transparent;transition:background var(--motion),color var(--motion)}.view-tab[aria-selected=true]{color:var(--navy);background:white;border-color:var(--line);box-shadow:var(--shadow)}.view-tab:hover{color:var(--navy);background:#F8FAFD}.section-head{align-items:center;margin:0 0 24px;gap:16px}.section-head h2{font-size:28px;font-weight:750;line-height:1.3;margin:0}.section-head p{font-size:14px;line-height:1.5;margin:8px 0 0}.section-head .eyebrow{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;margin:0 0 8px;color:var(--muted)}.view-actions{display:flex;flex-wrap:wrap;gap:8px}.nav-return{background:#E9EFF7;color:var(--navy)}
 .btn{min-height:var(--control-height);padding:10px 16px;font-size:14px;line-height:1.4;border-radius:var(--control-radius);transition:background var(--motion),transform var(--motion),opacity var(--motion);box-shadow:none}.btn:hover{transform:none;box-shadow:none;background:#EAF0F7}.btn-primary{background:var(--orange);border-color:var(--orange);color:var(--navy2)}.btn-primary:hover{background:var(--orange2);border-color:var(--orange2)}.btn-secondary{border-color:var(--line);color:var(--navy);background:white}.btn-danger{color:#A52424;border-color:#EDBDBD;background:#FFF3F3}.btn-danger:hover{background:#FFE0E0}.btn:active:not(:disabled),.view-tab:active{transform:translateY(1px)}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-small{font-size:13px;min-height:36px;padding:6px 12px}.field,.search{min-height:var(--control-height);height:46px;border:1px solid #BCCADC;border-radius:var(--control-radius);padding:10px 12px;color:var(--ink);font-size:14px;background:white}.field:disabled,.search:disabled{background:#EFF3F8;color:var(--muted)}textarea.field{height:auto;min-height:100px}
 .metrics{grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;margin:0 0 24px}.metric{padding:20px;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);min-height:112px;transition:background var(--motion),border-color var(--motion);min-width:0}.metric:before{width:4px}.metric-label{font-size:14px;text-transform:none;letter-spacing:0;line-height:1.45;font-weight:600;color:var(--muted)}.metric-value{font-size:30px;line-height:1.2;letter-spacing:-.02em;font-weight:750;margin-top:8px;overflow-wrap:normal}.metric-context{font-size:12px;color:var(--muted);display:block;margin-top:8px}.metric[aria-pressed=true]{outline:none;border:2px solid var(--navy);padding:19px;background:#F8FAFD}.metric.a{--metric:#5B954C}.metric.b{--metric:#B88918}.metric.c{--metric:#4C86AF}.metric.d{--metric:#BF6262}.metric.total{--metric:var(--navy)}.layout{display:block}.layout>.panel+.panel{margin-top:24px}.panel{border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);min-width:0}.panel-head{padding:20px 24px;gap:12px;background:var(--panel)}.panel-head h2{font-size:19px;line-height:1.4}.panel-head .meta{font-size:13px;margin-top:4px;display:block}.panel-head>strong{font-size:13px;font-weight:600;color:var(--muted)}.summary-wrap{padding:0;max-height:400px;overflow:auto;min-height:320px}.summary-table{min-width:540px;font-size:14px}.summary-table thead{position:sticky;top:0;z-index:3}.summary-table th{padding:12px 20px;font-size:13px;background:var(--navy);border-radius:0}.summary-table td{padding:8px 20px;font-size:14px}.summary-table td:first-child{white-space:nowrap;word-break:normal}.summary-table .cat-a{background:var(--category-a)}.summary-table .cat-b{background:var(--category-b)}.summary-table .cat-c{background:var(--category-c)}.summary-table .cat-d{background:var(--category-d)}.summary-table td.total{background:#EAF0F7}.summary-table tfoot td{background:var(--navy);color:white;border-bottom:0;padding:14px 20px}.privacy-note{display:flex;align-items:flex-start;gap:8px;margin:16px 20px;padding:12px 16px;font-size:13px;color:#455C76;background:#F3F6FA;border:1px solid var(--soft-line);border-radius:10px}.info-icon{display:inline-grid;place-items:center;flex:0 0 20px;width:20px;height:20px;border:1px solid #8EA2BA;border-radius:50%;font-weight:700;font-size:12px}
 .toolbar{padding:20px 24px;display:grid;grid-template-columns:minmax(220px,1.5fr) repeat(3,minmax(145px,1fr)) auto;gap:12px;align-items:end;border-bottom:0}.filter-control{min-width:0}.filter-control>label,.analytics-filters>label,.mobile-table-controls label{display:block;font-size:13px;font-weight:600;margin-bottom:6px;color:#334D6A}.search-wrap{position:relative;grid-column:auto}.search{padding-left:38px}.search-wrap:before{content:'⌕';font-size:24px;line-height:1;left:12px;top:11px;color:var(--muted)}#clearFiltersBtn{min-height:46px}.active-filters{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:0 24px 16px;margin:0;font-size:13px;min-height:40px}.filter-default{color:var(--muted);font-size:13px}.filter-chip{display:inline-flex;align-items:center;gap:8px;max-width:100%;min-height:36px;padding:6px 10px;background:#EAF0F7;color:var(--navy);border:1px solid #C9D6E5;border-radius:var(--badge-radius);font-size:13px;line-height:1.4}.filter-chip span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:340px}.filter-chip span:last-child{font-size:18px}.filter-chip:hover{background:#DCE7F3}.link-button{min-height:36px;border:0;border-radius:6px;color:var(--navy);font-weight:600;line-height:1.4;padding:6px 4px;text-decoration:none;overflow-wrap:normal;transition:background var(--motion)}.link-button:hover{background:#EAF0F7;text-decoration:underline;text-underline-offset:3px}
 .scroll-frame{position:relative;min-width:0;overflow:hidden}.scroll-frame:before,.scroll-frame:after{content:'';position:absolute;top:0;bottom:0;width:14px;pointer-events:none;z-index:6;opacity:0;transition:opacity var(--motion)}.scroll-frame:before{left:0;background:linear-gradient(to right,#0B274826,transparent)}.scroll-frame:after{right:0;background:linear-gradient(to left,#0B274826,transparent)}.scroll-frame.scroll-left:before,.scroll-frame.scroll-right:after{opacity:1}.scroll-hint{display:none;margin:0;padding:0 24px 12px;color:var(--muted);font-size:12px}.table-scroll{overflow:auto;max-height:560px;overscroll-behavior:contain;scrollbar-width:auto}.records-table{display:table;table-layout:fixed;min-width:1330px;width:100%;border-collapse:separate;border-spacing:0}.records-table thead{display:table-header-group;position:sticky;top:0;z-index:4}.records-table tbody{display:table-row-group;padding:0}.records-table tr{display:table-row;padding:0;margin:0;border:0;border-radius:0}.records-table th,.records-table td{display:table-cell;width:auto;text-align:left;vertical-align:top;border:0;border-bottom:1px solid #C8D6E4;padding:14px 12px;font-size:14px;line-height:1.5;overflow-wrap:break-word;word-break:normal}.records-table th{background:#EAF0F7;font-size:13px;font-weight:700;text-transform:none;letter-spacing:0;color:var(--navy);text-shadow:none;white-space:nowrap}.records-table td:before{display:none}.records-table th:first-child{width:64px}.records-table th:nth-child(2){width:116px}.records-table th:nth-child(3){width:185px}.records-table th:nth-child(4){width:155px}.records-table th:nth-child(5){width:210px}.records-table th:nth-child(6),.records-table th:nth-child(7){width:200px}.records-table th:nth-child(8){width:84px}.records-table th:nth-child(9){width:176px}.records-table td:nth-child(2),.records-table td:nth-child(4),.records-table td:nth-child(8),.records-table td:nth-child(9){white-space:nowrap;overflow-wrap:normal}.records-table td:first-child{position:sticky;left:0;z-index:2;background:inherit;box-shadow:1px 0 #BDCCDD}.records-table th:first-child{position:sticky;left:0;z-index:5;background:#EAF0F7;box-shadow:1px 0 #BDCCDD}.records-table tbody tr.category-row-a,.records-table tbody tr.category-row-a:hover{background:var(--category-a)}.records-table tbody tr.category-row-b,.records-table tbody tr.category-row-b:hover{background:var(--category-b)}.records-table tbody tr.category-row-c,.records-table tbody tr.category-row-c:hover{background:var(--category-c)}.records-table tbody tr.category-row-d,.records-table tbody tr.category-row-d:hover{background:var(--category-d)}.records-table td.actions-cell{display:table-cell}.records-table .actions{justify-content:flex-start;gap:8px}.cat-badge{border-radius:var(--badge-radius);font-size:14px}.pager{padding:16px 24px;display:flex;align-items:center;justify-content:space-between;flex-direction:row;gap:12px;background:#F8FAFD}.pager-info{font-size:13px}.pager .btn{min-height:44px}.empty{padding:40px 24px;text-align:center}.empty strong{font-size:18px}.empty p{font-size:14px;max-width:480px;margin:8px auto 20px;color:var(--muted)}
 .analytics-filters{grid-template-columns:repeat(4,minmax(150px,1fr)) auto;gap:12px;margin:0 0 20px;padding:20px 24px;border:1px solid var(--line);border-radius:var(--radius);background:white;align-items:end}.analytics-filters label{margin:0}.analytics-filters .field{margin-top:6px}.analytics-filters .btn{min-height:46px}.analytics-explanation{padding:20px 24px;margin:0 0 20px;border:1px solid var(--line);border-left:3px solid var(--navy);border-radius:var(--radius);background:white;font-size:13px}.scoring-head{display:flex;flex-wrap:wrap;gap:16px;align-items:center;justify-content:space-between;font-size:15px}.scoring-badges{display:flex;flex-wrap:wrap;gap:8px}.scoring-badges span{padding:6px 12px;border-radius:8px;font-size:14px;font-weight:700;color:var(--navy)}.score-formulas{display:grid;grid-template-columns:1fr 1.3fr;gap:16px;margin:16px 0 12px}.score-formulas p{margin:0;color:#334D6A}.score-note{margin:0;color:var(--muted);font-size:12px;line-height:1.55}.analytics-explanation details{margin-top:12px;color:var(--muted);font-size:12px}.analytics-explanation summary{cursor:pointer;min-height:28px}.analytics-explanation details p{margin:4px 0 0}#analyticsChips{padding:0 0 12px}#analyticsScope,#analyticsTime{font-size:12px;color:var(--muted);margin:0 0 8px}.analytics-kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:24px 0}.analytics-kpis .metric:before{display:none}.analytics-kpis .metric{min-height:128px}.analytics-kpis .metric-value{font-size:30px}.analytics-kpis .metric-highlight{border-top:3px solid var(--orange);padding-top:18px}.analytics-kpis .leader-card{grid-column:span 2}.analytics-kpis .leader-card .metric-value{font-size:28px}#analyticsReconciliation{padding:12px 16px;background:#ECF6F0;border:1px solid #C7DFD1;color:#225C3D;border-radius:10px;font-size:12px;margin:16px 0 24px}#analyticsWarning{border-radius:10px;font-size:14px;margin-bottom:16px}.analytics-table-wrap{overflow:auto;max-height:540px;overscroll-behavior:contain}.performance-table{display:table;min-width:1760px;width:100%;font-size:14px;line-height:1.5;border-spacing:0;border-collapse:separate}.performance-table thead{position:sticky;top:0;z-index:3;display:table-header-group}.performance-table th{padding:12px;color:white;font-size:13px;min-width:64px;vertical-align:middle}.performance-table th button{min-height:44px;line-height:1.4;padding:0;font-size:13px;white-space:normal}.performance-table td{padding:12px;min-height:44px;white-space:nowrap;text-align:right}.performance-table td[data-key=caller],.performance-table td[data-key=band],.performance-table td[data-key=sample]{text-align:left}.performance-table td[data-key=caller]{font-weight:700}.performance-table tbody .strong-value{background:#FFFAEB}.performance-table tfoot td{font-size:13px}.rank-badge{display:inline-flex;align-items:center;justify-content:center;min-width:36px;min-height:36px;background:var(--navy);color:white;border:0;border-radius:8px;font-size:14px;font-weight:750}.rank-badge:hover{background:#24466C}.band-badge,.sample-badge{font-size:12px;padding:6px 10px;line-height:1.4;border-radius:8px;max-width:220px;white-space:normal}.band-badge{min-height:36px}.sample-badge{background:transparent;border:0;color:var(--muted)}.mobile-table-controls{display:none}.analytics-empty td{text-align:center;padding:32px;white-space:normal}.analytics-empty strong{font-size:18px}.analytics-empty p{font-size:14px;color:var(--muted)}
 .analytics-graphs{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:24px}.graph{padding:24px}.graph header{margin-bottom:16px}.graph h3{font-size:19px;line-height:1.4;margin:0 0 8px}.graph header p{font-size:13px;color:var(--muted);margin:0}.chart-legend{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px;color:var(--muted);margin:0 0 20px}.chart-legend>span:not(.legend-dot){display:inline-grid;place-items:center;padding:4px 10px;min-width:32px;border-radius:6px;color:var(--navy);font-weight:700}.legend-dot{display:inline-block;width:10px;height:10px;background:var(--navy);border-radius:3px}.legend-dot.orange{background:var(--orange)}.chart-row{display:grid;grid-template-columns:minmax(120px,170px) minmax(0,1fr);gap:4px 16px;margin:16px 0;align-items:center;font-size:14px}.chart-row>.link-button{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-height:44px;text-align:left;grid-row:span 2}.chart-row>span:last-child{font-size:12px;color:#435A74;line-height:1.5}.bar-track{height:22px;background:#EBF0F6;border-radius:5px;overflow:hidden}.bar-fill{background:var(--navy);border-radius:5px;min-height:22px}.bar-fill.top-performer{background:var(--orange)}.distribution-row{margin:20px 0}.distribution-row>.link-button{min-height:44px;font-size:14px}.stacked-bar{min-height:44px;border-radius:8px}.segment{min-height:44px;font-size:13px;padding:8px 4px;line-height:1.3;color:var(--navy);white-space:nowrap}.segment-A{background:var(--category-a)}.segment-B{background:var(--category-b)}.segment-C{background:var(--category-c)}.segment-D{background:var(--category-d)}.segment-Other{background:#E8EEF5}.distribution-legend{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.category-detail{min-width:44px;min-height:44px;border:1px solid #CCD7E3;border-radius:8px;font-size:13px;font-weight:650;padding:8px}.category-detail:hover{outline:1px solid var(--navy)}.mix-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:8px 12px;font-size:13px;border-radius:8px}.mix-row .link-button{min-width:44px;min-height:44px}.mix-row>span{font-size:13px}.chart-empty{padding:24px 0;color:var(--muted);font-size:14px}.chart-empty strong{color:var(--navy);font-size:16px}.analytics-footer{font-size:12px;padding:20px 0;margin:24px 0 0}
 dialog{max-height:calc(100dvh - 24px);width:min(720px,calc(100vw - 24px));border-radius:16px;overflow:auto;padding:0;box-shadow:0 20px 60px #061A3340}dialog::backdrop{background:#061A33A6;backdrop-filter:none}.dialog-head{background:var(--navy);padding:16px 24px;position:sticky;top:0;z-index:2}.dialog-head h2{font-size:20px}.close-btn{min-height:44px;min-width:44px}.dialog-help{margin:16px 24px 0;font-size:13px;color:var(--muted)}.form-grid{padding:24px;gap:16px}.form-group label{font-size:14px}.dialog-actions{gap:12px;padding:16px 24px 24px;background:white}.confirm-body{padding:24px}.dialog-feedback{padding:12px 16px;margin:0 24px;background:#FFF0F0;color:#9C2323;border:1px solid #E6BABA;border-radius:8px;font-size:14px}.toast{position:fixed;right:16px;bottom:16px;z-index:60;max-width:min(440px,calc(100vw - 32px));border:1px solid #28486B;border-left:4px solid var(--success);border-radius:10px;background:var(--navy);color:white;padding:12px 8px 12px 16px;display:flex;align-items:center;gap:8px;font-size:14px;line-height:1.5;box-shadow:var(--shadow);pointer-events:none;transform:translateY(8px);transition:opacity var(--motion),transform var(--motion)}.toast.error{border-left-color:#FF9898}.toast.show{transform:translateY(0)}#toastMessage{overflow-wrap:break-word}#dismissToast{flex:0 0 44px;width:44px;min-height:44px;background:transparent;border:0;border-radius:8px;color:white;font-size:22px;pointer-events:auto}#dismissToast:hover{background:#28486B}.toast:not(.show) #dismissToast{visibility:hidden}.loading-rows{display:none;padding:20px 24px}.loading-rows span{display:block;height:36px;margin:12px 0;border-radius:8px;background:#E8EEF5}.loading-rows span:nth-child(2){width:85%}.loading-rows span:nth-child(3){width:70%}[aria-busy=true] .loading-rows{display:block}[aria-busy=true] .metric-value{color:transparent;background:#E8EEF5;border-radius:6px;width:70%;height:36px}[aria-busy=true] .empty{display:none}
 @media(hover:hover){button.metric:hover{background:#F8FAFD;border-color:#839AB6}.view-tab:hover,.btn:hover,.link-button:hover{transition-duration:var(--motion)}}
 @media(max-width:1279px){.topbar-inner{padding:12px 16px;min-height:0;grid-template-columns:minmax(68px,.7fr) minmax(140px,1.3fr) auto;grid-template-areas:"brand brand identity" "tools add signout";column-gap:8px;row-gap:8px}.brandcopy .eyebrow{display:none}.brandcopy h1{font-size:16px;white-space:normal}.brand-group{gap:8px}.identity{flex-direction:row;align-items:center;justify-self:end;gap:8px}.save-state{max-width:none}.save-state #saveState{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.identity #signedUser{max-width:110px;font-size:12px}.tools-toggle{display:inline-flex;grid-area:tools;justify-self:start;min-width:84px}.topbar .btn{min-height:44px;font-size:14px;padding:10px 12px}.header-actions{grid-area:auto;grid-column:1/-1;grid-row:3;display:none;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;border-top:1px solid #34516F;padding:12px 0 0;gap:8px}.header-actions.is-open{display:grid}.header-actions .btn{width:100%;white-space:normal}.tools-print{display:inline-flex}#addBtn{justify-self:start}#signOutBtn{justify-self:end}main{padding:24px 16px}.view-switcher{padding:16px 16px 0}.metrics{gap:12px}.analytics-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.analytics-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.analytics-filters .btn{justify-self:start}.analytics-graphs{grid-template-columns:1fr}.section-head{flex-wrap:wrap}}
 @media(max-width:1023px){.toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}.filter-control:first-child{grid-column:1/-1}.metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.section-head h2{font-size:26px}.score-formulas{grid-template-columns:1fr;gap:8px}}
 @media(max-width:700px){.topbar-inner{padding:12px;grid-template-columns:minmax(68px,.6fr) minmax(138px,1.4fr) 68px}.brandmark{width:36px;height:36px;flex-basis:36px}.brandcopy h1{font-size:14px;line-height:1.4}.identity{gap:5px}.identity #signedUser{max-width:67px;font-size:12px}.topbar .btn{font-size:13px;padding:10px 8px}.tools-toggle{min-width:68px}#addBtn{width:100%;justify-self:stretch}.header-actions{grid-template-columns:repeat(2,minmax(0,1fr))}main{padding:20px 12px}.view-switcher{padding:12px 12px 0}.view-switcher [role=tablist]{display:flex;width:100%;gap:4px}.view-tab{flex:1;padding:10px 8px;font-size:13px;line-height:1.4}.section-head{margin-bottom:20px;gap:16px}.section-head h2{font-size:23px}.section-head p{font-size:14px}.view-actions{width:100%;gap:8px}.view-actions .btn{flex:1;font-size:13px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:20px}.metrics .metric.total{grid-column:1/-1}.metric{padding:16px;min-height:104px}.metric[aria-pressed=true]{padding:15px}.metric-label{font-size:13px}.metric-value{font-size:28px}.panel-head{padding:16px;align-items:flex-start}.panel-head h2{font-size:19px}.summary-table th,.summary-table td{padding:10px 16px}.summary-wrap{min-height:300px}.privacy-note{margin:12px;padding:12px;font-size:12px}.toolbar{padding:16px;gap:12px}.active-filters{padding:0 16px 12px;gap:8px}.filter-chip{min-height:44px;font-size:13px;max-width:100%}.filter-chip span:first-child{max-width:calc(100vw - 112px)}.field,.search{font-size:16px;height:46px}.scroll-hint{display:block;padding:0 16px 12px;font-size:12px}.table-scroll{max-height:60vh}.records-table{min-width:1390px}.records-table td,.records-table th{font-size:13px;padding:12px}.records-table .btn-small{min-height:44px;font-size:13px;padding:8px 10px}.records-table td.actions-cell{padding:12px}.records-table .actions{justify-content:flex-start}.pager{padding:16px;align-items:flex-start;flex-wrap:wrap;gap:12px}.pager-buttons{display:flex;gap:8px}.pager .btn{min-width:100px}.analytics-filters{padding:16px;margin:0 0 16px;gap:12px}.analytics-filters label{font-size:13px}.analytics-filters .btn{width:100%}.analytics-explanation{padding:16px;margin:0 0 16px}.scoring-head{gap:12px}.scoring-badges{gap:8px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%}.scoring-badges span{text-align:center;padding:6px 4px;font-size:14px}.score-formulas{font-size:13px}.analytics-kpis{gap:12px;margin:20px 0}.analytics-kpis .metric{min-height:120px;padding:16px}.analytics-kpis .metric-value{font-size:28px}.analytics-kpis .metric-highlight{padding-top:14px}.analytics-kpis .leader-card{grid-column:1/-1}.analytics-kpis .leader-card .metric-value{font-size:28px}.analytics-table-wrap{max-height:none;overflow:visible}.mobile-table-controls{display:grid;grid-template-columns:1fr auto;gap:8px;padding:16px;border-top:1px solid var(--line);align-items:end}.mobile-table-controls label{grid-column:1/-1;margin:0}.mobile-table-controls .btn{font-size:12px;padding:10px 8px}.performance-table{display:block;min-width:0;width:100%;font-size:14px}.performance-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);display:block}.performance-table thead button{visibility:hidden}.performance-table tbody,.performance-table tfoot{display:block;padding:12px}.performance-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;border:1px solid var(--line);border-radius:12px;padding:12px;margin:0 0 12px;background:white;overflow:hidden}.performance-table td{display:flex;flex-direction:column;align-items:flex-start;text-align:left;min-height:64px;gap:4px;width:auto;border:0;border-bottom:1px solid var(--soft-line);padding:10px 8px;white-space:normal;min-width:0;overflow-wrap:normal;font-size:16px}.performance-table td:before{content:attr(data-label);display:block;font-size:12px;line-height:1.4;font-weight:600;color:var(--muted)}.performance-table td[data-key=caller]{grid-column:1/-1;order:-2;background:#F3F6FA;border-radius:8px}.performance-table td[data-key=caller] .link-button{font-size:20px;min-height:44px}.performance-table td[data-key=overallRank],.performance-table td[data-key=qualityRank]{order:-1}.performance-table td[data-key=score],.performance-table td[data-key=index]{background:#FFF8E9;font-size:24px;font-weight:750}.performance-table td[data-key=sample]{grid-column:1/-1}.performance-table .rank-badge,.performance-table .band-badge{min-height:44px;min-width:44px}.performance-table .sample-badge{padding:0;font-size:12px;max-width:none}.performance-table tfoot{padding-top:0;background:transparent}.performance-table tfoot tr{background:var(--navy);color:white}.performance-table tfoot td:before{color:#CFDAE8}.performance-table tfoot td[data-key=caller],.performance-table tfoot td[data-key=score],.performance-table tfoot td[data-key=index]{background:transparent}.performance-table tfoot td[data-key=overallRank],.performance-table tfoot td[data-key=qualityRank],.performance-table tfoot td[data-key=sample],.performance-table tfoot td[data-key=band]{display:none}.analytics-empty{display:block}.analytics-empty td{display:block}.analytics-empty td:before{display:none}.graph{padding:16px}.analytics-graphs{gap:16px;margin-top:20px}.graph h3{font-size:19px}.chart-row{grid-template-columns:1fr;gap:4px;margin:20px 0}.chart-row>.link-button{grid-row:auto;white-space:nowrap;font-size:14px}.chart-row>span:last-child{grid-column:1;font-size:13px}.bar-track{height:24px}.bar-fill{min-height:24px}.mix-row{gap:8px;padding:8px}.mix-row>span{font-size:13px}.graph header p{font-size:13px}.analytics-footer{font-size:12px}.form-grid{grid-template-columns:1fr;padding:16px;gap:16px}.dialog-head{padding:12px 16px}.dialog-head h2{font-size:20px}.dialog-help{margin:12px 16px 0}.dialog-actions{padding:16px;flex-wrap:wrap}.dialog-actions .btn{flex:1;min-height:44px}.dialog-feedback{margin:0 16px}.toast{bottom:12px;right:12px;max-width:calc(100vw - 24px);font-size:14px}.close-btn{font-size:24px}#analyticsReconciliation{font-size:12px;line-height:1.6}}
 @media(max-width:599px){.toolbar,.analytics-filters{grid-template-columns:1fr}.filter-control:first-child{grid-column:auto}.analytics-filters .btn{justify-self:stretch}.analytics-graphs{grid-template-columns:1fr}}
 @media(max-width:359px){.analytics-kpis{grid-template-columns:1fr}.analytics-kpis .leader-card{grid-column:auto}.metric-value{font-size:28px}.section-head h2{font-size:22px}.view-tab{padding:10px 6px}.identity #signedUser{max-width:64px}.mobile-table-controls{grid-template-columns:1fr}.performance-table td{padding:10px 6px}.performance-table td:before{font-size:12px}.filter-chip{font-size:12px}}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{
 .topbar,.view-switcher,.tools-toggle,.header-actions,.view-actions,.mobile-table-controls,.active-filters,.toolbar,.analytics-filters,.scroll-hint,.toast,.loading-rows,.empty button,.chart-empty button,dialog{display:none!important}.scroll-frame{overflow:visible;position:static}.scroll-frame:before,.scroll-frame:after{display:none!important}.analytics-explanation{display:block!important;font-size:10px;padding:10px;margin:0 0 12px;border:1px solid #D8E1EC}.scoring-head{display:flex;align-items:center;gap:20px}.scoring-badges{display:flex;gap:8px}.scoring-badges span{padding:4px 10px;border-radius:5px;print-color-adjust:exact}.score-formulas{display:block}.score-formulas p{margin:4px 0}.score-note{font-size:9px}.analytics-explanation details{display:none}.analytics-kpis{grid-template-columns:repeat(4,1fr)}.metric,.performance-table tr,.records-table tr{break-inside:avoid}.performance-table thead{display:table-header-group;position:static;clip-path:none;overflow:visible;width:auto;height:auto}.performance-table tfoot{display:table-footer-group}.performance-table th button{visibility:visible}.performance-table td:first-child,.records-table td:first-child,.records-table th:first-child{position:static;box-shadow:none}.performance-table td:before{display:none}.performance-table td{font-size:10px}.rank-badge,.category-detail{border:0;background:transparent;color:inherit;font:inherit;padding:0;min-width:0;min-height:0}.distribution-legend{display:none}.graph header p,.chart-legend{font-size:10px}.chart-legend{display:flex;gap:8px}.chart-legend span{padding:2px 6px}.graph h3{font-size:14px}.graph{overflow:visible}.bar-track,.bar-fill,.segment,.mix-row,.records-table tr{print-color-adjust:exact;-webkit-print-color-adjust:exact}.summary-table th{display:table-cell}.summary-table thead{display:table-header-group}.privacy-note .info-icon{display:none}#analyticsScope,#analyticsTime{font-size:10px}.records-table{table-layout:auto}#resultsCount{font-size:11px}.performance-table th:nth-child(9){width:5%}
}

/* Brand artwork: reserved dimensions prevent loading shifts; the viewport trims only the source's white outer edge. */
.brandmark.brandmark-logo{position:relative;display:block;padding:0;overflow:hidden;background:#020B1C;border:1px solid rgba(226,193,115,.24);box-shadow:none;isolation:isolate}
.brandmark-logo img{position:absolute;left:0;top:-2.65%;display:block;width:100%;height:auto;max-width:none;object-fit:contain}
.login-card .brandmark-logo{width:168px;height:159px;border-radius:16px;margin:0 auto 20px}
@media screen{
 .topbar-inner{padding-top:8px;padding-bottom:8px}
 .topbar .brandmark-logo{flex:0 0 64px;width:64px;height:61px;border-radius:10px}
 @media(max-width:1279px){.topbar .brandmark-logo{flex-basis:48px;width:48px;height:46px}}
 @media(max-width:700px){.topbar .brandmark-logo{flex-basis:44px;width:44px;height:42px;border-radius:8px}.topbar .brandcopy h1{font-size:13px}}
}

/* Desktop operations workspace */
:root{--radius:10px;--control-radius:8px;--canvas:#F5F6F8;--line:#DEE3EA;--shadow:0 1px 4px rgba(11,39,72,.04)}
@media screen{
 body[data-section]{background:var(--canvas);font-size:14px}
 body[data-section] .topbar,body[data-section] .view-switcher{display:none}
 .app-sidebar{position:fixed;inset:0 auto 0 0;width:216px;background:#091D35;color:#D5DEEA;z-index:60;display:flex;flex-direction:column;padding:24px 14px 18px;overflow-y:auto}
 .sidebar-brand{display:flex;flex-direction:column;align-items:flex-start;padding:0 12px 24px;border-bottom:1px solid #23374D;gap:12px}.sidebar-brand img{width:86px;height:82px;object-fit:contain;background:#020B1C;border-radius:8px}.sidebar-brand strong{font-size:16px;line-height:1.45;color:white;letter-spacing:.1px}
 .nav-caption{font-size:10px;font-weight:700;letter-spacing:.12em;color:#92A3B9;padding:24px 14px 10px}.app-sidebar nav{display:grid;gap:6px}.app-sidebar nav button{display:flex;align-items:center;gap:12px;text-align:left;border:0;border-left:3px solid transparent;border-radius:7px;background:transparent;color:#C6D2E3;padding:12px 10px;font-size:13px;min-height:44px;cursor:pointer;font-weight:600}.app-sidebar nav button svg{width:18px;height:18px;flex:0 0 18px}.app-sidebar nav button:hover{background:#122D4B;color:white}.app-sidebar nav button[aria-current=page]{background:#20344B;border-left-color:#F59E0B;color:#FFC365}.sidebar-bottom{margin-top:auto;padding:24px 10px 0}.sidebar-person{display:flex;gap:10px;align-items:center;margin:20px 0 8px;padding-top:16px;border-top:1px solid #23374D}.sidebar-bottom .save-state{color:#CCD9E9;font-size:11px;max-width:none;align-items:flex-start}.sidebar-bottom .save-state #saveState{position:static;width:auto;height:auto;clip:auto;white-space:normal;margin:0;overflow:visible}.sidebar-bottom .dot{margin-top:4px}.sidebar-bottom #signedUser{font-size:13px;color:#F2F5F9;max-width:130px}.sidebar-bottom #signOutBtn{font-size:12px;min-height:36px;padding:8px 0;color:#AEBED2}
 .avatar{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;background:#DDE6EF;color:#173653;font-size:12px;font-weight:700;border-radius:50%;flex:0 0 32px}
 .app-bar{margin-left:216px;min-height:72px;padding:12px 24px;display:flex;gap:24px;align-items:center;background:white;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:45}.breadcrumb{display:flex;flex-direction:column;min-width:140px;gap:2px}.breadcrumb span{font-size:11px;color:#748196}.breadcrumb strong{font-size:15px;color:#152C49}.bar-actions{margin-left:auto;display:flex;align-items:center;gap:14px}.bar-profile{display:flex;align-items:center;gap:8px;font-size:12px;white-space:nowrap}.app-bar #addBtn{font-size:13px;padding:10px 14px;min-height:40px}.app-bar #globalSearchForm{display:flex;gap:8px;align-items:center;max-width:430px;flex:1;min-width:150px;padding:0 10px;background:#F7F8FA;border:1px solid #E3E7ED;border-radius:8px;height:40px}.app-bar svg,.desktop-view svg,.business-record-check svg{width:18px;height:18px;flex:0 0 18px}.app-bar #globalSearch{width:100%;min-width:0;border:0;background:none;outline-offset:3px;font-size:12px;color:var(--ink)}#globalSearchForm button,.notification-button{border:0;background:transparent;color:#66768B;padding:8px;cursor:pointer;min-width:32px;display:flex}.notification-button{min-width:40px;min-height:40px;align-items:center;justify-content:center}.attention-notice{position:absolute;right:24px;top:65px;width:320px;max-width:calc(100vw - 24px);padding:18px;background:white;border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 35px #0B274824;font-size:13px}
 body[data-section] main{margin:0 0 0 216px;width:calc(100% - 216px);max-width:none;padding:24px;min-width:0}.section-head{margin-bottom:20px;gap:12px}.section-head h2{font-size:24px;line-height:1.3}.section-head p{font-size:13px;margin-top:5px}.section-head .eyebrow{font-size:10px;letter-spacing:.12em;margin-bottom:6px}.section-head .btn{min-height:38px;font-size:12px;padding:9px 12px}.panel{border-radius:10px;box-shadow:var(--shadow)}.panel-head{padding:16px 18px;gap:10px}.panel-head h2,.panel-head h3{font-size:15px;margin:0;color:#132C4A;font-weight:700}.panel-head p{margin:4px 0 0;font-size:11px;color:#65758B}.btn{border-radius:8px}.business-record-check{display:flex;align-items:center;gap:6px;font-size:11px;color:#3D6B54;margin:14px 0 0}.business-record-check svg{width:14px;height:14px}
 .overview-kpis{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:12px;margin-bottom:20px}.overview-kpi{background:#fff;border:1px solid var(--line);border-radius:10px;min-height:116px;padding:15px 14px;display:flex;flex-direction:column;box-shadow:var(--shadow);position:relative;overflow:hidden}.overview-kpi>span{font-size:11px;font-weight:600;color:#586A81;line-height:1.35;min-height:30px}.overview-kpi>strong{font-size:27px;line-height:1.2;letter-spacing:-.5px;color:#102B49}.overview-kpi>small{font-size:10px;color:#68788D;margin-top:7px}.overview-kpi:before{content:'';position:absolute;left:0;right:0;top:0;height:3px;background:#DCE4EE}.kpi-A:before{background:#9ABB8C}.kpi-B:before{background:#E9CB76}.kpi-C:before{background:#A3BEDA}.kpi-D:before{background:#E6AAAA}.kpi-points:before,.kpi-index:before{background:var(--orange)}
 .overview-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(300px,1fr);gap:18px}.overview-grid>.panel{min-width:0;margin:0}.overview-table-wrap{overflow:auto}.overview-table{width:100%;border-collapse:collapse;font-size:12px;table-layout:fixed}.overview-table th{background:#F5F7FA;color:#5C6E85;font-size:10px;font-weight:700;text-align:left;padding:10px 12px;white-space:nowrap}.overview-table td{padding:10px 12px;border-bottom:1px solid #EEF1F5;color:#253E58;overflow-wrap:break-word;vertical-align:middle}.overview-table tbody tr:last-child td{border-bottom:0}.overview-table .link-button{font-size:12px;min-height:30px;font-weight:650;text-decoration:none;max-width:100%;text-align:left;line-height:1.4}.overview-table .link-button:hover{text-decoration:underline}.priority-panel .overview-table th:first-child{width:26%}.priority-panel .overview-table th:nth-child(2){width:17%}.priority-panel .overview-table th:nth-child(3){width:14%}.priority-panel .queue-remark{font-size:11px;line-height:1.5}.matrix-panel .overview-table{table-layout:auto}.matrix-panel .overview-table th:not(:first-child),.matrix-panel .overview-table td:not(:first-child){text-align:center}.overview-total td{background:#102E50;color:white;font-weight:700}.count-pill{border-radius:20px;background:#F1F4F8;padding:5px 9px;font-size:10px;color:#56677D;white-space:nowrap}.leader-list{padding:0 18px 8px}.leader-row{width:100%;display:flex;align-items:center;gap:12px;border:0;border-bottom:1px solid #EEF1F5;padding:11px 0;background:white;cursor:pointer;text-align:left;color:#16324F}.leader-row:last-child{border-bottom:0}.leader-row:hover{background:#F7F9FC}.leader-rank{display:flex;width:26px;height:26px;align-items:center;justify-content:center;border-radius:7px;font-size:11px;background:#EFF3F7;color:#587087}.leader-row:first-child .leader-rank{color:#986100;background:#FFF0CB}.leader-name{flex:1;font-weight:650;font-size:12px}.leader-row small{display:block;font-size:10px;color:#697A90;font-weight:400;margin-top:3px}.leader-row>strong{text-align:right;font-size:17px}.distribution-content{padding:8px 18px 18px}.distribution-stat{display:grid;grid-template-columns:1fr auto;gap:6px;width:100%;padding:8px 0;border:0;background:transparent;cursor:pointer;text-align:left;font-size:12px;color:#40566F}.distribution-track{height:7px;background:#F0F3F7;border-radius:4px;overflow:hidden}.distribution-track>span{display:block;height:100%;border-radius:4px}.distribution-stat small{font-size:10px;min-width:36px;text-align:right;color:#708197}.activity-list{list-style:none;padding:0 18px 10px;margin:0}.activity-list li{display:flex;align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid #EEF1F5;font-size:12px}.activity-list li:last-child{border:0}.activity-list p{margin:3px 0 0;color:#738197;font-size:11px}.activity-list time{font-size:10px;color:#6B7B90;margin-left:auto;white-space:nowrap}.activity-dot{width:7px;height:7px;background:#85A68E;border-radius:50%;flex:0 0 7px}.attention-content{padding:0 18px 18px}.attention-count{font-size:30px;color:#A36A08}.attention-content p{font-size:12px;color:#6A798F;margin:5px 0 12px}.attention-customer{border:0;border-bottom:1px solid #EEF1F5;background:white;width:100%;padding:10px 0;display:flex;justify-content:space-between;align-items:center;color:#284460;text-align:left;font-size:12px;cursor:pointer}
 #registerView>.metrics,#registerView .layout>.panel:first-child{display:none}#registerView .layout{display:block}#registerView .section-head .eyebrow{display:none}#registerView .section-head h2{font-size:24px}#registerView .panel-head{padding:14px 16px}#registerView .toolbar{display:grid;grid-template-columns:minmax(190px,1.7fr) minmax(110px,.9fr) minmax(110px,.8fr) minmax(140px,1.15fr) auto;gap:10px;padding:14px 16px;align-items:end}#registerView .filter-control{min-width:0}#registerView .filter-control:first-child{grid-column:auto}#registerView .filter-control label,#registerView .filter-control>span:first-child{font-size:11px}#registerView .field,#registerView .search{height:40px;min-height:40px;font-size:12px;padding:8px 10px}#registerView #clearFiltersBtn{height:40px;min-height:40px;font-size:12px;padding:8px 10px}#registerView .active-filters{padding:0 16px 12px;font-size:11px}#registerView .filter-chip{min-height:30px;font-size:11px;padding:5px 10px}#registerView .table-scroll{max-height:calc(100vh - 338px);min-height:240px}#registerView .records-table{width:100%;min-width:0;table-layout:fixed}#registerView .records-table th,#registerView .records-table td{font-size:12px;padding:10px 8px;font-weight:500;line-height:1.45}#registerView .records-table th{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.03em}#registerView .records-table td.customer{font-weight:650}#registerView .records-table th:nth-child(1){width:4%}#registerView .records-table th:nth-child(2){width:8%}#registerView .records-table th:nth-child(3){width:14%}#registerView .records-table th:nth-child(4){width:11%}#registerView .records-table th:nth-child(5){width:14%}#registerView .records-table th:nth-child(6){width:14%}#registerView .records-table th:nth-child(7){width:16%}#registerView .records-table th:nth-child(8){width:6%}#registerView .records-table th:nth-child(9){width:13%}#registerView .records-table .actions{display:flex;gap:4px;flex-wrap:wrap}#registerView .records-table .btn-small{padding:5px 7px;min-height:30px;font-size:11px}#registerView .cat-badge{font-size:11px;min-width:24px;padding:3px 5px}#registerView .pager{padding:12px 16px;font-size:12px}#registerView .pager .btn{min-height:34px;font-size:12px;padding:7px 12px}.cell-remark{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;line-height:1.5}.cell-remark:focus{display:block;outline:2px solid #1763A6}
 #analyticsView .section-head{margin-bottom:16px}#analyticsView .analytics-filters{grid-template-columns:repeat(4,minmax(0,1fr)) auto;padding:14px;gap:12px;border-radius:10px}#analyticsView .analytics-filters label{font-size:11px}#analyticsView .field{height:38px;min-height:38px;font-size:12px}#analyticsView .analytics-filters .btn{font-size:12px;min-height:38px;padding:8px 10px}#analyticsView .analytics-explanation{padding:12px 16px;margin:0 0 12px;font-size:12px}#analyticsView .score-formulas{font-size:11px}#analyticsView .score-note{font-size:10px}#analyticsView .scoring-badges span{font-size:11px;padding:4px 8px}#analyticsView .analytics-kpis{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:16px 0}#analyticsView .analytics-kpis .metric{padding:14px;min-height:100px;grid-column:auto}#analyticsView .metric-label{font-size:11px}#analyticsView .metric-value{font-size:24px}#analyticsView .leader-card .metric-value{font-size:22px}#analyticsView .metric-context{font-size:10px}#analyticsView .analytics-graphs{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.performance-table{min-width:1560px}.performance-insights{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}.insight{padding:16px;background:white;border:1px solid var(--line);border-radius:10px}.insight h3{font-size:12px;margin:0 0 6px}.insight strong{font-size:18px}.insight p{font-size:11px;color:#65758B;margin:5px 0 0}.trend-area{grid-column:1/-1}.trend-bars{display:flex;gap:12px;align-items:end;padding-top:12px}.trend-day{flex:1;min-width:0;text-align:center;font-size:10px;color:#61758D}.trend-day span{display:block;background:#244A6D;border-radius:4px 4px 0 0;max-width:48px;margin:6px auto;min-height:2px}.trend-day strong{font-size:12px}#analyticsReconciliation{padding:6px 0;font-size:11px;background:transparent;border:0}#analyticsScope,#analyticsTime{font-size:11px;margin:6px 0}#analyticsView .graph{padding:18px}#analyticsView .graph h3{font-size:16px}#analyticsView .graph header p{font-size:11px}
 .report-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.report-card{border:1px solid var(--line);background:white;border-radius:10px;padding:24px;display:flex;flex-direction:column;align-items:flex-start;min-height:238px}.report-card>svg,.backup-card>svg{width:28px;height:28px;color:#466789;margin-bottom:14px}.report-card h3,.backup-card h3{font-size:16px;margin:0 0 8px}.report-card p,.backup-card p{font-size:13px;line-height:1.6;color:#63758B;margin:0 0 18px}.report-card .btn{margin-top:auto;display:flex;gap:12px;align-items:center;font-size:12px;min-height:38px}.report-card .btn svg{width:15px;height:15px}.report-scope{padding:12px 16px;border:1px solid #DCE5EF;background:#ECF2F8;border-radius:8px;font-size:12px;color:#46617D;margin-bottom:20px}.backup-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;max-width:1050px}.backup-card{padding:28px}.backup-status{margin-top:24px;border-top:1px solid var(--line);padding-top:20px;display:flex;flex-direction:column;gap:6px}.backup-status span{font-size:11px;color:#63758B}.backup-status strong{font-size:13px}.backup-status small{font-size:11px;color:#6A7A90}.backup-card .muted{font-size:11px;margin-top:18px}.login-screen{background:#091D35}.login-card{background:white;color:var(--ink);box-shadow:0 16px 60px #0003;border:1px solid #D6DFE9;border-top:3px solid var(--orange);border-radius:12px;padding:26px;width:min(390px,calc(100vw - 32px))}.login-card h1{font-size:22px;color:var(--ink)}.login-card p,.login-card label,.login-card .remember{color:#5A6D83}.login-card .brandmark-logo{width:116px;height:110px;margin-bottom:18px}.login-card #loginStatus{color:#53677F;font-size:12px}.login-card .field{font-size:15px;height:44px}
 @media(min-width:1600px){.overview-grid{grid-template-columns:minmax(0,1.8fr) minmax(340px,1fr)}body[data-section] main{padding:28px 32px}#registerView .records-table th,#registerView .records-table td{font-size:13px}.overview-table{font-size:13px}.overview-table .link-button{font-size:13px}.overview-kpi{padding:18px}}
 @media(max-width:1100px){.app-sidebar{width:190px;padding-left:10px;padding-right:10px}.app-bar{margin-left:190px;padding:12px 16px;gap:12px}body[data-section] main{margin-left:190px;width:calc(100% - 190px);padding:18px}.bar-profile>span:last-child{display:none}.breadcrumb{min-width:110px}.overview-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}.overview-grid{grid-template-columns:1fr}.report-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#registerView .toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}#registerView .records-table{min-width:1060px}#analyticsView .analytics-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}#analyticsView .analytics-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
 @media(max-width:760px){.app-sidebar{position:relative;inset:auto;width:100%;padding:12px;display:block}.sidebar-brand{padding:0 0 12px;flex-direction:row;align-items:center;gap:12px}.sidebar-brand img{width:48px;height:46px}.sidebar-brand strong{font-size:14px}.sidebar-brand br{display:none}.nav-caption,.sidebar-bottom{display:none}.app-sidebar nav{display:flex;gap:6px;overflow:auto;margin-top:10px}.app-sidebar nav button{flex:0 0 auto;padding:10px;font-size:12px}.app-sidebar nav button svg{display:none}.app-bar{margin-left:0;padding:10px 12px;position:relative;gap:10px;flex-wrap:wrap}.breadcrumb{display:none}.app-bar #globalSearchForm{order:2;min-width:100%;max-width:none}.bar-actions{width:100%;justify-content:space-between;gap:8px}.bar-profile>span:last-child{display:block}.app-bar #addBtn{min-height:44px}.notification-button{min-height:44px}.app-bar .attention-notice{top:60px}.sidebar-bottom #signOutBtn{display:block}body[data-section] main{margin-left:0;width:100%;padding:16px 12px}.overview-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.overview-kpi:last-child{grid-column:1/-1}.overview-grid{gap:14px}.overview-table{min-width:530px}.report-grid,.backup-grid{grid-template-columns:1fr}.section-head h2{font-size:22px}#registerView .toolbar{grid-template-columns:1fr}#registerView .table-scroll{max-height:65vh}#registerView .records-table{min-width:1200px}#registerView .field,#registerView .search{font-size:16px;min-height:44px}#registerView .records-table .btn-small{min-height:44px}.performance-insights{grid-template-columns:1fr}#analyticsView .analytics-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}#analyticsView .analytics-graphs{grid-template-columns:1fr}#analyticsView .analytics-filters{grid-template-columns:1fr}.performance-table{min-width:0}.trend-bars{gap:6px}.app-sidebar #signOutBtn{display:block}.login-card{padding:24px}}
}
@media print{.app-sidebar,.app-bar,.report-scope,.report-grid,.backup-grid{display:none!important}body[data-section] main{margin:0;width:100%;padding:0;max-width:none}.overview-kpis{display:grid;grid-template-columns:repeat(7,1fr);gap:8px}.overview-kpi{border:1px solid #D8E1EC;padding:8px;display:flex;flex-direction:column;font-size:10px}.overview-kpi strong{font-size:18px}.overview-kpi small{font-size:9px}.overview-grid{display:block}.overview-grid>.panel{margin-top:12px;break-inside:avoid}.overview-table{width:100%;border-collapse:collapse;font-size:10px}.overview-table td,.overview-table th{padding:5px;border:1px solid #DDD}.overview-table thead{display:table-header-group}.overview-total td{background:#102E50;color:white;print-color-adjust:exact}.leader-row{display:flex;gap:20px;background:none;border:0;font-size:12px;padding:5px}.leader-row small{margin-left:8px}.distribution-stat{display:flex;gap:12px;border:0;background:none}.activity-list{font-size:10px}.attention-customer svg,.business-record-check svg{display:none}.business-record-check{font-size:10px}.performance-insights{display:block}.insight{font-size:10px;break-inside:avoid}.trend-bars{display:flex;gap:12px}.trend-day span{display:block;background:#244A6D;min-height:2px;print-color-adjust:exact}.cell-remark{display:block}.overview-table .link-button{text-align:left}.app-sidebar+header{display:none}}
@media screen{.sidebar-logo{width:86px;height:81px;border-radius:8px;overflow:hidden;position:relative;background:#020B1C}.sidebar-logo img{position:absolute;top:-2.65%;left:0;width:100%;height:auto;max-width:none;border-radius:0}.sidebar-person #sidebarIdentity{min-width:0}.sidebar-person #signedUser{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#registerView .toolbar{grid-template-columns:minmax(170px,1.5fr) minmax(100px,.85fr) minmax(100px,.7fr) minmax(140px,1.1fr) auto 88px}#registerView .toolbar #resultsCount{font-size:11px;line-height:1.4;align-self:end;min-height:40px;display:flex;align-items:center;color:#65758B}#registerView #searchInput{padding-left:34px}@media(max-width:1100px){#registerView .toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.sidebar-logo{width:48px;height:46px;flex:0 0 48px}.sidebar-logo img{width:100%;height:auto}.sidebar-bottom{display:flex;padding:8px 0 0;justify-content:space-between;align-items:center;gap:12px}.sidebar-person{display:none}.sidebar-bottom #signOutBtn{min-height:44px;padding:8px;font-size:12px}.sidebar-bottom .save-state{font-size:11px}#registerView .toolbar{grid-template-columns:1fr}#registerView .toolbar #resultsCount{min-height:20px}.trend-bars{flex-wrap:wrap}.trend-day{min-width:70px}}}
@media screen and (max-width:760px){.bar-profile{min-width:0;flex:1}.bar-profile>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bar-actions #primaryAction{flex-shrink:0}}

@media screen{#registerView .records-table td:nth-child(4){white-space:normal;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}}

.restore-alternative{padding:16px 24px;border-top:1px solid #DEE3EA}.restore-alternative p{font-size:12px;color:#65758B;margin:8px 0 0}#restoreDialog{max-width:640px}#restoreDialog .confirm-body{padding:8px 24px}#restoreDialog .dialog-actions{flex-wrap:wrap}#restoreSummary{font-weight:600;font-size:13px}

/* COREAXIS developer credit */
@media screen{
.brand-credit{display:flex;flex-direction:column;gap:5px;border-top:1px solid #23374d;margin-top:10px;padding-top:12px}
.brand-credit>span{font-size:10px;line-height:1.3;letter-spacing:.11em;text-transform:uppercase;color:#aebed2}
.brand-credit>strong{font-size:17px;line-height:1.2;letter-spacing:.14em;font-weight:800;color:#fff}
.brand-credit>strong>span{color:#ffb53b}
.login-card .brand-credit{align-items:center;border-color:#e1e7ee;margin-top:8px;padding-top:17px}
.login-card .brand-credit>span{color:#63758b}
.login-card .brand-credit>strong{color:#0b2039;font-size:19px}
.login-card .brand-credit>strong>span{color:#a96300}
@media(min-width:761px) and (max-height:800px){.sidebar-brand{padding-bottom:16px}.nav-caption{padding-top:16px}.sidebar-bottom{padding-top:16px}.sidebar-person{margin-top:12px;padding-top:12px}}
@media(max-width:760px){.sidebar-bottom{flex-wrap:wrap}.sidebar-bottom .brand-credit{flex-basis:100%;flex-direction:row;align-items:center;justify-content:center;gap:9px;margin-top:0;padding-top:9px}.sidebar-bottom .brand-credit>strong{font-size:13px}}
}

/* Shared month scope and register month column */
@media screen{.month-scope{margin-left:216px;padding:16px 24px 0;display:flex;align-items:center;gap:12px;font-size:12px;color:#52677f}.month-scope label{font-weight:700}.month-scope select{width:145px;min-height:38px;font-size:12px}.month-scope>span{font-size:11px}#registerView .toolbar{grid-template-columns:minmax(135px,1.4fr) minmax(85px,.8fr) minmax(85px,.7fr) minmax(120px,1fr) 110px auto 75px;gap:10px}#registerView .records-table th:nth-child(1){width:4%}#registerView .records-table th:nth-child(2){width:8%}#registerView .records-table th:nth-child(3){width:13%}#registerView .records-table th:nth-child(4){width:10%}#registerView .records-table th:nth-child(5){width:12%}#registerView .records-table th:nth-child(6){width:12%}#registerView .records-table th:nth-child(7){width:14%}#registerView .records-table th:nth-child(8){width:6%}#registerView .records-table th:nth-child(9){width:9%}#registerView .records-table th:nth-child(10){width:12%}#registerView .records-table td:nth-child(9){white-space:nowrap;font-size:11px}@media(max-width:1100px){.month-scope{margin-left:190px}#registerView .toolbar{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:760px){.month-scope{margin-left:0;flex-wrap:wrap;padding:12px}#registerView .toolbar{grid-template-columns:1fr}.month-scope>span{flex-basis:100%}}}
@media print{.month-scope{margin:0;padding:10px;font-size:12px}.month-scope>span{display:none}}

@media screen{#callerDialog{width:min(440px,calc(100vw - 32px))}#callerDialog .form-group{padding:0 22px}#callerFeedback{padding:0 22px;font-size:13px;color:#8b2f23;min-height:20px}.add-caller-inline{font-size:12px;min-height:30px}#addCallerBtn{font-size:12px;min-height:36px}}
@media print{#addCallerBtn,#callerDialog{display:none!important}}
/* Sliding workspace, saved daylight preference, and dedicated print reports. */
#professionalPrint{display:none}
@media screen{
 .shell-icon{width:40px;height:40px;flex:0 0 40px;border:1px solid #dce3ec;border-radius:9px;background:#fff;color:#274763;display:inline-flex;align-items:center;justify-content:center}
 .shell-icon svg{width:21px;height:21px}.shell-icon:hover{background:#eef3f9}#daylightToggle[aria-pressed="true"]{background:#fff5d9;border-color:#e8be54;color:#875800}
 .app-sidebar{transition:transform .24s ease,visibility .24s;will-change:transform}
 .app-bar,body[data-section] main,.month-scope{transition:margin-left .24s ease,width .24s ease}
 body[data-sidebar="closed"] .app-sidebar{transform:translateX(-100%);visibility:hidden}
 body[data-sidebar="closed"] .app-bar,body[data-sidebar="closed"] .month-scope{margin-left:0}
 body[data-sidebar="closed"][data-section] main{margin-left:0;width:100%}
 body[data-theme="daylight"] .app-sidebar{background:#fff;color:#193958;border-right:1px solid #dbe3ed}
 body[data-theme="daylight"] .sidebar-brand strong,body[data-theme="daylight"] #signedUser,body[data-theme="daylight"] #signOutBtn,body[data-theme="daylight"] .brand-credit>strong{color:#173553}
 body[data-theme="daylight"] .app-sidebar nav button{color:#435a73}
 body[data-theme="daylight"] .app-sidebar nav button[aria-current="page"]{background:#fff0cc;color:#7c5100}
 body[data-theme="daylight"] .sidebar-bottom .save-state{color:#315644}
 body[data-theme="daylight"] .nav-caption,body[data-theme="daylight"] .brand-credit>span{color:#65758b}
 body[data-theme="night"]{--ink:#e1eaf4;--muted:#a5b6c9;--line:#34485f;--panel:#13283f;--canvas:#0b192a;--shadow:0 8px 24px #0002;color-scheme:dark;background:var(--canvas);color:var(--ink)}
 body[data-theme="night"] :is(.app-bar,.panel,.overview-kpi,.metric,.report-card,.backup-card,.insight,.graph,dialog,.attention-notice,.analytics-filters,.analytics-explanation){background:#13283f;color:#e1eaf4;border-color:#34485f}
 body[data-theme="night"] :is(input,select,textarea,.field,.search,.btn-secondary,.shell-icon,#globalSearchForm){background:#0d2035;color:#e1eaf4;border-color:#42566e}
 body[data-theme="night"] :is(h1,h2,h3,.panel-head h2,.panel-head h3,.metric-value,.overview-kpi strong,.breadcrumb strong,.link-button,.notification-button){color:#edf3fa}
 body[data-theme="night"] :is(p,small,.muted,.eyebrow,.metric-label,.metric-context,.overview-kpi>span,.month-scope,.report-card p,.backup-card p,.panel-head p,.insight p,.report-scope,.leader-row small,.activity-list time,.activity-list p,.attention-content p,.section-head p){color:#afc1d5}
 body[data-theme="night"] :is(.leader-row,.attention-customer,.distribution-stat){background:#13283f;color:#dce8f6;border-color:#34485f}
 body[data-theme="night"] :is(.records-table,.performance-table,.overview-table) td{background:#13283f;color:#e1eaf4;border-color:#34485f}
 body[data-theme="night"] :is(.records-table,.performance-table,.overview-table) tr:nth-child(even) td{background:#193149}
 body[data-theme="night"] :is(.records-table,.performance-table,.overview-table) th{background:#203e5d;color:#f4f7fb}
 body[data-theme="night"] .performance-table .strong-value{background:#3b321e;color:#ffe2a4}
 body[data-theme="night"] :is(.report-scope,.filter-chip,.count-pill,.avatar,.leader-rank){background:#203a53;color:#d5e5f5;border-color:#42566e}
 body[data-theme="night"] .btn-primary{color:#102238}
 @media(max-width:760px){.app-sidebar{position:fixed;inset:72px auto 0 0;width:240px;z-index:60;display:flex;padding:18px;box-shadow:8px 0 30px #0003}.app-sidebar nav{display:block;overflow:visible}.app-sidebar nav button{width:100%;text-align:left}.app-sidebar nav button svg{display:block}.sidebar-bottom{display:flex;flex-direction:column;align-items:stretch;margin-top:auto}.app-bar{position:sticky;top:0;z-index:65}.bar-actions{width:auto;margin-left:auto}.bar-profile{display:none}.app-bar #globalSearchForm{display:none}.sidebar-brand br{display:block}.sidebar-brand{align-items:flex-start;flex-direction:column}.sidebar-logo{width:80px;height:76px}.app-sidebar .nav-caption{display:block}}
 @media(prefers-reduced-motion:reduce){.app-sidebar,.app-bar,body[data-section] main,.month-scope{transition:none}}
}
@media print{
 @page{size:A4 landscape;margin:12mm 10mm}
 body.printing-report{background:white!important;color:#172b45!important}
 body.printing-report>*:not(#professionalPrint){display:none!important}
 body.printing-report #professionalPrint{display:block;font:9pt/1.4 Arial,sans-serif;color:#172b45;background:white}
 .report-letterhead{display:flex;justify-content:space-between;align-items:center;border-bottom:3px solid #dba32c;padding-bottom:12px;margin-bottom:12px}
 .report-letterhead strong{font-size:24pt;letter-spacing:2px}.report-letterhead strong span{color:#ad740b}.report-letterhead h1{font-size:18pt;margin:0;text-align:right}.report-letterhead p{margin:3px 0;font-size:9pt}.report-letterhead>div:last-child p{text-align:right}
 .report-selection{padding:8px 10px;background:#eef3f8;border:1px solid #d6e0eb;font-size:9pt;overflow-wrap:anywhere}
 .report-metrics{display:flex;gap:10px;margin:12px 0 18px}.report-metrics>div{flex:1;border:1px solid #d6e0eb;padding:8px 12px}.report-metrics span{display:block;font-size:8pt;color:#50667d}.report-metrics strong{display:block;font-size:18pt}
 #professionalPrint h2{font-size:12pt;margin:16px 0 8px;break-after:avoid}
 .report-table{width:100%;table-layout:fixed;border-collapse:collapse;margin-bottom:16px;font-size:8pt}
 .report-table thead{display:table-header-group}.report-table tr{break-inside:avoid}.report-table th{background:#173553;color:white;font-weight:700;text-align:left}.report-table th,.report-table td{padding:7px 6px;border:1px solid #d4dfea;vertical-align:top;overflow-wrap:anywhere}.report-table tr:nth-child(even) td{background:#f2f6fa}
 .report-customers th:nth-child(1){width:4%}.report-customers th:nth-child(2){width:8%}.report-customers th:nth-child(3){width:13%}.report-customers th:nth-child(4){width:11%}.report-customers th:nth-child(5){width:16%}.report-customers th:nth-child(6),.report-customers th:nth-child(7){width:16%}.report-customers th:nth-child(8){width:7%}.report-customers th:nth-child(9){width:9%}
 .report-numeric td,.report-numeric th{text-align:right}.report-numeric td:nth-child(2),.report-numeric th:nth-child(2){text-align:left}.report-numeric th:nth-child(2){width:15%}
 #professionalPrint footer{border-top:1px solid #c5d3e1;padding-top:10px;margin-top:18px;color:#52687f;font-size:8pt;text-align:center}
 #professionalPrint *{print-color-adjust:exact;-webkit-print-color-adjust:exact}
}
@media screen{body[data-theme="night"] :is(label,.filter-control>span:first-child,#registerView .toolbar #resultsCount,.scoring-head,.score-formulas,.score-note,.field-label){color:#afc1d5}body[data-theme="night"] input::placeholder{color:#90a6bf}}
@media print{.report-detail td:first-child,.report-detail th:first-child{text-align:left;width:16%}.report-detail td:nth-child(2),.report-detail th:nth-child(2){text-align:right;width:auto}.report-numeric:not(.report-detail) tbody tr:last-child td{background:#e3ebf4;font-weight:700}.report-table td{white-space:pre-line}}
.private-filters{display:grid;grid-template-columns:160px 180px minmax(180px,1fr) auto;gap:16px;padding:20px;align-items:end}.private-filters label{display:flex;flex-direction:column;gap:6px;font-size:12px}.private-table-wrap{overflow:auto}.private-table{width:100%;border-collapse:collapse;font-size:13px}.private-table th{background:#173553;color:white;padding:14px;text-align:left}.private-table td{padding:14px;border-bottom:1px solid var(--line);vertical-align:top}.private-table tr:nth-child(even){background:#f4f7fb}.private-table small{display:block;font-size:11px;margin-top:5px;color:var(--muted)}.private-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:6px}.money-cell{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.money-cell .private-actions{justify-content:flex-end}.earnings-table th:nth-last-child(-n+2),.earnings-table td:nth-last-child(-n+2){text-align:right}.earnings-totals{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:24px 0}.earnings-totals>div{padding:20px;border:1px solid var(--line);border-top:3px solid #dba32c;border-radius:9px;background:var(--panel);display:flex;flex-direction:column;gap:8px}.earnings-totals span{font-size:13px;color:var(--muted)}.earnings-totals strong{font-size:25px;font-variant-numeric:tabular-nums}.earnings-totals small{font-size:11px;color:var(--muted)}.private-backup{border-top:1px solid var(--line);padding-top:20px;margin-top:28px}.private-backup p{font-size:12px;color:var(--muted);max-width:750px}#privateDialog{width:min(720px,calc(100vw - 32px));max-height:90vh;overflow:auto}#privateDialog form{padding:20px;display:grid;gap:13px}#privateDialog form label{display:grid;gap:6px}#privateDialog p{font-size:13px}#privateDialog>.private-table-wrap{padding:14px}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px;border-bottom:1px solid var(--line)}.dialog-head h2{font-size:19px;margin:0}
@media screen{body[data-theme="night"] .private-table tr:nth-child(even){background:#193149}body[data-theme="night"] .private-table td{color:#e1eaf4}body[data-theme="night"] .earnings-totals{color:#e1eaf4}@media(max-width:760px){.private-filters{grid-template-columns:1fr}.earnings-totals{grid-template-columns:1fr}.private-table{min-width:750px}.earnings-totals strong{font-size:23px}}}
@media print{#privateDialog{display:none!important}#professionalPrint .private-table-wrap{overflow:visible}#professionalPrint .private-table{min-width:0;font-size:9pt}#professionalPrint .earnings-table th:first-child{width:6%}#professionalPrint .earnings-table th:nth-child(2){width:18%}#professionalPrint .earnings-table th:nth-child(3){width:32%}#professionalPrint .earnings-totals{break-inside:avoid}#professionalPrint .earnings-totals>div{background:#f4f7fb;border:1px solid #d4dfea;border-top:3px solid #dba32c}#professionalPrint .earnings-totals strong{font-size:18pt}#professionalPrint .earnings-totals span{color:#52687f}}

#privateForm label:has(input[type=checkbox]){display:flex;align-items:center;gap:10px}#privateForm input[type=checkbox]{width:18px;height:18px;margin:0;accent-color:var(--navy,#0c2948)}


#sidebarSignOut{display:flex;flex-direction:column;align-items:stretch;gap:6px}#changeOwnPassword{white-space:normal;text-align:center;min-height:42px}

/* Final desktop suite: preserve the original logo and a fixed desktop navigation. */
.brandmark-logo,.sidebar-logo{overflow:visible;background:transparent;border:0;border-radius:0;box-shadow:none}
.brandmark-logo img,.sidebar-logo img{position:static;inset:auto;width:100%;height:100%;object-fit:contain;border-radius:0;filter:none;box-shadow:none;transform:none;animation:none}
#login.login-screen{background:#f1f3f6;min-height:100vh;padding:24px;display:flex;align-items:center;justify-content:center}
#login[hidden]{display:none}
#login .login-card{width:420px;max-width:100%;padding:26px 30px 22px;background:#fff;border:1px solid #d9e1ea;border-top:3px solid #eaa021;border-radius:12px;box-shadow:0 10px 32px #102c4810;color:#173553;display:flex;flex-direction:column;gap:9px}
#login .brandmark-logo{width:104px;height:104px;margin:0 auto 2px;flex:none}
#login .login-brand{text-align:center;letter-spacing:.16em;font-size:13px;font-weight:800;margin:0;color:#173553}
#login h1{font-size:21px;line-height:1.35;text-align:center;margin:0;color:#112e4e}
#login .login-subtitle{color:#66788e;text-align:center;margin:0 0 12px;font-size:13px}
#login label{font-size:13px;color:#243f5c;margin:0}#login .field{background:#fff;color:#173553;border:1px solid #c9d4e0;min-height:42px;border-radius:8px}
#login .password-row{display:flex;gap:8px}#login .password-row .field{min-width:0;flex:1}#login .remember{display:flex;align-items:center;gap:8px;font-size:12px;margin:3px 0}#login .remember input{width:15px;height:15px;margin:0}
#login #signIn{min-height:43px;margin:3px 0 0}#login .login-authorised{font-size:11px;text-align:center;color:#697c92;margin:2px 0}
#loginService{display:flex;align-items:center;justify-content:center;gap:6px;font-size:11px;color:#46617a}#loginService::before{content:'';width:7px;height:7px;border-radius:50%;background:#9a6b20}#loginService[data-online=true]::before{background:#15803d}
#loginStatus{min-height:18px;text-align:center;font-size:12px;color:#465e77;margin:0}#login .brand-credit{margin:2px 0 0;padding-top:10px;gap:3px}
@media screen{
.app-sidebar,body[data-theme="daylight"] .app-sidebar{background:#0b2039;color:#dce6f2;border-right:1px solid #223951}
body[data-theme="daylight"] .sidebar-brand strong,body[data-theme="daylight"] .app-sidebar #signedUser,body[data-theme="daylight"] .app-sidebar #signOutBtn,body[data-theme="daylight"] .app-sidebar .brand-credit>strong{color:#f1f5fa}
body[data-theme="daylight"] .app-sidebar nav button{color:#c5d2e3}body[data-theme="daylight"] .app-sidebar nav button[aria-current=page]{background:#23384f;color:#ffbf5a}
body[data-theme="daylight"] .app-sidebar .nav-caption,body[data-theme="daylight"] .app-sidebar .brand-credit>span{color:#9eb1c8}body[data-theme="daylight"] .sidebar-bottom .save-state{color:#d7e6d9}
.sidebar-access{display:block;font-size:10px;color:#a4b8ce;margin-top:4px}.sidebar-logo{width:82px;height:82px;flex:none}
.app-sidebar{padding:18px 14px}.sidebar-brand{padding-bottom:14px}.sidebar-brand strong{font-size:14px}.nav-caption{padding:16px 12px 8px}.app-sidebar nav{gap:3px}.app-sidebar nav button{min-height:40px;padding:10px;font-size:12px}.sidebar-bottom{padding:14px 8px 0}.sidebar-person{margin:10px 0 8px;padding-top:10px}.app-sidebar .brand-credit{padding-top:9px;margin-top:9px}
#changeOwnPassword{font-size:12px;min-height:36px;padding:7px}.section-head{margin-bottom:18px}.section-head h2{font-size:23px}.section-head p{font-size:12px}.report-card,.backup-card{padding:20px}.overview-kpi{padding:14px}.overview-kpi strong{font-size:25px}
.report-brand{display:flex;gap:12px;align-items:center}.report-brand img{width:66px;height:66px;object-fit:contain;filter:none;box-shadow:none}
}
@media screen and (min-width:1101px){
#sidebarToggle{display:none}
body[data-section] .app-sidebar{position:fixed;inset:0 auto 0 0;width:224px;transform:none;visibility:visible;transition:none;overflow-y:auto}
body[data-section] .app-bar{margin-left:224px;height:68px;min-height:68px;padding:10px 22px;gap:18px;flex-wrap:nowrap}
body[data-section] main,body[data-sidebar="closed"][data-section] main{margin-left:224px;width:calc(100% - 224px);padding:20px 22px;min-width:0;max-width:none}
body[data-section] .month-scope{margin-left:224px;padding:12px 22px 0}.breadcrumb{min-width:115px}.bar-actions{gap:10px}.app-bar #globalSearchForm{max-width:430px;min-width:140px}.app-bar #addBtn{font-size:12px}
#registerView .toolbar{display:grid;grid-template-columns:minmax(155px,1.5fr) minmax(90px,.85fr) minmax(86px,.7fr) minmax(110px,1fr) 100px auto;gap:9px}
#registerView .toolbar #resultsCount{grid-column:1/-1;min-height:18px;margin:0}.toolbar .filter-control{min-width:0}#registerView .table-scroll{overflow:auto;max-height:calc(100vh - 285px)}
#registerView .records-table{width:100%;min-width:0;table-layout:fixed}#registerView .records-table th,#registerView .records-table td{font-size:11px;padding:10px 7px;white-space:normal;overflow-wrap:anywhere}
#registerView .records-table th:nth-child(1){width:4%}#registerView .records-table th:nth-child(2){width:8%}#registerView .records-table th:nth-child(3){width:13%}#registerView .records-table th:nth-child(4){width:10%}#registerView .records-table th:nth-child(5){width:12%}#registerView .records-table th:nth-child(6){width:12%}#registerView .records-table th:nth-child(7){width:13%}#registerView .records-table th:nth-child(8){width:6%}#registerView .records-table th:nth-child(9){width:9%}#registerView .records-table th:nth-child(10){width:13%}
#registerView .actions{flex-wrap:wrap;gap:4px}#registerView .btn-small{padding:5px 7px;min-height:30px;font-size:11px}#registerView .customer{font-weight:700}.cell-remark{max-height:none;-webkit-line-clamp:unset;display:block;overflow:visible}
.overview-kpis{grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}.overview-grid{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:16px}.report-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.backup-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
}
@media print{.report-brand{display:flex;gap:12px;align-items:center}.report-brand img{width:60px;height:60px;object-fit:contain;filter:none;box-shadow:none}}
@media screen and (min-width:1101px){#registerView .records-table th:nth-child(8){width:9%}#registerView .records-table th:nth-child(9){width:7%}#registerView .records-table th:nth-child(10){width:12%}#registerView .records-table th{font-size:10px;letter-spacing:0;text-transform:none}#registerView .records-table td:nth-child(8){white-space:nowrap;font-size:10px}#registerView .records-table td:nth-child(9){font-size:11px}}
.record-more{display:inline-block;min-width:0}.record-more summary{cursor:pointer;list-style:none;border:1px solid #cbd5e1;background:#fff;border-radius:6px;color:#173553;padding:5px 7px;font-size:11px;min-height:30px;display:flex;align-items:center}.record-more[open] summary{margin-bottom:5px}.record-more summary::-webkit-details-marker{display:none}.record-more summary:focus-visible{outline:2px solid #eaa021;outline-offset:2px}

#login [role=status]{min-height:18px;margin:0;font-size:12px}#login #loginService{font-size:11px}.btn:disabled{cursor:not-allowed}

/* Targeted customer form and follow-up column; approved shell and row colours stay intact. */
@media screen{
 #registerView .records-table{min-width:1031px;table-layout:fixed}
 #registerView .records-table th:nth-child(1){width:42px}#registerView .records-table th:nth-child(2){width:75px}#registerView .records-table th:nth-child(3){width:125px}#registerView .records-table th:nth-child(4){width:94px}#registerView .records-table th:nth-child(5){width:140px}#registerView .records-table th:nth-child(6){width:115px}#registerView .records-table th:nth-child(7){width:120px}#registerView .records-table th:nth-child(8){width:112px}#registerView .records-table th:nth-child(9){width:78px}#registerView .records-table th:nth-child(10){width:58px}#registerView .records-table th:nth-child(11){width:72px}
 #registerView .records-table td:nth-child(8){white-space:normal;font-size:11px}#registerView .records-table td:nth-child(9){white-space:nowrap;font-size:10px}
 #registerView .cell-remark{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;max-height:3em;line-height:1.5}
 #registerView .cell-remark:focus{outline:2px solid #977016;outline-offset:2px}
 #registerView .actions{gap:3px}#registerView .actions .btn-small{padding:3px 5px;min-height:24px;font-size:10px}
}
#followupSort{max-width:100%;white-space:normal;overflow-wrap:normal;font:inherit;color:inherit;display:block;border:0;background:transparent;padding:0;text-align:left;cursor:pointer}
#followupSort:focus-visible{outline:2px solid #b87800;outline-offset:3px}
.followup-today{color:#995600}.followup-overdue{color:#9d2424}.followup-upcoming{color:#143e70}.followup-missing{color:#596875;font-weight:400}
#recordForm .field[aria-invalid="true"]{border-color:#b32b2b;box-shadow:0 0 0 1px #b32b2b}
#recordForm .field-error{color:#b32b2b;font-size:12px;line-height:1.3;margin:5px 0 0}
#recordForm input[type="date"]{width:100%;min-width:0;color-scheme:light}
body[data-theme="night"] #recordForm .field-error{color:#ffb6b6}
body[data-theme="night"] #recordForm input[type="date"]{color-scheme:dark}
@media print{.report-customers th:nth-child(1){width:4%}.report-customers th:nth-child(2){width:8%}.report-customers th:nth-child(3){width:12%}.report-customers th:nth-child(4){width:10%}.report-customers th:nth-child(5){width:15%}.report-customers th:nth-child(6),.report-customers th:nth-child(7){width:12%}.report-customers th:nth-child(8){width:12%}.report-customers th:nth-child(9){width:7%}.report-customers th:nth-child(10){width:8%}}

/* Consistent interactive KPI cards and dedicated follow-up workspace. */
@media screen{
 .overview-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}
 button.overview-kpi{font-family:inherit;text-align:left;cursor:pointer;width:100%;color:var(--ink)}
 .overview-kpi,.followup-kpi,.followup-quick{transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}
 button.overview-kpi:hover,.followup-kpi:hover,.followup-quick:hover{transform:translateY(-2px);box-shadow:0 5px 15px #0b274815;border-color:#b18632}
 button.overview-kpi:active,.followup-kpi:active,.followup-quick:active{transform:translateY(1px);box-shadow:inset 0 2px 5px #0b274818}
 button.overview-kpi:focus-visible,.followup-kpi:focus-visible,.followup-quick:focus-visible{outline:3px solid #d59b22;outline-offset:3px}
 .kpi-due{border-top:3px solid #b87800}
 .followup-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin:0 0 24px}
 .followup-kpi{position:relative;border:1px solid var(--line);border-top:3px solid var(--status-color,#183b5a);border-radius:10px;padding:18px;background:var(--panel,#fff);color:var(--ink);text-align:left;cursor:pointer;font:inherit;min-width:0;min-height:126px}
 .followup-kpi>span{display:block;font-size:12px;font-weight:600}.followup-kpi strong{display:block;font-size:30px;margin:8px 0;line-height:1.1}.followup-kpi small{display:block;color:var(--muted);font-size:11px;line-height:1.5}
 .followup-kpi[aria-pressed="true"]{outline:2px solid var(--status-color,#183b5a);outline-offset:1px;box-shadow:0 4px 14px #163a5715}
 .status-overdue{--status-color:#a73434}.status-today{--status-color:#ac7109}.status-upcoming{--status-color:#245c91}.status-missing{--status-color:#778695}
 .overview-followups{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:18px}
 .followup-quick{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:15px 12px;border:1px solid var(--line);border-left:3px solid var(--status-color);border-radius:8px;background:var(--panel,#fff);color:var(--ink);font:inherit;font-size:12px;cursor:pointer;text-align:left}.followup-quick strong{margin-left:auto;font-size:23px}
 .followup-toolbar{display:grid;grid-template-columns:minmax(180px,2fr) minmax(140px,1fr) minmax(120px,1fr) auto;gap:14px;padding:18px;align-items:end}.followup-toolbar label{display:grid;gap:6px;font-size:12px;color:var(--muted)}.followup-toolbar .field{min-width:0;width:100%;font-size:13px}
 .followup-selection{padding:0 18px 16px;margin:0;color:var(--muted);font-size:12px}
 .followup-table-wrap{overflow:auto;max-height:560px}.followup-table{width:100%;min-width:900px;table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:12px;color:var(--ink)}
 .followup-table th{background:#e9f0f7;color:#143350;font-size:11px;padding:12px;text-align:left;position:sticky;top:0;z-index:1}.followup-table td{padding:13px 12px;vertical-align:top;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.followup-table tr:hover td{background:#f5f8fc}.followup-table .customer{font-weight:700}.followup-table th:nth-child(1){width:150px}.followup-table th:nth-child(2){width:190px}.followup-table th:nth-child(3){width:100px}.followup-table th:nth-child(4){width:115px}.followup-table th:nth-child(5){width:190px}.followup-table th:nth-child(6){width:76px}.followup-table th:nth-child(7){width:79px}
 .followup-remark{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.followup-empty{text-align:center;padding:36px}.followup-empty p{color:var(--muted);margin:8px 0}.followup-table .btn-small{min-height:30px;font-size:11px;padding:5px 10px}
 body[data-theme="night"] .followup-table th{background:#183853;color:#e8f0f7}body[data-theme="night"] .followup-table tr:hover td{background:#1a354e}body[data-theme="night"] .followup-table .followup-overdue{color:#ffaaaa}body[data-theme="night"] .followup-table .followup-today{color:#ffd280}body[data-theme="night"] .followup-table .followup-upcoming{color:#badbff}body[data-theme="night"] .followup-table .followup-missing{color:#b2c1cd}
 @media(max-width:1100px){.overview-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}.followup-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}
 @media(max-width:760px){.overview-kpis,.followup-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.followup-toolbar{grid-template-columns:1fr 1fr}.followup-toolbar label:first-child{grid-column:1/-1}.followup-kpi{padding:14px;min-height:118px}.overview-followups{grid-template-columns:1fr}.followup-toolbar .field{font-size:16px}}
 @media(prefers-reduced-motion:reduce){.overview-kpi,.followup-kpi,.followup-quick{transition:none;transform:none!important}}
}
@media screen{body[data-theme="night"] #followupsView .pager{background:var(--panel);color:var(--ink);border-color:var(--line)}@media(max-width:760px){#followupsView .btn-small{min-height:44px}}}
@media screen{.followup-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.status-completed{--status-color:#277249}.followup-completed{color:#25653d;font-weight:600}#nextFollowupHelp{display:block;color:var(--muted);font-size:11px;line-height:1.4}#recordForm input:disabled{opacity:.7;cursor:not-allowed}body[data-theme="night"] .followup-completed{color:#a2e1b7}@media(max-width:760px){.followup-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}}
/* Operations intelligence: retain approved category colours and fixed register geometry. */
.category-row-aplus{background:#e4f5ec}.cat-badge.aplus,.segment-A\+,.cat-a\+{background:#d8eee3;color:#07543b}.cat-badge.aplus:before{content:'✓ ';font-size:.8em}.overview-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}.overview-kpi strong{overflow-wrap:anywhere}.overview-kpis .overview-kpi:nth-child(n+8){min-height:100px}.followup-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}.followup-actions{display:flex;gap:6px;flex-wrap:wrap}.followup-table{min-width:1330px}.followup-table th:nth-child(n),.followup-table td:nth-child(n){width:auto}.followup-table th:last-child{width:260px}.power-toolbar{display:flex;gap:12px;align-items:end;flex-wrap:wrap;padding:12px 16px;border-bottom:1px solid var(--border,#d5dfed);position:relative}.power-toolbar label{font-size:12px;display:grid;gap:5px}.power-toolbar .field{min-height:38px}.power-toolbar details{position:relative}.column-options{position:absolute;z-index:30;background:var(--surface,#fff);padding:16px;min-width:210px;box-shadow:0 6px 20px #07193126}.column-options label{display:block;padding:6px}.resize-handle{position:absolute;right:0;top:0;width:8px;height:100%;cursor:col-resize;border:0;border-right:2px solid #b9cce0;background:transparent}.power-table th{position:relative}.power-table[data-density="compact"] td{padding-top:6px;padding-bottom:6px}.power-table th:nth-child(2),.power-table td:nth-child(2){position:sticky;left:0;z-index:2;background:inherit}.power-table th:nth-child(3),.power-table td:nth-child(3){position:sticky;left:var(--caller-pin-width,75px);z-index:2;background:inherit}.power-table thead th:nth-child(2),.power-table thead th:nth-child(3){z-index:5;background:#eaf0f7}.customer-drawer{position:fixed;inset:0 0 0 auto;margin:0;width:min(620px,95vw);height:100dvh;max-height:100dvh;border:0;border-left:1px solid #cad6e5;padding:0;color:var(--text,#102f4c);background:var(--surface,#fff)}.customer-drawer header{padding:22px;border-bottom:1px solid #d7e1ed;position:sticky;top:0;background:inherit;z-index:1}.customer-drawer header>button{float:right}.customer-details{padding:22px}.customer-details dl{display:grid;grid-template-columns:1fr 1fr;gap:16px}.customer-details dt{font-size:12px;color:#61738c}.customer-details dd{margin:4px 0;overflow-wrap:anywhere}.customer-timeline{padding:16px 28px}.customer-timeline li{padding:12px 0;border-bottom:1px solid #e1e7ef}.customer-timeline p{font-size:12px;overflow-wrap:anywhere}.operation-dialog{max-width:560px;width:90vw;padding:24px;border:1px solid #b9cce0;border-radius:12px}.operation-dialog label{display:grid;gap:6px;margin:12px 0}.operation-error{color:#9b2424}.compare-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.operations-table{overflow:auto}.operations-table table{min-width:750px;width:100%;border-collapse:collapse}.operations-table th,.operations-table td{padding:14px;border-bottom:1px solid #d7e1ed;text-align:left}.aging-bars>div{display:grid;grid-template-columns:150px 1fr 50px;gap:12px;margin:10px 0}.aging-bars meter{width:100%}#operationsIntelligence{padding:24px;margin-top:24px}body[data-theme="night"] .customer-drawer,body[data-theme="night"] .operation-dialog{background:#102b44;color:#e3edf8}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #286aa5;outline-offset:3px}.private-table.earnings-table{min-width:1100px}.earnings-totals{grid-template-columns:repeat(4,minmax(0,1fr))}@media(max-width:1100px){.overview-kpis,.followup-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}@media print{body.printing-customer>*{display:none!important}body.printing-customer #workspace{display:block!important}body.printing-customer #workspace>*{display:none!important}body.printing-customer #customer360{display:block!important;position:static;width:100%;height:auto;max-height:none}body.printing-customer #customer360 button{display:none!important}}
.overview-category-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:14px 0 22px}.overview-category-strip .overview-kpi{padding:14px;min-height:100px}.overview-category-strip .overview-kpi strong{font-size:26px}.overview-category-strip .overview-kpi span{font-size:12px}.overview-category-strip .overview-kpi small{font-size:11px}.overview-kpis:has(+.overview-category-strip) .overview-kpi{min-height:120px}#restorePreview{max-height:230px;overflow:auto;font-size:12px;margin:12px 0}.operation-dialog::backdrop,.customer-drawer::backdrop{background:#07193155}@media(max-width:900px){.overview-category-strip{grid-template-columns:repeat(3,minmax(0,1fr))}}
.overview-kpis:has(+.overview-category-strip){grid-template-columns:repeat(12,minmax(0,1fr))}.overview-kpis:has(+.overview-category-strip)>.overview-kpi{grid-column:span 3}.overview-kpis:has(+.overview-category-strip)>.overview-kpi:nth-child(n+5){grid-column:span 4}.overview-category-strip .kpi-A\+{border-top:3px solid #438369}.resize-handle:focus-visible{background:#83afd5}#operationsIntelligence .overview-kpi strong{font-size:24px}@media(max-width:900px){.overview-kpis:has(+.overview-category-strip){grid-template-columns:repeat(2,minmax(0,1fr))}.overview-kpis:has(+.overview-category-strip)>.overview-kpi,.overview-kpis:has(+.overview-category-strip)>.overview-kpi:nth-child(n+5){grid-column:auto}}

.vendor-invoice-dialog{width:min(1280px,96vw);max-width:96vw;max-height:92vh;border:1px solid #bbcddd;border-radius:14px;padding:24px;background:var(--surface,#fff);color:var(--text,#102f4c)}.vendor-invoice-dialog .dialog-head{position:sticky;top:-24px;background:inherit;z-index:4;padding:14px 0}.invoice-details,.invoice-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:20px 0}.invoice-details label,.invoice-filters label{display:grid;gap:6px}.vendor-invoice-dialog .private-table{min-width:850px}.invoice-feedback{color:#a42b25}.invoice-preview{padding:24px;background:#fff;color:#102f4c;margin-top:20px}.invoice-meta{display:grid;grid-template-columns:1fr 1fr;gap:24px}.invoice-report-totals{max-width:620px;margin:24px 0 24px auto}.invoice-report-totals p{display:flex;justify-content:space-between;gap:20px;padding:10px;border-bottom:1px solid #cbd8e5}.invoice-payable{background:#eaf0f7;font-size:18px}.invoice-preview table{width:100%;border-collapse:collapse}.invoice-preview th,.invoice-preview td{padding:12px;border-bottom:1px solid #d0dae5;text-align:left}#invoiceSelectedCases p{display:flex;justify-content:space-between;padding:6px}body[data-theme="night"] .vendor-invoice-dialog{background:#102b44;color:#e3edf8}@media(max-width:800px){.invoice-details,.invoice-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}@media print{.invoice-report-totals{break-inside:avoid}.invoice-meta{break-inside:avoid}#professionalPrint thead{display:table-header-group}#professionalPrint tr{break-inside:avoid}}

/* Vendor invoice: shared preview and print presentation. */
.invoice-document{font:13px/1.45 Arial,sans-serif;color:#173553;background:#fff;border:1px solid #aebfd1;border-top:5px solid #173553;padding:24px;box-sizing:border-box}
.invoice-document .report-letterhead{display:flex;justify-content:space-between;align-items:center;gap:20px;border-bottom:3px solid #dba32c;padding-bottom:18px;margin-bottom:18px}
.invoice-document .report-brand{gap:12px}.invoice-document .report-brand img{width:64px;height:64px}.invoice-document .report-brand strong{font-size:25px;letter-spacing:2px}.invoice-document .report-brand p{font-size:10px;margin:4px 0}
.invoice-document h1{font-size:20px;line-height:1.2;text-align:right;margin:0 0 8px;max-width:250px}.invoice-document .invoice-number{text-align:right;font-size:11px;margin:0}.invoice-status{display:inline-block;margin-left:6px;border:1px solid #bdcddd;padding:3px 7px;border-radius:3px;font-weight:700;background:#edf3f9}
.invoice-document .invoice-meta{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:18px}.invoice-document .invoice-meta p{margin:0;padding:12px 14px;border:1px solid #bdcddd;background:#f6f8fb;line-height:1.7;overflow-wrap:anywhere}.invoice-section-label{display:block;text-transform:uppercase;letter-spacing:1.5px;font-size:9px;font-weight:700;color:#7a5b1a;margin-bottom:5px}
.invoice-document .report-table{width:100%;table-layout:fixed;border-collapse:collapse;margin:0;font-size:11px;border:1px solid #aebfd1}.invoice-document .report-table th,.invoice-document .report-table td{border:1px solid #bdcddd;padding:9px 10px;vertical-align:middle;text-align:left;overflow-wrap:anywhere}.invoice-document .report-table th{background:#173553;color:#fff;font-weight:700}.invoice-document .report-table tr:nth-child(even) td{background:#f3f6fa}.invoice-document .report-table th:first-child,.invoice-document .report-table td:first-child{text-align:center}.invoice-document .report-table th:nth-child(n+3),.invoice-document .report-table td:nth-child(n+3){text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.invoice-document .invoice-report-totals{width:65%;max-width:none;margin:18px 0 16px auto;border:1px solid #aebfd1;break-inside:avoid}.invoice-document .invoice-report-totals p{margin:0;padding:9px 12px;border-bottom:1px solid #bdcddd;display:flex;justify-content:space-between;gap:15px}.invoice-document .invoice-report-totals strong{white-space:nowrap;font-variant-numeric:tabular-nums}.invoice-document .invoice-report-totals .invoice-payable{border-bottom:0;border-top:2px solid #dba32c;background:#173553;color:#fff;font-size:14px;align-items:center;font-weight:700;padding:13px 12px}
.invoice-document .invoice-note{font-size:10px;color:#53677d;border-left:3px solid #dba32c;padding:8px 12px;background:#fffbf1;margin:16px 0;break-inside:avoid}.invoice-document footer{border-top:1px solid #aebfd1;padding-top:12px;margin-top:18px;text-align:center;font-size:9px;color:#53677d}
@media print{@page vendorInvoice{size:A4 portrait;margin:12mm}#professionalPrint:has(.invoice-document){page:vendorInvoice}.invoice-document{padding:16px;font-size:10px;border-top-width:4px}.invoice-document .report-letterhead{padding-bottom:12px;margin-bottom:12px}.invoice-document h1{font-size:17px}.invoice-document .report-brand strong{font-size:21px}.invoice-document .report-brand img{width:52px;height:52px}.invoice-document .report-brand p{font-size:8px}.invoice-document .invoice-meta{margin-bottom:12px}.invoice-document .invoice-meta p{padding:8px 10px}.invoice-document .report-table{font-size:9px}.invoice-document .report-table th,.invoice-document .report-table td{padding:7px 8px}.invoice-document .invoice-report-totals{margin-top:12px}.invoice-document .invoice-report-totals p{padding:7px 10px}.invoice-document .invoice-report-totals .invoice-payable{font-size:12px;padding:10px}.invoice-document footer{font-size:8px!important;margin-top:12px!important}.invoice-document thead{display:table-header-group}.invoice-document tr{break-inside:avoid}}

.invoice-preview{overflow-x:auto}.invoice-preview .invoice-document{min-width:650px}

.owner-control-dialog{width:min(1100px,95vw);max-width:95vw;max-height:90vh;overflow:auto;padding:24px;border:1px solid #bdcddd;border-radius:12px;background:var(--surface,#fff);color:var(--text,#173553)}.owner-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0}.owner-form label{display:grid;gap:6px}.owner-form #correctionPreview{grid-column:1/-1}.owner-feedback{color:#b42318;margin:12px 0}.owner-control-dialog .private-table{width:100%;border-collapse:collapse}.owner-control-dialog td,.owner-control-dialog th{padding:10px;border:1px solid #bdcddd;text-align:left}.owner-control-dialog th{background:#173553;color:white}

.invoice-locked-row{background:var(--surface-alt,#f2f5fa);color:var(--muted,#52647a)}.invoice-locked-row input{cursor:not-allowed}.invoice-empty{padding:24px;border:1px dashed #b4c3d5;border-radius:8px;text-align:center}
.quotation-tools #quotationToolsItems{display:grid;grid-template-rows:0fr;max-height:0;overflow:hidden;transition:max-height .2s ease}.quotation-tools[data-expanded="true"] #quotationToolsItems{max-height:none;grid-template-rows:none;grid-auto-rows:auto;gap:4px}.quotation-tools #quotationToolsItems button{padding-left:30px}.quotation-tabs{display:flex;gap:10px;margin-bottom:16px}.quotation-tabs [aria-selected="true"]{background:#173b5e;color:white}.quotation-grid{display:grid;grid-template-columns:minmax(300px,390px) minmax(0,1fr);gap:20px;align-items:start}.quotation-form{padding:20px}.quotation-form form{display:grid;grid-template-columns:1fr 1fr;gap:12px}.quotation-form label{display:block;font-size:12px;line-height:1.8}.quotation-form label:has([name="note"]),.quotation-form #quotationProgress,.quotation-sticky{grid-column:1/-1}.quotation-preview{overflow:auto;min-width:0;padding:12px;background:#eef2f6;border-radius:10px}.quotation-error{display:block;color:#b42318;line-height:1.4}.quotation-match{display:block;width:100%;padding:8px;border:1px solid #cad6e3;background:var(--surface,#fff);text-align:left;cursor:pointer}.quotation-filters{display:grid;grid-template-columns:repeat(4,minmax(140px,1fr));gap:12px}.quotation-filters label{font-size:12px}.quotation-module .overview-kpis{grid-template-columns:repeat(6,minmax(0,1fr));margin:16px 0}.quotation-module .overview-kpi strong{font-size:22px;overflow-wrap:anywhere}.quotation-dialog{max-width:700px;width:90vw}.quotation-dialog label{display:block;padding:5px}.quotation-audit{border-bottom:1px solid #ccd7e3;padding:12px}.quotation-sticky{position:sticky;bottom:0;background:var(--surface,#fff);padding:10px 0}.quotation-form textarea{min-height:80px}@media(max-width:1100px){.quotation-grid{grid-template-columns:1fr}.quotation-filters{grid-template-columns:1fr 1fr}.quotation-module .overview-kpis{grid-template-columns:repeat(3,1fr)}}@media print{body.printing-quotation #professionalPrint{padding:0!important;width:210mm!important;max-width:none!important}body.printing-quotation{margin:0!important;padding:0!important}@page{size:A4}}

@media screen{body.printing-quotation #professionalPrint{display:block;position:fixed;left:-10000px;top:0;width:210mm}}
@media print{@page quotation{size:A4 portrait;margin:0}body.printing-quotation #professionalPrint{page:quotation}}

.quotation-form-section{grid-column:1/-1;margin:8px 0 0;padding-top:12px;border-top:1px solid #ccd7e3;font-size:12px;text-transform:uppercase;letter-spacing:.08em}.quotation-form-section:first-child{border-top:0;padding-top:0}

/* Category badges only: static shine, single-line labels; table and chart colours stay unchanged. */
.cat-badge.aplus,.cat-badge.a\+,.scoring-badges>.segment-A\+,.chart-legend>span.segment-A\+{--badge-top:#20E070;--badge-bottom:#00A94F;--badge-border:#008F43;--badge-ink:#FFFFFF}
.cat-badge.a,.scoring-badges>.segment-A,.chart-legend>span.segment-A{--badge-top:#43C95A;--badge-bottom:#168A38;--badge-border:#137631;--badge-ink:#FFFFFF}
.cat-badge.b,.scoring-badges>.segment-B,.chart-legend>span.segment-B{--badge-top:#FFD83D;--badge-bottom:#E3A400;--badge-border:#BD8800;--badge-ink:#3B2A00}
.cat-badge.c,.scoring-badges>.segment-C,.chart-legend>span.segment-C{--badge-top:#D81B60;--badge-bottom:#8E1746;--badge-border:#7B143D;--badge-ink:#FFFFFF}
.cat-badge.d,.scoring-badges>.segment-D,.chart-legend>span.segment-D{--badge-top:#F04444;--badge-bottom:#991B1B;--badge-border:#861818;--badge-ink:#FFFFFF}
:is(body,#registerView,#analyticsView) :is(.cat-badge:is(.aplus,.a\+,.a,.b,.c,.d),.scoring-badges>span:is(.segment-A\+,.segment-A,.segment-B,.segment-C,.segment-D),.chart-legend>span:is(.segment-A\+,.segment-A,.segment-B,.segment-C,.segment-D)){
 display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;box-sizing:border-box;
 width:auto;min-width:32px;height:28px;padding:0 7px;border-radius:9px;
 white-space:nowrap;overflow-wrap:normal;word-break:normal;line-height:1;font-weight:800;vertical-align:middle;
 color:var(--badge-ink);background:linear-gradient(180deg,var(--badge-top),var(--badge-bottom));
 border:1px solid var(--badge-border);box-shadow:inset 0 1px 0 #ffffff80,inset 0 3px 4px #ffffff24,0 2px 4px #102f4c26;
 text-shadow:0 1px 1px #00000026;print-color-adjust:exact;-webkit-print-color-adjust:exact;
}
:is(body,#registerView,#analyticsView) :is(.cat-badge.aplus,.cat-badge.a\+,.scoring-badges>.segment-A\+,.chart-legend>span.segment-A\+){min-width:38px}
.cat-badge.aplus::before{content:none}
:is(body,#registerView,#analyticsView) :is(.cat-badge.b,.scoring-badges>.segment-B,.chart-legend>span.segment-B){text-shadow:none}

/* Approved Customer Register grid: inset separators preserve every cell's geometry. */
#registerView .records-table thead th{
 background:linear-gradient(180deg,#0F4F80 0%,#0B2F50 100%);color:#FFFFFF;text-shadow:none;
 border-bottom-color:#B8CCDC;
 box-shadow:inset -1px 0 0 rgba(255,255,255,0.25),inset 0 -2px 0 #E6A800,0 2px 5px rgba(11,41,69,0.16);
}
#registerView .records-table thead th button{color:inherit}
#registerView .records-table tbody td{
 border-bottom-color:#B8CCDC;box-shadow:inset -1px 0 0 #B8CCDC;
}

#registerView .records-table .resize-handle{border-right-color:transparent}

/* Caller performance: aligned headings and values with clear single cell separators. */
@media screen and (min-width:701px){
 #analyticsView .performance-table th,#analyticsView .performance-table td{text-align:center;vertical-align:middle}
 #analyticsView .performance-table th:nth-child(2),#analyticsView .performance-table td[data-key="caller"]{text-align:left}
 #analyticsView .performance-table th button{display:block;width:100%;text-align:inherit}
 #analyticsView .performance-table thead th{background:linear-gradient(180deg,#0F4F80,#0B2F50);color:#FFFFFF;box-shadow:inset -1px 0 rgba(255,255,255,.25),inset 0 -2px #E6A800}
 #analyticsView .performance-table tbody td{border-bottom-color:#B8CCDC;box-shadow:inset -1px 0 #B8CCDC}
 #analyticsView .performance-table tfoot td{box-shadow:inset -1px 0 rgba(255,255,255,.25),inset 0 2px #E6A800}
}

/* Owner removal: keep verification and actionable errors visible. */
.owner-form .owner-feedback{grid-column:1/-1;margin:0;padding:12px;border:1px solid #E6A5A0;background:#FFF2F1;border-radius:8px;scroll-margin:16px}.owner-feedback:empty{display:none}.owner-verification{padding:16px;border:1px solid #B8CCDC;border-radius:10px;background:#F4F7FA;margin-top:16px}.owner-verification label{display:grid;gap:6px}.owner-verification button{margin-top:12px}.owner-control-dialog .dialog-head{position:static}.owner-control-dialog .private-table thead,.owner-control-dialog .private-table th{position:static}.owner-form input[type=checkbox]{width:20px;height:20px}

/* Optional entry date occupies space only when explicitly enabled. */
#registerView .lead-entry-cell{white-space:nowrap;overflow-wrap:normal;word-break:normal;width:145px}#leadEntrySort{font:inherit;color:inherit;background:none;border:0;padding:0;text-align:left;white-space:nowrap;cursor:pointer}#registerView .has-entry-date td[data-label="Mobile"],#registerView .has-entry-date td[data-label="Month"],#registerView .has-entry-date td[data-label="Category"],#registerView .has-entry-date td[data-label="Actions"]{white-space:nowrap}#registerView .has-entry-date td[data-label="Second remark"]{white-space:normal}

.report-entry-date th:nth-child(1){width:4%}.report-entry-date th:nth-child(2){width:7%}.report-entry-date th:nth-child(3){width:12%}.report-entry-date th:nth-child(4){width:10%}.report-entry-date th:nth-child(5){width:10%}.report-entry-date th:nth-child(6){width:12%}.report-entry-date th:nth-child(7),.report-entry-date th:nth-child(8){width:11%}.report-entry-date th:nth-child(9){width:10%}.report-entry-date th:nth-child(10){width:7%}.report-entry-date th:nth-child(11){width:6%}.report-entry-date td:nth-child(4){white-space:nowrap}
/* Incentive module: isolated from the register and existing reports. */
.incentive-module .quotation-tabs{flex-wrap:wrap;margin-bottom:20px;gap:8px}
.incentive-module [aria-selected=true]{background:#102f50;color:#fff;border-color:#102f50}
.incentive-filters{display:grid;grid-template-columns:repeat(3,minmax(160px,1fr));gap:16px;padding:20px;margin-bottom:20px}
.incentive-module label,.incentive-dialog label{display:grid;gap:8px;font-size:13px}
.incentive-table-scroll{max-width:100%;overflow:auto;border:1px solid #b8ccdc;border-radius:10px;margin-bottom:20px}
.incentive-module table{border-collapse:collapse;width:100%;min-width:800px;font-size:13px}
.incentive-module th{background:linear-gradient(#0f4f80,#0b2f50);color:white;text-align:left;white-space:nowrap;border-bottom:2px solid #e6a800}
.incentive-module th,.incentive-module td{padding:13px 15px;border-right:1px solid #b8ccdc;border-bottom:1px solid #d8e1ed;vertical-align:middle}
.incentive-module td{background:var(--surface,#fff)}
.incentive-module td.number{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.incentive-module td small{display:block;margin-top:7px}
.incentive-status{display:inline-flex;padding:6px 10px;border-radius:20px;border:1px solid #b8ccdc;background:#eef3f9;color:#173655;font-weight:600;white-space:nowrap;font-size:12px}
.incentive-status[data-status=Eligible],.incentive-status[data-status=Paid]{background:#e4f4e9;color:#176332;border-color:#9bc9aa}
.incentive-status[data-status="On Hold"],.incentive-status[data-status="Historical Date Review"]{background:#fff3ce;color:#715100;border-color:#ddc477}
.incentive-status[data-status="Attention Required"],.incentive-status[data-status="Rejected or Excluded"]{background:#fce9e9;color:#902626;border-color:#e7b9b9}
.incentive-note{padding:20px;line-height:1.7;margin:16px 0}
.incentive-dialog{width:min(940px,94vw);max-height:90vh;padding:24px;border:1px solid #b8ccdc;border-radius:14px;color:#102f50;background:#fff;overflow:auto}
.incentive-dialog::backdrop{background:#081c34a6}
.incentive-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:2px solid #e6a800;padding-bottom:16px}
.incentive-form{display:grid;gap:18px}.incentive-checklist{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.incentive-checklist fieldset{display:grid;gap:10px;padding:16px;border:1px solid #c7d5e4;border-radius:8px;min-width:0}
.incentive-checklist legend{font-weight:600;font-size:13px;padding:0 4px}.incentive-auto{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px;background:#f1f5fa;border-radius:8px}
.incentive-feedback{color:#a02121}.incentive-module button:active{transform:translateY(1px)}
.incentive-module button:focus-visible,.incentive-dialog button:focus-visible{outline:3px solid #4f8bc8;outline-offset:2px}
@media(max-width:800px){.incentive-filters,.incentive-checklist,.incentive-auto{grid-template-columns:1fr}.incentive-dialog{padding:16px}}

/* A+ processing identification: same badge box; no table geometry changes. */
.category-processing{display:inline-flex;position:relative;vertical-align:top;align-items:center;justify-content:center;width:38px;height:28px;line-height:1;white-space:nowrap;flex-shrink:0;border-radius:9px}
.category-processing.is-paid:after{content:"";position:absolute;left:0;right:0;bottom:-3px;height:3px;background:#A66B00;border-radius:0 0 3px 3px}
.category-processing .processing-symbol{position:absolute;left:calc(100% + 2px);top:8px;width:10px;height:12px;text-align:center;font:700 10px/12px Arial,sans-serif;color:#596579}
.category-processing.is-paid .processing-symbol{color:#A66B00;font-size:13px}
.category-processing.is-paid:hover{box-shadow:0 0 0 3px #A66B0026}
.category-processing:focus-visible{outline:2px solid #A66B00;outline-offset:4px}
@media print{.category-processing,.category-processing:after{print-color-adjust:exact;-webkit-print-color-adjust:exact}}

.category-processing.is-invoiced .processing-symbol,.category-processing.is-reversed .processing-symbol{left:0;top:29px;min-width:38px;width:max-content;height:9px;font:600 8px/9px Arial,sans-serif;color:#596579}

.incentive-simple-filters{display:grid;grid-template-columns:1fr 1fr auto;align-items:end;gap:16px;padding:18px}.incentive-simple-filters label{display:grid;gap:8px}.incentive-simple-kpis{margin:20px 0}.incentive-simple-kpis strong{font-size:24px}.incentive-dialog form>label{display:grid;gap:6px;margin:14px 0}@media(max-width:800px){.incentive-simple-filters{grid-template-columns:1fr}}

/* Category selection only; existing table and category badge palette are unchanged. */
.category-multiselect{position:relative;min-width:0}.category-select-trigger{display:flex;align-items:center;flex-wrap:wrap;gap:4px;text-align:left;min-height:40px;height:auto;cursor:pointer}.category-selection-count{font-size:10px;color:var(--muted,#56708b);margin-left:auto;white-space:nowrap}.category-multiselect .cat-badge{height:22px;min-width:24px;padding:3px 6px;font-size:11px;flex-shrink:0}.category-multiselect .cat-badge.aplus{min-width:30px}.category-select-panel{position:absolute;top:calc(100% + 6px);left:0;z-index:80;min-width:240px;padding:10px;background:var(--panel,#fff);border:1px solid #9eb4ce;border-radius:10px;box-shadow:0 10px 26px #08213b26}.category-select-panel[hidden]{display:none}.category-select-panel label{display:flex;align-items:center;gap:12px;padding:8px;border-radius:6px;cursor:pointer;margin:0}.category-select-panel label:hover{background:#eaf1f9}.category-select-panel input{width:16px;height:16px;margin:0;accent-color:#123a5a}.category-select-actions{display:flex;gap:6px;padding-bottom:8px;border-bottom:1px solid #ccd9e6;margin-bottom:4px}.category-select-trigger:focus-visible,.category-select-panel button:focus-visible,.category-select-panel input:focus-visible{outline:2px solid #1768ab;outline-offset:3px}

#categoryFilter[hidden],#analyticsCategory[hidden]{display:none}

#incentiveSync{display:inline-flex;margin-left:8px;padding:3px 8px;border:1px solid #aac9b5;border-radius:12px;background:#eaf7ef;color:#146534;font-size:11px;font-weight:700}.incentive-module[aria-busy="true"] #incentiveSync{color:#785000;background:#fff5db;border-color:#dfc87f}

/* Live earnings: six balanced cards and keyboard-accessible case drill-down. */
#incentiveView .incentive-simple-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
#incentiveView [data-earned-row]{cursor:pointer}#incentiveView [data-earned-row]:hover{background:var(--hover,#edf4fa)}#incentiveView [data-earned-row]:focus-visible{outline:3px solid #c28513;outline-offset:-3px}
@media(max-width:850px){#incentiveView .incentive-simple-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:460px){#incentiveView .incentive-simple-kpis{grid-template-columns:1fr}}

#registerView .toolbar{display:flex;flex-wrap:wrap;gap:10px}#registerView .toolbar .filter-control{flex:1 1 140px}#registerView .toolbar .filter-control:first-child{flex-basis:220px}#registerView .records-table{min-width:1420px}#registerView .records-table th:nth-child(n){width:auto}#registerView .records-table th:nth-child(3){width:140px}#registerView .records-table th:nth-child(10){width:110px}#registerView .records-table th:nth-child(11){width:75px}#registerView .records-table th:last-child{width:110px}.month-scope{flex-wrap:wrap}.month-scope .field{max-width:260px}

/* Keep the complete column chooser reachable in shorter desktop panels. */
.power-toolbar .column-options{max-height:min(440px,60vh);overflow-y:auto;overscroll-behavior:contain}

/* Desktop presentation refinement — screen only; operational and print styles preserved. */
@media screen {
 body[data-section]{--canvas:#F5F7FA;--panel:#fff;--ink:#0B1F3A;--muted:#5F6F85;--line:#D9E2EC;--radius:12px;--shadow:0 1px 3px #0b1f3a08;font-family:Inter,ui-sans-serif,system-ui,sans-serif;background:var(--canvas);overflow-x:clip}
 body[data-theme="night"][data-section]{--canvas:#091b2e;--panel:#102b44;--ink:#e3edf8;--muted:#a5b6c9;--line:#314b63}
 body[data-section] .app-sidebar{width:224px;padding:16px 12px;inset:0 auto 0 0;height:100dvh}
 .app-sidebar nav{display:grid;gap:8px}.app-sidebar nav button{min-height:42px;padding:8px 12px;line-height:1.35;align-items:center;font-size:12px}.app-sidebar nav button svg{display:block}
 body[data-section] .app-bar{height:68px;min-height:68px;margin-left:224px;padding:0 24px;gap:16px;flex-wrap:nowrap;align-items:center}
 .app-bar #globalSearchForm{flex:1;max-width:480px;min-width:120px;margin:0;height:40px}.bar-actions{gap:8px;align-items:center;flex-shrink:0}.app-bar .shell-icon,.app-bar .notification-button{width:40px;height:40px;min-height:40px;flex:0 0 40px;padding:8px}.app-bar #addBtn{height:40px;white-space:nowrap}.breadcrumb{min-width:120px}.breadcrumb strong{font-size:14px}
 body[data-section] main,body[data-sidebar="closed"][data-section] main{margin-left:224px;width:calc(100% - 224px);padding:24px;max-width:none;min-width:0}
 body[data-section] .month-scope{margin-left:224px;padding:16px 24px 0;gap:12px}
 .section-head{display:flex;align-items:center;justify-content:space-between;margin:0 0 24px;gap:16px}.section-head h2{font-size:24px;font-weight:700;line-height:1.3;margin:0}.section-head p{font-size:13px;margin:4px 0 0;color:var(--muted)}.section-head .view-actions{margin:0;flex-shrink:0}
 .panel,.overview-kpi,.followup-kpi,.metric,.graph{border-radius:12px;box-shadow:var(--shadow)}.panel-head{padding:16px;min-height:64px;align-items:center}.panel-head .meta{display:block;font-size:12px;margin-top:4px}.panel-head h2{font-size:15px}
 .btn{border-radius:8px;transition:background-color 140ms,border-color 140ms,box-shadow 140ms;box-shadow:none;font-size:13px}.btn:hover,button.overview-kpi:hover,.followup-kpi:hover,.followup-quick:hover{transform:none;box-shadow:0 1px 4px #0b1f3a14}.btn:active{box-shadow:inset 0 1px 3px #0b1f3a22;transform:none}.btn:disabled{opacity:.5;box-shadow:none;cursor:not-allowed}
 .field,.search{border-radius:8px;min-height:42px;font-size:14px;padding:8px 12px;border-color:var(--line)}.search{padding-left:36px}
 #registerView .toolbar{display:grid;grid-template-columns:minmax(200px,1.7fr) repeat(4,minmax(125px,1fr)) minmax(110px,.8fr) auto;gap:12px;align-items:end;padding:16px;border-bottom:1px solid var(--line)}
 #registerView .toolbar .filter-control{min-width:0}.filter-control label{font-size:12px;margin-bottom:8px}#registerView .toolbar :is(.field,.search,.category-multi-trigger,#clearFiltersBtn){height:42px;min-height:42px;font-size:13px;width:100%;border-radius:8px}#registerView .toolbar #resultsCount{grid-column:1/-1;margin:0;font-size:12px}
 .power-toolbar{display:flex;gap:8px;align-items:end;padding:16px;border-bottom:1px solid var(--line)}.power-toolbar>label:first-child{order:0;min-width:170px}.power-toolbar>label:has(#tableDensity){order:1;min-width:120px}.power-toolbar #saveCurrentView{order:2;margin-left:auto}.power-toolbar>details{order:3}.power-toolbar #restoreLayout{order:4}.power-toolbar #exportCurrentView{order:5}.power-toolbar :is(.btn,.field){height:40px;min-height:40px;font-size:12px}.power-toolbar label{gap:8px}.column-options{border:1px solid var(--line);border-radius:8px;box-shadow:0 4px 16px #07193118}
 #registerView .active-filters{padding:8px 16px;min-height:36px}#registerView .table-scroll{max-height:calc(100vh - 320px);min-height:180px;overflow:auto;overscroll-behavior:contain}
 #registerView .records-table{table-layout:fixed;width:max-content;min-width:100%;border-collapse:separate}
 #registerView .records-table th:nth-child(n){width:var(--column-width);min-width:0;max-width:none}
 #registerView .records-table th:nth-child(1){--column-width:52px}#registerView .records-table th:nth-child(2){--column-width:110px}#registerView .records-table th:nth-child(3){--column-width:170px}#registerView .records-table th:nth-child(4){--column-width:190px}
 #registerView .records-table th:nth-child(5){--column-width:120px}#registerView .records-table th:nth-child(6){--column-width:220px}#registerView .records-table th:nth-child(7){--column-width:190px}#registerView .records-table th:nth-child(8){--column-width:210px}#registerView .records-table th:nth-child(9){--column-width:120px}#registerView .records-table th:nth-child(10){--column-width:95px}#registerView .records-table th:nth-child(11){--column-width:76px}#registerView .records-table th:nth-child(12){--column-width:112px}
 #registerView .records-table.has-entry-date th:nth-child(5){--column-width:145px}#registerView .records-table.has-entry-date th:nth-child(6){--column-width:120px}#registerView .records-table.has-entry-date th:nth-child(7){--column-width:220px}#registerView .records-table.has-entry-date th:nth-child(8){--column-width:190px}#registerView .records-table.has-entry-date th:nth-child(9){--column-width:210px}#registerView .records-table.has-entry-date th:nth-child(10){--column-width:120px}#registerView .records-table.has-entry-date th:nth-child(11){--column-width:95px}#registerView .records-table.has-entry-date th:nth-child(12){--column-width:76px}#registerView .records-table.has-entry-date th:nth-child(13){--column-width:112px}
 #registerView .records-table th{height:44px;padding:8px 12px;font-size:12px;font-weight:600;white-space:normal;letter-spacing:0;text-transform:none}
 #registerView .records-table td{height:52px;padding:8px 12px;vertical-align:middle;font-size:12px;font-weight:400;line-height:1.45;overflow-wrap:normal}#registerView .records-table[data-density="compact"] td{height:44px;padding-top:6px;padding-bottom:6px}
 #registerView .records-table td:first-child{width:52px;max-width:52px}#registerView .records-table td[data-label="Vendor"]{white-space:nowrap;font-size:11px}#registerView .records-table td[data-label="Category"]{text-align:center}#registerView .records-table .customer{font-weight:600}#registerView .records-table .cell-remark{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;max-height:2.9em;overflow:hidden}
 #registerView [data-customer-open]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;max-height:2.9em;text-align:left;line-height:1.45}
 #registerView .actions{display:flex;flex-wrap:nowrap;gap:4px}#registerView .actions .btn-small{min-height:28px;padding:4px 6px;font-size:11px}
 .pager{min-height:56px;padding:8px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-direction:row}.pager-buttons{display:flex;gap:8px}.pager .btn{height:36px;min-height:36px}.pager-info{font-size:12px}
 .overview-kpi,.followup-kpi{padding:16px;min-height:104px}.overview-kpi strong,.followup-kpi strong{font-size:28px}.overview-grid,.report-grid,.backup-grid{gap:16px}.followup-toolbar,.analytics-filters,.invoice-filters{gap:12px;padding:16px}.empty-state{padding:24px}
 #recordDialog{width:720px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);padding:0;border-radius:12px;overflow:auto}#recordForm .dialog-head{position:sticky;top:0;z-index:5;background:var(--panel);padding:16px 24px;border-bottom:1px solid var(--line)}#recordForm .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 16px;padding:20px 24px}#recordForm .form-group{min-width:0}#recordForm .form-group label{margin-bottom:8px;font-size:13px}#recordForm .dialog-actions{position:sticky;bottom:0;z-index:5;background:var(--panel);border-top:1px solid var(--line);padding:12px 24px;gap:8px}#recordForm .dialog-help{margin:16px 24px 0}
 @media(min-width:1500px){body[data-section] main{padding:24px 32px}body[data-section] .app-bar{padding:0 32px}body[data-section] .month-scope{padding-left:32px;padding-right:32px}}
 @media(max-width:1499px){#registerView .toolbar{grid-template-columns:minmax(210px,1.6fr) repeat(2,minmax(150px,1fr))}#registerView #clearFiltersBtn{width:auto;justify-self:start}.power-toolbar #saveCurrentView{margin-left:0}}
 @media(min-width:900px) and (max-width:1179px){body[data-section] .app-sidebar{width:192px}body[data-section] .app-bar,body[data-section] .month-scope{margin-left:192px}body[data-section] main,body[data-sidebar="closed"][data-section] main{margin-left:192px;width:calc(100% - 192px)}body[data-sidebar="closed"][data-section] .app-sidebar{transform:translateX(-100%);visibility:hidden}body[data-sidebar="closed"][data-section] .app-bar,body[data-sidebar="closed"][data-section] .month-scope{margin-left:0}body[data-sidebar="closed"][data-section] main{margin-left:0;width:100%}.breadcrumb{display:none}.bar-profile>span:last-child{display:none}#sidebarToggle{display:inline-flex}}
 @media(max-width:899px){body[data-section] .app-sidebar{width:224px;z-index:60;transform:translateX(-100%);visibility:hidden}body[data-sidebar="open"][data-section] .app-sidebar{transform:none;visibility:visible}body[data-sidebar="open"][data-section]:before{content:"";position:fixed;inset:0;background:#07193166;z-index:55}body[data-section] .app-bar,body[data-section] .month-scope{margin-left:0}body[data-section] main,body[data-sidebar="closed"][data-section] main{margin-left:0;width:100%;padding:16px}#sidebarToggle{display:inline-flex;position:relative;z-index:70}.app-bar{z-index:65}.breadcrumb,.bar-profile{display:none}.app-bar #globalSearchForm{display:flex;min-width:80px;order:0}.bar-actions{width:auto;margin-left:auto}.section-head{gap:12px;margin-bottom:24px}#registerView .toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}.power-toolbar>label:first-child{min-width:150px}.power-toolbar{gap:8px}.app-sidebar nav{display:grid;overflow:visible}.sidebar-brand{display:flex;flex-direction:column;align-items:flex-start}.sidebar-brand br{display:block}}
 @media(max-width:560px){.app-bar #globalSearchForm{display:none}body[data-section] .app-bar{padding:0 12px}.section-head{flex-wrap:wrap}#recordForm .form-grid{grid-template-columns:1fr}#registerView .toolbar{grid-template-columns:1fr}.pager{flex-wrap:wrap}.power-toolbar #saveCurrentView{margin-left:0}}
 @media(prefers-reduced-motion:reduce){.btn{transition:none}}
}
@media screen {
 /* Compact desktop filters retain useful table space. */
 #registerView .toolbar{grid-template-columns:minmax(180px,1.5fr) repeat(4,minmax(120px,1fr)) minmax(100px,.8fr) auto}
 #registerView .toolbar #clearFiltersBtn{width:auto;justify-self:start;padding-left:12px;padding-right:12px}
 #registerView .records-table th:nth-child(n){width:var(--column-width);min-width:0;max-width:none}
 #registerView .records-table th:first-child{width:52px;min-width:52px;max-width:52px}
 @media(max-width:1279px){#registerView .toolbar{grid-template-columns:repeat(3,minmax(0,1fr))}}
 @media(max-width:899px){#registerView .toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}}
 @media(max-width:560px){#registerView .toolbar{grid-template-columns:1fr}}
}
@media screen {
 #categoryFilterTrigger{display:flex;align-items:center;gap:4px;white-space:nowrap;overflow:hidden}#categoryFilterTrigger span{white-space:nowrap;flex-shrink:0}#categoryFilterTrigger small{font-size:9px;white-space:nowrap}
 .app-sidebar{overflow-x:hidden}.sidebar-bottom{flex-shrink:0}.sidebar-brand{flex-shrink:0}.app-sidebar nav{flex-shrink:0}
 @media(max-width:899px){body[data-section] .app-sidebar{top:68px;height:calc(100dvh - 68px)}.app-sidebar .brand-credit{display:block;width:100%}}
}
@media screen {
 #registerView .toolbar{grid-template-columns:minmax(180px,1.5fr) minmax(110px,1fr) minmax(120px,1fr) minmax(154px,1fr) minmax(135px,1fr) 110px auto}
 #categoryFilterTrigger{flex-wrap:nowrap}.category-selection-count{font-size:9px}
 @media(max-width:1350px){#registerView .toolbar{grid-template-columns:repeat(3,minmax(0,1fr))}}
 @media(max-width:899px){#registerView .toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}}
 @media(max-width:560px){#registerView .toolbar{grid-template-columns:1fr}}
}
@media screen {#registerView .table-scroll{max-height:max(220px,calc(100dvh - 560px))}}
@media screen {
 body[data-section] main .btn-primary{background:var(--navy2);border-color:var(--navy2);color:#fff}
 #trustView>.panel{padding:20px;margin-bottom:16px}#trustView>.panel>h3{margin:0 0 12px}
 .operations-table table{font-size:13px}.operations-table th,.operations-table td{padding:12px;vertical-align:middle}
 .private-filters{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:16px}.private-filters>.btn{justify-self:start}.private-table th,.private-table td{padding:12px;vertical-align:middle}.earnings-table th:nth-child(3){min-width:170px}.earnings-table th:nth-child(4){min-width:190px}.earnings-table th:nth-child(5){min-width:95px}.earnings-totals strong{font-size:24px;white-space:nowrap}.earnings-totals>div{padding:16px}
 #quotationView .overview-kpi strong{font-size:22px;overflow-wrap:normal;white-space:nowrap}#quotationView .overview-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
 @media(max-width:899px){.private-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
}
@media screen {#recordForm .dialog-head,#recordForm .dialog-head h2,#recordForm .close-btn{color:var(--ink)}.app-sidebar .brand-credit{display:flex;flex-direction:column;align-items:flex-start;gap:4px}}
/* Register viewport: controls overlay the table instead of consuming its height. */
@media screen {
 body[data-section="register"]{overflow:hidden}
 body[data-section="register"] .app-bar{position:fixed;top:0;left:224px;right:0;width:auto;margin:0;height:56px;min-height:56px;padding:0 16px;z-index:50}
 body[data-section="register"] #registerView:not([hidden]){position:fixed;top:56px;bottom:0;left:224px;right:0;width:auto;max-width:none;margin:0;padding:12px 16px;display:flex;flex-direction:column;gap:8px;min-height:0;overflow:visible}
 #registerView>.section-head{flex:0 0 48px;min-height:0;max-height:48px;margin:0;padding:0;gap:8px;align-items:center}
 #registerView>.section-head h2{font-size:21px;line-height:1.2;margin:0}
 #registerView>.section-head p{display:none}
 #registerView #resultsCount{display:block;margin:3px 0 0;padding:0;font-size:11px;line-height:16px}
 #registerView>.layout{display:flex;flex:1;min-height:0;margin:0;gap:0}
 #registerView .data-panel{display:flex;flex-direction:column;flex:1;min-height:0;margin:0;padding:0;overflow:visible}
 #registerView .data-panel>.panel-head,#registerView .toolbar[hidden],#registerView .scroll-hint{display:none}
 #registerView .register-controls{position:relative;display:flex;align-items:center;gap:8px;padding:7px 12px;height:52px;min-height:52px;box-sizing:border-box;border-bottom:1px solid var(--line);z-index:35;flex:none}
 #registerView .register-controls>.filter-control{flex:1;min-width:100px;max-width:480px}
 #registerView .register-controls>.filter-control>label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 #registerView .register-controls :is(.field,.search,.btn){min-height:36px;height:36px;font-size:12px}
 #registerView .register-controls>.filter-control .search{width:100%;padding-block:6px}
 #registerView .register-menu{position:static;flex:none}
 #registerView .register-menu>summary{list-style:none;display:flex;align-items:center;gap:4px;white-space:nowrap;cursor:pointer}
 #registerView .register-menu>summary::-webkit-details-marker{display:none}
 #registerView .register-menu[open]>summary{background:#e8f0f8;border-color:#7898b7}
 #registerView .register-popover{position:absolute;top:calc(100% + 4px);right:12px;width:min(590px,calc(100% - 24px));box-sizing:border-box;padding:14px;background:var(--panel);border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 28px #07193130;max-height:calc(100dvh - 230px);overflow:auto}
 #registerView .filter-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 #registerView .filter-fields .filter-control{min-width:0;display:grid;gap:5px}
 #registerView .filter-fields label{font-size:12px;color:var(--muted)}
 #registerView .filter-fields .field{width:100%;min-width:0}
 #registerView .menu-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}
 #registerView .view-menu .register-popover{width:min(440px,calc(100% - 24px))}
 #registerView .power-toolbar{display:grid;grid-template-columns:1fr 1fr;padding:0;margin:0;gap:10px;border:0}
 #registerView .power-toolbar>*{min-width:0;order:initial;margin:0}
 #registerView .power-toolbar label{gap:4px}
 #registerView .power-toolbar details{grid-column:1/-1}
 #registerView .power-toolbar .column-options{position:static;box-shadow:none;display:grid;grid-template-columns:1fr 1fr;padding:8px;margin-top:6px}
 #registerView .power-toolbar details:not([open]) .column-options{display:none}
 #registerView .power-toolbar .column-options label{font-size:12px;padding:5px;display:flex;align-items:center;gap:6px}
 #registerView .view-menu #addCallerBtn{margin-top:12px}
 #registerView #activeFilters{display:none;flex:none;min-height:0;margin:0;padding:4px 12px;gap:4px;max-height:34px;overflow:auto;white-space:nowrap;border-bottom:1px solid var(--line)}
 #registerView.has-active-filters #activeFilters{display:flex}
 #registerView #activeFilters .filter-chip{padding:3px 7px;font-size:11px;min-height:24px}
 #registerView #recordsScroll{flex:1;min-height:0;height:auto;max-height:none;overflow:auto;margin:0;overscroll-behavior:contain;border-radius:0}
 #registerView .records-table{min-width:100%;width:max-content;table-layout:fixed}
 #registerView .records-table th{height:40px;padding:6px 10px;box-sizing:border-box;font-size:11px;vertical-align:middle;top:0}
 #registerView .records-table th:nth-child(1){--column-width:52px}#registerView .records-table th:nth-child(2){--column-width:105px}#registerView .records-table th:nth-child(3){--column-width:165px}#registerView .records-table th:nth-child(4){--column-width:175px}
 #registerView .records-table:not(.has-entry-date) th:nth-child(5){--column-width:115px}#registerView .records-table:not(.has-entry-date) th:nth-child(6){--column-width:210px}#registerView .records-table:not(.has-entry-date) th:nth-child(7){--column-width:180px}#registerView .records-table:not(.has-entry-date) th:nth-child(8){--column-width:200px}#registerView .records-table:not(.has-entry-date) th:nth-child(9){--column-width:115px}#registerView .records-table:not(.has-entry-date) th:nth-child(10){--column-width:92px}#registerView .records-table:not(.has-entry-date) th:nth-child(11){--column-width:72px}#registerView .records-table:not(.has-entry-date) th:nth-child(12){--column-width:105px}
 #registerView .records-table[data-density="compact"] td{height:42px;padding:6px 10px;font-size:12px;line-height:15px;vertical-align:middle}
 #registerView .records-table[data-density="comfortable"] td{height:52px;padding:8px 10px;font-size:13px;line-height:17px;vertical-align:middle}
 #registerView .records-table :is(.customer,.cell-remark){line-height:15px;max-height:30px;overflow:hidden}
 #registerView .records-table td[data-label="Caller"],#registerView .records-table td[data-label="Vendor"]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #registerView .records-table .row-actions{display:flex;flex-wrap:nowrap;gap:4px}
 #registerView .records-table .btn-small{min-height:28px;height:28px;padding:3px 6px;font-size:11px}
 #registerView .pager{height:48px;min-height:48px;flex:none;padding:6px 12px;margin:0;box-sizing:border-box;border-top:1px solid var(--line);gap:8px}
 #registerView .pager .btn{height:32px;min-height:32px;padding:5px 12px}
 #registerView .pager-info{font-size:12px}
 .sidebar-backdrop{display:none}
 @media(min-width:900px){body[data-section] .app-sidebar{width:224px;transform:none}#sidebarToggle{display:none}}
 @media(max-width:899px){
  body[data-section="register"] .app-bar{left:0;height:56px;min-height:56px;padding:0 12px}
  body[data-section="register"] #registerView:not([hidden]){left:0;padding:12px 12px}
  body[data-section] .app-sidebar{top:56px;bottom:0;height:calc(100dvh - 56px);width:224px;z-index:80}
  body[data-section][data-sidebar="closed"] .app-sidebar{transform:translateX(-100%);visibility:hidden}
  body[data-section][data-sidebar="open"] .app-sidebar{transform:translateX(0);visibility:visible}
  body[data-section][data-sidebar="open"]:before{display:none}
  body.drawer-open{overflow:hidden}
  .sidebar-backdrop:not([hidden]){display:block;position:fixed;inset:56px 0 0;z-index:75;border:0;border-radius:0;background:#07193166;width:100%;height:calc(100dvh - 56px)}
  #sidebarToggle{display:inline-flex}
  #registerView .register-controls{padding-inline:8px;gap:6px}
  #registerView .register-controls>.btn{padding-inline:8px}
  #registerView>.section-head h2{font-size:19px}
 }
}
@media screen {
 #registerView>.layout{align-items:stretch}
 #registerView .data-panel{align-self:stretch;height:100%}
 body[data-section="register"] .app-bar{margin:0}
 #registerView .records-table{min-width:1586px}
}
@media screen {
 #registerView .data-panel{display:grid;grid-template-areas:"controls" "chips" "table" "pager";grid-template-rows:52px auto minmax(0,1fr) 48px;grid-template-columns:minmax(0,1fr)}
 #registerView .register-controls{grid-area:controls}
 #registerView #activeFilters{grid-area:chips}
 #registerView #recordsScroll{grid-area:table;align-self:stretch;max-height:100%;height:100%}
 #registerView .pager{grid-area:pager}
 #registerView .records-table .actions{display:flex;flex-wrap:nowrap;gap:4px}
}
@media screen {
 #registerView .records-table{min-width:0}
 #registerView .section-head .view-actions{display:flex;gap:8px;flex-wrap:nowrap}
 #registerView .section-head .view-actions .btn{height:36px;min-height:36px;font-size:12px;padding:6px 12px}
}
@media screen {
 #registerView .records-table[data-density="comfortable"] .customer{line-height:17px;max-height:34px}
 #registerView .records-table[data-density="compact"] .customer{line-height:15px;max-height:30px}
 @media(min-width:900px) and (max-width:1179px){body[data-section]:not([data-section="register"]) .app-sidebar{width:192px}}
 @media(max-width:899px){body[data-section]:not([data-section="register"]) .app-sidebar{top:68px;height:calc(100dvh - 68px)}body[data-section]:not([data-section="register"]) .sidebar-backdrop{top:68px;height:calc(100dvh - 68px)}}
}
@media print {.register-controls,.sidebar-backdrop{display:none!important}}
/* Single-row register toolbar, with the same controls and event handlers. */
@media screen {
 #registerView .register-controls{height:52px;min-height:52px;padding:5px 12px;gap:8px;flex-wrap:nowrap;justify-content:flex-start}
 #registerView .register-controls>.filter-control{flex:0 1 300px;width:300px;min-width:240px;max-width:340px}
 #registerView .register-controls :is(.field,.search,.btn){height:40px;min-height:40px;border-radius:8px;font-size:12px}
 #registerView .register-controls>.btn,#registerView .register-menu>summary{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0 10px;white-space:nowrap;flex-shrink:0}
 #registerView .register-control-icon{width:16px;height:16px;flex:0 0 16px;display:inline-block;vertical-align:middle}
 #registerView .search-wrap{position:relative}
 #registerView .search-wrap:before{display:none}
 #registerView .register-search-icon{position:absolute;left:11px;top:50%;transform:translateY(-50%);pointer-events:none;color:var(--muted)}
 #registerView .register-controls .search{padding:6px 34px 6px 34px}
 #registerView .register-controls .search::-webkit-search-cancel-button{appearance:none}
 #registerView .clear-register-search{position:absolute;right:5px;top:50%;transform:translateY(-50%);width:28px;height:28px;padding:6px;border:0;border-radius:6px;background:transparent;color:var(--muted);cursor:pointer;display:flex;align-items:center;justify-content:center}
 #registerView .clear-register-search[hidden]{display:none}
 #registerView .clear-register-search:hover{background:#e8eef5;color:var(--ink)}
 #registerView .filters-empty{opacity:.55}
 #registerView .filters-active .filter-menu>summary{border-color:#bb8c30;box-shadow:inset 0 -2px #c69224}
 #registerView .register-controls #exportCurrentView{display:inline-flex;align-items:center;justify-content:center;gap:6px}
 body[data-section="register"] #registerView #addBtn{background:#f5a000;border-color:#f5a000;color:#071931}
 @media(min-width:900px) and (max-width:1179px){
  #registerView .register-controls>.filter-control{flex-basis:240px;width:240px}
  #registerView .register-controls>#exportCurrentView .export-label{display:none}
  #registerView .register-controls>#exportCurrentView{width:40px;padding:0}
 }
 @media(max-width:899px){
  #registerView .register-controls{padding-inline:8px}
  #registerView .register-controls>.filter-control{flex:1 1 240px;max-width:300px}
 }
 @media(max-width:600px){
  #registerView .register-controls{height:auto;min-height:52px;max-height:96px;flex-wrap:wrap}
  #registerView .data-panel{grid-template-rows:auto auto minmax(0,1fr) 48px}
  #registerView .register-controls>.filter-control{flex-basis:100%;max-width:none;width:100%;min-width:0}
 }
}
@media screen and (min-width:900px) and (max-width:1179px){#registerView .register-controls>.btn .clear-filters-label{display:none}#registerView .register-controls>#clearFiltersBtn{width:40px;padding:0}}
/* Visible filters remain in one scrollable toolbar at every width. */
@media screen {
 #registerView .visible-filter-toolbar{height:52px;min-height:52px;max-height:52px;display:flex;flex-wrap:nowrap;padding:5px 8px;gap:7px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:#b7c9d9 transparent}
 #registerView .visible-filter-toolbar>.filter-control{flex:0 0 auto;min-width:0;max-width:none;width:auto}
 #registerView .visible-filter-toolbar>.register-search-control{flex:0 0 220px;width:220px;min-width:220px;max-width:220px}
 #registerView .visible-filter-toolbar .filter-control>label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 #registerView .visible-filter-toolbar .field{width:100%;min-width:0;padding:0 25px 0 9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}
 #registerView .visible-filter-toolbar>.filter-control:has(#callerFilter){width:90px}
 #registerView .visible-filter-toolbar>.filter-control:has(#vendorFilter){width:110px}
 #registerView .visible-filter-toolbar>.filter-control:has(#categoryFilter){width:115px}
 #registerView .visible-filter-toolbar>.filter-control:has(#remarkFilter){width:120px}
 #registerView .visible-filter-toolbar>.filter-control:has(#monthFilter){width:96px}
 #registerView .visible-filter-toolbar .category-multiselect{min-width:0;width:100%}
 #registerView .visible-filter-toolbar .category-select-trigger{position:relative;gap:3px}
 #registerView .visible-filter-toolbar .category-select-trigger:after{content:'⌄';position:absolute;right:8px;background:var(--panel);padding-left:3px}
 #registerView .visible-filter-toolbar .category-selection-count{display:none}
 #registerView .visible-filter-toolbar .filter-in-use .field{border-color:#b88b35;box-shadow:inset 0 -2px #c39436}
 #registerView .visible-filter-toolbar .register-menu>summary{width:106px;padding:0 7px}
 #registerView .visible-filter-toolbar>#clearFiltersBtn{width:104px;padding:0 7px}
 #registerView .visible-filter-toolbar>#clearFiltersBtn .clear-filters-label{display:inline}
 #registerView .visible-filter-toolbar .register-popover,#registerView .visible-filter-toolbar .category-select-panel{z-index:100;max-height:calc(100dvh - 200px);overflow:auto}
 #registerView .visible-filter-toolbar .category-select-panel[hidden]{display:none}
 #registerView .visible-filter-toolbar .power-toolbar .field{padding:0 10px}
 #registerView .data-panel:has(.visible-filter-toolbar){grid-template-rows:52px auto minmax(0,1fr) 48px}
}
@media screen {
 #registerView .visible-filter-toolbar>.filter-control:has(#callerFilter){width:104px}
 #registerView .visible-filter-toolbar>.filter-control:has(#vendorFilter){width:120px}
 #registerView .visible-filter-toolbar>.filter-control:has(#categoryFilter){width:118px}
 #registerView .visible-filter-toolbar>.filter-control:has(#remarkFilter){width:140px}
 #registerView .visible-filter-toolbar>.filter-control:has(#monthFilter){width:110px}
 #registerView .visible-filter-toolbar select.field{appearance:none;background-image:linear-gradient(45deg,transparent 50%,#526b80 50%),linear-gradient(135deg,#526b80 50%,transparent 50%);background-position:calc(100% - 12px) 18px,calc(100% - 8px) 18px;background-size:4px 4px;background-repeat:no-repeat}
}

/* Unit Price stays within existing row density; toolbar is unchanged. */
#registerView .unit-price-cell{width:120px;min-width:120px;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums} .unit-price-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.unit-price-editor{border-top:1px solid #cbd5e1;margin:0 24px;padding:16px 0}.unit-price-editor p{margin:6px 0}.unit-price-editor label{display:block;font-weight:600}.unit-price-editor .field{margin-top:6px}.unit-price-editor small{display:block;margin-top:8px;color:var(--muted)}.unit-price-editor details{margin-top:8px}
#registerView .visible-filter-toolbar>.filter-control:has(#systemFilter){width:104px}#registerView .visible-filter-toolbar>.filter-control:has(#systemFilter)>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}

}

.techno-editor{display:grid;gap:12px;margin-block:16px}.techno-editor[hidden]{display:none}.techno-editor details{border:1px solid #d5e1ee;border-radius:8px;padding:12px}.techno-editor summary{cursor:pointer;font-weight:700;margin-bottom:10px}.techno-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.techno-editor label{display:block}.techno-boq-row{padding:12px 0;border-bottom:1px solid #d5e1ee}.techno-editor textarea{min-height:76px}.techno-editor .techno-commercial{padding:10px;background:#f2f6fa}.techno-editor [hidden]{display:none}

.techno-editor{grid-column:1/-1;min-width:0}.techno-editor input[readonly]{background:var(--surface-muted,#f3f6fa)}

/* Standard quotation workflow: four offer inputs and an approved package snapshot. */
.standard-quotation{grid-template-columns:minmax(300px,390px) minmax(0,1fr);align-items:start}.standard-quotation #standardOffer{display:grid;grid-template-columns:1fr;gap:12px}.standard-customer-summary{padding:12px;background:var(--surface-alt,#f4f7fa);border:1px solid #d9e3ec;border-radius:8px;margin:12px 0}.standard-customer-summary p{margin:5px 0}.standard-preview{position:sticky;top:80px;max-height:calc(100vh - 100px);overflow:auto}.standard-preview .view-actions{position:sticky;top:0;background:white;padding:8px;z-index:2}.standard-preview .view-actions label{display:flex;align-items:center;gap:6px}.standard-preview .field{width:auto}.standard-master-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.standard-master-grid label{display:grid;gap:5px}#packageForm details{border:1px solid #d9e3ec;padding:12px;border-radius:8px;margin:12px 0}#packageForm summary{font-weight:600;cursor:pointer;margin-bottom:10px}#packageForm .field{width:100%;min-width:0}#packageForm textarea{min-height:80px}#packageForm .private-table input{min-width:130px}#standardPreviewHost{overflow:auto}#standardMessage,#packageErrors{color:#87570a}#consultantForm{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px} @media(max-width:1000px){.standard-quotation{grid-template-columns:1fr}.standard-preview{position:static;max-height:none}.standard-master-grid,#consultantForm{grid-template-columns:1fr}}

/* Monthly incentive presentation: display only, no payout or grid changes. */
.incentive-statement-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 22px;margin-bottom:16px;border:1px solid #c7d7e8;border-left:4px solid #bd850c;border-radius:12px;background:linear-gradient(115deg,#fff,#f0f5fb)}
.incentive-statement-heading h3{font-size:23px;color:#0d2d4b;margin:5px 0}.incentive-statement-heading p{margin:4px 0}.incentive-statement-tag{font-size:12px;padding:7px 11px;border:1px solid #bfd2e5;border-radius:20px;color:#244a6b;background:#fff;white-space:nowrap}
.incentive-approval-status{display:block;font-weight:650;color:#234c68;line-height:1.5}.incentive-payout-status{display:block;margin-top:4px;color:#536882}
.incentive-grid-summary{border:1px solid #c7d7e8;border-radius:10px;margin-top:18px;background:#fff}.incentive-grid-summary summary{cursor:pointer;padding:15px 18px;font-weight:700;color:#123554}.incentive-grid-summary summary span{font-size:12px;font-weight:400;margin-left:10px;color:#586d84}.incentive-grid-tiers{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:0 18px 12px}.incentive-grid-tiers>div{border:1px solid #d6e1ed;border-radius:8px;padding:12px;background:#f7faff}.incentive-grid-tiers span,.incentive-grid-tiers strong{display:block}.incentive-grid-tiers strong{margin-top:6px;color:#153c5c}.incentive-grid-summary>p{padding:0 18px 14px;font-size:12px;color:#536882;margin:0}
.incentive-encouragement{padding:16px 20px;border:1px solid #ead8a9;border-radius:10px;color:#6a501c;background:#fffaf0;text-align:center;font-weight:600;margin-top:18px}
.incentive-statement-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}.incentive-statement-totals>div{padding:14px;border:1px solid #d6e1ed;border-radius:8px}.incentive-statement-totals span,.incentive-statement-totals strong{display:block}.incentive-statement-totals strong{margin-top:7px;font-size:20px;color:#123554}
@media(max-width:640px){.incentive-statement-heading{align-items:flex-start;flex-direction:column}.incentive-grid-tiers,.incentive-statement-totals{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Supporting-case statement: readable grid within the existing dialog. */
.incentive-dialog .incentive-case-grid{margin-top:14px;border:1px solid #b9ccde;border-radius:10px;overflow:auto;max-height:52vh;background:#fff}
.incentive-case-grid table{width:100%;min-width:1220px;border-collapse:separate;border-spacing:0;table-layout:fixed;font-size:13px;line-height:1.5}
.incentive-case-grid th,.incentive-case-grid td{box-sizing:border-box;padding:11px 12px;border-right:1px solid #c7d6e5;border-bottom:1px solid #c7d6e5;text-align:left;vertical-align:middle;overflow-wrap:break-word}
.incentive-case-grid th{position:sticky;top:0;z-index:1;color:#fff;background:linear-gradient(180deg,#174f78,#0d2d4b);font-weight:700;border-bottom:2px solid #d5a52e;font-size:12px;line-height:1.45}
.incentive-case-grid th:last-child,.incentive-case-grid td:last-child{border-right:0}.incentive-case-grid tr:last-child td{border-bottom:0}
.incentive-case-grid tbody tr:nth-child(even){background:#f2f6fb}.incentive-case-grid tbody tr:nth-child(odd){background:#fff}.incentive-case-grid tbody tr:hover{background:#eaf3fc}
.incentive-case-grid th:nth-child(1),.incentive-case-grid td:nth-child(1){width:46px;text-align:center;padding-left:6px;padding-right:6px}
.incentive-case-grid th:nth-child(2){width:170px}.incentive-case-grid td:nth-child(2){font-weight:600;color:#173c5b}
.incentive-case-grid th:nth-child(3){width:95px}.incentive-case-grid th:nth-child(4){width:100px}.incentive-case-grid th:nth-child(5){width:90px}.incentive-case-grid th:nth-child(6){width:75px}
.incentive-case-grid th:nth-child(7){width:125px}.incentive-case-grid th:nth-child(8),.incentive-case-grid th:nth-child(9){width:105px}
.incentive-case-grid th:nth-child(10),.incentive-case-grid th:nth-child(12){width:125px;text-align:right}.incentive-case-grid td:nth-child(10),.incentive-case-grid td:nth-child(12){text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.incentive-case-grid th:nth-child(11){width:110px}.incentive-case-grid td:nth-child(12){font-weight:700;background:#fff9e9}
.incentive-dialog #exportSupportingCases{margin-right:8px}.incentive-case-grid:focus-visible{outline:3px solid #4f8bc8;outline-offset:2px}
@media print{.incentive-case-grid{max-height:none!important;overflow:visible!important}.incentive-case-grid table{min-width:0;table-layout:auto}.incentive-case-grid th{position:static}}
.incentive-dialog:has(.incentive-case-grid){width:min(1280px,96vw)}
.incentive-case-grid th{overflow-wrap:normal;word-break:normal}.incentive-case-grid th:nth-child(6){width:85px}
.incentive-case-grid th:last-child,.incentive-case-grid td:last-child{position:sticky;right:0;border-left:1px solid #c7d6e5;box-shadow:-3px 0 6px #143a5610}.incentive-case-grid th:last-child{z-index:2}.incentive-case-grid td:last-child{z-index:1}

/* Dedicated incentive print layout, independent of scrollable screen tables. */
.incentive-print-document{color:#15314e;font:10px/1.45 Arial,sans-serif;background:#fff}
.incentive-print-header{display:flex;justify-content:space-between;align-items:center;gap:20px;border-top:4px solid #123c60;border-bottom:2px solid #c99b24;padding:16px 0;margin-bottom:18px}.incentive-print-header>div:first-child{display:flex;align-items:center;gap:12px}.incentive-print-header img{width:58px;height:58px;object-fit:contain}.incentive-print-header strong{font-size:22px;letter-spacing:2px}.incentive-print-header span{display:block;font-size:9px}.incentive-print-header h1{font-size:19px;margin:0 0 6px;text-align:right}.incentive-print-header p{margin:0;text-align:right;color:#526981}
.incentive-print-meta{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:16px 0}.incentive-print-meta>div{padding:12px;border:1px solid #c4d4e3;background:#f4f7fb}.incentive-print-meta span,.incentive-print-meta strong{display:block}.incentive-print-meta span{font-size:9px;letter-spacing:1px;color:#586e85}.incentive-print-meta strong{font-size:16px;margin-top:4px}
.incentive-print-totals{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:14px 0}.incentive-print-totals>div{border:1px solid #c4d4e3;border-top:3px solid #bd9123;padding:12px 9px;background:#fbfcfe}.incentive-print-totals span,.incentive-print-totals strong{display:block}.incentive-print-totals strong{font-size:17px;margin-top:7px}.incentive-print-status{font-weight:bold;padding:9px 12px;background:#edf4f9;border:1px solid #c4d4e3}.incentive-print-caption{font-size:9px;color:#526981;margin:12px 0 8px}
.incentive-print-table{width:100%;border-collapse:collapse;font-size:10px;table-layout:auto}.incentive-print-table th,.incentive-print-table td{border:1px solid #b9ccdf;padding:9px 7px;text-align:left;vertical-align:middle;overflow-wrap:normal}.incentive-print-table th{background:#123c60;color:#fff;font-weight:bold;border-bottom:2px solid #cca12f}.incentive-print-table tbody tr:nth-child(even){background:#f0f5fa}.incentive-print-table .amount{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.incentive-print-table tfoot td{background:#e9f0f7;font-weight:bold;border-top:2px solid #123c60}.incentive-print-table td:first-child{font-weight:600}
.incentive-print-grid{border:1px solid #c4d4e3;padding:12px;margin-top:18px;break-inside:avoid}.incentive-print-grid h2{font-size:13px!important;margin:0 0 10px!important}.incentive-print-grid>div{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.incentive-print-grid p{margin:0;background:#f4f7fb;padding:9px;border:1px solid #d2deea}.incentive-print-grid span,.incentive-print-grid strong{display:block}.incentive-print-grid strong{margin-top:5px}.incentive-print-grid small{display:block;margin-top:9px;color:#526981}
.incentive-print-wish{text-align:center;font-weight:bold;border:1px solid #e3d1a5;padding:12px;background:#fff9ec;color:#71551a;margin-top:16px}.incentive-print-document footer{margin-top:18px;border-top:1px solid #c4d4e3;padding-top:10px;text-align:center;font-size:9px;color:#526981}
@media print{@page incentiveStatement{size:A4 portrait;margin:12mm}body.printing-report #professionalPrint.incentive-print-document{page:incentiveStatement;font:10px/1.45 Arial,sans-serif}.printing-report .incentive-dialog{display:none!important}.incentive-print-document thead{display:table-header-group}.incentive-print-document tfoot{display:table-row-group}.incentive-print-document tr,.incentive-print-meta,.incentive-print-totals,.incentive-print-header{break-inside:avoid}.incentive-print-document *{print-color-adjust:exact;-webkit-print-color-adjust:exact}}

body[data-access-role="CALLER"] #addBtn,body[data-access-role="CALLER"] #importBtn,body[data-access-role="CALLER"] #backupBtn,body[data-access-role="CALLER"] [data-action],body[data-access-role="CALLER"] [data-operation],body[data-access-role="CALLER"] [data-edit],body[data-access-role="CALLER"] #addCallerBtn,body[data-access-role="CALLER"] #addCallerInForm{display:none!important}
.caller-scope-note{margin:8px 24px;color:#224c6c;background:#edf5fc;border:1px solid #bdd3e6;border-radius:8px;padding:8px 12px;font-size:13px}

/* Operational installation status: compact and independent of category colour. */
.installation-form[hidden],#installationReasonLabel[hidden]{display:none!important}.installation-cell{text-align:center!important;min-width:90px}.installation-status{display:inline-flex;align-items:center;justify-content:center;min-width:36px;padding:3px 7px;border-radius:6px;font-weight:700;font-size:11px;white-space:nowrap;line-height:1.2}.installation-yes{color:#07502b;background:#bdf4cf;border:1px solid #39bc6a}.installation-no{color:#714900;background:#fff0bb;border:1px solid #d8a728}.installation-summary{display:flex;flex-wrap:wrap;gap:12px;padding:12px;border:1px solid #c9d8e7;border-radius:8px;margin:12px 0}.installation-summary span{font-size:12px}.installation-summary strong{margin-left:5px}#installationFilter{max-width:125px}.installation-cell .resize-handle{display:none}
#registerView .visible-filter-toolbar>.filter-control:has(#installationFilter){width:112px}#registerView .visible-filter-toolbar>.filter-control:has(#installationFilter)>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}

.installation-select{height:28px;min-width:62px;padding:3px 6px;cursor:pointer}.installation-select:focus-visible{outline:2px solid #1264a3;outline-offset:2px}.installation-select:disabled{cursor:wait;opacity:.7}

/* Selection is ephemeral; category colours and existing row density stay intact. */
.selection-bar{display:flex;align-items:center;gap:8px;min-height:44px;padding:4px 8px;margin:0 0 6px;border:1px solid #bdccda;border-radius:8px;background:#f4f7fb;box-shadow:0 1px 3px #1031500a;flex-wrap:wrap}
.selection-bar[hidden]{display:none}.selection-bar .btn{min-height:34px;font-size:12px;padding:6px 10px}.selection-count{background:#103150;color:white;border-radius:6px;padding:7px 10px;font-size:12px;font-weight:600}
#recordsBody .selection-cell,th.selection-cell{text-align:center!important;padding:0!important;width:44px!important;min-width:44px!important;max-width:44px!important}
.selection-target{display:inline-flex;width:32px;height:32px;align-items:center;justify-content:center;cursor:pointer;margin:0}
.selection-target input{appearance:none;width:18px;height:18px;margin:0;border:1px solid #8095aa;border-radius:4px;background:white;cursor:pointer;transition:background-color 140ms,border-color 140ms;display:grid;place-content:center}
.selection-target input:checked,.selection-target input:indeterminate{background:#103150;border-color:#103150}.selection-target input:checked:before{content:'';width:8px;height:4px;border-left:2px solid #ffcb45;border-bottom:2px solid #ffcb45;transform:rotate(-45deg);margin-top:-2px}.selection-target input:indeterminate:before{content:'';width:9px;height:2px;background:#ffcb45}.selection-target input:focus-visible{outline:2px solid #b97800;outline-offset:3px}.selection-target:hover input{border-color:#103150}
#recordsBody tr.record-selected>td{box-shadow:inset 0 1px #10315055,inset 0 -1px #10315055}#recordsBody tr.record-selected>td:first-child{box-shadow:inset 3px 0 #d99c08,inset 0 1px #10315055,inset 0 -1px #10315055}
#recordsBody td[data-label="Sr. No."],th[data-column-key="sr-no"]{text-align:center!important}
@media(prefers-reduced-motion:reduce){.selection-target input{transition:none}}

#workspace #registerView table th.selection-cell,#workspace #registerView table td.selection-cell{padding:0!important;text-overflow:clip!important;overflow:visible!important;text-align:center!important}
#workspace #registerView .selection-target input{width:18px!important;height:18px!important;min-width:18px!important;min-height:18px!important}
#workspace #registerView .selection-bar{min-height:44px;padding:3px 8px}

/* Invoice status text: yellow/gold, independent of price-lock state. */
.category-processing.is-invoiced .processing-symbol{color:#B88600}

/* Operations Command Centre: scoped additions, existing navy/gold identity. */
.ops-command .ops-kpis{display:grid;grid-template-columns:repeat(6,minmax(110px,1fr));gap:8px;margin:12px 0}.ops-kpis button{background:var(--surface,#fff);border:1px solid #cbd9e7;border-radius:8px;padding:10px;text-align:left;color:#123b5d}.ops-kpis button[aria-pressed=true]{border-color:#c18a00;box-shadow:inset 0 3px #d9a315}.ops-kpis span{display:block;font-size:12px}.ops-kpis strong{font-size:22px}.ops-filters{display:flex;gap:6px;overflow:auto;align-items:center;padding:6px 0}.ops-filters .field{height:38px;min-width:120px;max-width:200px}.ops-command .overview-table th,.ops-command .overview-table td{padding:9px 10px;vertical-align:top}.ops-command .overview-table{min-width:1100px}.ops-pill{display:inline-block;font-size:11px;font-weight:600;line-height:1.35;padding:3px 7px;margin:2px;border-radius:5px;border:1px solid #c7d6e4;background:#edf4fa;color:#174d74;white-space:normal}.ops-stalled{background:#fce6e6;color:#8c1d28;border-color:#e5b2b7}.ops-overdue,.ops-overdue-follow-up{background:#fff0e4;color:#9c390d}.ops-attention,.ops-no-recent-activity{background:#fff6d9;color:#795b00}.ops-completed,.ops-on-track{background:#e7f5e9;color:#175b34}.ops-due-today{background:#e9f1ff;color:#1c4c91}
#customer360.customer-drawer{position:fixed;inset:72px 12px 12px auto;margin:0;width:min(580px,calc(100vw - 32px));height:calc(100dvh - 84px);max-height:none;max-width:none;padding:0;border:1px solid #cfdae7;border-radius:12px;box-shadow:0 16px 46px #102d4d40;overflow:hidden;animation:ops-slide .16s ease-out}#customer360[open]{display:flex;flex-direction:column}#customer360::backdrop{background:#102b4033}#customer360>header{position:relative;flex:none;background:white;padding:16px 18px;border-bottom:1px solid #d2dfeb;border-top:3px solid #dba51b}#customer360>header [data-ops-close]{float:right}#customer360 h2{font-size:20px;margin:5px 0}#customer360 h3{font-size:15px;margin:0 0 10px}#customer360 .customer-details{overflow:auto;flex:1;min-height:0;padding:16px 18px}#customer360 section+section{border-top:1px solid #d6e0ea;padding-top:15px;margin-top:15px}#customer360 dl{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0}#customer360 dl div{min-width:0}#customer360 dt{font-size:11px;color:#5d7387}#customer360 dd{font-size:13px;margin:2px 0;overflow-wrap:anywhere}#customer360 .customer-timeline{padding-left:20px;font-size:13px}#customer360 .customer-timeline h4{font-size:12px;color:#617789;margin:12px 0 6px}#customer360 .customer-timeline details{border:0;padding:4px 0}#customer360 .customer-timeline summary{cursor:pointer;color:#174c74}#customer360 :focus-visible,.ops-command :focus-visible{outline:2px solid #c99716;outline-offset:3px}.ops-derived-cell{min-width:110px;white-space:nowrap}@keyframes ops-slide{from{transform:translateX(12px);opacity:.7}to{transform:none;opacity:1}}@media(max-width:1100px){.ops-command .ops-kpis{grid-template-columns:repeat(3,minmax(110px,1fr))}}@media(max-width:725px){#customer360.customer-drawer{inset:64px 8px 8px;width:calc(100vw - 16px);height:calc(100dvh - 72px)}.ops-command .ops-kpis{grid-template-columns:repeat(3,minmax(95px,1fr))}}@media(prefers-reduced-motion:reduce){#customer360.customer-drawer{animation:none}}

.month-scope[hidden]{display:none!important}

#customer360>header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 12px;align-items:center;flex-shrink:0}
#customer360>header>.eyebrow,#customer360>header>h2,#customer360>header>p:not(.eyebrow){grid-column:1;margin:0;min-width:0;overflow-wrap:anywhere}
#customer360>header>[data-ops-close]{grid-column:2;grid-row:1 / span 2;float:none;align-self:start}
#customer360>header>.ops-pill{grid-column:1;justify-self:start}
#customer360>header>[data-ops-edit]{grid-column:2;grid-row:3 / span 2;float:none}

body[data-section="actionCentre"]{overflow-x:clip}

.actions [data-customer-open]{min-width:26px;width:26px;padding:4px;display:inline-flex;align-items:center;justify-content:center}

.settlement-summary{border:1px solid #cfdae6;border-radius:10px;padding:16px;margin:16px 0;break-inside:avoid}.settlement-summary dl{margin:0}.settlement-summary dl>div{display:flex;justify-content:space-between;gap:20px;padding:7px 0}.settlement-summary dd{margin:0;font-variant-numeric:tabular-nums;text-align:right}.settlement-balance{border-top:2px solid #d7a01d;font-weight:700;color:#103b58}.settlement-summary p{font-size:12px;color:#536c84}
/* Vendor-facing issue totals: settlement history remains in restricted controls. */
.invoice-report-totals{display:block;width:100%;margin:18px 0;border:1px solid #d3dfeb;border-radius:8px;overflow:hidden;break-inside:avoid;page-break-inside:avoid;background:#fff}
.invoice-report-totals p{margin:0;padding:10px 16px;display:flex;justify-content:space-between;gap:18px;border-bottom:1px solid #e3e9ef;color:#17384f;font-size:13px}
.invoice-report-totals p strong{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.invoice-report-totals .invoice-previous{background:#fff9e9;border-left:3px solid #d9a328;font-weight:600}
.invoice-report-totals .invoice-payable{background:#103c59;color:white;border-top:3px solid #dda82e;font-weight:700;padding:13px 16px}
.invoice-report-totals .invoice-payable strong{font-size:18px;color:white}
.invoice-words{padding:12px 16px;background:#f8f8f1;color:#17384f;display:flex;flex-direction:column;gap:6px;overflow-wrap:anywhere;font-size:13px}
.invoice-words span{font-weight:600}.invoice-words strong{font-weight:500;line-height:1.5}
#invoiceSelectionTotals.earnings-totals{display:block}
@media print{.invoice-report-totals{break-inside:avoid!important;page-break-inside:avoid!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}.invoice-report-totals>*{break-inside:avoid;break-before:avoid;break-after:avoid}}

/* November progressive policy: five responsive tiers, selected caller highlighted. */
.incentive-grid-tiers{grid-template-columns:repeat(auto-fit,minmax(135px,1fr))}.incentive-grid-tiers>div[aria-current="step"]{border-color:#bf8b08;background:#fff6d9;box-shadow:inset 0 3px #d9a51a}.incentive-grid-tiers small{display:block;margin-top:8px;color:#52657b}
