/* =============================================================================
   NTXV — IVORY LEDGER appearance layer (admin / operations shell only)

   The V2 "Ivory Ledger" design (owner-picked 2026-11-06) as a theme layer in
   the pattern assets/soft-clay.css established: appearance only, additive
   only, reversible by switching the theme attribute back
   (NTXVTheme.set('soft-clay') or NTXVTheme.set('original')).

   SCOPE, BY CONSTRUCTION: every selector in this file is rooted at
   html[data-ntxv-theme="ivory-ledger"] .shell — the operations app's root
   class. The customer portal, the public marketing site, the mobile ops
   shell, the standalone driver pages and the print/PDF documents use other
   roots and are unreachable from here. styles.css, assets/readable-type.css
   and assets/soft-clay.css are NOT edited; the base skin and the soft-clay
   theme remain intact underneath as the fallback.

   LOGO HOUSE RULE (from assets/soft-clay.css, and the base skin's own
   last-word lock on the brand block): a theme layer never sets logo
   dimensions, filters, imagery or asset URLs. Nothing in this file touches
   the logo image or paints behind it. The Ivory Ledger treatment of the
   sidebar header is carried by the sidebar ground, by the strapline under
   the mark, and by a brass rule under the brand block — never by the mark
   itself. Carrier logo images inside tags are likewise untouched.

   DELIBERATE DEVIATION FROM THE SOFT-CLAY HOUSE RULES: soft-clay keeps
   typography intact; Ivory Ledger's identity IS its typography (Fraunces
   serif display and numerals over Manrope). Section 1 therefore carries
   scoped font rules. They are rooted at the theme scope and marked
   !important for exactly one reason: assets/readable-type.css applies its
   system stack to every element on every surface with !important, and only
   a more specific !important rule inside this scope can answer it here
   without touching that shared file.
   ============================================================================= */

/* -----------------------------------------------------------------------------
   0. TOKENS — the V2 palette (variant-2-ivory-ledger.html, :root), re-pointed
      operations variables, scoped to the shell element so nothing outside the
      admin can inherit them.
   ----------------------------------------------------------------------------- */
html[data-ntxv-theme="ivory-ledger"] .shell {
  --il-paper: #F7F4ED;
  --il-paper-deep: #F1ECDF;
  --il-paper-card: #FBF9F3;
  --il-ink: #1A1917;
  --il-ink-2: #3E3B35;
  --il-ink-3: #6E6A5F;
  --il-ink-4: #9A958A;
  --il-rule: #DCD5C3;
  --il-rule-soft: #E7E1D0;
  --il-forest: #336B57;
  --il-forest-deep: #28543F;
  --il-forest-tint: #E4EBE3;
  --il-brass: #B08D3F;
  --il-brass-deep: #8F6F2C;
  --il-brass-tint: #F0E7CF;
  --il-warn: #A96F14;
  --il-urgent: #9C3A2B;
  --il-urgent-tint: #F3E2DC;
  --il-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --il-sans: "Manrope", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --il-panel-shadow: 0 1px 0 0 var(--il-rule-soft), 0 14px 28px -22px rgba(26, 25, 23, .35);

  /* Re-points: the base skin drives most label / hint / muted / link colour in
     the admin through these variables (the "GLOBAL TEXT VISIBILITY" block in
     styles.css). Re-pointing them on the shell recolours that whole surface
     in one move; outside the shell they keep their base values. */
  --ops-ink: var(--il-ink);
  --ops-ink-2: var(--il-ink-2);
  --ops-ink-3: var(--il-ink-3);
  --ops-hint: var(--il-ink-4);
  --ops-line: var(--il-rule);
  --ops-link: var(--il-forest);
  --ops-link-strong: var(--il-forest-deep);
  --ops-good: var(--il-forest-deep);
  --ops-warn: var(--il-warn);
  --navy: var(--il-ink);
  --navy2: var(--il-ink-2);
  --panel: var(--il-paper-deep);
  --line: var(--il-rule);
  --muted: var(--il-ink-3);
  --blue: var(--il-forest);
  --teal: var(--il-forest);
  --amber: var(--il-brass);
  --red: var(--il-urgent);
}

/* -----------------------------------------------------------------------------
   1. TYPOGRAPHY — Fraunces for display and numerals, Manrope for everything
      else, tabular figures throughout (the V2 body setting).
   ----------------------------------------------------------------------------- */
html[data-ntxv-theme="ivory-ledger"] .shell,
html[data-ntxv-theme="ivory-ledger"] .shell * {
  font-family: var(--il-sans) !important;
}
html[data-ntxv-theme="ivory-ledger"] .shell {
  font-variant-numeric: tabular-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
html[data-ntxv-theme="ivory-ledger"] .shell ::selection {
  background: var(--il-brass-tint);
}

/* Serif assignments — display headings and every place the ledger reads a
   number aloud. */
html[data-ntxv-theme="ivory-ledger"] .shell :is(.view-head h1, .topbar h1, .section h2, .eq-dialog-head h2) {
  font-family: var(--il-serif) !important;
  font-weight: 600;
  letter-spacing: .005em;
  color: var(--il-ink);
}
html[data-ntxv-theme="ivory-ledger"] .shell .card b {
  font-family: var(--il-serif) !important;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--il-ink);
}
html[data-ntxv-theme="ivory-ledger"] .shell .data-table td.amount,
html[data-ntxv-theme="ivory-ledger"] .shell .data-table th.amount {
  font-family: var(--il-serif) !important;
  font-weight: 600;
  color: var(--il-ink);
}
html[data-ntxv-theme="ivory-ledger"] .shell .deadline-when b {
  font-family: var(--il-serif) !important;
  font-weight: 600;
  font-size: 0.84375rem;
  color: var(--il-ink);
}
html[data-ntxv-theme="ivory-ledger"] .shell .brv-day-chip-count {
  font-family: var(--il-serif) !important;
  font-weight: 600;
}
html[data-ntxv-theme="ivory-ledger"] .shell .nav-badge {
  font-family: var(--il-serif) !important;
  font-weight: 700;
}
html[data-ntxv-theme="ivory-ledger"] .shell .user-avatar {
  font-family: var(--il-serif) !important;
  font-weight: 600;
}

/* Weight restoration, surgical only. readable-type.css also flattens the
   weight of table cells, bold cell content, info-list values, booking numbers
   and form inputs to 400 with !important. Where the ledger hierarchy depends
   on the weight, restore it inside this scope — nothing else is touched, and
   the identifier rules in readable-type.css (size, weight, navy colour for
   container and booking numbers) are deliberately left exactly as they are:
   they are a legibility rule the desk relies on, not part of this redesign. */
html[data-ntxv-theme="ivory-ledger"] .shell .data-table td {
  font-weight: 500 !important;
}
html[data-ntxv-theme="ivory-ledger"] .shell .data-table td b,
html[data-ntxv-theme="ivory-ledger"] .shell .info-list b {
  font-weight: 700 !important;
}

/* Focus stays visible, in the ledger's forest. */
html[data-ntxv-theme="ivory-ledger"] .shell :focus-visible {
  outline: 2px solid var(--il-forest);
  outline-offset: 2px;
}

/* -----------------------------------------------------------------------------
   2. SHELL AND CONTENT GROUND — warm paper instead of the blue-grey ground.
   ----------------------------------------------------------------------------- */
