/* Miltax visual system, light navigation and elevated cards revision.
   Presentation only: no status, owner, workflow or document/PDF colour mapping. */
:root {
  --navy:#0B2147; --blue:#0078D4; --accent:#08A7AF;
  --bg:#F5F9FD; --line:#DCE7F3; --surface:#FFFFFF;
  --theme-soft:#EAF4FD; --theme-hover:#0068B8; --theme-accent-ink:#06777D;
}
body {
  background-color:var(--bg);
  background-image:radial-gradient(ellipse at 95% 8%,#08a7af0d,transparent 48%),linear-gradient(145deg,#F5F9FD,#EDF4FC 65%,#F3FAFC);
  background-attachment:fixed;
}
h1,h2,h3 {color:var(--navy);}
.topbar {background:#FFFFFFF2;border-color:var(--line);color:var(--navy);box-shadow:0 2px 16px #0b214709;}
.topbar .brand strong,.topbar .session-card strong {color:var(--navy);}
.topbar .brand span,.topbar .session-card small {color:#64788E;}
.topbar .session-card button {color:var(--blue);border-left-color:var(--line);}
.topbar .density-toggle {color:var(--navy);background:var(--bg);border-color:var(--line);}
.topbar .brand-logo {box-shadow:none;}
.workspace-nav {background:#FFFFFFF5;border-color:var(--line);box-shadow:0 5px 16px #0b214705;}
.workspace-sidebar,.sidebar {background:linear-gradient(180deg,#FFFFFF,#F4F8FD);border-color:var(--line);box-shadow:4px 0 24px #0b214709;}
.workspace-sidebar .nav-item {color:#354E6B;border-radius:9px;}
.workspace-sidebar .nav-item>span:first-child {color:#6385A7;}
.workspace-sidebar .nav-item:hover {background:#EAF3FC;color:var(--blue);}
.workspace-sidebar .nav-item.active {background:linear-gradient(110deg,#DBEEFF,#EAF7FA);color:var(--navy);box-shadow:inset 3px 0 var(--accent),0 3px 10px #0078d414;}
.workspace-sidebar .nav-item.active>span:first-child {color:var(--blue);}
.workspace-sidebar [data-view="documents"] {border-top-color:var(--line);}
.workspace-nav .nav-item {color:var(--navy);}
.workspace-nav .nav-item>span:first-child {background:var(--theme-soft);color:var(--blue);}
.workspace-nav .nav-item.active {background:var(--theme-soft);border-bottom-color:var(--accent);color:var(--navy);}
.workspace-nav .nav-item:hover {background:var(--bg);}
.primary,.navigation-actions #addClient {background:var(--blue);border-color:var(--blue);color:#fff;}
.primary:hover:not(:disabled),.navigation-actions #addClient:hover:not(:disabled) {background:var(--theme-hover);}
.primary:disabled {opacity:.55;}
.secondary,.period,.quarter-btn {border-color:var(--line);background:var(--surface);}
.quarter-btn.active,.account-layout-switch .quarter-btn.active {background:var(--blue);border-color:var(--blue);color:#fff;}
/* Structural surfaces only; status cells and validation messages keep their colours. */
.panel,.stat,.client-card,.quarter-note,.auth-card,.card,
.account-month,.single-account-month,.account-calendar-card,.account-calendar-line,
.proposal-card,.proposal-empty,.proposal-fields section,
.cpd-folder,.cpd-year-chart,.cpd-files,.payroll-toolbar,.payroll-table-wrap,
.documents-purchases-view,.documents-purchases-tools,.documents-editor form,
.client-panel-view,.cp-header,.cp-box,.cp-profile,.profile-card,
.cs-card,.cs-stats article,.cs-workbench .cs-stat,.cs-register-panel,
.cs-register-preview,.cs-calculator,.bank-table-wrap,.bank-summary article,
.work-center,.work-center-column,.work-center-task,.book-cards article,
.module-search-bar,main>header,#table-view,#fixedModuleControls {
  background-color:var(--surface);border-color:var(--line);
}
.search,.top-search,.module-search-bar input,.module-search-bar button,
.note-input,.quarter-note textarea,.master-form input,.master-form select,
form input,form select,.audit-filters input,.audit-filters select,
.tasks-filters select,.tasks-dialog input,.tasks-dialog select,.tasks-dialog textarea,
.documents-dialog input,.documents-dialog textarea,.documents-dialog select,
.payroll-table input,.payroll-table textarea,.calendar-pickers select {
  border-color:var(--line);
}
/* Neutral table headers. Existing coloured status/period headers remain intact. */
#tableHead th,.tasks-table th,.payroll-table th,.documents-company-table th,
.documents-list th,#documentsPanel .documents-purchases-table th,
.bank-table-wrap th,.audit-table th,.presence-table th,
.cs-portfolio-table th,.cs-data-table th,.cs-workbench .cs-deadline-table th,
.book-table th,.profile-card>header {
  background:var(--bg);border-color:var(--line);color:var(--navy);
}
.onboarding-tabs button.active,.onboarding-tabs .active,
.archive-tabs button.active,.admin-tabs button[aria-selected="true"],
.payroll-tabs button[aria-selected="true"],.payroll-year-tabs button[aria-selected="true"],
.cp-section-tabs button[aria-selected=true],.book-tabs button[aria-selected="true"],
.cs-company-tabs button[aria-current=page],.proposal-folders [aria-pressed="true"] {
  background:var(--theme-soft);border-color:var(--accent);color:var(--navy);
}
.cpd-month-track i,.cpd-progress i {background:var(--accent);}
.cs-workbench .cs-text-button,.documents-document-link,.documents-company-name,
.profile-edit,.profile-copy {color:var(--blue);}
.cs-banner,.cs-workbench .cs-banner {background:var(--bg);border-color:var(--line);}
.cs-mode {background:var(--theme-soft);color:var(--theme-accent-ink);border-color:var(--line);}
.workspace-sidebar .nav-item:focus-visible,.workspace-nav .nav-item:focus-visible {
  outline:3px solid var(--accent);outline-offset:-3px;
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
  outline:2px solid var(--blue);outline-offset:2px;
}
/* Preserve document artwork, status semantics, dimensions and all responsive rules. */

#dashboard>.dashboard-columns>.other-deadlines-panel>.panel-title,
#dashboard>.dashboard-columns>.onboarding-strip>.panel-title {background:var(--bg);border-color:var(--line);}
.cs-workbench {--cs-ink:var(--navy);--cs-border:var(--line);--cs-blue:var(--blue);--cs-pale:var(--bg);}
#dashboard>.dashboard-columns>.panel>.panel-title {background:var(--bg);border-color:var(--line);}
#dashboard>.dashboard-columns>.panel {border-top-color:var(--accent);}
.cs-eyebrow {color:var(--theme-accent-ink);}

/* Surface depth is decorative; dimensions and status fills are retained. */
:root {--theme-card-shadow:0 10px 28px #173F6C1A,0 2px 6px #173F6C0A;}
.panel,.stat,.account-month,.single-account-month,.account-calendar-card,
.proposal-card,.proposal-empty,.cpd-folder,.cpd-year-chart,.cpd-files,
.profile-card,.cs-card,.cs-stats article,.cs-workbench .cs-stat,
.cs-register-panel,.cs-calculator,.bank-summary article,
.work-center,.book-cards article,.payroll-table-wrap,.documents-purchases-view {
  border-radius:14px;box-shadow:var(--theme-card-shadow);
}
.cs-workbench .cs-stat[aria-pressed=true] {box-shadow:0 0 0 1px var(--blue),var(--theme-card-shadow);}
.work-center-column {border-radius:12px;box-shadow:0 3px 12px #173F6C08;}
#table-view {border-radius:14px;box-shadow:var(--theme-card-shadow);}
#fixedModuleControls {box-shadow:0 4px 14px #173F6C08;}
.search,.top-search {box-shadow:0 2px 8px #173F6C06;}
#dashboard>.dashboard-columns>.panel>.panel-title h2 {color:var(--navy);}
@media(prefers-reduced-motion:no-preference){
  .workspace-sidebar .nav-item,.primary {transition:background-color .15s,box-shadow .15s;}
}

#dashboard {background:transparent;}

/* Decorative details drawn from the approved reference concepts.
   Reuses existing controls, live counters and module structure. */
:root{--theme-wave:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201200%20220%22%20preserveAspectRatio%3D%22none%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22w%22%20x1%3D%220%22%20x2%3D%221%22%3E%3Cstop%20stop-color%3D%22%23F5F9FD%22%20stop-opacity%3D%220%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23B7DEFF%22%20stop-opacity%3D%22.7%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cpath%20d%3D%22M240%20220C510%20190%20572%2036%20760%20105S1025%20154%201200%200V220Z%22%20fill%3D%22url%28%23w%29%22%2F%3E%3Cpath%20d%3D%22M570%20220C800%20188%20796%206%20970%2030S1100%20136%201200%2092V220Z%22%20fill%3D%22%23C4E8FA%22%20opacity%3D%22.5%22%2F%3E%3Cpath%20d%3D%22M680%20220C875%20154%20946%20114%201200%20190V220Z%22%20fill%3D%22%23E5F5FC%22%20opacity%3D%22.8%22%2F%3E%3C%2Fsvg%3E");}
body main {background-image:var(--theme-wave);background-position:right top;background-size:100% 200px;background-repeat:no-repeat;}
.primary,.navigation-actions #addClient {
  background-image:linear-gradient(115deg,#0078D4,#008FCA);box-shadow:0 4px 12px #0078D428;
}
.primary:hover:not(:disabled) {background-image:linear-gradient(115deg,#0068B8,#007FAF);box-shadow:0 6px 16px #0078D430;}
.primary:disabled {box-shadow:none;}
.stat.blue {background-image:linear-gradient(115deg,#E5F3FF,#FFFFFF 85%);}
.stat.green {background-image:linear-gradient(115deg,#E8F8F1,#FFFFFF 85%);}
.stat.red {background-image:linear-gradient(115deg,#FFF0F2,#FFFFFF 85%);}
.stat.gold {background-image:linear-gradient(115deg,#FFF6E3,#FFFFFF 85%);}
.stat.blue strong {color:var(--blue);}
.stat.green strong {color:#0D7756;}
.stat.red strong {color:#AE3545;}
.stat.gold strong {color:#9A6600;}
#dashboard>.dashboard-columns>.panel>.panel-title {
  background-image:linear-gradient(110deg,#EDF6FF,#FFFFFF);border-radius:12px 12px 0 0;
}
#tableHead th,.cs-workbench .cs-deadline-table th,#documentsPanel .documents-purchases-table th {
  background-image:linear-gradient(110deg,#E9F3FD,#F4F9FE);
}
.cs-workbench .cs-stat {position:relative;isolation:isolate;}
.cs-workbench .cs-stat[data-company-filter="all"] {background-image:linear-gradient(115deg,#E6F3FF,#FFFFFF);}
.cs-workbench .cs-stat[data-company-filter="urgent"] {background-image:linear-gradient(115deg,#FFF2F2,#FFFFFF);}
.cs-workbench .cs-stat[data-company-filter="mismatch"] {background-image:linear-gradient(115deg,#FFF6E2,#FFFFFF);}
.cs-workbench .cs-stat[data-company-filter="unknown"] {background-image:linear-gradient(115deg,#EDF2FB,#FFFFFF);}
.nav-item[data-view="dashboard"]{--module-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m3%2010%209-7%209%207v11h-6v-7H9v7H3Z%22%2F%3E%3C%2Fsvg%3E");}
.nav-item[data-view="clients"]{--module-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%229%22%20cy%3D%227%22%20r%3D%223%22%2F%3E%3Cpath%20d%3D%22M3%2021v-3a6%206%200%200%201%2012%200v3M16%204a3%203%200%200%201%200%206m2%204a5%205%200%200%201%203%205v2%22%2F%3E%3C%2Fsvg%3E");}
.nav-item[data-view="accounts"]{--module-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m3%207%209-4%209%204-9%204Zm0%205%209%204%209-4M3%2017l9%204%209-4%22%2F%3E%3C%2Fsvg%3E");}
.nav-item[data-view="vat"]{--module-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m5%2020%2014-16%22%2F%3E%3Ccircle%20cx%3D%226%22%20cy%3D%226%22%20r%3D%223%22%2F%3E%3Ccircle%20cx%3D%2218%22%20cy%3D%2218%22%20r%3D%223%22%2F%3E%3C%2Fsvg%3E");}
.nav-item[data-view="mtd"]{--module-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%2218%22%20height%3D%2216%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M7%203v4m10-4v4M3%2011h18M7%2015h2m3%200h2m3%200h1M7%2018h2m3%200h2%22%2F%3E%3C%2Fsvg%3E");}
.nav-item[data-view="payroll"]{--module-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%2218%22%20height%3D%2216%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M16%209c-5-3-9%204-4%204h4M7%2016h10M10%209v9%22%2F%3E%3C%2Fsvg%3E");}
.nav-item[data-view="cis"]{--module-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%227%22%20width%3D%2218%22%20height%3D%2214%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M8%207V4h8v3M3%2013h18m-12%200v3h6v-3%22%2F%3E%3C%2Fsvg%3E");}
.nav-item[data-view="sa"]{--module-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M14%203h5l2%202v16H9v-5M16%203v5h5%22%2F%3E%3Ccircle%20cx%3D%227%22%20cy%3D%227%22%20r%3D%223%22%2F%3E%3Cpath%20d%3D%22M2%2017v-2a5%205%200%200%201%2010%200%22%2F%3E%3C%2Fsvg%3E");}
.nav-item[data-view="self"]{--module-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%226%22%20r%3D%223%22%2F%3E%3Cpath%20d%3D%22M4%2021v-4a8%208%200%200%201%2016%200v4M9%2015l3%203%203-3%22%2F%3E%3C%2Fsvg%3E");}
.nav-item[data-view="onboarding"]{--module-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%225%22%20y%3D%224%22%20width%3D%2214%22%20height%3D%2217%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M9%204V2h6v2M8%209h8m-8%204h8m-8%204h5%22%2F%3E%3C%2Fsvg%3E");}
.nav-item[data-view="proposals"]{--module-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%203h10l4%204v14H5Zm10%200v5h4M8%2012h8m-8%204h6%22%2F%3E%3C%2Fsvg%3E");}
.nav-item[data-view="documents"]{--module-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%206h7l2%203h9v11H3Z%22%2F%3E%3Cpath%20d%3D%22M3%206V4h7l2%202h7v3%22%2F%3E%3C%2Fsvg%3E");}
.nav-item[data-view="cpd"]{--module-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m2%208%2010-5%2010%205-10%205ZM6%2011v6c4%203%208%203%2012%200v-6m4-3v10%22%2F%3E%3C%2Fsvg%3E");}
.nav-item[data-view="companiesHouse"]{--module-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2021V6h9v15m0-10h7v10M2%2021h20M7%209h3m-3%204h3m-3%204h3m6-3h1m-1%203h1M7%206V3h3v3%22%2F%3E%3C%2Fsvg%3E");}
.nav-item[data-view="companySecretarial"]{--module-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2021V4h12v17M15%209h6v12M1%2021h22M6%208h2m3%200h1M6%2012h2m3%200h1M6%2016h2m3%200h1m6-3h1m-1%204h1%22%2F%3E%3C%2Fsvg%3E");}
.nav-item[data-view="tasks"]{--module-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%224%22%20y%3D%223%22%20width%3D%2216%22%20height%3D%2218%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22m7%208%202%202%203-4m1%203h4M7%2014h10m-10%204h7%22%2F%3E%3C%2Fsvg%3E");}
.nav-item[data-view="otherCases"]{--module-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%203h14v18H5Zm4%205h6m-6%204h6m-6%204h4%22%2F%3E%3C%2Fsvg%3E");}
.nav-item[data-view="clientArchive"]{--module-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%203h18v5H3Zm2%205v13h14V8M9%2012h6%22%2F%3E%3C%2Fsvg%3E");}
.workspace-sidebar .nav-item:not(.nested-nav)>span[aria-hidden="true"]:first-child,
.workspace-nav .nav-item>span[aria-hidden="true"]:first-child {font-size:0!important;line-height:1;}
.workspace-sidebar .nav-item:not(.nested-nav)>span[aria-hidden="true"]:first-child::before,
.workspace-nav .nav-item>span[aria-hidden="true"]:first-child::before {
  content:"";display:inline-block;width:18px;height:18px;vertical-align:middle;
  background:currentColor;-webkit-mask:var(--module-icon) center/contain no-repeat;mask:var(--module-icon) center/contain no-repeat;
}
.stat.blue{--module-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m3%207%209-4%209%204-9%204Zm0%205%209%204%209-4M3%2017l9%204%209-4%22%2F%3E%3C%2Fsvg%3E");}
.stat.green{--module-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m5%2020%2014-16%22%2F%3E%3Ccircle%20cx%3D%226%22%20cy%3D%226%22%20r%3D%223%22%2F%3E%3Ccircle%20cx%3D%2218%22%20cy%3D%2218%22%20r%3D%223%22%2F%3E%3C%2Fsvg%3E");}
.stat.red{--module-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M14%203h5l2%202v16H9v-5M16%203v5h5%22%2F%3E%3Ccircle%20cx%3D%227%22%20cy%3D%227%22%20r%3D%223%22%2F%3E%3Cpath%20d%3D%22M2%2017v-2a5%205%200%200%201%2010%200%22%2F%3E%3C%2Fsvg%3E");}
.stat.gold{--module-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%225%22%20y%3D%224%22%20width%3D%2214%22%20height%3D%2217%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M9%204V2h6v2M8%209h8m-8%204h8m-8%204h5%22%2F%3E%3C%2Fsvg%3E");}
.stat>i {font-size:0!important;}
.stat>i::before {content:"";width:23px;height:23px;background:currentColor;-webkit-mask:var(--module-icon) center/contain no-repeat;mask:var(--module-icon) center/contain no-repeat;}

/* VAT period labels and sort indicators must remain legible on pale table headers. */
#tableHead .vat-period-head {color:var(--navy);}
#tableHead .sort-mark {color:#52657B;}
