/* Frontend UX standard — application-level rules shared by tenant screens.
   Keep this sheet last in index.html. It owns layout decisions that should be consistent
   across screens; screen-specific styles stay with the screen's existing brand sheets. */

body.vt{
  --ux-space-1:4px;
  --ux-space-2:8px;
  --ux-space-3:12px;
  --ux-space-4:16px;
  --ux-space-5:24px;
  --ux-list-top-gutter:26px;
  --ux-card-pad-compact:var(--ux-space-3) 14px;
  --ux-card-pad-form:var(--ux-space-4);
  --ux-empty-pad:var(--ux-space-5) var(--ux-space-3);
}

/* Screen headings are navigation anchors, not hero copy. Keep them compact so the first useful
   control remains visible on a phone. */
body.vt .page-head h1,
body.vt h1.page-title{font-size:20px;line-height:1.2;font-weight:750;letter-spacing:-.015em;margin-top:0}
body.vt .eyebrow{display:none}
body.vt .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* One shared previous-place control. It uses the recorded route stack, so a report drill-down
   returns to the exact report/filter the user left rather than a hardcoded dashboard. */
body.vt .nav-pill{display:inline-flex;align-items:center;gap:4px;min-height:28px;padding:4px 9px;
  margin:0 0 8px;border:1px solid var(--line);border-radius:999px;background:var(--surface-2);
  color:var(--ink);font-size:12px;font-weight:650;line-height:1.2;cursor:pointer}
body.vt .nav-pill:hover{border-color:var(--brand);background:var(--brand-faint);color:var(--ink)}

/* ═══════════════════════════════════════════════════════════════════════════════════════════
   CARD PADDING CONTRACT — the single source of truth for every tenant card's inset.
   Screens must NOT re-declare card padding in their own sheets or markup; opt into a case here.
   Three insets, keyed off two tokens plus a reset:
     • --ux-card-pad-compact (12px 14px) — the default inset for a card's content.
     • --ux-card-pad-form    (16px)       — a little more room for grouped form controls.
     • 0                                  — a reset, where a card delegates all inset to a child.
   A card lands on the compact default whether or not it uses a .card-body wrapper:
     1. .card is reset to 0 so an outer card inset never stacks with Tina4's 16px .card-body inset.
     2. a real .card-body carries the compact inset.
     3. a card that holds its content DIRECTLY (no .card-body child — batch, the sales/purchase
        editors, and more) gets the SAME compact inset via the :has() fallback, so every card is
        spaced either way. :not(:has(> .card-body)) leaves delegating cards on 0 (their .card-body
        supplies the inset). All four exceptions below are 0,3,1 and sit after these, so they win.
   ═══════════════════════════════════════════════════════════════════════════════════════════ */
body.vt .card{padding:0}
body.vt .card-body{padding:var(--ux-card-pad-compact)}
body.vt .card:not(:has(> .card-body)){padding:var(--ux-card-pad-compact)}
/* RESET exception — Contacts (.ct-page) has an older, more specific page rule that would add a
   second 6–8px inset; hold it to the same single-inset contract as Service Items. */
body.vt .ct-page .card{padding:0}
/* DESKTOP EXCEPTION: document editor card inset (owner 2026-11-10).
   ...but the document editor's cards take the compact inset at ALL widths, not just phone (owner
   2026-11-10: "fix the padding" — the ct-page reset above left them flush to the card edge on
   desktop). Same 0,3,1 as the reset, placed after it so it wins; the phone-only duplicate further
   down in this file is now subsumed by this. */
body.vt .de-page .de-card{padding:var(--ux-card-pad-compact)}
/* END DESKTOP EXCEPTION */
/* FORM exception — edit panels, rule editors, and Settings' bare .set-stack sections take the FORM
   inset instead of compact: a little more room for grouped controls, still ONE flat inset (never a
   nested card + body). This is the ONE place form padding is granted — a screen opts in with one of
   these classes rather than re-declaring padding. (.set-stack .card is a bare section card; the
   three .card-body.* are form bodies. All 0,3,1, all after the compact rules, so they win.) */
body.vt .card-body.ct-edit,
body.vt .card-body.rule-form,
body.vt .card-body.set-form,
body.vt .set-stack .card{padding:var(--ux-card-pad-form)}
/* DESKTOP EXCEPTION: Settings card inset (owner 2026-11-11).
   Every Settings card takes the form inset at every width ("the padding is terrible": the Chart tab's
   account form and year-end card had the 12/14px compact inset on a desktop — and none before the compact rule — while
   a phone gave them 16px). Was a phone-only rule in the 767px block below. A tab's pane is the standard screen's body
   after the top band holding the tab strip: since 22 Nov 2026 the old `.set-tabs ~ *` reached nothing and Chart of
   Accounts, Asset Types, Branding & Comms and Create an API key were 12/14px again (Callan, 2 Dec 2026: "yes bring back
   the padding"). */
body.vt .screen-top:has(> .set-tabs) ~ .screen-body .card:not(:has(> .card-body)){padding:var(--ux-card-pad-form)}
/* END DESKTOP EXCEPTION */

/* `.alert` is the legacy error banner, but several forms correctly add `.alert-ok` after a
   successful save. The generic tenant alert rule was more specific and painted those successes
   red. Keep failures red and make every explicit success banner use the green semantic tone. */
body.vt .alert.alert-ok{background:color-mix(in srgb,var(--ok) 12%,transparent);border-color:var(--ok);color:var(--ok)}
/* sleek-date owns its inner input and calendar button. Styling the custom-element host as a second
   .form-control creates the double border seen in Batch Invoicing and shifts the icon. */
body.vt sleek-date.form-control{display:block;height:auto;min-height:0;padding:0;border:0;background:transparent;box-shadow:none}
body.vt .doc-page .page-head.with-action{margin-bottom:var(--ux-space-3)}
/* Service Items is the reference list surface. Other list screens opt into this contract rather
   than recreating top padding or action spacing in their templates. */
body.vt .ux-list-page{padding-top:var(--ux-list-top-gutter)}
/* Service Items and Batch Invoices share one list rhythm: action, count, optional form, list. */
body.vt .bt-list-page .page-head.with-action{padding-top:0;padding-bottom:0;margin:0 0 var(--ux-space-2)}
body.vt .bt-list-page .bt-list-tools{justify-content:flex-start}
body.vt .bt-new-card{margin-top:0;margin-bottom:var(--ux-space-3)}
body.vt .bt-new-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:var(--ux-space-3)}
body.vt .bt-new-head h3{margin:0;font-size:16px}
body.vt .bt-new-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--ux-space-3)}
body.vt .bt-count{margin:0 0 var(--ux-space-4);align-self:flex-start}
body.vt .list-count{font-size:16px;line-height:1.2;color:var(--muted)}
body.vt .bt-card .bt-delete{margin-left:auto;display:inline-flex;align-items:center}
body.vt .inv-row .inv-row-delete{align-self:center;margin-left:auto}
body.vt .inv-toolbar{display:flex;flex-direction:column;align-items:flex-start;gap:var(--ux-space-2)}
body.vt .inv-toolbar>.inv-count{margin:0;align-self:flex-start}
/* The single shared list action row: search and primary Add action.  It is the only list
   element that sticks, which keeps Batch Templates, Service Items and Contacts compact. */
body.vt .ux-list-actions{
  display:flex;align-items:center;gap:var(--ux-space-2);width:100%;
  /* Match the landing-page gutter after the row becomes sticky; otherwise it visibly jumps
     upward against the app bar as soon as the list starts moving. */
  position:sticky;top:calc(var(--bar-h) + var(--ux-list-top-gutter));z-index:20;
  background:var(--bg);padding:0;margin:0;
}
/* ── The standard screen (src/shared/screen.js; plan/standard-screen.md) ─────────────────────────────────────────────
   head + filters on top, the body the only part that scrolls, the foot at the bottom — the frame fills the window under
   the app bar (and above a phone's bottom menu), so nothing slides under the app bar and a grid's headings stay in view.
   The shell stops scrolling while a screen is shown: the screen's body does. */