html[data-ntxv-theme="ivory-ledger"] .shell {
  background: var(--il-paper);
  color: var(--il-ink);
}

/* -----------------------------------------------------------------------------
   3. SIDEBAR — paper ground, ruled edge, the ledger's navigation language.
      The brand block keeps the base skin's geometry (its spacing is carried
      by margins the base file locks down); this layer only stacks it and
      colours around it. The logo image is never addressed.
   ----------------------------------------------------------------------------- */
html[data-ntxv-theme="ivory-ledger"] .shell .side {
  background: var(--il-paper);
  color: var(--il-ink-2);
  border-right: 1px solid var(--il-rule);
}
/* Stack the brand block so the strapline sits BENEATH the mark, and give the
   mark room: the base file locks the block's background, border, padding and
   shadow (nothing may paint behind the logo) but not its flex direction. */
html[data-ntxv-theme="ivory-ledger"] .shell .side .brand {
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}
/* The "Freight Ledger" strapline, in the existing strapline hook, coloured
   brass-deep on the paper ground (owner-decided treatment). The double rule
   under the brand block — 2px ink, 1px brass beneath it, the V2 wordmark
   rule — is carried by the strapline's own border and shadow, because the
   brand block itself may not be given a border or a shadow. If the sidebar
   brand markup carries no strapline element, this rule is inert and the
   one-span addition in the package's appjs-strapline.md applies instead. */
html[data-ntxv-theme="ivory-ledger"] .shell .side .brand-sub {
  color: var(--il-brass-deep);
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: .28em;
  text-transform: uppercase;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--il-ink);
  box-shadow: 0 1px 0 0 var(--il-brass);
}
/* The one search box (sidebar). */
html[data-ntxv-theme="ivory-ledger"] .shell .side-search input {
  background: var(--il-paper-card);
  border: 1px solid var(--il-rule);
  border-radius: 3px;
  color: var(--il-ink);
}
html[data-ntxv-theme="ivory-ledger"] .shell .side-search input::placeholder {
  color: var(--il-ink-4);
}
html[data-ntxv-theme="ivory-ledger"] .shell .side-search input:focus {
  outline: 2px solid var(--il-forest);
  border-color: var(--il-forest);
}
html[data-ntxv-theme="ivory-ledger"] .shell .side-search button {
  background: var(--il-forest);
  border-radius: 3px;
  color: #F5F1E4;
  letter-spacing: .06em;
}
html[data-ntxv-theme="ivory-ledger"] .shell .side-search button:hover {
  background: var(--il-forest-deep);
}
/* Section labels: letterspaced small caps with a hairline running out of
   them, as in the V2 navigation. */
html[data-ntxv-theme="ivory-ledger"] .shell .nav-label {
  color: var(--il-ink-4);
  font-size: 0.65625rem;
  font-weight: 800;
  letter-spacing: .24em;
  text-transform: uppercase;
}
/* Nav items — text only, as the base skin's own sidebar banner prescribes
   ("No icons, no bullet dots, no glyphs. The active page is carried by a
   background, a left border and heavier text"). */
html[data-ntxv-theme="ivory-ledger"] .shell .nav button {
  color: var(--il-ink-2);
  font-size: 0.84375rem;
  font-weight: 600;
  border-left: 2px solid transparent;
  border-radius: 0 3px 3px 0;
}
html[data-ntxv-theme="ivory-ledger"] .shell .nav button:hover {
  background: var(--il-paper-deep);
  color: var(--il-ink);
}
html[data-ntxv-theme="ivory-ledger"] .shell .nav button.active {
  background: linear-gradient(to right, var(--il-forest-tint), rgba(228, 235, 227, 0) 85%);
  border-left-color: var(--il-forest);
  color: var(--il-forest-deep);
  font-weight: 800;
}
html[data-ntxv-theme="ivory-ledger"] .shell .nav-badge {
  background: var(--il-paper-deep);
  color: var(--il-ink-3);
  border: 1px solid var(--il-rule);
  border-radius: 2px;
}
/* Signed-in user block at the foot of the sidebar. */
html[data-ntxv-theme="ivory-ledger"] .shell .user-mini {
  border-top: 1px solid var(--il-rule-soft);
  color: var(--il-ink-2);
}
html[data-ntxv-theme="ivory-ledger"] .shell .user-mini-text span,
html[data-ntxv-theme="ivory-ledger"] .shell .user-mini span {
  color: var(--il-ink-4);
}
html[data-ntxv-theme="ivory-ledger"] .shell .signout {
  color: var(--il-ink-3);
}
html[data-ntxv-theme="ivory-ledger"] .shell .signout:hover {
  color: var(--il-urgent);
}

/* -----------------------------------------------------------------------------
   4. PAGE-TOP STRIP, TOPBAR, VIEW HEADERS — the Back / Help pair and the
      serif screen titles.
   ----------------------------------------------------------------------------- */
/* The Back control's colours are marked !important in the base skin (it must
   not inherit the bare .back link styling). This is the one place the theme
   answers !important with !important, at higher specificity and inside this
   scope only. If the booking-UI gate objects to any line here, delete the
   border-radius line first — it is the only geometry in the block. */
html[data-ntxv-theme="ivory-ledger"] .shell .page-top button.back.nav-back {
  background: var(--il-paper-card) !important;
  border: 1px solid var(--il-rule) !important;
  border-radius: 3px !important;
  color: var(--il-ink-2) !important;
}
html[data-ntxv-theme="ivory-ledger"] .shell .page-top button.back.nav-back::before {
  color: var(--il-brass-deep);
}
html[data-ntxv-theme="ivory-ledger"] .shell .page-top button.back.nav-back:hover {
  background: var(--il-paper-card) !important;
  border-color: var(--il-brass) !important;
  color: var(--il-ink) !important;
}
html[data-ntxv-theme="ivory-ledger"] .shell .page-top .help-fab {
  background: var(--il-forest);
  border: 1px solid var(--il-forest-deep);
  border-radius: 3px;
  color: #F5F1E4;
  box-shadow: none;
}
html[data-ntxv-theme="ivory-ledger"] .shell .page-top .help-fab:hover {
  background: var(--il-forest-deep);
}
html[data-ntxv-theme="ivory-ledger"] .shell .topbar .date {
  color: var(--il-ink-3);
  letter-spacing: .06em;
}
html[data-ntxv-theme="ivory-ledger"] .shell .view-head h1 {
  font-size: 1.875rem;
}

/* -----------------------------------------------------------------------------
   5. BUTTONS AND ACTIONS — near-square, ruled, forest for the main action.
   ----------------------------------------------------------------------------- */
html[data-ntxv-theme="ivory-ledger"] .shell .primary {
  background: var(--il-forest);
  border: 1px solid var(--il-forest-deep);
  border-radius: 3px;
  color: #F5F1E4;
  letter-spacing: .01em;
}
html[data-ntxv-theme="ivory-ledger"] .shell .primary:hover {
  background: var(--il-forest-deep);
  color: #fff;
}
html[data-ntxv-theme="ivory-ledger"] .shell .primary.coming-soon {
  background: var(--il-ink-4);
  border-color: var(--il-ink-3);
}
html[data-ntxv-theme="ivory-ledger"] .shell .primary.danger:hover {
  background: var(--il-urgent);
  border-color: var(--il-urgent);
}
/* Secondary buttons on light surfaces (the base .ghost is styled for the
   dark public header; inside the shell it gets the ledger treatment). */
