/* Dark mode (html.night, set by finoice-night.js; Settings → Appearance → Dark Mode).
   Reworked 24 Nov 2026 to read like a finance tool (owner agreed): charcoal page, neutral grey cards with no blue tint,
   one calm accent, a solid primary button, softer chart and status colours, no decorative background.
   Only colours change here; layout, sizes and the invoice paper stay as they are. */
html.night { color-scheme: dark; background: #121317; }
html.night body { background: transparent; }
html.night .silkbg { background: #121317; }
html.night .silkbg svg, html.night .silkbg::after { display: none; }

html.night .glass-app {
  --ink: #ececee; --ink-2: #c3c5cb; --muted: #94969d; --line: rgba(255, 255, 255, .13); --line-2: rgba(255, 255, 255, .18);
  --silk-blue-deep: #8fa9df; --emerald: #5cbf93; --emerald-bg: rgba(92, 191, 147, .13); --ochre: #dba36f; --ochre-bg: rgba(219, 163, 111, .13);
  --plum: #bfa3d3; --plum-bg: rgba(191, 163, 211, .13); --red: #e88a80; --red-bg: rgba(232, 138, 128, .13); --silk-blue-soft: rgba(143, 169, 223, .14);
  --focus: #8fa9df; --glass-edge: rgba(255, 255, 255, .13); --inner-line: rgba(255, 255, 255, .11);
  color: var(--ink);
}
/* The window frame and the cards: solid charcoal, a faint edge */
html.night .glass-app .shell { background: #121317; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
html.night .glass-app .side, html.night .glass-app .topbar { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
html.night .glass-app .panel:not(.form-card), html.night .glass-app .nudges a { background: #1c1d22; border: 1px solid rgba(255, 255, 255, .09); box-shadow: none; }
/* The form's content area is a .panel too: inside a form window it is flat (no card), as by day; only a form opened as
   its own page shows it as a card. (Owner: New Bill showed an extra card in the middle.) */
html.night:not(.embed) .glass-app .panel.form-card { background: #1c1d22; border: 1px solid rgba(255, 255, 255, .09); box-shadow: none; }
html.night .glass-app .nudges { background: none; border: 0; box-shadow: none; padding: 0; gap: 8px; }
html.night .glass-app .nudges a:hover { background: #24262c; }
html.night .glass-app .nudges .ni { background: rgba(155, 184, 242, .16); color: var(--silk-blue-deep); }
html.night .glass-app .nudges a.late .ni { background: rgba(255, 149, 139, .17); color: var(--red); }
/* Sidebar */
html.night .glass-app .company:hover, html.night .glass-app .nav-group a:hover, html.night .glass-app .side-foot a:hover { background: rgba(255, 255, 255, .1); }
html.night .glass-app .nav-group a.on, html.night .glass-app .side a.on { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
html.night .glass-app .side a.on .lbl, html.night .glass-app .side a.on svg { color: #fff; }
html.night .glass-app .nav-group a .n.n-info { background: rgba(255, 255, 255, .15); color: var(--ink); }
html.night .glass-app .co-switch .av, html.night .glass-app .company .av { background: rgba(255, 255, 255, .16); color: #fff; }
/* Text colours that were fixed for a white page */
html.night .glass-app .t-indigo, html.night .glass-app .link { color: var(--silk-blue-deep); }
html.night .glass-app .chart-y span::after { border-top-color: rgba(255, 255, 255, .12); }
/* Buttons and fields */
html.night .glass-app .search .input, html.night .glass-app .btn-ghost, html.night .glass-app .icon-btn { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: var(--ink); }
html.night .glass-app .search .input::placeholder, html.night .glass-app .sheet input::placeholder { color: var(--muted); }
html.night .glass-app .icon-btn .acct-av { color: var(--ink); }
html.night .glass-app .btn-primary, html.night .glass-app .btn-primary:hover { background: #3d5ba8; box-shadow: none; transform: none; }
html.night .glass-app .btn-primary:hover { background: #4766b5; }
html.night .glass-app kbd { background: rgba(255, 255, 255, .1); color: var(--ink-2); border-color: rgba(255, 255, 255, .16); }
html.night .glass-app .tip, html.night .glass-app .toast { background: #2b2d33; }

/* Pop-up windows and menus: dark glass, solid enough to read over the dashboard behind them */
html.night .glass-app .sheet, html.night .glass-app .menu, html.night .glass-app .cmdk-box { background: #1a1b20; border-color: rgba(255, 255, 255, .16); box-shadow: 0 30px 80px rgba(0, 0, 0, .7); color: var(--ink); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
html.night .glass-app .sheet-fog, html.night .glass-app .cmdk { background: rgba(0, 0, 0, .5); }
html.night .glass-app .sheet-body, html.night .glass-app .sheet-f, html.night .glass-app .st-wrap, html.night .glass-app .st-row { border-color: rgba(255, 255, 255, .11); }
html.night .glass-app .sheet th, html.night .glass-app .sheet-table thead th { background: #1a1b20; }   /* same as the window, so a sticky header shows no band */
html.night .glass-app .sheet-table td { border-bottom-color: rgba(255, 255, 255, .08); }
html.night .glass-app .cmdk-list .it[aria-selected="true"] { background: rgba(255, 255, 255, .12); color: var(--ink); box-shadow: none; }
html.night .glass-app .bl-kpi, html.night .glass-app .bas-card, html.night .glass-app .rp-kpi, html.night .glass-app .rp-card, html.night .glass-app .cu-tile,
html.night .glass-app .st-card, html.night .glass-app .st-doc { background: #1f2026; border-color: rgba(255, 255, 255, .09); box-shadow: none; }
html.night .glass-app .st-nav { background: rgba(255, 255, 255, .03); border-right-color: rgba(255, 255, 255, .11); }
html.night .glass-app .st-pane { background: none; }
html.night .glass-app .st-cf { background: rgba(255, 255, 255, .04); border-top-color: rgba(255, 255, 255, .11); }
html.night .glass-app .st-nav button:hover { background: rgba(255, 255, 255, .09); }
html.night .glass-app .st-nav button[aria-current="true"] { background: rgba(255, 255, 255, .17); color: #fff; }
html.night .glass-app .st-doc .lh { border-bottom-color: rgba(255, 255, 255, .5); }
html.night .glass-app .st-doc .ln { background: rgba(255, 255, 255, .1); }
html.night .glass-app .st-doc .pay { border-top-color: rgba(255, 255, 255, .13); }
html.night .glass-app .st-seg, html.night .glass-app .st-eg { background: rgba(255, 255, 255, .08); }
html.night .glass-app .st-seg button[aria-pressed="true"] { background: rgba(255, 255, 255, .22); color: #fff; }
html.night .glass-app .st-f input, html.night .glass-app .st-f select, html.night .glass-app .st-f textarea, html.night .glass-app .sheet input[type="search"],
html.night .glass-app .sheet input[type="text"], html.night .glass-app .sheet .input { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .17); color: var(--ink); }
html.night .glass-app .sheet-tabs button, html.night .glass-app .cu-chip, html.night .glass-app .bl-tag, html.night .glass-app .bas-tabs button, html.night .glass-app .rp-tabs button,
html.night .glass-app .rp-pdf { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .13); color: var(--ink-2); }
html.night .glass-app .sheet-tabs button[aria-pressed="true"], html.night .glass-app .sheet-tabs button[aria-selected="true"], html.night .glass-app .sheet-tabs button.on,
html.night .glass-app .cu-chip[aria-pressed="true"], html.night .glass-app .cu-chip.on, html.night .glass-app .bl-tag.on, html.night .glass-app .bl-tag[aria-pressed="true"],
html.night .glass-app .bas-tabs button[aria-selected="true"], html.night .glass-app .bas-tabs button.on, html.night .glass-app .bl-kpi[aria-pressed="true"], html.night .glass-app .bl-kpi.on,
html.night .glass-app .rp-tabs button[aria-selected="true"], html.night .glass-app .bas-seg button[aria-pressed="true"] { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .32); color: #fff; }
html.night .glass-app .bas-seg { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .13); }
html.night .glass-app .cu-ind { background: rgba(255, 255, 255, .17); }
html.night .glass-app .cu-av { background: rgba(155, 184, 242, .18); color: var(--ink); }
html.night .glass-app .cu-addrow { color: var(--silk-blue-deep); }
html.night .glass-app .sheet code { color: var(--ink); background: rgba(255, 255, 255, .09); }
html.night .glass-app .bas-notes li.warn { color: var(--ochre); }
html.night .glass-app .side .nav-group a.on svg, html.night .glass-app .side .nav-group a.on svg.i { color: #fff; stroke: #fff; }

/* ---------- Form windows at night (New Invoice, Quote, Bill, Receipt: their own pages inside the window) ---------- */
html.night .sheet-frame iframe { color-scheme: dark; }   /* must match the page inside, or the frame is painted white */
html.night .form-page .form-card input[type="text"], html.night .form-page .form-card input[type="date"], html.night .form-page .form-card input[type="number"],
html.night .form-page .form-card input[type="email"], html.night .form-page .form-card input[type="tel"], html.night .form-page .form-card select, html.night .form-page .form-card textarea,
html.night .form-page input.input, html.night .form-page .field input, html.night .form-page .field select, html.night .form-page .field textarea {
  background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .17); color: var(--ink); }
html.night .form-page input::placeholder, html.night .form-page textarea::placeholder { color: var(--muted); }
html.night .form-page input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1) opacity(.7); }
html.night .form-page .form-foot, html.night.embed .form-page .form-foot { background: rgba(255, 255, 255, .04); border-top-color: rgba(255, 255, 255, .11); }
html.night.embed .form-page .form-scroll, html.night .form-page .item-row, html.night .form-page .items-header, html.night .form-page .total-row, html.night .form-page .total-final { border-color: rgba(255, 255, 255, .11); }
html.night.embed .form-page .embed-close { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: var(--ink); }
html.night .form-page .cust-info { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); color: var(--ink-2); }
html.night .form-page #searchDropdown, html.night .form-page .fin-select, html.night .fin-select { background: #1f2026; border-color: rgba(255, 255, 255, .14); box-shadow: 0 14px 36px rgba(0, 0, 0, .6); color: var(--ink); }
html.night .form-page #searchDropdown > div:last-child { color: var(--silk-blue-deep) !important; }
html.night .fin-pick .fp-opt.on, html.night .fin-pick .fp-new.on, html.night .fin-select .fs-opt.on { background: rgba(255, 255, 255, .09); }
html.night .fin-pick .fp-av { background: rgba(155, 184, 242, .18); color: var(--ink); }
html.night .fin-pick .fp-new, html.night .fin-select .fs-add { color: var(--silk-blue-deep); border-top-color: rgba(255, 255, 255, .1); }
html.night .fin-select .fs-opt .i { stroke: var(--ink); }
html.night .form-page .btn-add-line { color: var(--silk-blue-deep); }

/* ---------- Invoice / quote viewer at night: a dark desk around the paper. The paper itself (Invoice.html) stays white. ---------- */
html.night #viewLayer .iv-desk { background: #0e0f12; }
html.night #viewLayer .iv-body { border-top-color: rgba(255, 255, 255, .11); }
html.night #viewLayer .iv-side { background: rgba(255, 255, 255, .03); border-left-color: rgba(255, 255, 255, .11); }
html.night #viewLayer .iv-sec { border-bottom-color: rgba(255, 255, 255, .11); }
html.night #viewLayer .iv-head .icon-btn, html.night #viewLayer .iv-zoom { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: var(--ink); }
html.night #viewLayer .iv-time li::before { background: #1f2026; border-color: rgba(255, 255, 255, .35); }
html.night #viewLayer .iv-time li::after { background: rgba(255, 255, 255, .18); }
html.night #viewLayer .iv-time li.done::before { background: var(--silk-blue-deep); border-color: var(--silk-blue-deep); }
html.night #viewLayer .iv-frame { box-shadow: 0 12px 40px rgba(0, 0, 0, .6); }

/* ---------- Report and BAS print preview at night: dark toolbar and desk; the A4 pages stay white ---------- */
html.night .sheet-baspv .pv-tools { background: rgba(255, 255, 255, .04); border-top-color: rgba(255, 255, 255, .11); }
html.night .sheet-baspv .pv-tools button, html.night .sheet-baspv .pv-tools .pv-seg { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .13); color: var(--ink-2); }
html.night .sheet-baspv .pv-tools [aria-pressed="true"] { background: rgba(255, 255, 255, .2); color: #fff; }
html.night .baspv-frame { background: #0e0f12; border-top-color: rgba(255, 255, 255, .11); color-scheme: dark; }
html.night .form-page .bill-drop { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .18); color: var(--ink-2); }
html.night .form-page .bill-drop u, html.night .form-page .bill-drop small u { color: var(--silk-blue-deep); }

/* Customer / supplier details card, and the small pop-up menus in the Bills and Receipts windows */
html.night .glass-app .cu-card, html.night .glass-app .bl-pop, html.night .glass-app .rc-pop { background: #1c1d22; border-color: rgba(255, 255, 255, .12); box-shadow: 0 20px 50px rgba(0, 0, 0, .6); color: var(--ink); }
html.night .glass-app .cu-form-foot { background: #18191e; border-top-color: rgba(255, 255, 255, .1); }
html.night .glass-app .cu-field .input, html.night .glass-app .cu-card .input { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .17); color: var(--ink); }
html.night .glass-app .cu-form, html.night .glass-app .people-layer > .cu-form { background: rgba(0, 0, 0, .55); }
/* Inside a form window the page frame is see-through, as by day: the window behind gives the colour */
html.night.embed .glass-app .shell { background: none; border: 0; }

/* Charts and status colours: same hues as by day, a little softer on the dark page */
html.night .glass-app .chart i, html.night .glass-app .rc-bars i, html.night .glass-app .age-bar i, html.night .glass-app .rp-hbar i, html.night .glass-app .rr-arc { filter: saturate(.78) brightness(.92); }
html.night .glass-app .pill { filter: saturate(.85); }

/* ---------- Dark-mode scan, 24 Nov 2026: everything still white, grey-on-dark or navy-on-dark ---------- */
/* Navy text and icons (by day they sit on white): light in the dark */
html.night .glass-app .cu-pen, html.night .glass-app .rc-ico .i, html.night .glass-app .bl-tag .v, html.night .glass-app .bas-brk code,
html.night .glass-app .iv-undo button, html.night .glass-app .iv-cust a, html.night .glass-app .gst-calc .r.tot b, html.night .glass-app .metrics b.t-indigo,
html.night .form-page .bd-link, html.night .form-page .bill-drop .i { color: var(--silk-blue-deep); }
html.night .glass-app .cu-pen, html.night .glass-app .rc-ico { background: rgba(255, 255, 255, .08); }
html.night .glass-app .cu-pen:hover { background: rgba(255, 255, 255, .15); }
html.night .glass-app .side .nav-group a .n.n-warn { background: rgba(219, 163, 111, .16); color: var(--ochre); }

/* Navy fills: on charcoal a navy shape disappears, so active and filled things use the dark-mode accent */
html.night .glass-app .pv-seg button[aria-pressed="true"], html.night .glass-app .bas-prog .bar i, html.night .glass-app .gst-calc .code.eq,
html.night .glass-app .cu-addrow:hover, html.night .glass-app .cu-addrow:focus-visible, html.night .glass-app .sheet-rp .rp-foot .rp-pdf:hover,
html.night .glass-app .iv-time li.done::before, html.night .glass-app .st-box:not(.has), html.night .glass-app .st-doc .lg:not(.has),
html.night .form-page .nc-save, html.night .form-page .save-split, html.night .form-page .rc-switch input:checked + .sw { background: #3d5ba8; border-color: #3d5ba8; color: #fff; }
html.night .glass-app .bas-prog .bar { background: rgba(255, 255, 255, .1); }
/* Tooltips, toasts, status notes: a raised grey with a hairline, not navy */
html.night .glass-app .tip, html.night .glass-app .toast, html.night .glass-app .nav-group a::after, html.night .glass-app .side-foot a::after,
html.night .glass-app .side-foot .side-toggle::after, html.night .glass-app .company::after, html.night .glass-app .side-rail::after,
html.night .form-page #statusNote, html.night .form-page #finToast { background: #2b2d33; color: var(--ink); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 10px 30px rgba(0, 0, 0, .5); }
html.night .glass-app .bc-tip, html.night .glass-app .rc-tip { background: #24262c; border-color: rgba(255, 255, 255, .12); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); color: var(--ink-2); }
/* Bills: the bar that appears when bills are ticked */
html.night .glass-app .bl-bulk { background: #2b2d33; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); color: var(--ink); }
html.night .glass-app .bl-bulk button { background: rgba(255, 255, 255, .1); color: var(--ink); }
html.night .glass-app .bl-bulk button:hover { background: rgba(255, 255, 255, .18); }
/* White hovers and white buttons in windows */
html.night .glass-app .sheet-h .icon-btn, html.night .glass-app .iv-acts .btn-ghost, html.night .glass-app .pv-seg { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .15); color: var(--ink); }
html.night .glass-app .sheet-tabs button:hover, html.night .glass-app .iv-acts .btn-ghost:hover, html.night .glass-app .sheet-h .icon-btn:hover { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .22); }
html.night .glass-app .people-layer > .cu-form .cu-form-foot { background: #18191e; }
/* Forms: a field turned white when focused; menus and the new-customer box were white */
html.night .form-page .form-card input:focus-visible, html.night .form-page .form-card select:focus-visible, html.night .form-page .form-card textarea:focus-visible,
html.night .form-page .form-card textarea:focus { background: rgba(255, 255, 255, .1); border-color: #6f8fd6; box-shadow: 0 0 0 3px rgba(111, 143, 214, .25); }
html.night .form-page .bill-items input, html.night .form-page .bill-items select, html.night .form-page .bill-items textarea { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .17); color: var(--ink); }
html.night .form-page .bill-drop:hover, html.night .form-page .bill-drop.drag-over { background: rgba(255, 255, 255, .09); border-color: var(--silk-blue-deep); }
html.night .form-page .save-as-menu, html.night .form-page .save-dropdown-menu, html.night .form-page .nc-modal { background: #1f2026; border-color: rgba(255, 255, 255, .14); box-shadow: 0 16px 40px rgba(0, 0, 0, .6); color: var(--ink); }
html.night .form-page .save-as-menu button, html.night .form-page .save-dropdown-menu a { color: var(--ink); }
html.night .form-page .save-as-menu button:hover, html.night .form-page .save-as-menu button:focus-visible, html.night .form-page .save-dropdown-menu a:hover { background: rgba(255, 255, 255, .09); }
html.night .form-page .save-as-menu button[aria-checked="true"]::before { border-color: var(--ink); }
html.night .form-page .nc-modal input { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .17); color: var(--ink); }
html.night .form-page .nc-cancel { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .17); color: var(--ink); }
/* Scrollbars follow the dark page */
html.night, html.night * { scrollbar-color: rgba(255, 255, 255, .22) transparent; }
/* Hover and selected states that turn white by day: a light lift in the dark instead */
html.night .glass-app .table tbody tr:hover td, html.night .glass-app .sheet-table tbody tr:hover td, html.night .glass-app .todo li:hover { background: rgba(255, 255, 255, .045); }
html.night .glass-app .menu a:hover, html.night .glass-app .menu a:focus-visible, html.night .glass-app .co-switch:hover,
html.night .glass-app .topbar.greet .actions .btn-ghost:hover, html.night .form-page .action-btns .btn-ghost:hover { background: rgba(255, 255, 255, .1); color: var(--ink); }
html.night .form-page .btn-add-line { border-color: rgba(255, 255, 255, .2); color: var(--silk-blue-deep); }
html.night .form-page .btn-add-line:hover { border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .07); color: var(--ink); }
html.night .form-page .action-btns .btn-ghost { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); color: var(--ink); }
html.night .glass-app .rc-ico .i { color: var(--ink-2); stroke: currentColor; }
html.night .form-page .rc-hints p { background: rgba(219, 163, 111, .12); color: #e3b98d; }
/* Receipt form, layout A */
html.night .form-page .rc-amtcard { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); }
html.night .form-page .rc-amtcard .rc-switch { border-top-color: rgba(255, 255, 255, .08); }
html.night .form-page .rc-drop { background: rgba(255, 255, 255, .03); border-color: rgba(255, 255, 255, .18); }
html.night .form-page .rc-drop .bd-ico { background: rgba(255, 255, 255, .07); }
html.night .form-page .rc-scan.busy { background: rgba(255, 255, 255, .06); color: var(--ink-2); }
html.night .form-page .rc-scan.ok { background: rgba(92, 191, 147, .12); color: #7fd3ac; }
html.night .form-page .rc-scan.warn { background: rgba(219, 163, 111, .12); color: #e3b98d; }
html.night .form-page.receipt-form input.scanned { border-color: rgba(92, 191, 147, .55); background: rgba(92, 191, 147, .07); }

/* ---------- Option A (owner, 24 Nov 2026, from web-app-preview/dark-accent-preview.html) ----------
   White main buttons; links and figures in plain white; one clean bright blue only for charts, selections, progress
   and switches. Same roles as by day (main button = the strongest contrast, blue = charts and selections, green = paid,
   red = overdue); only the values change for the dark page. */
html.night .glass-app { --silk-blue-deep: #8fb8ff; --silk-blue-soft: rgba(77, 141, 255, .15); --focus: #4d8dff; }
/* Main buttons */
html.night .glass-app .btn-primary, html.night .glass-app .btn-primary:hover, html.night .form-page .nc-save, html.night .form-page .save-split,
html.night .glass-app .st-save, html.night .glass-app .sheet-rp .rp-foot .rp-pdf:hover { background: #f2f2f4; border-color: #f2f2f4; color: #111216; box-shadow: none; }
html.night .glass-app .btn-primary:hover, html.night .form-page .nc-save:hover, html.night .form-page .save-split:hover { background: #fff; }
html.night .glass-app .btn-primary:disabled, html.night .glass-app .btn-primary:disabled:hover { background: rgba(255, 255, 255, .16); border-color: transparent; color: rgba(255, 255, 255, .5); opacity: 1; }
html.night .glass-app .btn-primary svg, html.night .glass-app .btn-primary .i { color: #111216; stroke: currentColor; }
/* Links and figures: plain white, not blue */
html.night .glass-app .link, html.night .glass-app .t-indigo, html.night .glass-app .metrics b.t-indigo, html.night .glass-app .gst-calc .r.tot b,
html.night .glass-app .iv-cust a, html.night .glass-app .iv-undo button, html.night .glass-app .cu-addrow, html.night .glass-app .bl-tag .v,
html.night .form-page .bd-link, html.night .form-page .btn-add-line, html.night .form-page #searchDropdown > div:last-child,
html.night .fin-pick .fp-new, html.night .fin-select .fs-add, html.night .glass-app .cu-pen, html.night .form-page .bill-drop u { color: var(--ink) !important; }
/* Selections: a blue tint with blue text */
html.night .glass-app .nav-group a.on, html.night .glass-app .side a.on, html.night .glass-app .st-nav button[aria-current="true"],
html.night .glass-app .sheet-tabs button[aria-pressed="true"], html.night .glass-app .sheet-tabs button[aria-selected="true"], html.night .glass-app .sheet-tabs button.on,
html.night .glass-app .cu-chip[aria-pressed="true"], html.night .glass-app .cu-chip.on, html.night .glass-app .bl-tag.on, html.night .glass-app .bl-tag[aria-pressed="true"],
html.night .glass-app .bas-tabs button[aria-selected="true"], html.night .glass-app .bas-tabs button.on, html.night .glass-app .bl-kpi[aria-pressed="true"], html.night .glass-app .bl-kpi.on,
html.night .glass-app .rp-tabs button[aria-selected="true"], html.night .glass-app .bas-seg button[aria-pressed="true"], html.night .glass-app .st-seg button[aria-pressed="true"],
html.night .glass-app .pv-seg button[aria-pressed="true"], html.night .glass-app .cu-ind { background: rgba(77, 141, 255, .16); border-color: transparent; color: #8fb8ff; box-shadow: none; }
html.night .glass-app .side a.on .lbl, html.night .glass-app .side a.on svg, html.night .glass-app .side .nav-group a.on svg.i { color: #8fb8ff; stroke: #8fb8ff; }
/* Progress, switches, timeline, focus */
html.night .glass-app .bas-prog .bar i, html.night .glass-app .iv-time li.done::before, html.night .form-page .rc-switch input:checked + .sw { background: #4d8dff; border-color: #4d8dff; }
html.night .glass-app .st-box:not(.has), html.night .glass-app .st-doc .lg:not(.has), html.night .glass-app .gst-calc .code.eq { background: rgba(255, 255, 255, .12); color: var(--ink); }
html.night .form-page .form-card input:focus-visible, html.night .form-page .form-card select:focus-visible, html.night .form-page .form-card textarea:focus-visible, html.night .form-page .form-card textarea:focus { border-color: #4d8dff; box-shadow: 0 0 0 3px rgba(77, 141, 255, .25); }
/* Charts: income / invoiced in the bright blue, expenses in grey, paid stays green */
html.night .glass-app .chart i, html.night .glass-app .rc-bars i, html.night .glass-app .age-bar i, html.night .glass-app .rp-hbar i, html.night .glass-app .rr-arc { filter: none; }
html.night .glass-app .face .chart.pl .inc, html.night .glass-app .face .chart.pl.col .inv, html.night .glass-app .metrics .key.inc::before, html.night .glass-app .metrics .key.inv::before,
html.night .glass-app .a0, html.night .glass-app .age-rows i.a0::after, html.night .glass-app .bas-chart .s, html.night .glass-app .bas-leg .s { background: #4d8dff; }
html.night .glass-app .face .chart.pl .exp, html.night .glass-app .metrics .key.exp::before { background: #8a8f9c; }
html.night .glass-app [style*="3d6bb3" i] { background: #4d8dff !important; stroke: #4d8dff; }
html.night .glass-app [style*="b7802a" i] { background: #8a8f9c !important; stroke: #8a8f9c; }
html.night .glass-app .rc-line polyline { stroke: #ececee; }
html.night .glass-app .rc-dot { background: #ececee !important; border-color: #121317; }
/* Business badge */
html.night .glass-app .co-badge .av { background: linear-gradient(155deg, #3a3c45 0%, #26272d 75%); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 0 0 1px rgba(255, 255, 255, .08); }
html.night .glass-app .co-badge .av.has-logo { background: #fff; }
/* Selected customer / supplier row: a plain light tint, no coloured edge (owner) */
html.night .glass-app .cu-row[aria-current="true"] { background: rgba(77, 141, 255, .16); box-shadow: none; border-color: transparent; }
html.night .glass-app .cu-row:hover { background: rgba(255, 255, 255, .05); }

/* Statements window: the selected customer is a blue tint with no edge (owner); the paper stays white */
html.night .glass-app .soa-split, html.night .glass-app .soa-tools { border-color: rgba(255, 255, 255, .09); }
html.night .glass-app .soa-split .cu-left { border-color: rgba(255, 255, 255, .09); }
html.night .glass-app .soa-desk { background: #0e0f12; }
html.night .glass-app #soaList .cu-row[aria-current="true"] { background: rgba(77, 141, 255, .16); box-shadow: none; border: 0; outline: 0; }
html.night .glass-app #soaList .cu-amt small.cu-late { color: #e88a80; }
