/* IBM Plex (SIL Open Font License, web/fonts/LICENSE-IBM-Plex.txt) — served from our own server, chosen 2026-11-25 */
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/IBMPlexSans-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; } @font-face { font-family: "IBM Plex Sans"; src: url("fonts/IBMPlexSans-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; } @font-face { font-family: "IBM Plex Sans"; src: url("fonts/IBMPlexSans-SemiBold.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/IBMPlexMono-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; } @font-face { font-family: "IBM Plex Mono"; src: url("fonts/IBMPlexMono-Medium.woff2") format("woff2"); font-weight: 500 700; font-style: normal; font-display: swap; } @font-face { font-family: "Manrope"; src: url("fonts/Manrope-latin.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; } /* Manrope: SIL OFL, web/fonts/LICENSE-Manrope.txt; headings and KPI figures */
:root { /* design tokens (2026-11-27, Lovable design language: repo screenshot-to-interface-6148, tokens.css): Blutank blue (2026-12-01): clear azure accent, blue-tinted neutrals, AA contrast */
  --bg: oklch(0.979 0.003 245); --panel: oklch(1 0 0); --panel-2: oklch(0.965 0.004 245); --ink: oklch(0.25 0.013 245); --ink-2: oklch(0.38 0.013 245); --ink-3: oklch(0.51 0.012 245); --line: oklch(0.91 0.005 245);
  --accent: oklch(0.53 0.17 250); --accent-ink: oklch(0.995 0 0); --accent-soft: oklch(0.95 0.03 245);
  --good: oklch(0.43 0.1 160); --good-soft: oklch(0.95 0.029 157); --warn: oklch(0.49 0.12 71); --warn-soft: oklch(0.972 0.042 85); --bad: oklch(0.52 0.18 25); --bad-soft: oklch(0.963 0.022 25); --info: oklch(0.48 0.14 290); --info-soft: oklch(0.95 0.025 290);
  --shadow: 0 1px 3px oklch(0.2 0.01 245 / 3%); --r: 6px; --r-sm: 4px; --ctl: 36px; --touch: 44px; --side-w: 232px; --scrim: oklch(0.17 0.01 245 / 45%);
  --font: "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, sans-serif; --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace; --display: "Manrope", var(--font);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: oklch(0.18 0.009 245); --panel: oklch(0.215 0.012 245); --panel-2: oklch(0.255 0.014 245); --ink: oklch(0.93 0.007 245); --ink-2: oklch(0.82 0.01 245); --ink-3: oklch(0.7 0.012 245); --line: oklch(0.33 0.014 245);
  --accent: oklch(0.76 0.13 240); --accent-ink: oklch(0.19 0.03 250); --accent-soft: oklch(0.3 0.05 248); --good: oklch(0.76 0.13 160); --good-soft: oklch(0.29 0.04 160); --warn: oklch(0.83 0.13 83); --warn-soft: oklch(0.31 0.035 75);
  --bad: oklch(0.76 0.13 25); --bad-soft: oklch(0.31 0.035 25); --info: oklch(0.78 0.11 290); --info-soft: oklch(0.29 0.04 290); --shadow: 0 1px 3px oklch(0 0 0 / 8%); --scrim: oklch(0.1 0.01 245 / 70%); color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: oklch(0.18 0.009 245); --panel: oklch(0.215 0.012 245); --panel-2: oklch(0.255 0.014 245); --ink: oklch(0.93 0.007 245); --ink-2: oklch(0.82 0.01 245); --ink-3: oklch(0.7 0.012 245); --line: oklch(0.33 0.014 245);
  --accent: oklch(0.76 0.13 240); --accent-ink: oklch(0.19 0.03 250); --accent-soft: oklch(0.3 0.05 248); --good: oklch(0.76 0.13 160); --good-soft: oklch(0.29 0.04 160); --warn: oklch(0.83 0.13 83); --warn-soft: oklch(0.31 0.035 75);
  --bad: oklch(0.76 0.13 25); --bad-soft: oklch(0.31 0.035 25); --info: oklch(0.78 0.11 290); --info-soft: oklch(0.29 0.04 290); --shadow: 0 1px 3px oklch(0 0 0 / 8%); --scrim: oklch(0.1 0.01 245 / 70%); color-scheme: dark; }

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font: 14px/1.5 var(--font); }
a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; }
#app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
#side { background: var(--panel); border-right: 1px solid var(--line); padding: 14px 10px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.brand { display: flex; gap: 10px; align-items: center; padding: 4px 8px 14px; color: var(--ink); } .brand:hover { text-decoration: none; }
.brand small { display: block; color: var(--ink-3); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.logo { width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; border-radius: var(--r); }
#nav { flex: 1; } .nav-group { margin: 10px 0 2px; padding: 0 10px; font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .07em; }
#nav a { display: flex; gap: 12px; align-items: center; min-height: 40px; padding: 8px 12px; border-radius: var(--r); color: var(--ink-3); font-size: 13px; font-weight: 500; }
#nav a:hover { background: var(--panel-2); color: var(--ink); text-decoration: none; } #nav a.on { background: var(--accent-soft); color: var(--accent); font-weight: 500; }
#nav .ico { width: 18px; text-align: center; opacity: .85; }
.side-foot { padding: 8px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.app-version { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
main { min-width: 0; }
#top { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; min-height: 72px; padding: 10px 32px; background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
#menuBtn { display: none; } .grow { flex: 1; }
.search { position: relative; flex: 1 1 200px; min-width: 150px; max-width: 440px; } #top .who select { max-width: 280px; text-overflow: ellipsis; } .search input { width: 100%; }
.pop { position: absolute; top: 40px; left: 0; right: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); max-height: 360px; overflow: auto; z-index: 20; }
.pop a { display: flex; justify-content: space-between; padding: 8px 12px; color: var(--ink); } .pop a:hover { background: var(--panel-2); text-decoration: none; }
.who { color: var(--ink-3); font-size: 12px; display: flex; gap: 6px; align-items: center; }
#view { padding: 28px 32px 60px; max-width: 2400px; outline: none; }
h1, h2 { font-family: var(--display); } h1 { font-size: 28px; font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; margin: 0 0 6px; } h2 { font-size: 15px; font-weight: 600; margin: 0 0 10px; } h3 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-2, var(--ink-3)); margin: 0 0 8px; }
.sub { color: var(--ink-3); margin: 0 0 18px; }
.page-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; } .page-head > div:first-child { flex: 1; min-width: 260px; } .page-head .sub { margin: 2px 0 0; }
.crumbs { font-size: 12px; color: var(--ink-3); margin-bottom: 6px; } .crumbs a { color: var(--ink-3); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px 24px; margin-bottom: 16px; }
.card > h2 { display: flex; align-items: center; gap: 8px; } .card > h2 .grow { flex: 1; }
.grid { display: grid; gap: 16px; } .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.kpi .l { color: var(--ink-3); font-size: 12px; } .kpi .v { font-family: var(--display); font-size: 28px; font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; margin-top: 12px; font-variant-numeric: tabular-nums; } .kpi .d { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.kpi.bad .v { color: var(--bad); } .kpi.warn .v { color: var(--warn); } .kpi.good .v { color: var(--good); }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-size: 11px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; background: var(--panel-2); position: sticky; top: 0; cursor: pointer; user-select: none; white-space: nowrap; }
td.n, th.n { text-align: right; } td.n { font-family: var(--mono); font-size: 12.5px; } /* figures in Plex Mono: columns line up digit for digit */ tr.click { cursor: pointer; } tr.click:hover td { background: var(--panel-2); } tfoot td { font-weight: 700; border-top: 2px solid var(--line); }
.tbl-wrap { overflow: auto; max-height: 640px; border: 1px solid var(--line); border-radius: var(--r); }
.tbl-tools { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; } .tbl-tools input { max-width: 260px; }
.empty { padding: 28px; text-align: center; color: var(--ink-3); }
.badge { display: inline-block; padding: 3px 8px; border-radius: var(--r-sm); font-size: 11px; font-weight: 500; line-height: 1.25; background: var(--panel-2); color: var(--ink-2); white-space: nowrap; }
.badge.good { background: var(--good-soft); color: var(--good); } .badge.warn { background: var(--warn-soft); color: var(--warn); } .badge.bad { background: var(--bad-soft); color: var(--bad); } .badge.info { background: var(--info-soft); color: var(--info); } .badge.accent { background: var(--accent-soft); color: var(--accent); }
.chip { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--panel-2); color: var(--ink-2); }
button, .btn { font: inherit; font-size: 13px; font-weight: 500; border-radius: var(--r); border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); min-height: var(--ctl); padding: 7px 16px; box-shadow: var(--shadow); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
button:hover { background: color-mix(in oklch, var(--accent) 88%, var(--ink)); } button:disabled { opacity: .5; cursor: not-allowed; }
button.ghost, .btn.ghost { background: var(--panel); color: var(--ink); border-color: var(--line); box-shadow: none; } button.ghost:hover, .btn.ghost:hover { background: var(--panel-2); text-decoration: none; }
button.danger { background: var(--bad); border-color: var(--bad); color: var(--accent-ink); } button.good { background: var(--good); border-color: var(--good); color: var(--accent-ink); }
button.sm, .btn.sm { padding: 4px 10px; font-size: 12px; line-height: 1.4; } .btn:hover { text-decoration: none; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); min-height: var(--ctl); padding: 7px 12px; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 25%, transparent); border-color: var(--accent); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; } .form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--ink-2); font-weight: 600; }
.form .full { grid-column: 1 / -1; } .form .hint { font-weight: 400; color: var(--ink-3); }
.actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.tabs a { padding: 12px 0; color: var(--ink-3); border-bottom: 2px solid transparent; white-space: nowrap; } .tabs a.on { color: var(--accent); border-color: var(--accent); font-weight: 500; } .tabs a:hover { text-decoration: none; color: var(--ink); }
.checks { list-style: none; padding: 0; margin: 0; } .checks li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); } .checks li:last-child { border: 0; } .checks .d { color: var(--ink-3); font-size: 12px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-top: 6px; flex: none; } .dot.pass, .dot.good { background: var(--good); } .dot.warn { background: var(--warn); } .dot.fail, .dot.bad { background: var(--bad); }
.steps { display: flex; gap: 0; margin: 8px 0 16px; flex-wrap: wrap; } .steps .s { flex: 1; min-width: 120px; padding: 8px 10px; border-top: 3px solid var(--line); color: var(--ink-3); font-size: 12px; }
.steps .s.done { border-color: var(--good); color: var(--ink-2); } .steps .s.now { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.muted { color: var(--ink-3); } .mono { font-family: var(--mono); font-size: 12px; } .right { text-align: right; } .nowrap { white-space: nowrap; }
.pos { color: var(--good); } .neg { color: var(--bad); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.callout { padding: 10px 14px; border-radius: 10px; background: var(--info-soft); color: var(--ink); border: 1px solid var(--line); margin-bottom: 14px; } .callout.warn { background: var(--warn-soft); } .callout.bad { background: var(--bad-soft); } .callout.good { background: var(--good-soft); }
.mod-card { display: flex; gap: 12px; align-items: flex-start; } .mod-card .grow { flex: 1; }
.switch { position: relative; width: 40px; height: 22px; flex: none; } .switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--line); border-radius: 22px; transition: .15s; cursor: pointer; } .switch span::before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .15s; }
.switch input:checked + span { background: var(--good); } .switch input:checked + span::before { transform: translateX(18px); } .switch input:disabled + span { opacity: .5; cursor: not-allowed; }
#toast { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 50; }
#toast .t { background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow); max-width: 420px; } #toast .t.bad { background: var(--bad); color: var(--accent-ink); } #toast .t.good { background: var(--good); color: var(--accent-ink); }
#modal { position: fixed; inset: 0; background: var(--scrim); display: grid; place-items: center; z-index: 40; padding: 16px; } #modal.hidden, .hidden { display: none !important; }
.modal-card { width: min(720px, 100%); max-height: 90vh; overflow: auto; margin: 0; }
svg.chart text { fill: var(--ink-3); font-size: 11px; } svg.chart .grid { stroke: var(--line); } svg.chart .line { fill: none; stroke-width: 2; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); margin-top: 6px; } .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.bar-row { display: grid; grid-template-columns: 160px 1fr 90px; gap: 10px; align-items: center; margin: 5px 0; font-size: 12px; } .bar-row .b { height: 10px; border-radius: 5px; background: var(--accent); }
.wizard-steps { display: flex; gap: 6px; margin-bottom: 14px; } .wizard-steps span { flex: 1; height: 4px; border-radius: 2px; background: var(--line); } .wizard-steps span.on { background: var(--accent); }
@media (max-width: 1100px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* sign-in (PLT-08) */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(1200px 600px at 50% -10%, var(--accent-soft), var(--bg)); }
.auth-card { width: min(420px, 100%); padding: 28px; } .auth-card h1 { font-size: 22px; margin: 14px 0 4px; } .auth-card .sub { color: var(--ink-2); margin: 0 0 16px; }
.auth-brand { display: flex; gap: 10px; align-items: center; } .auth-brand small { display: block; color: var(--ink-3); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.auth-form { display: grid; gap: 12px; } .auth-form label { display: grid; gap: 4px; font-weight: 600; font-size: 13px; color: var(--ink-2); } .auth-form input { padding: 10px 12px; font-size: 15px; }
.wide { width: 100%; justify-content: center; padding: 10px 14px; } .btn.ghost { background: transparent; color: var(--ink-2); border-color: var(--line); }
input.otp { letter-spacing: .4em; font-family: var(--mono); font-size: 20px; text-align: center; }
.auth-msg { font-size: 13px; } .auth-msg.bad { color: var(--bad); } .auth-msg.info { color: var(--info); }
.auth-or { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 12px; margin: 14px 0; } .auth-or::before, .auth-or::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
.auth-foot { color: var(--ink-3); font-size: 12px; margin: 16px 0 0; }
.auth-steps { padding-left: 20px; display: grid; gap: 10px; color: var(--ink-2); } .auth-steps details { margin-top: 6px; font-size: 12px; }
.secret { background: var(--panel-2); border: 1px dashed var(--line); border-radius: 8px; padding: 10px 12px; margin-top: 6px; font-size: 15px; letter-spacing: .08em; user-select: all; }
.uri { word-break: break-all; font-size: 11px; letter-spacing: 0; user-select: all; margin: 6px 0; }
.recovery { columns: 2; column-gap: 32px; list-style: decimal inside; margin: 12px 0; padding: 12px 16px; background: var(--panel-2); border-radius: 8px; font-size: 15px; letter-spacing: .04em; } .recovery li { padding: 4px 0; break-inside: avoid; white-space: nowrap; } .recovery li::marker { color: var(--muted, #888); font-size: 12px; }
@media (max-width: 420px) { .recovery { columns: 1; } }
.rules { list-style: none; margin: 0; padding: 0; font-size: 12px; color: var(--ink-3); } .rules li::before { content: '○ '; } .rules li.ok { color: var(--good); } .rules li.ok::before { content: '✓ '; }
label.check { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--ink-2); margin: 8px 12px 0 0; }
#meBtn { white-space: nowrap; }
.qr-box { margin: 8px 0 10px; } .qr-box svg { display: block; width: 200px; height: 200px; border-radius: 6px; border: 1px solid var(--line); }
/* Sub-brands: Ledgerline = fund accounting suite inside Blutank */
.sb-ledgerline { --sb: #0f8b7d; --sb-soft: rgba(15,139,125,.10); }
.logo.mini { width: 22px; height: 22px; border-radius: 6px; font-size: 12px; background: var(--sb, var(--accent)); color: #fff; }
.nav-sub { margin: 12px 0 4px; padding: 6px 4px 6px; border-radius: 10px; background: var(--sb-soft); border: 1px solid color-mix(in srgb, var(--sb) 25%, transparent); }
.nav-sub-head { display: flex; gap: 8px; align-items: center; padding: 2px 6px 6px; }
.nav-sub-head b { font-size: 13px; color: var(--sb); letter-spacing: .01em; } .nav-sub-head small { display: block; font-size: 10px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
#nav .nav-sub a.on { background: color-mix(in srgb, var(--sb) 16%, transparent); color: var(--sb); }
.brand-chip { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; color: var(--sb); background: var(--sb-soft); }
.brand-chip.hidden { display: none; }
#todayChip, #fundChip { display: inline-flex; gap: 6px; align-items: center; }
#todayChip label, #fundChip label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; margin: 0; font-size: inherit; color: inherit; }
#fundChip select { border: 0; background: transparent; color: inherit; font: inherit; padding: 0; width: auto; min-width: 0; max-width: 180px; cursor: pointer; }
#fundChip.chip-on { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); font-weight: 600; }
#fundChip .linkish { background: none; border: 0; padding: 0 2px; color: inherit; cursor: pointer; font: inherit; font-size: 15px; line-height: 1; }
#todayChip input[type=date] { border: 0; background: transparent; color: inherit; font: inherit; padding: 0; width: auto; min-width: 0; cursor: pointer; }
#todayChip.chip-past { background: var(--warn-soft); color: var(--warn); font-weight: 600; }
#todayChip .linkish { background: none; border: 0; padding: 0 2px; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
/* v1.4 approvals: chip bar, status tabs with counts, bulk bar, per-column filters */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; align-items: center; } .chips .grow { flex: 1; }
.chips button.chip { border: 1px solid var(--line, transparent); cursor: pointer; font-size: 12.5px; } .chips button.chip b { margin-left: 4px; }
.chips button.chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.tabs a .count { display: inline-block; min-width: 18px; padding: 0 6px; margin-left: 4px; border-radius: 9px; background: var(--panel-2); font-size: 11.5px; text-align: center; }
.tabs a small { display: block; font-size: 11px; font-weight: 400; }
.filters { gap: 10px; align-items: end; margin-bottom: 8px; } .filters label { display: flex; flex-direction: column; font-size: 12px; color: var(--ink-2); gap: 3px; } .filters label.grow { flex: 1; min-width: 180px; }
.bulkbar { position: sticky; top: 0; z-index: 2; padding: 8px 10px; margin-bottom: 8px; border-radius: 8px; background: var(--accent-soft); gap: 8px; align-items: center; }
tr.colf th { padding-top: 0; } tr.colf input { width: 100%; min-width: 60px; font-size: 12px; padding: 3px 6px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 12px; } .kv dt { color: var(--ink-3); } .kv dd { margin: 0; }
.diff ins { background: var(--good-soft); text-decoration: none; outline: 1px solid var(--good); } .diff del { background: var(--bad-soft); color: var(--bad); }
.doctext { white-space: pre-wrap; font-size: 13px; line-height: 1.5; max-height: 70vh; overflow: auto; } .doctext mark { background: var(--warn-soft); color: inherit; outline: 1px solid var(--warn); }

/* collapsible sidebar sections */
.nav-toggle { display: flex; align-items: center; width: 100%; background: none; border: 0; cursor: pointer; text-align: left; font: inherit; }
button.nav-group { margin: 10px 0 2px; padding: 2px 10px; font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .07em; border-radius: 6px; }
button.nav-group:hover, button.nav-sub-head:hover { color: var(--ink-2); background: var(--panel-2); }
.nav-toggle > span:first-child, .nav-sub-head.nav-toggle > span:nth-child(2) { flex: 1; }
.nav-toggle .chev { font-size: 10px; color: var(--ink-3); transition: transform .15s; }
.nav-sec.folded .chev { transform: rotate(-90deg); }
.nav-sec.folded .nav-items { display: none; }
.nav-sub.folded .nav-sub-head { padding-bottom: 2px; }

/* row actions stay side by side; the approvals page uses the full width */
.row.acts { flex-wrap: nowrap; gap: 6px; white-space: nowrap; justify-content: flex-end; }
#view:has(.apr-wide) { max-width: none; }

/* approvals waiting for me */
tr.mine td { background: color-mix(in srgb, var(--accent) 9%, transparent); }
tr.mine td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.yours { margin-left: 6px; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent); padding: 1px 6px; border-radius: 999px; vertical-align: middle; }
/* action buttons in any table cell stay side by side (Open / Take / Resolve, Resolve / Assign …) */
td > .row:has(> .btn, > button) { flex-wrap: nowrap; gap: 6px; white-space: nowrap; }
td:has(> button, > a.btn) { white-space: nowrap; }
/* GL transactions: one slim sticky filter row, "More filters" panel, removable chips */
.glf-card { position: sticky; top: 0; z-index: 6; padding: 8px 10px; margin-bottom: 10px; }
.glf-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.glf-row input, .glf-row select, .glf-more input, .glf-more select { height: 30px; font-size: 13px; padding: 2px 8px; box-sizing: border-box; }
.glf-row .glf-q { flex: 1 1 220px; min-width: 160px; } .glf-row .glf-acct { width: 100px; } .glf-row select { max-width: 170px; }
.glf-dates { display: inline-flex; align-items: center; gap: 4px; } .glf-dates em { font-style: normal; color: var(--ink-3); }
.glf-more { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-2); }
.glf-more label { display: inline-flex; align-items: center; gap: 6px; } .glf-more input[type="number"] { width: 90px; }
.gl-chips { display: flex; flex-wrap: wrap; gap: 6px; } .gl-chips:not(:empty) { margin-top: 6px; }
.gl-chips .chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 2px 4px 2px 9px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); }
.gl-chips .chip button { border: 0; background: none; padding: 0 5px; height: auto; color: var(--ink-3); cursor: pointer; font-size: 14px; line-height: 1; }
/* GL transactions: filter panel, toolbar, column filters, pager */
.gl-bar { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; } .gl-bar .gl-count { flex: 1; font-size: 13px; }
.gl-inline { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); } .gl-inline select { height: 34px; }
.gl-split { display: inline-flex; } .gl-split select { height: 34px; border-radius: 8px 0 0 8px; border-right: 0; }
.gl-split button { height: 34px; border-radius: 0 8px 8px 0; white-space: nowrap; }
.gl-pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 12px; }
tr.col-filters th { padding: 4px 6px; background: var(--panel); cursor: default; top: 33px; border-bottom: 1px solid var(--line); }
tr.col-filters input { width: 100%; min-width: 64px; height: 28px; box-sizing: border-box; font-size: 12px; font-weight: 400; padding: 3px 8px; border-radius: 6px; background: var(--panel-2); border-color: transparent; }
tr.col-filters input:focus { background: var(--panel); border-color: var(--accent); }
#glt td { white-space: nowrap; } #glt td.gl-wrap { white-space: normal; min-width: 200px; max-width: 360px; }
.spin { width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
/* exception inbox highlights */
tr.hl-crit td { background: var(--bad-soft); } tr.hl-crit td:first-child { box-shadow: inset 4px 0 0 var(--bad); }
tr.hl-high td { background: var(--warn-soft); } tr.hl-high td:first-child { box-shadow: inset 4px 0 0 var(--warn); }
tr.hl-old td:nth-child(2)::after { content: ' · overdue'; color: var(--bad); font-weight: 600; font-size: 12px; }
ol.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
ol.timeline li { position: relative; padding: 6px 0 10px 16px; } ol.timeline li::before { content: ''; position: absolute; left: -6px; top: 11px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
/* journal entry */
table.je-lines td { vertical-align: top; } table.je-lines input[name="account"] { width: 100%; min-width: 300px; }
table.je-lines td:nth-child(4) { white-space: nowrap; } table.je-lines td:nth-child(4) input { display: inline-block; margin-right: 4px; }
table.je-lines td:nth-child(5) input { min-width: 160px; } table.je-lines td:nth-child(6) select { display: block; width: 100%; min-width: 170px; margin-bottom: 4px; }
table.je-lines .line-hint { font-size: 12px; } table.je-lines .line-err { font-size: 12px; }
#evkind { flex: 0 0 auto; max-width: 48%; } #evref { flex: 1 1 auto; min-width: 120px; }
/* GL master */
table.coa tr.coa-h1 td { background: var(--accent-soft); color: var(--ink); font-weight: 700; font-size: 14px; }
table.coa tr.coa-h2 td { background: var(--panel-2); font-weight: 600; } table.coa tr.coa-h2 td:first-child { padding-left: 22px; }
table.coa tr.coa-acct td:first-child { padding-left: 40px; } table.coa tr.coa-acct td:nth-child(2) { padding-left: 4px; }

.statusline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: 13px; color: var(--ink-3); margin: -4px 0 12px; }
.statusline b { color: var(--ink); font-weight: 600; } .statusline .sep { margin: 0 10px; opacity: .5; } .statusline .good { color: var(--good); font-weight: 600; }
.statusline .banner { flex-basis: 100%; margin-bottom: 8px; }
.statusline .banner.bad { padding: 8px 12px; border-radius: var(--r); background: var(--bad-soft); color: var(--bad); font-weight: 600; }

.colf-row th { padding: 2px 4px 6px; cursor: default; }
.colf { width: 100%; min-width: 60px; font-size: 12px; padding: 3px 6px; height: 24px; }
/* a panel's own display rule must not defeat the hidden attribute (More filters, the Enter-to-apply button) */
.glf-bar [hidden] { display: none !important; }
/* one line per GL row: long descriptions clip with … and show in full on hover */
td.gl-clip { max-width: 340px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* fund summary (docsetup) and Documents (stage strip, "what is it for?" choices) */
ul.plain { list-style: none; padding: 0; margin: 0; } ul.plain li { padding: 6px 0; border-bottom: 1px solid var(--line); } ul.plain li:last-child { border-bottom: 0; } details.more { display: inline; } details.more summary { display: inline; cursor: pointer; color: var(--accent); font-size: 12px; margin-left: 4px; } details.more[open] { display: block; margin-top: 4px; color: var(--ink-2); }
.stagebar { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; } .stagebar .arrow { color: var(--ink-3); } .stagebar .step { background: var(--panel-2); color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; } .stagebar .step b { margin-right: 4px; } .stagebar .step.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); } button.choice { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; text-align: left; margin: 8px 0; padding: 14px 16px; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r); } button.choice:hover { border-color: var(--accent); }
/* dropdown of tick-boxes (trial balance currencies) */ details.dd { position: relative; } details.dd summary { list-style: none; cursor: pointer; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; background: var(--panel); min-width: 150px; } details.dd .dd-list { position: absolute; z-index: 20; margin-top: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; box-shadow: var(--shadow); display: grid; gap: 4px; min-width: 150px; }
/* a button that reads as a link (onboarding stage strip) */ button.linklike { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; text-align: left; }
/* per-column filters under a grid's headers (web/lib/grid.js) */
.tbl-tools [hidden], tr.colf[hidden] { display: none !important; }
tr.colf th { padding: 4px 6px; background: var(--panel-2); cursor: default; } tr.colf input, tr.colf select { width: 100%; min-width: 70px; font-size: 12px; padding: 3px 6px; font-weight: 400; }
/* form switches (checkbox fields) and multi-select chips (web/lib/ui.js formHtml) */
.form label.tick { flex-direction: row; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-weight: 500; color: var(--ink); } .form label.tick:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.form label.tick input { appearance: none; width: 34px; height: 20px; border-radius: 999px; background: var(--line); position: relative; flex: none; cursor: pointer; transition: background .15s; margin: 0; } .form label.tick input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0,0,0,.25); } .form label.tick input:checked { background: var(--accent); } .form label.tick input:checked::after { left: 16px; }
.multi { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; } .multi-head { display: flex; align-items: baseline; gap: 6px; font-size: 12px; color: var(--ink-2); } .multi .chips { display: flex; flex-wrap: wrap; gap: 6px; max-height: 180px; overflow: auto; }
.chip { border: 1px solid var(--line); background: var(--panel); color: var(--ink-2); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 500; cursor: pointer; } .chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); } .chip.on::before { content: '✓ '; }
/* letter templates: each part's label above a full-width box */
.tplpart { margin: 0 0 14px; }
.tplpart label { display: block; margin-bottom: 4px; }
.tplpart textarea { width: 100%; min-height: 3.2em; resize: vertical; font: inherit; }
.letter p { line-height: 1.5; }

/* BRD P3.2 help on every form field (web/lib/help.js): a "?" beside the label; the text shows on hover, on keyboard focus and on tap */
.help { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-left: 4px; border-radius: 50%; font-size: 11px; font-weight: 600;
  color: var(--ink-3); border: 1px solid var(--line, currentColor); cursor: help; position: relative; vertical-align: middle; }
.help:hover::after, .help:focus::after { content: attr(title); position: absolute; left: 0; top: calc(100% + 4px); z-index: 30; width: max-content; max-width: min(320px, 80vw);
  padding: 6px 8px; border-radius: 6px; background: var(--ink, #222); color: var(--bg, #fff); font-weight: 400; font-size: 12px; line-height: 1.4; white-space: normal; }
/* the grid's Excel import (web/lib/grid-import.js) */
.imp-errors td { color: var(--bad, #b00020); } .imp-ok { color: var(--good, #1e7d32); }
