/* =====================================================================
   2.28 — AZ AutoZone "Showroom" theme (design C)
   A black menu across the top, a black title bar with a red line, warm grey pages,
   white rounded cards. Red only for actions, the step the car is on, counts and alerts.
   Loaded after app.css. Visual only. Same Dark / light switch: <html data-theme> + 'az-theme'.
   Phones keep the glass bottom bar.
   ===================================================================== */

/* ---------- 1. Tokens: light (root + every card, sheet and menu) ---------- */
:root,
:root:not([data-theme="dark"]) :is(.card, .widget, .dw:not(.dk-hello), .dat, .stile, .kpi, .menu, .rowmenu .pop, .bcard, .tcard, .jobtile, .authcard, .ac-list, .setstep,
  .fstep, .fgate, .ss-list, .pk-sheet, .dcard, dialog.sheet, .ppdlg, .cf-sheet, .cf-box, .sbox, .dp-card, .ftile, .pfm-pop, .akpi, .asecs, .alaunch, .aadv, .qtile, .voicebox,
  .techdd .techpick, .dc-dl .dl-menu, .duestrip, .actionbar, .pausebox .reasons, .note, .flash, .rcv-match, .dbr-w, .navsub, .lane, .findcar) {
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-c: var(--font); --font-d: var(--font); --font-r: var(--font);
  --ink: #141414; --ink-2: #404040; --ink-3: #636363; --ink-muted: #636363;
  --page: #F4F4F2; --surface: #FFFFFF; --surface-2: #FAFAF9; --bg: #F4F4F2; --bg-2: #FAFAF9; --card: #FFFFFF;
  --fill: rgba(20,20,20,.07); --fill-2: rgba(20,20,20,.04);
  --line: #EEEEEC; --line-2: #E5E5E3; --sec-bd: #EAEAE7; --input-bd: #E5E5E3; --placeholder: #8A8A88;
  --red: #E31B23; --red-ink: #B91C1C; --red-soft: #FEF2F2; --red-line: #FECACA;
  --brand-red: #E31B23; --brand-red-hover: #C8141B; --brand-red-soft: rgba(227,27,35,.12);
  --blue: #1D4ED8; --blue-soft: #DBEAFE; --green: #15803D; --green-soft: #DCFCE7; --amber: #B45309; --amber-soft: #FEF3C7; --violet: #6D28D9; --violet-soft: #EDE9FE;
  --ok: #15803D; --ok-soft: #DCFCE7; --warn: #B45309; --warn-soft: #FEF3C7; --err: #B91C1C; --err-soft: #FEE2E2; --info: #1D4ED8; --info-soft: #DBEAFE; --link: #C8141B;
  --t-blue: #2563EB; --t-green: #16A34A; --t-orange: #D97706; --t-red: #DC2626; --t-indigo: #4F46E5;
  --glass-inset-bg: #FAFAF9; --glass-card-bg: #FFFFFF; --glass-card-border: #EAEAE7; --track: #EEEEEC; --grid: #F0F0EE; --axis: #737373; --tooltip-bg: #141414;
  --shadow: 0 1px 2px rgba(20,20,20,.04), 0 10px 28px -16px rgba(20,20,20,.18); --shadow-card: var(--shadow);
  --shadow-hover: 0 2px 4px rgba(20,20,20,.06), 0 16px 36px -16px rgba(20,20,20,.28); --shadow-lg: 0 24px 60px -18px rgba(20,20,20,.35);
  --ring: 0 0 0 4px rgba(227,27,35,.14);
  --d-indigo: #3B82F6; --d-indigo-2: #93C5FD; --d-amber: #F59E0B; --d-green: #16A34A; --d-emerald: #059669; --d-violet: #8B5CF6; --d-danger: #EF4444; --d-orange: #F97316; --d-teal: #14B8A6; --d-slate: #A3A3A3; --d-pink: #EC4899; --d-sky: #0EA5E9; --d-lime: #84CC16;
  --pill-ok-t: #166534; --pill-ok-b: #DCFCE7; --pill-warn-t: #92400E; --pill-warn-b: #FEF3C7; --pill-bad-t: #991B1B; --pill-bad-b: #FEE2E2; --pill-info-t: #1E40AF; --pill-info-b: #DBEAFE; --pill-mute-t: #404040; --pill-mute-b: #F0F0EE;
  --skel-a: #F0F0EE; --skel-b: #E5E5E3; --scroll-thumb: rgba(20,20,20,.18);
  --r-sm: 10px; --r: 12px; --r-lg: 18px; --r-xl: 22px; --radius-md: 12px; --radius-lg: 18px; --radius-xl: 22px;
  --ease: cubic-bezier(.22,1,.36,1);
  color-scheme: light;
}

/* ---------- 2. Tokens: dark (dark mode + the black menu, title bar, banner and bottom bar in light mode) ---------- */
:root[data-theme="dark"],
:root:not([data-theme="dark"]) :is(.side, .top, .tabbar, .scrim, .kinsp-bar, .dbhead, .rcv-today, .authwrap) {
  --ink: #F5F5F4; --ink-2: #D4D4D4; --ink-3: #A3A3A3; --ink-muted: #A3A3A3;
  --page: #0A0A0A; --surface: #171717; --surface-2: #1F1F1F; --bg: #0A0A0A; --bg-2: #1F1F1F; --card: #171717;
  --fill: rgba(255,255,255,.10); --fill-2: rgba(255,255,255,.06);
  --line: #262626; --line-2: #333333; --sec-bd: #262626; --input-bd: #333333; --placeholder: #8A8A8A;
  --red: #F0313A; --red-ink: #FCA5A5; --red-soft: rgba(240,49,58,.16); --red-line: rgba(240,49,58,.4);
  --brand-red: #E31B23; --brand-red-hover: #C8141B; --brand-red-soft: rgba(240,49,58,.2);
  --blue: #93C5FD; --blue-soft: rgba(59,130,246,.18); --green: #4ADE80; --green-soft: rgba(34,197,94,.16); --amber: #FBBF24; --amber-soft: rgba(245,158,11,.16); --violet: #C4B5FD; --violet-soft: rgba(139,92,246,.2);
  --ok: #4ADE80; --ok-soft: rgba(34,197,94,.16); --warn: #FBBF24; --warn-soft: rgba(245,158,11,.16); --err: #FCA5A5; --err-soft: rgba(239,68,68,.16); --info: #93C5FD; --info-soft: rgba(59,130,246,.18); --link: #FCA5A5;
  --t-blue: #60A5FA; --t-green: #4ADE80; --t-orange: #FBBF24; --t-red: #F87171; --t-indigo: #818CF8;
  --glass-inset-bg: #1F1F1F; --glass-card-bg: #171717; --glass-card-border: #262626; --track: #262626; --grid: #222222; --axis: #A3A3A3; --tooltip-bg: #262626;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 30px -16px rgba(0,0,0,.7); --shadow-card: var(--shadow);
  --shadow-hover: 0 2px 4px rgba(0,0,0,.5), 0 18px 40px -16px rgba(0,0,0,.85); --shadow-lg: 0 24px 60px -18px rgba(0,0,0,.9);
  --ring: 0 0 0 4px rgba(240,49,58,.25);
  --d-indigo: #60A5FA; --d-indigo-2: #93C5FD; --d-amber: #FBBF24; --d-green: #4ADE80; --d-emerald: #34D399; --d-violet: #A78BFA; --d-danger: #F87171; --d-orange: #FB923C; --d-teal: #2DD4BF; --d-slate: #A3A3A3; --d-pink: #F472B6; --d-sky: #38BDF8; --d-lime: #A3E635;
  --pill-ok-t: #4ADE80; --pill-ok-b: rgba(34,197,94,.16); --pill-warn-t: #FBBF24; --pill-warn-b: rgba(245,158,11,.16); --pill-bad-t: #FCA5A5; --pill-bad-b: rgba(239,68,68,.18); --pill-info-t: #93C5FD; --pill-info-b: rgba(59,130,246,.18); --pill-mute-t: #D4D4D4; --pill-mute-b: #262626;
  --skel-a: #1F1F1F; --skel-b: #2A2A2A; --scroll-thumb: rgba(255,255,255,.16);
  color-scheme: dark;
}
:root:not([data-theme="dark"]) :is(.side, .top) :is(.menu, .navsub) { color-scheme: light; }

/* ---------- 3. Base ---------- */
html, body { background: var(--page); }
body { font-family: var(--font); font-size: 14.5px; color: var(--ink); font-feature-settings: "tnum" 1; font-variant-numeric: tabular-nums; letter-spacing: 0; }
h1, h2, h3, .top h1 { font-family: var(--font); letter-spacing: -.01em; }
a { color: var(--link); }
.side a, .tabbar a, .navsub a { color: inherit; }
:where(.card, .widget, .dw:not(.dk-kpi):not(.dw-hello), .dat, .stile, .kpi, .menu, .bcard, .tcard, .jobtile, .setstep, .fstep, .fgate, .ss-list, .dcard, .sbox, .dp-card, .ftile, .akpi, .asecs, .alaunch, .aadv, .qtile, .voicebox, .duestrip, .actionbar, .note, .rcv-match, .dbr-w, .lane) { color: var(--ink); }
.mono { font-family: var(--font); letter-spacing: .02em; }
.tbl th, .dtbl th, .astmt th { font-size: 11px !important; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3) !important; }
::placeholder { text-transform: none !important; letter-spacing: normal !important; color: var(--placeholder) !important; opacity: 1; font-weight: 400; }
::selection { background: rgba(227,27,35,.2); }
:focus-visible { box-shadow: var(--ring); outline: none; }
* { scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 8px; }
.theme-fade, .theme-fade *, .theme-fade *::before, .theme-fade *::after { transition: background-color .25s, color .25s, border-color .25s, box-shadow .25s, fill .25s, stroke .25s !important; }

