/* =============================================================================
   THE NEW LOOK — release m · N9 (owner row 1146: "APPROVE AS SHOWN, built in steps")
   =============================================================================
   Plain version: the colours, text sizes, spacing, one tab style, status pills and row density of
   docs/PLANS-2026-11-10/N9-SAMPLE-SCREEN.html. Nothing moves and no words change.
   ⛔ EVERY SELECTOR IN THIS FILE STARTS WITH html.look-new. app/layout-state.js puts that class on <html> in every
      browser since stage 5 removed the old layout (row 1514); pinned by app/__tests__/look-new.css.test.js: no
      rule here can match without the class.
   Worked example: Cylinder Registry's "Register Cylinder" button is #007a96 with white text (4.97:1; today's
   #0096b7 is 3.47:1); "Damaged" is a red pill reading "✕ Damaged"; the Active/Archived pair is one underline tab row.
   Built in steps, one commit each: tokens and type; buttons and inputs; one tab style; status pills; tables and
   density.
   ============================================================================= */

/* ─── 1. Tokens (plan PLAN-N9-N10 token map; contrast measured in look-new.css.test.js) ─────────────────── */
html.look-new {
  --accent:#007a96;          /* main buttons, links, focus: white on it 4.97:1 (today #0096b7, 3.47:1) */
  --accent-hover:#00657c;    /* hover, the selected tab's words: 6.0:1+ */
  --accent-dim:rgba(0,122,150,0.08);
  --brand:#0096b7;           /* the brand colour, kept for the logo and brand marks, never behind text */
  --text3:#646c79;           /* hints and times: 4.7:1 (today #9ca3af, 2.54:1) */
  --border2:#7c8696;         /* input edges: 3.4:1 (3:1 needed) */
  --success:#047857;
  --warn:#b45309;
  --danger:#b91c1c;
  --sidebar-text:#c9d8e1;
  --sidebar-text2:#8fb0c2;   /* menu group labels: 6.5:1 on the navy (today #6a8fa5, 4.31:1) */
  --radius:8px;              /* one radius scale: 4 / 6 / 8 / 12 / pill */
  --radius2:6px;
  --radius-sm:4px;
  --radius-lg:12px;
  --radius-pill:999px;
  /* three shadow levels (e1, e2, e3), none blurred behind boxes */
  --shadow-sm:0 1px 2px rgba(17,24,39,0.06);
  --shadow:0 1px 2px rgba(17,24,39,0.06);
  --shadow-md:0 2px 6px rgba(17,24,39,0.08);
  --shadow-lg:0 8px 24px rgba(17,24,39,0.12);
  /* spacing 2 4 8 12 16 24 32 48 */
  --sp-1:2px; --sp-2:4px; --sp-3:8px; --sp-4:12px; --sp-5:16px; --sp-6:24px; --sp-7:32px; --sp-8:48px;
  /* row density (§ 6): Compact is the office default */
  --row-h:36px;
  /* owner row 1190, paper 4 C4: links #1d4ed8 (6.70:1; today #3b82f6 at 3.68:1) */
  --accent2:#1d4ed8;
  /* paper 4 C4: six names TRACK writes but never defined, each an ALIAS of a real token, never a new colour */
  --text1:var(--text);
  --ok:var(--success);
  --ok-bg:#ecfdf5;
  --warn-bg:#fffbeb;
  --danger-bg:#fef2f2;
  --warning:var(--warn);
}
html.look-new.density-comfortable { --row-h:44px; }

/* ─── 2. Type: Inter only; sizes 12 / 13 / 14 / 16 / 20 / 28 / 40; nothing on screen under 12px ──────────── */
html.look-new body,
html.look-new button, html.look-new input, html.look-new select, html.look-new textarea,
html.look-new h1, html.look-new h2, html.look-new h3, html.look-new h4,
html.look-new [style*="Syne"] {
  font-family:'Inter',system-ui,-apple-system,BlinkMacSystemFont,sans-serif !important;
}
html.look-new [style*="Syne"] { font-style:normal !important; }
/* D3 (owner rows 1365-1368, 14 Nov 2026, "Poppins headings, Inter text"): page headings and card titles ONLY read Poppins;
   tables, forms, numbers and every other line stay Inter. */