body.vt .shell-main:has(> .shell-content > .screen){overflow:hidden}
body.vt .shell-content:has(> .screen){flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
body.vt .shell-content > .page.screen{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;padding-top:8px;padding-bottom:0;width:100%;
  box-sizing:border-box}
body.vt .screen-top{flex:0 0 auto;display:flex;flex-direction:column;gap:6px;padding-bottom:8px}
body.vt .screen-head{position:static;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:0;
  background:none}
body.vt .screen-head-title{display:flex;align-items:center;gap:10px;min-width:0}
body.vt .screen-head-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
body.vt .screen .filter-bar,body.vt .screen .doc-toolbar,body.vt .screen .rp-filters-col{position:static;margin:0;padding:0}
body.vt .filter-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
body.vt .screen-body{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain}
/* a report ends with room under it: its last box (the Income Statement's net profit, the Balance Sheet's note, a grid's
   frame) stood on the window's bottom edge, as the standard screen keeps no space under its body (padding-bottom:0 above)
   (Callan, 2 Dec 2026, a picture of NET PROFIT / (LOSS) on the bottom edge: "padding on bottom please"). Inside the
   body, so a report still scrolls to the edge and the room shows at its end; 22px, the page's own side gutter; a fitted
   grid fits above it (the flex layout and screen.js tallBoxRule leave the body's padding out) */
body.vt .rp-screen .screen-body{padding-bottom:22px}
/* a report's grid is closed off on its left and right (Callan, 2 Dec 2026, a picture of the General Ledger: "make sure all
   the grids have vertical lines on their exterior please" — "all I want is the line to close off the grids on the
   report"). Every report grid draws them already (.cb-table: 1px var(--line)), but its wrapper and the boxes round it clip
   at that same edge, so on a grid that lands on a half pixel (a window width that centres the page on a .5) the 1px side
   lines were cut off: measured on local, the General Ledger shifted half a pixel lost its left line. One pixel of room
   inside the wrapper, each side, keeps them in. */
body.vt .rp-screen .table-wrap{padding-left:1px;padding-right:1px}
/* …and the VAT Return's own grids — its fields and its transactions (by field number, and those not included) — which
   drew no side lines at all, only their rows' lines (aboo.css .v201-fields / .v201-tx; Callan, 2 Dec 2026, a picture of
   field 1A's transactions: "? where is the line?") */
body.vt .rp-screen :is(.v201-fields,.v201-tx){border-left:1px solid var(--line);border-right:1px solid var(--line)}
/* a grid in the body: its headings pin to the top of the body; the body (not the table's wrapper) scrolls both ways */
body.vt .screen-body .tbl-wrap{overflow:visible}
body.vt .screen-body table thead th{position:sticky;top:0;z-index:2;background:var(--surface-2,var(--panel))}
/* a column heading is one line, on every table (owner 1 Dec 2026: "the headers should not double line"): TAX, not TA / X —
   a table wider than its room scrolls sideways in the body */
body.vt thead th{white-space:nowrap}
/* a field's caption in a form's grid is one line too (owner 1 Dec 2026: "double header row"): too long for its column, it
   ends in … rather than breaking */
body.vt .grid2 > .fld > span:first-child{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.vt .screen-body td.mono,body.vt .screen-body td.num,body.vt .screen-body td.ta-r{white-space:nowrap}
/* …and that beats vt.css body.vt .page .card table.list td{overflow-wrap:anywhere} (0,4,2), which broke a date, a GL code
   and an amount mid-number in a card's table (owner 2026-11-22: "broken" — the dashboard's Recent Activity) */
body.vt .page .screen-body table td.mono,body.vt .page .screen-body table td.num,body.vt .page .screen-body table td.ta-r{
  white-space:nowrap;overflow-wrap:normal;word-break:normal}
/* a fitted grid (screen.js fitGrid): the head and totals stay, only the rows scroll, the scroll bar below the headings;
   columns held at the widths the browser gave them (a stylesheet of the grid's own, never style=""), the last one taking
   what is left */
body.vt .screen-body.grid-fit{display:flex;flex-direction:column;overflow:hidden}
body.vt .screen-body.grid-fit > :not([data-grid-chain]){flex:0 0 auto}
body.vt .screen-body [data-grid-chain]{display:flex;flex-direction:column;flex:0 1 auto;min-height:0;max-height:none;overflow:hidden}
body.vt .screen-body table.grid-frozen{display:flex;flex-direction:column;flex:0 1 auto;min-height:0;width:100%}   /* this grid's sheet (screen.js fitGrid) sets its columns and its full width */
/* the grid's own wrapper scrolls sideways when the columns are wider than the body (the head moves with the rows) */
body.vt .screen-body [data-grid-chain]:has(> table.grid-frozen){overflow-x:auto;overflow-y:hidden}
body.vt .grid-frozen > thead,body.vt .grid-frozen > tfoot{display:block;flex:0 0 auto}
/* the heading band runs the full width, over the scroll bar's lane too — no empty notch at its right end
   (owner 2026-11-22: "whats with the gap at the top") */
body.vt .grid-frozen > thead{background:var(--surface-2,var(--panel));border-bottom:1px solid var(--line)}
body.vt .grid-frozen > tbody{display:block;flex:0 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}
body.vt .grid-frozen tr{display:flex;width:100%}
body.vt .grid-frozen tr > *{flex:0 0 auto;box-sizing:border-box;min-width:0;overflow:hidden;text-overflow:ellipsis}
body.vt .grid-frozen tr > :last-child{flex:1 0 auto}   /* the last column (actions) never shrinks: its buttons stay whole */
body.vt .grid-frozen tr > [colspan]{flex:1 1 100%;width:auto}
body.vt .screen-foot{flex:0 0 auto;border-top:1px solid var(--line);padding:8px 0 10px;background:var(--bg)}
/* where the bottom tab bar shows (vt.css: 900px and narrower) the foot keeps clear of it (owner 1 Dec 2026: "feels too
   close to the bottom of the screen") */
@media (max-width: 900px){ body.vt .screen-foot{padding-bottom:18px} }
body.vt .screen-foot-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
body.vt .screen-foot-info{display:flex;align-items:baseline;gap:16px;flex-wrap:wrap;min-width:0}
body.vt .screen-foot-actions{display:flex;gap:8px;margin-left:auto}
body.vt .screen-total{font-weight:700;white-space:nowrap}
/* The document editor is a standard screen at every width (it was only on a phone): its title line on top, the document
   (customer, lines, notes, attachments) the ONLY part that scrolls, the running total and Save / Confirm pinned below. */
body.vt .shell-main:has(> .shell-content > .page.de-page){overflow:hidden}
body.vt .shell-content:has(> .page.de-page){flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
body.vt .shell-content > .page.de-page{flex:1 1 auto;min-height:0;height:auto;display:flex;flex-direction:column;overflow:hidden;
  padding-bottom:0;box-sizing:border-box;width:100%}
body.vt .page.de-page > [data-editor]:not([hidden]){display:flex;flex-direction:column;flex:1 1 auto;min-height:0}
body.vt .page.de-page .de-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden}
body.vt .page.de-page .de-ftot{display:flex;flex:0 0 auto;flex-wrap:wrap;justify-content:flex-end;align-items:baseline;gap:2px 16px;
  margin:0;padding:6px 0 2px;font-size:13px;border-top:1px solid var(--line)}
body.vt .page.de-page .de-foot .de-totals{display:none}      /* the pinned total says it */
/* Send / Save / Confirm / Cancel stood on the window's bottom edge (0px under them; Callan 1 Dec 2026, a picture of Send and
   Cancel: "padding"): the editor's foot keeps the 10px every standard screen's foot keeps under its buttons (.screen-foot).
   On a phone the bar has its own 8px (aboo.css, 767px). */
@media (min-width:768px){ body.vt .page.de-page .de-actions{padding-bottom:10px} }
/* The running total and Send / Save / Confirm / Cancel follow the document (Callan 1 Dec 2026, a picture of the empty space
   above them: "this space is wasted"; "the total, send and cancel must sit below the attachments, and if there are none it
   must come up"): they are the scrolling document's last part (document_editor.js .de-pin), right under the attachments, so
   a short document has them straight under it; on a document longer than the window they stay at its bottom edge while it
   scrolls (sticky), as they were pinned (22 Nov, e1c86e3). The page colour behind them, so no row shows through. */
body.vt .page.de-page .de-pin{position:sticky;bottom:0;z-index:2;background:var(--bg)}
/* The attachments and the totals side by side, the totals on the right, both as tall as the taller (2 Dec 2026, a picture
   of a new invoice: "Those totals should be nicely next to attachments"; Callan: "The create document screen should have
   same uniformity"): the totals card (Subtotal, VAT, Total) in the foot's right column, the running-total strip above the
   buttons gone; the buttons stay the document's last part, sticky on a long one. A phone keeps the attachments full width
   and the running total pinned with the buttons (aboo.css, 767px). */
@media (min-width:768px){
  body.vt .page.de-page .de-foot{grid-template-columns:minmax(0,1fr) 300px;align-items:stretch}
  body.vt .page.de-page .de-foot > .de-attach{grid-column:1}
  body.vt .page.de-page .de-foot > .de-totals{display:block;grid-column:2;align-self:stretch}
  body.vt .page.de-page .de-ftot{display:none}
}
/* The bank screen on the standard screen: its balance bar pins to the top of the scrolling body (not under the app bar,
   which no longer scrolls with it), and its filter bar under the balance bar (screen.js pinStack). Pinned, the filter bar
   keeps its gaps (Callan, 30 Nov 2026: "look at the padding"): the 8px above and below its controls are its own padding
   in the page colour, not margins — a margin is see-through and, pinned, gone, so the search box touched the balance bar
   and the rows ran straight under the controls. Its -8px top margin takes back the margin of what stands above it (the
   balance bar or a banner: 8px; an import's progress panel: 10px), so the screen is spaced as before until it scrolls. */
body.vt .page.screen.cb-page .cb-auto-toolbar{background:var(--bg);padding:8px 0;margin-top:-8px;margin-bottom:0}
/* Pinned, the rows slid past behind the four corners the balance bar's radius (10px, aboo.css) leaves open — their white
   and their green / orange stripes showed there (Callan, 30 Nov 2026: "still something behind"). Two hard shadows in the
   page colour, one as far left as the radius and one as far right, fill exactly those corners; never above or below the
   bar (a ring would paint over the account cards' scroll bar, which ends right on its top). Left and right of the bar
   they fall outside the body, which clips them. */
body.vt .page.screen.cb-page .cb-summary{box-shadow:-10px 0 0 var(--bg),10px 0 0 var(--bg)}
/* The register's column headings pin under both bars (Callan, 30 Nov 2026: "it looks like a row is behind there when
   scrolling" — the heading row slid up behind the filter bar and away; the owner, 22 Nov: "Grids should never allow
   headers to scroll off the screen"). A sticky heading sticks to the nearest box that scrolls, so the register's box (a
   .table-wrap: overflow-x:auto) and its table (.cb-table: overflow:hidden) no longer scroll on their own — the body does,
   as with .tbl-wrap above — and the table clips its rounded corners without scrolling. The headings stand at the pinned
   bars' height, which pinStack measures into --pin-h, under the bars (z-index 2 to their 20 and 19). */
body.vt .page.screen.cb-page .cb-register-wrap{overflow:visible}
body.vt .page.screen.cb-page .cb-register-table{overflow:clip}
body.vt .page.screen.cb-page .cb-register-table > thead th{top:var(--pin-h,0px)}
/* The register is the grey of the other grids (Callan, 30 Nov 2026: "make the banking grid grey, please"; the grey is
   Finance's, as on the dashboard: "use the grey from finance"). Finance's list sits straight on the page, so its rows
   show the page's --bg under a --surface-2 heading row. Nothing between the register's rows and the page is filled
   either, except its table: the white of every .cb-table (aboo.css). Not filled here, its rows show the page. On a phone
   or tablet (up to 1100px) the table was already not filled, and each line stays its own white card. */
body.vt .page.screen.cb-page .cb-register-table{background:transparent}
/* On the grey a line's hover is the hover of the app's other lists on the page (vt.css table.list tr.clickable:hover td;
   the dashboard's Bank Accounts): the register's own, its row --surface-2 under a 5% teal (made for white rows), all but
   vanished there (232,245,245 on 237,243,243). The same in the dashboard's bank inbox, the same table on the same grey
   (D3). A line just added keeps its own colour. Big screens only: up to 1100px each line is a card whose border shows
   the hover. */
@media (min-width:1101px){
  body.vt :is(.page.screen.cb-page,.dash-page) .cb-register-table tbody tr.cb-line:not(.cb-row-edit):not(.cb-row-added):hover{background:transparent}
  body.vt :is(.page.screen.cb-page,.dash-page) .cb-register-table tbody tr.cb-line:not(.cb-row-edit):not(.cb-row-added):hover > td{background:rgba(42,224,224,.06)}
  html[data-theme="light"] body.vt :is(.page.screen.cb-page,.dash-page) .cb-register-table tbody tr.cb-line:not(.cb-row-edit):not(.cb-row-added):hover > td{background:rgba(10,127,127,.07)}
  /* Its frame is Finance's (Callan, 1 Dec 2026: "yes"): the light --line-soft border and --radius-sm corners of a list's
     .tbl-wrap (vt.css), where every .cb-table has --line and --radius-lg (aboo.css). Big screens only: up to 1100px the
     lines are cards and the table draws no frame. */
  body.vt .page.screen.cb-page .cb-register-table{border:1px solid var(--line-soft);border-radius:var(--radius-sm)}
}
/* totals in a foot read as one line of figures, never cards (Finance: owed · current · non-current) */
body.vt .screen-foot .fin-totals{display:flex;gap:24px;flex-wrap:wrap;margin:0}
body.vt .screen-foot .fin-totals > .card{border:0;background:none;box-shadow:none;padding:0;margin:0;display:flex;gap:8px;align-items:baseline}
body.vt .screen-foot .fin-totals > .card > small{color:var(--muted)}
/* a title row whose only title repeated the app bar or the selected pill (tshell.js hideRedundantPageTitle) takes no room */
body.vt .page-head.page-head-gone{margin:0;padding:0;min-height:0}
/* The drop zone (src/shared/dropzone.js): one slim line at the control height (owner 2026-11-22: "Fix the abuse of space") */
body.vt .drop-line{display:flex;align-items:center;gap:10px;flex-wrap:wrap;border:1px dashed var(--line);border-radius:var(--radius-sm,8px);
  padding:4px 4px 4px 12px;min-height:calc(var(--control-h) + 8px);box-sizing:border-box;color:var(--muted);font-size:13px}
body.vt .drop-line.is-dragover{border-color:var(--brand);background:var(--brand-faint,rgba(10,127,127,.06))}
body.vt .drop-line-hint{flex:0 1 auto;min-width:0}
body.vt .drop-line-msg{flex:1 1 100%;color:var(--ink);font-size:12.5px}
body.vt .apv-drop{margin:0}
body.vt .exu{margin-bottom:10px}   /* the one upload keeps the same space under it on both screens (2026-11-22: "padding ?") */
/* Approvals / Expenses: no wasted space above the work (owner 2026-11-22: "too much margin") — the page starts 8px under
   the app bar, the Approvals | Expenses strip keeps 8px under it, and a title row with nothing visible in it (a screen
   reader's title only) takes no room */
body.vt .page.apv-page,body.vt .page.expense-page{padding-top:8px}
/* a claim with no slip: no empty half — its details, figures and boxes side by side across the card (owner 2026-11-22:
   "same here - wasting space again"); Back to top takes no room until the list has moved ("Wasted space - 2 lines ?") */
body.vt .apv-page:not(.is-pinned) .apv-top{display:none}
body.vt .apv-suggest{font-size:12px;color:var(--muted);margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}   /* why the account was offered */
/* the tick box's column no wider than the tick box ("Lots of left padding ?") */
body.vt .apv-item{grid-template-columns:18px minmax(0,1fr);column-gap:8px}
/* Every card the same two halves on a computer or a tablet: the details, the boxes and Approve / Reject on the left, the
   slip on the right (Callan 1 Dec 2026: "bring supplier and expense account tot he left and leave a preview of the slip on
   the right"; then, a picture of a claim with no slip, its box on the right: "it must apply to all"; aboo.css places them
   so). With no picture the slip's half says so in a grey box as tall as the details ("if there is no preview then it must
   say no preview avaia ble"), a file that is there with its Open button. While a slip is on its way its half keeps the
   room the slip takes, so the card does not grow when it comes. From 22 Nov the picture had been on the left ("keep the
   detail on the right with the approve / reject - if there is a document / documents - preview can be on the left") and a
   card with no slip had no half for it, its details and boxes side by side ("same here - wasting space again"). A phone
   keeps one column, the picture over the details and nothing where there is none (the 767px block). */
@media (min-width:768px){
  /* the slip's column stops at 340px and is never wider than the details (aboo.css; Callan 3 Dec 2026) */
  body.vt .apv-item{grid-template-columns:18px minmax(0,1fr) minmax(0,min(340px,calc(50% - 17px)))}
  body.vt .apv-item > .apv-media:has(> .apv-loading){min-height:420px}
  body.vt .apv-item > .apv-media > .apv-nofile,body.vt .apv-item > .apv-media > .apv-noprev{flex:1 1 auto;display:flex;flex-direction:column;
    align-items:center;justify-content:center;gap:10px;padding:12px 14px;background:var(--surface-2);border-radius:10px;font-size:13px}
}
body.vt .apv-page .screen-top > .hub-tabs,body.vt .expense-page .screen-top > .hub-tabs{padding-bottom:8px;margin-bottom:8px}
body.vt .page > .page-head:has(h1.sr-only):not(:has(button, a, input, select, .row-actions, h1:not(.sr-only))),
body.vt .page .screen-top > .page-head:has(h1.sr-only):not(:has(button, a, input, select, .row-actions, h1:not(.sr-only))){margin:0;padding:0;min-height:0}
/* who decided a claim and when, under its status (Expenses) */
/* the What / merchant cell takes the width that is left and the description is cut inside it — a line that never wraps
   pushed the table's least width out to the whole description and drew a sideways scroll bar (2026-11-22) */
body.vt .expense-tbl td:nth-child(1){white-space:nowrap}   /* the date on one line */
body.vt .expense-tbl td:nth-child(2){min-width:170px}   /* who / what is never squeezed to a sliver (owner 2026-11-22: "cramped descriptions"); the person wraps instead */
body.vt .expense-tbl td:nth-child(5) .pill{white-space:normal;text-align:left}   /* a long status takes two lines in a narrow window, never a sideways scroll */
body.vt .expense-tbl .ex2-what{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal}   /* two lines at most, never wider than the room */
body.vt .ex2-decided{display:block;color:var(--muted);font-size:11.5px;margin-top:2px;white-space:nowrap}
/* the one expense upload's card (shared/expenseupload.js): what was read, a duplicate, the one question */
body.vt .exu-card{display:flex;flex-direction:column;gap:6px;margin-top:6px;padding:8px 10px;border:1px solid var(--line);border-radius:var(--radius-sm,8px)}
body.vt .exu-ask{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
body.vt .exu-fields{display:flex;gap:8px;flex-wrap:wrap}
body.vt .exu-fields > .form-control{flex:1 1 180px;max-width:280px}
body.vt .exu-note,body.vt .exu-dup{color:var(--warn);font-size:13px}
/* the actions come before the tabs (Callan 3 Dec 2026: "button and search must come before tabs please", Approvals and
   Expenses): the add button first, then the search (owner 2 Dec 2026: "the Submit Expense is technically an add button
   should be left then search") */
body.vt .hub-tab-actions{display:flex;gap:8px;align-items:center}
body.vt .hub-tab-actions{min-width:0;flex:0 1 auto}
body.vt .hub-tab-actions > input{flex:1 1 160px;min-width:0;width:auto;max-width:320px}
body.vt .hub-tab-actions > .btn{flex:0 0 auto;white-space:nowrap}   /* the button never leaves the screen */
/* Settings > Email templates and Governance: the add button follows the tabs on the left, not pushed to the right
   (owner 2 Dec 2026: a screen's add button leads, on the left). Governance's tabs and Add year share one bar, the
   tabs' own gap under them moved to the bar so the button centres on the tabs. */
body.vt .set-comms-head{justify-content:flex-start}
body.vt .screen .gov-bar{margin-bottom:14px}
body.vt .gov-bar > .gov-tabs{margin-bottom:0}
/* A card's cells never take the row hover (owner 2026-11-22: "Why do we get these weird hi-lights on hover"): the desktop
   hover colours each cell (vt.css html[data-theme] … tr.clickable:hover td, (0,5,5)); when a row is drawn as a card its
   cells are separate blocks, so the hover drew bars. The card itself shows the hover; its cells stay clear. */
@media (max-width:640px){
  html body.vt .dash-page :is(.dash-bank-table,.dash-activity-table) tr.clickable:hover td{background:transparent}
}
@container (max-width:900px){ html body.vt .rcards tr.clickable:hover td{background:transparent} }
@container (max-width:1000px){ html body.vt .ak-cards tr.clickable:hover td{background:transparent} }
/* A key card whose only action is its delete (Profile → My MCP keys, Settings → API keys: the trash took a row of its own
   under a line, Callan 1 Dec 2026: "this on the mcp keys can go next to title"; on the right of the title line it stood
   7px above the title over a line of its own: "put it next to the title please"): the trash stands right after the
   title's words, centred on them. The card is a wrapping flex row: the title as wide as its words, the trash's cell the
   rest of that line, both over the one line under the title (they stretch to one height, so their bottom lines meet);
   every other cell keeps a line of its own. The title's cell gets even padding (8px over and under, 16px as before), so
   its words sit in its middle, where the trash is centred. Armed ("Revoke? Yes No") the cell no longer holds the lone
   trash, and it takes its own row again. */
@container (max-width:1000px){
  .ak-cards tr:has(> td.ak-acts > .btn-row-del:only-child){display:flex;flex-wrap:wrap}
  .ak-cards tr:has(> td.ak-acts > .btn-row-del:only-child) > td{flex:1 0 100%;order:2}
  .ak-cards tr:has(> td.ak-acts > .btn-row-del:only-child) > td.ak-name{flex:0 1 auto;order:0;padding-top:8px;padding-bottom:8px;padding-right:0}
  .ak-cards tr:has(> td.ak-acts > .btn-row-del:only-child) > td.ak-acts{flex:1 0 auto;order:1;align-items:center;justify-content:flex-start;
    margin:0;padding:0 0 0 4px;border-top:0}
}
/* The Manual expense form's buttons stood on the list under them (0px; Callan 1 Dec 2026: "padding"): the form keeps the
   12px it has between its parts (aboo.css, 18 Nov 2026) under its last part too, so Submit expense and Cancel stand 12px
   above the list, as they stand 12px under the note. */
body.vt .expense-capture:has(> .expense-form){margin-bottom:12px}
/* DESKTOP EXCEPTION: the Manual expense form's layout on a computer and a tablet (Callan 1 Dec 2026; a phone keeps its one
   column, PHONE FIT below). The Manual form (Callan 1 Dec 2026, pictures of the form): "amount claimed, slips total and document date can all be a
   third of the length and next to each other"; "then put the rest of the inputs below it"; "and move notes to the right";
   "no, one below the other"; "only notes must be on the right"; then a picture of Spent at over Why less: "put this
   inbetween notes and the other two rows", "so will have 2 rows 2 rows and notes". So on a wide screen three columns, each
   a third of the form: the first has the Document date, the Amount claimed and the Slip's total side by side (a third of
   it each, 150px at least, so a date and its calendar fit and "AMOUNT CLAIMED *" keeps one line: at 130px it wrapped and
   its box stood 16px lower) with What was it for under them; the second Spent at with Why less under it; the third the
   note for the approver, as tall as the two rows (taller only for a longer note: expenses.js fitRows). Narrower, the three
   short boxes share the first row and the rest go one below the other, the note last; a phone keeps one column. The page
   has them in the order date → amount → slip's total → what for → spent at → why less → note, so Tab and Enter go down the
   first column, then the second, then the note. The note was two lines high, under the documents. */
body.vt .expense-form > .grid2 > .fld:not(.ex2-f-short){grid-column:1 / -1}
body.vt .expense-form > .grid2 > .ex2-f-note > textarea{height:auto;min-height:var(--control-h);padding-top:6px;padding-bottom:6px;resize:none;overflow-y:auto}
@media (min-width:1400px){
  body.vt .expense-form > .grid2{grid-template-columns:repeat(3,minmax(150px,1fr)) repeat(6,minmax(0,1fr))}
  body.vt .expense-form > .grid2 > .ex2-f-short > span{white-space:nowrap}
  body.vt .expense-form > .grid2 > .fld.ex2-f-desc{grid-column:1 / span 3;grid-row:2}
  body.vt .expense-form > .grid2 > .fld.ex2-f-spent{grid-column:4 / span 3;grid-row:1}
  body.vt .expense-form > .grid2 > .fld.ex2-f-reason{grid-column:4 / span 3;grid-row:2}
  body.vt .expense-form > .grid2 > .fld.ex2-f-note{grid-column:7 / span 3;grid-row:1 / span 2;display:flex;flex-direction:column}
  body.vt .expense-form > .grid2 > .ex2-f-note > textarea{flex:1 1 auto}
}
/* END DESKTOP EXCEPTION */
/* One panel, never a card inside a card (owner 2026-11-22: "more double panels" — the document's Attachments): vt.css's
   `body.vt .card` (0,2,1) put the border and fill back on the attachments card inside the editor's card, beating
   aboo.css's `.de-attach .attach-card`. Inside any card the attachments card is flat, and each file is a section of it. */
body.vt .card .attach-card{border:0;background:transparent;box-shadow:none;margin:0;padding:0}
/* A document's attachments show a file on the right (Callan 1 Dec 2026: "if you attached a file, the preview with an image
   must show on the right"; "and if multiple then there must be arrows to scroll through"; attachments.js preview 'side'):
   on a computer two halves, the drop box and the files on the left, the file on the right with ‹ n / m › and its name
   under it; on a phone the file under the list. Other attachment cards (a contact's, a claim's) have no .attach-side: one
   column, as before. */
body.vt .attach-side .attach-cols{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-items:start}
@media (min-width:768px){ body.vt .attach-side .attach-cols{grid-template-columns:minmax(0,1fr) minmax(0,1fr)} }
body.vt .attach-side .attach-main{min-width:0}
body.vt .attach-pane{display:flex;flex-direction:column;gap:8px;min-width:0}
body.vt .attach-pane > .attach-preview{max-height:420px;border-radius:var(--radius-sm)}
/* The file shown scrolls and zooms (Callan 1 Dec 2026: "if one has multiple pages, then you must be able to scroll down,
   also add a zoom please"). A photo is the box's width and scrolls down when it is longer than the box (it was shrunk to the
   box's height, so a long receipt was a sliver); − / + set its width from 50% to 300% of the box (attachments.js zoomBy),
   and the box scrolls both ways. A PDF keeps its viewer, which scrolls through the pages itself; the zoom widens the viewer,
   which fits the pages to its width. Not flex-centred like the in-place preview: a centred child that overflows cannot be
   scrolled to its top or its left. */
body.vt .attach-pane > .attach-scroll{display:block;overflow:auto;overscroll-behavior:contain}
body.vt .attach-pane > .attach-scroll:has(> .attach-preview-pdf){max-height:none;overflow-y:hidden}
body.vt .attach-scroll > .attach-preview-img{width:100%;max-width:none;max-height:none;height:auto;margin:0 auto}
body.vt .attach-pane .attach-preview-pdf{height:420px}
body.vt .attach-scroll.attach-z-50 > *{width:50%}
body.vt .attach-scroll.attach-z-75 > *{width:75%}
body.vt .attach-scroll.attach-z-125 > *{width:125%}
body.vt .attach-scroll.attach-z-150 > *{width:150%}
body.vt .attach-scroll.attach-z-200 > *{width:200%}
body.vt .attach-scroll.attach-z-300 > *{width:300%}
body.vt .attach-nav{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px 24px}
body.vt .attach-steps, body.vt .attach-zoom{display:inline-flex;align-items:center;gap:12px}
body.vt .attach-nav-pos, body.vt .attach-zoom-pct{font-size:13px;color:var(--muted);min-width:4em;text-align:center}
body.vt .attach-pane-name{font-size:12px;color:var(--muted);text-align:center;overflow-wrap:anywhere}
/* A document's files one line each (Callan 1 Dec 2026, a picture of the list: "also single line spacing, no double lines
   here"): the name, then its size · who · when on the same line, the details cut short (…) before the name is. Other
   attachment lists (a claim's, a contact's) keep their two lines. */
body.vt .attach-side .attach-open{flex-direction:row;align-items:baseline;gap:8px;white-space:nowrap}
body.vt .attach-side .attach-open > b{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
body.vt .attach-side .attach-open > .row-sub{flex:0 1000 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
body.vt .card .attach-card > .card-body{padding:0}
/* A new expense claim's documents are the same card (Callan 1 Dec 2026: "attach a document must have the same functionality
   as sales and purchases"; expenses.js docsCard): flat inside the form, never a card in a card */
body.vt .expense-form .attach-card{border:0;background:transparent;box-shadow:none;margin:0;padding:0}
body.vt .expense-form .attach-card > .card-body{padding:0}
body.vt .card .attach-list > .attach-row{background:transparent;border:0;border-top:1px solid var(--line);border-radius:0;box-shadow:none}
/* A list row's actions stand side by side (Sales: Clone and Repeat stacked, doubling every row's height). */
body.vt .doc-list td:last-child{white-space:nowrap}   /* no width:1% — it squeezed the actions to "…" on a wide grid and to slivers on a card */
/* a row's icon actions are the standard square icon button (as a document's title-line icons) */
body.vt .doc-act-ico{width:var(--control-h);height:var(--control-h);min-height:0;padding:0 !important}
/* A draft row's Confirm is the app's green tick (Callan, 30 Nov 2026: "make confirm a green tick please like in the other
   parts of the programme", then "also in purchases"): the bank register's ✓ (.cb-edit-ok, aboo.css: a white ✓ on --ok) in
   the square of the Clone and Repeat buttons beside it, the ✓ as big as their 16px icons. It stays green on hover
   (body.vt .btn:hover, vt.css, turns a button's border the brand teal). */
body.vt .doc-act-ok{background:var(--ok);border-color:var(--ok);color:var(--aboo-paper);font-size:16px}
body.vt .doc-act-ok:hover{background:var(--ok);border-color:var(--ok);color:var(--aboo-paper)}
/* The row's actions sit in one box of three fixed slots, one per kind of button, so each kind lines up from row to row: a
   row without Repeat (not an invoice, quote or order) or without a ✓ (not a draft) leaves that slot empty instead of
   moving the others (Callan, 30 Nov 2026: "align please" · "looks ugly if the confirms are not aligned"). A slot is the
   buttons' square (--control-h). The slots follow Andre's order (below), as the bank register's ✓ ✕: the ✓ first on
   Windows, right-most on a Mac (clone = Clone, rep = Repeat, ok = the ✓). 3px apart, as a space put them; 12px on a
   phone (the phone block). */
body.vt .doc-row-btns{display:inline-grid;grid-template-columns:repeat(3,var(--control-h));grid-template-areas:"clone rep ok";gap:3px;align-items:center}
html.platform-windows body.vt .doc-row-btns{grid-template-areas:"ok clone rep"}
body.vt .doc-row-btns>.doc-act-clone{grid-area:clone}
body.vt .doc-row-btns>.doc-act-repeat{grid-area:rep}
body.vt .doc-row-btns>.doc-act-ok{grid-area:ok}
/* A list screen never loses its search and filters (owner 2026-11-22: "Filters, searchables should never scroll off the
   screen" · "any screen which needs to list a lot of items should never lose focus of the top elements which search and
   filter" · "The screen bounces now - we waste space at the top"). ONE block, .list-head, holds the screen's title row,
   its actions, its search and its filters, and pins as ONE piece under the app bar — never two sticky layers sliding
   over each other — with tight spacing (the page's 26px top gutter and the title row's own padding go). A list screen
   without a title block pins its search / filter bar alone, by the same rule. A phone pins the block too, except a
   report's, whose four-line filter block would cover the list. */
body.vt .page:has(> .list-head),body.vt .page.ct-page:has(> .list-head){padding-top:0}
body.vt .list-head,
body.vt .page .list-toolbar,
body.vt .page .toolbar,
body.vt .page .apv-toolbar,
body.vt .page .inv-toolbar,
body.vt .page .rule-search-bar,
body.vt .page .sales-memos-filters{position:sticky;top:var(--bar-h);z-index:20;background:var(--bg)}
body.vt .list-head{padding:8px 0 6px;margin:0 0 6px}
body.vt .list-head > *{position:static !important;margin:0 0 6px;padding:0}
body.vt .list-head > :last-child{margin-bottom:0}
@media (max-width:699px){ body.vt .list-head.rp-list-head{position:static} }
/* A title row with a search / filter bar straight under it (Chart of accounts, Countries, Users…): only the bar pins —
   two pinned layers at the same height slid the bar under the title. */
body.vt .page > .page-head.with-action:has(+ .toolbar, + .list-toolbar, + .doc-toolbar, + .apv-toolbar, + .inv-toolbar){position:static}
/* Settings → Chart of accounts (Callan, 1 Dec 2026: "the bar is not sitting correctly" — its search bar over the column
   headings). The bar sits in the chart's card in the standard screen's body, and the box it pins in is that card (the
   fitted grid's overflow:hidden) or the body, never the window: the rule above pinned it var(--bar-h) (58px, the app
   bar's height) down from that box's top, so it stood 58px low, over the headings and the top of the first row. It pins
   at the top of its own box. */
body.vt .page .set-coa-card > .set-coa-bar{top:0}
body.vt .ux-search{
  display:block;flex:0 0 auto;max-width:320px;width:100%;height:34px !important;min-height:34px;
  box-sizing:border-box;padding:4px 10px 4px 34px !important;font-size:13px;line-height:24px;
}
body.vt .ux-list-actions .ux-search{
  flex:0 0 auto;width:100%;max-width:none;
  margin:0;padding:4px 10px 4px 34px !important;height:34px !important;min-height:34px;
  line-height:24px;box-sizing:border-box;
}
/* Contacts keeps its segment and tag filters in normal flow below the shared action row. */
body.vt .ct-page .ct-count{margin:var(--ux-space-2) 0}
body.vt .ct-page .doc-tabhead{display:flex;flex-direction:column;align-items:stretch;gap:var(--ux-space-2);margin-top:0}
body.vt .ct-page .doc-tabhead>.segs{margin:0;min-width:0}
/* Contacts previously zeroed its page gutter. Use the exact shared list gutter so its toolbar
   and table align with Batch Invoices and Service Items on wide screens. */
body.vt .page.ct-page{padding:26px 22px 80px}
body.vt .page.ct-page.ux-list-page{padding-top:26px}
/* Wide layouts keep the search and primary action together; filters and counts retain a second row. */
@media (min-width:768px){
  body.vt .ux-list-actions .ux-search{flex:1 1 auto;width:auto}
  body.vt .ux-list-actions>.btn.primary,body.vt .ux-list-actions>.btn-primary,
  body.vt .ux-list-actions .row-actions{flex:0 0 auto}
  body.vt .ux-list-actions .row-actions .btn{width:auto}
}
body.vt .inv-price-chip{margin-right:4px}
body.vt .inv-price-unit{opacity:.65}
body.vt .inv-empty{padding:24px;text-align:center}
body.vt .inv-row-code{font-weight:400}
body.vt .inv-form-title{margin:0}
body.vt .inv-form-intro{font-size:12px;margin-top:2px}
body.vt .inv-form-hint{font-size:12px}
body.vt .inv-prices-hint{font-size:12px;font-weight:400}
body.vt .inv-price-header-rate{text-align:right}
body.vt .inv-no-currencies{padding:16px;text-align:center;border:1px dashed var(--line);border-radius:8px}
body.vt .inv-price-tag.inherit{margin-left:6px}
body.vt .detail-placeholder{padding:32px;text-align:center}
body.vt .detail-placeholder-title{margin:0 0 8px}
body.vt .detail-placeholder-copy{margin:0;opacity:.75}
body.vt .cb-vat-inline.is-hidden,body.vt .cb-card-file{display:none}

@media (min-width:768px){
  /* Keep the right side of every service-item card on the same columns: prices share a stable
     right-aligned slot and the destructive action owns the final 28px. */
  body.vt .inv-row-prices{flex:0 0 260px;max-width:260px;justify-content:flex-end}
  body.vt .inv-row-delete{flex:0 0 28px}
}

/* KPI cards already have a compact information hierarchy; preserve their established metric. */
body.vt .kpi .card-body{padding:14px 16px}

/* Dashboard: use the same compact, fluid panel grid as the other list surfaces. The legacy fixed
   five-column grid overflowed as soon as the sidebar reduced the available content width. */
body.vt .dash-page{padding-top:var(--ux-space-4)}
/* Every dashboard section uses the same 14px horizontal inset.  The prior dashboard cards
   inherited zero padding from the shared card reset, leaving each section's header and contents
   to establish their own (often mismatched) gutters. */
body.vt .dash-page .dash-coll>.coll-toggle{margin:0;padding:var(--ux-space-3) 14px;line-height:1.25}
body.vt .dash-page .dash-coll>.coll-body{padding:0 14px 14px}
body.vt .dash-page .dash-coll>.coll-body>.kpis{margin:0}
body.vt .dash-page .dash-coll>.coll-body>.btn{margin-top:var(--ux-space-3)}
body.vt .dash-page .kpis{grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:var(--ux-space-3)}
/* Keep long currency figures inside their KPI tile. The auto-fit track is minmax(155px,1fr); a
   grid item's default min-width:auto let an unbreakable figure (e.g. R 16,960,399.55) push the
   track wider and bleed past the tile edge. Let the tile shrink, fluidly scale the value so big
   numbers fit on one line, and allow a wrap as a last resort — never clip a money figure. */
body.vt .dash-page .kpis>.kpi{min-width:0}
body.vt .dash-page .kpi-value{font-size:clamp(14px,1.15vw + 6px,20px);overflow-wrap:anywhere;hyphens:none}
/* Key figures: the figures of a row of tiles on one line (Callan, 2 Dec 2026: "the figures are not aligned"). A tile whose
   title wraps onto two lines (Net Profit (This Month) / (Financial Year), at most widths) had its figure 16px below the
   figures beside it. Each tile now puts its title, figure and note on the rows of the tiles' grid (subgrid): a row of
   tiles shares one title row, as tall as its longest title, so every figure and note in the row lines up. The space
   between rows of tiles is each tile's bottom margin instead of the grid's row gap (the last row's is taken back by the
   grid's negative margin): with a row gap, a row of tiles without notes got half the gap (6px) more under its figures.
   Measured on local (company 262): figures in line at 768, 1024, 1280 and 1920; still 12px between rows of tiles, 14px
   under the last row and under each tile's figure or note; a phone (one tile a row) unchanged. */
body.vt .dash-page .dash-coll>.coll-body>.kpis{row-gap:0;margin-bottom:calc(-1 * var(--ux-space-3))}
body.vt .dash-page .dash-coll>.coll-body>.kpis>.kpi{display:grid;grid-row:span 3;grid-template-rows:subgrid;row-gap:0;
  margin-bottom:var(--ux-space-3)}
body.vt .dash-page .dash-coll{margin-bottom:var(--ux-space-3)}
/* Every grid on the dashboard is the grey of the Finance grid (Callan, 30 Nov 2026: "make all the grids on the dashboard
   the same grey as the other grids please", then "use the grey from finance"). Finance's list sits straight on the page,
   so its rows show the page's --bg under a --surface-2 heading row; the dashboard's grids sit in its --panel cards, so
   the bank inbox showed .cb-table's white (--surface) and the lists the card's darker --panel. Each now has the --bg. */
body.vt .dash-page .dash-coll .tbl-wrap,
body.vt .dash-page .bank-inbox-table{background:var(--bg)}
/* Every grid in the app is the grey of the Finance grid (Callan, 1 Dec 2026: "make all the grids in the app grey like
   you did with the others please" — the dashboard above and the bank register; the work list's A5 and R2). Finance's
   list sits straight on the page: its rows show the page's --bg (237,243,243 light; 12,36,41 dark) under a --surface-2
   heading row. Every .cb-table had aboo.css's white (var(--surface)): Journals, Statements, every report, a contact's
   ledger, the co-op review, the bank capture; and a list frame inside a card (Settings: the chart of accounts, mail,
   currencies, rates) showed the card's darker --panel. Each now has the --bg; on the page that is the page itself. Not
   grids, so not changed: an editor's lines (boxes on its card), the VAT201 paper, the lists made of cards. */
body.vt .cb-table,
body.vt .tbl-wrap{background:var(--bg)}
/* ...under the --surface-2 heading row of every other grid: outside the standard screen's body a heading had vt.css's
   light 5% black, which reads darker on the grey (225,231,231) */
html body.vt :is(.cb-table,.tbl-wrap) thead tr th{background:var(--surface-2)}
/* On the grey a row's hover is the app's list hover (vt.css table.list tr.clickable:hover td), as on Finance and the
   dashboard: aboo.css's --brand-fainter, made for white rows, all but vanishes on it (232,245,245 on 237,243,243). At
   aboo.css's own rank (0,2,3; :where adds none), so a row with a hover of its own keeps it (a statement's banner and wide
   rows, the posted divider, the bank register's lines, a line just added). A table inside a row shows the row's tint,
   not a second one. A report's drill row hovered --surface-2, lighter than the grey: the list hover too. */
:where(body.vt) :is(.cb-table,.rp-table) tbody tr:hover td{background:transparent}
:where(body.vt) :is(.cb-table,.rp-table) tbody tr:hover > td{background:rgba(42,224,224,.06)}
:where(html[data-theme="light"] body.vt) :is(.cb-table,.rp-table) tbody tr:hover > td{background:rgba(10,127,127,.07)}
:where(body.vt) .rp-table tr.rp-drill:hover > td{background:rgba(42,224,224,.06)}
:where(html[data-theme="light"] body.vt) .rp-table tr.rp-drill:hover > td{background:rgba(10,127,127,.07)}
/* printed, a grid prints as it did (the grey is for the screen) */
@media print{
  body.vt .cb-table{background:var(--surface)}
  body.vt .tbl-wrap{background:transparent}
}
/* Financial-year turnover comparison: each fiscal month carries the prior-year and current-year
   turnover bars side by side. The bars are data-driven; layout, sizing and colours stay shared CSS. */
body.vt .dash-fy-chart{margin:0 0 var(--ux-space-3);overflow-x:auto}
body.vt .dash-fy-legend{display:flex;justify-content:flex-end;gap:var(--ux-space-3);margin:0 0 var(--ux-space-2);
  color:var(--muted);font-size:11px;font-weight:700}
body.vt .dash-fy-key{display:inline-flex;align-items:center;gap:5px}
body.vt .dash-fy-key::before{content:"";width:9px;height:9px;border-radius:2px;background:var(--muted)}
body.vt .dash-fy-key.current::before{background:var(--brand)}
body.vt .dash-fy-cols{display:grid;grid-template-columns:repeat(12,minmax(34px,1fr));gap:var(--ux-space-2);min-width:440px}
body.vt .dash-fy-col{display:grid;grid-template-rows:132px auto;gap:var(--ux-space-1);min-width:0}
body.vt .dash-fy-bars{display:flex;align-items:flex-end;justify-content:center;gap:3px;border-bottom:1px solid var(--line)}
body.vt .dash-fy-bar{display:block;width:min(16px,40%);min-height:0;border-radius:3px 3px 0 0;background:var(--muted)}
body.vt .dash-fy-bar.current{background:var(--brand)}
body.vt .dash-fy-bar.neg{background:var(--bad)}
body.vt .dash-fy-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;color:var(--muted);font-size:10px}
/* Shared bank-register hover: cashbook and dashboard allocation rows use the same response without
   turning a whole row into a deceptive click target. */
body.vt .cb-register-table tbody tr.cb-line:not(.cb-row-edit){transition:background .14s ease,border-color .14s ease,box-shadow .14s ease}
body.vt .cb-register-table tbody tr.cb-line:not(.cb-row-edit):hover{background:var(--surface-2)}

@media (max-width:640px){
  /* The bank and activity tables become labeled panels on a phone only (owner 2026-11-22: "whats with the weird
     background hi-lights on the individual line items?" — at 1100px a 766px-wide list of three columns turned into
     one big label | value card per account, its label at one edge and its value at the other). */
  body.vt .dash-page .dash-bank-table,
  body.vt .dash-page .dash-activity-table{overflow:visible}
  body.vt .dash-page .dash-bank-table table,
  body.vt .dash-page .dash-bank-table tbody,
  body.vt .dash-page .dash-activity-table table,
  body.vt .dash-page .dash-activity-table tbody{display:block;width:100%}
  body.vt .dash-page .dash-bank-table thead,
  body.vt .dash-page .dash-activity-table thead{display:none}
  body.vt .dash-page .dash-bank-table tbody,
  body.vt .dash-page .dash-activity-table tbody{display:grid;gap:0}
  /* One panel, never a card inside a panel (owner 2026-11-22: "dashboard also has double container panel issues"):
     each row is a section of the card it sits in, divided by a line. */
  body.vt .dash-page .dash-bank-table tr,
  body.vt .dash-page .dash-activity-table tr{display:grid;gap:4px var(--ux-space-3);padding:var(--ux-space-3) 4px;
    border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent}
  body.vt .dash-page .dash-bank-table tr:last-child,
  body.vt .dash-page .dash-activity-table tr:last-child{border-bottom:0}
  body.vt .dash-page .dash-bank-table tr{grid-template-columns:1fr auto}
  body.vt .dash-page .dash-activity-table tr{grid-template-columns:1fr auto}
  body.vt .dash-page .dash-bank-table td,
  body.vt .dash-page .dash-activity-table td{display:flex;align-items:baseline;justify-content:space-between;gap:var(--ux-space-3);
    padding:0;border:0;text-align:left!important;min-width:0}
  body.vt .dash-page .dash-bank-table td:nth-child(2),
  body.vt .dash-page .dash-activity-table td:nth-child(2){grid-column:1/-1}
  body.vt .dash-page .dash-bank-table td::before,
  body.vt .dash-page .dash-activity-table td::before{content:attr(data-label);flex:0 0 auto;color:var(--faint);font-size:10px;
    font-weight:700;letter-spacing:.08em;text-transform:uppercase}
  body.vt .dash-page .dash-bank-table td:empty{display:none}
  body.vt .dash-page .dash-activity-table td:nth-child(2){align-items:flex-start;overflow-wrap:anywhere}
  /* These are cards at this breakpoint. The desktop list hover colours individual cells,
     which creates horizontal bars instead of one clear hover state. */
  body.vt .dash-page .dash-bank-table tr.clickable,
  body.vt .dash-page .dash-activity-table tr.clickable{transition:background .14s ease,border-color .14s ease,box-shadow .14s ease}
  body.vt .dash-page .dash-bank-table tr.clickable:hover,
  body.vt .dash-page .dash-activity-table tr.clickable:hover{background:var(--surface-2)}
  body.vt .dash-page .dash-bank-table tr.clickable:hover td,
  body.vt .dash-page .dash-activity-table tr.clickable:hover td{background:transparent}
}

/* Empty states should explain the next action without taking a full viewport band. */
body.vt .empty{padding:var(--ux-empty-pad)}

/* Service item rows are interactive surfaces. The old fallback was a light-theme colour, which
   made a dark-theme hover flash white and reduced contrast. Use the tenant theme ladder instead. */
body.vt .inv-row:hover,
body.vt .inv-row:focus-visible{
  background:var(--surface-2);
  border-color:var(--brand);
  color:var(--ink);
}
body.vt .inv-row:focus-visible,body.vt .nav-pill:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
body.vt .inv-row:hover .inv-row-name,
body.vt .inv-row:focus-visible .inv-row-name{color:var(--ink)}

/* Service item editor: the old `--muted-bg` fallback painted the pricing panel white in the
   dark tenant theme. Keep the editor on the same surface ladder as the rest of the application. */
body.vt .inv-form{
  background:var(--surface);
  border-color:var(--line);
  padding:var(--ux-card-pad-form);
}
body.vt .inv-form-close{display:none}
/* A document's currency next to its title (Callan 1 Dec 2026: "so the currency is always next to the title"; it was the
   header card's Currency box, already left out on a phone, 10 Nov): the title's line, its words smaller and muted, so the
   title still reads first; nothing when the currency is not known yet. */
body.vt .de-head > .de-title-ccy{font-size:14px;font-weight:700;color:var(--muted);white-space:nowrap}
body.vt .de-head > .de-title-ccy:empty{display:none}
/* The document's header card: its fields on the left, the notes beside them on the right (Callan 1 Dec
   2026: "put them all underneath each other and then bring notes up to the right", after "also valid until and issued can
   be halved and go on the same line"; the notes had a card of their own under the lines). Two halves on a computer, the
   notes as tall as the fields beside them; on a phone the notes under the fields, and the dates still pair up under the customer
   (aboo.css, 767px). The add-a-customer form's own grid is left as it is. */
body.vt .de-head-cols{display:grid;grid-template-columns:minmax(0,1fr);gap:8px 12px}
body.vt .de-head-notes{display:flex;flex-direction:column;min-width:0}
/* The notes: as tall as the rows of fields beside them — one box high beside one pair (a new document), two beside two (a
   saved one, its dates shown) — and taller only when the note needs more lines (Callan 1 Dec 2026: "make notes aling
   please, and it only grows if the note goes over one line"; then "notes must align with however many rows are on the left
   please, so if one then one, if two then notes is two as well"). Its own height is one box (34px: rows 1, 6px above and
   below the line); a computer stretches it to the fields' height; document_editor.js fitNotes adds rows when the words
   need them. It was three lines at least, so beside one pair it stood taller than the fields. */
body.vt .de-head-notes > textarea{height:auto;min-height:var(--control-h);padding-top:6px;padding-bottom:6px;resize:none;overflow-y:auto}
@media (min-width:768px){
  /* Two pairs on the left: Customer | Reference, then Issued | Valid until (Callan 1 Dec 2026, pictures: Issued over Valid
     until, "these must be next to each other"; then "put below reference"; then Customer over the reference, "put these
     next to each other as well please"; then "make customer/supplier 66% and reference 33% in terms of width accross all
     sales and purches forms please"); the notes on the right, as tall as the rows beside them. And every box of a row on
     one line when a label wraps (a picture of "SOURCE DOCUMENT / REFERENCE" on two lines, its box lower than the
     customer's: "aing", "align"). So the card is one grid of 12 columns — the fields in the left 6 (the customer or
     supplier 4, two thirds; the reference 2, a third; a date 3, halves), the notes in the right 6 — and each field, and
     the notes, takes two of its rows, its label over its box (subgrid): the labels of a row share one row, as tall as the
     tallest, each sitting on its box; the boxes share the next. The notes' box runs from the first boxes' top to the last
     boxes' bottom (one pair or two) and grows only for a longer note. The add-a-customer form, when open, takes the left
     half's width under the customer's row. On a phone the card is as it was (aboo.css, 767px). */
  body.vt .de-head-cols{grid-template-columns:repeat(12,minmax(0,1fr));grid-auto-flow:row dense;gap:3px 12px}
  body.vt .de-head-cols > .de-grid{display:contents}
  body.vt .de-head-cols > .de-grid > .ct-field,
  body.vt .de-head-cols > .de-head-notes{display:grid;grid-template-rows:subgrid;grid-row:span 2;gap:3px}
  body.vt .de-head-cols > .de-grid > .ct-field > .jrn-lbl,
  body.vt .de-head-cols > .de-head-notes > .jrn-lbl{align-self:end}
  body.vt .de-head-cols > .de-grid > .de-party{grid-column:1 / span 4}
  body.vt .de-head-cols > .de-grid > .de-ref{grid-column:5 / span 2}
  body.vt .de-head-cols > .de-grid > .de-datef{grid-column:1 / span 3;margin-top:5px}
  body.vt .de-head-cols > .de-grid > .de-datef:has([data-due-date]){grid-column:4 / span 3}
  body.vt .de-head-cols > .de-grid > .de-addparty{grid-column:1 / span 6}
  body.vt .de-head-cols > .de-head-notes{grid-column:7 / -1;grid-row:1 / span 2}
  body.vt .de-head-cols:has(> .de-grid > .de-datef:not([hidden])) > .de-head-notes{grid-row:1 / span 4}
  body.vt .de-head-cols > .de-head-notes > textarea{grid-row:2 / -1}
}
body.vt .inv-prices{
  background:var(--surface-2);
  border-color:var(--line);
  color:var(--ink);
  padding:12px;
}
body.vt .inv-price-row{border-bottom-color:var(--line-soft)}
body.vt .inv-price-tag.inherit{background:rgba(75,214,160,.16);color:var(--ok)}
body.vt .inv-price-row .ss{min-width:0;width:100%}
body.vt .inv-price-row .inv-tax-search{height:32px;box-sizing:border-box}
body.vt .inv-code-input{width:100%;max-width:none}

/* Form actions always read left-to-right as Cancel, then the primary commitment. This keeps
   forms consistent even when a screen's template order is accidentally reversed. */
body.vt .form-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
body.vt .form-actions>.btn.btn-primary,
body.vt .form-actions>.btn.primary{order:2}
body.vt .form-actions>.btn:not(.btn-primary):not(.primary){order:1}

/* Windows convention: primary commitment first, Cancel second. macOS and unknown platforms use
   the default above (Cancel first, primary second). Screen markup stays platform-neutral. */
html.platform-windows body.vt .form-actions>.btn.btn-primary,
html.platform-windows body.vt .form-actions>.btn.primary{order:1}
html.platform-windows body.vt .form-actions>.btn:not(.btn-primary):not(.primary){order:2}

/* Andre's order (above) on every other row of the tenant app that holds a Cancel beside the button that commits (Callan,
   30 Nov 2026: "put all the buttons in the correct order according to andre's rule please"): on a Mac and elsewhere
   Cancel first and the commitment after it; on Windows the commitment first, then Cancel. Only the order changes: each
   row keeps its own look. The commitment is the primary; in a row without one, the red button that commits (Reject,
   Undo, Clear all data, Yes, remove), as Dispose (aboo.css); a second commitment stays beside the primary (the invoice
   editor's Save, a batch run's Create drafts, a claim review's Save). The editor's "Email to contact" keeps its place
   (first, as its phone layout puts it). The payment popup's On account and Settle hold no Cancel and keep theirs.
   Every green ✓ too, so they all sit on one side (Callan, 30 Nov 2026: "things like this must be consistent … they must
   conform to andre's rule"): the ✓ ✕ pairs (the bank register, the dashboard inbox, journals; ✕ is their Cancel) —
   first on Windows, last on a Mac. The Sales and Purchases lists' ✓ (beside Clone and Repeat) takes the same place
   through its row's slots (body.vt .doc-row-btns, above), which keep each kind of button in line from row to row. */
body.vt :is(.alloc-create-actions:has(>.alloc-create-cancel), .apv-edit-actions, .rule-edit-actions, .bt-suggest-actions,
  .bt-run-actions, .cb-limit-edit-actions, .cb-confirm-actions, .ct-new-actions, .pay-actions, .ct-addr-form-actions,
  .de-actions, .de-addparty-actions, .de-email-actions, .ex2-ask-acts, .ex2-rv-actions, .ex2-undo-actions,
  .ex2-reject-actions, .gov-arm, .mbx-edit-actions, .ms-charge-actions, .stmt-bad-edit, .perm-edit-actions,
  .modal-actions, .bt-bulkbar,
  .cb-edit-actions, .jrn-edit-btns)>:is(.btn, .cb-edit-no, .jrn-edit-cancel){order:1}
body.vt :is(.alloc-create-actions:has(>.alloc-create-cancel), .apv-edit-actions, .rule-edit-actions, .bt-suggest-actions,
  .bt-run-actions, .cb-limit-edit-actions, .cb-confirm-actions, .ct-new-actions, .pay-actions, .ct-addr-form-actions,
  .de-actions, .de-addparty-actions, .de-email-actions, .ex2-ask-acts, .ex2-rv-actions, .ex2-undo-actions,
  .ex2-reject-actions, .gov-arm, .mbx-edit-actions, .ms-charge-actions, .stmt-bad-edit, .perm-edit-actions,
  .modal-actions, .bt-bulkbar,
  .cb-edit-actions, .jrn-edit-btns)>:is(.btn-primary, .btn.primary, .btn.bad, .btn-danger, [data-save], .bt-btn-draft,
  .ex2-rv-save, .cb-edit-ok, .jrn-edit-ok){order:2}
html.platform-windows body.vt :is(.alloc-create-actions:has(>.alloc-create-cancel), .apv-edit-actions, .rule-edit-actions,
  .bt-suggest-actions, .bt-run-actions, .cb-limit-edit-actions, .cb-confirm-actions, .ct-new-actions, .pay-actions,
  .ct-addr-form-actions, .de-actions, .de-addparty-actions, .de-email-actions, .ex2-ask-acts, .ex2-rv-actions,
  .ex2-undo-actions, .ex2-reject-actions, .gov-arm, .mbx-edit-actions, .ms-charge-actions, .stmt-bad-edit,
  .perm-edit-actions, .modal-actions, .bt-bulkbar,
  .cb-edit-actions, .jrn-edit-btns)>:is(.btn, .cb-edit-no, .jrn-edit-cancel){order:2}
html.platform-windows body.vt :is(.alloc-create-actions:has(>.alloc-create-cancel), .apv-edit-actions, .rule-edit-actions,
  .bt-suggest-actions, .bt-run-actions, .cb-limit-edit-actions, .cb-confirm-actions, .ct-new-actions, .pay-actions,
  .ct-addr-form-actions, .de-actions, .de-addparty-actions, .de-email-actions, .ex2-ask-acts, .ex2-rv-actions,
  .ex2-undo-actions, .ex2-reject-actions, .gov-arm, .mbx-edit-actions, .ms-charge-actions, .stmt-bad-edit,
  .perm-edit-actions, .modal-actions, .bt-bulkbar,
  .cb-edit-actions, .jrn-edit-btns)>:is(.btn-primary, .btn.primary, .btn.bad, .btn-danger, [data-save],
  .bt-btn-draft, .ex2-rv-save, .cb-edit-ok, .jrn-edit-ok){order:1}
/* The one Yes / No question (shared/confirm.js: the question, any extra box, then Yes, then No) in the same order: No
   is its Cancel. The confirms drawn by hand in a table cell (a contact's Disable, a repeating invoice's Delete, an MCP
   key's Regenerate, a statement's Repair) sit in the same box. A refusal (confirm-err) has one button, OK. */
body.vt .confirm-inline:not(.confirm-err)>button:last-of-type{order:1}
body.vt .confirm-inline:not(.confirm-err)>button:nth-last-of-type(2){order:2}
html.platform-windows body.vt .confirm-inline:not(.confirm-err)>button:last-of-type{order:2}
html.platform-windows body.vt .confirm-inline:not(.confirm-err)>button:nth-last-of-type(2){order:1}

/* Every button green, as Finance's New agreement (Callan, 1 Dec 2026: "please make all these types of buttons green in
   the whole app, and do it for the actions dropdown buttons please" — the white ones, Re-run Allocations among them, and
   the rows' Actions ▾). A button that stops something — cancel, close, no, not now, dismiss, decline, stop, pause,
   disconnect, disable, sign out, delete, remove, unlink, undo, reverse, reset — is outlined red, as Reject (his words:
   "if it is a cancel or reject or something that is stopping, you can outline it in red like this"): the markup marks
   it btn-stop. A button that is already red, already green, a link, a ghost, one of the app bar's icons, or any button
   that shows only an icon (Callan: "not icons like this, i just meant the buttons" — a list row's Clone and Repeat, the
   editor's icon buttons, a ✕, the year's ‹ ›: btn-icon) keeps its own look. :where() adds nothing to the rank, so the
   green is the base button's own rank (vt.css body.vt .btn, ux.css loads later) and a screen's own rule for a button of
   its own still wins. btn-outline-danger is not left out: its one button, Bank accounts › ⚙ › Clear imported data…,
   drew no red (the base button's white, tina4's red edge beaten), and stayed white (Callan 1 Dec 2026: "still white"). */
body.vt .btn:where(:not(.primary, .btn-primary, .bad, .btn-danger, .danger, .btn-danger-text, .btn-link,
  .ghost, .btn-ghost, .btn-stop, .theme-toggle, .btn-icon, .doc-act-ico, .de-icon-btn)){background:var(--brand);border-color:var(--brand);color:var(--brand-ink);
  box-shadow:0 3px 12px rgba(42,224,224,.22)}
body.vt .btn.btn-stop{background:var(--surface);border-color:var(--bad);color:var(--bad);box-shadow:none}
/* the shared Yes / No question's No (shared/confirm.js; the phone's bottom menu too) is a stop as well; a refusal's one
   button (OK) is not */
body.vt .btn-confirm-no{background:var(--surface);border-color:var(--bad);color:var(--bad)}
body.vt .confirm-err > .btn-confirm-no{background:var(--brand);border-color:var(--brand);color:var(--brand-ink)}
/* The pages outside a company (Your companies, the profile, a company's chart and its import, billing, not found: the
   .tenant-main pages, where home.js takes body.vt off for the aboo skin) drew the main button in the aboo teal (#19C4C4)
   and the rest white with teal words, where every company screen's button is the green (Callan 1 Dec 2026, a picture of
   Your companies: "this teal must also be changed to the green"). They take the company screens' look: the green and
   the red of vt.css's --brand / --brand-ink / --bad in light and dark (vt.css is generated, so its values are written
   here; the aboo skin's own red, #B91C1C, is hard to read on its dark surface), the main button and the plain ones
   green, a stopping one and the question's No outlined red, a refusal's OK green. */
body:not(.vt) .tenant-main{--btn-green:#0a7f7f;--btn-green-ink:#ffffff;--btn-red:#bb3f3f}
html[data-theme="dark"] body:not(.vt) .tenant-main{--btn-green:#2ae0e0;--btn-green-ink:#08252b;--btn-red:#f27a7a}
body:not(.vt) .tenant-main .btn:where(:not(.bad, .btn-danger, .danger, .btn-danger-text, .btn-link, .ghost, .btn-ghost, .btn-stop,
  .theme-toggle, .btn-icon, .doc-act-ico, .de-icon-btn)){background:var(--btn-green);border-color:var(--btn-green);color:var(--btn-green-ink);
  box-shadow:0 3px 12px rgba(42,224,224,.22)}
body:not(.vt) .tenant-main .btn.btn-stop{background:var(--surface);border-color:var(--btn-red);color:var(--btn-red);box-shadow:none}
body:not(.vt) .tenant-main .btn-confirm-no{background:var(--surface);border-color:var(--btn-red);color:var(--btn-red)}
body:not(.vt) .tenant-main .confirm-err > .btn-confirm-no{background:var(--btn-green);border-color:var(--btn-green);color:var(--btn-green-ink)}
/* Your companies' cards are the grey of the grids (Callan 1 Dec 2026, a picture of the green cards: "make the cards grey
   like the grid please"): a grid's rows show the page's --bg (the Finance grid; every grid since 1 Dec); a company card
   was the aboo --surface, white (#FFFFFF light, #15414A dark). It keeps its edge, its shadow and its hover. (A company
   card is a .row-card: the list cards' rule below greys it, with every list card of the pages outside a company.) */
/* …and so are Bank accounts' cards, the bank cards and a supplier's cashbook cards under them (Callan 1 Dec 2026, a
   picture of both strips: "same with these cards"): they were aboo.css's --surface, white. A card a statement is
   dragged over keeps aboo.css's --surface-2 (its "drop here"); a card's ⚙ / ✎ form floats on its own --surface. */
body.vt .cb-card:not(.cb-card-drag){background:var(--bg)}
/* …and the register's pinned Ledger Balance card over the grid (Re-run Allocations, Jump to, Fetch mail, Statements;
   Callan 1 Dec 2026, a picture of it: "and this"): aboo.css's --surface, white. The page's --bg is solid, so the lines
   scrolling under it stay hidden, as under the white. */
body.vt .cb-summary{background:var(--bg)}
/* …and Inventory's service item cards (Callan 1 Dec 2026, a picture of the list: "and this"): aboo.css's --surface,
   white. :where() keeps the rank at aboo.css's own, so its hover (.inv-row:hover, a rank higher) still shows. */
:where(body.vt) .inv-row{background:var(--bg)}
/* …and Approvals' cards, a bill or a claim to approve (Callan 1 Dec 2026, a picture of two: "and here"): aboo.css's
   --surface, white. Its grey panels (--surface-2, facts / boxes and buttons) now stand a shade lighter on it, as a grid's
   heading row on its rows. (On a phone the card was already clear over the page, G1.) */
body.vt .apv-item{background:var(--bg)}
/* …and the last white boxes of the company screens, found by a sweep of every screen at rest and open (Callan 1 Dec
   2026: "yes, if there are white, then change it to grey please"; an open claim: "here", "???"): an open claim's empty
   slip box (its facts are an Approvals card's grey panel since 3 Dec 2026, aboo.css .ex2-review), a contact's age tiles,
   Inventory's Edit item form (Bank rules' rule cards and Batches' cards are list cards: the rule below). A box to type in or copy from (a field, the MCP address) stays white, as every field
   does; so does a menu or a form that floats over the page. */
body.vt .ex2-slip-view.is-empty,
body.vt .aging-card:not(.active),
body.vt .inv-form{background:var(--bg)}
/* …and every other box the stylesheets draw white in the flow of a company screen, read from the sheets themselves so a
   box that only shows when something is opened is reached too (Callan 1 Dec 2026, Inventory's Edit item: "???"): a list
   card of any kind, the bank screen's panels (held imports, the import wizard, a missing statement's charge form, the
   capture form, the bar over picked lines), a contact's address card, the matching and contact panels, a dashboard to-do
   card, Settings' MCP scope tiles and a chart line opened for editing, the reconciliation report's cards, the item form's
   price rows on a phone, the attachments rail, a statement's problem rows, an expense's tiles / question / not-reconciled
   items, the Sleek import's stages, and the rows Finance and Fixed Assets open under a line. What stays white: a box to
   type in or copy from; a button, chip or pill; a notice, whose coloured edge says what it is (the AI key's, a success
   or warning line); a menu, pop-up or form that floats over the page; a picture or a page of a document (an invoice, a
   statement page, a PDF, a logo). The governance note went grey too (Callan 1 Dec 2026, a picture of the VAT return's
   prior-period adjustments list: "make grey please"); it keeps its coloured edge. */
body.vt .row-card,
body:not(.vt) .tenant-main .row-card,
body.vt .cb-held-imports,
body.vt .cb-wizard,
body.vt .ms-charge-form,
body.vt .cb-form,
body.vt .cb-bulk-bar,
body.vt .ct-addr-card,
body.vt .cb-panel,
body.vt .mcp-scope,
body.vt .set-coa tr.set-acc-edit-row > td,
body.vt .rail-card,
body.vt .stmt-bad-row,
body.vt .ex2-mine > div,
body.vt .ex2-ask,
body.vt .nr-item,
body.vt .sleek-stage,
body.vt .fa-view-row > td,
body.vt .fin-act-row > td,
body.vt .fin-fix-pages,
body.vt .gov-note,
body.vt .dash-tri-card{background:var(--bg)}
/* on a phone the item form's price rows are cards of their own (ux.css, 720px): grey in the grey form */
@media (max-width:720px){ body.vt .inv-form .inv-price-row{background:var(--bg)} }
@media screen{
  body.vt .rp-rs-card,
  body.vt .rp-rs-items{background:var(--bg)}
}
/* …and the report a person reads on the screen: the VAT Return's paper and the Income Statement's (Callan 1 Dec 2026, a
   picture of each: "and this"), then the rest of Reports' white cards: the Balance Sheet's two sides, a report's figure
   tiles and the cards of the Reports list (asked: "Other white cards still in the app: the Balance Sheet's two sides, the
   report figure tiles, and the cards on the Reports list" — "yes do all please"). They were aboo.css's --surface, white;
   printed, they print white as before. */
@media screen{
  body.vt .v201-paper,
  body.vt .rp-is,
  body.vt .rp-bs-side,
  body.vt .rp-kpi,
  body.vt .rp-card{background:var(--bg)}
}

@media (max-width:767px){
  body.vt .form-actions{align-items:stretch}
  body.vt .form-actions>.btn{flex:1 1 140px}
}

/* Desktop pricing grids become explicit cards on a phone. Each row gets its own boundary so
   currency, rate, unit and VAT remain grouped while the controls can use the full width. */
@media (max-width:720px){
  body.vt .inv-price-row{
    grid-template-columns:1fr 1fr;
    gap:8px;
    padding:10px;
    border:1px solid var(--line);
    border-radius:var(--radius-sm);
    background:var(--surface);
  }
  body.vt .inv-price-row + .inv-price-row{margin-top:8px}
  body.vt .inv-price-row .inv-price-ccy{margin-bottom:2px}
}

/* Primary create actions are full-width on mobile so the next step is obvious and easy to tap.
   Supporting counts stay secondary and align to the edge below the action. */
@media (max-width:767px){
  body.vt .app-bar .app-title{display:block;font-size:11px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body.vt .bt-list-page .page-head.with-action{padding-top:0;margin-top:0}
  body.vt .bt-list-page>.page-head h1{position:absolute;width:1px;height:1px;padding:0;margin:-1px;
    overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
  body.vt .bt-new-grid{grid-template-columns:1fr}
  body.vt .inv-form-close{display:inline-flex;align-items:center;justify-content:center}
  body.vt .inv-row .inv-row-delete{position:absolute;top:8px;right:8px;margin:0;align-self:auto}
  body.vt .ct-addr-card,body.vt .inv-row,body.vt .bt-card{position:relative;padding-right:48px}
  body.vt .ct-addr-card .ct-addr-delete,body.vt .bt-card .bt-delete{position:absolute;top:8px;right:8px;margin:0}
  body.vt .doc-page .page-head.with-action .row-actions{width:100%}
  body.vt .inv-toolbar{align-items:stretch;gap:8px}
  body.vt .ux-list-actions{flex-direction:column;align-items:stretch;gap:8px}
  body.vt .ux-list-actions>.btn.primary,body.vt .ux-list-actions>.btn-primary,body.vt .ux-list-actions .row-actions,
  body.vt .ux-list-actions .row-actions>.btn,body.vt .doc-page .page-head.with-action .row-actions>.btn{width:100%;justify-content:center}
  body.vt .ux-search{flex:0 0 auto;max-width:320px;width:100%;height:34px !important;min-height:34px}
  body.vt .inv-toolbar>.inv-count{margin-left:0;align-self:flex-start}
}

/* Keep mobile content off the viewport edge while allowing dense cards to stay compact. */
@media (max-width:767px){
  body.vt .page{padding-left:12px;padding-right:12px}
  body.vt .ct-page{padding-left:12px !important;padding-right:12px !important}
}

/* Small-screen contact cards are self-contained surfaces; the card body rule must not add a
   second inset to the table-row cards. */
@media (max-width:767px){
  body.vt .ct-list tr{padding:var(--ux-space-3) 14px}
}

/* The bank register is an endless chronological list. At narrower app widths, keeping nine
   table columns forces every transaction into an unreadable horizontal grid. Render each row as
   a section of one panel instead, while retaining the same table markup and controls. */
@media (max-width:1100px){
  body.vt .cb-register-wrap{overflow:visible}
  body.vt .cb-register-table,
  body.vt .cb-register-table tbody{display:block;width:100%;border:0;background:transparent}
  /* One panel like Finance's narrow list (Callan, 1 Dec 2026: "yes, make the phone list one panel like finance"; the
     owner's 22 Nov "one panel, never two", aboo.css .rcards): the table is the panel, in Finance's frame (vt.css
     .tbl-wrap), and each line is a section of it: a line between lines, no outline of its own, no gap. They were
     cards 8px apart. The dashboard's bank inbox is the same list. */
  body.vt .cb-register-table{border:1px solid var(--line-soft);border-radius:var(--radius-sm)}
  body.vt .cb-register-table thead{display:none}
  body.vt .cb-register-table tbody{display:grid;gap:0}
  /* Each line is not filled: the page's grey, as Finance's rows (Callan, 1 Dec 2026: "yes"; the cards were --surface
     white). */
  body.vt .cb-register-table tbody tr.cb-line:not(.cb-row-edit){
    position:relative;display:grid;grid-template-columns:auto max-content minmax(0,1fr) auto;
    grid-template-areas:
      "select date ref actions"
      "description description description description"
      "received paid balance balance"
      "source source source source";
    gap:var(--ux-space-2);padding:var(--ux-space-3) 14px;
    border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;
  }
  /* ...and none after the last: the panel's own border closes it (aboo.css .rcards tr:last-child). Nor after the message
     under a ＋ row, nor under the cells of a row that is still a table row here (the ✎ and ＋ rows from 768px: vt.css
     tbody td), when that row is the last: two lines would lie on top of each other */
  body.vt .cb-register-table.cb-table tbody tr.cb-line:last-child,
  body.vt .cb-register-table.cb-table tbody tr.cb-add-msg:last-child{border-bottom:0}
  body.vt .cb-register-table.cb-table tbody tr:last-child > td{border-bottom:0}
  /* Posted register lines keep an empty selection cell in the shared table markup.
     Remove that grid column on cards so the date aligns with the panel content. */
  body.vt .cb-register-table tbody tr.cb-line:not(.cb-row-edit):has(.cb-th-sel:empty),
  body.vt .cb-register-table.bank-inbox-table tbody tr.cb-line:not(.cb-row-edit){
    grid-template-columns:max-content minmax(0,1fr) auto;
    grid-template-areas:
      "date ref actions"
      "description description description"
      "received paid balance"
      "source source source";
  }
  body.vt .cb-register-table tbody tr.cb-line:not(.cb-row-edit) td{
    display:block;padding:0;border:0;min-width:0;text-align:left;white-space:normal;
  }
  /* A line's hover tints the whole line with the app's list hover (vt.css table.list tr.clickable:hover td; on a big
     screen the same tint, on its cells): a line here is a grid, and tinted cells would leave its gaps bare. The cards'
     cue was their border, which a section of the panel no longer has. A line just added keeps its own colour. */
  body.vt .cb-register-table tbody tr.cb-line:not(.cb-row-edit):not(.cb-row-added):hover{background:rgba(42,224,224,.06)}
  html[data-theme="light"] body.vt .cb-register-table tbody tr.cb-line:not(.cb-row-edit):not(.cb-row-added):hover{background:rgba(10,127,127,.07)}
  body.vt .cb-register-table tbody tr.cb-line:not(.cb-row-edit):hover td{background:transparent}
  /* An unallocated line's brown edge and an allocated (or posted) line's green one, as on a big screen: a 3px stripe
     inside the line's left edge (Andre, 10 Nov 2026), not on its first cell (the select box, not at the edge here).
     On the cards they were 3px left borders, and the brown one never showed: the card's own border (0,4,3) outranked
     it (0,3,3). A stripe takes no room, so every line's content starts at the same place. */
  body.vt .cb-register-table tbody tr.cb-row-unalloc{box-shadow:inset 3px 0 0 #b45309}
  body.vt .cb-register-table tbody tr.cb-row-unalloc td:first-child{box-shadow:none}
  body.vt .cb-register-table tbody tr.cb-line.cb-row-alloc:not(.cb-row-edit){box-shadow:inset 3px 0 0 var(--ok)}
  body.vt .cb-register-table tbody tr.cb-line.cb-row-alloc:not(.cb-row-edit) td:first-child{box-shadow:none}
  /* a line just added with a ＋ (Andre, 10 Nov 2026): the whole line takes the tint, not each of its cells */
  body.vt .cb-register-table tbody tr.cb-line.cb-row-added:not(.cb-row-edit){background:color-mix(in srgb, var(--brand) 16%, var(--surface))}
  body.vt .cb-register-table tbody tr.cb-line.cb-row-added:not(.cb-row-edit) > td{background:transparent}
  body.vt .cb-register-table .cb-th-sel{grid-area:select;align-self:center}
  body.vt .cb-register-table .cb-td-date{grid-area:date;align-self:center;font-weight:650}
  body.vt .cb-register-table .cb-td-ref{grid-area:ref;align-self:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  body.vt .cb-register-table .cb-td-desc{grid-area:description;overflow-wrap:anywhere;line-height:1.35}
  body.vt .cb-register-table .cb-td-act2{grid-area:actions;align-self:center;justify-self:end}
  body.vt .cb-register-table .cb-td-received{grid-area:received}
  body.vt .cb-register-table .cb-td-paid{grid-area:paid}
  body.vt .cb-register-table .cb-td-balance{grid-area:balance;justify-self:end}
  body.vt .cb-register-table .cb-td-source{grid-area:source}
  body.vt .cb-register-table .cb-td-received::before,
  body.vt .cb-register-table .cb-td-paid::before,
  body.vt .cb-register-table .cb-td-balance::before,
  body.vt .cb-register-table .cb-td-source::before{
    content:attr(data-label);display:block;margin-bottom:2px;color:var(--faint);font-size:10px;
    font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  }
  body.vt .cb-register-table .cb-row-opening{grid-template-areas:
    "date date date balance"
    "description description description description"
    "received paid source source"}
  body.vt .cb-register-table .cb-row-opening .cb-th-sel,
  body.vt .cb-register-table .cb-row-opening .cb-td-act2{display:none}
  /* a balance the co-op moved between its sub-accounts keeps its tint as a line */
  body.vt .cb-register-table tbody tr.cb-line.cb-row-move:not(.cb-row-edit){background:var(--brand-faint,rgba(25,196,196,.07))}
  /* ...and so does the opening balance, the panel's last line (Callan, 1 Dec 2026: "make the opening balance line tinted
     on phone too"): aboo.css .cb-row-opening's tint, which the line rule outranks here. Only the tint: its 2px rule above
     (on a big screen) would sit on the line between the lines, two lines on top of each other. */
  body.vt .cb-register-table tbody tr.cb-line.cb-row-opening:not(.cb-row-edit){background:var(--brand-faint,rgba(25,196,196,.07))}
}

/* Inline "create account" from the bank GL allocation dropdown (owner 2026-09-21). */
body.vt .cb-drop-add{color:var(--brand);font-weight:600;cursor:pointer;border-top:1px solid var(--line-soft)}
/* Andre (9 Nov): in the allocate popup "＋ Create account" leads the results, its standard accounts right under it —
   no rule above that block, one rule under it, before the matches */
body.vt .alloc-results .cb-drop-add{border-top:0}
body.vt .alloc-results .cb-drop-add + .cb-drop-item:not(.cb-drop-add){border-top:1px solid var(--line-soft)}

/* Register "Jump to statement" nav on the balance bar (owner 2026-09-21). */
body.vt .cb-jump{max-width:210px}   /* a searchable box: the input inside carries the field's own size and padding */

/* Settings forms (Company Details and the other tabs built on .set-stack) use plain .card sections
   with no .card-body; their FORM inset is granted once at the CARD PADDING CONTRACT above (the FORM
   exception), so it is not repeated here. What remains is control sizing: every control in a settings
   row shares one height (CLAUDE.md rule 9) — the plain <select>s (FY start day / month) rendered 32px
   with the native arrow beside 35px searchSelect inputs, so pin inputs, selects and searchSelects to
   --control-h and give the selects the same chevron as the rest of the app. A checkbox field sits on
   the inputs' baseline, not centred between a label and its input. */
body.vt .set-stack select,
body.vt .set-stack .ss-input,
body.vt .set-stack input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=file]){
  height:var(--control-h);box-sizing:border-box}
body.vt .set-stack select{appearance:none;-webkit-appearance:none;padding-right:28px;cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237A8F93' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 10px center}
body.vt .set-stack .fld.inline{align-self:end;min-height:var(--control-h)}

/* the drop card at the top of a screen, full width (owner 1 Dec 2026: "move to top of screen" · "full width") */
body.vt .cb-card.screen-drop-card{max-width:none;width:100%;min-width:0;margin:0 0 8px;flex-direction:row;align-items:baseline;gap:10px}
body.vt .cb-card.screen-drop-card .cb-card-name{flex:0 1 auto}
body.vt .cb-card.screen-drop-card .cb-card-acct{margin-top:0}
/* the delete on a card, in its top-right corner (owner 1 Dec 2026: "trash icon top right on cards" · "Must be top right" —
   src/shared/confirm.js cardDelete): the card's first line makes room for it, its buttons stay flush right; its
   "Delete? Yes No" opens in the same corner */
body.vt .has-card-del{position:relative}
body.vt .has-card-del > :first-child:not(.card-del),body.vt .has-card-del > .card-del + *{padding-right:32px}
body.vt .has-card-del > .card-del,body.vt .has-card-del .card-del{position:absolute;top:4px;right:4px;z-index:2;display:inline-flex;
  align-items:center;gap:6px;background:inherit}
/* No sharp corners (Callan, 30 Nov 2026: "please also check that there are no sharp corners in the entire app"). A sweep
   of every company screen on local, at desktop and phone width, with its menus, pickers, pop-ups and edit rows open,
   found these; everything else was already round:
   - a table in a list screen's rounded frame (.screen-body .tbl-wrap: 8px, overflow visible so its pinned header and row
     menus may leave it) drew its header's fill — and a hovered or flashed row's — square over the frame's rounded
     corners (Fixed Assets; Settings › Branding & Comms, Forex, API Keys & MCP). Its corner cells take the frame's inner
     curve, 8px less its 1px border. A card's table frame does not clip either (vt.css), so it is reached the same way;
   - the VAT report's "Total refund due" band and its fields' header band: two fills with square corners on the form;
   - a pinned search bar inside a card (Settings › Chart of accounts): the page's grey, square, on the card's colour. */
body.vt :is(.screen-body, .page .card) .tbl-wrap > table > :first-child > tr:first-child > :first-child{border-top-left-radius:calc(var(--radius-sm) - 1px)}
body.vt :is(.screen-body, .page .card) .tbl-wrap > table > :first-child > tr:first-child > :last-child{border-top-right-radius:calc(var(--radius-sm) - 1px)}
body.vt :is(.screen-body, .page .card) .tbl-wrap > table > :last-child > tr:last-child > :first-child{border-bottom-left-radius:calc(var(--radius-sm) - 1px)}
body.vt :is(.screen-body, .page .card) .tbl-wrap > table > :last-child > tr:last-child > :last-child{border-bottom-right-radius:calc(var(--radius-sm) - 1px)}
body.vt .v201-owing{border-radius:var(--radius-sm)}
body.vt .v201-fields > thead > tr > th:first-child{border-radius:var(--radius-sm) 0 0 var(--radius-sm)}
body.vt .v201-fields > thead > tr > th:last-child{border-radius:0 var(--radius-sm) var(--radius-sm) 0}
body.vt .page .card .list-toolbar{border-radius:var(--radius-sm)}
/* Round 2 (Callan, 1 Dec 2026: "please check for the rounded corners" — "check all the screens/grids etc, I do not want
   to see one sharp edge"; "if you checked it on desktop then that is fine"). The sweep again on every company screen at
   1920 px (70 screens: each list, form, document, report and Settings tab), now also counting pictures and scrolling
   every list to its end, found two more; a slip or an attachment shown in place had no radius of its own either:
   - Approvals' slip photo was fitted into its half, so its own corners stood square inside the round frame — it now
     takes its own shape (aboo.css .apv-thumb, the computer's half), so its 8px corners are the photo's;
   - the dashboard's year chart: every bar's foot was square on the base line;
   - a photo shown in place (an open claim's slip, the attachments card, a duplicate's comparison) stood square in its
     box whenever it was narrower or shorter than the box. */
body.vt .dash-fy-bar{border-radius:3px}
body.vt :is(.ex2-slip-img, .attach-preview-img, .dup-cmp-slip img){border-radius:var(--radius-sm)}

/* ---------------------------------------------------------------------------------------------
   PHONE FIT (owner 2026-10-19: "everything to fit inside the mobile window but for it to still
   look like functional ui"; "the desktop functionality must not break").
   ONE block, and it stays the LAST rule of this sheet: every phone-only fix of that pass lives
   inside it, so 768px and up is untouched by construction (test/mobile.test.js asserts it), and a
   check can switch the whole pass off by deleting this one rule. Wide tables keep the page fitting
   and scroll sideways inside their own box (owner's choice). Each screen's rules are scoped to
   that screen's own classes. Evidence: sleek-investigations/can-every-screen-fit-a-phone-without-
   changing-desktop/.
   --------------------------------------------------------------------------------------------- */
@media (max-width:767px){
  /* Your companies (src/tenant/home.js). .row-actions (aboo.css) is one row that neither wraps nor
     shrinks: with "Chart of accounts" and "New window" it measured 485-524px inside a 369px card at
     401px, the buttons ran off the card and the phone zoomed the page out to 555px. The actions take
     the card's width and WRAP, buttons share each line (as aboo.css MOBILE STACKING's
     .row-card > .btn), and an armed Reset/Delete confirm wraps on its own line. The "›" moves to
     the card's top-right beside the name (owner's choice): left in the wrapping row it fell onto a
     line of its own at some widths. top/right are the card's padding (12px 14px) and height the
     name's 24px line, so it centres on the name; the name stops 24px short of the edge, 8px clear
     of it. Scoped to .co-card: bare .row-actions is also the tenant app bar's (tshell.js). */
  .co-card{position:relative}
  .co-card > .row-main{padding-right:24px}
  .co-card > .row-actions{flex:1 1 100%;flex-wrap:wrap}
  .co-card > .row-actions > .btn{flex:1 1 auto}
  .co-card > .row-actions > .row-open{position:absolute;top:12px;right:14px;height:24px;display:flex;align-items:center}
  .co-card > .row-actions > .confirm-inline{flex:1 1 100%;flex-wrap:wrap}
  /* Bank rules (src/tenant/bank_rules.js:190). A rule's chips (match type, scope, Apply to existing),
     its edit chip and its delete sit in one .row-actions row only as wide as its content (aboo.css
     .row-actions flex:0 0 auto): at 320px the row measured 336px and ran 43px past the screen. Wrapping
     it inside the card (this pass's first fix) left the delete, and at 320px the edit too, on a line of
     their own under the chips (owner 2026-10-20: buttons stacked). On a phone the row's box steps aside
     (display:contents; vt.css:125 makes it a flex box, hence body.vt) so its buttons place in the card
     itself: the edit and delete at the top right beside the rule's name, the chips on the line below,
     8px apart as in the row. The name keeps all but 96px of the first line: room for the two icons
     (35 + 28px and two 8px gaps = 79px) and never for a chip too (17px left, the narrowest chip is
     50px). While a delete is being confirmed only the edit is up there, so the name keeps all but 60px;
     the "Delete? Yes / No" takes a line of its own at the right, under the chips. */
  .rule-card{column-gap:8px}
  .rule-card > .row-main{flex:1 1 calc(100% - 96px)}
  .rule-card:has(> .row-actions > .confirm-inline) > .row-main{flex-basis:calc(100% - 60px)}
  body.vt .rule-card > .row-actions{display:contents}
  .rule-card > .row-actions > .chip-btn{order:1}
  .rule-card > .row-actions > .chip-btn:has(+ .btn-row-del),
  .rule-card > .row-actions > .chip-btn:has(+ .confirm-inline){order:0}
  .rule-card > .row-actions > .confirm-inline{order:2;flex:1 1 100%;justify-content:flex-end}
  /* Contact detail (src/tenant/contacts.js:940). Its four tabs (.cb-tabs, aboo.css:837) stay on one
     line, which needs ~530px: at 401px "Communications" and "Attachments" ran out of the tab bar and
     the others squeezed until their labels wrapped inside them (62px tall). Letting them wrap (this
     pass's first fix) put each tab on a line of its own at 320px: four lines of tabs. On a phone the four
     are a 2x2 grid of equal tabs. Each draws its own underline, because the bar's line (aboo.css:837)
     would sit under the second row only; the open tab's is the accent, 4px as on desktop. The tabs are 6px
     apart and keep the desktop's 14px: touching (0px, the bar no longer draws the strip) they read as four
     controls jammed together, and 13px changed their type. "Communications (0)" takes two lines at 320px. */
  .ct-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;border-bottom:0}
  .ct-tabs > .cb-tab{min-width:0;margin-bottom:0;padding:8px 4px;white-space:normal;border-bottom:2px solid var(--line)}
  .ct-tabs > .cb-tab.active{border-bottom:4px solid var(--aboo-accent,#19C4C4)}
  /* Sales and purchase lists (src/tenant/documents.js:165). In the table's narrow actions cell,
     "Clone" and "Repeat" wrapped and stacked touching (0px apart). Keep them on one line as on
     desktop, 12px apart: they sit in one box of slots (.doc-row-btns) whose gap spaces them in whichever
     order Andre's rule puts them (the ✓ first on Windows, last on a Mac). Behind body.vt, so it outranks
     the box's desktop 3px (body.vt .doc-row-btns: 0,2,1). The table already scrolls sideways inside its
     own box (.tbl-wrap), so the wider cell costs nothing. */
  .doc-row-actions{white-space:nowrap}
  body.vt .doc-row-actions > .doc-row-btns{gap:12px}
  /* Document editor (src/tenant/document_editor.js:123). The actions at its top (Create Credit Note,
     Clone, Repeat) are appended by script with no space between them, so the buttons touch. Lay them
     out as a wrapping row with a 6px gap. */
  .de-head-actions{display:flex;flex-wrap:wrap;gap:6px}
  /* Settings > Branding colours (src/tenant/settings.js:1269). The two colour rows share a .grid2
     line (two columns up to 820px, vt.css:815), and a column is never narrower than its content: the
     hex box's natural ~190px. At 401px the second box ran ~120px out of the card. Width 0 lets the
     box shrink to its share of the column; flex:1 1 auto (vt.css:522) grows it back to fill the row. */
  body.vt .bt-color-row > .bt-hex{width:0}
  /* Settings tabs (src/tenant/settings.js, the .set-stack forms). A checkbox label stays on one line
     (.fld.inline > span is nowrap) and vt.css:1208 lets it wrap only up to 640px, so from 641 to 767px
     "Allow bank accounts in other currencies (USD, EUR …)" widened its .grid2 column to 423px and
     pushed the checkbox out of the card and off the screen (127px past it at 641px). Let it wrap on
     every phone width. body.vt keeps this off the admin surface, which also uses .set-stack
     (admin/user_detail.js) but never has body.vt (admin/shell.js:84 removes it). */
  body.vt .set-stack .fld.inline > span{white-space:normal}
  /* Reports (src/tenant/reports.js:1316, every report). The PDF / Excel / CSV / Print buttons sit in a
     row that does not wrap (aboo.css:1491): at 320px they were squeezed to 303.5px inside a 296px
     header and Print stuck out 7.5px. Letting the row wrap (this pass's first fix) left Print alone on a
     second line at 320 and 375px. On a phone the four are a 2x2 grid of equal buttons across the line under the title
     (the header wraps there, aboo.css:593). */
  .rp-actions{display:grid;grid-template-columns:1fr 1fr;flex:1 1 100%}
  /* Income statement (src/tenant/reports.js:962). Each line is a grid of the label and two fixed
     140px money columns (aboo.css:2180) in a card padded 26px a side: at 375px the profit lines ran
     11px past the screen, at 320px 27px. A statement is a table, so it gets the owner's rule for wide
     tables: on a phone it scrolls sideways inside its own card. */
  .rp-is{overflow-x:auto}
  /* Recurring profiles, the "New / Edit recurring profile" modal (src/tenant/recurring.js:297). Its
     lines table (description, qty, price, disc %, account and tax pickers, remove) needs 438px and
     sits straight in the modal card with no scroll box: at 320px it ran 176px past the card, at
     401px 95px. A table, so the owner's wide-table rule: it scrolls sideways inside its own box.
     display:block makes the table element that box; its rows keep their table layout, and where it
     already fits (about 520px and up) its columns keep the same widths. */
  .rec-lines-tbl{display:block;overflow-x:auto}
  /* ...and its line inputs keep about their desktop widths (69-113px at 768-1280px). In the scrolling table they
     shrank to their minimum on a phone (aboo.css:3551 lets them): quantity 23px, price 34px, account 59px wide,
     too small to read what is typed. The table scrolls sideways in its own box instead. */
  .rec-lines-tbl tbody .form-control{min-width:70px}
  .rec-lines-tbl tbody td:first-child .form-control{min-width:110px}
  .rec-lines-tbl tbody .ss-input{min-width:90px}
  /* Dashboard (src/tenant/dashboard.js:1057). The Profit & Loss panel sets "This month" and "Year to date"
     side by side in a 1fr 1fr grid (aboo.css:1523), and a column cannot shrink below its unbroken figures
     ("R 155,292.50 ↑ R 155,292.50" is nowrap): at 320px the pair needed 475px of a 266px card and "Year to
     date" ran to 502px, 182px past the screen (72px at 430). On a phone the two sit side by side while they
     fit and stack when they do not; where they fit, each still takes half of the card. */
  .dash-pnl{display:flex;flex-wrap:wrap}
  .dash-pnl > .dash-pnl-col{flex:1 1 220px}
  /* VAT report, the VAT201 return (src/tenant/reports.js:847). Its boxes table (SARS reference, description,
     amount) needs 390px and sits straight in the return's padded card with no scroll box of its own (the
     transaction tables below it have one): at 320px it ran 97px past the screen and the whole page scrolled
     sideways. A table, so the owner's wide-table rule: it scrolls sideways inside its own box, as the
     recurring lines table above does. That box reaches 14px into the card's side padding (the card's phone
     padding, aboo.css:2262) and pads itself back by the same 14px, so the cells sit exactly where they did:
     at 430px, where the table already used that padding to fit, it still shows whole, with nothing hidden
     behind the scroll; and where it fits its card, its columns keep the same widths. body.vt: the tenant
     skin's body.vt table{width:100%} (vt.css) would otherwise keep the box from reaching into the padding. */
  body.vt .v201-fields{display:block;width:auto;overflow-x:auto;margin-left:-14px;margin-right:-14px;padding-left:14px;padding-right:14px}
  /* Document editor, the footer actions (src/tenant/document_editor.js:183). Cancel, "Email to contact",
     Save and Confirm share one row that does not wrap (aboo.css:3747): on a new draft at 320-401px Save and
     Confirm ran off the screen and were cut off (Confirm to 430px at 320). Letting the row wrap (this pass's
     first fix) split the buttons: Cancel alone above Save and Confirm at 320px, Confirm alone at 375-430px.
     On a phone the "Email to contact" switch takes the first line, and Cancel, Save and Confirm share the next
     in equal parts (on a sent document, Cancel and Send). The spacer that pushes them right on desktop is not
     shown, and a save error takes its own line below the buttons, so they do not move under the finger. */
  .de-actions{flex-wrap:wrap}
  .de-actions > .jrn-spacer{display:none}
  .de-actions > .de-send-toggle{order:-1;flex:1 1 100%;margin-right:0}
  .de-actions > .btn{flex:1 1 0}
  .de-actions > .row-err{order:9;flex:1 1 100%}
  /* Every typeahead dropdown: the account, contact and bank pickers of journals, the bank screens, the
     dashboard, reports and Settings > Chart of accounts. They open in ONE floating layer, a child of <body>
     (src/shared/floatroot.js), so no screen's class can reach them. .cb-dropdown{min-width:320px}
     (aboo.css:1151), and every screen places a dropdown at least 8px from the left (positionNear,
     journals.js:174, and the same line in cashbook, dashboard, reports and settings), so on a 320px phone
     each one ran from 8 to 328px: 8px past the screen. A dropdown now asks for at most the screen less
     16px, which is under 320px only below 336px; from 336px up it is 320px, exactly as before. */
  .cb-float-root > .cb-dropdown{min-width:min(320px,calc(100vw - 16px))}
  /* Found by looking at every screen at 320/375/401/430px in the owner's Chrome (owner 2026-10-19: "make sure
     the ui is correct on mobile"): nothing below ran off the screen, so the fit checks passed it, but each one
     looked broken on a phone. */
  /* Dashboard, Bank Accounts and Recent Activity (src/tenant/dashboard.js:982, :1074). Up to 1100px each row
     is a card of label/value pairs in two columns (ux.css, "1fr auto"), the second as wide as its widest value,
     so at 320px the first was ~99px: a date broke into "17/10/" + "2026" and an amount into "R", "862." and "50"
     (at 375px "R" + "2,415.00"). On a phone each pair takes a line of its own. In a Bank Accounts card the
     account cell breaks words anywhere (vt.css:1310, every dashboard table), so the account number broke
     inside itself ("(62999 001)" at 320px, a lone ")" at 375px): on a phone it breaks only between words. Whole,
     the number then stood 10-15px out of its card beside a longer name ("Invented Dollar Bank (62000000002)" at
     320px), so the cell wraps: the number takes the next line, at the right, when the name leaves it no room. */
  body.vt .dash-page .dash-activity-table tr{grid-template-columns:1fr}
  body.vt .dash-page .dash-bank-table table.list td:nth-child(2){overflow-wrap:normal}
  body.vt .dash-page .dash-bank-table table.list td:nth-child(2){flex-wrap:wrap;row-gap:2px}
  body.vt .dash-page .dash-bank-table table.list td:nth-child(2) > .muted{margin-left:auto}
  /* Bank screens, the register cards (src/tenant/cashbook.js). A posted line keeps an empty selection cell, and
     the card's three-column grid (ux.css, "date ref actions") has no area for it, so it was placed in two extra
     columns that took 44px from the middle one: at 320px the reference wrapped ("PRB-" / "L4") and a paid amount
     broke into "R" + "3,852.50", the number running under the balance. The empty cell is not shown. */
  body.vt .cb-register-table tbody tr.cb-line:not(.cb-row-edit) > td.cb-th-sel:empty{display:none}
  /* Bank screens, "Email statements to import" (src/tenant/cashbook.js:1433). The label, the address and its
     copy button wrap as one row: at 430px the label and the address fit a line and the copy button fell onto the
     next on its own. The label takes its own line, so the address and its button stay together. */
  .cb-intake-row > .cb-intake-label{flex:1 1 100%}
  /* Balance sheet (src/tenant/reports.js:1001). Each line is a grid of an 86px code column, the account and the
     amount (aboo.css:2193): at 320px the account had ~90px, so "Machinery and Equipment - Cost" took four lines
     and amounts broke into "R" + "113,492.50", as did a group's total. The codes are 4 characters (~30px): on a
     phone the code column is 48px, and an amount stays on one line. */
  .rp-bs-row{grid-template-columns:48px 1fr auto}
  .rp-bs-row > .rp-bs-amt{white-space:nowrap}
  .rp-bs-grouphead > .mono{white-space:nowrap}
  /* Settings, every tab (src/tenant/settings.js: company details, branding, the chart of accounts forms, API keys)
     and the expense form (src/tenant/expenses.js:303). Their fields sit in a .grid2 of two columns up to 820px
     (vt.css:815): at 320px each field was 125px, so values were cut ("VAT201 Test (ir"), a two-line label pushed
     a field below its neighbour, and the financial year's month box showed no month. On a phone the fields take
     one column. A settings tab is the pane after the tab strip: since the standard screen (22 Nov 2026) the strip is
     in the screen's top band and the pane in its body, so the old `.set-tabs ~ *` reached no field and every tab was
     two columns again (Callan, 2 Dec 2026, sweep M2: API keys' Name 38px beside Scopes' 273px, the page sideways). */
  body.vt .screen-top:has(> .set-tabs) ~ .screen-body .grid2{grid-template-columns:1fr}
  body.vt .expense-form > .grid2{grid-template-columns:1fr}
  /* Document editor, the line cards (src/tenant/document_editor.js:228). On a phone each line is a card of label
     and field (aboo.css, "each line becomes a labeled card"): the typed fields fill their line, but the item, VAT
     and account pickers kept their natural ~206px, a ragged right edge, with the account cut to "0400 — Sales -
     Standarc". The pickers fill their line too. */
  body.vt .de-lines td > [data-tax-pick]{flex:1 1 auto;min-width:0}
  body.vt .de-lines td > [data-acct-pick]{flex:1 1 auto;min-width:0}
  body.vt .de-lines .de-item-wrap > span{align-self:stretch}
  body.vt .de-lines .ss-input{width:100%}
  /* ...and a line's remove cell (document_editor.js:234). The card's phone rule (aboo.css:3787) draws it as a rule
     across the card with the bin at its right end, but the table's 30px column width (aboo.css:3734) stayed: a 30px
     stub of a line with the bin under it at the left. It takes the card's width. */
  body.vt .de-lines .de-c-x{width:auto}
  /* The top bar of every company screen (src/tenant/tshell.js:370). On a phone its right group is the three 34px
     icons (switch company, governance, light/dark: the user name, role and Sign out are hidden below 900px,
     vt.css:961), and the company name is meant to take what is left and end in "…" (vt.css:973). But the group
     may shrink (vt.css:80, for the desktop's long user names), so a long company name squeezed it below its icons:
     with "Currency live check ZA (invented data)" the light/dark icon ran 17px past a 320px screen (1px at 375),
     and even "VAT201 Test (invented data)" pushed the icons 10px out of their group. Found 2026-10-20 by the
     currency companies' screens. On a phone the group keeps its width. */
  body.vt .topbar.app-bar > .app-bar-left + .row-actions{flex-shrink:0}
  /* Contacts list (src/tenant/contacts.js:197). On a phone each contact is a card, and its email and phone links
     stretch across it "so long emails don't truncate" (aboo.css:2748). But a link stays on one line (.ct-quick,
     aboo.css:2751, white-space:nowrap) and the name cell keeps 70px clear for the actions (aboo.css:2784), so a
     long address set the card's width: "usd01@currency-live-check.invalid" made the cards 371px wide on a 320px
     screen, and on a 375px one. Found 2026-10-20 by the currency companies' screens. On a phone a link's text
     wraps inside the link, whole, and the card fits. */
  body.vt .ct-list .ct-quick{white-space:normal;overflow-wrap:anywhere}
  /* -------- Round 2 (owner 2026-10-20: "chart of accounts in settings grid is broken and also on some pages the width
     of the buttons has not been adjusted"; "save/cancel should be next to each other and visible not stacked on top of
     each other"). Found by measuring, at 320/375/401/430px, every group of buttons that share a parent, as each screen
     first draws and after one click (another tab, Edit, New or Add, an armed delete): a group with one button per line,
     a button alone on a line, a field apart from its own button, or one line of mixed heights. -------- */
  /* Forms on every tenant screen (the shared .form-actions row). The stock phone rule gives each button a 140px basis
     (ux.css, "Form actions always read left-to-right"), so a row narrower than 288px put Cancel and Save on a line each:
     a new service item (262px at 320px) and a new batch template (266px). The notes form (src/shared/historynotes.js:273)
     keeps an empty error span of at least 120px in its row (aboo.css:270), which pushed "Save note" under Cancel at every
     phone width. On a phone the buttons share their line in equal parts and wrap only when their labels cannot fit side
     by side (min-width:auto undoes aboo.css:349's 96px, so a label is never cut). The spacer that pushes them apart on
     desktop is not shown. A message takes its own line under the buttons, and an empty one takes no room. body.vt keeps
     the admin surface's forms out of it. */
  body.vt .form-actions > .btn{flex:1 1 0;min-width:auto}
  body.vt .form-actions > .form-actions-spacer{display:none}
  body.vt .form-actions > .row-err{order:9;flex:1 1 100%;min-width:0}
  body.vt .form-actions > .row-err:empty{display:none}
  /* Search boxes on every tenant list (the shared .ux-search). The stock phone rule caps them at 320px (ux.css, "Primary
     create actions are full-width on mobile"), so from 375px each stopped 31px short of the line that the buttons under
     it fill. On a phone a search box fills its line. */
  body.vt .ux-search{max-width:none}
  /* Settings > Chart of accounts (src/tenant/settings.js:1220). The toolbar kept its desktop widths: at 320px the search,
     the 190px type filter and the 130px page-size select took a line each, 34, 32 and 44px tall, with "+ New account"
     beside the page size. On a phone the search fills the first line, the two selects share the second at one height (the
     type filter's own 32px height, from the tenant skin, gives way so it can stretch), and the create button fills the
     third, as ux.css asks of primary create actions. The templates toolbar (settings.js:1720) is the same bar holding only
     "+ New template". */
  body.vt .set-coa-bar{gap:8px}
  .set-coa-bar > .set-typef,
  .set-coa-bar > .per-select{flex:1 1 0;min-width:0;max-width:none;align-self:stretch;height:auto}
  .set-coa-bar > .jrn-spacer{display:none}
  .set-coa-bar > .btn{flex:1 1 100%}
  /* ...the year-end account (settings.js:1250). Its box keeps a 260px minimum (aboo.css:1718), so at every phone width Save
     fell onto the next line alone, 44px tall under a 38px box. The box takes the rest of the line, both are one height,
     and a message takes its own line. */
  /* ...the accounts (settings.js:1259). Eight columns squeezed into a phone: descriptions wrapped word by word, and the
     edit and delete buttons sat past the right edge of the scroll box, out of sight. On a phone each account is a card, as
     on the read-only chart screen and the contacts list: the code, the description and the buttons on the first line, the
     group under them, then tax, bank, balance and transactions, each with its label (the cells' data-label). An empty cell
     is not shown, and the edit pencil is 44px like the delete beside it. A row is a flex container, so its cells are laid
     out as blocks. An armed delete ("Delete? Yes No", or a refusal) takes a line of its own, right-aligned under the name:
     beside it the name was squeezed into three lines at 375 and 401px. */
  body.vt .tbl-wrap:has(> .set-coa){border:0;border-radius:0;overflow:visible}
  body.vt .set-coa,
  .set-coa > tbody{display:block;width:100%}
  .set-coa > thead{display:none}
  .set-coa > tbody{display:flex;flex-direction:column;gap:8px}
  .set-coa > tbody > tr{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;padding:10px 12px;
    border:1px solid var(--line);border-radius:var(--radius-sm);background:transparent}
  body.vt .set-coa > tbody > tr > td{padding:0;border:0;background:transparent;text-align:left}
  .set-coa > tbody > tr > td:nth-child(n+3):not(.set-acts){order:1}
  .set-coa > tbody > tr > td:first-child:not([colspan]){white-space:nowrap;font-weight:650}
  .set-coa > tbody > tr > td:nth-child(2){flex:1 1 0;min-width:0}
  .set-coa > tbody > tr > td:nth-child(3){flex:1 1 100%}
  .set-coa > tbody > tr > td[data-label]{white-space:nowrap}
  .set-coa > tbody > tr > td[data-label]::before{content:attr(data-label);margin-right:6px;color:var(--faint);
    font-family:var(--font-body,inherit);font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
  .set-coa > tbody > tr > td[data-label]:empty{display:none}
  .set-coa .set-acts > .icon-btn{min-width:44px;min-height:44px}
  .set-coa > tbody > tr > td.set-acts:has(> .confirm-inline){flex:1 1 100%;justify-content:flex-end}
  /* an account's edit form at its row (11 Nov): on a phone its row is the form alone, the card's whole width, under the
     account's card */
  .set-coa > tbody > tr.set-acc-edit-row{padding:0;border:0;background:transparent}
  /* the account being edited: its whole card is tinted, not each cell on its own (seen in Chrome at 390px) */
  .set-coa > tbody > tr.set-acc-editing{background:var(--hover,rgba(25,196,196,.08));border-color:var(--brand)}
  body.vt .set-coa > tbody > tr.set-acc-editing > td{background:transparent}
  body.vt .set-coa > tbody > tr.set-acc-edit-row > td{flex:1 1 100%;min-width:0;padding:0}
  /* Settings > Branding, the reminder days (settings.js:1402). The new-day box and its "+ Add" sit at the end of the chips
     (aboo.css:686): on a phone they made a line of their own, a 44px box beside a 35.5px button. They take the whole line,
     the box grows, and the button takes the box's height. */
  .remday-add{flex:1 1 100%;margin-left:0;align-items:stretch}
  .remday-add > .remday-in{flex:1 1 0;width:auto;min-width:0}
  /* Settings > API keys, the AI key (settings.js:1532). The key box and its two buttons (112px each, aboo.css) share a line
     that does not wrap: at 320px the box was 22px wide. On a phone the box takes its line and the buttons share the next. */
  .set-key-row{flex-wrap:wrap}
  .set-key-row > .form-control{flex:1 1 100%}
  .set-key-row > .set-key-act{flex:1 1 0;min-width:0}
  /* Settings, its Communications part and Governance: the tab strips (settings.js:1783 and :1758, src/tenant/
     governance.js:304). The tabs wrap onto two or three lines, each at its own width, so the lines end ragged and a tab
     can sit alone ("API Keys & MCP" at 320px when Forex shows). On a phone each line is filled. */
  .set-tabs > .seg,
  .cm-subtabs > .seg{flex:1 1 auto;justify-content:center}
  .gov-tabs > .seg{flex:1 1 auto;justify-content:center}
  /* Sales and purchase lists (src/tenant/documents.js:305). "+ New ▾" kept its desktop size at the left of the toolbar,
     and the type tabs wrapped ragged: three purchase tabs alone on a line each at 320px. On a phone the create button
     fills its line (ux.css: primary create actions are full-width on mobile), the search the next, and the tabs fill
     theirs. */
  .doc-toolbar > .ct-new-dd{flex:1 1 100%}
  .doc-toolbar > .ct-new-dd > .ct-new-btn{flex:1 1 auto}
  .doc-toolbar > .segs{flex:1 1 100%}
  .doc-toolbar > .segs > .seg{flex:1 1 auto;justify-content:center}
  /* Document editor, its top actions (Create Credit Note, Clone, Repeat; document_editor.js:124). Under the title they
     took only their own width, and at 320px Repeat sat alone on a second line. On a phone they take the line under the
     title and fill it (at 320px Repeat fills a second line). */
  /* 2026-11-22: the everyday actions are icons now (plan/document-actions-as-icons.md) — they stay on the title line,
     square; only the next step's words may stretch when the row wraps. */
  .de-head > .de-head-actions{flex:0 1 auto;margin-left:auto}
  .de-head-actions > .btn:not(.de-icon-btn){flex:1 1 auto}
  /* Reports, the quick ranges (src/tenant/reports.js:397 and :666). The label and the buttons wrap at their own widths:
     "All" sat alone on a line at 320 and 430px. On a phone the label takes its own line and each line of buttons is
     filled. */
  .rp-quick > .rp-quick-lbl{flex:1 1 100%}
  .rp-quick > .btn{flex:1 1 auto}
  /* ...the financial-year arrows (reports.js:655 and :659): "‹" (a character) was 34.9x35.5px and "›" (an icon)
     44x32px. Both are 44x36px. */
  .rp-fynav > .btn{width:44px;height:36px;padding:0}
  /* ...the trial balance's Balances / Movements switch (reports.js:631): at 320 and 375px "Movements (from – to)" fell
     under "Balances (as at)". On a phone the two share the line in equal halves, and a label wraps inside its half if it
     must. */
  .rp-filters-col > .rp-tb-mode{flex-wrap:nowrap;align-self:stretch}
  .rp-tb-mode > .login-kind-btn{flex:1 1 0;min-width:0;white-space:normal;padding:8px 10px}
  /* ...the totals cards (reports.js:921 and every report with totals): each card kept its 130px minimum width, two to a
     line with a ragged edge. On a phone each line of cards is filled. */
  .rp-cards > .rp-kpi{flex:1 1 140px}
  /* Bank screens, the balance bar (src/tenant/cashbook.js:1862). The phone rule meant to stop it sticking (aboo.css:123,
     position:static) loses to the bar's own later rule (aboo.css:809, position:sticky), so on a phone the bar, two or three
     lines tall, stayed pinned over the register. And its controls kept desktop widths: the 210px statement jump alone on
     a line at 320 and 375px, then "Fetch mail" and "Statements" each at its own width. On a phone the bar scrolls with the
     page and is a grid of two equal columns: the balance with the reconcile badge beside it (the badge wraps inside its
     half when it must: "Off by R 13,926.91" is 155px, wider than half the bar at 320px); what is left to do beside
     Re-run; Post (or its confirm) on a line; the jump on a line; then Fetch mail and Statements in equal halves. The
     badge wraps after "Off by" only: its amount (its own span, cashbook.js:1869) keeps one line, where it broke "R"
     over "13,926.91" at 320px. A supplier's account adds "Import summary" (A6): a line of its own, after them. */
  .cb-summary{position:static;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;align-items:center}
  .cb-summary > .cb-summary-bal{grid-column:1}
  .cb-summary > .cb-recon{grid-column:2;justify-self:end;white-space:normal;text-align:right}
  .cb-summary > .cb-recon > .cb-recon-amt{white-space:nowrap}
  .cb-summary > .cb-todos{grid-column:1;justify-self:start}
  .cb-summary > .cb-todos + .btn{grid-column:2}
  .cb-summary > .btn-primary,
  .cb-summary > .confirm-inline{grid-column:1 / -1}
  body.vt .cb-summary > .cb-jump{grid-column:1 / -1;max-width:none}
  .cb-summary > .cb-fetch-mail{grid-column:1;margin-left:0}
  .cb-summary > .cb-statements{grid-column:2}
  .cb-summary > .cb-import-summary{grid-column:1 / -1}
  /* ...and on a phone neither of the bank screen's pinned parts pins, the balance bar or the filter bar: both scroll with
     the page (Callan, 1 Dec 2026, asked if they should: "do your recommendation"). The standard screen (22 Nov) pins them
     (screen.js pinStack: [data-pin-host] [data-pin]{position:sticky}, 0,2,0), which outranked .cb-summary's static
     above (0,1,0): pinned, they took 390px of a 760px phone (186 + 204), two lines in view. Tablets and big screens keep
     them pinned. Keyed on their own classes (0,3,1): this block's rules each name one screen's class. */
  body.vt .cb-summary[data-pin],body.vt .cb-auto-toolbar[data-pin]{position:static}
  /* ...the page head (cashbook.js:1481): "Allocation rules" (35.5px) beside the Auto / Manual switch (29.5px). The switch
     takes the button's height. */
  .cb-head-actions{align-items:stretch}
  /* ...the register toolbar (cashbook.js:1898): the search kept its 260px cap (aboo.css:828) and the From and To dates
     their own widths, so the lines ended ragged (the search 84px short of the line at 320px). On a phone the search fills
     its line, From and To take a line each with the two dates lined up after their labels, and the checkboxes follow
     with the toolbar's own 12px gap (their stock 6px margins left 24px between the two checkbox lines at 320px). */
  .cb-auto-toolbar > .cb-auto-search{flex:1 1 100%;max-width:none}
  .cb-auto-toolbar > .cb-date-filter{flex:1 1 100%;display:grid;grid-template-columns:40px minmax(0,1fr);align-items:center}
  .cb-auto-toolbar > .check-line{margin:0}
  /* ...and an allocated line's chip in the register (cashbook.js:1800): the account code (or the contact), the
     account's name, the AI tag and the clear ✕ wrap as one row, so at 320px the ✕ fell onto a line of its own under
     the rest ("4300 Utilities - Commercial AI 95%"; and "Bright Cable Supplies (invented)", where the contact's empty
     name slot added a gap that tipped it over by 1px). On a phone the row stays on one line: the account's name wraps
     inside its own space, an empty name takes no room, the AI tag keeps its width, and a contact's chip gives way
     (an ellipsis) before the ✕ would leave the line. */
  .cb-alloc-line:has(> .cb-gl-desc){flex-wrap:nowrap;max-width:100%}
  .cb-alloc-line > .cb-gl-desc{min-width:0}
  .cb-alloc-line > .cb-gl-desc:empty{display:none}
  .cb-alloc-line:has(> .cb-gl-desc) > .cb-ai-tag{flex-shrink:0}
  .cb-alloc-line:has(> .cb-gl-desc) > .cb-via-tag{flex-shrink:0}
  .cb-alloc-line:has(> .cb-gl-desc) > .alloc-btn-matched{min-width:0;overflow:hidden;text-overflow:ellipsis}
  /* Journals, the entry's date, reference, amount and tax (src/tenant/journals.js:562). They kept their desktop widths
     (190, 130, 120 and 180px) in a wrapping row, so the lines ended ragged: at 320px the date sat alone with 106px to
     spare. On a phone they are a two-column grid: date and reference, then amount and tax. */
  .jrn-meta{display:grid;grid-template-columns:1fr 1fr}
  .jrn-meta > .jrn-ref,
  .jrn-meta > .jrn-amt,
  .jrn-meta > .jrn-tax-cell{max-width:none;width:100%}
  /* ...and its actions (journals.js:617): two switches, a spacer and "+ Add" in a row that wraps with an 18px gap. The
     button sat beside "Keep description" at 320-401px and alone at the right of a line of its own at 430px. On a phone
     it fills its own line under the switches, like the other add buttons ("+ Add rule" on Allocation rules), 12px below
     them. */
  .jrn-actions{row-gap:12px}
  .jrn-actions > .jrn-spacer{display:none}
  .jrn-actions > .btn-primary{flex:1 1 100%}
  /* Your companies, a card's buttons (src/tenant/home.js). "Activate billing · R199.00/mo" is long, so with it "Chart of
     accounts" and "New window" each took a line of their own at 320 and 375px, and "New window" sat alone on a second
     line at 401 and 430px. The billing button moves to the end and fills its own line; the other two share the first.
     At 320px those two need 260.5px of the card's 258 (128.1 + 123.4px and the row's 9px gap), so on a phone the card's
     buttons take 10px side padding, not 12: 252.5px, and they share the line there too. */
  .co-card > .row-actions > .btn-primary{order:1;flex:1 1 100%}
  .co-card > .row-actions > .btn{padding-left:10px;padding-right:10px}
  /* Expenses: the status tabs under the search (expenses.js) wrapped ragged, three and three at 320px, four and two from
     375px; they fill their lines, as the Sales and purchase tabs do. (The old drop box's rule went with it: the one
     upload, owner 2026-11-22.) */
  .expense-page > .list-toolbar > .segs{flex:1 1 100%}
  .expense-page > .list-toolbar > .segs > .seg{flex:1 1 auto;justify-content:center}
  /* Cards whose content touched their border (found by measuring every screen at 375px for a card with no inset whose
     headings and fields start on its edge). ux.css's card reset (body.vt .card{padding:0}, line 35) took their inset,
     as it once did the other Settings forms' and the API keys cards' (given back at ux.css:395 and aboo.css:1671,
     "fix the margins"). On a phone: in Settings, the Branding tab's five cards and Chart of accounts' year-end card
     (settings.js:1248, 1289-1432) take the form inset every other Settings card has (16px; the tab's pane follows the
     tab strip); the document editor's cards (document_editor.js:129-178, 543) take the compact inset of a card's body
     (the editor is a .ct-page, whose card reset at ux.css:39 is 0,3,1: .de-page matches it and wins by coming later).
     Desktop's cards are as flush; from 768px up nothing here applies. */
  body.vt .de-page .de-card{padding:var(--ux-card-pad-compact)}
  /* A card's heading and its grey note (vt.css:143: body.vt h3 is a flex row that does not wrap, the title then the
     <small> note). On a phone each squeezed the other into a narrow column: "Key / figures" beside a two-line note on
     the dashboard at every phone width, "Create a / company / MCP key" in Settings. On a phone the note goes under its
     title. Settings (settings.js, 20 headings with a note): the note takes its own line. Dashboard (dashboard.js:56,
     the folding cards): the chevron, then the title with the note under it, and a folded card's count at the right.
     Settings' pane is the standard screen's body after the top band holding the tab strip: since 22 Nov 2026 the old
     `.set-tabs ~ *` reached nothing (Callan, 2 Dec 2026: "please fix so mobile has the functionality"). */
  body.vt .screen-top:has(> .set-tabs) ~ .screen-body h3{flex-wrap:wrap;row-gap:2px}
  body.vt .screen-top:has(> .set-tabs) ~ .screen-body h3 > small{flex:1 1 100%}
  body.vt .dash-page .dash-coll > .coll-toggle{display:grid;grid-template-columns:auto minmax(0,1fr) auto;row-gap:2px}
  body.vt .dash-page .dash-coll > .coll-toggle > small{grid-column:2}
  body.vt .dash-page .dash-coll > .coll-toggle > .coll-n{grid-column:3;grid-row:1}
  /* Governance, VAT returns (src/tenant/governance.js:282). The From and To dates kept their 190px boxes and Preview
     its own width, so the period wrapped ragged: From alone, then To with Preview beside it (under it at 320px), the
     boxes short of the card's edge. On a phone From and To share a line in halves (a line each at 320px, where two
     140px halves do not fit) and Preview fills the line under them. The previewed return's four figures (Output VAT,
     Input VAT, the net, Lines) wrapped three and one, or two and two: a two-by-two grid. Filing (shown to a user who
     may govern, governance.js:228): the reference box and "File this return" fill a line each. */
  .gov-vat-period > .gov-vat-lbl{flex:1 1 140px}
  .gov-vat-period > .btn{flex:1 1 100%}
  .gov-vat-totals{display:grid;grid-template-columns:1fr 1fr;gap:10px 16px}
  .gov-vat-file > .gov-vat-ref{flex:1 1 100%;min-width:0}
  .gov-vat-file > .btn{flex:1 1 100%}
  /* ...and its cards, a financial year or a submitted return (governance.js:144, 247): the lock, the year or period and
     its badges, then the dates, counts and actions, in a row that wraps. At 320px a return's period broke into four
     lines ("2026-" / "04-01 →" / ...) beside its badge and its reference; the reference takes a line of its own under
     them. The period gives up to 100px of the line (the lock, a badge and their gaps: 22 + 59 + 16px) so it wraps
     beside the lock and keeps its badge after it, instead of dropping to a line of its own (the lock left alone on the
     first, the badge on a third, at 320 and 375px); its two lines are balanced, so a date stays whole ("2026-04-01 →"
     over "2026-05-31", not "... → 2026-" over "05-31" at 375px). For a user who may govern (governance.js:107-135,
     262-272), an armed lock, unlock or reverse takes the card's width: its reason box (or the closing-journals option)
     on a line, then its two buttons side by side in halves. */
  .gov-year{flex-wrap:wrap}
  .gov-year > .gov-fy{max-width:calc(100% - 100px);text-wrap:balance}
  .gov-year > .gov-reason{flex:1 1 100%}
  .gov-act:has(> .gov-arm){flex:1 1 100%}
  .gov-act > .gov-arm{flex:1 1 100%}
  .gov-arm > .gov-reason-in,
  .gov-arm > .gov-close-opt{flex:1 1 100%;min-width:0}
  .gov-arm > .btn{flex:1 1 0}
  /* A page's title block with its action (aboo.css:130, .page-head.with-action) stays pinned under the top bar while
     the page scrolls ("keep the title + Add in reach", #9). On a phone that pin covered 107-192px of the screen for the
     whole scroll: 192px on every report (the title and the four download buttons), 130px on Your companies, Chart of
     accounts and Import, 107-126px on Governance, which has no action at all. On a phone it scrolls with the page; the
     top bar and the bottom bar stay. Company screens only: body.vt (the company shell) and .tenant-main (Your
     companies, Chart of accounts, Import, Billing); the admin surface has neither. */
  body.vt .page-head.with-action,
  .tenant-main .page-head.with-action{position:static}
  /* Add a company (home.js:250) and the billing return / cancel pages (billing.js:97, 117): one card in a padded wrap,
     three insets deep (the content's 16px, the wrap's 16px, the card's 26px): 202px of a 320px phone was left for the
     form, so "Create company" broke over two lines beside Cancel and Cancel stood 6px out of its row. On a phone the
     wrap adds no side inset of its own and the card's is 18px: 250px at 320. */
  .tenant-main .onboard-wrap{padding-left:0;padding-right:0}
  .tenant-main .onboard-wrap > .onboard-card > .card-body{padding-left:18px;padding-right:18px}
  /* Service items, a price row (src/tenant/inventory.js:250). The stock phone layout (aboo.css:1843: the currency,
     then rate and unit side by side, then the tax across the row) places the tax by `select`, but the tax is a search
     box in a <div data-item-tax> now (since fa319eb): it sat in the rate's column, half the row, "— None —" cut. And at
     320px the rate's half (103px) is too narrow for its hint, "— not priced —" (109px of text in 81). The tax takes
     the row again, and the rate gets two thirds of it, the unit ("hour", 34px) one: 115px for the hint at 320. 0,3,0
     and later beats the stock .inv-prices.no-tax .inv-price-row. */
  .inv-form .inv-prices > .inv-price-row{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
  .inv-price-row > [data-item-tax]{grid-column:1 / -1}
  /* The forms of the screens outside the company shell (.tenant-main: Add a company, Import, Billing). Their
     .form-actions row (aboo.css:399) does not wrap, and its buttons' labels do: Import's mapping step ("Cancel",
     "Choose another file", "Import these accounts") squeezed into labels two and three lines tall (56-75px) at every
     phone width, Cancel 24px off the screen at 320px, and its last step's two buttons two lines tall at 320. As the
     company screens' rows above: the buttons share a line in equal parts and keep their labels on one line, a button
     wraps under the others only when the labels cannot fit side by side, and the empty spacer goes. A button's side
     padding is 14px (18 on desktop), so "Import another file" and "Back to home" (151 + 117px and the 8px gap) and
     Cancel and "Choose another file" share a 288px line at 320. */
  .tenant-main .form-actions{flex-wrap:wrap}
  .tenant-main .form-actions > .btn{flex:1 1 0;min-width:auto;white-space:nowrap;padding-left:14px;padding-right:14px}
  .tenant-main .form-actions > .form-actions-spacer{display:none}
  /* Values stay whole: a date, an amount or a reference never breaks over two lines. On a phone a table narrows its
     columns before it scrolls, down to the longest word in each, so a value broke at its space or its hyphen: the sales
     and purchase totals "R" over "212,750.00" (documents.js:288), the team list's dates "2026-" over "10-07"
     (team.js:121), and, with a company date format of yyyy-MM-dd or dd-MM-yyyy (formats.js:3, bank_helpers.js:280),
     the dates in approvals, expenses and recurring. These cells keep one line, as the bank and report tables' already
     do (aboo.css:2432), and the table scrolls sideways inside its own box (vt.css:149). */
  .doc-list td.mono{white-space:nowrap}
  .team-tbl td.mono{white-space:nowrap}
  .apv-tbl td.mono{white-space:nowrap}
  .expense-tbl td.mono{white-space:nowrap}
  .rec-tbl td.mono{white-space:nowrap}
  /* ...the VAT201 transactions (reports.js, v201Row): the reference, the third column (v201Head), broke at its hyphen
     once it outgrew the column's longest unbroken reference ("RCPT-12345" beside "INV00012"). */
  .v201-tx tr.v201-drill > td:nth-child(3){white-space:nowrap}
  /* ...inside a card the company skin lets every table cell wrap, even mid-word, and stops the table scrolling
     (vt.css:1295-1313, written for the narrow desktop dashboard cards). On a phone the dashboard's drafts broke
     "20/10/2026" and "R 2,500.00" in two, and its batches due and a batch's previous runs (batches.js:912) break a
     date or an amount the same way. Their words stay whole (the cells wrap between words, as everywhere else), their
     value cells keep one line, and the table scrolls inside its card. Keeping only the values whole squeezed the other
     columns to a letter a line ("Contact" stacked down the drafts at 320-401px). 0,4,3 and later, or 0,5,3, beats the
     skin's 0,4,3; 0,5,2 beats its 0,4,1. The dashboard's bank accounts and activity are cards already (ux.css:172). */
  body.vt .page .card table.drafts-list th,
  body.vt .page .card table.drafts-list td{overflow-wrap:normal}
  body.vt .page .card table.drafts-list td.mono,
  body.vt .page .card table.drafts-list td > .mono{white-space:nowrap}
  body.vt .page .card .tbl-wrap:has(> table.drafts-list){overflow-x:auto}
  body.vt .page .card table.batches-due-list th,
  body.vt .page .card table.batches-due-list td{overflow-wrap:normal}
  body.vt .page .card table.batches-due-list td.mono{white-space:nowrap}
  body.vt .page .card .tbl-wrap:has(> table.batches-due-list){overflow-x:auto}
  body.vt .page .card.bt-runs table.list th,
  body.vt .page .card.bt-runs table.list td{overflow-wrap:normal}
  body.vt .page .card.bt-runs table.list td.mono,
  body.vt .page .card.bt-runs table.list td.num{white-space:nowrap}
  body.vt .page .card.bt-runs .tbl-wrap{overflow-x:auto}
  /* ...the bank register cards (ux.css:315, the skin's own card layout up to 1100px). The amounts row gives Received,
     Paid and Balance a column each, and the cells wrap (ux.css:344), so a column narrower than its amount broke it ("€"
     over "-1,234,567.89" at 320px once an amount reaches seven digits). The reference broke at its hyphen ("LS-" over
     "1009"): the cells' wrap (0,4,4) beats the reference's own one line and "…" (ux.css:356, 0,3,0). A line has
     Received or Paid, never both: the empty one goes and the other takes both their columns. The amounts and the
     reference keep one line, and a long reference ends in "…", as the skin meant. */
  body.vt .cb-register-table tbody tr.cb-line:not(.cb-row-edit) > td.cb-td-received:empty,
  body.vt .cb-register-table tbody tr.cb-line:not(.cb-row-edit) > td.cb-td-paid:empty{display:none}
  body.vt .cb-register-table tbody tr.cb-line:not(.cb-row-edit) > td.cb-td-received,
  body.vt .cb-register-table tbody tr.cb-line:not(.cb-row-edit) > td.cb-td-paid{grid-column:received-start / paid-end;white-space:nowrap}
  body.vt .cb-register-table tbody tr.cb-line:not(.cb-row-edit) > td.cb-td-balance,
  body.vt .cb-register-table tbody tr.cb-line:not(.cb-row-edit) > td.cb-td-ref{white-space:nowrap}
  /* Bank screens, a co-op statement's review (src/tenant/coop_review.js; plan/supplier-cashbooks.md §9). On a phone it
     takes the whole screen: the shared overlay's 24px padding and the modal's box (aboo.css .cb-stmt-overlay/-modal)
     only narrowed tables that scroll sideways inside their own box anyway. */
  .coop-overlay{padding:0;align-items:stretch}
  .coop-overlay > .coop-review{width:100%;max-height:none;border-radius:0}
  /* The app's messages (shared/notice.js; the Bank screen's too). Centred by left:50% and translateX(-50%), a box could
     only fill the half of the screen right of the centre: a failed import's message ran to seven lines in 188px at 375px
     (2026-10-26). It takes the width its words need, up to the screen less 16px a side. */
  .notice-stack{box-sizing:border-box;width:max-content;max-width:calc(100vw - 32px)}
  /* Bank register, a line's ✎ edit (src/tenant/cashbook.js, tr.cb-line-edit). The register's lines are cards up to
     1100px (ux.css:315), but the edit row is left out of that card grid (:not(.cb-row-edit)): a table row inside a
     grid, its cells shrank to their least, and its date, reference, description and amount boxes were 22px wide at
     375px (Callan 3 Nov: "fix the line edit on phone too"). On a phone it is laid out as a line too: the date and the
     reference side by side, the description its own line, the amount with ✓ and ✕ at the right, as high as the boxes.
     Since 1 Dec 2026 a section of the one panel, as the lines: not filled, a line under it, no outline of its own. */
  body.vt .cb-register-table tbody tr.cb-line-edit{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    grid-template-areas:"date ref" "description description" "amount actions";gap:var(--ux-space-2);
    padding:var(--ux-space-3) 14px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent}
  body.vt .cb-register-table tbody tr.cb-line-edit > td{display:block;padding:0;border:0;min-width:0;text-align:left}
  body.vt .cb-register-table tbody tr.cb-line-edit > td:empty{display:none}
  body.vt .cb-register-table tbody tr.cb-line-edit > td:has(> sleek-date){grid-area:date}
  body.vt .cb-register-table tbody tr.cb-line-edit > td:has(> #cbEditRef){grid-area:ref}
  body.vt .cb-register-table tbody tr.cb-line-edit > td:has(> #cbEditDesc){grid-area:description}
  body.vt .cb-register-table tbody tr.cb-line-edit > td:has(> #cbEditAmt){grid-area:amount}
  body.vt .cb-register-table tbody tr.cb-line-edit > td:has(> .cb-edit-actions){grid-area:actions;justify-self:end;align-self:center}
  body.vt .cb-register-table tbody tr.cb-line-edit .cb-edit-actions > button{height:32px;min-width:44px}
  /* …and the row a line's ＋ opens under it (tr.cb-add-row, Andre 9 Nov 2026), a card the same way: the date and the
     statement's Ref side by side, the description its own line, Received and Paid side by side, Manual with ✓ and ✕. */
  body.vt .cb-register-table tbody tr.cb-add-row{grid-template-areas:"date ref" "description description" "received paid" "source actions"}
  body.vt .cb-register-table tbody tr.cb-add-row > td:has(> #cbAddRef){grid-area:ref}
  body.vt .cb-register-table tbody tr.cb-add-row > td:has(> #cbAddDesc){grid-area:description}
  body.vt .cb-register-table tbody tr.cb-add-row > td:has(> #cbAddIn){grid-area:received}
  body.vt .cb-register-table tbody tr.cb-add-row > td:has(> #cbAddOut){grid-area:paid}
  body.vt .cb-register-table tbody tr.cb-add-row > td.cb-td-source{grid-area:source;align-self:center}
  /* …with the brown edge of a line not yet allocated, as such lines have (Andre, 10 Nov 2026): the same 3px stripe inside
     its left edge (1 Dec 2026; it was a 3px left border) */
  body.vt .cb-register-table tbody tr.cb-add-row{box-shadow:inset 3px 0 0 #b45309}
  /* …and why it was refused: a line of its own under that card (Callan, 10 Nov 2026), never inside it. In the one panel
     (1 Dec 2026) the two are one section: the line under the card moves under the message, and the brown stripe runs
     down through it, as on a big screen (aboo.css: "down through its message line too"). The row after the card that is
     not a register line is that message (one screen class per phone rule: the PHONE FIT test) */
  body.vt .cb-register-table tbody tr.cb-add-row:has(+ tr:not(.cb-line)){border-bottom:0}
  body.vt .cb-register-table tbody tr.cb-add-msg{display:block;padding:0 14px var(--ux-space-3);border-bottom:1px solid var(--line);
    box-shadow:inset 3px 0 0 #b45309}
  body.vt .cb-register-table tbody tr.cb-add-msg > td{display:block;padding:0;border:0}
  body.vt .cb-register-table tbody tr.cb-add-msg > td:empty{display:none}
  /* 11 Nov 2026 sweep (Andre: "go over EVERY screen on mobile / tablet check for padding and button overflows").
     Team: the members table scrolled sideways inside a small box — the one list that was no card on a phone. Each
     member is a card: name and email on the first line, then access, the date added and Remove on the right. */
  body.vt .tbl-wrap:has(> .team-tbl){border:0;border-radius:0;overflow:visible}
  body.vt .team-tbl,.team-tbl > tbody,body.vt .apv-tbl,body.vt .expense-tbl,
  body.vt .cb-register-table tbody tr.cb-line-edit sleek-date{display:block;width:100%}
  .team-tbl > thead{display:none}
  .team-tbl > tbody{display:flex;flex-direction:column;gap:8px}
  .team-tbl > tbody > tr{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;padding:10px 12px;
    border:1px solid var(--line);border-radius:var(--radius-sm);background:transparent}
  body.vt .team-tbl > tbody > tr > td{padding:0;border:0;background:transparent;text-align:left}
  .team-tbl > tbody > tr > td:first-child{flex:1 1 100%;min-width:0}
  .team-tbl > tbody > tr > td:first-child .team-email{overflow-wrap:anywhere}
  .team-tbl > tbody > tr > td:last-child{margin-left:auto}
  .team-tbl > tbody > tr > td:last-child:has(> .confirm-inline){flex:1 1 100%;display:flex;justify-content:flex-end}
  /* Contacts: a contact that owes nothing and is owed nothing had a row of its own holding only "—" under a rule —
     an empty line on every such card. The row and its rule go; a balance still shows on its own line. */
  .ct-list > tbody > tr > td.ct-bal:has(> .muted:only-child){display:none}
  body.vt .ct-list > tbody > tr:has(> td.ct-bal > .muted:only-child) > td{border-bottom:0}
  /* 11 Nov 2026 sweep, second pass (screens that only fill with data). Approvals and Expenses: the claims table
     scrolled sideways inside its box, and Approve / Reject / Pay stood off the screen until the box was dragged. Each
     claim is a card on a phone: what it was and the amount on the first line; the date, the person and the status on
     the second; the buttons on the third. A cell that holds only a dash takes no line. An opened claim's detail
     (Expenses) keeps the card's full width under it. */
  body.vt .tbl-wrap:has(> .apv-tbl),
  body.vt .tbl-wrap:has(> .expense-tbl){border:0;border-radius:0;overflow:visible;background:transparent}
  .apv-tbl > thead,
  .expense-tbl > thead{display:none}
  .apv-tbl > tbody,
  .expense-tbl > tbody{display:flex;flex-direction:column;gap:8px;width:100%}
  .apv-tbl > tbody > tr.clickable,
  .expense-tbl > tbody > tr.clickable{display:grid;grid-template-columns:auto minmax(0,1fr) auto;
    grid-template-areas:"what what amt" "date who st" "act act act";align-items:center;gap:4px 10px;padding:10px 12px;
    border:1px solid var(--line);border-radius:var(--radius-sm);background:transparent}
  body.vt .apv-tbl > tbody > tr.clickable > td,
  body.vt .expense-tbl > tbody > tr.clickable > td{padding:0;border:0;background:transparent;text-align:left;min-width:0}
  body.vt .expense-tbl > tbody > tr.clickable > td:nth-child(1){grid-area:date}
  body.vt .expense-tbl > tbody > tr.clickable > td:nth-child(2){grid-area:what;overflow-wrap:anywhere}
  body.vt .expense-tbl > tbody > tr.clickable > td:nth-child(3){grid-area:who;color:var(--muted)}
  body.vt .expense-tbl > tbody > tr.clickable > td:nth-child(4){grid-area:amt;text-align:right;white-space:nowrap;font-weight:600}
  body.vt .expense-tbl > tbody > tr.clickable > td:nth-child(5){grid-area:st;justify-self:end}
  body.vt .expense-tbl > tbody > tr.clickable > td:nth-child(6){grid-area:act;text-align:right;white-space:normal;padding-top:4px}
  body.vt .expense-tbl > tbody > tr.clickable > td:nth-child(6):has(> .muted:only-child){display:none}
  /* Approvals' "My expenses" (the claims build, 12 Nov 2026): each table has FIVE cells — date, what, amount, the
     status (or the outcome), then the note (or the reason) — and no person: they are all the member's own. */
  .apv-tbl > tbody > tr.clickable{grid-template-areas:"what what amt" "date st st" "act act act"}
  body.vt .apv-tbl > tbody > tr.clickable > td:nth-child(1){grid-area:date}
  body.vt .apv-tbl > tbody > tr.clickable > td:nth-child(2){grid-area:what;overflow-wrap:anywhere}
  body.vt .apv-tbl > tbody > tr.clickable > td:nth-child(3){grid-area:amt;text-align:right;white-space:nowrap;font-weight:600}
  body.vt .apv-tbl > tbody > tr.clickable > td:nth-child(4){grid-area:st;justify-self:end}
  body.vt .apv-tbl > tbody > tr.clickable > td:nth-child(5){grid-area:act;white-space:normal;padding-top:4px}
  body.vt .apv-tbl > tbody > tr.clickable > td:nth-child(5):has(> .muted:only-child){display:none}
  .expense-tbl > tbody > tr:not(.clickable){display:block}
  body.vt .expense-tbl > tbody > tr:not(.clickable) > td{display:block;padding:6px 2px 4px;border:0}
  /* A batch run (src/tenant/batches.js): the "add a line for this run" row is one line that does not wrap: its two
     number boxes, Keep and + Add ran 136px past a 390px screen and the page scrolled sideways. The description takes
     a line of its own; the numbers, Keep and + Add share the next. */
  .bt-run-addadhoc{flex-wrap:wrap}
  .bt-run-addadhoc > .bt-run-desc{flex:1 1 100%;min-width:0}
  .bt-run-addadhoc > .bt-edit-num{flex:1 1 0 !important;min-width:0 !important}
  .bt-run-addadhoc > .btn{margin-left:auto}
  /* Bank register (src/tenant/cashbook.js): a line with a gap warning that is not posted yet carries "⚠ gap" and
     "⇅ fix from balance" beside its date (the button is the register's alone; the dashboard's inbox has none). The
     card's date column is as wide as what it holds, so at 390px the two ran under the row's ✎ ⇄ ✕ ＋ (measured: "fix
     from balance" 201-341px, the icons 251-357px). On such a card the date takes the room that is left and its
     buttons wrap under the date; the reference gives way before the date does. */
  body.vt .cb-register-table tbody tr.cb-line:not(.cb-row-edit):has(.cb-gap-fix){grid-template-columns:auto minmax(9rem,1fr) minmax(0,auto) auto}
  body.vt .cb-register-table tbody tr.cb-line:not(.cb-row-edit):has(.cb-gap-fix):has(> td:first-child:empty){grid-template-columns:minmax(9rem,1fr) minmax(0,auto) auto}
  body.vt .cb-register-table tbody tr.cb-line:not(.cb-row-edit) .cb-gap-fix{margin:2px 0 0}
  /* The claims screens on a phone (the 16 Nov 2026 claims review, U7): "Are you claiming R700?" Yes / No are
     touch-sized (aboo.css pinned them to the 34px control height); a PDF slip is not drawn inside the page (Android
     Chrome shows an empty box) — its "Open the PDF" button opens it; and the boxes on Expenses and Approvals are
     16px, so a phone does not zoom in when one takes the cursor (vt.css's 13.5px stays for the rest of the app). */
  body.vt .expense-page .ex2-ask-acts .btn,body.vt .expense-page .exu-ask .btn,body.vt .apv-page .exu-ask .btn{height:44px;min-height:44px}   /* Who gets paid?'s answers, as Yes / No were */
  body.vt .expense-page .ex2-slip-pdf-view{display:none}
  body.vt .expense-page input, body.vt .expense-page select, body.vt .expense-page textarea,
  body.vt .apv-page input, body.vt .apv-page select, body.vt .apv-page textarea{font-size:16px}
  /* Settings (src/tenant/settings.js, Callan 17 Nov 2026): the outer card that groups a tab (Company details,
     Branding, Email templates, Reminders, Chart of accounts) frames it on a wider screen. On a phone its 16px inset on
     each side cost the content 32px: the chart's description column went from 114px to 80px and "NO LEDGER ACCOUNT"
     broke mid-word over 4 lines. On a phone the outer card is a plain wrapper, so these tabs read as they did before;
     the cards inside keep their own frame. The pane is the standard screen's body after the top band holding the tab
     strip: since 22 Nov 2026 the old `.set-tabs ~ *` reached nothing and the outer card framed the tab on a phone again
     (Callan, 2 Dec 2026: "please fix so mobile has the functionality"). */
  /* (0,7,1): it must beat the Settings card insets (the form inset at the top of this sheet and the compact one) */
  body.vt .screen-top:has(> .set-tabs) ~ .screen-body .card.set-company-card:not(:has(> .card-body)),
  body.vt .screen-top:has(> .set-tabs) ~ .screen-body .card.set-brand-card:not(:has(> .card-body)),
  body.vt .screen-top:has(> .set-tabs) ~ .screen-body .card.set-comms-card:not(:has(> .card-body)),
  body.vt .screen-top:has(> .set-tabs) ~ .screen-body .card.set-rem-card:not(:has(> .card-body)),
  body.vt .screen-top:has(> .set-tabs) ~ .screen-body .card.set-coa-card:not(:has(> .card-body)){padding:0;border:0;border-radius:0;background:none;box-shadow:none}
  /* A possible duplicate's comparison (Callan 18 Nov 2026) on a phone: three columns left each claim 90px (its slip
     88 x 72) beside a 90px label — each label stands on its own line over the two claims instead, so each claim has
     half the card; the two buttons stand one over the other, full width, Navigate to the other claim first. */
  body.vt .apv-page .dup-cmp-grid, body.vt .expense-page .dup-cmp-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:2px 10px}
  body.vt .apv-page .dup-cmp-k, body.vt .expense-page .dup-cmp-k{grid-column:1 / -1;margin-top:6px}
  body.vt .apv-page .dup-cmp-k:empty, body.vt .expense-page .dup-cmp-k:empty{display:none}
  body.vt .apv-page .dup-cmp-actions, body.vt .expense-page .dup-cmp-actions{flex-direction:column-reverse;align-items:stretch}
  /* Approvals' notice lines (Callan 19 Nov 2026: "must have the date"): the date and the amount beside the name left it
     113px at 375px ("Thandi Mokoe…"). On a phone the date stands under who · what, the amount and › beside both. */
  body.vt .apv-page .apv-notice{display:grid;grid-template-columns:minmax(0,1fr) auto auto;
    grid-template-areas:"text amt go" "date amt go";column-gap:10px;row-gap:1px}
  body.vt .apv-page .apv-n-text{grid-area:text}
  body.vt .apv-page .apv-n-date{grid-area:date}
  body.vt .apv-page .apv-n-amt{grid-area:amt;min-width:0}
  body.vt .apv-page .apv-notice-go{grid-area:go}
  /* Approvals' row of filters, the sort switch, the search box, Select all and Approve selected (aboo.css .apv-pin: it
     follows the scroll) - the row alone is three lines on a phone. Pinned, it, the top bar and the bottom bar would take
     a third of an 812px screen. On a phone it scrolls with the page, as the bank balance row and the page heads do - so it
     is never pinned, and Back to top (shown only while it is) takes no room there: hidden, its kept room was an empty
     line at 375px. A notice is two lines here (its date under it): five of them, the room a card keeps, the rest
     scrolling in it (aboo.css .apv-nlist). The search box takes a line of its own, the width of the row. */
  body.vt .apv-page .apv-pin{position:static}
  body.vt .apv-page .apv-top{display:none}
  body.vt .apv-page .apv-nlist{max-height:calc(5 * (13px * 1.35 + 1px + 12px * 1.35 + 12px))}
  body.vt .apv-page .apv-view .apv-find{flex:1 1 100%;width:100%}
  /* the rest of what a claimant put in, and when an invoice came and its supplier's VAT number, fill the empty half
     beside the slip on a computer (aboo.css .apv-rr); a phone's card is one column with no empty half, so it stays as
     it was */
  body.vt .apv-page .apv-rr.is-more{display:none}
  /* The claims screens on a phone, measured at 390 and 320px on staging (Callan 20 Nov 2026: "check that the changes
     look correct on mobile"). Expenses' list cards and Not reconciled kept the desktop table's small buttons (vt.css
     .btn.sm): Approve, Reject, Undo approval, Pay, Mark done and Match were 26px tall with 6px between them, where the
     same Approve and Reject on an Approvals card are 38px (13.5px text, an 8px 14px inset) - on a phone they are that
     size on both screens, 8px apart. The per-page box ("20 / page") cut the bottom of its text: the 16px text above
     (22.4px a line) had 16px of its 34px box once its 8px top and bottom insets were taken; with none it centres in the
     box, and the box keeps its 34px. */
  body.vt .expense-page select, body.vt .expense-page .per-select .ss-input{padding-top:0;padding-bottom:0}
  body.vt .expense-tbl > tbody > tr.clickable > td:nth-child(6) .btn,
  body.vt .expense-page .nr-acts .btn{padding:8px 14px;font-size:13.5px;min-height:38px;margin-left:8px}
  /* Approvals / Expenses on a phone (owner 2026-11-22: "The approval / expense screen is not responsive"): the search and
     Submit Expense on their own line, never cut off - above the pills from 3 Dec 2026 ("button and search must come
     before tabs please"); the top kept short so the list has the room —
     the drop line's button alone, Approve selected only once something is ticked, no "No slip yet" line */
  body.vt .apv-page .hub-tabs,body.vt .expense-page .hub-tabs{flex-wrap:wrap;overflow-x:visible}
  body.vt .apv-page .hub-tab-actions,body.vt .expense-page .hub-tab-actions{width:100%;margin-left:0}
  body.vt .apv-page .hub-tab-actions > input,body.vt .expense-page .hub-tab-actions > input{flex:1 1 auto;max-width:none}
  body.vt .apv-page .apv-approve-picked:disabled,body.vt .apv-page .drop-line-hint,
  body.vt .expense-page .drop-line-hint{display:none}
  body.vt .apv-page .apv-toolbar{flex-wrap:nowrap}
  body.vt .apv-page .apv-media:has(> .apv-nofile){display:none}
  /* Finance and Fixed Assets (src/tenant/finance.js, src/tenant/fixed_assets.js), measured at 375px on local (29 Nov
     2026). Their forms (New agreement, a row's action, a held document's correction; Add an asset, Move, Dispose) keep
     their fields in a .grid2 of two columns: a label of two lines ("Agreement / account number", "Settlement amount",
     "Proceeds (VAT included)", "Amount paid (VAT included)") put its box 16px below its neighbour's, and New
     agreement's two date boxes (155px each) ran the form 19px past the screen, under a sideways scrollbar. On a phone
     their fields take one column, as Settings' and the expense form's do. */
  body.vt .fin-page .grid2{grid-template-columns:1fr}
  body.vt .fa-page .grid2{grid-template-columns:1fr}
  /* Every grid in the app grey, on a phone too (Callan, 1 Dec 2026: "make all the grids in the app grey like you did
     with the others please"). The lists that become cards on a phone were white (var(--surface); seen 255,255,255 at
     375px on local): Settings' chart of accounts, Team, Expenses and Approvals' claims (their cards above have no fill
     of their own now), and Contacts and Documents, whose cards are aboo.css's (.ct-list tr, body.vt .doc-list tr). A
     card with no fill shows the grey under it, the page's --bg (the list frame's, in Settings' card): 237,243,243, and
     12,36,41 dark, as the bank register's cards did (C2 round 2). A card keeps its border, corners and gap; a document
     card's own hover and the account being edited keep theirs (they outrank these). */
  body.vt .ct-list > tbody > tr,
  body.vt .doc-list > tbody > tr{background:transparent}
  /* An AI suggestion beside "+ Allocate GL Account" (the dashboard's bank inbox, the bank register, a claim's account in
     Approvals) ends in … at its card's edge: it never wraps and the line holding it sized itself to it, so a long account
     name ran past the screen's edge and the table cut it (Callan, 2 Dec 2026, sweep M3: "fix all five" — at 375px a long
     chip ended at 601 / 538 / 539px) */
  body.vt .cb-alloc-line:has(> .cb-ai-chip){max-width:100%}
  body.vt .cb-ai-chip{max-width:100%;overflow:hidden;text-overflow:ellipsis}
  /* The document editor's text buttons in its head (Create Credit Note / Create Supplier Invoice) keep their compact text
     (aboo.css: they wrap rather than run off, owner 10 Nov) at the one control height of the head's icon buttons: 28px
     beside 34px (golden rule 9; sweep M4) */
  body.vt .de-head-actions .btn:not(.de-icon-btn){min-height:var(--control-h)}
  /* A contact's action row at one control height: New ▾ 36px, Edit 34px and the outlined ones 32px stood side by side
     (golden rule 9; sweep M5) */
  body.vt .ct-actions .btn{height:var(--control-h)}
}
