/*
  ScafTek top-bar menu (client design "F – Top bar with category menus", 21 Oct 2026).
  Used by both heads: MainLayout (server) and WasmTopBar (WebAssembly) render <header class="stk-topbar">,
  the shared TopNav component, and their own widgets wrapped in .stk-tool. Only the shell changes —
  page content keeps its own fonts and styles. The design had no small-screen layout; the breakpoints
  below are ours: full bar ≥1200px, compact 992–1199px, drawer below 992px.
*/

@font-face {
    font-family: "Public Sans";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/public-sans/PublicSans-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Public Sans";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/public-sans/PublicSans-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    /* Design Update v0.1 (19 Nov 2026): Navy 900 top bar, navy gradient canvas, white boxes. */
    --stk-tb-bg: #0D1626;
    --stk-tb-fg: #C9D5E4;
    --stk-tb-fg-strong: #FFFFFF;
    --stk-tb-hover: rgba(255, 255, 255, 0.12);
    --stk-tb-admin: #F08A3C;
    --stk-tb-avatar-bg: #2A4466;
    --stk-panel-bg: #FFFFFF;
    --stk-panel-fg: #13233B;
    --stk-panel-muted: #5A6B80;
    --stk-panel-border: #E3E8EF;
    --stk-panel-hover: #F1F4F8;
    --stk-panel-active: #EAF1FA;
    --stk-panel-active-fg: #1F5FA8;
    --stk-tb-height: 64px;
    --stk-tb-pad-x: 20px;
    /* The design's page content (CleanContentLook in ScafTek.Shared/Work) */
    --stk-page-bg: linear-gradient(180deg, #0F1E33 0%, #1D4370 100%);
    --stk-navy: #13233B;              /* Ink: headings/body text INSIDE white boxes */
    --stk-blue: #1F5FA8;              /* Link blue (on white boxes) */
    --stk-muted: #5A6B80;            /* Slate: secondary text inside white boxes */
    --stk-line: #E3E8EF;
    /* On the navy canvas itself (bare text, section labels, version): light, for full readability. */
    --stk-oncanvas: #EAF0F7;
    --stk-oncanvas-muted: #A9B9CC;
    --stk-oncanvas-link: #7FB1E8;
}

/* ── Bar ─────────────────────────────────────────────────────────────── */
.stk-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    gap: 2px;
    min-height: var(--stk-tb-height);
    flex-wrap: wrap;
    padding: 8px var(--stk-tb-pad-x);
    background: var(--stk-tb-bg);
    color: var(--stk-tb-fg);
    font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    /* existing widgets (bell, messages, about…) read this for their icon colour */
    --topbar-icon-color: var(--stk-tb-fg);
}

/* Design Update v0.1: logo and the full company name side by side on ONE line. */
.stk-brand {
    order: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-right: 18px;
    padding: 2px 4px;
    text-decoration: none;
    flex-shrink: 0;
    min-width: 0;
}
.stk-brand img { height: 36px; width: auto; display: block; flex-shrink: 0; }
.stk-brand span {
    color: var(--stk-tb-fg-strong);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .2px;
    /* Alex (pp. 2, 4, 10): the full company name on one line; below 1280px it truncates with "…" and the
       full name shows on hover (title attribute). */
    max-width: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* TopNav and the tool wrappers flatten into the bar so `order` can place every piece. */
.stk-tn, .stk-tools { display: contents; }

.stk-tn-cats { order: 1; display: flex; align-items: center; gap: 2px; flex: 1 1 auto; min-width: 0; }
.stk-tn-search { order: 3; margin-left: auto; }
.stk-tool { order: 4; display: flex; align-items: center; }
.stk-tool.is-help { order: 5; }
.stk-tn-admin { order: 6; }
.stk-tn-settings { order: 7; }
.stk-tool.is-account { order: 8; margin-left: 6px; }
.stk-tn-burger { order: 1; display: none !important; }

.stk-tb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--stk-tb-fg);
    font: 600 14px/1 "Public Sans", system-ui, sans-serif;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}
/* Page stylesheets colour links globally; the bar's own rules must win. */
header.stk-topbar a.stk-tb, header.stk-topbar button.stk-tb { color: var(--stk-tb-fg); }
header.stk-topbar .stk-tn-admin button.stk-tb { color: var(--stk-tb-admin); }
header.stk-topbar a.stk-tn-item, header.stk-topbar a.stk-tn-heading { color: var(--stk-panel-fg); }
header.stk-topbar a.stk-tn-heading { color: var(--stk-panel-muted); }

.stk-tb:hover, .stk-tb:focus-visible, .stk-tb.is-active, .stk-tb[aria-expanded="true"],
header.stk-topbar a.stk-tb:hover, header.stk-topbar a.stk-tb.is-active, header.stk-topbar button.stk-tb[aria-expanded="true"] {
    background: var(--stk-tb-hover);
    color: var(--stk-tb-fg-strong);
    outline: none;
}
/* Design Update v0.1: the active category carries an orange-on-navy underline (#F08A3C). */
header.stk-topbar a.stk-tb.is-active, header.stk-topbar button.stk-tb.is-active {
    box-shadow: inset 0 -3px 0 var(--stk-tb-admin);
    border-radius: 8px 8px 0 0;
}
.stk-tb:focus-visible { box-shadow: 0 0 0 2px #7FB3FF; }
.stk-tn-icon { width: 44px; padding: 0; justify-content: center; }
.stk-tn-admin .stk-tb { color: var(--stk-tb-admin); }

.stk-ic { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* Existing widgets inside the bar keep their markup; make them fit the dark bar. Only the bar's own buttons: what a
   widget opens (the account menu, a bell's list, a dialog) is a light panel and keeps its own colours. */
.stk-tool :is(button, a):not(.stk-tool :is([class*="dropdown"], [class*="popover"], [class*="panel"], .modal, .offcanvas) *) { color: var(--stk-tb-fg) !important; }
.stk-tool :is(button, a):not(.stk-tool :is([class*="dropdown"], [class*="popover"], [class*="panel"], .modal, .offcanvas) *):hover { color: var(--stk-tb-fg-strong) !important; background: var(--stk-tb-hover) !important; }
.stk-tool .bi { font-size: 1.15rem; }

/* ── Drop-down panels ───────────────────────────────────────────────── */
.stk-tn-dd { position: relative; display: flex; }
.stk-tn-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 260px;
    max-height: calc(100vh - var(--stk-tb-height) - 24px);
    overflow-y: auto;
    padding: 8px;
    background: var(--stk-panel-bg);
    color: var(--stk-panel-fg);
    border: 1px solid var(--stk-panel-border);
    border-radius: 12px;
    box-shadow: 0 14px 36px rgba(19, 35, 59, .20);
    font-family: "Public Sans", system-ui, sans-serif;
}
.stk-tn-panel.is-right { left: auto; right: 0; }
.stk-tn-panel.is-columns { display: grid; grid-template-columns: 1fr 1fr; width: 560px; gap: 10px; padding: 10px; }
.stk-tn-panel.is-columns .stk-tn-group + .stk-tn-group { border-left: 1px solid var(--stk-panel-border); padding-left: 10px; }
.stk-tn-group { display: flex; flex-direction: column; gap: 2px; }
.stk-tn-heading {
    display: block;
    padding: 8px 10px 6px;
    color: var(--stk-panel-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
}
a.stk-tn-heading:hover { color: var(--stk-panel-fg); }

.stk-tn-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    padding: 6px 10px;
    border-radius: 8px;
    color: var(--stk-panel-fg);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}
.stk-tn-item:hover, .stk-tn-item:focus-visible { background: var(--stk-panel-hover); color: var(--stk-panel-fg); outline: none; }
.stk-tn-item.is-active, header.stk-topbar a.stk-tn-item.is-active { background: var(--stk-panel-active); color: var(--stk-panel-active-fg); font-weight: 600; }
.stk-tn-item.is-active .bi { color: var(--stk-panel-active-fg); }
.stk-tn-item .bi { font-size: 17px; width: 18px; text-align: center; color: var(--stk-panel-fg); }
.stk-tn-item-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.stk-tn-item-text small { color: var(--stk-panel-muted); font-size: 12px; font-weight: 400; }
.stk-tn-badge {
    margin-left: auto;
    padding: 2px 6px;
    border-radius: 999px;
    background: #FFF3CD;
    color: #6B4E00;
    font-size: 10px;
    font-weight: 700;
}

.stk-tn-backdrop { position: fixed; inset: 0; z-index: 1035; background: transparent; }
.stk-tn-backdrop.is-dim { background: rgba(10, 20, 35, .45); }

/* ── Search ─────────────────────────────────────────────────────────── */
.stk-tn-search-panel {
    position: fixed;
    top: 72px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1045;
    width: min(560px, calc(100vw - 32px));
    padding: 10px;
    background: var(--stk-panel-bg);
    border-radius: 12px;
    box-shadow: 0 14px 36px rgba(19, 35, 59, .30);
    font-family: "Public Sans", system-ui, sans-serif;
}
.stk-tn-search-input {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--stk-panel-border);
    border-radius: 8px;
    font-size: 15px;
}
.stk-tn-search-results { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; max-height: 60vh; overflow-y: auto; }
.stk-tn-empty { padding: 12px 10px; color: var(--stk-panel-muted); font-size: 14px; }

/* ── Drawer (phones and small tablets) ──────────────────────────────── */
.stk-tn-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1045;
    width: min(340px, 88vw);
    overflow-y: auto;
    padding: 8px 10px 24px;
    background: var(--stk-panel-bg);
    color: var(--stk-panel-fg);
    font-family: "Public Sans", system-ui, sans-serif;
    box-shadow: 8px 0 30px rgba(19, 35, 59, .25);
}
.stk-tn-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 6px 12px; font-weight: 700; }
.stk-tn-close { width: 44px; height: 44px; border: 0; border-radius: 8px; background: var(--stk-panel-hover); font-size: 24px; line-height: 1; }
.stk-tn-drawer .stk-tn-item { min-height: 48px; }
.stk-tn-acc { border-top: 1px solid var(--stk-panel-border); }
.stk-tn-acc > summary {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 10px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}
.stk-tn-acc > summary::-webkit-details-marker { display: none; }
.stk-tn-acc > summary::after { content: "▾"; margin-left: auto; color: var(--stk-panel-muted); }
.stk-tn-acc[open] > summary::after { content: "▴"; }
.stk-tn-acc > .stk-tn-item { padding-left: 22px; }

