/* ═══════════════════════════════════════════════════════════════════════════
   ReconSmith theme — the one place the look is decided.
   The rules behind these values: local/viewer/DESIGN.md.

   Loaded AFTER each page's own <style>, so it wins. A new page needs no
   colours or sizes of its own: use the variables and the classes below.
   ═══════════════════════════════════════════════════════════════════════════ */

:root{
  /* surfaces */
  --bg:#F2EFF6;          /* main background (18 Nov 2026: darker, so white cards stand out) */
  --panel:#FFFFFF;       /* cards, inputs */
  --panel-2:#ECE6F3;     /* table header, filter strip */
  --hover:#F1EBF8;       /* row hover */
  --sidebar:#30243D;     /* dark plum */

  /* ink */
  --ink:#21182E;         /* main text, headings */
  --ink-2:#3A2F48;       /* strong secondary */
  --muted:#5B5169;       /* secondary text */
  --faint:#786E8A;       /* hints, placeholders */
  --side-ink:#E5DEEC;    /* sidebar text */

  /* brand */
  --primary:#49245F;     /* aubergine buttons */
  --primary-hover:#381B4A;
  --sel-bg:#E8DDF8;      /* selected nav */
  --sel-ink:#54227A;
  --focus:#9565C5;
  --accent:#54227A;      /* links, small accents */

  /* lines */
  /* 18 Nov 2026 (owner: "give me bigger contrast"): lines and borders darker */
  --line:#CFC4DC; --line-2:#E0D8EA;

  /* status — always with words or an icon, never colour alone */
  --warn-bg:#FFF0D6; --warn-line:#DDAE5E; --warn:#A65300;
  --good-bg:#E8F5EB; --good:#17613C; --good-line:#8FC59F; --good-row:#EFF8F1;
  --bad-bg:#FDECEE;  --bad:#BE3546;  --bad-line:#E0939E;
  --tic-bg:#F1EAFA;  --line-strong:#9F8FB5;
  --field:#F1EAFA;       /* every entry field: light lilac (owner, 22 Nov 2026) */

  /* older names, kept so existing pages pick up the new values */
  --plum:#30243D; --plum-2:#241A2E; --plum-3:#49245F;
  --pale:#E8DDF8; --lilac:#C9B5E6; --tint:#F6F3FA;
  --coral-ink:#A65300; --copper:#A65300;

  /* type */
  --font:Inter,"Segoe UI",Arial,sans-serif;

  /* shape and size */
  --rail:288px; --topbar:64px;   /* 22 Nov 2026: wide enough for every menu line on one line */
  --radius:8px;          /* cards */
  --radius-ctl:6px;      /* inputs, buttons */
  --radius-sm:4px;       /* badges */
  --ctl:42px;            /* control and button height */
  --row:56px;            /* table row height */
  --s1:4px; --s2:8px; --s3:12px; --s4:16px; --s6:24px; --s8:32px; --s12:48px;
  color-scheme:light;
}
/* Light only for now: the brand board is a light design. A dark set can be
   added here later without touching any page. */

/* ── dark ────────────────────────────────────────────────────────────────
   Follows the browser or the operating system. Same plum family, lifted for
   a dark surface. Notices lose their fill and keep a coloured border, so a
   warning reads as a warning without a bright block on a dark page.

   The selector is deliberately :root:not([data-theme="light"]) — the same
   weight as the page's own older dark block, and later, so these win. */
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --bg:#16111C; --panel:#1E1726; --panel-2:#261D30; --hover:#2A2135;
    --sidebar:#120D17;
    --ink:#EFEAF5; --ink-2:#CFC6DA; --muted:#A398B0; --faint:#7D7189; --side-ink:#E5DEEC;
    --primary:#6B3A8E; --primary-hover:#7E49A3;
    --sel-bg:#3A2A4E; --sel-ink:#E3D2FA; --focus:#B48AE0; --accent:#C9A8F0;
    --line:#342A40; --line-2:#2A2234; --line-strong:#4A3D58;
    --warn-bg:transparent; --warn-line:#C98A2E; --warn:#F2B35E;
    --good-bg:transparent; --good-line:#3E8F63; --good:#6FD39C; --good-row:rgba(111,211,156,.08); --good-row:rgba(111,211,156,.08);
    --bad-bg:transparent;  --bad-line:#C2505E; --bad:#F2828F;
    --tic-bg:#33264A; --field:#2A2135;
    --plum:#120D17; --plum-2:#0D0911; --pale:#3A2A4E; --lilac:#8E74B4; --tint:#261D30;
    color-scheme:dark;
  }
}
:root[data-theme="dark"]{
  --bg:#16111C; --panel:#1E1726; --panel-2:#261D30; --hover:#2A2135;
  --sidebar:#120D17;
  --ink:#EFEAF5; --ink-2:#CFC6DA; --muted:#A398B0; --faint:#7D7189; --side-ink:#E5DEEC;
  --primary:#6B3A8E; --primary-hover:#7E49A3;
  --sel-bg:#3A2A4E; --sel-ink:#E3D2FA; --focus:#B48AE0; --accent:#C9A8F0;
  --line:#342A40; --line-2:#2A2234; --line-strong:#4A3D58;
  --warn-bg:transparent; --warn-line:#C98A2E; --warn:#F2B35E;
  --good-bg:transparent; --good-line:#3E8F63; --good:#6FD39C;
  --bad-bg:transparent;  --bad-line:#C2505E; --bad:#F2828F;
  --tic-bg:#33264A; --field:#2A2135;
  --plum:#120D17; --plum-2:#0D0911; --pale:#3A2A4E; --lilac:#8E74B4; --tint:#261D30;
  color-scheme:dark;
}
/* On dark, the notice icon is an outline in the notice's colour rather than a
   filled disc, and the text and link take that colour too. */
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) .notice .ico,:root:not([data-theme="light"]) .duebar .ico{
    background:transparent;color:var(--warn);box-shadow:inset 0 0 0 2px var(--warn)}
  :root:not([data-theme="light"]) .duebar.late .ico{color:var(--bad);box-shadow:inset 0 0 0 2px var(--bad)}
  :root:not([data-theme="light"]) .notice.good .ico{color:var(--good);box-shadow:inset 0 0 0 2px var(--good)}
  :root:not([data-theme="light"]) .duebar.later .ico{color:var(--muted);box-shadow:inset 0 0 0 2px var(--muted)}
  :root:not([data-theme="light"]) .notice .d,:root:not([data-theme="light"]) .duebar .d{color:var(--ink-2)}
  :root:not([data-theme="light"]) .notice .go,:root:not([data-theme="light"]) .duebar .go{color:var(--warn)}
  :root:not([data-theme="light"]) .duebar.late .go{color:var(--bad)}
  :root:not([data-theme="light"]) .duebar,:root:not([data-theme="light"]) .notice{border-width:1.5px}
  :root:not([data-theme="light"]) .chip.good,:root:not([data-theme="light"]) .chip.ok{background:rgba(111,211,156,.12)}
  :root:not([data-theme="light"]) .chip.warn,:root:not([data-theme="light"]) .chip.copper{background:rgba(242,179,94,.12)}
  :root:not([data-theme="light"]) .chip.bad{background:rgba(242,130,143,.12)}
  :root:not([data-theme="light"]) .card,:root:not([data-theme="light"]) .tile{box-shadow:none}
}