html[data-ntxv-theme="ivory-ledger"] .shell .ghost {
  background: var(--il-paper-card);
  border: 1px solid var(--il-rule);
  border-radius: 3px;
  color: var(--il-ink-2);
}
html[data-ntxv-theme="ivory-ledger"] .shell .ghost:hover {
  border-color: var(--il-ink-3);
  color: var(--il-ink);
}
html[data-ntxv-theme="ivory-ledger"] .shell .icon-btn {
  background: var(--il-paper-card);
  border: 1px solid var(--il-rule);
  border-radius: 3px;
  color: var(--il-ink-2);
}
html[data-ntxv-theme="ivory-ledger"] .shell .icon-btn:hover {
  border-color: var(--il-brass);
  color: var(--il-ink);
}
html[data-ntxv-theme="ivory-ledger"] .shell .header-bell {
  background: var(--il-paper-card);
  border: 1px solid var(--il-rule);
  color: var(--il-ink-2);
}
html[data-ntxv-theme="ivory-ledger"] .shell .header-bell:hover {
  background: var(--il-paper-card);
  border-color: var(--il-brass);
  color: var(--il-ink);
}
html[data-ntxv-theme="ivory-ledger"] .shell .user-avatar {
  background: var(--il-forest);
  color: #F4EFE2;
  box-shadow: 0 0 0 1px var(--il-forest-deep), 0 0 0 3px var(--il-paper), 0 0 0 4px var(--il-brass);
}

/* -----------------------------------------------------------------------------
   6. STAT CARDS — the ledger strip. On Bookings the summary cards sit in the
      shared .cards grid; styled as a ruled ledger strip (2px ink rule on top,
      brass line under it, hairline columns, no boxes) they read exactly as
      the V2 strip. The grid keeps the app's own columns and breakpoints —
      the mock-up's six-across strip is a mock-up layout; the real screen
      carries its cards in this grid. A card used on its own keeps a panel.
   ----------------------------------------------------------------------------- */
html[data-ntxv-theme="ivory-ledger"] .shell .cards {
  gap: 0;
  border-top: 2px solid var(--il-ink);
  box-shadow: 0 3px 0 -2px var(--il-brass);
  border-bottom: 1px solid var(--il-rule);
}
html[data-ntxv-theme="ivory-ledger"] .shell .cards .card {
  background: transparent;
  border: 0;
  border-left: 1px solid var(--il-rule-soft);
  border-radius: 0;
  box-shadow: none;
}
html[data-ntxv-theme="ivory-ledger"] .shell .cards .card:first-child {
  border-left: 0;
}
html[data-ntxv-theme="ivory-ledger"] .shell .cards .card:hover {
  background: var(--il-paper-card);
}
/* A standalone card: a sheet of the ledger, not a floating tile. */
html[data-ntxv-theme="ivory-ledger"] .shell .card {
  background: var(--il-paper-card);
  border: 1px solid var(--il-rule);
  border-radius: 3px;
  box-shadow: var(--il-panel-shadow);
}
html[data-ntxv-theme="ivory-ledger"] .shell .card .label {
  color: var(--il-ink-3);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}
html[data-ntxv-theme="ivory-ledger"] .shell .card .basis {
  color: var(--il-ink-4);
  letter-spacing: .06em;
}
html[data-ntxv-theme="ivory-ledger"] .shell .card .basis.period {
  color: var(--il-brass-deep);
}
/* A card that leads somewhere stays lit while its list is on screen. */
html[data-ntxv-theme="ivory-ledger"] .shell .card.card-action:hover {
  border-color: var(--il-brass);
  box-shadow: var(--il-panel-shadow);
  transform: none;
}
html[data-ntxv-theme="ivory-ledger"] .shell .card.card-active {
  border-color: var(--il-forest);
  background: var(--il-forest-tint);
  box-shadow: 0 0 0 1px var(--il-forest) inset;
}
html[data-ntxv-theme="ivory-ledger"] .shell .cards .card.card-active {
  background: var(--il-forest-tint);
  box-shadow: none;
}
html[data-ntxv-theme="ivory-ledger"] .shell .delta {
  color: var(--il-forest-deep);
}
html[data-ntxv-theme="ivory-ledger"] .shell .delta.orange {
  color: var(--il-warn);
}

/* -----------------------------------------------------------------------------
   7. FILTERS AND SEARCH — the V2 tab language: text tabs over a hairline,
      the active tab underlined in forest, its count in brass.
   ----------------------------------------------------------------------------- */
html[data-ntxv-theme="ivory-ledger"] .shell .filters button {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--il-ink-3);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 9px 10px 10px;
}
html[data-ntxv-theme="ivory-ledger"] .shell .filters button:hover {
  color: var(--il-ink);
}
html[data-ntxv-theme="ivory-ledger"] .shell .filters button.active {
  background: transparent;
  border-color: var(--il-forest);
  color: var(--il-forest-deep);
}
/* A filter that is a real control rather than a tab keeps its box — the
   ghost-button treatment inside the filter row. */
html[data-ntxv-theme="ivory-ledger"] .shell .filters .ghost {
  border: 1px solid var(--il-rule);
  border-radius: 3px;
  background: var(--il-paper-card);
  padding: 7px 12px;
}
html[data-ntxv-theme="ivory-ledger"] .shell .filters .ghost:hover {
  border-color: var(--il-ink-3);
  background: var(--il-paper-card);
}
html[data-ntxv-theme="ivory-ledger"] .shell .search,
html[data-ntxv-theme="ivory-ledger"] .shell .ctl {
  background: var(--il-paper-card);
  border: 1px solid var(--il-rule);
  border-radius: 3px;
  color: var(--il-ink);
}
html[data-ntxv-theme="ivory-ledger"] .shell .search:focus,
html[data-ntxv-theme="ivory-ledger"] .shell .ctl:focus {
  outline: 2px solid var(--il-forest);
  border-color: var(--il-forest);
}

/* -----------------------------------------------------------------------------
   8. TABLES — the printed ledger: small-caps column heads over an ink rule,
      hairline rows, a double rule closing the table. Status stays a small
      set-type label with a coloured rule (the tag family below), and every
      urgency keeps its words — colour is never the only cue.
   ----------------------------------------------------------------------------- */