/* ── Breadcrumb (TopNavBreadcrumb): replaces the old strip under the bar ──
   Alex's design update (19 Nov 2026, pp. 2, 4, 10): "Remove the second menu line". The bar is one row; where you
   are reads as "Section › Page" at the top of the content, directly above the page's own header box. */
.stk-crumb { padding-top: 14px; margin-bottom: 10px; font-size: 13px; line-height: 1.4; }
.stk-crumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.stk-crumb li { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.stk-crumb li + li::before { content: "›"; opacity: .7; }
.stk-crumb a { color: inherit; text-decoration: none; opacity: .8; }
.stk-crumb a:hover { opacity: 1; text-decoration: underline; }
.stk-crumb [aria-current="page"] { font-weight: 600; }
/* On the navy canvas (ScafTek look): light text. */
.page.stk-clean .stk-crumb { color: var(--stk-oncanvas-muted); }
.page.stk-clean .stk-crumb [aria-current="page"] { color: var(--stk-oncanvas); }
.page.stk-clean .stk-crumb a { color: var(--stk-oncanvas-muted); opacity: 1; }
.page.stk-clean .stk-crumb a:hover { color: var(--stk-oncanvas); }
@media print { .stk-crumb { display: none; } }
/* Design V3 (white header band over the navy panel): the breadcrumb is the top of that white band. */
.page.stk-clean.stk-panel.stk-band .stk-crumb { background: #FFFFFF; color: var(--stk-muted); box-shadow: 0 0 0 100vmax #FFFFFF; clip-path: inset(0 -100vmax); margin-bottom: 0; padding-bottom: 2px; }
.page.stk-clean.stk-panel.stk-band .stk-crumb a { color: var(--stk-muted); }
.page.stk-clean.stk-panel.stk-band .stk-crumb a:hover, .page.stk-clean.stk-panel.stk-band .stk-crumb [aria-current="page"] { color: var(--stk-navy); }

/* ── Page content (CleanContentLook): light page, plain navy title, navy selected tab, blue icons ──
   Both layouts add .stk-clean to .page while the top bar is on and the company uses the ScafTek look. The theme
   already hands the pages a light content area; these rules draw what no theme value reaches. Buttons and the
   inside of each component keep their own styles. */
.page.stk-clean { background: var(--stk-page-bg); background-attachment: fixed; color: var(--stk-oncanvas); }
.page.stk-clean main, .page.stk-clean article.content { background: transparent; }
/* Readability guarantee: every white box carries dark Ink text. Cards/panels inherit the page colour,
   which is now light for the navy canvas, so without this their text would be light-on-white. */
.page.stk-clean article.content :is(
    .card, .card-body, .card-header, .card-footer, .modal-content, .list-group-item, .table, table,
    [class*="card"], [class*="panel"], [class*="-box"], [class*="-title-pill"], [class*="-page-header"], .page-header
) { color: var(--stk-navy); }
/* …but the dark bars that carry the navy HeaderGradient keep LIGHT text — the broad rule above would
   otherwise make navy-on-navy. These are the module list headers ("<module>-card-header",
   "<module>-setup-card") and the pagination bars ("<module>-pagination-*"). The plain Bootstrap
   ".card-header" (e.g. the light bulk-import bar) has NO hyphenated module class, so it is NOT matched
   here and keeps the dark text from the rule above. */
.page.stk-clean article.content :is([class*="-card-header"], .card-header[class*="setup-card"], [class*="pagination"], [class*="filter-pills"], [class*="-toolbar"], [class*="filter-bar"]) {
    background: #FFFFFF !important;
    background-image: none !important;
    color: var(--stk-navy);
    border-bottom: 1px solid var(--stk-line);
}
.page.stk-clean article.content :is([class*="-card-header"], .card-header[class*="setup-card"], [class*="pagination"], [class*="filter-pills"], [class*="-toolbar"], [class*="filter-bar"]) :is(h1,h2,h3,h4,h5,h6,span,label,small,div,p,strong,a) {
    color: var(--stk-navy);
}
/* Any icon/button text in those headers that was white-for-dark now reads as the design's blue/navy on white. */
.page.stk-clean article.content :is([class*="-card-header"], .card-header[class*="setup-card"]) :is(.bi, i, svg) { color: var(--stk-blue); }
/* Design: tables have a LIGHT header row. Some modules give their thead the navy gradient (unreadable);
   normalise to the shared light table-header look with dark text. */
.page.stk-clean article.content :is(thead, thead tr, thead th) {
    background: #F4F6F9 !important;
    background-image: none !important;
    color: #3C4654 !important;
}
/* Field labels and helper/sub/hint text in white boxes → the design's Slate (several modules hard-code a
   too-light grey like #94A3B8, below AA on white — e.g. idb-filter-label, wsp-sub/hint, dlsp-sub). */
.page.stk-clean article.content :is([class*="filter-label"], [class*="-hint"], [class*="-sub"], [class*="-caption"]) { color: #5A6B80; }
/* Bootstrap's light contextual badges (bg-info/bg-warning/bg-light) ship white text that is unreadable on
   their pale fills; give them dark Ink so status/type chips read against the design. (Dark badges —
   bg-success/bg-danger/bg-primary/bg-dark — keep white.) */
.page.stk-clean article.content :is(.badge.bg-info, .badge.bg-warning, .badge.bg-light) { color: #13233B; }
/* Status pills (Alex's design update, p. 3, applied throughout — p. 10 Staff "OK/Left", Suppliers "Type",
   Vehicles "Visible/Hidden"): one palette, round. Green = good/active, blue = scheduled/info, amber = waiting,
   red = problem, grey = off/none, dark = new. Bootstrap's contextual badges map onto it, so every page that already
   says what a status means (bg-success, bg-info …) gets the same pill without its own CSS. */
.page.stk-clean article.content .badge:is(.rounded-pill, [class*="bg-"], [class*="text-bg-"]) { border-radius: 999px; font-weight: 600; }
.page.stk-clean article.content .badge:is(.bg-success, .text-bg-success)               { background-color: #E3F4EA !important; color: #1E7B45 !important; }
.page.stk-clean article.content .badge:is(.bg-info, .text-bg-info, .bg-primary, .text-bg-primary) { background-color: #E3EDF8 !important; color: #1F5FA8 !important; }
.page.stk-clean article.content .badge:is(.bg-warning, .text-bg-warning)               { background-color: #FDF0DC !important; color: #9A5B0B !important; }
.page.stk-clean article.content .badge:is(.bg-danger, .text-bg-danger)                 { background-color: #FBE4E4 !important; color: #B42318 !important; }
.page.stk-clean article.content .badge:is(.bg-secondary, .text-bg-secondary, .bg-light, .text-bg-light) { background-color: #EEF1F5 !important; color: #5A6B80 !important; }
.page.stk-clean article.content .badge:is(.bg-dark, .text-bg-dark)                     { background-color: #13233B !important; color: #FFFFFF !important; }

/* Banners (style-guide sweep, 23 Nov 2026): every Bootstrap alert maps onto Alex's banner set (alex-palette.json
   banners.warning / error / info, states.published_ok / draft; text darkened to pass AA): a flat tint, a hairline in
   the same hue, dark readable text, no gradients. Important, because many pages paint their alerts inline. Icons,
   headings and links take the banner's text colour. */
.page.stk-clean article.content .alert { border-radius: 10px; background-image: none !important; box-shadow: none; }
.page.stk-clean article.content .alert:is(.alert-warning)                  { background-color: #FDF3D8 !important; border: 1px solid #F0DCA4 !important; color: #7A5600 !important; }
.page.stk-clean article.content .alert:is(.alert-danger)                   { background-color: #FBE4E4 !important; border: 1px solid #F3C2C2 !important; color: #B42318 !important; }
.page.stk-clean article.content .alert:is(.alert-info, .alert-primary)     { background-color: #E3EDF7 !important; border: 1px solid #C3D6EB !important; color: #173E65 !important; }
.page.stk-clean article.content .alert:is(.alert-success)                  { background-color: #E2F5EA !important; border: 1px solid #B9E2C9 !important; color: #187B43 !important; }
.page.stk-clean article.content .alert:is(.alert-secondary, .alert-light)  { background-color: #EEF1F5 !important; border: 1px solid #D5DCE5 !important; color: #3C4654 !important; }
.page.stk-clean article.content .alert :is(i.bi, h1, h2, h3, h4, h5, h6, strong, .alert-heading, .alert-link, a:not(.btn)) { color: inherit !important; }
.page.stk-clean article.content .alert :is(.alert-link, a:not(.btn)) { text-decoration: underline; }

/* The single outline "Import / export" toggle (Roles, Role permissions, Dropdowns, Load items, Quote items). Some sit
   straight on the navy panel, so the button carries its own white fill and stays readable on every design. */
.page.stk-clean article.content .stk-bulk-toggle { background: #FFFFFF; border: 1px solid #D5DCE5; color: #13233B; font-weight: 600; }
.page.stk-clean article.content .stk-bulk-toggle:hover { background: #EEF3FA; border-color: #B9C7D8; color: #13233B; }

/* Form controls and inline code on the light designs (screenshot review, 23 Nov 2026). Bootstrap's bright blue
   (#0d6efd) checkboxes/switches and pink (#d63384) code are off-palette: a switched-on toggle is Alex's SwitchOn green
   (WorkPalette.SwitchOn = CommitAction #1f9d55), a ticked box the navy SecondaryAction (#173e65), and keys/codes are
   neutral monospace chips. A disabled light outline button (white text on a white card, 1.1:1) reads as disabled grey. */
.page.stk-clean article.content .form-check-input:checked { background-color: #173E65; border-color: #173E65; }
.page.stk-clean article.content .form-switch .form-check-input:checked { background-color: #1F9D55; border-color: #1F9D55; }
.page.stk-clean article.content .form-check-input:focus { border-color: #8FB3D9; box-shadow: 0 0 0 .2rem rgba(23, 62, 101, .2); }
.page.stk-clean article.content code { color: #3C4654; background: #EEF1F5; border-radius: 4px; padding: .05rem .3rem; }
.page.stk-clean article.content :is(.card, .modal-content, [class*="-box"], [class*="panel"]) .btn-outline-light:disabled { color: #5A6B80; border-color: #D5DCE5; background: #F4F6F9; opacity: 1; }

/* H&S inspections dashboard (/inspections/dashboard; user, 23 Nov 2026). Its own tab strip, KPI tiles and empty state
   were drawn for a white page: on the navy canvas the strip lost its white, the labels went grey and the selected
   label navy-on-navy; the tiles used amber/Bootstrap-bright colours. Now: the strip is Alex's white tab box (dark
   labels, orange underline); tiles are white with figures in the state colours (darkened for AA) and the selected
   tile navy-bordered, as a selected filter chip; the empty state reads on the canvas. */
.page.stk-clean article.content .idb-tab-nav-wrap { background: #FFFFFF !important; border: 1px solid var(--stk-line); border-radius: 12px; margin: 0 0 1.25rem !important; box-shadow: 0 2px 10px rgba(0, 0, 0, .05); }
.page.stk-clean article.content .idb-tab-btn { color: #3C4654; margin-bottom: 0; }
.page.stk-clean article.content .idb-tab-btn .bi { color: var(--stk-blue); }
.page.stk-clean article.content .idb-tab-btn:hover { color: var(--stk-navy); }
.page.stk-clean article.content .idb-tab-btn.active { color: var(--stk-navy); font-weight: 700; border-bottom-color: #C2510C; }
.page.stk-clean article.content .idb-tab-btn :is(.idb-tab-label, span) { color: inherit !important; }
.page.stk-clean article.content .idb-kpi.active { border: 2px solid #13233B; background: #FFFFFF; }
.page.stk-clean article.content .idb-kpi--all.active { border-color: #13233B; background: #FFFFFF; }
.page.stk-clean article.content .idb-kpi--all :is(.idb-kpi-icon, .idb-kpi-value) { color: #13233B; }
.page.stk-clean article.content .idb-kpi .text-danger  { color: #C42B2B !important; }
.page.stk-clean article.content .idb-kpi .text-primary { color: #1F5FA8 !important; }
.page.stk-clean article.content .idb-kpi .text-success { color: #187B43 !important; }
.page.stk-clean article.content .idb-kpi .text-info    { color: #173E65 !important; }
.page.stk-clean article.content .idb-kpi-label { color: #5A6B80; }
.page.stk-clean article.content .idb-empty-state { color: var(--stk-oncanvas-muted) !important; opacity: 1; }

/* Page title: the white pill (or a page's own header block) becomes the design's plain title. A full-width
   *-page-header keeps its padding, so its title stays in line with the content below. */
/* Design Update v0.1: the page header is a WHITE BOX on the navy canvas (breadcrumb, icon, title, summary). */
.page.stk-clean article.content :is([class*="-title-pill"], [class*="-page-header"], .page-header) {
    background: #FFFFFF;
    border: 1px solid var(--stk-line);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(13, 22, 38, 0.08);
    color: var(--stk-navy);
    padding: 18px 22px;
}
.page.stk-clean article.content :is([class*="-page-header"], .page-header)::before,
.page.stk-clean article.content :is([class*="-page-header"], .page-header)::after { display: none; }
.page.stk-clean article.content :is([class*="-title-pill"], [class*="-page-header"], .page-header) * { text-shadow: none; }
.page.stk-clean article.content :is([class*="-title-pill"], [class*="-page-header"], .page-header) :is(p, small, .subtitle) { color: var(--stk-muted); }
.page.stk-clean article.content :is([class*="-title-pill"], [class*="-page-header"], .page-header) :is(h1, h2, h3, h4) {
    color: var(--stk-navy);
    font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
}
.page.stk-clean article.content :is([class*="-title-pill"], [class*="-page-header"], .page-header) :is(h1, h2, h3, h4) :is(.bi, i, svg),
.page.stk-clean article.content [class*="-title-pill"] > :is(.bi, i, svg) { color: var(--stk-blue); }

/* Tabs: dark grey, the selected one navy and bold with Alex's orange underline (palette tabs.underline_tab). */
.page.stk-clean article.content .nav-tabs { border-bottom: 1px solid var(--stk-line); }
.page.stk-clean article.content .nav-tabs .nav-link {
    border: 0;
    border-bottom: 2px solid transparent;
    background: none;
    color: var(--stk-muted);
    font-weight: 500;
}
.page.stk-clean article.content .nav-tabs .nav-link:hover { color: var(--stk-navy); border-bottom-color: var(--stk-line); }
.page.stk-clean article.content .nav-tabs .nav-link.active {
    color: var(--stk-navy);
    font-weight: 700;
    border-bottom-color: #C2510C;
    box-shadow: none;
}
.page.stk-clean article.content .nav-tabs .nav-link .bi { color: var(--stk-blue); }

/* Icon tiles on card and dialog headers: Alex's navy tile with a white icon (palette: "navy rounded icon tile #173e65";
   was link blue #1F5FA8, read as "solid bright blue" in the 2.0.37 crawl). */
.page.stk-clean { --shell-head-icon-bg: #173E65; }
.page.stk-clean :is(.shell-group-head h5, .shell-dialog .modal-title) > .bi:first-child { background: #173E65; }

/* Links: the design's blue, navy on hover. Zero-specificity scope, so a component's own link colour wins. */
:where(.page.stk-clean article.content) a { color: var(--stk-blue); }
:where(.page.stk-clean article.content) a:hover { color: var(--stk-navy); }

/* Design Update v0.1: the one main action per page is ScafTek orange. Module list pages use their own
   "<module>-btn-primary" classes (navy gradients from scoped CSS); map them to the orange main action.
   Specificity (0,3,0) beats a scoped ".x-btn-primary[b-hash]" (0,2,0), so no !important is needed. */
.page.stk-clean article.content [class*="-btn-primary"] {
    background: #C2510C;
    border-color: #C2510C;
    color: #FFFFFF;
    font-weight: 700;
}
.page.stk-clean article.content [class*="-btn-primary"]:hover,
.page.stk-clean article.content [class*="-btn-primary"]:focus,
.page.stk-clean article.content [class*="-btn-primary"]:active {
    background: #A5450A;
    border-color: #A5450A;
    color: #FFFFFF;
}

/* Spinner text sits on the navy canvas → light. */
.page.stk-clean .wasm-page-spinner-text { color: var(--stk-oncanvas) !important; text-shadow: none !important; }
.page.stk-clean .wasm-page-spinner { border-top-color: var(--stk-oncanvas); }

/* ── Home dashboard, laid out as the design's Home: plain welcome title with "Manage quick links", then
   QUICK LINKS and ADMINISTRATION as five-column grids of compact cards (icon tile beside title and
   description). The module "Today" sections keep their own look. Markup is Home.razor and
   QuickLinksComponent.razor; only the layout changes. */
.page.stk-clean .dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 0 16px;
    padding: 18px 22px;
    background: #FFFFFF;
    border: 1px solid var(--stk-line);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(13, 22, 38, 0.08);
    overflow: visible;
}
.page.stk-clean .dashboard-header h1 { margin: 0; color: var(--stk-navy); font: 700 26px/1.2 "Public Sans", system-ui, sans-serif; }
.page.stk-clean .dashboard-header h1 .bi { display: none; }
/* Home header box (Alex's design update, p. 8): greeting, today's date beneath it, Manage quick links on the right. */
.dashboard-date { display: none; }
.page.stk-clean .dashboard-date { display: block; margin-top: 4px; color: var(--stk-muted); font-size: 14px; }
.page.stk-clean .dashboard-greeting { min-width: 0; }
/* Administration tiles go: the shield and cog menus reach every one of them (p. 8). */
.page.stk-clean .dashboard-admin { display: none; }
.page.stk-clean .dashboard-manage-links {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 12px;
    background: #FFFFFF;
    border: 1px solid #CBD4DF;
    border-radius: 8px;
    color: var(--stk-navy);
    font: 600 13px/1 "Public Sans", system-ui, sans-serif;
    text-decoration: none;
}
.page.stk-clean .dashboard-manage-links:hover { border-color: #9DB4CF; color: var(--stk-navy); }
.page.stk-clean .dashboard-header ~ .container-fluid { padding: 0; }

/* Section labels: QUICK LINKS, ADMINISTRATION. */
.page.stk-clean :is(.dashboard-section-title, .quicklinks-header h3) {
    margin: 0;
    color: var(--stk-oncanvas-muted); /* section labels sit on the navy canvas → light */
    font: 700 13px/1.2 "Public Sans", system-ui, sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.page.stk-clean :is(.dashboard-section-title, .quicklinks-header h3) .bi { display: none; }
.page.stk-clean .dashboard-section-title { margin-bottom: 12px; }
.page.stk-clean .quicklinks-section { margin-bottom: 28px; }
.page.stk-clean .container-fluid > * + .quicklinks-section { margin-top: 28px; } /* after a module's Today section */
.page.stk-clean .quicklinks-header { padding: 0; margin-bottom: 12px; }
.page.stk-clean .quicklinks-header:hover h3 { color: var(--stk-oncanvas); }
.page.stk-clean .quicklinks-toggle { color: var(--stk-oncanvas-muted); font-size: 1rem; }
.page.stk-clean .quicklinks-manage-footer { display: none; }

/* The two grids: five columns on a wide screen, fewer as it narrows. */
.page.stk-clean :is(.quicklinks-grid, .dashboard-tiles) {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}
.page.stk-clean .dashboard-tiles > * { width: auto; max-width: none; padding: 0; margin: 0; }
.page.stk-clean .dashboard-tiles a { display: block; height: 100%; text-decoration: none; }

/* A card: icon tile on the left, title over description on the right. */
.page.stk-clean :is(.quicklinks-card, .dashboard-card) {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 14px;
    row-gap: 2px;
    align-content: center;
    align-items: center;
    min-height: 76px;
    height: 100%;
    padding: 12px 14px;
    background: #FFFFFF;
    border: 1px solid #E1E6ED;
    border-radius: 12px;
    text-align: left;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.page.stk-clean :is(.quicklinks-card, .dashboard-card):hover {
    transform: none;
    border-color: #9DB4CF;
    box-shadow: 0 4px 14px rgba(19, 35, 59, .08);
}
.page.stk-clean :is(.quicklinks-card-icon, .dashboard-card-icon) {
    grid-row: 1 / span 2;
    width: 42px;
    height: 42px;
    margin: 0;
    border-radius: 10px;
    font-size: 20px;
}
.page.stk-clean .quicklinks-card-icon { background: var(--stk-navy); color: #FFFFFF; }
.page.stk-clean .dashboard-card-icon { background: #FDEBDD; color: #B4460F; }
.page.stk-clean :is(.quicklinks-card, .dashboard-card) h5 {
    grid-column: 2;
    align-self: end;
    margin: 0;
    color: var(--stk-navy);
    font: 700 15px/1.2 "Public Sans", system-ui, sans-serif;
}
.page.stk-clean :is(.quicklinks-card, .dashboard-card) p {
    grid-column: 2;
    align-self: start;
    margin: 0;
    color: var(--stk-muted);
    font: 400 13px/1.25 "Public Sans", system-ui, sans-serif;
}
/* A card with no description: centre its title beside the tile. */
.page.stk-clean :is(.quicklinks-card, .dashboard-card) h5:last-child { grid-row: 1 / span 2; align-self: center; }

/* No quick links yet: the same quiet card style. */
.page.stk-clean .quicklinks-empty { background: #FFFFFF; border: 1px dashed #CBD4DF; border-radius: 12px; }

@media (max-width: 1199.98px) { .page.stk-clean :is(.quicklinks-grid, .dashboard-tiles) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767.98px)  { .page.stk-clean :is(.quicklinks-grid, .dashboard-tiles) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479.98px)  { .page.stk-clean :is(.quicklinks-grid, .dashboard-tiles) { grid-template-columns: 1fr; } }

/* The server footer (a sibling after .page) on the ScafTek look: the version sits on the canvas, no white strip at the
   bottom (Alex, pp. 5 and 10: "Version number inside the canvas"). Same fixed gradient as .page, so it reads as part of
   the canvas. A deployment slot's coloured footer (staging, release candidate) is left alone on purpose. */
.page.stk-clean ~ .app-footer:not([class*="slot-"]) { background: var(--stk-page-bg) !important; background-attachment: fixed !important; border-top: 0 !important; }
.page.stk-clean ~ .app-footer:not([class*="slot-"]) .version-label { color: var(--stk-oncanvas-muted) !important; }

/* The WebAssembly footer (a sibling after .page): on the canvas like the server footer — it was a white strip across
   the bottom of every project and quote page (written when the Light page was white; 2.0.37 crawl). Status pills use
   Alex's solid state tints so they read on the navy. */
.page.stk-clean ~ .wasm-app-footer { background: var(--stk-page-bg) !important; background-attachment: fixed !important; border-top: 0 !important; }
.page.stk-clean ~ .wasm-app-footer .footer-nav-btn { color: var(--stk-oncanvas-muted); }
.page.stk-clean ~ .wasm-app-footer .footer-nav-btn.active { background: rgba(255, 255, 255, .14); color: #FFFFFF; }
.page.stk-clean ~ .wasm-app-footer .footer-nav-btn:not(.active):hover { background: rgba(255, 255, 255, .08); }
.page.stk-clean ~ .wasm-app-footer .footer-version { color: var(--stk-oncanvas-muted); }
.page.stk-clean ~ .wasm-app-footer .connectivity-indicator.online { background: #E2F5EA !important; color: #187B43 !important; border-color: #E2F5EA !important; }
.page.stk-clean ~ .wasm-app-footer .connectivity-indicator.offline { background: #FDF3D8 !important; color: #926500 !important; border-color: #FDF3D8 !important; }
.page.stk-clean ~ .wasm-app-footer .sync-queue-status { background: #E3EDF7 !important; color: #173E65 !important; border-color: #E3EDF7 !important; }
.page.stk-clean ~ .wasm-app-footer .sync-queue-status:is(.failed, .signin) { background: #FBE4E4 !important; color: #C42B2B !important; border-color: #FBE4E4 !important; }

/* ── Breakpoints ────────────────────────────────────────────────────── */
@media (max-width: 1279.98px) {
    .stk-brand span { max-width: 260px; }
}
@media (max-width: 1199.98px) {
    .stk-topbar { --stk-tb-pad-x: 12px; padding: 8px var(--stk-tb-pad-x); }
    .stk-brand span { max-width: 180px; }
    .stk-brand { margin-right: 8px; }
    .stk-tb { padding: 0 9px; gap: 6px; }
}

/* Tablet portrait and mobile (guide, 25 Nov 2026, pp. 3, 5): under 1024 px a "Menu" button (grid icon + label, a soft
   white tile) replaces the category drop-downs. Tablet portrait keeps search, messages, about, shield and cog; the mobile
   keeps search and the account only (the rest is in the Menu drawer). */
@media (max-width: 1023.98px) {
    .stk-tn-cats { display: none !important; }
    .stk-tn-burger { display: inline-flex !important; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 8px; background: rgba(255, 255, 255, .12); justify-content: center; font-size: 14px; font-weight: 600; }
    .stk-tn-burger svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
    .stk-brand { margin-right: 8px; margin-left: 4px; }

}
@media (max-width: 767.98px) {
    .stk-tn-admin, .stk-tn-settings { display: none !important; }
    .stk-tool.is-help { display: none; }
}

@media (max-width: 575.98px) {
    .stk-topbar { --stk-tb-pad-x: 8px; padding: 6px var(--stk-tb-pad-x); min-height: 56px; }
    .stk-brand img { height: 32px; }
    .stk-brand span { display: none; }
    .stk-tool .put-label { display: none; }
}

@media print {
    .stk-topbar { display: none !important; }
}

/* ── Design V2 (CleanContentLook.PanelClass): the planner's dark content panel ──
   Everything above still applies; the content area becomes the planner's navy panel (WorkPalette.ShellPageTop →
   ShellPageBottom), inset on the light page with rounded corners. Cards stay white. What sits directly on the panel
   (the page title, top-level tabs, Home's headings) is redrawn so it reads on navy: the title in a white header card
   as on the planner, tabs and headings in white. Text inside cards keeps the light design untouched. */
.page.stk-clean.stk-panel { --stk-panel-top: #0F1E33; --stk-panel-bottom: #1D4370; --stk-on-panel: #FFFFFF; --stk-on-panel-muted: rgba(255, 255, 255, .72); --stk-on-panel-icon: #8FC0F5; }
.page.stk-clean.stk-panel article.content {
    background: linear-gradient(180deg, var(--stk-panel-top) 0%, var(--stk-panel-bottom) 100%);
    border-radius: 16px;
    margin: 12px 16px 16px;
    padding-top: 16px;
    padding-bottom: 20px;
    min-height: calc(100vh - 150px);
}
@media (max-width: 767.98px) { .page.stk-clean.stk-panel article.content { margin: 8px; border-radius: 12px; } }
/* The planner draws the same panel itself; inside V2's panel it would be a second one. */
/* The planner's pages (Planner, Day, Hours, My Day) take the design's page like every other: they drop their own navy
   page (Classic keeps it), so they are light on the light page and on the panel in the navy designs. */
.page.stk-clean article.content :is(.pl-page, .pl-myday) { background: transparent; min-height: 0; }

/* Page title: a white header card, as the planner's. */
.page.stk-clean.stk-panel article.content :is([class*="-title-pill"], [class*="-page-header"], .page-header) {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .8rem;
    width: 100%;
    background: #FFFFFF;
    border: 1px solid var(--stk-line);
    border-radius: 14px;
    padding: .85rem 1.1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}

/* Tabs that sit on the navy canvas or panel (every light design; not those inside a card, dialog or a page's own white tab box): Alex's in-page tabs
   (Design Update p. 6; palette tabs.underline_tab) — the strip becomes its own white box, dark labels, the selected
   tab bold with the orange underline. Was white-on-navy, which left labels faint and, where a page painted its own
   tab colours, the selected label invisible (Settings, Admin settings; user, 23 Nov 2026). */
.page.stk-clean article.content .nav-tabs:not(:is(.card, .modal, .shell-dialog, .offcanvas, [class*="tab-box"]) .nav-tabs, .stk-off-panel) { background: #FFFFFF; border: 1px solid var(--stk-line); border-radius: 12px; padding: 4px 12px 0; box-shadow: 0 2px 10px rgba(0, 0, 0, .05); margin-bottom: 1.25rem; }
.page.stk-clean article.content .nav-tabs:not(:is(.card, .modal, .shell-dialog, .offcanvas, [class*="tab-box"]) .nav-tabs, .stk-off-panel) .nav-link { color: #3C4654 !important; background: transparent !important; }
.page.stk-clean article.content .nav-tabs:not(:is(.card, .modal, .shell-dialog, .offcanvas, [class*="tab-box"]) .nav-tabs, .stk-off-panel) .nav-link:hover { color: var(--stk-navy) !important; border-bottom-color: var(--stk-line); background: #F4F6F9 !important; }
.page.stk-clean article.content .nav-tabs:not(:is(.card, .modal, .shell-dialog, .offcanvas, [class*="tab-box"]) .nav-tabs, .stk-off-panel) .nav-link.active { color: var(--stk-navy) !important; font-weight: 700; border-bottom-color: #C2510C !important; background: transparent !important; }
.page.stk-clean article.content .nav-tabs:not(:is(.card, .modal, .shell-dialog, .offcanvas, [class*="tab-box"]) .nav-tabs, .stk-off-panel) .nav-link .bi { color: var(--stk-blue); }
/* Home: the heading and section labels sit on the panel. */
.page.stk-clean.stk-panel .dashboard-header h1 { color: var(--stk-on-panel); }
.page.stk-clean.stk-panel :is(.dashboard-section-title, .quicklinks-header h3) { color: var(--stk-on-panel-muted); }
.page.stk-clean.stk-panel .quicklinks-header:hover h3 { color: var(--stk-on-panel); }
.page.stk-clean.stk-panel .quicklinks-toggle { color: var(--stk-on-panel-muted); }

.page.stk-clean.stk-panel .wasm-page-spinner-text { color: var(--stk-on-panel) !important; }
.page.stk-clean.stk-panel .wasm-page-spinner { border-top-color: var(--stk-on-panel-icon); }

/* ── Design V3 (CleanContentLook.BandClass): V2's navy panel under the new design's white header band ──
   The page title and the page's own tab menu are drawn as the top bar's sub-menu strip is: navy text on white,
   blue icons, the selected tab navy and underlined. Each becomes a white band running the full width of the panel
   (a white spread shadow, clipped to the band's height; the panel clips its sides), so the content section reads as
   a white header over a navy body. The panel's top padding goes so the first band meets its rounded top edge. */
.page.stk-clean.stk-panel.stk-band article.content { padding-top: 0; overflow: clip; }
.page.stk-clean.stk-panel.stk-band article.content :is([class*="-title-pill"], [class*="-page-header"], .page-header) {
    background: #FFFFFF;
    border: 0;
    border-radius: 0;
    box-shadow: 0 0 0 100vmax #FFFFFF, 0 1px 0 100vmax var(--stk-line);
    clip-path: inset(0 -100vmax -1px);
    padding: 18px 0 16px;
    margin-bottom: 20px;
}
/* Top-level tabs: the strip's look (V2 turned them white on navy). */
.page.stk-clean.stk-panel.stk-band article.content .nav-tabs:not(:is(.card, .modal, .shell-dialog, .offcanvas) .nav-tabs, .stk-off-panel) {
    background: #FFFFFF;
    border-bottom: 0;
    box-shadow: 0 0 0 100vmax #FFFFFF, 0 1px 0 100vmax var(--stk-line);
    clip-path: inset(0 -100vmax -1px);
    margin-bottom: 20px;
}
.page.stk-clean.stk-panel.stk-band article.content .nav-tabs:not(:is(.card, .modal, .shell-dialog, .offcanvas) .nav-tabs, .stk-off-panel) .nav-link { color: var(--stk-muted); }
.page.stk-clean.stk-panel.stk-band article.content .nav-tabs:not(:is(.card, .modal, .shell-dialog, .offcanvas) .nav-tabs, .stk-off-panel) .nav-link:hover { color: var(--stk-navy); border-bottom-color: var(--stk-line); }
.page.stk-clean.stk-panel.stk-band article.content .nav-tabs:not(:is(.card, .modal, .shell-dialog, .offcanvas) .nav-tabs, .stk-off-panel) .nav-link.active { color: var(--stk-navy); border-bottom-color: #C2510C; }
.page.stk-clean.stk-panel.stk-band article.content .nav-tabs:not(:is(.card, .modal, .shell-dialog, .offcanvas) .nav-tabs, .stk-off-panel) .nav-link .bi { color: var(--stk-blue); }
/* A title directly followed by its tabs: one white header, no navy gap between. */
.page.stk-clean.stk-panel.stk-band article.content :is([class*="-title-pill"], [class*="-page-header"], .page-header):has(+ .nav-tabs, + * > .nav-tabs:first-child) { margin-bottom: 0; padding-bottom: 6px; box-shadow: 0 0 0 100vmax #FFFFFF; clip-path: inset(0 -100vmax); }

/* Home: its heading row is the header band. */
.page.stk-clean.stk-panel.stk-band .dashboard-header {
    background: #FFFFFF;
    box-shadow: 0 0 0 100vmax #FFFFFF, 0 1px 0 100vmax var(--stk-line);
    clip-path: inset(0 -100vmax -1px);
    padding-top: 18px;
    padding-bottom: 16px;
    margin-bottom: 24px;
}
.page.stk-clean.stk-panel.stk-band .dashboard-header h1 { color: var(--stk-navy); }

/* V3: the detail pages' header (project, staff, client …: .staff-details-header, dark by default) and the planner's
   header card are the same white band, navy text and blue icons, like every other page title. */
.page.stk-clean.stk-panel.stk-band article.content :is(.staff-details-header, .pl-header) {
    background: #FFFFFF;
    color: var(--stk-navy);
    border: 0;
    border-radius: 0;
    box-shadow: 0 0 0 100vmax #FFFFFF, 0 1px 0 100vmax var(--stk-line);
    clip-path: inset(0 -100vmax -1px);
    padding-left: 0;
    padding-right: 0;
}
.page.stk-clean.stk-panel.stk-band article.content .staff-details-header :is(h1, h2, h3, h4, h5) { color: var(--stk-navy); }
.page.stk-clean.stk-panel.stk-band article.content .staff-details-header :is(.bi, i) { color: var(--stk-blue); }
.page.stk-clean.stk-panel.stk-band article.content .staff-details-header :is(small, .opacity-75) { color: var(--stk-muted); opacity: 1 !important; }
.page.stk-clean.stk-panel.stk-band article.content .staff-details-header .btn-link { color: var(--stk-blue) !important; }
.page.stk-clean.stk-panel.stk-band article.content .staff-details-header .btn-link:hover { color: var(--stk-navy) !important; }
.page.stk-clean.stk-panel.stk-band article.content .staff-details-header :is(.proj-contact-chip--site, .proj-contact-chip--client) { background: #EAF1FA; color: var(--stk-navy); }
.page.stk-clean.stk-panel.stk-band article.content .staff-details-header .text-white { color: var(--stk-navy) !important; }
.page.stk-clean.stk-panel.stk-band article.content .pl-header { margin-bottom: 20px; }
/* These two always open their page but sit inside a padded wrapper: the white runs up to meet the panel's top edge. */
.page.stk-clean.stk-panel.stk-band article.content :is(.staff-details-header, .pl-header) {
    box-shadow: 0 -32px 0 100vmax #FFFFFF, 0 1px 0 100vmax var(--stk-line);
    clip-path: inset(-32px -100vmax -1px);
}

/* ── Account menu › Design (DesignMenuSection): the person's page design ───────────────────────────────────────────
   Styled here, not by the menus' scoped CSS, so it looks the same in the server and WebAssembly menus. */
.stk-design-menu { padding: 2px 0; min-width: 240px; }
.stk-design-head { display: flex; align-items: center; gap: 8px; padding: 6px 16px 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #5A6B80; }
.stk-design-menu .stk-design-option { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 16px; border: 0; background: transparent; color: #13233B; font-size: .875rem; text-align: left; cursor: pointer; }
.stk-design-menu .stk-design-option:hover, .stk-design-menu .stk-design-option:focus-visible { background: #EAF1FA; color: #13233B; outline: none; }
.stk-design-menu .stk-design-option.is-on { background: #EAF1FA; color: #13233B; font-weight: 700; box-shadow: inset 3px 0 0 #1F5FA8; }
.stk-design-menu .stk-design-option.is-on .bi-check2 { color: #1F5FA8; }
.stk-design-menu .stk-design-option:disabled { opacity: .6; cursor: progress; }
.stk-design-menu .stk-design-option .bi-check2 { margin-left: auto; font-size: 1rem; }
.stk-design-text { display: flex; flex-direction: column; line-height: 1.2; }
.stk-design-text small { color: #5A6B80; font-weight: 400; font-size: .75rem; }
/* A small picture of each design: the content area, with a header strip on top. */
.stk-design-swatch { flex: none; width: 26px; height: 18px; border-radius: 4px; border: 1px solid #DCE3EC; position: relative; overflow: hidden; }
.stk-design-swatch::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: #13233B; }
.stk-design-swatch.is-classic { background: #1e293b; }
.stk-design-swatch.is-clean { background: #F4F6F9; }
.stk-design-swatch.is-panel { background: linear-gradient(#0F1E33, #1D4370); }
.stk-design-swatch.is-band { background: linear-gradient(#0F1E33, #1D4370); }
.stk-design-swatch.is-band::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 5px; background: #fff; }
.stk-design-error { padding: 4px 16px; color: #C42B2B; font-size: .8rem; }

/* ── Text on the wrong background, in every light design ────────────────────────────────────────────────────────────────────────
   Pages written for a light page draw their headings, muted text, labels and links dark. Where that lands on navy (the
   whole panel under Navy panel and White headers, the planner's navy pages in all three), js/design-theme.js marks it
   and these rules turn it light; text on a card, dialog, table or other light surface is left as the page draws it. */
.page.stk-clean { --stk-on-panel: #FFFFFF; --stk-on-panel-muted: rgba(255, 255, 255, .72); --stk-on-panel-icon: #8FC0F5; }
.page.stk-clean article.content .stk-on-panel { color: var(--stk-on-panel) !important; }
.page.stk-clean article.content .stk-on-panel-muted { color: var(--stk-on-panel-muted) !important; }
.page.stk-clean article.content :is(.stk-on-panel-link, .stk-on-panel-icon) { color: var(--stk-on-panel-icon) !important; }
.page.stk-clean article.content .stk-on-light { color: var(--stk-navy) !important; }
.page.stk-clean article.content .stk-on-light-muted { color: var(--stk-muted) !important; }
.page.stk-clean article.content .stk-on-light-icon { color: var(--stk-blue) !important; }

/* The Hire & Invoicing page's own tab strip is drawn for the dark page; on a light page, and in the White headers band,
   it takes this design's tab look: navy, the current tab underlined. */
.page.stk-clean:not(.stk-panel) .hi-pagetabs--page,
.page.stk-clean.stk-panel.stk-band .hi-pagetabs--page { border-bottom-color: var(--stk-line); }
.page.stk-clean:not(.stk-panel) .hi-pagetabs--page .hi-pagetabs-title,
.page.stk-clean.stk-panel.stk-band .hi-pagetabs--page .hi-pagetabs-title { color: var(--stk-navy); }
.page.stk-clean:not(.stk-panel) .hi-pagetabs--page .hi-pagetab,
.page.stk-clean.stk-panel.stk-band .hi-pagetabs--page .hi-pagetab { color: var(--stk-muted); }
.page.stk-clean:not(.stk-panel) .hi-pagetabs--page a.hi-pagetab:hover,
.page.stk-clean.stk-panel.stk-band .hi-pagetabs--page a.hi-pagetab:hover { color: var(--stk-navy); }
.page.stk-clean:not(.stk-panel) .hi-pagetabs--page .hi-pagetab.active,
.page.stk-clean.stk-panel.stk-band .hi-pagetabs--page .hi-pagetab.active { color: var(--stk-navy); border-bottom-color: var(--stk-navy); }
/* In the White headers design the strip is the page's header: a white band across the panel, like the title band. */
.page.stk-clean.stk-panel.stk-band article.content .hi-pagetabs--page {
    background: #fff; box-shadow: 0 -32px 0 100vmax #FFFFFF, 0 1px 0 100vmax var(--stk-line); clip-path: inset(-32px -100vmax -1px);
    margin-bottom: 20px;
}

/* ── H&S Inspections dashboard: its own orange banner and tab bar, in each design ──────────────────────────────────
   The banner (.idb-page-header) is a page title like any other, so the title rules above draw it; here it loses the
   banner's full-bleed margins and its icon gets the design's tile. Its tab bar takes the design's tabs: navy with an
   underline on the light page, white on the navy panel, a white band in the White headers design. */
.page.stk-clean article.content .idb-page-header { margin: 0 0 1rem; }
.page.stk-clean article.content .idb-page-header .idb-header-icon { background: var(--stk-tint, #EAF1FA); color: var(--stk-blue); }
.page.stk-clean article.content .idb-page-header :is(h1, h2, h3, h4) { color: var(--stk-navy); }
/* Tabs: the white tab box (above, line ~391) on every light design — dark labels, orange underline (2.0.37 crawl: the
   underline here was navy, and on Navy panel the labels were white inside the white box). */
.page.stk-clean article.content .idb-tab-nav { padding-left: 0; }
.page.stk-clean article.content .idb-tab-btn,
.page.stk-clean.stk-panel article.content .idb-tab-btn { color: #3C4654; }
.page.stk-clean article.content .idb-tab-btn:hover,
.page.stk-clean.stk-panel article.content .idb-tab-btn:hover { color: var(--stk-navy); }
.page.stk-clean article.content .idb-tab-btn.active,
.page.stk-clean.stk-panel article.content .idb-tab-btn.active { color: var(--stk-navy); border-bottom-color: #C2510C; font-weight: 700; }
.page.stk-clean article.content .idb-tab-btn .bi,
.page.stk-clean.stk-panel article.content .idb-tab-btn .bi { color: var(--stk-blue); }
/* The title band runs straight into the tab band. */
.page.stk-clean.stk-panel.stk-band article.content .idb-page-header { margin-bottom: 0; padding-bottom: 6px; box-shadow: 0 0 0 100vmax #FFFFFF; clip-path: inset(0 -100vmax); }

/* My Day's day strip is drawn for the planner's navy page (tiles of white at 8%); on the Light design's page the
   tiles are white cards with the design's line, so they still read as tiles. The chosen day keeps its orange. */
.page.stk-clean:not(.stk-panel) article.content .md-strip-day:not(.selected) { background: #FFFFFF; border: 1px solid var(--stk-line); color: var(--stk-navy); }
.page.stk-clean:not(.stk-panel) article.content .md-strip-day:not(.selected) .dow { color: var(--stk-muted); }
.page.stk-clean:not(.stk-panel) article.content .md-strip-step { color: var(--stk-muted); }
.page.stk-clean:not(.stk-panel) article.content .md-strip-step:hover { background: var(--stk-tint, #EAF1FA); color: var(--stk-navy); }
.page.stk-clean:not(.stk-panel) article.content .md-strip-day.today:not(.selected) { box-shadow: inset 0 0 0 2px var(--stk-blue); }

/* Bootstrap's primary card headers (bg-primary: bright blue, or the theme's orange) take the design's navy header,
   as the theme's own card headers do. */
.page.stk-clean article.content .card-header.bg-primary { background: var(--stk-navy) !important; border-color: var(--stk-navy); color: #fff; }
.page.stk-clean article.content .card-header.bg-primary :is(.text-white-50, small) { color: rgba(255, 255, 255, .75) !important; }
/* Bootstrap pill navigation (the account pages' menu): the selected item in the design's navy, not Bootstrap blue. */
.page.stk-clean article.content .nav-pills .nav-link.active { background: var(--stk-navy); color: #fff; }
.page.stk-clean article.content .nav-pills .nav-link:not(.active):hover { background: var(--stk-tint, #EAF1FA); }

/* ── Phones, every design ───────────────────────────────────────────────────────────────────────────────────────────
   The design-review capture's phone sweep (390px) found content in a narrow strip down the middle, where page
   containers, cards and the cards inside them each add their own side padding, and a few blocks running off the side
   of the screen. On a phone the side padding is trimmed, page headers stay inside the screen, and a table that has no
   scroll box of its own scrolls itself. */
@media (max-width: 575.98px) {
    article.content :is(.container, .container-fluid) { padding-left: .5rem !important; padding-right: .5rem !important; }
    article.content .card-body { padding: .75rem; }
    article.content .card .card :is(.card-body, .card-header) { padding-left: .6rem; padding-right: .6rem; }
    article.content :not(.table-responsive) > table.table { display: block; max-width: 100%; overflow-x: auto; }
    article.content .bar-chart-wrap { overflow-x: auto; }
    /* The setup lists' filter box (Vehicles, Clients, Suppliers): no second inset card on a phone. */
    article.content .filter-section { margin-left: 0; margin-right: 0; padding: .75rem; box-shadow: none; }
    /* The notifications editor's sticky footer pulls itself out to the card's edges; on a phone it stays inside. */
    article.content .nm-footer { margin-left: 0; margin-right: 0; padding-left: .75rem; padding-right: .75rem; }
}
/* Page headers that bleed to the edge with negative margins stay inside the screen on phones and tablets. */
@media (max-width: 1023.98px) {
    article.content :is([class*="-page-header"], .page-header) { max-width: 100%; margin-left: 0; margin-right: 0; }
}

/* Pale captions drawn straight on the page (My Day's footnote, Role permissions' "Select a role" and empty state).
   Every light design now has the navy canvas, so they take the on-canvas grey (was the in-box slate #5A6B80, written
   when the Light page was white — 2.4:1 on navy, 2.0.37 crawl). */
.page.stk-clean article.content :is(.md-footnote, .rpm-empty, .rpm-empty p) { color: var(--stk-oncanvas-muted) !important; }
/* Inline pale-grey spans inside white boxes: slate. Ones on the canvas are marked by design-theme.js and stay light. */
.page.stk-clean article.content span[style*="color:#94a3b8"]:not([class*="stk-on-panel"]) { color: var(--stk-muted) !important; }
.page.stk-clean article.content .rpm-empty i { color: var(--stk-oncanvas-muted); opacity: .6; }

/* ── Settings › Company: white accordion rows in one white box (Alex's design update, pp. 6 and 10) ──
   The section panels (Company, Yard, Webfleet, Branding, Legal) were each a card with a navy gradient header bar.
   On the ScafTek look they become rows of one box: white header, Ink title, blue icon, a thin rule between rows. */
.page.stk-clean .stk-settings-acc { background: #FFFFFF; border: 1px solid var(--stk-line); border-radius: 14px; overflow: hidden; margin-bottom: 16px; }
.page.stk-clean .stk-settings-acc > .card { border: 0; border-radius: 0; box-shadow: none !important; margin: 0 !important; }
.page.stk-clean .stk-settings-acc > .card + .card { border-top: 1px solid var(--stk-line); }
.page.stk-clean .stk-settings-acc > .card > .card-header { background: #FFFFFF !important; color: var(--stk-navy) !important; border: 0; border-radius: 0; padding: 16px 20px; min-height: 56px; }
.page.stk-clean .stk-settings-acc > .card > .card-header :is(h5, h5 *) { color: var(--stk-navy) !important; font-size: 17px; font-weight: 700; }
.page.stk-clean .stk-settings-acc > .card > .card-header .bi { color: var(--stk-blue) !important; }
.page.stk-clean .stk-settings-acc > .card > .card-header:hover { background: #F7F9FC !important; }
.page.stk-clean .stk-settings-acc > .card > .card-body { padding: 4px 20px 20px; }

/* ── Table footer, the same on every list (Alex's design update, 19 Nov 2026, pp. 2, 5 and 10) ──────────────────────────
   "Showing x to y of z" on the left; Rows per page and the page buttons on the right; inside the list's white box with a
   thin rule above it. One look for the shared PaginationControl (Clients, Suppliers, Vehicles, Staff, Quotes, Inspections,
   Quote items, Load items, the admin lists) and the Projects page's own footer. Phones keep the 44px touch targets the
   components set themselves, so the compact sizes apply from 1024px up. */
.page.stk-clean .pagination-container,
.page.stk-clean .projects-pagination-container {
    background: #FFFFFF;
    border-top: 1px solid #E6EBF1;
    padding: 10px 16px;
    gap: 12px;
}
.page.stk-clean .pagination-info,
.page.stk-clean .projects-pagination-info { color: #5A6B80; font-size: 13px; font-weight: 500; }
.page.stk-clean .pagination-controls label,
.page.stk-clean .projects-pagination-controls label { color: #5A6B80; font-size: 13px !important; }
.page.stk-clean .pagination-select,
.page.stk-clean .projects-pagination-select {
    border: 1px solid #D5DCE5;
    border-radius: 8px;
    color: #13233B;
    background-color: #FFFFFF;
    min-width: 72px;
}
.page.stk-clean .pagination-btn,
.page.stk-clean .projects-pagination-btn {
    background: #FFFFFF;
    border: 1px solid #D5DCE5;
    color: #13233B;
    box-shadow: none;
    transform: none;
}
.page.stk-clean .pagination-btn:hover:not(:disabled),
.page.stk-clean .projects-pagination-btn:hover:not(:disabled) {
    background: #EEF3FA;
    border-color: #B9C7D8;
    color: #13233B;
    box-shadow: none;
    transform: none;
}
.page.stk-clean .pagination-btn.active,
.page.stk-clean .projects-pagination-btn.active,
.page.stk-clean .pagination-btn.active:hover:not(:disabled),
.page.stk-clean .projects-pagination-btn.active:hover:not(:disabled) {
    background: #13233B;
    border-color: #13233B;
    color: #FFFFFF;
    box-shadow: none;
}
.page.stk-clean .pagination-btn:disabled,
.page.stk-clean .projects-pagination-btn:disabled { background: #F4F6F9; color: #9AA7B6; opacity: 1; }
@media (min-width: 1024px) {
    .page.stk-clean .pagination-btn,
    .page.stk-clean .projects-pagination-btn { min-width: 32px; height: 32px; padding: 0 8px; border-radius: 8px; font-size: 13px; }
    .page.stk-clean .pagination-select,
    .page.stk-clean .projects-pagination-select { height: 32px; padding: 0 8px; font-size: 13px; }
}

/* ── Quick-view chips under a toolbar (Projects' All / Open / per-status, Staff's status filter, the Quotes dashboard's
   status tabs): small white chips with a thin border; the selected one navy (pp. 5, 7 and 10). Touch size on phones. */
.page.stk-clean .filter-pill,
.page.stk-clean .qd-tab {
    border: 1px solid #D5DCE5;
    background: #FFFFFF;
    color: #13233B;
    box-shadow: none;
    transform: none;
}
.page.stk-clean .filter-pill:hover,
.page.stk-clean .qd-tab:hover { background: #EEF3FA; border-color: #B9C7D8; box-shadow: none; transform: none; }
.page.stk-clean .filter-pill.active,
.page.stk-clean .qd-tab.active,
.page.stk-clean .filter-pill.active:hover,
.page.stk-clean .qd-tab.active:hover { background: #13233B; border-color: #13233B; color: #FFFFFF; filter: none; }
.page.stk-clean .filter-pill .badge { background: #EEF1F5; color: #5A6B80; border-radius: 999px; }
.page.stk-clean .filter-pill.active .badge { background: rgba(255, 255, 255, .2); color: #FFFFFF; }
/* The selected chip's count: a white pill with navy figures. The filter-bar rule above (every span navy, higher
   specificity) turned the count navy on the navy chip ("All 41" on /projects, 23 Nov 2026), so this one is
   scoped as tightly and marked important. */
.page.stk-clean article.content :is(.filter-pill, .qd-tab).active .badge { background: #FFFFFF !important; color: #13233B !important; }
@media (min-width: 768px) {
    .page.stk-clean .filter-pill,
    .page.stk-clean .qd-tab { min-height: 32px; padding: 4px 12px; margin: 2px; font-size: 13px; border-radius: 999px; }
}

/* Bootstrap colour utilities that fail contrast on white (2.0.37 crawl): bright cyan headers and yellow text take
   Alex's info and amber tints. */
.page.stk-clean article.content :is(.card-header, .modal-header).bg-info { background: #E3EDF7 !important; color: #173E65 !important; }
.page.stk-clean article.content :is(.card-header, .modal-header).bg-info :is(h1, h2, h3, h4, h5, h6, i, .text-white) { color: #173E65 !important; }
.page.stk-clean article.content :is(.card, .modal-content, .alert, .list-group-item, table) .text-warning { color: #926500 !important; }
/* Roles page outline buttons: white fill, navy text wherever they sit (theme text is light for the canvas, invisible on
   white cards and modals — 2.0.37 crawl). Same look as .stk-bulk-toggle. */
.page.stk-clean .role-btn-outline { background: #FFFFFF !important; color: #13233B !important; border-color: #D5DCE5 !important; }
.page.stk-clean .role-btn-outline:hover { background: #F4F6F9 !important; border-color: #173E65 !important; }

/* Dialog primary buttons: many modals paint .btn-primary with an inline style="background: @theme.ButtonGradient" (navy),
   leaving the footer with no orange main action (Add Client / Supplier / Vehicle, 2.0.37 crawl). Alex: one orange
   primary, white-outline secondary. RAMS keeps its deliberate navy. */
.page.stk-clean :is(.modal, .modal-content, .shell-dialog) .btn.btn-primary:not(:is(.hsp, .rams-ui) *) { background: #C2510C !important; border-color: #C2510C !important; color: #FFFFFF !important; font-weight: 700; }
.page.stk-clean :is(.modal, .modal-content, .shell-dialog) .btn.btn-primary:not(:is(.hsp, .rams-ui) *):is(:hover, :focus-visible) { background: #A5450A !important; border-color: #A5450A !important; }
.page.stk-clean :is(.modal-footer, .shell-dialog .modal-footer) .btn.btn-secondary { background: #FFFFFF !important; color: #13233B !important; border: 1px solid #D5DCE5 !important; }
.page.stk-clean :is(.modal-footer, .shell-dialog .modal-footer) .btn.btn-secondary:hover { background: #F4F6F9 !important; }
.page.stk-clean article.content .btn.btn-primary[style*="gradient"]:not(:is(.hsp, .rams-ui) *) { background: #C2510C !important; border-color: #C2510C !important; color: #FFFFFF !important; }
.page.stk-clean article.content .btn.btn-primary[style*="gradient"]:not(:is(.hsp, .rams-ui) *):hover { background: #A5450A !important; }

/* Bootstrap filled stat cards (.card.bg-danger.text-white etc., e.g. Crash logs) and yellow .btn-warning: white card with
   a state-coloured edge and figure; amber-tint button (2.0.37 crawl). */
.page.stk-clean article.content .card.text-white:is(.bg-danger, .bg-warning, .bg-info, .bg-success, .bg-primary) { background: #FFFFFF !important; color: #13233B !important; border: 1px solid #D5DCE5; border-left-width: 4px; }
.page.stk-clean article.content .card.text-white.bg-danger  { border-left-color: #C42B2B; }
.page.stk-clean article.content .card.text-white.bg-warning { border-left-color: #926500; }
.page.stk-clean article.content .card.text-white:is(.bg-info, .bg-primary) { border-left-color: #173E65; }
.page.stk-clean article.content .card.text-white.bg-success { border-left-color: #187B43; }
.page.stk-clean article.content .card.text-white:is(.bg-danger, .bg-warning, .bg-info, .bg-success, .bg-primary) :is(.text-white, .text-white-50, h1, h2, h3, h4, h5, h6, p, small, i) { color: inherit !important; }
.page.stk-clean article.content .card.text-white.bg-danger :is(h1, h2, h3, h4, i)  { color: #C42B2B !important; }
.page.stk-clean article.content .card.text-white.bg-warning :is(h1, h2, h3, h4, i) { color: #926500 !important; }
.page.stk-clean article.content .card.text-white:is(.bg-info, .bg-primary) :is(h1, h2, h3, h4, i) { color: #173E65 !important; }
.page.stk-clean article.content .card.text-white.bg-success :is(h1, h2, h3, h4, i) { color: #187B43 !important; }
.page.stk-clean article.content .btn.btn-warning { background: #FDF3D8 !important; color: #7A5600 !important; border-color: #F2DFA6 !important; }
.page.stk-clean article.content .btn.btn-warning:hover { background: #F9E8B8 !important; }
.page.stk-clean article.content .modal-header.bg-danger { background: #FBE4E4 !important; color: #C42B2B !important; }
.page.stk-clean article.content .modal-header.bg-danger :is(.modal-title, h5, i) { color: #C42B2B !important; }
.page.stk-clean article.content .modal-header.bg-danger .btn-close-white { filter: none; }

/* Inspections and document-expiry view toggles and period pills: navy selected state (was amber #F59E0B; 2.0.37 crawl). */
.page.stk-clean article.content :is(.idb-view-btn, .idb-period-pill, .ded-period-pill).active { background: #173E65 !important; color: #FFFFFF !important; }

/* Signed-out header: the About (i) button was #333 on the navy canvas, almost invisible (sign-in, QR pages; crawl). */
.unauthenticated-header .about-button { color: rgba(255, 255, 255, .78) !important; }
.unauthenticated-header .about-button:hover { color: #FFFFFF !important; }
/* Survey "Generate Quote" in the panel header: the page's main action, orange (was green btn-success; crawl). */
.page.stk-clean .quote-generate-btn.btn-success:not(:disabled) { background: #C2510C !important; border-color: #C2510C !important; color: #FFFFFF !important; }
.page.stk-clean .quote-generate-btn.btn-success:not(:disabled):hover { background: #A5450A !important; border-color: #A5450A !important; }
.page.stk-clean .sgf-generate-btn:not(:disabled):hover { background: #A5450A; }

/* Bootstrap's grey .btn-secondary: Alex's white-outline secondary (Revert, Close… were slate fills; crawl). */
.page.stk-clean article.content .btn.btn-secondary:not(:is(.hsp, .rams-ui) *) { background: #FFFFFF !important; color: #13233B !important; border: 1px solid #D5DCE5 !important; }
.page.stk-clean article.content .btn.btn-secondary:not(:is(.hsp, .rams-ui) *):hover:not(:disabled) { background: #F4F6F9 !important; border-color: #173E65 !important; }
.page.stk-clean article.content .btn.btn-secondary:disabled { opacity: .55; }

/* Empty-state lines inside white boxes ("No files yet", "No PDF generated yet", "No messages yet"…) inherit pale
   #94A3B8 from a dozen containers; slate inside boxes (2.0.38 crawl). On the canvas the walker keeps them light. */
.page.stk-clean article.content :is(.card, .modal-content, [class*="panel"], [class*="-box"], [class*="-card"]) :is([class*="empty"], [class*="empty"] p):not([class*="stk-on-panel"]) { color: #5A6B80 !important; }
/* Amber text on a dark surface stays the light amber (the in-box #926500 rule must not reach dark panels). */
.page.stk-clean article.content .text-warning[class*="stk-on-panel"] { color: #F5C451 !important; }

/* Scaffold tags: the page sat straight on the canvas (table with no box, grey title on navy; 2.0.39 crawl). One white
   card like the other list pages. */
.page.stk-clean article.content .stm-page { background: #FFFFFF; border: 1px solid #D5DCE5; border-radius: 14px; box-shadow: 0 2px 10px rgba(0, 0, 0, .06); max-width: none; }
.page.stk-clean article.content .stm-page .stm-header { color: #13233B; border-bottom-color: #D5DCE5 !important; }
.page.stk-clean article.content .stm-page .stm-header-left .bi { color: #173E65; }

/* ── Phone title (site-wide sweep, guide 25 Nov 2026, every mobile page) ─────────────────────────────────────
   Under 768 px the current page name ("Staff", "Set up data", "P-0096") sits next to the logo in place of the company
   name. TopNav renders .stk-tn-pagename (TopNavLocator.PhoneTitle); when it is absent the company name stays. */
.stk-tn-pagename { display: none; }
@media (max-width: 767.98px) {
    .stk-topbar:has(.stk-tn-pagename) .stk-brand span { display: none; }
    .stk-tn-pagename {
        order: 0; display: block; min-width: 0; max-width: 32vw; margin-right: 8px;
        color: var(--stk-tb-fg-strong); font-size: 16px; font-weight: 700; line-height: 1.2;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .stk-topbar:has(.stk-tn-pagename) .stk-brand { margin-right: 4px; }
    /* One row, as drawn: logo · page name · Menu … search · account (messages and the rest are in the Menu). */
    .stk-topbar { flex-wrap: nowrap; }
    .stk-tool:not(.is-account) { display: none !important; }
}