*{box-sizing:border-box}
body{background:var(--bg);color:var(--ink);font:400 14px/1.5 var(--font)}
h1,h2,h3,h4{font-family:var(--font);line-height:1.2;letter-spacing:-.01em;color:var(--ink)}
.num,td.num,th.num,.money{text-align:right;font-variant-numeric:tabular-nums}
:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
a{color:var(--accent)}

/* ── icons (Lucide, outline) ─────────────────────────────────────────────── */
.ic{width:18px;height:18px;flex:0 0 auto;stroke:currentColor;fill:none;
  stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.ic.lg{width:20px;height:20px}

/* ── sidebar ─────────────────────────────────────────────────────────────── */
.rail{width:var(--rail);flex:0 0 var(--rail);background:var(--sidebar);
  padding:18px 14px 14px;color:var(--side-ink)}
.rail .brand{padding:4px 6px 18px;font-size:22px;font-weight:700;color:#fff;gap:10px;
  letter-spacing:-.02em}
.rail .brand img{width:30px;height:30px;border-radius:6px}
.rail .brand i{color:#E5484D}
.org-card{display:flex;align-items:center;gap:10px;width:100%;margin:0 0 18px;
  padding:12px;border:0;border-radius:var(--radius);background:rgba(255,255,255,.07);
  color:#fff;font:600 14px/1.3 var(--font);text-align:left}
.org-card .nm{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.org-card select{flex:1;min-width:0;height:auto;padding:0;border:0;background:transparent;
  color:#fff;font:600 14px var(--font);cursor:pointer}
.org-card select option{color:var(--ink)}
.rail .home,.rail .dept>button{display:flex;align-items:center;gap:12px;width:100%;
  min-height:42px;padding:10px 12px;margin:0 0 2px;border:0;border-radius:var(--radius-ctl);
  background:none;color:var(--side-ink);font:500 14px/1.2 var(--font);text-align:left;cursor:pointer}
.rail .home:hover,.rail .dept>button:hover{background:rgba(255,255,255,.08);color:#fff}
.rail .home[aria-selected="true"]{background:rgba(255,255,255,.10);color:#fff;font-weight:600}
.rail .dept.open>button{background:rgba(255,255,255,.08);color:#fff;font-weight:600;
  box-shadow:inset 3px 0 0 #B79AE0}
.rail .dept>button .chev{margin-left:auto;opacity:.7;transition:transform .15s;display:flex}
.rail .dept.open>button .chev{transform:rotate(90deg)}
.rail .dept i{display:none}
.rail .dept .sub{padding:4px 0 8px 18px}
.rail .dept .sub button{display:flex;align-items:center;gap:10px;min-height:36px;
  padding:8px 12px;margin:1px 0;border-radius:var(--radius-ctl);
  color:#CFC5DB;font:400 14px/1.2 var(--font)}
.rail .dept .sub button::before{content:'';width:5px;height:5px;border-radius:50%;
  background:transparent;flex:0 0 auto}
.rail .dept .sub button:hover{background:rgba(255,255,255,.08);color:#fff}
.rail .dept .sub button[aria-selected="true"]{background:var(--sel-bg);color:var(--sel-ink);font-weight:600}
.rail .dept .sub button[aria-selected="true"]::before{background:var(--sel-ink)}
.rail .badge{background:#D9480F;color:#fff;border-radius:999px;min-width:22px;height:22px;
  font-size:12px}
.rail .foot{border-top:1px solid rgba(255,255,255,.10);margin-top:auto;padding-top:12px}
.rail .foot .who{display:flex;align-items:center;gap:10px;padding:8px 6px;
  color:#fff;font-weight:500;font-size:14px}
.rail .foot .who .av{width:28px;height:28px;border-radius:50%;background:#7C5BB0;
  display:grid;place-items:center;font-size:13px;font-weight:600;color:#fff;flex:0 0 auto}
.rail .foot .who .nm{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rail .foot .org,.rail .foot .tag{display:none}
.rail .foot .signout{background:none;color:var(--side-ink);font:500 14px var(--font);
  padding:10px 6px;gap:12px;border-radius:var(--radius-ctl)}
.rail .foot .signout:hover{background:rgba(255,255,255,.08);color:#fff}
.rail .foot .build{color:#9F92B0}

/* ── top bar ─────────────────────────────────────────────────────────────── */
.topbar{min-height:var(--topbar);padding:0 32px;background:var(--panel);
  border-bottom:1px solid var(--line);gap:16px}
.crumbs{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--muted);min-width:0}
.crumbs .sep{color:var(--faint)}
.crumbs b{color:var(--ink);font-weight:600}
.topbar h1{font-size:14px;font-weight:600;margin:0}
.topbar .org{display:none}
.search input[type=text]{width:420px;max-width:42vw;height:40px;padding:0 70px 0 40px;
  border:1px solid var(--line);border-radius:var(--radius-ctl);background:var(--panel);
  font:400 14px var(--font)}
.search svg{left:13px;top:11px;width:18px;height:18px;color:var(--muted)}
.search .kbd{position:absolute;right:8px;top:8px;display:flex;gap:4px;pointer-events:none}
.search .kbd span{border:1px solid var(--line);border-radius:4px;padding:1px 6px;
  font-size:12px;color:var(--muted);background:var(--panel)}
.search .results{top:46px;border-radius:var(--radius);box-shadow:0 12px 32px rgba(33,24,46,.12)}

/* ── content and page header ─────────────────────────────────────────────── */
.content{padding:28px 32px}
.wrap{max-width:1400px}
.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;
  flex-wrap:wrap;margin:0 0 24px}
.page-head h1{font-size:30px;font-weight:700;margin:0 0 6px;letter-spacing:-.02em}
.page-head p{margin:0;color:var(--muted);font-size:15px}
.page-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.page-tools .lbl{color:var(--muted);font-size:14px}
.ws-head h1,.cust-head h1{font-size:30px;font-weight:700;letter-spacing:-.02em}
.ws-head .sub,.cust-head .sub{font-size:15px}
.eyebrow{font-size:12px;letter-spacing:.02em;text-transform:none;font-weight:600}

/* view toggle: Plain / Accounting */
.lex,.view-toggle{display:flex;gap:0;padding:0;background:var(--panel);
  border:1px solid var(--line);border-radius:var(--radius-ctl);overflow:hidden}
.lex button,.view-toggle button{height:40px;padding:0 16px;border-radius:0;border:0;
  background:none;color:var(--ink);font:500 14px var(--font)}
.lex button[aria-pressed="true"],.view-toggle button[aria-pressed="true"]{
  background:var(--primary);color:#fff;font-weight:600}

/* ── notices (amber, green, red) ─────────────────────────────────────────── */
.notice,.duebar{display:flex;align-items:center;gap:16px;padding:14px 20px;margin:0 0 24px;
  border:1px solid var(--warn-line);border-radius:var(--radius);background:var(--warn-bg);color:var(--ink)}
.duebar.hide{display:none}
.notice .ico,.duebar .ico{width:30px;height:30px;border-radius:50%;flex:0 0 auto;
  display:grid;place-items:center;background:var(--warn);color:#fff}
.notice .ico .ic,.duebar .ico .ic{width:18px;height:18px;stroke-width:2.25}
.notice .t,.duebar .t{display:block;color:var(--warn);font-weight:600;font-size:15px}
.notice .d,.duebar .d{display:block;color:var(--ink-2);font-size:14px}
.notice .go,.duebar .go{margin-left:auto;display:flex;align-items:center;gap:4px;
  border:0;background:none;color:var(--ink);font:600 14px var(--font);cursor:pointer;white-space:nowrap}
.duebar.later{background:var(--panel);border-color:var(--line)}
.duebar.later .ico{background:var(--muted)} .duebar.later .t{color:var(--ink)}
.duebar.late{background:var(--bad-bg);border-color:var(--bad-line)}
.duebar.late .ico{background:var(--bad)} .duebar.late .t{color:var(--bad)}
.notice.good{background:var(--good-bg);border-color:var(--good-line)}
.notice.good .ico{background:var(--good)} .notice.good .t{color:var(--good)}
.notice.slim{padding:10px 16px;margin:0}
.note{background:var(--warn-bg);border:1px solid var(--warn-line);border-left-width:1px;
  border-radius:var(--radius-ctl);color:var(--ink-2)}

/* ── cards ───────────────────────────────────────────────────────────────── */
.card{border:1px solid var(--line);border-radius:var(--radius);background:var(--panel);
  margin-bottom:24px;box-shadow:0 1px 2px rgba(33,24,46,.03)}
.card>header{padding:20px 24px;border-bottom:1px solid var(--line);gap:12px}
.card>header h2{font-size:20px;font-weight:600;text-transform:none;letter-spacing:-.01em;
  color:var(--ink);display:flex;align-items:center;gap:10px}
.card>header .tools{gap:10px}
.card .count,.tab .count{display:inline-grid;place-items:center;min-width:24px;height:22px;
  padding:0 7px;border-radius:999px;background:var(--panel-2);color:var(--ink-2);
  font-size:12px;font-weight:600}
/* A card's heading bar ("Bills to pay", "Allocate credits") is the dark purple
   of the Allocate credits customer headings, its title white (owner, 3 Nov
   2026). A document's own paper keeps a plain heading. */
.card>header{background:var(--primary);border-bottom-color:var(--primary);color:#fff;
  border-radius:calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0}
.card>header h2{color:#fff}
.card>header .count{background:rgba(255,255,255,.18);color:#fff}
.card>header .muted,.card>header p,.card>header label{color:rgba(255,255,255,.85)}
/* Buttons (owner, 3 Nov 2026): the page's ADD button (top right) is solid
   purple; every action button under it - a document's button row, a card's
   heading bar - is white with a purple border, as Credit note and Receipt are
   under Raise a tax invoice. Void keeps its red. */
.doc-bar .btn:not(.danger),.card>header .btn:not(.danger),.card>header .btn.primary{
  background:#fff;border:1.5px solid var(--primary);color:var(--primary)}
.doc-bar .btn:not(.danger):hover,.card>header .btn:not(.danger):hover{background:#F1EAF6;border-color:var(--primary)}
.card.paper>header{background:transparent;border-bottom-color:var(--line);color:inherit;border-radius:0}
.card.paper>header h2{color:var(--ink)}
.pad{padding:20px 24px}
.sect{color:var(--sel-ink);text-transform:none;letter-spacing:0;font-size:14px;font-weight:600;padding:16px 24px 6px}
.fold > summary{padding:18px 24px}
.fold > summary .fold-h{font-size:18px;font-weight:600}

/* summary tiles */
.kpis,.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:24px;margin:0 0 24px}
.tile,.kpi{display:block;padding:20px 24px;border:1px solid var(--line);
  border-radius:var(--radius);background:var(--panel)}
.tile:has(>.tic){display:flex;align-items:center;gap:20px;padding:24px}
.tile .tic{width:64px;height:64px;border-radius:50%;background:var(--tic-bg);color:var(--sel-ink);
  display:grid;place-items:center;flex:0 0 auto}
.tile .tic.good{background:var(--good-bg);color:var(--good)}
.tile .tic.warn{background:var(--warn-bg);color:var(--warn)}
.tile .tic .ic{width:26px;height:26px}
.tile .label,.kpi-label{font-size:14px;color:var(--ink-2);text-transform:none;letter-spacing:0;font-weight:500}
.tile .num-hero,.kpi-value{font-size:28px;font-weight:700;letter-spacing:-.02em;margin:2px 0;
  font-variant-numeric:tabular-nums;font-family:var(--font)}
.tile .sub,.kpi-sub{font-size:14px;color:var(--muted)}
/* 4 Nov 2026, owner on a tablet: "R" sat on one line and the amount ran out
   of the tile. The amount stays on one line and shrinks to the tile's width;
   in a narrow tile the icon gets smaller and the padding tighter. */
.tile{container-type:inline-size}
.tile:has(>.tic)>div{min-width:0}
.tile .num-hero{white-space:nowrap;font-size:clamp(17px,8.5cqi,28px)}
@container (max-width:300px){
  .tile .tic{width:42px;height:42px}
  .tile .tic .ic{width:20px;height:20px}
}
@media (max-width:1100px){
  .tile:has(>.tic){gap:12px;padding:16px}
  .kpis,.tiles{gap:14px}
}

/* tabs */
.tabs,.rec-tabs{display:flex;gap:8px;padding:0 24px;border-bottom:1px solid var(--line);margin:0}
.tabs button,.rec-tabs button{display:flex;align-items:center;gap:8px;height:52px;padding:0 12px;
  border:0;border-bottom:2px solid transparent;margin-bottom:-1px;background:none;cursor:pointer;
  color:var(--ink-2);font:500 14px var(--font)}
.tabs button[aria-selected="true"],.rec-tabs button[aria-selected="true"]{
  color:var(--sel-ink);border-bottom-color:var(--primary);font-weight:600}
.tabs button[aria-selected="true"] .count{background:var(--sel-bg);color:var(--sel-ink)}

/* ── tables ──────────────────────────────────────────────────────────────── */
table{width:100%;border-collapse:collapse}
th{height:46px;padding:12px 16px;background:var(--panel-2);color:var(--ink-2);
  font:600 12px/1.2 var(--font);text-transform:none;letter-spacing:0;
  border-bottom:1px solid var(--line);vertical-align:middle}
td{padding:12px 16px;border-bottom:1px solid var(--line);vertical-align:middle;font-size:14px}
/* List tables — the ones a card holds — get the generous rows and the 24px
   edge. Small tables inside documents (meta, totals) keep their own. */
.scroll>table>tbody>tr>td,.card>table>tbody>tr>td{height:var(--row)}
.scroll>table th:first-child,.scroll>table td:first-child,
.card>table th:first-child,.card>table td:first-child{padding-left:24px}
.scroll>table th:last-child,.scroll>table td:last-child,
.card>table th:last-child,.card>table td:last-child{padding-right:24px}
tbody tr:last-child td{border-bottom:0}
tbody tr:hover,tr.rowlink:hover>td{background:var(--hover)}
td.strong,td .owe{font-weight:600}
.card tfoot th{height:52px;background:var(--panel);border-top:1px solid var(--line);
  border-bottom:0;font-size:14px;font-weight:600;color:var(--ink)}
tr.sub td{background:var(--panel-2);border-top:1px solid var(--line)}
tr.sub.major td{border-top:2px solid var(--ink)}
tr.grouphead td{height:auto;padding:10px 24px;background:var(--panel-2);font-size:13px}
.table-foot{display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:16px 24px;border-top:1px solid var(--line);color:var(--muted);font-size:14px}
.mono{font-size:13px}
.scroll{max-height:none}

/* ── badges ──────────────────────────────────────────────────────────────── */
.chip,.pill{display:inline-flex;align-items:center;gap:4px;height:24px;padding:0 10px;
  border:0;border-radius:var(--radius-sm);background:var(--panel-2);color:var(--ink-2);
  font:500 12px var(--font);white-space:nowrap}
.chip.teal,.chip.open,.pill.info{background:var(--sel-bg);color:var(--sel-ink)}
.chip.good,.chip.ok,.pill.good{background:var(--good-bg);color:var(--good)}
.chip.warn,.chip.copper,.pill.warn{background:var(--warn-bg);color:var(--warn)}
.chip.bad,.pill.bad{background:var(--bad-bg);color:var(--bad)}
.pos{color:var(--good)} .neg,.bad,td.bad{color:var(--bad)} .warn{color:var(--warn)}
.muted{color:var(--muted)} .faint{color:var(--faint)}

/* ── buttons ─────────────────────────────────────────────────────────────── */
button.btn,a.btn,.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;
  height:var(--ctl);padding:0 18px;border:1px solid var(--line);border-radius:var(--radius-ctl);
  background:var(--panel);color:var(--primary);font:600 14px/1 var(--font);
  text-decoration:none;cursor:pointer;white-space:nowrap}
button.btn:hover,a.btn:hover{border-color:var(--line-strong);background:var(--hover)}
button.btn.primary,a.btn.primary{background:var(--primary);border-color:var(--primary);color:#fff}
button.btn.primary:hover,a.btn.primary:hover{background:var(--primary-hover);border-color:var(--primary-hover)}
button.btn.danger{background:var(--bad);border-color:var(--bad);color:#fff}
button.btn.lnk,.btn.lnk,button.btn.ghost{border-color:transparent;background:none;color:var(--primary);padding:0 8px}
button.btn.sm,.btn.sm{height:32px;padding:0 12px;font-size:13px}
button.btn:disabled{opacity:.5;cursor:not-allowed}
.icon-btn{display:inline-grid;place-items:center;width:36px;height:36px;border:0;border-radius:var(--radius-ctl);
  background:none;color:var(--muted);cursor:pointer}
.icon-btn:hover{background:var(--hover);color:var(--ink)}
.icon-btn.del{color:var(--bad)}
.actions-foot{display:flex;justify-content:flex-end;gap:12px;flex-wrap:wrap;margin-top:24px}
.actions-foot + .fine{text-align:right;color:var(--muted);font-size:12px;margin-top:8px}

/* ── forms ───────────────────────────────────────────────────────────────── */
select,input[type=text],input[type=date],input[type=number],input[type=email],
input[type=password],input[type=search],input[type=tel],input[type=url],input:not([type]),textarea{
  height:var(--ctl);padding:0 14px;border:1px solid var(--line-strong);border-radius:var(--radius-ctl);
  background:var(--panel);color:var(--ink);font:400 14px var(--font)}
textarea{height:auto;min-height:96px;padding:12px 14px;line-height:1.5}
select{padding-right:34px}
input::placeholder,textarea::placeholder{color:var(--faint)}
input:focus,select:focus,textarea:focus{outline:2px solid var(--focus);outline-offset:0;border-color:var(--focus)}
input.num,td input.num{text-align:right;font-variant-numeric:tabular-nums}
label.fl,.form-grid label,.card>label,.field>label{display:flex;flex-direction:column;gap:8px;
  font:500 14px var(--font);color:var(--ink);text-transform:none;letter-spacing:0}
label.fl input,label.fl select,.form-grid input,.form-grid select{margin-top:0}
.filters{gap:16px;padding:20px 24px;background:var(--panel);border-bottom:1px solid var(--line)}
.form-row{display:grid;gap:20px;padding:20px 24px}
.req{color:var(--bad)}
.hint,.help{color:var(--muted);font-size:12px}
table.lines td{height:64px;padding:10px 8px}
table.lines td:first-child{padding-left:24px} table.lines td:last-child{padding-right:24px}
table.lines input[type=text],table.lines input[type=number],table.lines select,table.lines input:not([type]){
  height:var(--ctl);padding:0 12px;font-size:14px}
.list-search{height:40px;min-width:280px;padding:0 14px 0 38px;border-radius:var(--radius-ctl);
  background:var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23756B84' stroke-width='1.75' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px center/18px;
  font-size:14px}

/* ── dialogs ─────────────────────────────────────────────────────────────── */
.modal,.rs-modal{background:rgba(33,24,46,.45)}
.modal-card,.rs-form-card,.dlg-card{border-radius:12px;padding:28px 32px;
  box-shadow:0 24px 60px rgba(33,24,46,.22)}
.modal-card h2,.rs-form-card h2,.dlg-card h2{font-size:22px;font-weight:600;margin:0 0 6px}
.rs-form-grid{gap:20px}
.rs-form-grid label{font:500 14px var(--font);color:var(--ink);gap:8px}
.rs-form-grid select[size]{height:auto;padding:4px 0}
.rs-form-grid select[size] option{padding:6px 10px}
.toast{background:var(--ink);border-radius:var(--radius-ctl);font-size:14px;padding:12px 18px}
.toast.ok{background:var(--good)}

/* ── odds and ends ───────────────────────────────────────────────────────── */
.empty{padding:40px 24px;font-size:14px}
.err{padding:20px 24px;font-size:14px}
.task{border-radius:var(--radius);padding:20px}
.task .ti{width:44px;height:44px;border-radius:50%;background:var(--tic-bg);color:var(--sel-ink)}
.dcard{border-radius:var(--radius)}
.dcard a{border-radius:var(--radius-ctl)}
.dcard a.accent{background:var(--primary);border-color:var(--primary);color:#fff}
.dcard a.accent:hover{background:var(--primary-hover)}
.rec-head,.rec-row,.addr,.opt,.preset,.bcard,.picker-box{border-radius:var(--radius)}
.glist li[aria-selected="true"]{background:var(--sel-bg);color:var(--sel-ink)}

/* the yes / no / skip rows on Setting up */
.qrow{display:flex;align-items:center;gap:24px;padding:16px 24px;border-bottom:1px solid var(--line)}
.qrow:last-child{border-bottom:0}
.qrow .q{flex:1;min-width:0}
.qrow .q b{display:block;font-weight:600;font-size:15px}
.qrow .q span{display:block;color:var(--muted);font-size:14px}
.qrow.locked{opacity:.55}
.seg{display:flex;border:1px solid var(--line);border-radius:var(--radius-ctl);overflow:hidden;flex:0 0 auto}
.seg button{width:72px;height:var(--ctl);border:0;border-left:1px solid var(--line);background:var(--panel);
  color:var(--ink);font:500 14px var(--font);cursor:pointer}
.seg button:first-child{border-left:0}
.seg button:hover{background:var(--hover)}
.seg button[aria-pressed="true"]{background:var(--primary);color:#fff;font-weight:600}
.seg button:disabled{cursor:not-allowed;background:var(--panel-2);color:var(--faint)}
.progress{flex:1;height:8px;border-radius:999px;background:var(--panel-2);overflow:hidden}
.progress span{display:block;height:100%;background:var(--primary)}

@media(max-width:860px){
  .rail{width:auto}
  .org-card{display:none}
  .topbar{padding:10px 16px}
  .content{padding:16px}
  .search input[type=text]{width:100%;max-width:none}
  .page-head h1{font-size:24px}
}
.page-head.tools-only{justify-content:flex-end;margin-bottom:16px}
.tabs-row{display:flex;align-items:center;gap:16px;min-height:52px;padding-right:24px;border-bottom:1px solid var(--line)}
.tabs-row .tabs{border-bottom:0;flex:1}
.tabs-row .list-search{min-width:320px}
a.doclink{color:var(--sel-ink);font-weight:600;text-decoration:none}
a.doclink,a.acctlink{cursor:pointer}a.doclink:hover,a.acctlink:hover{text-decoration:underline}
td .muted{font-size:13px}
.small{font-size:12px}
.card-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:20px 24px;border-bottom:1px solid var(--line)}
.card-head h2{margin:0;font-size:20px;font-weight:600}
.card>p.muted{padding:0 24px}
/* forms laid out in columns, labels above */
.form-cols{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 24px;padding:24px}
.form-cols .span2{grid-column:span 2}
.form-cols label.fl input,.form-cols label.fl select,.form-cols label.fl textarea{width:100%}
.fl.ck{flex-direction:row;align-items:center;gap:10px;font-weight:400}
.fl.ck input{width:18px;height:18px;margin:0}
.sum-cols{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(260px,1fr);gap:32px;padding:24px}
.sum-cols textarea{width:100%}
.totals{border-left:1px solid var(--line);padding-left:32px;display:flex;flex-direction:column;gap:12px}
.totals>div{display:flex;justify-content:space-between;align-items:baseline;font-size:15px}
.totals span{color:var(--ink-2)}
.totals b{font-weight:500;font-variant-numeric:tabular-nums}
.totals .grand{border-top:1px solid var(--line);padding-top:14px;font-size:22px}
.totals .grand span{color:var(--ink);font-weight:700}
.totals .grand b{font-weight:700}
@media(max-width:900px){.form-cols{grid-template-columns:1fr}.form-cols .span2{grid-column:auto}
  .sum-cols{grid-template-columns:1fr}.totals{border-left:0;padding-left:0}}
.notice .sep{width:1px;height:20px;background:currentColor;opacity:.25}
.notice.good .t{font-size:15px}
.notice.slim{gap:14px}
.exports .btn{height:var(--ctl);padding:0 16px;font-size:14px}
input.list-search,input[type=search].list-search{height:40px;min-width:300px;padding:0 14px 0 40px;
  background:var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23756B84' stroke-width='1.75' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px center/18px}

/* ── language selector (EN | NL), public pages, Netherlands only ───────── */
.lang-seg{display:inline-flex;border:1px solid var(--line);border-radius:var(--radius-ctl);overflow:hidden;background:var(--panel)}
.lang-seg button{height:32px;min-width:40px;padding:0 10px;border:0;background:none;color:var(--ink);
  font:600 12px var(--font);cursor:pointer;width:auto}
.lang-seg button+button{border-left:1px solid var(--line)}
.lang-seg button[aria-pressed="true"]{background:var(--primary);color:#fff}
.lang-seg button:hover:not([aria-pressed="true"]){background:var(--hover)}

/* The banner's amber state is drawn by the class "soon"; the page's older
   rule painted it cream whatever the theme. The theme decides now. */
.duebar.soon{background:var(--warn-bg);border-color:var(--warn-line);color:var(--ink)}

/* ── the document designer (129) ─────────────────────────────────────── */
.dsg{display:grid;grid-template-columns:300px minmax(0,1fr) 320px;gap:24px;align-items:start}
@media(max-width:1350px){.dsg{grid-template-columns:300px minmax(0,1fr)}.dsg-blocks{grid-column:1 / -1}}
@media(max-width:900px){.dsg{grid-template-columns:1fr}}
.dsg-form{display:grid;gap:14px;padding:20px 24px}
.dsg label.fl{gap:6px}
.dsg label.fl b{font-weight:500;color:var(--muted)}
.dsg-two{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.clr{display:flex;gap:8px}
.clr input[type=color]{width:42px;min-width:42px;height:42px;padding:3px;border:1px solid var(--line);
  border-radius:var(--radius-ctl);background:var(--panel);cursor:pointer}
.clr input:not([type]){flex:1;min-width:0;font-family:ui-monospace,Menlo,monospace}
input[type=range]{width:100%;accent-color:var(--primary);height:24px}
.dsg-row{display:flex;gap:6px;flex-wrap:wrap;margin:4px 0}
.dsg-chip{border:1px solid var(--line);background:var(--panel);color:var(--ink);border-radius:var(--radius-ctl);
  padding:7px 10px;font:500 13px var(--font);cursor:pointer}
.dsg-chip:hover{background:var(--hover)}
.dsg-chip.on{border-color:var(--primary);background:var(--sel-bg);color:var(--sel-ink)}
.dsg-chip.off{opacity:.55;text-decoration:line-through}
.dsg-cols{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}
.dsg-presets{display:inline-flex;gap:6px;flex-wrap:wrap;margin-left:8px;vertical-align:middle}
.dsg .region{padding:12px 24px;border-bottom:1px solid var(--line)}
.dsg .region-h{font:600 12px var(--font);color:var(--muted);text-transform:none;letter-spacing:0;margin-bottom:6px}
.ic.up{transform:rotate(-90deg)} .ic.dn{transform:rotate(90deg)}
.pv-small{display:flex;justify-content:space-between;gap:12px;margin-top:14px;font-size:.78em;color:#8A7F95}
.pv-row > div[data-bi]:hover{outline:1px dashed #B79AE0;outline-offset:3px}

/* ── e-mail templates (129) ──────────────────────────────────────────── */
.mailtpl{display:grid;grid-template-columns:260px minmax(0,1fr);gap:24px;align-items:start}
@media(max-width:900px){.mailtpl{grid-template-columns:1fr}}
.mailtpl-list button{display:flex;justify-content:space-between;align-items:center;gap:8px;width:100%;
  padding:12px 16px;border:0;border-bottom:1px solid var(--line);background:none;color:var(--ink);
  font:500 14px var(--font);text-align:left;cursor:pointer}
.mailtpl-list button:hover{background:var(--hover)}
.mailtpl-list button[aria-selected="true"]{background:var(--sel-bg);color:var(--sel-ink);font-weight:600}
.mail-preview{border:1px solid var(--line);border-radius:var(--radius);background:var(--panel);overflow:hidden}
.mail-preview .mh{padding:12px 16px;border-bottom:1px solid var(--line);background:var(--panel-2);font-size:13px;color:var(--ink-2)}
.mail-preview .mh b{color:var(--ink)}
.mail-preview .mb{padding:16px;white-space:pre-wrap;font-size:14px;line-height:1.6}
.dsg-form > *,.dsg-two > *{min-width:0}
.dsg-form input:not([type=checkbox]):not([type=color]):not([type=range]),.dsg-form select,.dsg-form textarea{width:100%}
.dsg-side .dsg-two{grid-template-columns:1fr}
.dsg .pv{max-width:100%}
.dsg-form .btn{white-space:normal;height:auto;min-height:36px;padding:8px 12px;line-height:1.25}
.dsg-chip{cursor:grab}
.dsg-dragging{opacity:.4}
.dsg-drop-before{box-shadow:inset 3px 0 0 var(--focus)!important}
.dsg-drop-after{box-shadow:inset -3px 0 0 var(--focus)!important}
.dsg-drop-above{box-shadow:inset 0 3px 0 var(--focus)!important}
.dsg-drop-below{box-shadow:inset 0 -3px 0 var(--focus)!important}
.dsg-drop-into{outline:2px dashed var(--focus);outline-offset:-2px}

/* A registration's certificate, under its status (130) */
.regdoc{display:flex;flex-wrap:nowrap;justify-content:flex-end;align-items:center;
  gap:8px;margin-top:8px;white-space:nowrap}
.reg-status{display:flex;align-items:center;justify-content:flex-end;gap:12px}
.reg-done{color:var(--good);display:inline-flex}
.reg-done svg{width:34px;height:34px;stroke-width:2.25}
.regdoc .btn.small{min-height:30px;height:30px;padding:0 10px;font-size:12px}
.regdoc .btn.lnk.small{padding:0 4px}
.regdoc .btn svg{width:15px;height:15px;vertical-align:-3px}
.regdoc a.btn{max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.reg-table td{padding:14px 24px;border-top:1px solid var(--line);vertical-align:top}
.reg-table tr.reg-row-done>td{background:var(--good-row)}
/* The document preview sizes its own text from the template's font size.
   The office's table sizes must not reach into it. */
.pv-table td{font-size:inherit;height:auto}
.pv-table th{height:auto}
.pv-tot tr:not(.grand) td{font-size:inherit;height:auto}
/* The audit trail (r64) */
.trail{padding:16px 24px;border-top:1px solid var(--line)}
.trail:first-of-type{border-top:0}
.trail-head{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:10px}
.trail-meta{color:var(--muted);font-size:12px;text-align:right}
.trail-lines{width:100%;border:1px solid var(--line);border-radius:8px;border-collapse:separate;border-spacing:0;overflow:hidden}
.trail-lines th{height:auto;padding:8px 12px}
.trail-lines td{padding:8px 12px;font-size:13px}
.trail-lines tfoot th{border-top:1px solid var(--line);background:var(--panel-2)}
.trail-link{margin-top:6px}
tr.audit-detail>td{padding:0;background:var(--panel-2)}
tr.audit-detail .trail{background:var(--panel)}
/* Designer (r73): the preview stays in view while the settings beside it
   scroll, so a change can be seen as it is made. */
@media(min-width:901px){
  .dsg .dsg-main{position:sticky;top:84px}
  .dsg #dsgPreview{max-height:calc(100vh - 170px);overflow:auto}
}
/* "Where the money went" (r74): a mild plum band, and it folds away. */
.trail-card>header{background:var(--sel-bg);cursor:pointer;user-select:none}
.trail-card>header h2{color:var(--sel-ink);display:flex;align-items:center;gap:8px}
.trail-chev{display:inline-flex;transition:transform .15s}
.trail-chev svg{width:18px;height:18px;transform:rotate(90deg)}
.trail-card.closed .trail-chev svg{transform:rotate(0deg)}
.trail-card.closed .trail-body{display:none}
.trail-card.closed>header{border-bottom:0}

/* Coming from another system: numbered steps, one open at a time. */
.imp-num{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;
  border-radius:50%;border:1.5px solid var(--line,#ddd);color:var(--muted,#756B84);font-weight:600;font-size:13px}
.imp-num.cur{border-color:var(--accent,#5B3A7A);background:var(--accent,#5B3A7A);color:#fff}
.imp-num.done{border-color:var(--good-line);background:var(--good);color:#fff}
tr.imp-cur>td{background:var(--sel-bg,#F3EEF8)}
.grid tr.reg-row-done>td{background:var(--good-row)}

/* P&L: a total under each section, results set apart. */
tr.sect-total>td{border-top:1px solid var(--line,#ddd);font-weight:600}
tr.pnl-result>td{background:var(--sel-bg,#F3EEF8);font-weight:700}

/* Customer dashboard (1 Nov 2026) */
.cust-tiles{margin-top:8px}
.cust-dash{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:24px;margin:0 0 24px}
@media (max-width:900px){.cust-dash{grid-template-columns:1fr}}
.chart-wrap{padding:8px 16px 0;overflow-x:auto}
.chart-wrap svg{width:100%;min-width:520px;height:auto;display:block}
.chart-wrap .cg{stroke:var(--line);stroke-width:1}
.chart-wrap .ct{fill:var(--muted);font-size:11px;font-variant-numeric:tabular-nums}
.cb-inv{fill:var(--sel-bg);background:var(--sel-bg)}
.cb-rec{fill:var(--accent);background:var(--accent)}
.legend{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;color:var(--muted);margin-left:12px}
.legend i{width:10px;height:10px;border-radius:3px;display:inline-block}
.agebar{display:flex;height:14px;border-radius:7px;overflow:hidden;gap:2px;margin:20px 24px 16px;background:var(--line)}
.agelegend{display:grid;gap:8px;padding:0 24px 20px}
.agelegend div{display:grid;grid-template-columns:12px 1fr auto;gap:10px;align-items:center;font-size:13px}
.agelegend i{width:10px;height:10px;border-radius:3px}
.agelegend b{font-variant-numeric:tabular-nums}
.ag0{background:var(--good)} .ag1{background:var(--warn)} .ag2{background:color-mix(in srgb,var(--warn) 60%,var(--bad))}
.ag3{background:color-mix(in srgb,var(--warn) 25%,var(--bad))} .ag4{background:var(--bad)}

/* ── platform area (17 Nov 2026): top-bar tools, pop-up pieces, phone ──── */
.plat-tools{display:flex;align-items:center;gap:4px}
.plat-tools .icon-btn{position:relative;font-weight:700;font-size:15px;color:var(--ink-2);background:none;cursor:pointer}
.bell-n{position:absolute;top:3px;right:2px;min-width:16px;height:16px;padding:0 4px;border-radius:8px;
  background:var(--coral);color:#2A1F33;font-size:10.5px;font-weight:700;line-height:16px;text-align:center}
.bell-n.hide{display:none}
.bell-list{display:flex;flex-direction:column;gap:2px;margin:4px 0}
.bell-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;
  border-radius:var(--radius);cursor:pointer;color:var(--ink);text-decoration:none}
.bell-item:hover{background:var(--panel-2)}
.bell-item a{cursor:pointer;color:var(--sel-ink,var(--accent));font-weight:600;flex:1}
.help-tips{margin:0 0 8px;padding-left:18px;line-height:1.9}
.search .results .gs-row.on{background:var(--panel-2)}
.gs-kind{display:inline-block;min-width:74px;font-size:10.5px;font-weight:700;text-transform:uppercase;
  letter-spacing:.04em;color:var(--muted)}
.gs-amt{float:right;font-variant-numeric:tabular-nums;color:var(--ink-2)}
.qr2fa svg{width:180px;height:180px;display:block;background:#fff;padding:6px;border:1px solid var(--line)}
.codes2fa{font:14px/1.8 ui-monospace,Menlo,monospace;background:var(--pale);padding:12px 16px;
  border-radius:var(--radius);columns:2;margin:0 0 12px}
.rs-modal .modal-card.plat-modal.wide{max-width:900px}
.plat-modal h3{font-size:13px;margin:14px 0 6px;color:var(--ink-2)}
.split-sum{display:flex;justify-content:space-between;gap:12px;padding:10px 12px;background:var(--panel-2);
  border-radius:var(--radius);font-size:14px}
.split-docs{max-height:240px;overflow:auto;border:1px solid var(--line);border-radius:var(--radius)}
.split-doc{display:grid;grid-template-columns:20px 120px minmax(0,1fr) 100px 110px 120px;gap:8px;align-items:center;
  padding:6px 10px;border-bottom:1px solid var(--line-2);font-size:13px;color:var(--ink)}
.split-doc input[type=checkbox]{width:auto;margin:0}
.split-doc .sd-amt,.split-line input,.split-line select{width:100%;min-width:0}
.split-line{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1.2fr) minmax(0,1.6fr) 110px 34px;gap:6px;margin-bottom:6px}
.recon-sum{width:100%;max-width:560px}
.recon-sum td{padding:6px 0}
.recon-sum tr.tot td{border-top:1px solid var(--line);padding-top:10px}
.rail .menu-btn{display:none}
@media(max-width:860px){
  .rail{flex-wrap:wrap}
  .rail .menu-btn{display:inline-flex;align-items:center;gap:6px;border:0;cursor:pointer;
    background:rgba(255,255,255,.07);color:#EDE6F3;border-radius:4px;padding:8px 12px;font:inherit;font-size:12.5px;font-weight:600}
  body.rail-open .rail #depts{order:10;flex-basis:100%;max-height:70vh;overflow:auto}
  body.rail-open .rail .dept{display:block}
  .plat-tools{order:-1}
}
@media(max-width:600px){
  .topbar .right{flex-wrap:wrap;gap:6px}
  .topbar .right .search{flex:1 1 100%;order:5}
  .topbar .crumbs .org{display:none}
  .search .results{position:fixed;left:8px;right:8px;top:auto}
  .page-head{flex-wrap:wrap;gap:10px}
  .page-tools,.page-acts{width:100%}
  .card header{flex-wrap:wrap;gap:8px}
  .card header .tools{flex-wrap:wrap;width:100%}
  .tabs-row{flex-wrap:wrap;padding-right:0}
  .tabs-row .list-search{min-width:0;width:100%}
  .scroll,.card>table{overflow-x:auto;display:block}
  table{font-size:12.5px}
  .rs-modal{padding:8px}
  .rs-form-card .dlg-acts .btn{flex:1}
  .split-doc{grid-template-columns:20px 1fr 1fr;}
  .split-doc .muted{display:none}
  .split-line{grid-template-columns:1fr 1fr}
  .kpis,.grid.g2,.grid.g4,.grid.g5{grid-template-columns:1fr}
  .exports{display:flex;flex-wrap:wrap;gap:4px}
}

/* 18 Nov 2026 (owner): the list search boxes were white on white with a hairline
   border, so nobody saw them. A border dark enough to find at a glance. */
input.list-search,input[type=search].list-search{border:2px solid var(--muted)}
input.list-search:hover,input[type=search].list-search:hover{border-color:var(--ink-2)}
.dlg-msg{white-space:pre-line}   /* a pop-up's lines, one per line */

/* 22 Nov 2026 (owner): "Any entry field must be coloured." Every place a person
   types or picks - inputs, drop-downs, text boxes, pop-ups included - is light
   lilac, whatever white an older rule or inline style gave it. */
input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]):not([type=reset]):not([type=hidden]):not([type=image]),
select,textarea{background-color:var(--field)!important}

/* 22 Nov 2026 (owner): every pop-up has a dark purple banner across the top
   with its title in it. The card's side padding is one value (--card-px) so
   the banner can run edge to edge on every card, whatever older rule set it. */
.modal-card{--card-px:24px;padding-left:var(--card-px)!important;padding-right:var(--card-px)!important}
.modal-card:has(>h2:first-child){padding-top:0!important}
.modal-card>h2:first-child{margin:0 calc(-1 * var(--card-px)) 18px!important;padding:16px var(--card-px)!important;
  background:var(--primary)!important;color:#fff!important;font-size:18px!important;line-height:1.3;
  border-top-left-radius:inherit;border-top-right-radius:inherit}
.docview-card header{background:var(--primary);border-bottom:0}
.docview-card header h2{color:#fff}
.docview-card header .docview-x{color:#fff}

/* 22 Nov 2026 (owner): every menu line on one line - no wrapped labels, every
   row the same height. */
.rail .dept>button,.rail .home,.rail .dept .sub button{white-space:nowrap}
.rail .dept-lbl{min-width:0;overflow:hidden;text-overflow:ellipsis}
.rail .dept .sub button{overflow:hidden;text-overflow:ellipsis}