html[data-ntxv-theme="ivory-ledger"] .shell .table-wrap {
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--il-ink);
  border-radius: 0;
}
html[data-ntxv-theme="ivory-ledger"] .shell .data-table th {
  background: var(--il-paper);
  border-bottom: 1px solid var(--il-ink);
  color: var(--il-ink-3);
  font-size: 0.625rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
html[data-ntxv-theme="ivory-ledger"] .shell .data-table td {
  border-bottom: 1px solid var(--il-rule-soft);
  color: var(--il-ink-2);
  font-size: 0.78125rem;
}
html[data-ntxv-theme="ivory-ledger"] .shell .data-table tr:hover {
  background: var(--il-paper-card);
}
html[data-ntxv-theme="ivory-ledger"] .shell .data-table td.flagged,
html[data-ntxv-theme="ivory-ledger"] .shell .missing-cell {
  color: var(--il-urgent);
  font-weight: 700;
}
html[data-ntxv-theme="ivory-ledger"] .shell .muted-cell {
  color: var(--il-ink-3);
}
html[data-ntxv-theme="ivory-ledger"] .shell .empty-cell {
  color: var(--il-ink-3);
}
html[data-ntxv-theme="ivory-ledger"] .shell .empty-cell b {
  color: var(--il-ink);
}
/* The reservation number is the one bold thing in a row that is not ordinary
   text (the base skin's own words) — in the ledger it reads forest. The amber
   action note under it reads as the warning it is. */
html[data-ntxv-theme="ivory-ledger"] .shell .data-table td b.m-rv-number {
  color: var(--il-forest-deep);
}
html[data-ntxv-theme="ivory-ledger"] .shell .data-table td .charge-note.m-rv-missing {
  color: var(--il-warn);
}
html[data-ntxv-theme="ivory-ledger"] .shell .mono {
  color: var(--il-ink-2);
  letter-spacing: .02em;
}
html[data-ntxv-theme="ivory-ledger"] .shell .charge-note {
  color: var(--il-ink-3);
}

/* Status tags — one ledger form for the whole family: squared, ruled on the
   left, tinted ground. The base skin groups its tags into six colour
   families by meaning; each family is translated, none is merged away:
     green  (complete / positive)   -> forest
     blue   (in hand / underway)    -> brass
     violet (booking / quote state) -> forest words on brass ground
     amber  (waiting / attention)   -> ochre
     red    (problem / overdue)     -> urgent
     grey   (closed / inactive)     -> ink neutral                        */
html[data-ntxv-theme="ivory-ledger"] .shell .tag {
  border-radius: 2px;
  border-left: 2px solid var(--il-ink-4);
  padding: 4px 8px;
  font-size: 0.65625rem;
  font-weight: 700;
  letter-spacing: .04em;
}
html[data-ntxv-theme="ivory-ledger"] .shell .tag:is(.delivery, .inv-paid, .doc-available, .qte-approved, .acct-active, .hlth-good) {
  color: var(--il-forest-deep);
  background: var(--il-forest-tint);
  border-left-color: var(--il-forest);
}
html[data-ntxv-theme="ivory-ledger"] .shell .tag:is(.transit, .inv-sent, .qte-new, .acct-prospect) {
  color: var(--il-brass-deep);
  background: var(--il-brass-tint);
  border-left-color: var(--il-brass);
}
html[data-ntxv-theme="ivory-ledger"] .shell .tag:is(.booking, .qte-sent, .hlth-prospect) {
  color: var(--il-forest-deep);
  background: var(--il-brass-tint);
  border-left-color: var(--il-forest);
}
html[data-ntxv-theme="ivory-ledger"] .shell .tag:is(.customs, .inv-partial, .qte-preparing, .doc-pending, .hlth-watch) {
  color: var(--il-warn);
  background: var(--il-brass-tint);
  border-left-color: var(--il-warn);
}
html[data-ntxv-theme="ivory-ledger"] .shell .tag:is(.cancelled, .inv-overdue, .qte-expired, .doc-review, .acct-on-hold, .hlth-at-risk) {
  color: var(--il-urgent);
  background: var(--il-urgent-tint);
  border-left-color: var(--il-urgent);
}
html[data-ntxv-theme="ivory-ledger"] .shell .tag:is(.delivered, .inv-draft, .acct-inactive) {
  color: var(--il-ink-3);
  background: var(--il-paper-deep);
  border-left-color: var(--il-ink-4);
}
html[data-ntxv-theme="ivory-ledger"] .shell .tag.qte-lost {
  color: var(--il-ink-3);
  background: var(--il-urgent-tint);
  border-left-color: var(--il-ink-4);
}
html[data-ntxv-theme="ivory-ledger"] .shell .carrier-tag {
  background: var(--il-paper-card);
  border: 1px solid var(--il-rule);
  border-radius: 2px;
}

/* -----------------------------------------------------------------------------
   9. THE CUT-OFF ALARM STRIP — expiry warnings are operational safety, so
      this is the one place the ledger spends colour: an ink bar, brass for
      due, urgent for late, with the days left in the serif. Always reachable,
      always legible. (The separate fixed alarm bar at the foot of the screen
      is styled by its own ID-rooted rules in the base skin and is
      deliberately NOT part of this theme.)
   ----------------------------------------------------------------------------- */
html[data-ntxv-theme="ivory-ledger"] .shell .deadline-alarm {
  background: var(--il-ink);
  border: 1px solid #000;
  border-radius: 3px;
  color: #F5F1E4;
  box-shadow: 0 16px 30px -22px rgba(26, 25, 23, .55);
}
html[data-ntxv-theme="ivory-ledger"] .shell .deadline-alarm.due {
  background: var(--il-brass-tint);
  border-color: var(--il-rule);
  color: var(--il-ink);
}
html[data-ntxv-theme="ivory-ledger"] .shell .deadline-alarm.late {
  background: var(--il-urgent-tint);
  border-color: var(--il-rule);
  color: var(--il-ink);
}
html[data-ntxv-theme="ivory-ledger"] .shell .deadline-alarm strong {
  color: #F5F1E4;
}
html[data-ntxv-theme="ivory-ledger"] .shell .deadline-alarm.due strong {
  color: var(--il-warn);
}
html[data-ntxv-theme="ivory-ledger"] .shell .deadline-alarm.late strong {
  color: var(--il-urgent);
}
html[data-ntxv-theme="ivory-ledger"] .shell .deadline-alarm a {
  color: inherit;
}
/* The deadline rows themselves: a ruled list with a coloured edge. */
html[data-ntxv-theme="ivory-ledger"] .shell .deadline {
  border-bottom: 1px solid var(--il-rule-soft);
  border-left: 3px solid var(--il-forest);
  border-radius: 0 3px 3px 0;
  background: var(--il-paper-card);
}
html[data-ntxv-theme="ivory-ledger"] .shell .deadline.due {
  border-left-color: var(--il-brass);
}
html[data-ntxv-theme="ivory-ledger"] .shell .deadline.late {
  border-left-color: var(--il-urgent);
}
html[data-ntxv-theme="ivory-ledger"] .shell .deadline-name {
  color: var(--il-ink);
}
html[data-ntxv-theme="ivory-ledger"] .shell .deadline-line {
  color: var(--il-ink-3);
}
html[data-ntxv-theme="ivory-ledger"] .shell .deadline-when span {
  color: var(--il-ink-3);
}
html[data-ntxv-theme="ivory-ledger"] .shell .deadline.late .deadline-when b,
html[data-ntxv-theme="ivory-ledger"] .shell .deadline.late .deadline-when span {
  color: var(--il-urgent);
}
html[data-ntxv-theme="ivory-ledger"] .shell .deadline.due .deadline-when b {
  color: var(--il-warn);
}

/* -----------------------------------------------------------------------------
   10. BOOKINGS DETAIL — detail grids, info lists, forms, status editors.
       The booking detail is where the desk works for minutes at a time; the
       ledger treatment is quietest here: hairlines, ink values, forest
       emphasis.
   ----------------------------------------------------------------------------- */
html[data-ntxv-theme="ivory-ledger"] .shell .detail .label {
  color: var(--il-ink-3);
}
html[data-ntxv-theme="ivory-ledger"] .shell .info-list li {
  border-bottom: 1px solid var(--il-rule-soft);
}
html[data-ntxv-theme="ivory-ledger"] .shell .info-list b {
  color: var(--il-ink);
}
html[data-ntxv-theme="ivory-ledger"] .shell .info-list .missing {
  color: var(--il-urgent);
}
html[data-ntxv-theme="ivory-ledger"] .shell .info-list .info-note {
  color: var(--il-ink-3);
}
html[data-ntxv-theme="ivory-ledger"] .shell .info-note {
  color: var(--il-ink-3);
}
html[data-ntxv-theme="ivory-ledger"] .shell .form-error {
  color: var(--il-urgent);
  border-color: var(--il-urgent);
}
html[data-ntxv-theme="ivory-ledger"] .shell .field label {
  color: var(--il-ink-3);
  letter-spacing: .06em;
}
html[data-ntxv-theme="ivory-ledger"] .shell .field input,
html[data-ntxv-theme="ivory-ledger"] .shell .field select,
html[data-ntxv-theme="ivory-ledger"] .shell .field textarea {
  background: #fff;
  border: 1px solid var(--il-rule);
  border-radius: 3px;
  color: var(--il-ink);
}
html[data-ntxv-theme="ivory-ledger"] .shell .field input:focus,
html[data-ntxv-theme="ivory-ledger"] .shell .field select:focus,
html[data-ntxv-theme="ivory-ledger"] .shell .field textarea:focus {
  border-color: var(--il-forest);
  outline: 2px solid var(--il-forest);
}
html[data-ntxv-theme="ivory-ledger"] .shell .field .hint {
  color: var(--il-ink-4);
}
html[data-ntxv-theme="ivory-ledger"] .shell .status-form {
  border-left: 3px solid var(--il-forest);
}
html[data-ntxv-theme="ivory-ledger"] .shell .status-field > label {
  color: var(--il-ink-3);
  letter-spacing: .08em;
}
html[data-ntxv-theme="ivory-ledger"] .shell .status-controls {
  border-bottom: 1px solid var(--il-rule-soft);
}
html[data-ntxv-theme="ivory-ledger"] .shell .acc-summary-note {
  color: var(--il-ink-3);
  border-top: 1px solid var(--il-rule-soft);
}
/* The one treatment reserved for a customer's own dashboard: inset panels on
   their card. Recoloured; the inset machinery itself is the base skin's. */
html[data-ntxv-theme="ivory-ledger"] .shell .acct-settings {
  background: var(--il-paper-deep);
  border: 1px solid var(--il-rule);
  border-radius: 3px;
}
html[data-ntxv-theme="ivory-ledger"] .shell .acct-settings-head,
html[data-ntxv-theme="ivory-ledger"] .shell .acct-settings-section {
  border-color: var(--il-rule-soft);
}
html[data-ntxv-theme="ivory-ledger"] .shell .acct-settings h3 {
  color: var(--il-ink);
}
/* Rate-desk note. */
html[data-ntxv-theme="ivory-ledger"] .shell .quote-fee-sync {
  color: var(--il-brass-deep);
  background: var(--il-brass-tint);
  border: 1px solid var(--il-rule);
  border-radius: 3px;
}
/* Copyable mail / link blocks. */
html[data-ntxv-theme="ivory-ledger"] .shell .mailbox-instr {
  background: var(--il-paper-card);
  border: 1px solid var(--il-rule);
  border-radius: 3px;
  color: var(--il-ink-2);
}
html[data-ntxv-theme="ivory-ledger"] .shell .mailbox-instr b {
  color: var(--il-ink);
}
html[data-ntxv-theme="ivory-ledger"] .shell .mailbox-instr code,
html[data-ntxv-theme="ivory-ledger"] .shell .copy-rows code {
  background: var(--il-paper-deep);
  color: var(--il-forest-deep);
}
html[data-ntxv-theme="ivory-ledger"] .shell .copy-rows > div {
  border-bottom: 1px solid var(--il-rule-soft);
}

/* -----------------------------------------------------------------------------
   11. RV HUNTING — day strip, chips, the hunt form and its verdicts. The
       coloured day chips are the strip's own language; the ledger keeps
       their meanings and re-paints them in forest, ink and urgent.
   ----------------------------------------------------------------------------- */
html[data-ntxv-theme="ivory-ledger"] .shell .brv-day-strip {
  background: var(--il-paper-deep);
  border-top: 1px solid var(--il-rule);
  border-bottom: 1px solid var(--il-rule);
}
html[data-ntxv-theme="ivory-ledger"] .shell .brv-side-label {
  color: var(--il-ink-3);
}
html[data-ntxv-theme="ivory-ledger"] .shell .brv-day-chip {
  background: var(--il-paper-card);
  border: 1px solid var(--il-rule);
  border-radius: 3px;
}
html[data-ntxv-theme="ivory-ledger"] .shell .brv-day-chip:hover {
  border-color: var(--il-forest);
}
html[data-ntxv-theme="ivory-ledger"] .shell .brv-day-chip-on {
  border-color: var(--il-forest);
  background: var(--il-forest-tint);
}
html[data-ntxv-theme="ivory-ledger"] .shell .brv-day-chip-side {
  color: var(--il-ink-3);
}
html[data-ntxv-theme="ivory-ledger"] .shell .brv-day-chip-on .brv-day-chip-side {
  color: var(--il-forest-deep);
}
html[data-ntxv-theme="ivory-ledger"] .shell .brv-day-chip-name {
  color: var(--il-ink-2);
}
html[data-ntxv-theme="ivory-ledger"] .shell .brv-day-chip-on .brv-day-chip-name {
  color: var(--il-forest-deep);
}
html[data-ntxv-theme="ivory-ledger"] .shell .brv-day-chip-count {
  color: var(--il-ink);
}
html[data-ntxv-theme="ivory-ledger"] .shell .brv-day-chip-count span {
  color: var(--il-ink-3);
}
html[data-ntxv-theme="ivory-ledger"] .shell .brv-day-chip-warn {
  color: var(--il-warn);
}
html[data-ntxv-theme="ivory-ledger"] .shell .brv-day-chip-today {
  color: var(--il-forest);
}
html[data-ntxv-theme="ivory-ledger"] .shell .brv-clear {
  border-color: var(--il-rule);
  color: var(--il-forest-deep);
  background: var(--il-paper-card);
}
html[data-ntxv-theme="ivory-ledger"] .shell .brv-clear:hover {
  color: var(--il-forest-deep);
  background: var(--il-forest-tint);
}
html[data-ntxv-theme="ivory-ledger"] .shell .brv-clear-on {
  border-color: var(--il-forest);
  background: var(--il-forest-tint);
  color: var(--il-forest-deep);
}
html[data-ntxv-theme="ivory-ledger"] .shell .bk-hunt-switch {
  border-color: var(--il-rule);
}
html[data-ntxv-theme="ivory-ledger"] .shell .bk-hunt-switch button {
  color: var(--il-ink-3);
}
html[data-ntxv-theme="ivory-ledger"] .shell .bk-hunt-switch button.on {
  background: var(--il-forest);
  color: #F5F1E4;
}
html[data-ntxv-theme="ivory-ledger"] .shell .bk-hunt-field > span {
  color: var(--il-ink-3);
  letter-spacing: .08em;
}
html[data-ntxv-theme="ivory-ledger"] .shell .bk-hunt-field input {
  border-color: var(--il-rule);
  border-radius: 3px;
  color: var(--il-ink);
  background: #fff;
}
html[data-ntxv-theme="ivory-ledger"] .shell .bk-hunt-field input:focus {
  border-color: var(--il-forest);
}
html[data-ntxv-theme="ivory-ledger"] .shell .bk-hunt-result {
  background: var(--il-paper-card);
  border: 1px solid var(--il-rule);
  border-radius: 3px;
  color: var(--il-ink-2);
}
html[data-ntxv-theme="ivory-ledger"] .shell .bk-hunt-result-ok {
  background: var(--il-forest-tint);
  border-color: var(--il-forest);
  color: var(--il-forest-deep);
}
html[data-ntxv-theme="ivory-ledger"] .shell .bk-hunt-result-warn {
  background: var(--il-brass-tint);
  border-color: var(--il-warn);
  color: var(--il-ink);
}
html[data-ntxv-theme="ivory-ledger"] .shell .bk-hunt-err {
  color: var(--il-urgent);
}

/* -----------------------------------------------------------------------------
   12. SECTIONS, DIALOGS, AND THE SHARED ADMIN SURFACE — every remaining view
       (drivers, equipment, invoices, quotes, documents, compliance, metrics,
       workbooks) is built from these shared pieces, so painting them here is
       what makes the whole admin read as one ledger.
   ----------------------------------------------------------------------------- */
html[data-ntxv-theme="ivory-ledger"] .shell .section {
  background: var(--il-paper-card);
  border: 1px solid var(--il-rule);
  border-radius: 3px;
  box-shadow: var(--il-panel-shadow);
}
html[data-ntxv-theme="ivory-ledger"] .shell .section-head {
  border-bottom: 1px solid var(--il-rule-soft);
}
html[data-ntxv-theme="ivory-ledger"] .shell .section-head a {
  color: var(--il-forest-deep);
}
html[data-ntxv-theme="ivory-ledger"] .shell .section-head .eyebrow {
  color: var(--il-brass-deep);
}
html[data-ntxv-theme="ivory-ledger"] .shell .eyebrow {
  color: var(--il-brass-deep);
  letter-spacing: .22em;
  text-transform: uppercase;
}
html[data-ntxv-theme="ivory-ledger"] .shell .section h2 {
  font-size: 1.0625rem;
}
/* Workbook blocks (the planning screens). */
html[data-ntxv-theme="ivory-ledger"] .shell .wb-card {
  background: var(--il-paper-card);
  border: 1px solid var(--il-rule);
  border-radius: 3px;
  box-shadow: var(--il-panel-shadow);
}
html[data-ntxv-theme="ivory-ledger"] .shell .wb-moves {
  background: #F2F6F1;
  border-top-color: var(--il-rule-soft);
}
html[data-ntxv-theme="ivory-ledger"] .shell .wb-gate:not(.urgent) {
  border-left-color: var(--il-forest);
  background: #EAF3EC;
  color: var(--il-forest-deep);
}
html[data-ntxv-theme="ivory-ledger"] .shell .wb-move[data-state="assigned"] {
  border-left-color: #8DB69D;
  background: #ECF5ED;
}
html[data-ntxv-theme="ivory-ledger"] .shell .wb-move[data-state="picked_up"] {
  border-left-color: var(--il-forest);
  background: #E0EEE3;
}
html[data-ntxv-theme="ivory-ledger"] .shell .wb-move:is([data-state="assigned"], [data-state="picked_up"]) .wb-pill {
  background: #D7EBDD;
  color: var(--il-forest-deep);
}
html[data-ntxv-theme="ivory-ledger"] .shell .wb-move:not([data-state="dropped"], [data-shut]) .wb-box {
  background: rgba(51, 107, 87, .08);
  border-color: rgba(51, 107, 87, .18);
}
html[data-ntxv-theme="ivory-ledger"] .shell .wb-move .wb-bar {
  background: #DCE8DE;
}
html[data-ntxv-theme="ivory-ledger"] .shell .wb-move :is(.wb-bar i, .wb-route-buttons button[aria-pressed="true"]) {
  background: var(--il-forest);
}
html[data-ntxv-theme="ivory-ledger"] .shell .wb-move .wb-copy.copied::after,
html[data-ntxv-theme="ivory-ledger"] .shell .wb-move :is(.wb-steps li.on, .wb-copy:hover, .wb-copy:focus-visible, .wb-copy.copied, .wb-undo .back:not(.danger), .wb-route-buttons button:not([aria-pressed="true"])) {
  color: var(--il-forest-deep);
}
html[data-ntxv-theme="ivory-ledger"] .shell .wb-move :is(.wb-copy:hover, .wb-copy:focus-visible, .wb-undo .back:not(.danger):hover) {
  background: #EAF3EC;
}
html[data-ntxv-theme="ivory-ledger"] .shell .wb-move :is(.wb-route-buttons button, .wb-undo .back:not(.danger):hover) {
  border-color: var(--il-forest);
}
html[data-ntxv-theme="ivory-ledger"] .shell .wb-move:not([data-shut]) .wb-route > div::before {
  border-color: var(--il-forest);
}
html[data-ntxv-theme="ivory-ledger"] .shell .wb-move:not([data-shut]) .wb-route > div:last-child::before {
  background: var(--il-forest);
}
html[data-ntxv-theme="ivory-ledger"] .shell .wb-move:not([data-shut]) .wb-route > div:first-child::after {
  border-left-color: #8DB69D;
}
html[data-ntxv-theme="ivory-ledger"] .shell .wb-move[data-state="dropped"] {
  background: #DCEBDF;
  border-color: #B3CDB9;
  border-left-color: var(--il-forest);
}
html[data-ntxv-theme="ivory-ledger"] .shell .wb-move[data-state="dropped"] .wb-pill {
  background: #C6DFCE;
  color: var(--il-forest-deep);
}
html[data-ntxv-theme="ivory-ledger"] .shell .wb-move[data-state="dropped"] :is(.wb-box, .wb-live, .wb-undo) {
  border-color: #B3CDB9;
}
html[data-ntxv-theme="ivory-ledger"] .shell .wb-card.done .wb-move[data-state="dropped"] {
  background: var(--il-forest-deep);
  border-color: var(--il-forest);
  color: #EAF3EC;
}
html[data-ntxv-theme="ivory-ledger"] .shell .wb-card.done .wb-move[data-state="dropped"] :is(.wb-pill, .wb-box, .wb-bar, .wb-copy:hover, .wb-copy:focus-visible, .wb-undo .back:hover) {
  background: var(--il-forest);
  border-color: #83AC95;
  color: #F2F6F1;
}
html[data-ntxv-theme="ivory-ledger"] .shell .wb-card.done .wb-move[data-state="dropped"] :is(.move-leg, .wb-wo, .wb-box > span, .wb-box b, .wb-copy, .wb-route .cap, .wb-route small, .wb-steps li.on, .info-list span, .info-list small, .wb-undo .back) {
  color: #DCEBDF;
}
html[data-ntxv-theme="ivory-ledger"] .shell .wb-card.done .wb-move[data-state="dropped"] :is(.wb-live, .wb-undo, .info-list div, .wb-undo .back) {
  border-color: #83AC95;
}
html[data-ntxv-theme="ivory-ledger"] .shell .wb-card.done .wb-move[data-state="dropped"] .wb-bar i {
  background: #A5CFB3;
}
html[data-ntxv-theme="ivory-ledger"] .shell .wb-card.done .wb-move[data-state="dropped"] .wb-route > div::before {
  border-color: #A5CFB3;
  background: var(--il-forest-deep);
}
html[data-ntxv-theme="ivory-ledger"] .shell .wb-card.done .wb-move[data-state="dropped"] .wb-route > div:last-child::before {
  background: #A5CFB3;
}
html[data-ntxv-theme="ivory-ledger"] .shell .wb-card.done .wb-move[data-state="dropped"] .wb-route > div:first-child::after {
  border-left-color: #83AC95;
}
html[data-ntxv-theme="ivory-ledger"] .shell .wb-move[data-shut] {
  background-color: #EDF3EC;
  border-color: #CBDCCF;
  border-left-color: #91B09B;
}
html[data-ntxv-theme="ivory-ledger"] .shell .wb-move[data-shut] .wb-pill {
  background: #DCE8DD;
  color: #54745F;
}
html[data-ntxv-theme="ivory-ledger"] .shell .wb-move[data-shut] .wb-move-name b,
html[data-ntxv-theme="ivory-ledger"] .shell .wb-move[data-masked] .wb-route .cap {
  color: #657C6B;
}
html[data-ntxv-theme="ivory-ledger"] .shell .wb-move[data-shut] .wb-box {
  border-color: #CBDCCF;
}
html[data-ntxv-theme="ivory-ledger"] .shell .wb-move[data-shut] .wb-route > div::before {
  border-color: #91B09B;
}
html[data-ntxv-theme="ivory-ledger"] .shell .wb-move[data-shut] .wb-route > div:last-child::before {
  background: #91B09B;
}
html[data-ntxv-theme="ivory-ledger"] .shell .wb-move[data-shut] .wb-route > div:first-child::after {
  border-left-color: #BDCFBF;
}
html[data-ntxv-theme="ivory-ledger"] .shell .wb-route b.wb-masked {
  color: #ACBFAE;
}
html[data-ntxv-theme="ivory-ledger"] .shell .wb-blocked {
  color: #3D5948;
  background: #F0F5EF;
}
html[data-ntxv-theme="ivory-ledger"] .shell .wb-head:hover {
  background: var(--il-paper-card);
}
html[data-ntxv-theme="ivory-ledger"] .shell .wb-title {
  color: var(--il-ink);
}
html[data-ntxv-theme="ivory-ledger"] .shell .wb-sub {
  color: var(--il-ink-3);
}
html[data-ntxv-theme="ivory-ledger"] .shell .wb-chev {
  color: var(--il-ink-4);
}
html[data-ntxv-theme="ivory-ledger"] .shell .wb-day {
  border-top: 1px solid var(--il-rule-soft);
}
html[data-ntxv-theme="ivory-ledger"] .shell .wb-date {
  color: var(--il-ink-3);
}
/* Compliance rows: the left bar carries the verdict in forest, ochre or
   urgent; the tint behind it follows. */
html[data-ntxv-theme="ivory-ledger"] .shell .compliance {
  background: var(--il-paper-card);
  border: 1px solid var(--il-rule);
  border-radius: 3px;
}
html[data-ntxv-theme="ivory-ledger"] .shell .compliance.good {
  border-left: 3px solid var(--il-forest);
  background: var(--il-forest-tint);
}
html[data-ntxv-theme="ivory-ledger"] .shell .compliance.warn {
  border-left: 3px solid var(--il-warn);
  background: var(--il-brass-tint);
}
html[data-ntxv-theme="ivory-ledger"] .shell .compliance.bad {
  border-left: 3px solid var(--il-urgent);
  background: var(--il-urgent-tint);
}
html[data-ntxv-theme="ivory-ledger"] .shell .compliance small {
  color: var(--il-ink-3);
}
html[data-ntxv-theme="ivory-ledger"] .shell .file-status {
  color: var(--il-ink-3);
}
html[data-ntxv-theme="ivory-ledger"] .shell .file-status .done {
  color: var(--il-forest-deep);
}
/* Dialogs (native dialog elements), the equipment dialog first. */
html[data-ntxv-theme="ivory-ledger"] .shell .eq-dialog {
  background: var(--il-paper-card);
  border: 1px solid var(--il-rule);
  border-radius: 3px;
  box-shadow: 0 24px 48px -24px rgba(26, 25, 23, .5);
  color: var(--il-ink-2);
}
html[data-ntxv-theme="ivory-ledger"] .shell .eq-dialog::backdrop {
  background: rgba(26, 25, 23, .45);
}
html[data-ntxv-theme="ivory-ledger"] .shell .eq-dialog-head {
  border-bottom: 1px solid var(--il-rule-soft);
}
html[data-ntxv-theme="ivory-ledger"] .shell .eq-tabs {
  border-bottom: 1px solid var(--il-rule-soft);
}
html[data-ntxv-theme="ivory-ledger"] .shell .eq-tabs button {
  color: var(--il-ink-3);
  border-bottom: 2px solid transparent;
  border-radius: 0;
}
html[data-ntxv-theme="ivory-ledger"] .shell .eq-tabs button.active {
  color: var(--il-forest-deep);
  border-bottom-color: var(--il-forest);
}
/* Links inside the shell read forest; the base skin's link rules carry their
   own specificity, so this layer only re-pins the token they already read. */

/* -----------------------------------------------------------------------------
   13. THE REMAINING ADMIN SURFACE, VIA THE BASE SKIN'S OTHER THEME LAYER
       These hooks are evidenced by assets/soft-clay.css's own surface
       collection (its comments describe it as collected from the full
       styles.css plus the deployed stylesheet), not by a direct styles.css
       read in the prep pass. CONFIRM-AT-APPLY: verify each hook against the
       local checkout before landing; any hook that does not exist is inert
       and must be deleted, not left as decoration.
   ----------------------------------------------------------------------------- */
/* CONFIRM-AT-APPLY: hook evidenced via the soft-clay.css surface collection, not a direct styles.css read */
html[data-ntxv-theme="ivory-ledger"] .shell :is(.table-card, .metric-card, .metric, .kpi-card, .stat, .panel, .box, .surface) {
  background: var(--il-paper-card);
  border: 1px solid var(--il-rule);
  border-radius: 3px;
  box-shadow: var(--il-panel-shadow);
}
/* CONFIRM-AT-APPLY: hook evidenced via the soft-clay.css surface collection, not a direct styles.css read */
html[data-ntxv-theme="ivory-ledger"] .shell :is(.toolbar, .actions, .view-actions) {
  background: var(--il-paper-card);
  border: 1px solid var(--il-rule);
  border-radius: 3px;
}
/* CONFIRM-AT-APPLY: hook evidenced via the soft-clay.css surface collection, not a direct styles.css read */
html[data-ntxv-theme="ivory-ledger"] .shell :is(button.secondary, .btn-secondary, .secondary) {
  background: var(--il-paper-card);
  border: 1px solid var(--il-rule);
  border-radius: 3px;
  color: var(--il-ink-2);
}
/* CONFIRM-AT-APPLY: hook evidenced via the soft-clay.css surface collection, not a direct styles.css read */
html[data-ntxv-theme="ivory-ledger"] .shell :is(.badge, .pill, .chip) {
  border-radius: 2px;
  border: 1px solid var(--il-rule);
  background: var(--il-paper-deep);
  color: var(--il-ink-2);
}
/* CONFIRM-AT-APPLY: hook evidenced via the soft-clay.css surface collection, not a direct styles.css read */
html[data-ntxv-theme="ivory-ledger"] .shell :is(.notice, .alert, .banner) {
  background: var(--il-brass-tint);
  border: 1px solid var(--il-rule);
  border-left: 3px solid var(--il-brass);
  border-radius: 3px;
  color: var(--il-ink-2);
}
/* CONFIRM-AT-APPLY: hook evidenced via the soft-clay.css surface collection, not a direct styles.css read */
html[data-ntxv-theme="ivory-ledger"] .shell :is(.modal, .dialog, .drawer, .sheet) {
  background: var(--il-paper-card);
  border: 1px solid var(--il-rule);
  border-radius: 3px;
  box-shadow: 0 24px 48px -24px rgba(26, 25, 23, .5);
}
/* CONFIRM-AT-APPLY: hook evidenced via the soft-clay.css surface collection, not a direct styles.css read */
html[data-ntxv-theme="ivory-ledger"] .shell :is(.modal-backdrop, .drawer-backdrop, .overlay) {
  background: rgba(26, 25, 23, .45);
}
/* CONFIRM-AT-APPLY: hook evidenced via the soft-clay.css surface collection, not a direct styles.css read */
html[data-ntxv-theme="ivory-ledger"] .shell :is(.nav-group, .menu, .submenu, .dropdown, .popover) {
  background: var(--il-paper-card);
  border: 1px solid var(--il-rule);
  border-radius: 3px;
}
/* CONFIRM-AT-APPLY: hook evidenced via the soft-clay.css surface collection, not a direct styles.css read */
html[data-ntxv-theme="ivory-ledger"] .shell :is(.queue-card, .kanban-card, .job-card, .order-card, .booking-card, .driver-card) {
  background: var(--il-paper-card);
  border: 1px solid var(--il-rule);
  border-radius: 3px;
  box-shadow: var(--il-panel-shadow);
}
/* CONFIRM-AT-APPLY: hook evidenced via the soft-clay.css surface collection, not a direct styles.css read */
html[data-ntxv-theme="ivory-ledger"] .shell :is(.list, .list-row, .row-item) {
  border-color: var(--il-rule-soft);
}
/* CONFIRM-AT-APPLY: hook evidenced via the soft-clay.css surface collection, not a direct styles.css read */
html[data-ntxv-theme="ivory-ledger"] .shell :is(.empty-state, .no-results) {
  color: var(--il-ink-3);
  background: var(--il-paper-deep);
  border: 1px dashed var(--il-rule);
  border-radius: 3px;
}

/* -----------------------------------------------------------------------------
   14. NARROW WINDOWS AND PRINT
       Driven viewports are already redirected to the dedicated driver shell
       by the base skin; these rules cover a narrow desktop window only. The
       print block keeps the app's own print behaviour (shadows off) intact
       inside the shell — the ledger look does not follow the PDF.
   ----------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  html[data-ntxv-theme="ivory-ledger"] .shell .cards .card {
    border-left: 0;
    border-top: 1px solid var(--il-rule-soft);
  }
  html[data-ntxv-theme="ivory-ledger"] .shell .cards .card:first-child {
    border-top: 0;
  }
}
@media print {
  html[data-ntxv-theme="ivory-ledger"] .shell .card,
  html[data-ntxv-theme="ivory-ledger"] .shell .section,
  html[data-ntxv-theme="ivory-ledger"] .shell .wb-card,
  html[data-ntxv-theme="ivory-ledger"] .shell .deadline-alarm {
    box-shadow: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html[data-ntxv-theme="ivory-ledger"] .shell * {
    transition: none !important;
  }
}

/* -----------------------------------------------------------------------------
   14. FOREST MENU OVERRIDE — OWNER DECISION (2026-11-06 11:37 EST, "make menu
      site different colour", approved on sight as variant V2b): the sidebar
      is deep forest green, not paper. This block comes LAST in the file and
      re-points every sidebar rule in §3; all other §3 geometry (stacking,
      spacing, the strapline rule) is unchanged. Content side untouched.
      Palette, from variant-2b-ivory-ledger-forest-menu.html: ground #336B57,
      deep #28543F, text #F7F4ED / #DCE8DF, muted #9DBFA9, border #4A7A66,
      active brass edge #B08D3F + wash rgba(176,141,63,.28).
   ----------------------------------------------------------------------------- */
html[data-ntxv-theme="ivory-ledger"] .shell .side {
  background: var(--il-forest);
  color: #DCE8DF;
  border-right: 1px solid #4A7A66;
}
html[data-ntxv-theme="ivory-ledger"] .shell .side .brand-sub {
  color: var(--il-brass);
  border-bottom-color: #F7F4ED;
  box-shadow: 0 1px 0 0 var(--il-brass);
}
/* The brand block's background is locked by the base file and may not be
   painted; the wordmark TEXT inside it, where the markup carries one, takes
   the forest-menu ivory. The logo image itself is never addressed. */
html[data-ntxv-theme="ivory-ledger"] .shell .side .brand {
  color: #F7F4ED;
}
html[data-ntxv-theme="ivory-ledger"] .shell .side-search input {
  background: var(--il-forest-deep);
  border-color: #4A7A66;
  color: #F7F4ED;
}
html[data-ntxv-theme="ivory-ledger"] .shell .side-search input::placeholder {
  color: #9DBFA9;
}
html[data-ntxv-theme="ivory-ledger"] .shell .side-search input:focus {
  outline-color: var(--il-brass);
  border-color: var(--il-brass);
}
html[data-ntxv-theme="ivory-ledger"] .shell .side-search button {
  background: var(--il-brass);
  color: #1A1917;
}
html[data-ntxv-theme="ivory-ledger"] .shell .side-search button:hover {
  background: var(--il-brass-deep);
  color: #F7F4ED;
}
html[data-ntxv-theme="ivory-ledger"] .shell .nav-label {
  color: #9DBFA9;
}
html[data-ntxv-theme="ivory-ledger"] .shell .nav button {
  color: #DCE8DF;
}
html[data-ntxv-theme="ivory-ledger"] .shell .nav button:hover {
  background: var(--il-forest-deep);
  color: #FFFFFF;
}
html[data-ntxv-theme="ivory-ledger"] .shell .nav button.active {
  background: linear-gradient(to right, rgba(176, 141, 63, .28), rgba(176, 141, 63, 0) 85%);
  border-left-color: var(--il-brass);
  color: #FFFFFF;
}
html[data-ntxv-theme="ivory-ledger"] .shell .nav-badge {
  background: var(--il-forest-deep);
  color: #F7F4ED;
  border-color: #4A7A66;
}
html[data-ntxv-theme="ivory-ledger"] .shell .user-mini {
  border-top-color: #4A7A66;
  color: #DCE8DF;
}
html[data-ntxv-theme="ivory-ledger"] .shell .user-mini-text span,
html[data-ntxv-theme="ivory-ledger"] .shell .user-mini span {
  color: #9DBFA9;
}

/* §66 — the added strapline span is ivory-only (v4.1, 2026-11-06).
   appjs-strapline.md's Case C span carries an inline display:none, so
   under original, soft-clay and no-theme it never renders — the old
   sidebars stay pixel-identical (the separation check that stopped the
   v4 apply). This is the ONLY rule in the file allowed to override that
   inline style, and only under this theme. A pre-existing span (Cases
   A/B) carries no inline style and is unaffected. */
html[data-ntxv-theme="ivory-ledger"] .shell .side .brand-sub {
  display: block !important;
}