html.look-new .page-header-title h2, html.look-new .card-title {
  font-family:'Poppins','Inter',system-ui,-apple-system,BlinkMacSystemFont,sans-serif !important;
}
html.look-new .page-header-title h2 { font-size:20px; line-height:28px; font-weight:600; letter-spacing:0; }
html.look-new .topbar-title { font-weight:600; }
html.look-new .stat-val, html.look-new .stat-value { font-size:28px; line-height:34px; font-weight:700; letter-spacing:0; }
@media screen {
  html.look-new [style*="font-size:8px"], html.look-new [style*="font-size: 8px"],
  html.look-new [style*="font-size:9px"], html.look-new [style*="font-size: 9px"],
  html.look-new [style*="font-size:10px"], html.look-new [style*="font-size: 10px"],
  html.look-new [style*="font-size:10.5px"], html.look-new [style*="font-size: 10.5px"],
  html.look-new [style*="font-size:11px"], html.look-new [style*="font-size: 11px"],
  html.look-new [style*="font-size:11.5px"], html.look-new [style*="font-size: 11.5px"] { font-size:12px !important; }
  html.look-new .fg label, html.look-new .field-error-msg, html.look-new .sidebar-user-role, html.look-new .nav-badge,
  html.look-new .stat-label, html.look-new th, html.look-new .badge, html.look-new .product-tag,
  html.look-new .stage-stub .stage-badge, html.look-new .inline-section-title, html.look-new .ds-label,
  html.look-new .ds-section-label, html.look-new .ds-override-tag, html.look-new .ds-log-entry, html.look-new .ds-ctx-label,
  html.look-new .btn-xs, html.look-new .form-group label, html.look-new .count-tag, html.look-new .exc-actions-title,
  html.look-new .exc-log-row, html.look-new .exc-log-badge, html.look-new .od-section-title, html.look-new .od-label,
  html.look-new .cd-section-title, html.look-new .cd-meta-label { font-size:12px; }
}
/* paper 4 C5: Inter is loaded up to 700, so an inline 800 is drawn at 700 (not a faked bold) */
html.look-new [style*="font-weight:800"], html.look-new [style*="font-weight: 800"] { font-weight:700 !important; }
/* paper 4 C4: three hard-coded text colours that fail 4.5:1, remapped (the inline text colour only, matched at the
   start of the style or after a ";" / space, so a background or border of that colour is left alone):
   #888 → #6b7280 (3.54 → 4.83:1), #d97706 → #b45309 (3.19 → 5.02:1), #16a34a → #047857 (3.30 → 5.48:1) */