/* ---------- 4. Shell: the black menu across the top (computers) ---------- */
.app { display: block; min-height: 100vh; }
.main { min-width: 0; }
@media (min-width: 1200px) {
  .side { position: sticky; top: 0; z-index: 45; width: auto; height: auto; min-height: 60px; flex-direction: row; align-items: center; gap: 14px; padding: 0 18px; background: #141414; border: 0; border-bottom: 1px solid #262626; border-radius: 0; box-shadow: none; overflow: visible; color: #D4D4D4; transform: none !important; }
  .brand { flex-direction: row !important; align-items: center !important; padding: 10px 0 !important; margin: 0 !important; border: 0 !important; flex: none; }
  .brand img.brandlogo { max-width: 92px !important; }
  .brand .brandsub { display: none; }
  .side nav { flex: 1; display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0; padding: 8px 0 !important; overflow: visible !important; }
  .navhead { display: none !important; }
  .side nav > a, .navgrp > summary { min-height: 38px !important; padding: 7px 6px !important; border-radius: 999px !important; font-size: 12.5px !important; font-weight: 600 !important; color: #D4D4D4 !important; gap: 3px !important; border: 0 !important; background: transparent; box-shadow: none !important; white-space: nowrap; }
  .side nav > a .ic, .navgrp > summary > .ic { display: none; }
  .side nav > a:hover, .navgrp > summary:hover, .navgrp.dd-open > summary { background: #262626 !important; color: #fff !important; }
  .side nav > a.on, .navgrp > summary.has-on { background: #fff !important; color: #141414 !important; }
  .side nav > a.on::before, .navsub a.on::before { display: none !important; }
  .navgrp { position: relative; }
  .navgrp > summary .chev { display: inline-flex; margin: 0 !important; transform: none !important; } .navgrp.dd-open > summary .chev { transform: scaleY(-1) !important; } .navgrp .chev .ic { display: inline-block !important; width: 12px; height: 12px; transform: rotate(90deg); opacity: .6; }
  .side nav .count, .navgrp > summary .count { margin-left: 2px; background: #E31B23 !important; color: #fff !important; font: 700 11px/18px var(--font) !important; min-width: 18px; height: 18px; padding: 0 6px !important; border-radius: 999px; box-shadow: none !important; }
  .navgrp > .navsub { display: none; }
  .navgrp.dd-open > .navsub { display: grid; position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; min-width: 240px; grid-template-columns: 1fr; gap: 2px; padding: 8px !important; margin: 0 !important;
    background: #fff; color: #141414; border: 1px solid #EAEAE7 !important; border-radius: 16px; box-shadow: 0 24px 60px -18px rgba(20,20,20,.35); animation: none; }
  .navgrp.dd-open > .navsub:has(> a:nth-child(7)) { grid-template-columns: repeat(2, minmax(200px, 1fr)); min-width: 440px; }
  .navsub a { min-height: 40px !important; padding: 9px 12px !important; border-radius: 10px !important; font-size: 14px !important; font-weight: 600; color: #141414 !important; display: flex !important; align-items: center; gap: 10px; }
  .navsub a .ic { display: inline-block !important; width: 17px; height: 17px; color: #737373 !important; }
  .navsub a:hover { background: #F4F4F2 !important; }
  .navsub a.on { background: #FEF2F2 !important; color: #B91C1C !important; } .navsub a.on .ic { color: #E31B23 !important; }
  .navsub a .count { margin-left: auto; }
  :root[data-theme="dark"] .navgrp.dd-open > .navsub { background: #1F1F1F; border-color: #333 !important; }
  :root[data-theme="dark"] .navsub a { color: #F5F5F4 !important; } :root[data-theme="dark"] .navsub a:hover { background: #2A2A2A !important; } :root[data-theme="dark"] .navsub a.on { background: rgba(240,49,58,.18) !important; color: #FCA5A5 !important; }
  .navgrp:last-child.dd-open > .navsub, .navgrp:nth-last-child(2).dd-open > .navsub { left: auto; right: 0; }
  .sidefoot { display: none !important; }
  .scrim, .burger { display: none !important; }
}
/* the black title bar under the menu: page name + its main buttons; a red line under it */
.top { position: relative; top: auto; z-index: 30; height: auto; min-height: 64px; margin: 0; padding: 10px 28px; border: 0; border-radius: 0; border-bottom: 3px solid #E31B23; background: #141414; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.top h1 { color: #fff; font-size: 21px; font-weight: 800; }
.top h1 a { color: #A3A3A3; }
.main:has(.content > .dbhead) .top { border-bottom: 0; padding-bottom: 0; min-height: 56px; }
.main:has(.content > .dbhead) .top h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.main:has(.content > .dbhead) .topright { margin-left: auto; }
.top .iconbtn { color: #F5F5F4; }
.topright { gap: 10px; }
.top .btn-red { border-radius: 999px; padding: 0 16px; min-height: 40px; background: #E31B23; border: 0; color: #fff; box-shadow: none; }
.top .btn-red:hover { background: #C8141B; }
.notif summary.iconbtn { width: 40px; height: 40px; border-radius: 50%; background: #262626; border: 1px solid #333; color: #F5F5F4; }
.nbadge { background: #E31B23; box-shadow: 0 0 0 2px #141414; }
.top .pill { min-height: 38px; border-radius: 999px; background: transparent; color: #F5F5F4; border: 1px solid #3A3A3A; }
.top .pill-off .dot { background: #F0313A; }
.top .pill-on { border-color: rgba(34,197,94,.45); color: #4ADE80; } .top .pill-on .dot { background: #22C55E; }
.top .usermenu > summary .av { background: #E31B23 !important; color: #fff; width: 36px; height: 36px; box-shadow: none; }
.top .backjob { background: #262626; color: #F5F5F4; border-radius: 999px; border: 0; }
.content { padding: 24px 28px 64px; max-width: none; }

/* tablets and small laptops: the menu is a drawer from the menu button */
@media (max-width: 1199px) {
  .side { position: fixed; left: 0; top: 0; bottom: 0; height: auto; width: 288px; z-index: 60; background: #141414; color: #D4D4D4; border-radius: 0 20px 20px 0; transform: translateX(-102%); transition: transform .28s var(--ease); box-shadow: none; }
  .side.open { transform: none; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
  .brand { border-bottom: 1px solid #262626; }
  .side nav a, .navgrp > summary { color: #D4D4D4; border-radius: 12px; min-height: 44px; }
  .side nav a.on { background: #fff; color: #141414; box-shadow: none; } .side nav a.on::before { display: none; } .side nav a.on .ic { color: #E31B23; }
  .navgrp > summary.has-on { color: #fff; }
  .side nav .count, .navgrp > summary .count { background: #E31B23; box-shadow: none; }
  .scrim.open { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,.5); }
  .burger { display: inline-grid !important; }
  .top { position: sticky; top: 0; }
}
@media (max-width: 760px) { .burger { display: none !important; } }
@media (max-width: 767px) {
  .top { padding: 8px 14px; min-height: 56px; }
  .top h1 { font-size: 18px; }
  .content { padding: 14px 12px calc(96px + env(safe-area-inset-bottom)); }
  html:not(.native) .top .btn-red.hide-xs { display: none !important; }
  .card-b { padding: 14px; }
}

/* the phone bottom bar stays the glass one */
.tabbar { background: rgba(22,23,28,.82) !important; border-top: 1px solid rgba(255,255,255,.08) !important; -webkit-backdrop-filter: blur(18px) saturate(140%) !important; backdrop-filter: blur(18px) saturate(140%) !important; }
.tabbar a, .tabbar button { color: rgba(243,244,246,.6) !important; }
.tabbar a.on { color: #fff !important; } .tabbar a.on svg { color: #F0313A; }
.tabbar a.fab { background: linear-gradient(135deg, #E31B23, #B5121A) !important; color: #fff !important; box-shadow: 0 6px 20px rgba(227,27,35,.45) !important; }
.kinsp-bar { background: #141414; color: #F5F5F4; border-bottom: 3px solid #E31B23; }
.kinsp-bar .btn { background: #262626; color: #fff; }

/* ---------- 5. Cards and sections ---------- */
.card, .widget, .dw:not(.dk-kpi):not(.dw-flat):not(.dw-hello), .dat, .stile, .kpi, .bcard, .tcard, .jobtile, .setstep, .fgate, .dcard, .sbox, .dp-card, .akpi, .asecs, .alaunch, .aadv, .qtile, .duestrip, .authcard, .dbr-w {
  background: var(--surface); border: 1px solid var(--sec-bd) !important; border-radius: 18px; box-shadow: var(--shadow); color: var(--ink);
}
.content .card, .content .widget, .content .dat { border: 1px solid var(--sec-bd) !important; }
.card .card, .card .sbox, .card .dcard, .dw .card { box-shadow: none; background: var(--surface-2); border-color: var(--line) !important; border-radius: 14px; }
.card-h { padding: 16px 20px; border-bottom: 1px solid var(--line); gap: 12px; }
.card-h h2 { font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 12px; }
.card-h h2 > .ic:first-child { width: 36px; height: 36px; padding: 9px; box-sizing: border-box; border-radius: 11px; background: var(--red-soft); color: var(--red); flex: none; }
.card-b { padding: 18px 20px; }
.card > .form-actions:last-child, .card-b > .form-actions:last-child, form.card-b > .form-actions:last-child { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
a.card:hover, a.dw:hover, a.widget:hover, a.dat:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.menu, .rowmenu .pop, .ss-list, .pk-sheet, .pfm-pop, .techdd .techpick, .dc-dl .dl-menu, .pausebox .reasons, .ac-list { background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow-lg); color: var(--ink); }
.menu a:hover { background: var(--fill-2); }
.note { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; }
.flash { border-radius: 14px; border: 1px solid transparent; border-left-width: 4px !important; }
.flash-ok { background: var(--pill-ok-b); color: var(--pill-ok-t); border-color: #16A34A !important; }
.flash-warn { background: var(--pill-warn-b); color: var(--pill-warn-t); border-color: #F59E0B !important; }
.flash-err { background: var(--pill-bad-b); color: var(--pill-bad-t); border-color: #EF4444 !important; }
.empty, .w-empty { color: var(--ink-3); }
.w-empty .ic { width: 46px; height: 46px; padding: 12px; border-radius: 50%; background: var(--surface-2); color: var(--d-green); box-sizing: border-box; margin-bottom: 4px; }
/* the step the car is on: black header, red number, red ring */
.fnow { border: 2px solid #E31B23 !important; box-shadow: 0 0 0 5px rgba(227,27,35,.08), var(--shadow) !important; overflow: hidden; }
.fnow > .card-h { background: #141414; border-bottom: 0; }
.fnow > .card-h h2 { color: #fff; }
.fnow > .card-h > .small, .fnow > .card-h .muted { color: #A3A3A3 !important; }
.fnow > .card-h .badge { background: #262626 !important; color: #F5F5F4 !important; }
.fnow > .card-h h2 > .ic:first-child { background: #262626; color: #F87171; }
.fnum { background: #E31B23; color: #fff; border-radius: 999px; height: 30px; min-width: 30px; padding: 0 9px; font: 800 13px var(--font); box-shadow: none; display: inline-grid; place-items: center; box-sizing: border-box; }
.fnow .form-actions { margin: 6px -20px -16px; padding: 14px 20px; background: var(--surface-2); border-top: 1px solid var(--line); }
.fnow-acts { background: var(--surface-2); }
.fnow-reedit { border-color: #F59E0B !important; box-shadow: 0 0 0 5px rgba(245,158,11,.12) !important; }

/* ---------- 6. Buttons, fields, pills ---------- */
.btn { border-radius: 12px; font-weight: 700; }
.btn:not(.btn-red):not(.btn-ok):not(.btn-dark):not(.btn-warn):not(.btn-blue):not(.btn-ghost):not(.btn-glass) { background: var(--surface); border: 1.5px solid var(--line-2); color: var(--ink); box-shadow: none; }
.btn:not(.btn-red):not(.btn-ok):not(.btn-dark):not(.btn-warn):not(.btn-blue):not(.btn-ghost):not(.btn-glass):hover { background: var(--surface-2); border-color: var(--ink-3); filter: none; }
.btn-red, .btn-primary { background: #E31B23 !important; border: 0 !important; color: #fff !important; box-shadow: none !important; }
.btn-red:hover:not(:disabled) { background: #C8141B !important; }
.btn-ok { background: #15803D !important; border-color: #15803D !important; color: #fff !important; box-shadow: none !important; }
.btn-warn { background: #B45309 !important; border-color: #B45309 !important; color: #fff !important; }
.btn-blue { background: #1D4ED8 !important; border-color: #1D4ED8 !important; color: #fff !important; }
.btn-dark { background: #141414 !important; color: #fff !important; border: 0 !important; }
:root[data-theme="dark"] .btn-dark { background: #F5F5F4 !important; color: #141414 !important; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--link); }
.btn-ghost:hover { background: var(--fill-2); }
.btn-glass { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.2); }
.btn.is-busy::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; margin-left: 6px; animation: gSpin .7s linear infinite; }
@keyframes gSpin { to { transform: rotate(360deg); } }
input[type=text], input[type=password], input[type=email], input[type=number], input[type=date], input[type=datetime-local], input[type=time], input[type=search], input[type=tel], input[type=month], select, textarea, .ss-field {
  background-color: var(--surface-2) !important; border: 1.5px solid var(--input-bd) !important; border-radius: 12px; color: var(--ink); min-height: 46px; }
textarea { min-height: 80px; }
input:hover:not(:focus):not([readonly]):not([type=checkbox]):not([type=radio]), select:hover:not(:focus), textarea:hover:not(:focus) { border-color: var(--ink-3) !important; }
input:focus, select:focus, textarea:focus, .ss-field:focus-within, .ss.open .ss-field { border-color: #E31B23 !important; box-shadow: 0 0 0 4px rgba(227,27,35,.12) !important; outline: none; background-color: var(--surface) !important; }
input[readonly] { color: var(--ink-3); }
.tbl input, .tbl select, .alines input, .alines select, .btn-sm { min-height: 38px; }
.dbhead .dper select { min-height: 0 !important; border: 0 !important; box-shadow: none !important; background-color: transparent !important; }
input[type=checkbox], input[type=radio] { accent-color: #E31B23; }
.badge, .dpill, .dnow, .dchip { border: 0 !important; border-radius: 999px; font-weight: 700; }
.badge { background: var(--pill-mute-b); color: var(--pill-mute-t); }
.b-work_done, .b-done, .b-paid, .b-ok, .b-ready, .b-approved, .dpill.ok, .dnow.ok { background: var(--pill-ok-b) !important; color: var(--pill-ok-t) !important; }
.b-paused, .b-partial, .b-unpaid, .b-pending, .b-waiting, .b-warn, .dpill.warn { background: var(--pill-warn-b) !important; color: var(--pill-warn-t) !important; }
.b-cancelled, .b-late, .b-overdue, .b-rejected, .dpill.bad { background: var(--pill-bad-b) !important; color: var(--pill-bad-t) !important; }
.b-in_progress, .b-running, .b-open, .dpill.act, .dnow.info { background: var(--pill-info-b) !important; color: var(--pill-info-t) !important; }
.b-invoiced { background: var(--violet-soft) !important; color: var(--violet) !important; }
.b-delivered { background: var(--pill-mute-b) !important; color: var(--pill-mute-t) !important; }
.dchip { color: color-mix(in srgb, var(--c) 62%, var(--ink)) !important; background: color-mix(in srgb, var(--c) 14%, transparent) !important; }
.chip { background: var(--surface); border: 1.5px solid var(--line-2); color: var(--ink-2); font-weight: 700; }
.chip.on { background: #141414; border-color: #141414; color: #fff; }
:root[data-theme="dark"] .chip.on { background: #F5F5F4; border-color: #F5F5F4; color: #141414; }
.seg { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; }
.seg button.on, .seg button[aria-pressed=true] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.pill { background: var(--surface); border: 1.5px solid var(--line-2); color: var(--ink); }
.tabs { border-bottom: 1px solid var(--line-2); }
.tabs a, .tabs button { color: var(--ink-2); font-weight: 700; }
.tabs .on, .tabs a.on { color: var(--ink); border-bottom-color: #E31B23; }
.dw-per { background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-3); border-radius: 999px; }
.dw-more { color: var(--link); }
.tag-lump { background: #141414; color: #fff; }
.idots .y { color: #141414; }
.nitem .nk { color: color-mix(in srgb, var(--nc, var(--ink-3)) 45%, var(--ink)); }

/* ---------- 7. Tables ---------- */
.tbl th, .dtbl th { background: var(--surface-2) !important; border-bottom: 1px solid var(--line) !important; }
.tbl td, .dtbl td { border-bottom: 1px solid var(--line) !important; }
.tbl tbody tr:hover td, .dtbl tr[data-href]:hover td { background: var(--surface-2) !important; }
.tbl tfoot td, .dtbl .dtot td { background: var(--surface-2) !important; }
@media (max-width: 767px) {
  .tbl-wrap { overflow-x: visible !important; }
  table.tbl.tcards, table.tbl.tcards tbody, table.tbl.tcards tfoot { display: block; width: 100%; }
  table.tbl.tcards thead { display: none; }
  table.tbl.tcards tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  table.tbl.tcards tr:last-child { border-bottom: 0; }
  table.tbl.tcards td { display: block; border: 0 !important; padding: 0 !important; min-width: 0; text-align: left !important; white-space: normal; background: none !important; overflow-wrap: anywhere; }
  table.tbl.tcards td[data-label]::before { content: attr(data-label); display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1px; }
  table.tbl.tcards td:first-child, table.tbl.tcards td[colspan], table.tbl.tcards td.wide { grid-column: 1 / -1; }
  table.tbl.tcards td:empty { display: none; }
  table.tbl.tcards td :is(.badge, .small, span, b, a) { white-space: normal; }
  .content, .main { overflow-x: clip; }
}

/* ---------- 8. Sheets, toasts, loading ---------- */
dialog.sheet, .ppdlg, .cf-sheet { background: var(--surface) !important; border: 1px solid var(--line-2) !important; box-shadow: var(--shadow-lg); border-radius: 22px; }
dialog.sheet::backdrop, .ppdlg::backdrop { background: rgba(10,10,10,.55); }
.toast { background: #141414 !important; color: #F5F5F4 !important; border: 1px solid #262626; border-left: 4px solid #22C55E; border-radius: 14px; box-shadow: 0 18px 44px rgba(0,0,0,.35); }
.toast-warn { border-left-color: #F59E0B; } .toast-err { border-left-color: #F0313A; }
@media (min-width: 761px) { .toasts { top: auto; bottom: 20px; right: 20px; } }
.loadbar { background: #E31B23; }
.skel, .skeleton { background: linear-gradient(90deg, var(--skel-a), var(--skel-b), var(--skel-a)); background-size: 200% 100%; border-radius: 8px; }
@media (prefers-reduced-motion: no-preference) { .skel, .skeleton { animation: gShimmer 1.3s linear infinite; } @keyframes gShimmer { to { background-position: -200% 0; } } }
@media (prefers-reduced-motion: no-preference) {
  .content > * { animation: cIn .3s var(--ease) backwards; }
  .content > *:nth-child(2) { animation-delay: 40ms; } .content > *:nth-child(3) { animation-delay: 80ms; } .content > *:nth-child(n+4) { animation-delay: 120ms; }
  [data-live].is-live-swap > * { animation: none !important; }
  @keyframes cIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* ---------- 9. Home: black banner, Find a car, the six car columns ---------- */
.dbhead { margin: -24px -28px 22px; border-radius: 0 !important; background: #141414 !important; border-bottom: 4px solid #E31B23; box-shadow: none !important; padding: 22px 28px 26px; align-items: flex-end; }
.dbhead-t h1 { font-size: 30px; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.dbhead-t p { color: #A3A3A3; }
.dper { background: #262626; border: 1px solid #333; border-radius: 999px; }
.dbhead .btn:not(.btn-red) { background: #262626 !important; color: #fff !important; border: 1px solid #333 !important; border-radius: 999px; }
.findcar { display: flex; align-items: center; gap: 10px; max-width: 600px; margin-top: 16px; height: 56px; border-radius: 14px; background: #fff; padding: 0 7px 0 12px; }
.findcar input[type=search] { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; min-height: 0; height: 44px; font: 500 15px var(--font); color: #141414; padding: 0 4px; }
.findcar .btn { height: 42px; min-height: 42px; border-radius: 10px; background: #141414 !important; color: #fff !important; border: 0 !important; padding: 0 18px; }
.findcar-pl { display: inline-flex; border: 1.5px solid #141414; border-radius: 6px; overflow: hidden; font-weight: 800; font-size: 13px; color: #141414; flex: none; }
.findcar-pl i { background: #141414; color: #fff; font-size: 7px; font-style: normal; writing-mode: vertical-rl; padding: 2px; letter-spacing: .1em; }
.findcar-pl b { padding: 2px 8px; }
@media (max-width: 600px) { .findcar-pl { display: none; } }
.lanes { margin-bottom: 22px; }
.lanes-h { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.lanes-h h2 { margin: 0; font-size: 18px; font-weight: 800; flex: 1; } .lanes-h h2 span { font-size: 13px; color: var(--ink-3); font-weight: 600; margin-left: 6px; }
.lanes-h a { font-weight: 700; font-size: 13px; }
.lanes-g { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.lane { background: var(--surface); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 8px; min-height: 150px; box-shadow: var(--shadow); border: 1px solid var(--sec-bd); }
.lane-h { display: flex; align-items: center; gap: 8px; } .lane-h i { width: 9px; height: 9px; border-radius: 50%; background: var(--lc); flex: none; } .lane-h b { flex: 1; font-size: 13.5px; } .lane-h span { font-size: 13px; font-weight: 800; color: var(--ink-2); }
.lane-car { display: block; border: 1px solid var(--line-2); border-radius: 12px; padding: 10px; color: var(--ink) !important; text-decoration: none !important; transition: border-color .15s, transform .15s; }
.lane-car:hover { border-color: var(--lc); transform: translateY(-1px); }
.lane-car.is-hold { border-style: dashed; }
.lane-car-t { display: block; font-weight: 700; font-size: 12.5px; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lane-car small { display: block; font-size: 11.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lane-more { font-size: 12.5px; font-weight: 700; } .lane-empty { font-size: 12.5px; color: var(--ink-3); padding: 8px 2px; }
.mplate { display: inline-flex; border: 1.5px solid #141414; border-radius: 5px; overflow: hidden; font-weight: 800; font-size: 12px; background: #fff; color: #141414; }
.mplate i { font-style: normal; padding: 1px 6px; border-right: 1.5px solid #141414; } .mplate b { padding: 1px 6px; }
@media (max-width: 1199px) { .lanes-g { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .lanes-g { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lane-car:nth-of-type(n+3) { display: none; } .dbhead { margin: -14px -12px 16px; padding: 18px 16px 20px; } .dbhead-t h1 { font-size: 24px; } }

/* figures: white cards with a tinted icon chip (no colour blocks) */
.dk-kpi { --kc: 29,78,216; background: var(--surface) !important; color: var(--ink) !important; border: 1px solid var(--sec-bd) !important; border-radius: 18px !important; box-shadow: var(--shadow) !important; }
.dk-kpi::after { display: none !important; }
.dk-kpi.tone-blue { --kc: 29,78,216; } .dk-kpi.tone-green { --kc: 21,128,61; } .dk-kpi.tone-indigo, .dk-kpi.tone-violet { --kc: 109,40,217; } .dk-kpi.tone-red { --kc: 185,28,28; } .dk-kpi.tone-orange { --kc: 180,83,9; } .dk-kpi.tone-teal { --kc: 15,118,110; } .dk-kpi.tone-gray { --kc: 64,64,64; }
.dk-ic { width: 40px; height: 40px; border-radius: 12px; background: rgba(var(--kc), .1); border: 0; }
.dk-ic .ic { color: rgb(var(--kc)); }
:root[data-theme="dark"] .dk-ic { background: rgba(var(--kc), .22); } :root[data-theme="dark"] .dk-ic .ic { color: #F5F5F4; }
.dk-l { color: var(--ink-3) !important; font-weight: 700; }
.dk-v { font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.dk-v small { color: var(--ink-3); font-size: 13px; opacity: 1; }
.dk-s { color: var(--ink-3) !important; }
.dk-kpi .dk-d { background: none; padding: 0; color: var(--ink-3) !important; font-size: 12.5px; }
.dk-kpi .dk-d.up { color: var(--green) !important; } .dk-kpi .dk-d.down { color: var(--red-ink) !important; }
:root:not([data-theme="dark"]) .dk-kpi .dk-d.down { color: #B91C1C !important; }
.dk-bar { background: var(--track); } .dk-bar i { background: rgb(var(--kc)); }
a.dk-kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover) !important; }
.dw-hello { background: #141414 !important; color: #fff; }
/* charts */
.dc-grid { stroke: var(--grid); } .dc-grid.z { stroke: var(--line-2); }
.dc-ax { fill: var(--axis); font: 500 11px var(--font); }
.dc-bar.past { opacity: .55; }
.dtip { position: fixed; z-index: 120; pointer-events: none; padding: 7px 11px; border-radius: 10px; background: #141414; color: #F5F5F4; font: 700 12.5px/1.35 var(--font); box-shadow: 0 10px 26px rgba(0,0,0,.35); white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); opacity: 0; transition: opacity .12s; }
.dtip.on { opacity: 1; }
.dd-track { stroke: var(--track); } .dd-seg { transition: stroke-width .2s, opacity .2s; } .dd-c { fill: var(--ink); } .dd-s { fill: var(--ink-3); }
.dd-leg li { border-radius: 8px; padding: 4px 6px; } .dd-leg li:hover { background: var(--fill-2); }
.ddonut:has(.dd-leg li:hover) .dd-seg { opacity: .45; }
.ddonut:has(li[data-i="0"]:hover) .dd-seg[data-i="0"], .ddonut:has(li[data-i="1"]:hover) .dd-seg[data-i="1"], .ddonut:has(li[data-i="2"]:hover) .dd-seg[data-i="2"], .ddonut:has(li[data-i="3"]:hover) .dd-seg[data-i="3"],
.ddonut:has(li[data-i="4"]:hover) .dd-seg[data-i="4"], .ddonut:has(li[data-i="5"]:hover) .dd-seg[data-i="5"], .ddonut:has(li[data-i="6"]:hover) .dd-seg[data-i="6"], .ddonut:has(li[data-i="7"]:hover) .dd-seg[data-i="7"] { opacity: 1; stroke-width: 22; }
.dhb-t, .dmeter, .dmini { background: var(--track); }
.dal { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; }
.dal:hover { border-color: var(--line-2); }
.dal.warn .dal-s { background: var(--pill-warn-b); color: var(--pill-warn-t); } .dal.crit .dal-s { background: var(--pill-bad-b); color: var(--pill-bad-t); } .dal.info .dal-s { background: var(--pill-info-b); color: var(--pill-info-t); }
.dal-s { border-radius: 999px; }
.dop { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; position: relative; overflow: hidden; padding-bottom: 14px; --tc: var(--d-indigo); }
.dop-i { background: color-mix(in srgb, var(--tc) 16%, transparent) !important; color: var(--tc) !important; border-radius: 10px; }
.dop.warn { --tc: var(--d-amber); } .dop.appr { --tc: var(--d-violet); } .dop.ok { --tc: var(--d-green); } .dop.done { --tc: var(--d-slate); } .dop.bad { --tc: var(--d-danger); }
.dop b { font-size: 22px; font-weight: 800; }
.dop-p { position: absolute; left: 12px; right: 12px; bottom: 7px; height: 3px; border-radius: 3px; background: var(--track); overflow: hidden; }
.dop-p::after { content: ""; display: block; height: 100%; width: var(--p, 0%); background: var(--tc); }
.dtile, .dtrio > div, .dstrip > div, .dkv.two > div, .dw .w-trio a { background: var(--surface-2); border: 1px solid var(--line); }
.dat { position: relative; overflow: hidden; border-top: 1px solid var(--sec-bd) !important; }
.dat::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--tc); }
.dat.tone-blue { --tc: var(--d-indigo); } .dat.tone-green { --tc: var(--d-green); } .dat.tone-orange { --tc: var(--d-amber); } .dat.tone-orange2 { --tc: var(--d-orange); } .dat.tone-red { --tc: var(--d-danger); }
.dagebar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--track); margin: 6px 0 12px; gap: 2px; }
.dagebar i { display: block; height: 100%; min-width: 3px; }
.dagekey { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--ink-2); margin-bottom: 8px; }
.dagekey span { display: inline-flex; align-items: center; gap: 6px; } .dagekey i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

/* ---------- 10. Job card: the locked design — one header card, a six-stage line, the step card, totals on the right ---------- */
#jflow.flow6 { display: grid !important; grid-template-columns: repeat(6, minmax(0, 1fr)) !important; gap: 0 !important; background: var(--surface); border: 1px solid var(--sec-bd); border-radius: 18px; box-shadow: var(--shadow); padding: 18px 20px 14px !important; overflow: visible !important; margin-bottom: 16px; }
#jflow .ftile { background: transparent !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; padding: 0 12px 0 0 !important; min-width: 0 !important; display: flex !important; flex-direction: column !important; gap: 8px; }
#jflow .ftile-h { display: flex !important; align-items: center !important; gap: 8px !important; padding: 0 !important; background: none !important; border: 0 !important; position: relative; min-height: 30px; }
#jflow .ftile-h::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: var(--line-2); order: 3; }
#jflow .ftile:last-child .ftile-h::after { background: transparent; }
#jflow .ftile.t-done .ftile-h::after { background: #16A34A; }
#jflow .ftile-h i { width: 30px !important; height: 30px !important; border-radius: 50% !important; display: grid !important; place-items: center !important; font: 800 13px var(--font) !important; font-style: normal !important; flex: none; order: 1;
  background: var(--surface) !important; color: var(--ink-3) !important; border: 1.5px solid var(--line-2) !important; box-shadow: none !important; }
#jflow .ftile.t-done .ftile-h i { background: #15803D !important; color: #fff !important; border-color: #15803D !important; }
#jflow .ftile.t-now .ftile-h i { background: #E31B23 !important; color: #fff !important; border-color: #E31B23 !important; box-shadow: 0 0 0 4px rgba(227,27,35,.16) !important; }
#jflow .ftile.t-hold .ftile-h i { background: #F59E0B !important; color: #141414 !important; border-color: #F59E0B !important; }
#jflow .ftile-h b { order: 2; font-size: 13.5px !important; font-weight: 800 !important; white-space: nowrap; color: var(--ink); }
#jflow .ftile-h small { position: absolute; left: 38px; top: 26px; font-size: 11px; color: var(--ink-3); }
#jflow .ftile-s { display: flex !important; flex-direction: column !important; gap: 2px !important; padding: 0 !important; overflow: visible !important; }
#jflow .fstep { display: grid !important; grid-template-columns: 26px minmax(0, 1fr) !important; grid-template-rows: auto auto; column-gap: 6px; align-items: center !important; text-align: left !important; min-height: 0 !important; width: auto !important;
  padding: 4px 6px !important; border-radius: 8px !important; border: 0 !important; background: transparent !important; box-shadow: none !important; color: var(--ink-2) !important; text-decoration: none !important; height: auto !important; gap: 0 2px !important; animation: none !important; justify-content: stretch !important; }
#jflow .fstep > i { grid-column: 1; } #jflow .fstep > b, #jflow .fstep > small { grid-column: 2; }
#jflow a.fstep:hover { background: var(--surface-2) !important; transform: none; }
#jflow .fstep i { grid-row: 1 / span 2; width: 24px !important; height: 18px !important; border-radius: 6px !important; font: 700 10.5px var(--font) !important; font-style: normal !important; display: grid !important; place-items: center !important;
  background: var(--surface-2) !important; color: var(--ink-3) !important; border: 0 !important; margin: 0 !important; }
#jflow .fstep b { font-size: 12.5px !important; font-weight: 600 !important; line-height: 1.25 !important; color: inherit; hyphens: manual; overflow-wrap: anywhere; }
#jflow .fstep small { font-size: 11px !important; color: var(--ink-3) !important; line-height: 1.2 !important; display: block; }
#jflow .fstep.f-done i { background: #15803D !important; color: #fff !important; }
#jflow .fstep.f-done b { color: var(--ink); }
#jflow .fstep.f-now { background: var(--red-soft) !important; color: var(--red-ink) !important; }
#jflow .fstep.f-now i { background: #E31B23 !important; color: #fff !important; }
#jflow .fstep.f-now b { color: var(--red-ink); font-weight: 800 !important; }
#jflow .fstep.f-now small { color: var(--red-ink) !important; font-weight: 700; }
#jflow .fstep.f-skip { opacity: .55; } #jflow .fstep.f-skip b { text-decoration: line-through; }
#jflow .fstep.f-hold i { background: #F59E0B !important; color: #141414 !important; }
#jflow .fstep.f-reedit { outline: 2px solid #F59E0B; }
@media (max-width: 1100px) { #jflow.flow6 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; row-gap: 16px !important; } #jflow .ftile:nth-child(3) .ftile-h::after { background: transparent; } }
@media (max-width: 640px) { #jflow.flow6 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; padding: 14px !important; } #jflow .ftile:nth-child(odd) .ftile-h::after { background: var(--line-2); } #jflow .ftile:nth-child(even) .ftile-h::after { background: transparent; } }
.jhead, .content > .card:first-child { border-radius: 18px; }
.proofchip { background: var(--pill-ok-b); color: var(--pill-ok-t); }
.prrcard { background: var(--surface-2); border-color: var(--line-2); border-radius: 16px; }
.proofcard { background: var(--surface-2); border-color: var(--line-2); }
.prooftile { background: var(--surface); }
.qcsec { background: var(--surface-2); }
.labwarn { background: var(--pill-warn-b); color: var(--pill-warn-t); }
.qb-a4wrap { border: 1px solid var(--sec-bd); }
.actionbar { position: sticky; bottom: 12px; margin: 16px 0 0 !important; padding: 10px 14px !important; border-radius: 18px !important; background: var(--surface) !important; border: 1px solid var(--sec-bd) !important; box-shadow: var(--shadow-lg) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
@media (max-width: 760px) { .actionbar { bottom: calc(84px + env(safe-area-inset-bottom)); } .native .actionbar { bottom: 10px; } }
:is(.card, .dw, .widget, .sbox, .dcard, .prrcard):has(details.rowmenu[open], details.usermenu[open]) { position: relative; z-index: 19; }
.actionbar:has(details[open]) { z-index: 19; }
/* 2.76.2: a bar that holds only the "•••" menu is a small round button at the right, not an empty white bar across the page */
.actionbar:not(:has(> .btn, > a, > form, > button, > .badge, > .iprog, > label, > div)) { position: static; width: fit-content; margin-left: auto !important; padding: 4px !important; border-radius: 999px !important; }
.actionbar:not(:has(> .btn, > a, > form, > button, > .badge, > .iprog, > label, > div)) > .grow { display: none; }
/* 2.76.2: a tablet on its side is short: the job card's bar ends the page there instead of floating over the step being worked on */
@media (orientation: landscape) and (max-height: 720px) { #jbar.actionbar { position: static; } }

/* ---------- 11. Receive Car ---------- */
.sno { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #E31B23; color: #fff; font: 800 13px/1 var(--font); font-style: normal; flex: none; }
input[name=plate].rcv-plate { height: 64px !important; min-height: 64px; border: 2.5px solid #141414 !important; border-left: 24px solid #141414 !important; border-radius: 10px !important; background: #fff !important; color: #141414 !important; font: 800 26px var(--font) !important; letter-spacing: .06em; padding: 0 16px !important; }
input[name=plate].rcv-plate:focus { box-shadow: 0 0 0 4px rgba(227,27,35,.18) !important; border-color: #141414 !important; }
input[name=plate].rcv-plate::placeholder { color: #A3A3A3 !important; font-weight: 700; }
.vincam, .camfield .vincam { width: 52px !important; height: 52px !important; border-radius: 14px !important; background: #141414 !important; color: #fff !important; border: 0; flex: none; }
:root[data-theme="dark"] .vincam { background: #F5F5F4 !important; color: #141414 !important; }
.camfield:has(input[name=plate]) .vincam { width: 64px !important; height: 64px !important; }
.camfield .vincam.ok { background: #15803D !important; color: #fff !important; }
.rcv-modes { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px !important; padding: 0; background: none; border: 0; }
.rcv-mode span { min-height: 58px !important; border-radius: 14px !important; border: 1.5px solid var(--line-2) !important; background: var(--surface-2) !important; color: var(--ink-2); font-weight: 700 !important; font-size: 14px !important; display: flex !important; align-items: center; justify-content: center; gap: 6px; }
.rcv-mode:hover span { border-color: var(--ink-3) !important; }
.rcv-mode input:checked + span { border: 2px solid #E31B23 !important; background: var(--red-soft) !important; color: var(--red-ink) !important; font-weight: 800 !important; }
.rcv-mode input:checked + span::before { content: "✓"; font-weight: 800; }
@media (max-width: 520px) { .rcv-modes { grid-template-columns: minmax(0, 1fr) !important; } }
.rcv-docs { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)) !important; }
@media (max-width: 520px) { .rcv-docs { grid-template-columns: minmax(0, 1fr) !important; } }
.rcv-car > summary { list-style: none; display: flex; align-items: center; gap: 8px; font-weight: 700; }
.rcv-car > summary::-webkit-details-marker { display: none; }
.rcv-car > summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .2s; margin: 0 4px; }
.rcv-car[open] > summary::before { transform: rotate(45deg); }
.rcv-go { min-height: 60px !important; border-radius: 16px !important; font-size: 18px !important; font-weight: 800 !important; background: #E31B23 !important; box-shadow: none !important; }
@media (max-width: 767px) { .rcv-go { position: sticky; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 15; box-shadow: 0 10px 24px -8px rgba(227,27,35,.5) !important; } .native .rcv-go { bottom: 12px; } }
.rcv-today { background: #141414 !important; color: #F5F5F4; border-color: #141414 !important; }
.rcv-today .card-h { border-bottom-color: #262626; }
.rcv-today .card-h .small.muted { background: #E31B23; color: #fff !important; font-weight: 800; padding: 1px 10px; border-radius: 999px; }
.rcv-today .tbl th { background: #1F1F1F !important; }
.plate { box-shadow: none !important; background: #fff !important; color: #111 !important; border-color: #141414 !important; }

/* ---------- 12. Technician: My Jobs ---------- */
.jobtile { border-radius: 20px !important; padding: 18px !important; display: flex; flex-direction: column; gap: 8px; }
.jobtile.running { border: 2px solid #E31B23 !important; box-shadow: 0 0 0 5px rgba(227,27,35,.08), var(--shadow) !important; }
.jobtile .what { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.jobtile .clock { background: #141414; color: #fff; border-radius: 16px; padding: 12px 16px; font: 800 40px/1.1 var(--font) !important; letter-spacing: -.01em; }
.jobtile.running .clock { color: #4ADE80; }
.jobtile .timerbtns { display: flex; gap: 10px; flex-wrap: wrap; }
.jobtile .timerbtns .btn { flex: 1 1 140px; min-height: 64px; border-radius: 16px; font-size: 17px; font-weight: 800; }
.jobtile .timerbtns .btn-dark { background: #15803D !important; color: #fff !important; }
.jobtile .btn-warn { background: #F59E0B !important; border-color: #F59E0B !important; color: #141414 !important; }
.jobtile .waitbtn { background: var(--pill-warn-b) !important; color: var(--pill-warn-t) !important; border: 0 !important; }
.jobtile .preason, .jobtile .waitpart { border-radius: 12px; }
.kpis .kpi { border-radius: 18px; }
/* the workshop tablet (kiosk) */
.kiosk { background: #0A0A0A; font-family: var(--font); }
.kiosk h1 { font-family: var(--font); font-weight: 800; }
.ktile { background: #171717; border: 1.5px solid #262626; border-radius: 22px; padding: 20px; }
.ktile.running { border: 2px solid #E31B23; box-shadow: 0 0 0 5px rgba(227,27,35,.15); }
.ktile.paused { border-color: #F59E0B; }
.kwhat { font: 800 22px var(--font); }
.kclock { font: 800 44px var(--font); background: #0A0A0A; border-radius: 16px; padding: 10px 14px; }
.ktile.running .kclock { color: #4ADE80; }
.kb { min-height: 68px; border-radius: 18px; font: 800 19px var(--font); }
.kb.go { background: #15803D; } .kb.hold { background: #F59E0B; color: #141414; } .kb.fin { background: #262626; border: 2px solid #3A3A3A; }
.kbig { border-radius: 20px; font: 800 24px var(--font); } .kbig.in { background: #15803D; } .kbig.out { background: #262626; }
.kbtn { border-radius: 14px; background: #1F1F1F; border-color: #333; font-family: var(--font); }
.kbtn-done { background: #E31B23; border-color: #E31B23; }
.ksec { font: 800 22px var(--font); }
.kempty { background: #171717; border-color: #333; border-radius: 20px; }
.kpill.on { background: rgba(240,49,58,.18); color: #FCA5A5; }

/* ---------- 13. Fixed light backgrounds from older versions: follow the theme ---------- */
.t-open .sic, .t-delivered .sic, .doct-im, .sbadge.s-none { background: var(--fill) !important; }
.gbadge, .forchip, .t-await .sic { background: var(--blue-soft) !important; color: var(--blue); }
.pp-add, .ainsight .btn, .src-box, .chip-cb span, .src-type[open] > form, .src-chip { background: var(--surface) !important; color: var(--ink); }
.pp-add:hover, .alertbar a, .qsentbar, .dp-docs i.x { background: var(--red-soft) !important; }
.reptbl .reptop th, .lnote.int, .fmiss { background: var(--amber-soft) !important; }
.lnote.inv { background: var(--green-soft) !important; }
.w-alerts { background: linear-gradient(160deg, var(--amber-soft), var(--red-soft)) !important; }
.dbr-w.k-kpi { background: var(--blue-soft) !important; }
.grpbar { background: var(--surface-2) !important; }
:root[data-theme="dark"] :is(.tbtn.go, .idots .g, .camfield .vincam.ok) { color: #06130B !important; }
:root[data-theme="dark"] .idots .r { color: #fff !important; background: #C81E25 !important; }
:root[data-theme="dark"] .sbadge.s-est { color: #FDE68A; } :root[data-theme="dark"] .sbadge.s-rep { color: #7DD3FC; } :root[data-theme="dark"] .sbadge.s-low { color: #FBBF24; }
:root[data-theme="dark"] .tb-st.free { color: #4ADE80; }
:root:not([data-theme="dark"]) .sbadge.s-est { color: #6B5400; } :root:not([data-theme="dark"]) .sbadge.s-rep { color: #075985; } :root:not([data-theme="dark"]) .sbadge.s-low { color: #92400E; }

/* ---------- 14. Login ---------- */
.authwrap { background: #141414 !important; }
.authcard { border-radius: 22px !important; border-top: 4px solid #E31B23 !important; }

/* ---------- 15. Print stays plain ---------- */
@media print {
  html, body { background: #fff !important; color: #000; }
  .side, .top, .tabbar, .lanes, .findcar { display: none !important; }
  .content { padding: 0; }
  .card, .dw, .widget { background: #fff !important; box-shadow: none !important; color: #000; }
}

/* ---------- 16. No blur anywhere but the phone bottom bar (speed) ---------- */
.side, .top, .actionbar, .btn-glass, .dc-side.has .dc-chg, dialog.sheet::backdrop, .ppdlg::backdrop, .cf-back { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }

/* ---------- 17. Workshop tablet: each car's job lines — the running line gets the big dark timer ---------- */
.kiosk .kjobs { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 18px; }
.kline { background: #1F1F1F; border: 1.5px solid #2A2A2A; border-radius: 16px; padding: 14px; gap: 10px; }
.kline.running { border: 2px solid #E31B23; box-shadow: 0 0 0 4px rgba(227,27,35,.14); }
.kline.paused { border-color: #F59E0B; }
.kl-t b { font: 800 18px var(--font); letter-spacing: 0; }
.kl-c { font: 800 26px var(--font); letter-spacing: -.01em; color: #A3A3A3; }
.kline.running .kl-c { flex-basis: 100%; order: 3; background: #0A0A0A; color: #4ADE80; font-size: 44px; line-height: 1.1; border-radius: 14px; padding: 10px 16px; }
.kl-b .kb { min-height: 60px; font-size: 18px; border-radius: 16px; font-family: var(--font); }
.kl-b .kb.fin { background: #15803D; border: 0; color: #fff; }
.kl-b .pb-kb > summary { min-height: 60px; font-size: 18px; border-radius: 16px; background: #F59E0B; color: #141414; }
.kmeta, .kveh { color: #A3A3A3; }
.ktile.kcar.running:has(.kline) { border: 1.5px solid #2A2A2A; box-shadow: none; }

/* ---------- 18. Contrast touches (WCAG AA) ---------- */
.rcv-today .tbl th, .rcv-today .muted, .rcv-today .tiny { color: #A3A3A3 !important; }
.fmp-st.r { color: var(--red-ink) !important; }
:root:not([data-theme="dark"]) .tb-st.free { color: #166534 !important; }
:root[data-theme="dark"] :is(.tq-nr, .setstep.on > i, .abadge, .irep-n) { background: #C8141B !important; color: #fff !important; }
.sidefoot { color: #A3A3A3 !important; border-top-color: #262626 !important; }
@media (max-width: 1199px) { .side nav a.on { background: #fff !important; color: #141414 !important; } }
:root[data-theme="dark"] :is([style*="color:var(--red)"], [style*="color: var(--red)"], .dbr-x) { color: var(--red-ink) !important; }

/* ---------- 19. 2.29 Inspection screens: one step at a time · two columns · tap the car ---------- */
.ilay-pick > summary { gap: 6px; }
.ilay-pick .pop { min-width: 300px; padding: 6px; }
.ilay-pick .pop form { margin: 0; }
.ilay-pick .pop button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; font: inherit; }
.ilay-pick .pop button:hover { background: var(--fill-2); }
.ilay-pick .pop button.on { background: var(--red-soft); }
.ilay-pick .pop button small { color: var(--ink-3); font-size: 12px; }
.ilay-set { border: 0; padding: 0; margin: 0; }
.ilay-set legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.ilay-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.ilay-opt { position: relative; display: block; cursor: pointer; }
.ilay-opt input { position: absolute; opacity: 0; inset: 0; }
.ilay-opt span { display: flex; flex-direction: column; gap: 4px; min-height: 84px; padding: 14px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--surface-2); }
.ilay-opt small { color: var(--ink-3); font-size: 12.5px; line-height: 1.35; }
.ilay-opt input:checked + span { border: 2px solid #E31B23; background: var(--red-soft); }
.ilay-opt input:focus-visible + span { box-shadow: var(--ring); }

/* the shared pieces */
.insp .ipane[hidden] { display: none !important; }
.insp .igo { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); font: 700 13.5px var(--font); cursor: pointer; white-space: nowrap; }
.insp .igo small { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.insp .igo:hover { border-color: var(--ink-3); }
.insp .igo.on { background: #141414; border-color: #141414; color: #fff; }
.insp .igo.on small { color: #A3A3A3; }
:root[data-theme="dark"] .insp .igo.on { background: #F5F5F4; border-color: #F5F5F4; color: #141414; } :root[data-theme="dark"] .insp .igo.on small { color: #525252; }
.insp .igo.is-done:not(.on) { border-color: #86EFAC; background: var(--pill-ok-b); color: var(--pill-ok-t); }
.insp .igo.is-done:not(.on) small { color: var(--pill-ok-t); }
.insp .igo.is-bad:not(.on) { border-color: var(--red-line); }
.insp .igo.is-bad:not(.on) small { color: var(--red-ink); font-weight: 800; }
.ibar .icnt { display: inline-flex; gap: 6px; }
.ibar .icnt span { font-size: 12.5px; font-weight: 800; border-radius: 999px; padding: 4px 11px; }
.ibar .icnt span[hidden] { display: none; }
.icnt-now { background: var(--pill-bad-b); color: var(--pill-bad-t); } .icnt-soon { background: var(--pill-warn-b); color: var(--pill-warn-t); }
.ifound-l { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ifound-l li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; }
.ifound-l .if-t { font-size: 11px; font-weight: 800; border-radius: 999px; padding: 2px 9px; text-transform: uppercase; letter-spacing: .04em; background: var(--pill-warn-b); color: var(--pill-warn-t); flex: none; }
.ifound-l .if-t.s-urgent, .ifound-l .if-t.s-req { background: var(--pill-bad-b); color: var(--pill-bad-t); }
.ifound-l .if-t .ic { display: none; }
.ifound p[hidden] { display: none; }

/* Design 1 — one step at a time */
.il-guided .ig-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 0 0 14px; }
.il-guided .ig-step { border-radius: 14px; border-style: dashed; justify-content: flex-start; min-height: 58px; padding: 8px 12px; text-align: left; white-space: normal; }
.il-guided .ig-step i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 800 13px var(--font); font-style: normal; background: var(--fill); color: var(--ink-2); flex: none; }
.il-guided .ig-step span { display: flex; flex-direction: column; min-width: 0; }
.il-guided .ig-step b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.il-guided .ig-step.on { border-style: solid; }
.il-guided .ig-step.on i { background: #E31B23; color: #fff; }
.il-guided .ig-step.is-done:not(.on) { border-style: solid; }
.il-guided .ig-step.is-done:not(.on) i { background: #15803D; color: #fff; font-size: 0; } .il-guided .ig-step.is-done:not(.on) i::after { content: "✓"; font-size: 14px; }
.il-guided .ig-step.is-bad:not(.on) { border-style: solid; } .il-guided .ig-step.is-bad:not(.on) i { background: #E31B23; color: #fff; }
.il-guided .ig-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.il-guided .ig-pane { background: var(--surface); border: 2px solid #E31B23; border-radius: 22px; box-shadow: 0 0 0 5px rgba(227,27,35,.08), var(--shadow); overflow: hidden; }
.il-guided .ig-ph { display: flex; align-items: center; gap: 14px; padding: 14px 20px; background: #141414; color: #fff; }
.il-guided .ig-ph b { display: block; font-size: 19px; font-weight: 800; } .il-guided .ig-ph small { color: #A3A3A3; font-size: 13px; }
.il-guided .ig-pane > .card { border: 0 !important; border-radius: 0; box-shadow: none; margin: 0; }
.il-guided .ig-pane > .card + .card { border-top: 1px solid var(--line) !important; }
.il-guided .ig-pane > .card > .card-h .irep-n { display: none; }
.il-guided .ig-nav { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.il-guided .ig-nav span { flex: 1; }
.il-guided .ig-nav .btn { min-height: 58px; border-radius: 16px; padding: 0 22px; font-size: 16px; }
.il-guided .ig-nav .btn[hidden] { display: none; }
.il-guided .ig-side { display: flex; flex-direction: column; gap: 12px; }
.il-guided .ig-side .insp-q { position: static; }
.il-guided .ig-says small { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; color: var(--ink-3); margin-bottom: 4px; }
@media (max-width: 1100px) { .il-guided .ig-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .il-guided .ig-steps { display: flex; overflow-x: auto; scrollbar-width: none; } .il-guided .ig-step { flex: none; width: auto; } .il-guided .ig-step span small { display: none; } .il-guided .ig-ph { padding: 12px 14px; } }

/* Design 2 — one page, two columns */
.il-two .i2-grid { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 16px; align-items: start; }
.il-two .i2-left { display: flex; flex-direction: column; gap: 12px; }
.il-two .i2-left > .card, .il-two .i2-left > section { margin: 0; }
.il-two .i2-left .insp-q { position: static; }
.il-two .i2-right { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 10px; }
.il-two .i2-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.il-two .i2-right .ipane > .card, .il-two .i2-right .ipane > section { margin: 0; }
@media (max-width: 1100px) { .il-two .i2-grid { grid-template-columns: minmax(0, 1fr); } .il-two .i2-right { position: static; order: -1; } .il-two .i2-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; } }
@media (max-width: 1199px) { .il-two .i2-right { top: 70px; } }

/* Design 6 — tap the car */
.il-car .ic-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 16px; align-items: start; }
.il-car .ic-map { position: sticky; top: 76px; }
.il-car .ic-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.il-car .ic-car { position: relative; width: 100%; max-width: 480px; aspect-ratio: 4 / 5; margin: 10px auto; }
.il-car .ic-body { position: absolute; left: 50%; top: 50%; height: 92%; transform: translate(-50%, -50%); }
.il-car .ic-shell { fill: var(--surface-2); stroke: var(--line-2); stroke-width: 3; }
.il-car .ic-glass { fill: var(--fill); stroke: var(--line-2); stroke-width: 2; }
.il-car .ic-roof { fill: none; stroke: var(--line-2); stroke-width: 2; }
.il-car .ic-tyre { fill: #141414; } :root[data-theme="dark"] .il-car .ic-tyre { fill: #525252; }
.il-car .ic-spot { position: absolute; transform: translate(-50%, -50%); padding: 0 14px 0 6px; box-shadow: 0 8px 20px -10px rgba(20,20,20,.4); z-index: 1; }
.il-car .ic-spot i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 800 12px var(--font); font-style: normal; background: var(--fill); color: var(--ink-2); flex: none; }
.il-car .ic-spot small { display: none; }
.il-car .ic-spot.on i { background: #E31B23; color: #fff; }
.il-car .ic-spot.is-done:not(.on) i { background: #15803D; color: #fff; }
.il-car .ic-spot.is-bad:not(.on) i { background: #E31B23; color: #fff; }
.il-car .ic-spot.is-bad:not(.on) { border-color: var(--red-line); }
.il-car .ic-key { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-top: 6px; }
.il-car .ic-key span { display: inline-flex; align-items: center; gap: 6px; }
.il-car .ic-key i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.il-car .ic-key .k-ok { background: #15803D; } .il-car .ic-key .k-bad { background: #E31B23; } .il-car .ic-key .k-todo { border: 2px solid var(--ink-3); box-sizing: border-box; }
.il-car .ic-panel { display: flex; flex-direction: column; gap: 12px; }
.il-car .ic-panel .ipane > .card, .il-car .ic-panel .ipane > section { margin: 0; }
.il-car .ic-panel .ipane { display: flex; flex-direction: column; gap: 12px; }
.il-car > .insp-q { margin-top: 16px; position: static; }
@media (max-width: 1100px) { .il-car .ic-grid { grid-template-columns: minmax(0, 1fr); } .il-car .ic-map { position: static; } .il-car .ic-car { max-width: 420px; } }
@media (max-width: 640px) {   /* a phone: the car's parts as buttons above the checks */
  .il-car .ic-car { aspect-ratio: auto; display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; max-width: none; }
  .il-car .ic-body { display: none; }
  .il-car .ic-spot { position: static; transform: none; box-shadow: none; }
}
/* the queue sits in the columns now */
.insp-split:has(> .insp-main > .insp.il-guided), .insp-split:has(> .insp-main > .insp.il-two), .insp-split:has(> .insp-main > .insp.il-car) { display: block; }
.il-guided .ig-pane:is([data-pane="listen"], [data-pane="problem"], [data-pane="findings"], [data-pane="manager"]) > .card > .card-h { display: none; }
.il-guided .ig-pane[data-pane="manager"] > .card > .isec > .card-h { border-top: 0; }
@media (max-width: 640px) {
  .il-guided .ig-nav span:not([data-next-label]) { display: none; }
  .il-guided .ig-nav .btn { flex: 1 1 0; min-width: 0; padding: 0 12px; font-size: 15px; }
  .il-guided .ig-nav .btn[data-step="-1"] { flex: 0 0 auto; }
  .il-guided .ig-nav [data-next-label] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
}

/* ---------- 20. 2.29 patch: the black title bar stays under the menu while scrolling (computers) ---------- */
@media (min-width: 1200px) {
  .top { position: sticky; top: var(--side-h, 60px); z-index: 44; }
  .il-two .i2-right, .il-car .ic-map { top: calc(var(--side-h, 60px) + var(--top-h, 64px) + 12px); }
}
@media (max-width: 1199px) { .il-two .i2-right, .il-car .ic-map { top: calc(var(--top-h, 64px) + 12px); } }

/* ---------- 21. 2.29 patch: each stage's steps in two columns (job card) ---------- */
#jflow .ftile-s:has(> :nth-child(3)) { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; grid-auto-flow: row !important; grid-auto-columns: auto !important; gap: 2px 4px !important; }
#jflow .ftile-s .fstep { min-width: 0 !important; flex: none !important; }
#jflow .ftile-s:has(> :nth-child(3)) .fstep { grid-template-columns: 22px minmax(0, 1fr) !important; column-gap: 5px; padding: 4px 4px !important; }
#jflow .ftile-s:has(> :nth-child(3)) .fstep i { width: 22px !important; height: 17px !important; font-size: 10px !important; }
#jflow .ftile-s:has(> :nth-child(3)) .fstep b { font-size: 12px !important; }
#jflow .ftile-s:has(> :nth-child(3)) .fstep small { font-size: 10.5px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ivready .ivr-h { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.ivready .ivr-h .ic { width: 18px; height: 18px; color: var(--red); }
.ivr-l { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.ivr-l li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.ivr-l li i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 800 12px var(--font); font-style: normal; flex: none; }
.ivr-l li.ok i { background: #15803D; color: #fff; } .ivr-l li.no i { background: #F59E0B; color: #141414; }
.ivr-l li span { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .ivr-l li small { color: var(--ink-3); font-size: 12.5px; }

/* ---------- 22. 2.29 patch: voice notes — a real player and a recorder with a live level meter ---------- */
.voicebox { border: 0 !important; background: var(--surface-2); border-radius: 16px; padding: 12px; gap: 10px; }
.irep-box .voicebox, .sbox > .voicebox { background: var(--surface-2); padding: 12px; }
.voicebox .vhead { gap: 10px; }
.voicebox .vhead > svg, .voicebox .vhead > .ic { width: 30px !important; height: 30px !important; padding: 7px; box-sizing: border-box; border-radius: 9px; background: var(--red-soft); color: var(--red) !important; flex: none; }
.voicebox .vhead b { font-size: 14.5px; }
.voicebox .vlist { gap: 8px; }
.voicebox .vitem { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 8px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.voicebox .vitem > .small { grid-column: 1; color: var(--ink-3); font-size: 12px; min-width: 0; }
.voicebox .vitem > .tbtn { grid-column: 2; grid-row: 1; width: 32px; height: 32px; }
.voicebox .vitem > .vp { grid-column: 1 / -1; }
.voicebox audio[hidden] { display: none !important; }
.vp { display: flex; align-items: center; gap: 10px; min-width: 0; }
.vp-b { width: 46px; height: 46px; border-radius: 50%; border: 0; background: #141414; color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; transition: transform .12s, background .15s; }
.vp-b:hover { transform: scale(1.05); } .vp-b:active { transform: scale(.96); }
.vp-b svg { width: 20px; height: 20px; fill: currentColor; } .vp-b .vp-pa { display: none; }
.vp.is-playing .vp-b { background: #E31B23; } .vp.is-playing .vp-b .vp-pl { display: none; } .vp.is-playing .vp-b .vp-pa { display: block; }
:root[data-theme="dark"] .vp-b { background: #F5F5F4; color: #141414; } :root[data-theme="dark"] .vp.is-playing .vp-b { background: #E31B23; color: #fff; }
.vp-w { flex: 1; min-width: 80px; height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 2px; cursor: pointer; border-radius: 6px; }
.vp-w i { flex: 0 1 4px; min-width: 2px; border-radius: 3px; background: var(--line-2); transition: background .15s; }
.vp-w i.on { background: #E31B23; }
.vp-w:focus-visible { box-shadow: var(--ring); }
.vp-t { font: 700 12.5px var(--font); color: var(--ink-2); white-space: nowrap; min-width: 40px; text-align: right; }
.vp-s { height: 30px; min-width: 40px; padding: 0 8px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink-2); font: 800 12px var(--font); cursor: pointer; flex: none; }
.voicebox .vrec { gap: 12px; }
.voicebox .vrec [data-vrec] { min-height: 48px; border-radius: 999px !important; padding: 0 20px 0 14px; gap: 8px; background: #E31B23 !important; color: #fff !important; border: 0 !important; font-weight: 800; }
.voicebox .vrec [data-vrec] svg, .voicebox .vrec [data-vrec] .ic { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: rgba(255,255,255,.2); box-sizing: content-box; }
.voicebox.vk-fm .vrec [data-vrec]:not(.btn-red) { background: #141414 !important; }
:root[data-theme="dark"] .voicebox.vk-fm .vrec [data-vrec]:not(.btn-red) { background: #F5F5F4 !important; color: #141414 !important; }
.voicebox.is-recording { background: var(--red-soft); box-shadow: inset 0 0 0 1.5px var(--red-line); }
.voicebox.is-recording .vrec [data-vrec] { background: #141414 !important; box-shadow: 0 0 0 0 rgba(227,27,35,.5); animation: vRing 1.4s infinite; }
:root[data-theme="dark"] .voicebox.is-recording .vrec [data-vrec] { background: #F5F5F4 !important; color: #141414 !important; }
@keyframes vRing { 0% { box-shadow: 0 0 0 0 rgba(227,27,35,.45); } 100% { box-shadow: 0 0 0 12px rgba(227,27,35,0); } }
@media (prefers-reduced-motion: reduce) { .voicebox.is-recording .vrec [data-vrec] { animation: none; } }
.voicebox .vtime { font: 800 20px var(--font) !important; color: var(--red-ink) !important; letter-spacing: -.01em; }
.vlevel { display: inline-flex; align-items: center; gap: 2px; height: 32px; flex: 1; min-width: 80px; max-width: 220px; }
.vlevel i { flex: 1; min-width: 2px; height: 12%; border-radius: 2px; background: #E31B23; transition: height .08s linear; }
.voicebox [data-vmsg] { color: var(--ink-3); }
.il-two .i2-right { position: static !important; }   /* 2.29: his queue sits under the checks (item 28), so the column scrolls with the page */
:root[data-theme="dark"] .jline.t-late b { color: var(--red-ink) !important; }

/* ---------- 23. 2.29 patch: driver — shown only when searched; the last 4 digits verified as typed ---------- */
.drvsel-hidden { display: none !important; }
.l4row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.eidok { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 13.5px; border-radius: 999px; padding: 6px 14px; }
.eidok[hidden] { display: none; }
.eidok.ok { background: var(--pill-ok-b); color: var(--pill-ok-t); }
.eidok.no { background: var(--pill-bad-b); color: var(--pill-bad-t); }
.l4row:has(.eidok.ok) input { border-color: #15803D !important; box-shadow: 0 0 0 4px rgba(21,128,61,.14) !important; }

/* ---------- 24. 2.30 accounting foundation: the 4-level chart, control accounts, posting rules, approvals, drafts ---------- */
.coawrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
@media (max-width: 1100px) { .coawrap { grid-template-columns: 1fr; } }
.coatree-card .card-h { flex-wrap: wrap; gap: 10px; }
.coatree-card .card-h .row { gap: 8px; flex-wrap: wrap; }
.asearch.sm { min-height: 38px; min-width: min(280px, 100%); }
.asearch.sm input { border: 0; outline: 0; background: transparent; min-width: 0; flex: 1; font: inherit; color: inherit; }
.coachips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 0 18px 12px; }
.coachips .chip { text-decoration: none; }
.coaexp { margin-left: auto; display: flex; gap: 4px; }
.coatree { border-top: 1px solid var(--line); }
.crow { display: grid; grid-template-columns: 28px minmax(0, 1fr) 30px minmax(96px, auto) 34px; align-items: center; gap: 6px; padding: 5px 14px 5px calc(10px + var(--l, 0) * 20px); border-bottom: 1px solid var(--line); min-height: 42px; }
.crow[hidden] { display: none; }
.crow.k-class { background: var(--surface-2); font-weight: 800; }
.crow.k-group { font-weight: 700; }
.crow.k-sub { font-weight: 650; color: var(--ink-2); }
.crow.sel { background: var(--red-soft); box-shadow: inset 3px 0 0 var(--red); }
.crow.off { opacity: .6; }
.ctog { width: 28px; height: 28px; border: 0; background: transparent; color: var(--ink-2); border-radius: 8px; cursor: pointer; font-size: 14px; display: grid; place-items: center; }
.ctog:hover { background: var(--surface-2); }
.crow[aria-expanded="false"] .ctog { transform: rotate(-90deg); }
.cname { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; color: inherit; text-decoration: none; padding: 4px 0; }
.cname:hover .cn { text-decoration: underline; }
.ccode { font-size: 13px; color: var(--ink-3); font-weight: 700; min-width: 44px; }
.ctag { font-size: 11px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.ctag.ctl { background: var(--blue-soft); color: var(--blue); border-color: transparent; }
.ctag.dep { background: var(--amber-soft); color: var(--amber); border-color: transparent; }
.cnb { font-size: 12px; font-weight: 700; color: var(--ink-3); text-align: center; }
.cbal { text-align: right; font-size: 14px; }
.cadd { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: var(--ink-2); }
.cadd:hover { background: var(--surface-2); color: var(--red); }
.cadd .ic { width: 16px; height: 16px; }
.coadet { position: sticky; top: calc(var(--top-h, 64px) + 12px); }
.coadet .card-b { display: flex; flex-direction: column; gap: 12px; }
.coah { margin: 0; font-size: 19px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.ctlbox { border: 1px solid var(--blue-soft); background: color-mix(in srgb, var(--blue-soft) 45%, var(--surface)); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.ctlbox > b { display: flex; gap: 6px; align-items: center; }
.ctlbox .ic { width: 16px; height: 16px; }
.t-bad { color: var(--red-ink); } .t-good { color: var(--green); }
.usedby { font-size: 13.5px; padding: 6px 10px; border-radius: 8px; background: var(--surface-2); margin-top: 4px; font-weight: 600; }
.usedby span { font-weight: 500; color: var(--ink-2); }
.coaacts { display: flex; flex-wrap: wrap; gap: 8px; }
.maps { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(560px, 100%), 1fr)); gap: 16px; align-items: start; }
.mapg { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.mapg h4 { margin: 0 0 2px; font-size: 15px; }
.maprow { display: grid; grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1.6fr) 74px; gap: 8px; align-items: center; }
.maprow > :nth-child(2) { min-width: 0; width: 100%; max-width: none; }
.maprow label { font-size: 14px; font-weight: 600; }
.maprow select { width: 100%; min-height: 40px; }
@media (max-width: 560px) { .maprow { grid-template-columns: 1fr; } .crow { grid-template-columns: 24px minmax(0, 1fr) 0 auto 30px; padding-left: calc(6px + var(--l, 0) * 12px); } .cnb { display: none; } }
.ahead-r .btn .abadge { margin-left: 2px; }
.achip-w .abadge { background: var(--red); border-color: var(--red); color: #fff; }
.apprusers { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 14px; max-height: 260px; overflow: auto; padding: 4px 2px; }
.apprset legend { font-weight: 700; margin-bottom: 6px; }
[data-adraft] .ic { width: 18px; height: 18px; }
.coaq .asearch input[type=search] { border: 0 !important; box-shadow: none !important; background: transparent !important; padding: 0 !important; min-height: 0 !important; height: 36px; outline: 0; }
.coaq .asearch:focus-within { border-color: var(--ink-2); }

/* ---------- 25. 2.31 payables & parts coming in: condition and catalog place per delivered line, split components ---------- */
.grnx { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.grnx select, .grnx input { min-height: 34px; font-size: 13px; padding: 4px 8px; flex: 1 1 140px; max-width: 100%; }
.grnx input { flex-basis: 220px; }
.grn-child td:first-child { padding-left: 28px; }
.lrow-bad td { opacity: .6; } .lrow-bad .grnx, .lrow-bad .grnx * { opacity: 1; }

/* ---------- 26. 2.33 collections ---------- */
.col .colnav { flex-wrap: wrap; }
.whys { display: flex; flex-wrap: wrap; gap: 4px; }
.ctag.hot { background: var(--red-soft); color: var(--red-ink); border-color: transparent; }
.colapp { display: grid; gap: 16px; max-width: 900px; }
.colday .card-b { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.colday h2 { margin: 4px 0 0; }
.coltasks { display: grid; gap: 10px; padding: 0 16px 16px; }
.coltask { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.coltask.done { opacity: .7; }
.ct-h { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.ct-h b { display: block; font-size: 16px; } .ct-h small { color: var(--ink-3); }
.ct-acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ct-in { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ct-photo { cursor: pointer; }
.ct-call summary { cursor: pointer; padding: 4px 0; }
.colout .grid { gap: 10px; }
.colvoice { border: 1px dashed var(--line-2); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.colvoice textarea { width: 100%; }
[data-dictate-go].is-recording { background: var(--red); color: #fff; border-color: var(--red); }
.colladder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 0 18px 12px; }
.colladder .lad { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; }
.colladder .lad.on { border-color: var(--red); background: var(--red-soft); }
.colladder .lad span { font-size: 13px; color: var(--ink-3); }
@media (max-width: 640px) { .colladder { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.colwhy { max-width: 220px; min-height: 34px; }
.colkpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); gap: 12px; padding: 0 16px 16px; }
.colkpi h3 { margin: 0 0 8px; }
.colpin { margin-top: 12px; align-items: end; }
.coltl { list-style: none; margin: 0; padding: 0 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.coltl li { border-left: 3px solid var(--line-2); padding: 4px 0 4px 12px; display: flex; flex-direction: column; gap: 3px; }
.coltl li.k-paid { border-color: var(--green); } .coltl li.k-flag, .coltl li.k-esc { border-color: var(--red); } .coltl li.k-ptp { border-color: var(--amber); } .coltl li.k-visit { border-color: var(--blue); }
.coltl .when { font-size: 12px; color: var(--ink-3); }
.coltl blockquote { margin: 4px 0; padding: 6px 10px; background: var(--surface-2); border-radius: 8px; font-size: 14px; }
.coltl audio { max-width: 100%; height: 36px; }
.agebar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 0 18px 12px; }
.ageb { border-radius: 12px; padding: 10px 12px; background: var(--surface-2); display: flex; flex-direction: column; }
.ageb span { font-size: 12.5px; color: var(--ink-3); font-weight: 600; } .ageb b { font-size: 18px; } .ageb i { font-style: normal; font-size: 12px; color: var(--ink-3); }
.ageb.b3, .ageb.b4 { background: var(--red-soft); }
@media (max-width: 640px) { .agebar { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.totrow td { border-top: 2px solid var(--line-2); }
.copymode select { width: 100%; }

/* ---------- 27. 2.35 job card progress A: six stage buttons + the open stage's steps ---------- */
#jflow.flowA { display: block !important; background: var(--surface); border: 1px solid var(--sec-bd); border-radius: 18px; box-shadow: var(--shadow); padding: 0 !important; overflow: hidden !important; margin-bottom: 16px; }
#jflow .jpa-stages { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; padding: 12px; }
#jflow .jpa-st { display: flex; flex-direction: column; gap: 8px; min-width: 0; text-align: left; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
#jflow .jpa-st:hover { border-color: var(--ink-3); }
#jflow .jpa-st:focus-visible { outline: 2px solid #E31B23; outline-offset: 2px; }
#jflow .jpa-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
#jflow .jpa-top i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; font: 800 12.5px var(--font); font-style: normal; background: var(--surface-2); color: var(--ink-2); }
#jflow .jpa-top b { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 800; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#jflow .jpa-top small { flex: none; font-size: 11.5px; font-weight: 700; color: var(--ink-3); }
#jflow .jpa-bar { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 3px; }
#jflow .jpa-bar i { height: 5px; border-radius: 3px; background: var(--line-2); }
#jflow .jpa-bar .sg-done { background: #15803D; } #jflow .jpa-bar .sg-now { background: #E31B23; } #jflow .jpa-bar .sg-hold { background: #F59E0B; } #jflow .jpa-bar .sg-skip { background: var(--line); }
#jflow .jpa-st.t-done { border-color: #BBF7D0; } #jflow .jpa-st.t-done .jpa-top i { background: #15803D; color: #fff; } #jflow .jpa-st.t-done .jpa-top small { color: #15803D; }
#jflow .jpa-st.t-now, #jflow .jpa-st.t-hold { background: #141414; border-color: #141414; color: #fff; }
#jflow .jpa-st.t-now .jpa-top i { background: #E31B23; color: #fff; } #jflow .jpa-st.t-hold .jpa-top i { background: #F59E0B; color: #141414; }
#jflow .jpa-st.t-now .jpa-top small, #jflow .jpa-st.t-hold .jpa-top small { color: #A3A3A3; }
#jflow .jpa-st.t-now .jpa-bar i:not([class*="sg-done"]):not(.sg-now), #jflow .jpa-st.t-hold .jpa-bar i:not(.sg-done):not(.sg-hold) { background: #404040; }
#jflow .jpa-st.t-skip { opacity: .6; }
#jflow .jpa-st.is-open:not(.t-now):not(.t-hold) { border-color: #141414; background: var(--surface-2); }
#jflow .jpa-st.is-open { box-shadow: 0 6px 16px -10px rgba(20,20,20,.5); }
#jflow .jpa-pane { display: flex !important; flex-direction: row !important; align-items: center; gap: 12px !important; padding: 12px 16px 14px !important; border-top: 1px solid var(--line) !important; background: var(--surface-2) !important; }
#jflow .jpa-pane[hidden] { display: none !important; }
#jflow .jpa-pane .ftile-h { flex: none; width: 150px; min-height: 0; flex-direction: column; align-items: flex-start !important; gap: 2px !important; }
#jflow .jpa-pane .ftile-h::after { display: none; }
#jflow .jpa-pane .ftile-h b { font-size: 12px !important; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); white-space: normal; }
#jflow .jpa-pane .ftile-h small { position: static; font-size: 11.5px; }
#jflow .jpa-pane.t-now .ftile-h small { color: #E31B23; font-weight: 700; }
#jflow .jpa-pane .ftile-s, #jflow .jpa-pane .ftile-s:has(> :nth-child(3)) { display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; gap: 8px !important; flex: 1; min-width: 0; }
#jflow .jpa-pane .fstep, #jflow .jpa-pane .ftile-s:has(> :nth-child(3)) .fstep { grid-template-columns: auto minmax(0, 1fr) !important; column-gap: 10px !important; padding: 7px 14px 7px 8px !important; border-radius: 12px !important; border: 1.5px solid var(--line) !important; background: var(--surface) !important; min-width: 0; max-width: 100%; }
#jflow .jpa-pane .fstep i, #jflow .jpa-pane .ftile-s:has(> :nth-child(3)) .fstep i { min-width: 30px; width: auto !important; height: 24px !important; padding: 0 6px; border-radius: 7px !important; font-size: 11.5px !important; font-weight: 800 !important; }
#jflow .jpa-pane .fstep b, #jflow .jpa-pane .ftile-s:has(> :nth-child(3)) .fstep b { font-size: 13.5px !important; white-space: nowrap; }
#jflow .jpa-pane .fstep small, #jflow .jpa-pane .ftile-s:has(> :nth-child(3)) .fstep small { font-size: 12px !important; }
#jflow .jpa-pane .fstep.f-now { border-color: #E31B23 !important; background: var(--red-soft) !important; }
#jflow .jpa-pane .fstep.f-hold { border-color: #F59E0B !important; }
#jflow .jpa-pane a.fstep:hover { border-color: var(--ink-3) !important; }
@media (max-width: 1100px) { #jflow .jpa-stages { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  #jflow .jpa-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 10px; }
  #jflow .jpa-st { padding: 9px 10px; }
  #jflow .jpa-pane { flex-direction: column !important; align-items: stretch; padding: 12px !important; }
  #jflow .jpa-pane .ftile-h { width: auto; }
  #jflow .jpa-pane .fstep b { white-space: normal; }
}

/* ---------- 28. 2.35 driver: one name box like the customer's (matches drop under it) ---------- */
[data-drvpickbox] { position: relative; max-width: 720px; }
[data-drvpickbox] .drvpick[hidden] { display: none !important; }
[data-drvpickbox] .drvpick { margin-top: 6px; border: 1px solid var(--line); border-radius: 14px; padding: 6px; background: var(--surface); box-shadow: 0 12px 28px -16px rgba(20,20,20,.35); }
[data-drvpickbox] .custstate:empty { display: none; }

/* ---------- 29. 2.36 Parts Rates, design A: one compact card per part ---------- */
.chip-cb input:checked + span { background: var(--ink) !important; color: var(--surface) !important; border-color: var(--ink) !important; }   /* the part names under "Ask suppliers" showed blank */
.prrlist { display: grid; gap: 12px; }
.prrcard.prA { background: var(--surface) !important; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; }
.prA .pa-top { display: flex; align-items: center; gap: 14px; padding: 12px 14px; flex-wrap: wrap; }
.prA .pa-name { flex: 1 1 260px; min-width: 0; }
.prA .pa-name > b { font-size: 15.5px; }
.prA .pa-qty { font-size: 13px; color: var(--ink-3); }
.prA .pa-sub:empty { display: none; }
.prA .pa-stock { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.prA .pa-act { display: flex; align-items: center; gap: 10px; }
.prA .pa-act select { min-height: 38px; min-width: 150px; border-radius: 10px; }
.prA .pact-h { display: inline-flex; align-items: center; gap: 6px; }
.prA .pact-h input { width: 76px; min-height: 38px; text-align: right; }
.prA .pa-boxes { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.15fr) minmax(140px, .65fr); gap: 10px; padding: 12px 14px 14px; background: var(--surface-2); border-top: 1px solid var(--line); }
.prA .pa-box { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.prA .pa-box .pl { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.prA .pa-box input[type=text] { width: 100%; min-height: 38px; border-radius: 9px; }
.prA .pa-box .num-in { text-align: right; font-weight: 700; font-size: 15px; }
.prA .pa-two { display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: 8px; }
.prA .pa-two select { min-height: 38px; width: 100%; border-radius: 9px; }
.prA .pa-hist summary { cursor: pointer; list-style: none; color: var(--ink-2); } .prA .pa-hist summary::-webkit-details-marker { display: none; }
.prA .pa-hist .tr-list { margin-top: 6px; }
.prA .pa-use { align-self: flex-start; color: var(--red-ink, #B91C1C); font-weight: 700; }
.prA .pa-saleh { display: flex; align-items: center; gap: 8px; }
.prA .pa-saleh .pl { flex: 1; }
.prA .pa-est { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.prA .pa-est input { width: 30px; height: 18px; margin: 0; appearance: none; -webkit-appearance: none; border-radius: 999px; background: var(--line-2); position: relative; cursor: pointer; transition: background .15s; flex: none; }
.prA .pa-est input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.prA .pa-est input:checked { background: #141414; } .prA .pa-est input:checked::after { transform: translateX(12px); }
.prA .pa-est input:focus-visible { outline: 2px solid #E31B23; outline-offset: 2px; }
.prA .pa-est[hidden] { display: none; }
.prA .pa-sale.low { border-color: #E31B23; box-shadow: 0 0 0 1px #E31B23 inset; }
.prA .pa-line { background: #141414; color: #fff; border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 4px; }
.prA .pa-line small { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #A3A3A3; }
.prA .pa-line b { font-size: 21px; color: #fff; }
.prA .pa-line [data-margin] { color: #A3A3A3; }
@media (max-width: 1100px) { .prA .pa-boxes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .prA .pa-boxes { grid-template-columns: minmax(0, 1fr); } .prA .pa-act { width: 100%; } .prA .pa-act select { flex: 1; } .prA .pa-line { flex-direction: row; justify-content: space-between; align-items: center; } }
.prA [hidden] { display: none !important; }

/* ---------- 30. 2.37 receiving: "It's a kit" and what is inside ---------- */
.grnx { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.kit-tick { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; cursor: pointer; }
.kitbox { margin-top: 8px; padding: 10px 12px; border: 1px dashed var(--line-2); border-radius: 12px; background: var(--surface-2); display: grid; gap: 6px; }
.kitbox[hidden] { display: none; }
.kit-h { font-size: 12.5px; font-weight: 800; } .kit-h small { font-weight: 500; color: var(--ink-3); }
.kit-row { display: grid; grid-template-columns: minmax(0, 1fr) 80px 32px; gap: 6px; align-items: center; margin-bottom: 4px; }
.kit-row input { min-height: 36px; }

/* ---------- 31. 2.38 parts issue: the store's screen, the technician's "Parts for You" ---------- */
.pfm-list { display: grid; gap: 8px; }
.pfm-card { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.pfm-t { flex: 1 1 220px; min-width: 0; }
.pfm-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pfm-no > summary { list-style: none; } .pfm-no > summary::-webkit-details-marker { display: none; }
.pfm-nobox { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.pfm-nobox select, .pfm-nobox input { min-height: 34px; }
.pfm-inline { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 0 4px; flex-wrap: wrap; }
.pfm-inline select { min-height: 32px; font-size: 12.5px; }
.iss-car { border-top: 1px solid var(--line); padding: 12px 18px; display: grid; gap: 8px; }
.iss-carh { display: flex; gap: 10px; align-items: baseline; }
.iss-line { display: grid; grid-template-columns: minmax(0, 1fr) 110px minmax(160px, 220px); gap: 10px; align-items: end; }
.iss-on { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.iss-go { display: flex; justify-content: flex-end; }
@media (max-width: 640px) { .iss-line { grid-template-columns: 1fr 1fr; } .iss-on { grid-column: 1 / -1; } }
.kiosk .pfm-card, .kpanel .pfm-card { background: #1b1c20; border-color: #2a2b31; color: #fff; }

/* 2.44: sign-in page — logo and "Garage ERP · Sign in" centred under each other on every screen
   (the computer top-menu rules for .brand turned it into a row with the text squeezed on the right) */
.authcard .brand { display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; gap: 10px !important;
  height: auto !important; width: auto !important; min-width: 0 !important; padding: 0 0 22px !important; margin: 0 0 22px !important; border: 0 !important; border-bottom: 1px solid #ECECE8 !important; background: none !important; text-align: center; }
.authcard .brand img.authlogo { width: 100% !important; max-width: 260px !important; height: auto !important; margin: 0 auto !important; display: block; }
.authcard .brand .authsub { display: block; margin: 0 !important; white-space: nowrap; font-size: 12px; font-weight: 700; letter-spacing: .14em; color: #8A8A85; }

/* ===== 2.76.2: tablets in the app, upright and on the side (761–1199 px: no side menu, no bottom bar) ===== */
/* three figure cards stay three in a row (they fell to two with the third alone underneath) */
@media (min-width: 600px) { .grid.g3.kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 860px) and (max-width: 1000px) { .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* the six status tiles above a list: six in a row, or three and three: never five and one */
@media (min-width: 761px) { .pipeline:has(> :nth-child(6):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 980px) { .pipeline:has(> :nth-child(6):last-child) { grid-template-columns: repeat(6, minmax(0, 1fr)); } .pipeline:has(> :nth-child(6):last-child) .stile { padding: 12px; gap: 10px; } }
/* "where every car is": an empty lane is short, and the last lane alone on its row takes the full row */
.lane:has(> .lane-empty) { min-height: 0; }
@media (min-width: 761px) and (max-width: 1199px) { .lanes-g > .lane:last-child:nth-child(3n + 1) { grid-column: 1 / -1; } }
/* the full-screen call to the technician hides the page behind it completely (its words showed through) */
.icall { background: rgba(10, 10, 14, .985) !important; }
/* a read-only value with its note: the note goes on its own line ("CashChanged by Finance…") */
div.f > b + small { display: block; color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }
/* document numbers never break in the middle ("AZ- / INV- / 00001") */
.tbl b.mono, .tbl td.mono, .atable b.mono { white-space: nowrap; }
/* a date and a time side by side stay inside their column (the time ran under the next field) */
.dtpair > input { min-width: 0; width: 100%; }
/* the "+" inside the part search box: the words stop before it */
.ppwrap input[data-partpick] { padding-right: 46px !important; }
/* My Jobs on a tablet on its side: the three figures are lower, so the job and its Start button fit on the first screen */
@media (orientation: landscape) and (max-height: 720px) {
  #myjobs .kpis { gap: 12px; margin-bottom: 12px !important; }
  #myjobs .kpis > .kpi { padding: 10px 16px !important; }
  #myjobs .kpis > .kpi .val { font-size: 24px !important; line-height: 1.15 !important; }
  #myjobs .jobtile { padding: 14px !important; gap: 6px; }
  #myjobs .jobtile .what { font-size: 18px; margin-top: 4px; }
  #myjobs .jobtile .clock { font-size: 32px !important; padding: 8px 14px; }
}
/* ----- 2.76.2: phone and small tablet upright (760 px and narrower) ----- */
@media (max-width: 760px) {
  /* job card lines without prices (floor manager, technician): the technicians go under the line, not above it, and the line number has its room */
  .items tr { grid-template-columns: auto minmax(0, 1fr) auto; }
  .items td.techcell { grid-column: 1 / -1 !important; grid-row: 3 !important; }
  /* the inspection's KM box shows the whole reading ("21,22" was cut) */
  .insp .ihead .ikm input { width: 100% !important; max-width: 240px; }
}

/* ===== 2.76.3 ===== */
/* Home: the car sections are as many columns as this role has sections (computer); four to a row on a tablet on its side */
@media (min-width: 1200px) { .lanes-g.lanes-g7 { grid-template-columns: repeat(var(--ln, 7), minmax(0, 1fr)); } }
@media (min-width: 900px) and (max-width: 1199px) { .lanes-g { grid-template-columns: repeat(4, minmax(0, 1fr)); } .lanes-g > .lane:last-child:nth-child(3n + 1) { grid-column: auto; } .lanes-g > .lane:last-child:nth-child(4n + 1) { grid-column: 1 / -1; } }
/* the plain "Choose File" button looks like the other buttons */
input[type=file] { font: inherit; font-size: 13.5px; color: var(--ink-2); max-width: 100%; }
input[type=file]::file-selector-button { font: 600 13.5px var(--font); color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 14px; margin-right: 10px; cursor: pointer; }
/* Accounting figures on a narrow screen: the last card alone on its row takes the full row */
@media (max-width: 760px) { .akpis > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
/* a tablet on its side is short: the Save bar of a form ends the page instead of covering a line of it (the inspection keeps its bar) */
@media (orientation: landscape) and (max-height: 720px) { .actionbar:not(.ibar) { position: static; } }
/* a time that can be typed (phones and tablets): a box to type in and a clock button for the picker */
.ttwrap { display: flex !important; flex-wrap: nowrap; gap: 6px; align-items: stretch; min-width: 0; position: relative; }
.ttwrap > input.tt-txt { flex: 1 1 0 !important; min-width: 58px !important; width: auto !important; margin: 0 !important; }
.ttwrap > input.tt-date { flex: 1.7 1 0 !important; min-width: 0 !important; width: auto !important; margin: 0 !important; }
.ttwrap > .tt-pick { flex: none; width: 44px; min-height: 44px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); color: var(--ink-2); display: grid; place-items: center; cursor: pointer; padding: 0; margin: 0; }
.ttwrap > .tt-pick svg { width: 18px; height: 18px; }
.ttwrap > .tt-native { position: absolute; right: 0; bottom: 0; width: 44px; height: 100%; opacity: 0; pointer-events: none; padding: 0; border: 0; min-width: 0; }
.ttwrap > input.tt-bad { border-color: var(--red) !important; }
.ttwrap > .tt-ap { font: 700 12.5px var(--font); color: var(--ink); }
.dtpair:has(.ttwrap) { grid-template-columns: minmax(0, 1fr) !important; }

/* ===== 2.77: consumables ===== */
.cons277 { margin-top: 16px; }
.cons-in { display: inline-flex; align-items: center; gap: 6px; }
.cons-in input { width: 96px; text-align: right; font-variant-numeric: tabular-nums; }
.cons-in em { font-style: normal; color: var(--ink-3); font-size: 12.5px; min-width: 1.6em; text-align: left; }
.cons-h3 { font-size: 14px; margin: 16px 0 8px; }
.cons-add { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.cons-add > summary { cursor: pointer; font-weight: 600; font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; }
.cons-addf, .cons-filter { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; align-items: end; margin-top: 12px; }
.cons-filter { margin-top: 0; }
@media (max-width: 760px) { .cons-in input { width: 120px; } }

/* ===== 2.78: card payments ===== */
.card278 .cday { border: 1px solid var(--line); border-radius: 12px; margin-top: 10px; overflow: hidden; }
.card278 .cday > summary { display: grid; grid-template-columns: minmax(150px, 1.4fr) repeat(3, minmax(96px, 1fr)) auto; gap: 12px; align-items: center; padding: 10px 14px; cursor: pointer; list-style: none; }
.card278 .cday > summary::-webkit-details-marker { display: none; }
.card278 .cday[open] > summary { border-bottom: 1px solid var(--line); background: var(--soft, #f6f5f4); }
.card278 .cday small { display: block; color: var(--ink-3); font-size: 12px; font-weight: 500; }
.card278 .cd-n { text-align: right; }
.card278 .cday .tbl-wrap { border: 0; border-radius: 0; }
.cset278 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
@media (max-width: 760px) { .card278 .cday > summary { grid-template-columns: 1fr 1fr; } .card278 .cd-d { grid-column: 1 / -1; } .card278 .cd-n { text-align: left; } }

/* ===== 2.79: over the LPO, estimation lines, outstanding statements, module ticks ===== */
.v279-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.v279-figs > div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.v279-figs small { display: block; color: var(--ink-3); font-size: 12px; }
.v279-figs b { font-size: 17px; }
.v279-est input, .v279-est select { width: 100%; min-width: 0; }
.v279-est tfoot td { border-top: 2px solid var(--line); padding-top: 8px; }
.v279-mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-top: 10px; }
.o279 .o279-h { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0 8px; padding-bottom: 6px; border-bottom: 2px solid var(--line); }
.o279 .o279-g { margin: 0 0 14px; }
.o279 .o279-gh { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 10px 0 6px; }
.o279 .o279-grand { text-align: right; font-size: 17px; margin: 8px 0 0; }
.o279 td.r, .o279 th.r { text-align: right; }
@media (max-width: 760px) { .v279-figs { grid-template-columns: 1fr; } }

/* ===== 2.79.1: alignment ===== */
/* a row of fields: every box on one line, whatever the length of its label or hint */
/* (only where no field of the row has a hint or a link under its box: there the boxes already start together) */
.grid:not(:has(> .f > :is(input, select, textarea) ~ *, > .f > div:has(input, select) ~ *, > .f textarea, > .f .dcards, > .f table)) > .f { align-self: end; }
/* Accounting forms: the hint sits under its box, so two fields side by side start their boxes on the same line */
.afield > label { display: flex; flex-direction: column; }
.afield > label > .ahelp { order: 5; margin: 6px 0 0; }
.alines td:nth-child(2) select { min-width: 168px; }
/* Receive My Car: the car fields on one line; the Received Today table lines up with the card's heading */
.rcv-car .grid > .f { align-self: end; }
/* the white rows on the dark "Cars Leaving Today" card keep dark text */
.rcv-today .rcv-outrow, .rcv-today .rcv-outrow .small { color: #171717 !important; }
.rcv-today .rcv-outrow .muted { color: #6B6B6B !important; }
.rcv-today .tbl th:first-child, .rcv-today .tbl td:first-child { padding-left: 20px; }
.rcv-today .tbl th:last-child, .rcv-today .tbl td:last-child { padding-right: 20px; }
.rcv-today .tbl tr:last-child td { border-bottom: 0; padding-bottom: 14px; }
.v256-vshort { margin: 6px 0 10px; }
/* the boxes of one row are the same height (a dropdown beside a typed box, on a tablet too) */
.afield input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]), .afield select, .afield select.pk-sel { min-height: 46px !important; }
.v252-plate select, .v252-plate select.pk-sel { min-height: 50px !important; }
/* tablet: in a row of three or four fields where a hint sits under a box, a label may need two lines: every label of the row keeps room for two */
@media (max-width: 1100px) { :is(.grid.g3, .grid.g4):has(> .f > :is(input, select, textarea) ~ *, > .f > div:has(input, select) ~ *) > .f > span:first-child { display: block; min-height: 2.7em; } }

/* 2.79.2: the last statement upload on Reconciliation */
.scan-last { margin-bottom: 16px; }
.scan-figs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; padding: 4px 18px 16px; }
.scan-figs > div { background: var(--bg, #f6f5f3); border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.scan-figs small { color: #555; font-weight: 600; }
.scan-figs b { font-size: 18px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.scan-figs b.scan-bad { color: #b3121a; }
.scan-last .flash { margin: 0 18px 14px; }
.scan-skip { margin: 0 18px 16px; }
.scan-skip summary { cursor: pointer; font-weight: 600; padding: 8px 0; min-height: 44px; display: flex; align-items: center; }
.scan-skip td { overflow-wrap: anywhere; }
@media (max-width: 900px) { .scan-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.scan-skip table { width: 100%; }
.scan-skip th, .scan-skip td { padding: 8px 10px; text-align: left; vertical-align: top; }
.scan-skip th:first-child, .scan-skip td:first-child { width: 110px; }

/* 2.79.3: lists with several buttons per line on a phone / upright tablet (Reconciliation). The buttons covered the line:
   the button cell was pinned to the right edge and was wider than the screen. Such a line is now a small card:
   what it is and the amount on top, its buttons wrapped underneath. Lists with one or two buttons stay as they were. */
@media (max-width: 900px) {
  .atable:has(td.at-acts > :nth-child(3)) { display: block; min-width: 0 !important; width: 100%; }
  .atable:has(td.at-acts > :nth-child(3)) thead { display: none; }
  .atable:has(td.at-acts > :nth-child(3)) tbody { display: block; }
  .atable:has(td.at-acts > :nth-child(3)) tbody tr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line, #e6e3e0); }
  .atable:has(td.at-acts > :nth-child(3)) tbody td { display: block; padding: 0; border: 0; width: auto; }
  .atable:has(td.at-acts > :nth-child(3)) tbody td:first-child { flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; }
  .atable:has(td.at-acts > :nth-child(3)) tbody td:empty { display: none; }
  .atable:has(td.at-acts > :nth-child(3)) tbody td.at-acts { flex: 0 0 100%; position: static; box-shadow: none; background: none; white-space: normal; text-align: left; display: flex; flex-wrap: wrap; gap: 8px; }
  .atable:has(td.at-acts > :nth-child(3)) tbody td.at-acts form, .atable:has(td.at-acts > :nth-child(3)) tbody td.at-acts .btn { margin-left: 0; }
  .atable:has(td.at-acts > :nth-child(3)) tbody td.at-acts .btn { min-height: 44px; }
}
@media (max-width: 900px) { .atable:has(td.at-acts > :nth-child(3)) tbody td:nth-child(2):not(.at-amt):not(.at-acts), .atable:has(td.at-acts > :nth-child(3)) tbody td:nth-child(3):not(.at-amt):not(.at-acts) { display: none; } }

/* 2.80.0: remarks from the floor, no-plate badge, customer's parts, follow-ups, outsource, steps & times */
.v280-remark{display:flex;gap:10px;align-items:flex-start;background:#FFF7E0;border:1px solid #F0D48A;border-radius:12px;padding:10px 14px;margin:0 0 12px}
.v280-remark small{color:#6B4A00;font-weight:600}.v280-remark p{margin:2px 0 0;font-size:15px;color:#1A1A1A}
.v280-rem textarea{min-height:56px}
.v280-noex{min-height:46px;display:flex;align-items:center;padding:0 12px;border-radius:10px;background:#F1EFEC;color:#3A3A3A;font-size:14px}
.v280-np{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;border:2px dashed #1A1A1A;border-radius:8px;background:#fff;color:#1A1A1A;padding:3px 10px;line-height:1.1;min-width:92px}
.v280-np-t{font-size:9px;font-weight:800;letter-spacing:.08em}.v280-np-v{font-size:14px;font-weight:800;font-family:ui-monospace,Menlo,monospace}
.v280-np.sm{padding:2px 7px;min-width:74px}.v280-np.sm .v280-np-v{font-size:12px}.v280-np.lg .v280-np-v{font-size:18px}
.v280-nptick{display:flex;gap:10px;align-items:flex-start;margin:0 0 10px;min-height:44px}
.v280-list{list-style:none;margin:0;padding:0}.v280-list li{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-top:1px solid #EFECE8;flex-wrap:wrap}
.v280-list li:first-child{border-top:0}.v280-list small{display:block;color:#555;margin-top:2px}
.v280-cpf,.v280-fuf{display:grid;grid-template-columns:2fr 90px 110px 150px 2fr auto;gap:10px;align-items:end}
.v280-fuf{grid-template-columns:140px 1fr 170px auto}
.v280-cpf .f,.v280-fuf .f{margin:0}
.v280-fu{border:1px solid #E7E3DF;border-radius:14px;padding:12px 14px;background:#fff}.v280-fu-h{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:10px}.v280-late{color:#B3121A}
.v280-out{display:flex;flex-direction:column;gap:6px;align-items:flex-start}.v280-out small{display:block}
.v280-outf{display:inline-flex;gap:6px;flex-wrap:wrap}.v280-outf[hidden]{display:none}.v280-outf input{width:210px}
.v280-lost{color:#8E0F15}
.v280-tt .v280-dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:#D5D1CC;margin-right:10px}.v280-tt .v280-dot.ok{background:#1F8A4C}.v280-tt .v280-dot.cur{background:#E31B23}
.v280-tt tr.v280-todo td{color:#6A6A6A}.v280-tt tr.v280-cur td{font-weight:700}
@media (max-width:900px){.v280-cpf,.v280-fuf{grid-template-columns:1fr 1fr}.v280-cpf .wide,.v280-fuf .wide{grid-column:1 / -1}}

/* 2.80.2: which parts the customer brought */
details.v280-cs { margin-bottom: 16px; }
details.v280-cs > summary { cursor: pointer; list-style: none; min-height: 44px; }
details.v280-cs > summary::-webkit-details-marker { display: none; }
details.v280-cs > summary h2::after { content: " ▾"; font-size: 14px; color: #666; }
details.v280-cs[open] > summary h2::after { content: " ▴"; }

/* 2.81: the department under a work line; dimensions on an account */
.v281-dept{display:flex;align-items:center;gap:8px;margin-top:6px;flex-wrap:wrap}
.v281-dept select{min-height:36px;padding:4px 30px 4px 10px;font-size:13px;width:auto;max-width:100%}
.v281-dim{margin-top:14px}
.v281-dim td.num,.v281-dim th.num{text-align:right}
.v281-was{font-size:12px;color:#4A4A4A;margin-top:4px}

/* 2.83: stock parts suggested under a floor name; Take from Stock on a Parts Rates card; voucher kind tabs */
.v283-sug{display:flex;flex-direction:column;gap:6px;margin:-2px 0 12px;padding:10px 12px;background:#F7F5F3;border-radius:12px}
.v283-sug.none{padding:8px 12px}
.v283-opt{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.v283-opt .v283-nm{flex:1 1 220px;min-width:0}
.v283-take{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.v283-kind{display:inline-flex}
.v283-bad{color:#B3121A;font-weight:700;font-size:13px;display:inline-block;margin-left:8px}

/* 2.83: fixed labour rate as text; a saved insurance estimate is locked */
.v283-fix .v283-lock{display:flex;align-items:center;gap:6px;min-height:40px;padding:0 2px;font-variant-numeric:tabular-nums}
.v283-fix .v283-lock svg{width:15px;height:15px;opacity:.6;flex:none}
.v283-fix .v283-lock small{color:var(--muted,#6b7280);font-weight:600}
.v283-saved{display:inline-flex;align-items:center;gap:4px;vertical-align:middle;margin-left:6px}
.v283-saved svg{width:13px;height:13px}
.v283-locked input[readonly]{background:rgba(120,120,128,.12);color:inherit;cursor:not-allowed;border-style:dashed}
a.v283-bad{text-decoration:underline}