html.look-new [style^="color:#888"], html.look-new [style*=";color:#888"], html.look-new [style*="; color:#888"], html.look-new [style*=" color:#888"] { color:#6b7280 !important; }
html.look-new [style^="color:#d97706"], html.look-new [style*=";color:#d97706"], html.look-new [style*="; color:#d97706"], html.look-new [style*=" color:#d97706"] { color:#b45309 !important; }
html.look-new [style^="color:#16a34a"], html.look-new [style*=";color:#16a34a"], html.look-new [style*="; color:#16a34a"], html.look-new [style*=" color:#16a34a"] { color:#047857 !important; }
html.look-new [style^="color:#3b82f6"], html.look-new [style*=";color:#3b82f6"], html.look-new [style*="; color:#3b82f6"], html.look-new [style*=" color:#3b82f6"] { color:#1d4ed8 !important; }

/* the menu's group labels: "Bottles" at 12px in a readable blue-grey, sentence case as written */
html.look-new .nav-section-label { font-size:12px; letter-spacing:0; text-transform:none; color:var(--sidebar-text2); }
html.look-new .nav-item { color:var(--sidebar-text); }
html.look-new .nav-item .ni { display:inline-flex; align-items:center; justify-content:center; }
html.look-new .nav-item .ni svg { width:18px; height:18px; }

/* N10's icons inside tabs and buttons (app/look.js puts them in a .li span) */
html.look-new .li { display:inline-flex; align-items:center; flex-shrink:0; margin-right:6px; line-height:0; }
/* A click on the icon is a click on its button: pages test e.target.id / e.target.dataset with no closest() (invoices.js's ✕,
   the shared ↻ Retry, audit.js's ← Newer, customers.js's 📍 GPS), so the icon and its shapes never take the click (reader SS-1). */
html.look-new .li, html.look-new .li * { pointer-events:none; }
html.look-new .btn .li { margin-right:0; } /* .btn is inline-flex with its own 6px gap */
/* m13 (release-m §4 item 13): an icon-only control that is not a .btn (look.js marks it li-only: a tab, a ✕) has no word
   after its icon, so no 6px gap either; a tab with words keeps its 6px. */
html.look-new .li-only:not(.btn) .li { margin-right:0; }
html.look-new .li svg { width:16px; height:16px; }

/* ─── 3. Buttons and inputs ───────────────────────────────────────────────────────────────────────────────── */
html.look-new .btn { font-size:14px; border-radius:var(--radius2); }
html.look-new .btn-sm, html.look-new .btn-xs { font-size:12px; }
html.look-new .btn-primary { background:var(--accent); color:#fff; box-shadow:none; }
@media(hover:hover) and (pointer:fine) {
  html.look-new .btn-primary:hover { background:var(--accent-hover); }
}
html.look-new .btn-secondary { border:1px solid var(--border2); color:var(--text); box-shadow:none; }
html.look-new .btn-danger { background:#fef2f2; color:var(--danger); border:1px solid rgba(185,28,28,0.35); }
html.look-new .btn-warn { background:#fffbeb; color:var(--warn); border:1px solid rgba(180,83,9,0.35); }
/* paper 4 C7: one 2px focus ring on every control (main.css's six outline:none rules are overruled here), #007a96
   4.97:1 on white; inside the navy menu #7dd3fc, 8.92:1 (#007a96 there is 2.99:1) */
html.look-new :focus-visible { outline:2px solid var(--accent) !important; outline-offset:2px; }
html.look-new .sidebar :focus-visible { outline-color:#7dd3fc !important; }
html.look-new .fg input, html.look-new .fg select, html.look-new .fg textarea, html.look-new .form-input,
html.look-new .form-select { border-color:var(--border2); font-size:14px; }
html.look-new .fg input:focus, html.look-new .fg select:focus, html.look-new .fg textarea:focus,
html.look-new .form-input:focus { border-color:var(--accent); box-shadow:0 0 0 3px rgba(0,122,150,0.18); }
html.look-new ::placeholder { color:var(--text3); opacity:1; }
/* touch screens: 48px controls. m15 (owner Q6 (a), 15 Nov 2026): the main buttons and the fields only; the small row
   buttons inside a table (.btn-sm, .btn-xs) keep their normal size, so a 20-row list is not twice as tall on a tablet.
   The exception is a rule of its own, in plain selectors: an engine that could not read it would only keep 48px there
   (fix round, reader I; the :not(table .btn-sm) form would have dropped the whole 48px rule on such an engine). */
@media (pointer:coarse) {
  html.look-new .btn, html.look-new .tab-btn, html.look-new .tab-item, html.look-new .cust-tab,
  html.look-new .form-input, html.look-new .fg input, html.look-new .fg select { min-height:48px; }
  html.look-new table .btn.btn-sm, html.look-new table .btn.btn-xs { min-height:auto; }
}
/* m15: on a phone, mobile.css's own 44px floor for every .btn stays for those row buttons, as it was before the 48px. */
@media (pointer:coarse) and (max-width: 767px) {
  html.look-new table .btn.btn-sm, html.look-new table .btn.btn-xs { min-height:44px; }
}

/* ─── 4. One tab style: underline, 14px, the selected tab semibold with a 2px bar (spec §5) ──────────────────
   The eight kinds: .tab-row/.tab-btn, .tab-item (Reports, Reconciliation), .tab-link, .cust-tab (customer card),
   .prf-tab-active (proof), the Active/Archived pair (.cyl-tabs), Gas/Rental Rates' .rr-tab pair and Daily
   Schedule's vehicle pills (.ds-vehicle-tab). The selected one is the one today's page marks: .active,
   .prf-tab-active, or btn-primary in a pair. */
html.look-new .tab-row, html.look-new .cyl-tabs, html.look-new .cust-tab-bar {
  display:flex; flex-wrap:wrap; gap:4px; width:auto; padding:0; background:none; border:none; border-radius:0;
  border-bottom:1px solid var(--border) !important; box-shadow:none;
}
/* the two button-pair rows have no class of their own; :has() is kept in its own rule, so a browser without it
   drops only this rule */
html.look-new div:has(> .rr-tab), html.look-new div:has(> .ds-vehicle-tab) {
  gap:4px; border-bottom:1px solid var(--border);
}
html.look-new :is(.tab-btn, .tab-item, .tab-link, .cust-tab, .cyl-tabs > .btn, .btn.rr-tab, .btn.ds-vehicle-tab, .btn.prf-tab-active) {
  background:none !important; border:none !important; border-bottom:2px solid transparent !important;
  border-radius:0 !important; box-shadow:none !important; margin-bottom:-1px !important;
  padding:8px 12px !important; font-size:14px !important; font-weight:500 !important;
  color:var(--text2) !important; cursor:pointer;
}
html.look-new :is(.tab-btn.active, .tab-item.active, .tab-link.active, .cust-tab.active, .cyl-tabs > .btn-primary,
  .btn-primary.rr-tab, .btn-primary.ds-vehicle-tab, .prf-tab-active) {
  color:var(--accent-hover) !important; font-weight:600 !important; border-bottom-color:var(--accent) !important;
}
@media(hover:hover) and (pointer:fine) {
  html.look-new :is(.tab-btn, .tab-item, .tab-link, .cust-tab, .cyl-tabs > .btn, .btn.rr-tab, .btn.ds-vehicle-tab):hover {
    color:var(--text) !important; background:none !important;
  }
}

/* ─── 5. Status pills: the word kept, a shape added (✓ ● ! ✕ –), so they read without colour ─────────────────
   badges.js marks each status badge with data-tone in the clean layout; the shape is drawn here, not written into
   the word, so the badge's text (and every copy of it) is unchanged. */
html.look-new .badge { border-radius:var(--radius-pill); padding:2px 9px; font-size:12px; gap:4px; letter-spacing:0; }
/* owner row 1190 (paper 2 Q1-Q6 (a); paper 4 Q1 (a)): the five tones; "problem" is the only SOLID pill, white on
   #b91c1c (6.47:1), so it stands out without colour vision; the mark is a Lucide icon mask (generated block below),
   not a font glyph. A pill or word a page marks with data-tone (ui/components/tone.js) takes these, whatever its class. */
html.look-new .badge[data-tone] { border:none !important; font-weight:600; }
html.look-new .badge[data-tone="ok"] { background:#ecfdf5 !important; color:#047857 !important; }
html.look-new .badge[data-tone="progress"] { background:#e8f6fa !important; color:#00657c !important; }
html.look-new .badge[data-tone="look"] { background:#fffbeb !important; color:#b45309 !important; }
html.look-new .badge[data-tone="problem"] { background:#b91c1c !important; color:#ffffff !important; }
html.look-new .badge[data-tone="neutral"] { background:#f1f5f9 !important; color:#4b5563 !important; }
/* a pill a page draws with its own inline background (no .badge class: the Delivery Integrity ON/OFF chip, paper 2
   row 161) is drawn as a pill of its tone too: background, text and mark */
html.look-new span[data-tone][style*="background"][style*="padding"]:not(.badge) { display:inline-flex; align-items:center; gap:4px; border:none !important; font-size:12px !important; }
html.look-new span[data-tone="ok"][style*="background"][style*="padding"]:not(.badge) { background:#ecfdf5 !important; }
html.look-new span[data-tone="progress"][style*="background"][style*="padding"]:not(.badge) { background:#e8f6fa !important; }
html.look-new span[data-tone="look"][style*="background"][style*="padding"]:not(.badge) { background:#fffbeb !important; }
html.look-new span[data-tone="problem"][style*="background"][style*="padding"]:not(.badge) { background:#b91c1c !important; color:#ffffff !important; }
html.look-new span[data-tone="neutral"][style*="background"][style*="padding"]:not(.badge) { background:#f1f5f9 !important; }
/* owner row 1191 (b): the bottle chart (Today, and the top of Cylinder Registry) takes the five tones too: the bars,
   the pie slices and the legend swatches are filled with their tone. Pairs then share a colour (In Transit and At
   Customer; Damaged and Lost), so every one keeps its words in the legend beside its swatch, and neighbours are
   parted by a thin white edge: the pie's slices already draw a 2px surface-coloured stroke; each bar after the
   first gets a 2px edge on its left. */
html.look-new #dash-cylinder-summary [data-tone="ok"] { background:#047857 !important; fill:#047857 !important; }
html.look-new #dash-cylinder-summary [data-tone="progress"] { background:#00657c !important; fill:#00657c !important; }
html.look-new #dash-cylinder-summary [data-tone="look"] { background:#b45309 !important; fill:#b45309 !important; }
html.look-new #dash-cylinder-summary [data-tone="problem"] { background:#b91c1c !important; fill:#b91c1c !important; }
html.look-new #dash-cylinder-summary [data-tone="neutral"] { background:#6b7280 !important; fill:#6b7280 !important; }
html.look-new #dash-cylinder-summary div[data-tone] + div[data-tone] { box-shadow:inset 2px 0 0 var(--surface); }
/* a coloured word or number that is not a pill (a stat tile, a count) takes its tone's text colour only */
html.look-new [data-tone="ok"]:not(.badge) { color:#047857 !important; }
html.look-new [data-tone="progress"]:not(.badge) { color:#00657c !important; }
html.look-new [data-tone="look"]:not(.badge) { color:#b45309 !important; }
html.look-new [data-tone="problem"]:not(.badge) { color:#b91c1c !important; }
html.look-new [data-tone="neutral"]:not(.badge) { color:#4b5563 !important; }

/* ─── 6. Tables and density ───────────────────────────────────────────────────────────────────────────────────
   12px sentence-case headers (the words as written, no forced capitals); rows Compact 36px (office default) or
   Comfortable 44px, chosen per browser (app/look.js :: the density toggle). */
html.look-new th { font-size:12px; text-transform:none; letter-spacing:0; color:var(--text2); font-weight:600; padding:8px 12px; }
html.look-new td { padding:6px 12px; height:var(--row-h); }
html.look-new.density-comfortable td { padding:10px 12px; }
html.look-new .density-toggle { display:inline-flex; border:1px solid var(--border2); border-radius:var(--radius2); overflow:hidden; flex-shrink:0; }
html.look-new .density-toggle button { background:var(--surface); color:var(--text2); border:none; padding:4px 10px; font-size:12px; font-weight:500; cursor:pointer; }
html.look-new .density-toggle button[aria-pressed="true"] { background:var(--accent); color:#fff; font-weight:600; }
html.look-new .density-toggle button + button { border-left:1px solid var(--border2); }

/* ─── 7. N11's loading look: grey placeholder rows, no words (error-state.js :: loadingRowsHtml) ─────────────── */
html.look-new .list-loading { display:grid; gap:8px; padding:12px 0; }
html.look-new .list-loading-row { height:var(--row-h); border-radius:var(--radius-sm); background:#7c8696; } /* release n row 1220: 3.40:1 (was #eef1f5, 1.05:1) */
@media (prefers-reduced-motion: no-preference) {
  html.look-new .list-loading-row { animation:look-row-pulse 1.4s ease-in-out infinite; }
}
@keyframes look-pulse { 0%, 100% { opacity:1; } 50% { opacity:0.55; } }
/* release n row 1220: the loading rows pulse in colour, never below 3:1 (a fade to 0.55 would drop them to 2:1) */
@keyframes look-row-pulse { 0%, 100% { background-color:#7c8696; } 50% { background-color:#6b7584; } }

/* <generated: m_gen_icons2.mjs — pill marks and collapse chevrons as icon masks> */
html.look-new .badge[data-tone]::before, html.look-new span[data-tone][style*="background"][style*="padding"]::before { content:""; display:inline-block; width:12px; height:12px; flex-shrink:0; background-color:currentColor; -webkit-mask:var(--mark) center / contain no-repeat; mask:var(--mark) center / contain no-repeat; }
html.look-new [data-tone="ok"] { --mark:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.5'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M20%206%209%2017l-5-5'%2F%3E%3C%2Fsvg%3E"); }
html.look-new [data-tone="progress"] { --mark:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.5'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Ccircle%20cx%3D'12'%20cy%3D'12'%20r%3D'10'%2F%3E%3Ccircle%20cx%3D'12'%20cy%3D'12'%20r%3D'1'%2F%3E%3C%2Fsvg%3E"); }
html.look-new [data-tone="look"] { --mark:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.5'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Ccircle%20cx%3D'12'%20cy%3D'12'%20r%3D'10'%2F%3E%3Cline%20x1%3D'12'%20x2%3D'12'%20y1%3D'8'%20y2%3D'12'%2F%3E%3Cline%20x1%3D'12'%20x2%3D'12.01'%20y1%3D'16'%20y2%3D'16'%2F%3E%3C%2Fsvg%3E"); }
html.look-new [data-tone="problem"] { --mark:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.5'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M18%206%206%2018'%2F%3E%3Cpath%20d%3D'm6%206%2012%2012'%2F%3E%3C%2Fsvg%3E"); }
html.look-new [data-tone="neutral"] { --mark:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.5'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M5%2012h14'%2F%3E%3C%2Fsvg%3E"); }
html.look-new .collapse-toggle { font-size:0 !important; line-height:0; }
html.look-new .collapse-toggle::before { content:""; display:inline-block; width:16px; height:16px; background-color:currentColor; -webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.5'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'm6%209%206%206%206-6'%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.5'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'm6%209%206%206%206-6'%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; }
html.look-new .collapse-toggle[aria-label^="Expand"]::before { -webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.5'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'm9%2018%206-6-6-6'%2F%3E%3C%2Fsvg%3E"); mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.5'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'm9%2018%206-6-6-6'%2F%3E%3C%2Fsvg%3E"); }
/* </generated> */

/* Release n · M-3 (owner row 1200): Cylinder Scan's big status badges (main.css .badge-lg .badge, 22px, read from
   arm's length) stay big in the new look; html.look-new .badge (0,2,1, 12px) outranked them. Weight stays 700 (C5). */
html.look-new .badge-lg .badge { font-size:22px; padding:8px 18px; border-radius:10px; }
html.look-new .badge-lg .badge[data-tone]::before { width:18px; height:18px; }

/* Stage 2 step 2a (owner rows 1295, 1296, 1301): the one page frame. The action slot sits top right, main button last;
   Scan Records fills the width like the other list pages (Delivery Scan and Delivery Proof keep their narrow column). */
html.look-new .page-frame .pf-actions { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
html.look-new #page-scan-records .ds-page { max-width:none; }
html.look-new .ds-page > .page-frame { margin-bottom:12px; }

/* Stage 2 step 2b (owner rows 1295-1301): the one tab part (ui/components/tab-bar.js). A row it marks is drawn as
   section 4's underline tabs, the open tab from aria-selected, whatever the row's own classes say (Recycle Bin's seven
   solid buttons included). A switch that is not a view (Single / Bulk, Signature / Photo, Bar / Pie) is one
   segmented control: a grey track, the pressed half white with the accent words. */
html.look-new .tab-bar[role="tablist"] {
  display:flex; flex-wrap:wrap; gap:4px; background:none; border:none; border-radius:0; box-shadow:none;
  border-bottom:1px solid var(--border) !important;
}
html.look-new .tab-bar > [role="tab"] {
  flex:0 0 auto !important; background:none !important; border:none !important; border-bottom:2px solid transparent !important;
  border-radius:0 !important; box-shadow:none !important; margin-bottom:-1px !important;
  padding:8px 12px !important; font-size:14px !important; font-weight:500 !important; color:var(--text2) !important;
}
html.look-new .tab-bar > [role="tab"][aria-selected="true"] {
  color:var(--accent-hover) !important; font-weight:600 !important; border-bottom-color:var(--accent) !important;
}
html.look-new .tab-bar > [role="tab"]:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }
/* Stage 4 PART A (owner row 1316 (2), "Keep the tab, it opens the page"): Gas/Rental Rates' "Month End →" is a LINK to
   the Month End page, kept in the tab row's place; it is drawn as an unselected tab (never selected: it leaves the page). */
html.look-new .tab-bar > a.rr-month-end-link {
  flex:0 0 auto !important; background:none !important; border:none !important; border-bottom:2px solid transparent !important;
  border-radius:0 !important; box-shadow:none !important; margin-bottom:-1px !important;
  padding:8px 12px !important; font-size:14px !important; font-weight:500 !important; color:var(--text2) !important;
  text-decoration:none !important;
}
html.look-new .seg-control {
  display:inline-flex !important; gap:0 !important; padding:2px !important; width:auto !important;
  background:var(--surface2) !important; border:1px solid var(--border) !important; border-radius:8px !important;
}
html.look-new .seg-control > .btn, html.look-new .seg-control > .tab-btn {
  flex:0 0 auto !important; background:none !important; border:none !important; border-radius:6px !important;
  box-shadow:none !important; margin:0 !important; padding:6px 14px !important; font-weight:500 !important;
  color:var(--text2) !important;
}
html.look-new .seg-control > [aria-pressed="true"] {
  background:var(--surface) !important; color:var(--accent-hover) !important; font-weight:600 !important;
  box-shadow:0 1px 2px rgba(0,0,0,0.12) !important;
}

/* Stage 2 step 2e (owner row 1298; words set 3): one main button and "More". The menu opens under its button, over
   the rows below; the destructive items sit last, under a line, in red. */
html.look-new .row-actions { display:inline-flex; gap:6px; align-items:center; flex-wrap:wrap; }
html.look-new .row-menu { position:relative; display:inline-block; }
html.look-new .row-menu-list {
  position:absolute; right:0; top:calc(100% + 4px); z-index:50; min-width:180px; padding:4px 0;
  display:flex; flex-direction:column; background:var(--surface); border:1px solid var(--border);
  border-radius:8px; box-shadow:0 6px 18px rgba(0,0,0,0.14);
}
html.look-new .row-menu-list[hidden] { display:none; }
html.look-new .row-menu-list > [role="menuitem"] {
  display:flex; justify-content:flex-start; width:100%; margin:0 !important; padding:8px 14px !important;
  background:none !important; border:none !important; border-radius:0 !important; box-shadow:none !important;
  color:var(--text) !important; font-size:13px !important; font-weight:500 !important; text-align:left; white-space:nowrap;
}
html.look-new .row-menu-list > [role="menuitem"]:hover, html.look-new .row-menu-list > [role="menuitem"]:focus-visible {
  background:var(--surface2) !important; outline:none;
}
html.look-new .row-menu-list > .row-menu-danger { color:var(--danger) !important; }
html.look-new .row-menu-sep { height:1px; margin:4px 0; background:var(--border); }

/* Stage 2 step 2d (owner rows 1297, 1300): the shared table. A sortable heading is a quiet button; the sort shown is
   the heading's aria-sort, drawn as a small arrow. The count line sits above the table with Show older beside it. */
html.look-new table.dt { width:100%; border-collapse:collapse; }
html.look-new table.dt th { text-align:left; white-space:nowrap; }
html.look-new table.dt .dt-sort {
  background:none; border:none; padding:0; margin:0; font:inherit; color:inherit; cursor:pointer;
  display:inline-flex; align-items:center; gap:4px;
}
html.look-new table.dt th[aria-sort="ascending"] .dt-sort::after { content:"\2191"; }
html.look-new table.dt th[aria-sort="descending"] .dt-sort::after { content:"\2193"; }
html.look-new table.dt td.dt-empty { text-align:center; color:var(--text3); padding:24px 12px; }
html.look-new .dt-count { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:8px 0; font-size:13px; color:var(--text2); }
