/* MnR integrated redesign · 2026-11-18 · Maintenance lanes (Repair · 30 Day · 90 Day).
 * Owned by the Maintenance writer. Extends maintenance-desk.css (.ws / .dk); no global reset, no shared selector overridden.
 * Colours follow mnrdesign.md §5 through the existing tokens, with the §5 values as fallbacks. */
.mr .ws-top { display: grid; gap: 10px; }
.mr-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.mr-cat { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; font: inherit; font-weight: 600; color: var(--text-1, #0D2443);
  background: var(--surface, #FFFFFF); border: 1px solid var(--input-border, #7C8FA0); border-radius: 6px; cursor: pointer; transition: background-color .14s, border-color .14s; }
.mr-cat svg { width: 16px; height: 16px; }
.mr-cat b { min-width: 1.5em; padding: 0 6px; border-radius: 9px; background: var(--surface-sunken, #F0F4F7); text-align: center; font-variant-numeric: tabular-nums; }
.mr-cat:hover { background: var(--surface-sunken, #F0F4F7); }
.mr-cat.is-on { color: var(--accent, #2454BD); background: var(--row-selected, #DDEFF5); border-color: var(--accent, #2454BD); box-shadow: inset 0 -3px 0 var(--accent, #2454BD); font-weight: 700; }
.mr-cat:focus-visible, .mr-sum:focus-visible, .mr-other > summary:focus-visible { outline: 2px solid var(--mnr-focus, #2454BD); outline-offset: 2px; }
.mr-count { font-variant-numeric: tabular-nums; }
.mr-hold { display: inline-flex; align-items: center; gap: 4px; color: var(--danger, #9B241C); font-weight: 600; }
.mr-money { display: inline-flex; align-items: center; gap: 4px; color: var(--warn, #775000); font-weight: 600; }
.mr-outside { display: inline-flex; align-items: center; gap: 4px; color: var(--info, #225D91); font-size: 12px; font-weight: 600; }
.mr-hold svg, .mr-money svg, .mr-outside svg { width: 14px; height: 14px; }

.mr-restr { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mr-restr > li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: start; }
.mr-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
/* unified Phase A · record boxes ARE the Accident task boxes (.acc-task / .acc-task-btn / .acc-task-b from modules.css and
 * accident-entry.css); no separate card theme. Only content inside a box is laid out here. */
.mr-ss { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.mr-body { display: grid; gap: 10px; min-width: 0; }
.mr-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; margin: 0; }
.mr-facts > div { display: contents; }
.mr-facts dt { color: var(--text-2, #4B6480); font-size: 12px; font-weight: 600; padding-top: 2px; }
.mr-facts dd { margin: 0; overflow-wrap: anywhere; }
.mr-wait { margin: 0; display: flex; gap: 6px; align-items: baseline; color: var(--text-2, #4B6480); }
.mr-other { margin-top: 8px; }
.mr-other > summary { cursor: pointer; }

/* Stage 2 · non-truck identity, grouped saved sections, create pane */
.mr-nostat { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; color: var(--text-2, #4B6480); background: var(--surface-sunken, #F0F4F7); border: 1px solid var(--border, #D8E1E9); }
.mr-asset { cursor: default; }
.mr-note { margin: 0; display: flex; gap: 6px; align-items: baseline; color: var(--review, #603B91); font-size: 13px; }
.mr-groups { display: grid; gap: 6px; }
.mr-grp { border: 1px solid var(--border, #D8E1E9); border-radius: 6px; background: var(--surface, #FFFFFF); }
.mr-grp.is-open { border-color: var(--table-edge, #A7BACB); }
.mr-gbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; }
.mr-gt { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 2px 8px; align-items: baseline; padding: 8px 10px; min-height: 40px; text-align: left; font: inherit; color: var(--text-1, #0D2443); background: none; border: 0; cursor: pointer; border-radius: 6px 0 0 6px; }
.mr-gt svg { width: 16px; height: 16px; align-self: center; }
.mr-gt:hover { background: var(--surface-sunken, #F0F4F7); }
.mr-gs { color: var(--text-1, #0D2443); overflow-wrap: anywhere; }
.mr-grp.is-quiet .mr-gs { color: var(--text-2, #4B6480); }
.mr-gn { grid-column: 3; color: var(--accent, #2454BD); font-size: 13px; font-weight: 600; }
.mr-plus { width: 40px; min-height: 40px; display: grid; place-items: center; background: none; border: 0; border-left: 1px solid var(--border, #D8E1E9); color: var(--accent, #2454BD); cursor: pointer; border-radius: 0 6px 6px 0; }
.mr-plus:hover { background: var(--row-selected, #DDEFF5); }
.mr-gt:focus-visible, .mr-plus:focus-visible { outline: 2px solid var(--mnr-focus, #2454BD); outline-offset: -2px; }
.mr-gb { padding: 4px 12px 10px 34px; display: grid; gap: 8px; }
.mr-gb[hidden] { display: none; }
.mr-gl, .mr-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mr-gl > li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px; align-items: start; }
.mr-gl > li > .ws-acts { grid-column: 2; }
.mr-money-list > li > span { min-width: 0; overflow-wrap: anywhere; }
.mr-money-list > li > span > .cell-sub { display: block; margin-block-start: 4px; }
.mr-gl > li:not(:has(svg:first-child)) { grid-template-columns: minmax(0, 1fr); }
.mr-log { list-style: decimal inside; color: var(--text-2, #4B6480); }
.mr-log b { color: var(--text-1, #0D2443); }
.mr-catpick { display: flex; flex-wrap: wrap; gap: 8px; }
.mr-catpick .radio-card { min-width: 128px; }
.mr-idline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }

/* in-place M2 · highlighted job, job row actions */
.mr-jobs > li { grid-template-columns: minmax(0, 1fr) auto; padding: 6px 8px; border-radius: 6px; }
.mr-jobs > li.is-hl { background: var(--row-selected, #DDEFF5); box-shadow: inset 3px 0 0 var(--accent, #2454BD); }
.mr-jobs > li:focus { outline: 2px solid var(--mnr-focus, #2454BD); outline-offset: 1px; }

/* correction-261 P1 · prior intake wording (secondary) and the shared inspection screen inside the lane pane */
.mr-prior { margin: 0; padding: 6px 10px; border-left: 3px solid var(--border, #D8E1E9); background: var(--surface-sunken, #F0F4F7); border-radius: 0 6px 6px 0; }
.mr-insp { min-width: 0; }
.mr-insp .rec-head { margin-top: 0; }

/* correction-261 P2 · Accounting handoff lands on one money line; Jobs+ shows what other sections own, read-only */
.mr-money-list > li.is-hl { padding: 6px 8px; border-radius: 6px; background: var(--row-selected, #DDEFF5); box-shadow: inset 3px 0 0 var(--accent, #2454BD); }
.mr-money-list > li:focus { outline: 2px solid var(--mnr-focus, #2454BD); outline-offset: 1px; }
.mr-kept { margin: 4px 0 0; padding: 8px 10px; border: 1px dashed var(--border, #D8E1E9); border-radius: 6px; background: var(--surface-sunken, #F0F4F7); }
.mr-kept .fld-hint { margin: 0 0 4px; }

/* correction-261 P3 · card header: actual asset (kind + code) and its stored source, above the fold */
.mr-sl { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: 12px; color: var(--text-2, #4B6480); }
.mr-ak { display: inline-flex; align-items: center; gap: 4px; color: var(--text-1, #0D2443); }
.mr-ak svg { width: 14px; height: 14px; align-self: center; }
.mr-src { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; min-width: 0; overflow-wrap: anywhere; }
.mr-srck b { color: var(--text-1, #0D2443); font-weight: 600; }
.mr-sum .ref-link { position: relative; z-index: 1; }
/* section expand chevron (out of the title grid; turns with aria-expanded) */
.mr-gt { position: relative; padding-left: 26px; }
.mr-chev { position: absolute; left: 10px; top: 50%; width: 7px; height: 7px; margin-top: -5px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .14s; }
.mr-gt[aria-expanded="true"] .mr-chev { transform: rotate(45deg); margin-top: -6px; }
/* compact payment / hold state sits on the same line metrics as the facts beside it */
.mr-ss .mr-money, .mr-ss .mr-hold { font-size: 12px; line-height: 1.5; }
.mr-ss .mr-money svg, .mr-ss .mr-hold svg { align-self: center; }
.mr-money-list > li { align-items: baseline; }
.mr-money-list > li > svg { align-self: start; margin-top: 2px; }
/* notifications never sit on the pane's Save / Cancel / actions: room below the last control, scroll keeps targets clear of it,
   and on the two-column layout the notice is placed over the list column instead of the right pane */
.mr-acc .ae-work { padding-bottom: 112px; scroll-padding-bottom: 112px; }
body:has(.mr-acc) .main { scroll-padding-bottom: 112px; }
@media (min-width: 900px) {
  body:has(.mr-acc) .toast-region { left: calc(var(--sidebar-w, 232px) + 16px); transform: none; width: min(340px, calc(100vw - var(--sidebar-w, 232px) - 32px)); }
  body:has(.app.is-collapsed .mr-acc) .toast-region { left: calc(var(--sidebar-w-collapsed, 64px) + 16px); }
}
@media (prefers-reduced-motion: reduce) { .mr-chev { transition: none; } }

@media (max-width: 899px) {
  .mr-jobs > li { grid-template-columns: minmax(0, 1fr); }
  .mr-gt { grid-template-columns: auto minmax(0, 1fr); }
  .mr-gs, .mr-gn { grid-column: 1 / -1; }
  .mr-gb { padding-left: 12px; }
  .mr-plus:not(.btn) { width: 44px; min-height: 44px; }
  .mr-facts { grid-template-columns: minmax(0, 1fr); }
  .mr-facts dt { padding-top: 6px; }
  .mr-cat { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .mr-cat, .mr-sum::before { transition: none; } }

.mr-plus { text-decoration: none; }
.mr-inline-job, .mr-add-choices { border-top: 1px solid var(--border); padding: 10px 12px; }

/* unified Phase A · Maintenance content inside the real Accident frame (classes from modules.css / accident-entry.css are used as
 * they are; these rules only place Maintenance-specific content inside them) */
.mr-acc .mr-top { display: grid; gap: 8px; }
.mr-acc .acc-list-head .field { display: grid; gap: 2px; }
.mr-acc .mr-count { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12.5px; color: var(--text-2); }
.mr-acc .mr-cnts { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 12.5px; color: var(--text-2); }
.mr-acc .mr-cnts b { color: var(--text); }
.mr-acc .ac-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.mr-acc .ac-meta .i, .mr-acc .ac-meta svg { width: 14px; height: 14px; }
.mr-acc .mr-asset-btn { padding: 0; border: 0; border-bottom: 2px solid var(--st-prog-line); background: none; font: inherit; color: var(--text); cursor: pointer; }
.mr-acc .mr-asset-btn:hover { color: var(--accent); border-bottom-color: var(--accent); }
.mr-acc .mr-mref { font-size: 12.5px; color: var(--text-2); }
.mr-acc .mr-mref b { color: var(--text); }
.mr-acc .mr-holds { width: 100%; }
.mr-acc .acc-task-btn .at-n svg { width: 15px; height: 15px; }
.mr-acc .acc-task-btn .at-s { display: grid; gap: 3px; }
.mr-acc .mr-box { display: grid; gap: 8px; min-width: 0; }
.mr-acc .mr-box + .mr-box { padding-top: 4px; border-top: 1px solid var(--border); }
.mr-acc .vtable tr.is-hl td { background: var(--row-selected, #DDEFF5); }
.mr-acc .vtable tr.is-hl td:first-child { box-shadow: inset 3px 0 0 var(--accent, #2454BD); }
.mr-acc .vtable tr:focus { outline: 2px solid var(--mnr-focus, #2454BD); outline-offset: -2px; }
.mr-acc .mr-inline-job { border-top: 0; padding: 0; }

/* unified Phase B · the selected Maintenance header (asset · official Ref · case · stage · holds) stays in view at EVERY width.
 * Accident keeps its own header static on short / narrow windows; that rule is untouched for Accident — only .mr-acc overrides it.
 * Same Accident header box, border, shadow and tokens; on the one-column layout it is compacted (the asset facts line is in the
 * selected list card already). Targets scrolled into view stop below it (scroll-margin = the measured header height). */
.acc-entry.mr-acc .mr-head { position: sticky; top: 0; z-index: 4; }
.acc-entry.mr-acc:is(.mr-repair, .mr-idesk) .mr-new-head { position: sticky; top: 0; z-index: 4; }
.acc-entry.mr-acc:is(.mr-repair, .mr-idesk) .ae-work:has(> .mr-new-head) :is(input, select, textarea) {
  scroll-margin-top: calc(var(--mr-head-h, 96px) + 8px);
}
/* unified final · tables keep the native Accident table (semantic header, one record per row) and scroll inside their own wrap on a
 * narrow pane, exactly like Accident's Statements table; the page itself never scrolls sideways. */
/* unified Phase B closeout · lane job drawer = the shared .drawer / .drawer-form; only a long locked value may wrap */
.mr-jobdrw .fixed-val { height: auto; min-height: var(--control-h, 36px); white-space: normal; overflow-wrap: anywhere; }
.acc-entry.mr-acc .acc-task, .acc-entry.mr-acc .mr-box, .acc-entry.mr-acc .vtable tr, .acc-entry.mr-acc .mr-inline-job { scroll-margin-top: calc(var(--mr-head-h, 200px) + 8px); }
@container acc-entry (max-width: 859px) {
  .acc-entry.mr-acc .mr-head { padding: 6px 10px 8px; gap: 4px; border-top-width: 3px; }
  .acc-entry.mr-acc .mr-head .aw-kick, .acc-entry.mr-acc .mr-head .mr-afacts { display: none; }
  .acc-entry.mr-acc .mr-head .aw-ref h2 { font-size: 18px; gap: 2px 8px; }
  .acc-entry.mr-acc .mr-head .ae-sub { gap: 0 10px; }
  .acc-entry.mr-acc .mr-head .aw-title { font-size: 13.5px; }
  .acc-entry.mr-acc .mr-head .ae-h2 { padding-top: 4px; gap: 2px 10px; }
  .acc-entry.mr-acc .mr-head .mr-holds { font-size: 12px; }
}
.mr-add-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.mr-add-choices[hidden] { display: none; }
/* corrections chooser · an open box chooser stays inside the box: its long option labels wrap within the real detail width (each option is
   still one button); the footer "+ Add …" button itself is outside this container and keeps its one-line style. */
.acc-entry.mr-acc .mr-add-choices { min-width: 0; max-width: 100%; box-sizing: border-box; }
.acc-entry.mr-acc .mr-add-choices > .btn { min-height: 44px; padding: 7px 10px; white-space: normal; overflow-wrap: anywhere; min-width: 0; max-width: 100%; height: auto; text-align: left; scroll-margin-top: 240px; scroll-margin-bottom: 24px; }
/* corrections final micro · desktop Parts table: the last column (state · next step · actions) stays in the box's viewport at the default
   scroll position; the other columns keep their order and scroll as before. Narrow layouts (≤ 899px) are not affected. */
@media (min-width: 900px) {
  .acc-entry.mr-acc .mr-box-parts table th:last-child, .acc-entry.mr-acc .mr-box-parts table td:last-child { position: sticky; right: 0; z-index: 1; background: var(--surface, #fff); box-shadow: -1px 0 0 var(--border, #D8E1E9); }
}
/* corrections pin 6 · footer "+ Add …" buttons: one line, content-sized, outlined, wrapping as whole units (never clipped). */
.acc-entry.mr-acc .task-foot { flex-wrap: wrap; }
.acc-entry.mr-acc .task-foot .mr-add { white-space: nowrap; flex: 0 0 auto; width: auto; max-width: 100%; scroll-margin-top: 240px; scroll-margin-bottom: 24px; }
/* corrections pin 5 · ONE visible Back in a lane-hosted inspection form / record: the lane header's "Back to <lane> · <asset>" (with its
   restore token) is the canonical return; the inspection screen's own type back button (same target) is not shown here. */
.mr-insp .rec-head > a.back-btn { display: none; }
/* corrections pin 4 · originals of the Invoice & payment box, outside the table scroller (opens the global file-view drawer). */
.mr-evid { margin: 10px 0 0; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; display: grid; gap: 6px; }
.mr-evid .fld-label { margin: 0; }
.mr-evid-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; overflow-wrap: anywhere; }
/* focus / scroll-into-view lands below the sticky record head of the pane (≈205px at 390, less when wider) — no layout change */
.mr-evid, .mr-evid .btn { scroll-margin-top: 240px; scroll-margin-bottom: 24px; }

/* entry 2026-11-19 · Stage A · the Accident status cards (two: Open · Closed), the Accident equipment badge (.ac-truck) and the
 * selected-master header hierarchy. Accident's own classes carry the look; these rules only fit two cards and name the units. */
.acc-entry.mr-acc .ae-status .acc-views.mr-views { grid-template-columns: repeat(2, minmax(0, 188px)); }
.acc-entry.mr-acc .acc-view .av-n { display: inline-flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.acc-entry.mr-acc .acc-view .mr-avu { font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--text-2); }
.acc-entry.mr-acc .mr-count > span b { color: var(--text); font-variant-numeric: tabular-nums; }
.acc-entry.mr-acc .ac-top .ac-truck { flex: none; }
.acc-entry.mr-acc .ac-top .ac-truck + * { margin-left: auto; }
.acc-entry.mr-acc .mr-rref { font-size: 12.5px; color: var(--text-2); }
.acc-entry.mr-acc .mr-rref b { font-size: 15px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.acc-entry.mr-acc .mr-rref.is-un b, .acc-entry.mr-acc .mr-hr.is-un b { font-weight: 600; color: var(--text-3); }
.acc-entry.mr-acc button.ac-truck.mr-asset-btn { padding: 0 9px 0 7px; border: 0; border-radius: 6px; background: var(--st-ink); color: #fff; font: inherit; font-size: 13.5px; cursor: pointer; }
.acc-entry.mr-acc button.ac-truck.mr-asset-btn:hover { background: var(--accent); color: #fff; }
.acc-entry.mr-acc button.ac-truck.mr-asset-btn:focus-visible { outline: 2px solid var(--mnr-focus, #2454BD); outline-offset: 2px; }
.acc-entry.mr-acc .mr-head .ae-h1 .aw-ref h2 .ac-truck { font-size: 15px; height: 30px; }
.acc-entry.mr-acc .mr-hr { font-size: 13px; font-weight: 600; color: var(--text-2); }
.acc-entry.mr-acc .mr-hr b { font-size: 22px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.acc-entry.mr-acc .mr-mfacts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; width: 100%; font-size: 12.5px; color: var(--text-2); }
.acc-entry.mr-acc .mr-mfacts .mr-hd b { color: var(--text); }
.acc-entry.mr-acc .mr-mfacts .mr-hsrc { display: inline-flex; flex-wrap: wrap; gap: 0 6px; min-width: 0; }
/* entry B · the master's six boxes (Cycle · Quote · Jobs · Parts · Visit & return · Invoice & payment · Source & history): each its own
 * bordered panel like Accident's Statements box; title with icon, then its facts as separate chips (no middot run-on) */
.acc-entry.mr-acc .mr-groups { display: grid; gap: 10px; }
.acc-entry.mr-acc .mr-box, .acc-entry.mr-acc .mr-box + .mr-box { padding: 10px 12px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.acc-entry.mr-acc .mr-box.is-quiet { background: var(--surface-sunken, #F6F8FA); }
.acc-entry.mr-acc .mr-bh { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.acc-entry.mr-acc .mr-bt { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.acc-entry.mr-acc .mr-bt .i, .acc-entry.mr-acc .mr-bt svg { width: 15px; height: 15px; color: var(--accent, #2454BD); }
.acc-entry.mr-acc .mr-bfs { display: inline-flex; flex-wrap: wrap; gap: 4px 6px; text-transform: none; letter-spacing: 0; }
.acc-entry.mr-acc .mr-bf { padding: 1px 8px; border-radius: 10px; background: var(--surface-sunken, #F0F4F7); font-size: 12px; font-weight: 500; color: var(--text-2); }
.acc-entry.mr-acc .mr-bf.mr-bnext { background: var(--row-selected, #DDEFF5); color: var(--accent, #2454BD); font-weight: 600; }
/* entry B · the chosen header wraps long hold / source text inside itself at any width (real links kept) */
.acc-entry.mr-acc .mr-head .aw-l2, .acc-entry.mr-acc .mr-head .mr-hsrc { min-width: 0; overflow-wrap: break-word; white-space: normal; }
.acc-entry.mr-acc .mr-head .mr-holds { display: flex; flex-wrap: wrap; gap: 2px 14px; min-width: 0; }
/* fleet wrap · each hold line (icon + label + reason + held-by link) is ONE wrapping text block, not a flex row: the shared Accident
 * line style made every child (icon, text, <b>, <a>) its own nowrap column, so narrow widths split it and the case link overflowed.
 * Icon inline with a hanging indent; reason and link wrap as normal text; the link keeps its href / route. */
.acc-entry.mr-acc .mr-head .mr-holds > span { display: block; flex: 1 1 100%; max-width: 100%; min-width: 0; padding-left: 20px; text-indent: -20px; overflow-wrap: anywhere; white-space: normal; }
.acc-entry.mr-acc .mr-head .mr-holds > span > .i, .acc-entry.mr-acc .mr-head .mr-holds > span > svg { display: inline-block; width: 14px; height: 14px; margin-right: 6px; text-indent: 0; vertical-align: -2px; }
.acc-entry.mr-acc .mr-head .mr-holds > span > b, .acc-entry.mr-acc .mr-head .mr-holds > span > a { display: inline; text-indent: 0; white-space: normal; }
/* count separator · each count unit is a list item kept whole; units are separated by a real space (text and accessibility) plus a gap,
 * and wrap between units, never inside one */
.acc-entry.mr-acc .mr-head .aw-title .mr-hu { display: inline-block; white-space: nowrap; margin-right: 8px; }
.acc-entry.mr-acc .mr-head .aw-title .mr-hu:last-child { margin-right: 0; }

/* entry Stage A · New: three Accident form boxes (acc-task + number circle), one footer (Cancel · Save) — no card around a lone Cancel */
.acc-entry.mr-acc .page-form.mr-new, .acc-entry.mr-acc .mr-new, .acc-entry.mr-acc .mr-truck-intake { display: grid; gap: 8px; min-width: 0; padding: 0; margin: 0 0 8px; border: 0; background: none; box-shadow: none; }
.acc-entry.mr-acc .mr-nbox { border-left-color: var(--st-prog-line, #b9cdf0); }
.acc-entry.mr-acc .mr-nh { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 4px 12px; padding: 9px 12px; }
.acc-entry.mr-acc .mr-nh .at-t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; }
.acc-entry.mr-acc .mr-nh .at-t b { font-size: 14px; }
.acc-entry.mr-acc .mr-nh .at-t small { font-size: 12.5px; font-weight: 400; color: var(--text-2); }
.acc-entry.mr-acc .mr-nb { padding-top: 10px; }
.acc-entry.mr-acc .mr-nb .mr-catpick { justify-content: flex-start; }
.acc-entry.mr-acc .mr-nsub { margin: 6px 0 0; }
.acc-entry.mr-acc .mr-nsub small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.acc-entry.mr-acc .mr-lock { display: inline-flex; align-items: center; gap: 6px; width: auto; }
@container acc-entry (max-width: 859px) {
  .acc-entry.mr-acc .ae-status .acc-views.mr-views { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acc-entry.mr-acc .mr-head .mr-hr b { font-size: 18px; }
}
/* maintenance-full 2026-11-19 · Repair top frame (Open repairs · In shop · Out of service · Closed archive) and the expanded
   asset row's master rows (Ref# / issuance pending · title · state). */
.acc-entry.mr-acc:is(.mr-repair, .mr-idesk) .ae-status .acc-views.mr-views { grid-template-columns: repeat(3, minmax(0, 188px)) minmax(0, 150px); }
.acc-entry.mr-acc .acc-view.mr-arch { border-style: dashed; }
.acc-entry.mr-acc .acc-view.v-na { cursor: default; opacity: .75; }
.acc-entry.mr-acc .acc-view .mr-avna { font-size: 12px; color: var(--text-2); }
.acc-entry.mr-acc .acc-view.v-oos.on, .acc-entry.mr-acc .acc-view.v-oos:hover { border-color: var(--danger, #c0392b); }
.acc-entry.mr-acc .mr-mrows { list-style: none; margin: 2px 0 8px 18px; padding: 0 0 0 10px; border-left: 2px solid var(--border, #d8dde3); display: grid; gap: 2px; }
.acc-entry.mr-acc .mr-mrow { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 5px 8px; border-radius: 6px; font-size: 12.5px; color: var(--text); text-decoration: none; }
.acc-entry.mr-acc .mr-mrow:hover, .acc-entry.mr-acc .mr-mrow.on { background: var(--surface-2, #f1f4f7); }
.acc-entry.mr-acc .mr-mrow.on { box-shadow: inset 3px 0 0 var(--accent, #2563eb); }
.acc-entry.mr-acc .mr-mref { font-size: 11.5px; white-space: nowrap; }
.acc-entry.mr-acc .mr-mttl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-entry.mr-acc .mr-mst { font-size: 11.5px; font-weight: 600; white-space: nowrap; color: var(--text-2); }
.acc-entry.mr-acc .mr-mst.st-shop, .acc-entry.mr-acc .mr-mst.st-process { color: var(--info, #1d4ed8); }
.acc-entry.mr-acc .mr-mst.st-cancel { text-decoration: line-through; }
@container acc-entry (max-width: 859px) {
  .acc-entry.mr-acc:is(.mr-repair, .mr-idesk) .ae-status .acc-views.mr-views { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* closeout · true dual sticky on the one-column layout (Maintenance only): with an asset / master selected the frame fits the window and
 * the detail scrolls in its OWN scroller (.ae-work), so the page title, category / status row and the selected master header stay in view
 * independently while the work scrolls (the wide layout already works this way). Without a selection the list scrolls with the page. */
@container acc-entry (max-width: 859px) {
  .acc-entry.mr-acc .ae-frame:has(> .acc-split.has-sel) { height: calc(100vh - var(--header-h, 52px) - var(--tabs-h, 32px) - 48px); min-height: 360px; display: flex; flex-direction: column; gap: 8px; }
  .acc-entry.mr-acc .ae-frame:has(> .acc-split.has-sel) > .page-head, .acc-entry.mr-acc .ae-frame:has(> .acc-split.has-sel) > .ae-status { flex: 0 0 auto; }
  .acc-entry.mr-acc .ae-frame > .acc-split.has-sel { flex: 1 1 auto; min-height: 0; grid-template-rows: minmax(0, 1fr); }
  .acc-entry.mr-acc .acc-split.has-sel > .ae-work { align-self: stretch; height: 100%; max-height: 100%; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 12px; }
  /* compact, still actionable: one scrollable row of the five types; the status cards stay one row */
  .acc-entry.mr-acc .ae-frame:has(> .acc-split.has-sel) .mr-cats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .acc-entry.mr-acc .ae-frame:has(> .acc-split.has-sel) .mr-cat { flex: 0 0 auto; }
  .acc-entry.mr-acc .ae-frame:has(> .acc-split.has-sel) .page-head .page-sub, .acc-entry.mr-acc .ae-frame:has(> .acc-split.has-sel) .page-head .ph-meta { display: none; }
  .acc-entry.mr-acc .acc-split.has-sel .mr-head .aw-int { display: none; }
  .acc-entry.mr-acc .acc-split.has-sel .mr-head .mr-holds { font-size: 12px; line-height: 1.35; }
}
@container acc-entry (max-width: 559px) {
  .acc-entry.mr-acc .mr-nfoot .btn { min-height: 44px; }
  /* entry B · touch targets in the lane at phone width */
  .acc-entry.mr-acc .task-foot .btn, .acc-entry.mr-acc .mr-box .ws-acts .btn, .acc-entry.mr-acc .mr-add-choices .btn { min-height: 44px; }
  /* entry B · Parts: one stacked row per part — item · qty, state · amount, the other facts, then the actions (same table, ARIA roles) */
  .acc-entry.mr-acc .mr-stack.table-wrap { overflow: visible; max-height: none; }
  .acc-entry.mr-acc .mr-stack .vtable { min-width: 0 !important; width: 100%; }
  .acc-entry.mr-acc .mr-stack .vtable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .acc-entry.mr-acc .mr-stack .vtable tbody tr:not(.empty-row) { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
  /* observed fix · the shared .vtable td keeps height: var(--row-h) and nowrap (vehicles.css); a stacked cell grows with its content,
   * exactly as the Maintenance R9 .mx-ilist precedent (height: auto; white-space: normal) */
  .acc-entry.mr-acc .mr-stack .vtable tbody tr:not(.empty-row) > td { display: block; height: auto; padding: 0; border: 0; min-width: 0; white-space: normal; overflow-wrap: anywhere; }
  .acc-entry.mr-acc .mr-stack .vtable tbody tr > td::before { display: block; font-size: 11.5px; font-weight: 600; color: var(--text-3); }
  .acc-entry.mr-acc .mr-parts-t tbody tr > td:nth-child(1) { grid-column: 1; grid-row: 1; font-size: 14px; }
  .acc-entry.mr-acc .mr-parts-t tbody tr > td:nth-child(2) { grid-column: 2; grid-row: 1; text-align: right; }
  .acc-entry.mr-acc .mr-parts-t tbody tr > td:nth-child(7) { grid-column: 1; grid-row: 2; }
  .acc-entry.mr-acc .mr-parts-t tbody tr > td:nth-child(8) { grid-column: 2; grid-row: 2; text-align: right; }
  /* primary group first: item · qty, state · amount, then the row's actions; supporting facts (from, job, by, receipt) follow */
  .acc-entry.mr-acc .mr-parts-t tbody tr > td:nth-child(9) { grid-column: 1 / -1; grid-row: 3; padding-top: 4px; }
  .acc-entry.mr-acc .mr-parts-t tbody tr > td:nth-child(3) { grid-column: 1 / -1; grid-row: 4; font-size: 12.5px; }
  .acc-entry.mr-acc .mr-parts-t tbody tr > td:nth-child(4) { grid-column: 1 / -1; grid-row: 5; font-size: 12.5px; }
  .acc-entry.mr-acc .mr-parts-t tbody tr > td:nth-child(5) { grid-column: 1 / -1; grid-row: 6; font-size: 12.5px; }
  .acc-entry.mr-acc .mr-parts-t tbody tr > td:nth-child(6) { grid-column: 1 / -1; grid-row: 7; font-size: 12.5px; }
  .acc-entry.mr-acc .mr-parts-t tbody tr > td:nth-child(2)::before { content: "Qty"; }
  .acc-entry.mr-acc .mr-parts-t tbody tr > td:nth-child(3)::before { content: "From"; }
  .acc-entry.mr-acc .mr-parts-t tbody tr > td:nth-child(4)::before { content: "For job"; }
  .acc-entry.mr-acc .mr-parts-t tbody tr > td:nth-child(5)::before { content: "By"; }
  .acc-entry.mr-acc .mr-parts-t tbody tr > td:nth-child(6)::before { content: "Receipt"; }
  .acc-entry.mr-acc .mr-parts-t tbody tr > td:nth-child(7)::before { content: "State"; }
  .acc-entry.mr-acc .mr-parts-t tbody tr > td:nth-child(8)::before { content: "Cost / estimate"; }
  .acc-entry.mr-acc .mr-parts-t tbody tr > td:nth-child(9) .ws-acts { display: flex; flex-wrap: wrap; gap: 6px; }
  .acc-entry.mr-acc .mr-parts-t tbody tr > td:nth-child(9) .ref-link { display: inline-flex; align-items: center; min-height: 44px; }
}
@container acc-entry (max-width: 420px) {
  .acc-entry.mr-acc .acc-view .mr-avu { font-size: 11px; }
}

/* ===================== Repair renovation 2026-11-20 · Repair lane only (:is(.mr-repair, .mr-idesk)) =====================
 * Left vehicle cards with per-master rows; pinned master header with separate availability pills; a job / visit-centred surface of
 * Accident-style left-bordered boxes (Statements box: title · facts · the buttons that change them). Existing tokens only. */
:is(.mr-repair, .mr-idesk) .rd-vcard { display: grid; gap: 6px; }
:is(.mr-repair, .mr-idesk) .rd-vcard.is-multi { padding: 0; cursor: default; }
:is(.mr-repair, .mr-idesk) .rd-vcard.is-multi > .rd-vhead { display: grid; gap: 6px; padding: 10px 12px 8px; color: inherit; text-decoration: none; border-radius: var(--r-panel, 8px) var(--r-panel, 8px) 0 0; }
:is(.mr-repair, .mr-idesk) .rd-vcard.is-multi > .rd-vhead:hover { background: var(--surface-sunken, #F0F4F7); }
:is(.mr-repair, .mr-idesk) .rd-vcount { font-size: 12.5px; color: var(--text-2); }
:is(.mr-repair, .mr-idesk) .rd-vcount b { color: var(--text); }
:is(.mr-repair, .mr-idesk) .rd-mrows { list-style: none; margin: 0; padding: 0 8px 8px; display: grid; gap: 6px; }
:is(.mr-repair, .mr-idesk) .rd-mrow, :is(.mr-repair, .mr-idesk) .rd-mcard, :is(.mr-repair, .mr-idesk) .rd-m1 { display: grid; gap: 3px; min-width: 0; color: var(--text); text-decoration: none; }
:is(.mr-repair, .mr-idesk) .rd-mrow, :is(.mr-repair, .mr-idesk) .rd-mcard { padding: 8px 10px; border: 1px solid var(--border); border-left: 3px solid var(--st-prog-line, #b9cdf0); border-radius: 6px; background: var(--surface); }
:is(.mr-repair, .mr-idesk) .rd-mrow:hover, :is(.mr-repair, .mr-idesk) .rd-mcard:hover { background: var(--surface-sunken, #F0F4F7); }
:is(.mr-repair, .mr-idesk) .rd-mrow.on { border-left-color: var(--accent, #2454BD); background: var(--row-selected, #DDEFF5); }
:is(.mr-repair, .mr-idesk) .rd-mrow:focus-visible, :is(.mr-repair, .mr-idesk) .rd-mcard:focus-visible, :is(.mr-repair, .mr-idesk) .rd-vhead:focus-visible { outline: 2px solid var(--mnr-focus, #2454BD); outline-offset: 1px; }
:is(.mr-repair, .mr-idesk) .rd-m1 { padding-top: 6px; border-top: 1px dashed var(--border); }
:is(.mr-repair, .mr-idesk) .rd-mtop { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 12px; color: var(--text-2); }
:is(.mr-repair, .mr-idesk) .rd-ref { font-weight: 700; color: var(--text); }
:is(.mr-repair, .mr-idesk) .rd-ref.is-un { font-weight: 600; color: var(--text-3); font-style: italic; }
:is(.mr-repair, .mr-idesk) .rd-src { font-size: 11.5px; padding: 0 6px; border-radius: 8px; background: var(--surface-sunken, #F0F4F7); }
:is(.mr-repair, .mr-idesk) .rd-mt { font-size: 13.5px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
:is(.mr-repair, .mr-idesk) .rd-mst { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: 12px; }
:is(.mr-repair, .mr-idesk) .rd-stage, :is(.mr-repair, .mr-idesk) .rd-hold, :is(.mr-repair, .mr-idesk) .rd-shop, :is(.mr-repair, .mr-idesk) .rd-next { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
:is(.mr-repair, .mr-idesk) .rd-stage .i, :is(.mr-repair, .mr-idesk) .rd-hold .i, :is(.mr-repair, .mr-idesk) .rd-shop .i, :is(.mr-repair, .mr-idesk) .rd-next .i, :is(.mr-repair, .mr-idesk) .rd-stage svg, :is(.mr-repair, .mr-idesk) .rd-hold svg, :is(.mr-repair, .mr-idesk) .rd-shop svg, :is(.mr-repair, .mr-idesk) .rd-next svg { width: 13px; height: 13px; }
:is(.mr-repair, .mr-idesk) .rd-stage { font-weight: 600; color: var(--text-2); }
:is(.mr-repair, .mr-idesk) .rd-stage.t-progress { color: var(--info, #225D91); }
:is(.mr-repair, .mr-idesk) .rd-stage.t-success { color: var(--success, #1E6B3A); }
:is(.mr-repair, .mr-idesk) .rd-stage.t-review { color: var(--review, #603B91); }
:is(.mr-repair, .mr-idesk) .rd-hold { color: var(--danger, #9B241C); font-weight: 600; }
:is(.mr-repair, .mr-idesk) .rd-shop { color: var(--info, #225D91); font-weight: 600; }
:is(.mr-repair, .mr-idesk) .rd-next { color: var(--accent, #2454BD); font-weight: 600; }
:is(.mr-repair, .mr-idesk) .rd-next.t-wait { color: var(--text-2); font-weight: 500; }

/* header: identity line, then availability as separate labelled facts (operating · shop · appointment · release) */
:is(.mr-repair, .mr-idesk) .rd-head .ae-acts .mr-add { white-space: nowrap; }
:is(.mr-repair, .mr-idesk) .rd-hid { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12.5px; color: var(--text-2); }
:is(.mr-repair, .mr-idesk) .rd-id { display: inline-block; }
:is(.mr-repair, .mr-idesk) .rd-id > summary { cursor: pointer; color: var(--accent, #2454BD); }
:is(.mr-repair, .mr-idesk) .rd-id[open] { display: flex; flex-wrap: wrap; gap: 2px 10px; }
:is(.mr-repair, .mr-idesk) .rd-avail { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; width: 100%; min-width: 0; }
:is(.mr-repair, .mr-idesk) .rd-av { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-width: 0; max-width: 100%; padding: 4px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); font-size: 12.5px; overflow-wrap: anywhere; }
:is(.mr-repair, .mr-idesk) .rd-avk { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: var(--text-3); }
:is(.mr-repair, .mr-idesk) .rd-avk .i, :is(.mr-repair, .mr-idesk) .rd-avk svg { width: 13px; height: 13px; }
:is(.mr-repair, .mr-idesk) .rd-av-shop.is-on { border-color: var(--info, #225D91); background: var(--info-bg, #EAF2FB); }
:is(.mr-repair, .mr-idesk) .rd-av-appt { border-style: dashed; }
:is(.mr-repair, .mr-idesk) .rd-av-hold.is-on { border-color: var(--danger, #9B241C); background: var(--danger-bg, #FBEDEC); }

/* surface: well-separated left-bordered boxes */
:is(.mr-repair, .mr-idesk) .rd-surface { display: grid; gap: 12px; min-width: 0; padding-top: 10px; }
:is(.mr-repair, .mr-idesk) .rd-box { display: grid; gap: 10px; min-width: 0; padding: 12px 14px 14px; border: 1px solid var(--border); border-left: 4px solid var(--st-prog-line, #b9cdf0); border-radius: 8px; background: var(--surface); }
:is(.mr-repair, .mr-idesk) .rd-box.rd-quiet { border-left-color: var(--border); background: var(--surface-sunken, #F6F8FA); }
:is(.mr-repair, .mr-idesk) .rd-now { border-left-color: var(--accent, #2454BD); }
:is(.mr-repair, .mr-idesk) .rd-intake { border-left-color: var(--review, #603B91); }
:is(.mr-repair, .mr-idesk) .rd-visit.is-in { border-left-color: var(--info, #225D91); }
:is(.mr-repair, .mr-idesk) .rd-closed { border-left-color: var(--text-3, #7C8FA0); background: var(--surface-sunken, #F6F8FA); }
:is(.mr-repair, .mr-idesk) .rd-release:not(.rd-quiet) { border-left-color: var(--danger, #9B241C); }
:is(.mr-repair, .mr-idesk) .rd-empty { grid-auto-flow: column; justify-content: start; align-items: start; }
:is(.mr-repair, .mr-idesk) .rd-empty p { margin: 0; }
:is(.mr-repair, .mr-idesk) .rd-bh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 0; padding-bottom: 8px; border-bottom: 1px solid var(--border); font-size: 15px; }
:is(.mr-repair, .mr-idesk) .rd-bt { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 700; }
:is(.mr-repair, .mr-idesk) .rd-bt .i, :is(.mr-repair, .mr-idesk) .rd-bt svg { width: 16px; height: 16px; color: var(--accent, #2454BD); }
:is(.mr-repair, .mr-idesk) .rd-bsub { font-size: 12.5px; font-weight: 400; color: var(--text-2); }
:is(.mr-repair, .mr-idesk) .rd-cnt { display: inline-block; min-width: 1.6em; padding: 0 6px; border-radius: 9px; background: var(--surface-sunken, #F0F4F7); font-size: 12px; font-weight: 700; text-align: center; color: var(--text-2); font-variant-numeric: tabular-nums; }
:is(.mr-repair, .mr-idesk) .rd-sh { margin: 2px 0 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--text-3); }
:is(.mr-repair, .mr-idesk) .rd-hint { margin: 0; font-size: 12.5px; color: var(--text-2); display: flex; gap: 6px; align-items: baseline; }
:is(.mr-repair, .mr-idesk) .rd-wait { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: baseline; font-size: 12.5px; color: var(--text-2); }
:is(.mr-repair, .mr-idesk) .rd-waits { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
:is(.mr-repair, .mr-idesk) .rd-waits > li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; align-items: start; font-size: 13px; }
:is(.mr-repair, .mr-idesk) .rd-who { display: block; font-size: 12px; color: var(--text-2); }
:is(.mr-repair, .mr-idesk) .rd-chip { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; justify-self: start; padding: 2px 10px; border-radius: 10px; background: var(--surface-sunken, #F0F4F7); font-size: 12.5px; }
:is(.mr-repair, .mr-idesk) .rd-chip small { color: var(--text-3); }
:is(.mr-repair, .mr-idesk) .rd-acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }
:is(.mr-repair, .mr-idesk) .rd-acts .btn { white-space: normal; height: auto; min-height: var(--control-h, 32px); text-align: left; max-width: 100%; }
:is(.mr-repair, .mr-idesk) .rd-acts.rd-foot { padding-top: 8px; border-top: 1px dashed var(--border); }

/* facts: label | value, one fact per row (never a run-on chain) */
:is(.mr-repair, .mr-idesk) .rd-facts { display: grid; grid-template-columns: minmax(110px, max-content) minmax(0, 1fr); gap: 4px 14px; margin: 0; }
:is(.mr-repair, .mr-idesk) .rd-f { display: contents; }
:is(.mr-repair, .mr-idesk) .rd-f dt { padding-top: 1px; font-size: 12px; font-weight: 600; color: var(--text-2); }
:is(.mr-repair, .mr-idesk) .rd-f dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
:is(.mr-repair, .mr-idesk) .rd-f dd .cell-sub { display: block; }
:is(.mr-repair, .mr-idesk) .rd-f-appt dt { color: var(--accent, #2454BD); }
:is(.mr-repair, .mr-idesk) .rd-f-arr dt { color: var(--info, #225D91); }
:is(.mr-repair, .mr-idesk) .rd-f-res dt { color: var(--success, #1E6B3A); }

/* visit steps: appointment · arrival · handback, each with its own action */
:is(.mr-repair, .mr-idesk) .rd-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
:is(.mr-repair, .mr-idesk) .rd-step { display: grid; grid-template-columns: 24px minmax(90px, 120px) minmax(0, 1fr) auto; gap: 4px 10px; align-items: start; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-sunken, #F6F8FA); }
:is(.mr-repair, .mr-idesk) .rd-step.is-done { background: var(--surface); }
:is(.mr-repair, .mr-idesk) .rd-sn { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--border-strong, #A7BACB); font-size: 12px; font-weight: 700; color: var(--text-2); }
:is(.mr-repair, .mr-idesk) .rd-step.is-done .rd-sn { background: var(--accent, #2454BD); border-color: var(--accent, #2454BD); color: #fff; }
:is(.mr-repair, .mr-idesk) .rd-sk { font-weight: 700; font-size: 13px; padding-top: 2px; }
:is(.mr-repair, .mr-idesk) .rd-sv { min-width: 0; overflow-wrap: anywhere; padding-top: 2px; }
:is(.mr-repair, .mr-idesk) .rd-sv .cell-sub { display: block; }
:is(.mr-repair, .mr-idesk) .rd-sb { justify-self: end; }
:is(.mr-repair, .mr-idesk) .rd-jobs { display: grid; gap: 10px; }

/* one job = one left-bordered box with its facts, its own actions, its parts and its documents */
:is(.mr-repair, .mr-idesk) .rd-job { display: grid; gap: 8px; min-width: 0; padding: 10px 12px 12px; border: 1px solid var(--border); border-left: 4px solid var(--accent, #2454BD); border-radius: 8px; background: var(--surface); scroll-margin-top: calc(var(--mr-head-h, 200px) + 8px); }
:is(.mr-repair, .mr-idesk) .rd-job.t-prog { border-left-color: var(--info, #225D91); }
:is(.mr-repair, .mr-idesk) .rd-job.t-done { border-left-color: var(--success, #1E6B3A); }
:is(.mr-repair, .mr-idesk) .rd-job.t-cancel { border-left-color: var(--border-strong, #A7BACB); background: var(--surface-sunken, #F6F8FA); }
:is(.mr-repair, .mr-idesk) .rd-job.is-hl { box-shadow: 0 0 0 2px var(--accent, #2454BD); }
:is(.mr-repair, .mr-idesk) .rd-jh { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
:is(.mr-repair, .mr-idesk) .rd-jt { margin: 0; font-size: 14.5px; font-weight: 700; overflow-wrap: anywhere; flex: 1 1 200px; min-width: 0; }
:is(.mr-repair, .mr-idesk) .rd-sub { display: grid; gap: 6px; padding-top: 8px; border-top: 1px dashed var(--border); min-width: 0; }
:is(.mr-repair, .mr-idesk) .rd-subh { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12.5px; font-weight: 700; color: var(--text-2); }
:is(.mr-repair, .mr-idesk) .rd-subh .i, :is(.mr-repair, .mr-idesk) .rd-subh svg { width: 14px; height: 14px; }
:is(.mr-repair, .mr-idesk) .rd-plist, :is(.mr-repair, .mr-idesk) .rd-dlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
:is(.mr-repair, .mr-idesk) .rd-part, :is(.mr-repair, .mr-idesk) .rd-doc, :is(.mr-repair, .mr-idesk) .rd-est, :is(.mr-repair, .mr-idesk) .rd-hold-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; }
:is(.mr-repair, .mr-idesk) .rd-pn, :is(.mr-repair, .mr-idesk) .rd-dn { font-size: 13px; overflow-wrap: anywhere; min-width: 0; }
:is(.mr-repair, .mr-idesk) .rd-pk { font-size: 11.5px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .02em; }
:is(.mr-repair, .mr-idesk) .rd-pf, :is(.mr-repair, .mr-idesk) .rd-pay, :is(.mr-repair, .mr-idesk) .rd-dl { flex: 1 1 100%; min-width: 0; font-size: 12.5px; color: var(--text-2); overflow-wrap: anywhere; }
:is(.mr-repair, .mr-idesk) .rd-pay { padding-left: 8px; border-left: 2px solid var(--border); }
:is(.mr-repair, .mr-idesk) .rd-dl { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
:is(.mr-repair, .mr-idesk) .rd-part > .rd-acts, :is(.mr-repair, .mr-idesk) .rd-doc > .rd-acts, :is(.mr-repair, .mr-idesk) .rd-hold-row > .rd-acts { flex: 1 1 100%; }

/* disclosed secondary evidence */
:is(.mr-repair, .mr-idesk) .rd-more { border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
:is(.mr-repair, .mr-idesk) .rd-more > summary { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 12px; cursor: pointer; font-weight: 600; }
:is(.mr-repair, .mr-idesk) .rd-more > summary:focus-visible { outline: 2px solid var(--mnr-focus, #2454BD); outline-offset: -2px; }
:is(.mr-repair, .mr-idesk) .rd-more-b { padding: 4px 12px 12px; display: grid; gap: 8px; min-width: 0; }
/* COMMON_FOLD · native <details> headings (Repair disc(), the lanes' "Other inspections and service"): the summary is already the one
 * whole-row control (pointer, touch, Enter / Space, expanded state); it gets the Accident look — hover --surface-sunken, a right-end
 * chevron pointing right when closed / down when open, and the 1px --border line over the body only while open. */
:is(.mr-repair, .mr-idesk) .rd-more > summary { list-style: none; border-radius: 7px; }
:is(.mr-repair, .mr-idesk) .rd-more > summary::-webkit-details-marker { display: none; }
:is(.mr-repair, .mr-idesk) .rd-more > summary::after { content: ''; flex: 0 0 auto; margin-left: auto; width: 7px; height: 7px; border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: rotate(-45deg); transition: transform .15s; }
:is(.mr-repair, .mr-idesk) .rd-more[open] > summary::after { transform: rotate(45deg); border-color: var(--text); }
:is(.mr-repair, .mr-idesk) .rd-more > summary:hover { background: var(--surface-sunken, #F0F4F7); }
:is(.mr-repair, .mr-idesk) .rd-more[open] > summary { border-bottom: 1px solid var(--border); border-radius: 7px 7px 0 0; }
@media (prefers-reduced-motion: reduce) { :is(.mr-repair, .mr-idesk) .rd-more > summary::after { transition: none; } }
:is(.mr-repair, .mr-idesk) .rd-job .rd-more, :is(.mr-repair, .mr-idesk) .rd-visit .rd-more { background: transparent; }
:is(.mr-repair, .mr-idesk) .rd-list { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13px; overflow-wrap: anywhere; }
:is(.mr-repair, .mr-idesk) .rd-when { font-size: 12px; color: var(--text-3); white-space: nowrap; }
:is(.mr-repair, .mr-idesk) .rd-mcards { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

@container acc-entry (max-width: 859px) {
  :is(.mr-repair, .mr-idesk) .rd-head .rd-avail { gap: 4px; }
  :is(.mr-repair, .mr-idesk) .rd-av { padding: 3px 8px; font-size: 12px; }
}
@container acc-entry (max-width: 559px) {
  :is(.mr-repair, .mr-idesk) .rd-facts { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  :is(.mr-repair, .mr-idesk) .rd-f dt { padding-top: 6px; }
  :is(.mr-repair, .mr-idesk) .rd-step { grid-template-columns: 24px minmax(0, 1fr); }
  :is(.mr-repair, .mr-idesk) .rd-step > .rd-sv, :is(.mr-repair, .mr-idesk) .rd-step > .rd-sb { grid-column: 1 / -1; justify-self: stretch; }
  :is(.mr-repair, .mr-idesk) .rd-box { padding: 10px; }
  :is(.mr-repair, .mr-idesk) .rd-job { padding: 10px; }
  :is(.mr-repair, .mr-idesk) .rd-acts .btn, :is(.mr-repair, .mr-idesk) .rd-sb .btn { min-height: 44px; }
  :is(.mr-repair, .mr-idesk) .rd-sb .btn { width: 100%; }
  :is(.mr-repair, .mr-idesk) .rd-head .ae-acts { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) { :is(.mr-repair, .mr-idesk) .rd-mrow, :is(.mr-repair, .mr-idesk) .rd-mcard { transition: none; } }

/* ===================== Repair follow-up 2026-11-20 · owner's cosmetic adjustments only (Repair lane, existing tokens) =====================
 * 1 · summary cards: label and count never overlap — the card grows and wraps the label instead of clipping at any width.
 * 2 · VIN beside the truck badge (header) and on the vehicle card. 3 · per-truck master collapse control. 4 · left list / right detail
 * collapse with a visible restore control in place. 5 · step buttons wrap as whole buttons. */
.acc-entry.mr-acc:is(.mr-repair, .mr-idesk) .ae-status .acc-view { height: auto; min-height: 42px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; row-gap: 2px; }
.acc-entry.mr-acc:is(.mr-repair, .mr-idesk) .ae-status .acc-view .av-top { flex: 1 1 auto; min-width: 0; white-space: normal; overflow-wrap: anywhere; line-height: 1.2; }
.acc-entry.mr-acc:is(.mr-repair, .mr-idesk) .ae-status .acc-view .av-n { flex: 0 0 auto; margin-left: auto; }
.acc-entry.mr-acc:is(.mr-repair, .mr-idesk) .ae-status .acc-view .mr-avna { flex: 1 1 100%; }
:is(.mr-repair, .mr-idesk) .rd-vin { font-size: 12px; color: var(--text-2); overflow-wrap: anywhere; }
:is(.mr-repair, .mr-idesk) .rd-head .rd-vin { font-size: 13px; color: var(--text); }
:is(.mr-repair, .mr-idesk) .rd-mtog { display: inline-flex; align-items: center; gap: 6px; justify-self: start; margin: 0 12px 8px; padding: 2px 10px; min-height: 30px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--accent, #2454BD); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
:is(.mr-repair, .mr-idesk) .rd-mtog:hover { background: var(--surface-sunken, #F0F4F7); }
:is(.mr-repair, .mr-idesk) .rd-mtog:focus-visible, :is(.mr-repair, .mr-idesk) .rd-colbtn:focus-visible { outline: 2px solid var(--mnr-focus, #2454BD); outline-offset: 1px; }
:is(.mr-repair, .mr-idesk) .rd-chev { display: inline-block; width: 6px; height: 6px; margin-top: -3px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
:is(.mr-repair, .mr-idesk) .rd-mtog[aria-expanded="false"] .rd-chev { transform: rotate(-45deg); margin-top: 0; }
:is(.mr-repair, .mr-idesk) .rd-colbtn { white-space: nowrap; }
:is(.mr-repair, .mr-idesk) .mr-count .rd-col-hide { margin-right: 6px; }
:is(.mr-repair, .mr-idesk) .rd-col { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; padding: 10px; border: 1px dashed var(--border); border-radius: 8px; background: var(--surface-sunken, #F6F8FA); }
:is(.mr-repair, .mr-idesk) .rd-sb { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
@container acc-entry (min-width: 860px) {
  .acc-entry.mr-acc:is(.mr-repair, .mr-idesk) .acc-split.rd-list-off { grid-template-columns: max-content minmax(0, 1fr); }
  .acc-entry.mr-acc:is(.mr-repair, .mr-idesk) .acc-split.rd-work-off { grid-template-columns: minmax(0, 1fr) max-content; }
  .acc-entry.mr-acc:is(.mr-repair, .mr-idesk) .acc-split.rd-list-off.rd-work-off { grid-template-columns: max-content max-content; justify-content: start; }
  .acc-entry.mr-acc:is(.mr-repair, .mr-idesk) .acc-list.rd-col-l { max-width: 200px; overflow: visible; }
}
@container acc-entry (max-width: 559px) {
  :is(.mr-repair, .mr-idesk) .rd-mtog, :is(.mr-repair, .mr-idesk) .rd-colbtn { min-height: 44px; }
}
/* Repair fold · each right-hand master (header control) and each box / job / job sub-box (compact chevron at the end of its heading)
 * folds on its own. View state only; the sticky header (Ref + truck badge) never folds. Existing tokens, same chevron as the list. */
:is(.mr-repair, .mr-idesk) .rd-fb { display: grid; gap: 10px; min-width: 0; }
:is(.mr-repair, .mr-idesk) .rd-surface > .rd-fb { gap: 12px; }
:is(.mr-repair, .mr-idesk) .rd-job > .rd-fb { gap: 8px; }
:is(.mr-repair, .mr-idesk) .rd-sub > .rd-fb { gap: 6px; }
:is(.mr-repair, .mr-idesk) .rd-fb[hidden] { display: none; }
/* COMMON_FOLD · every foldable Repair / 30 Day / PM heading row copies Accident Form 1 (modules.css .acc-task-btn · .at-chev · .acc-task-b):
 * whole-row hover (box whitespace included) on --surface-sunken; an always-visible chevron at the right end, pointing right when closed
 * and down when open (rotate 90deg, the .at-chev rule); a 1px --border line between heading and body only while expanded.
 * The chevron button stays the one keyboard control (focus, Enter / Space, aria-expanded / aria-controls); no control is nested. */
:is(.mr-repair, .mr-idesk) .rd-ftog { display: inline-grid; place-items: center; flex: 0 0 auto; align-self: center; margin-left: auto; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--text-2); cursor: pointer; }
:is(.mr-repair, .mr-idesk) .rd-ftog .at-chev { justify-self: center; font-size: 16px; width: 16px; height: 16px; color: var(--text-2); transition: transform .15s; }
:is(.mr-repair, .mr-idesk) .rd-ftog[aria-expanded="true"] .at-chev { transform: rotate(90deg); color: var(--text); }
:is(.mr-repair, .mr-idesk) .rd-ftog:focus-visible { outline: 2px solid var(--mnr-focus, #2454BD); outline-offset: 1px; }
:is(.mr-repair, .mr-idesk) .rd-ftog.rd-mfold { margin-left: 0; }
:is(.mr-repair, .mr-idesk) [data-fold-row] { cursor: pointer; border-radius: 6px; }
:is(.mr-repair, .mr-idesk) [data-fold-row]:hover { background: var(--surface-sunken, #F0F4F7); }
:is(.mr-repair, .mr-idesk) [data-fold-row] :is(a[href], button, input, select, textarea, label) { cursor: revert; }
/* box heading (h3.rd-bh): the hit / hover area runs to the box edges like the Accident task header; expanded → separator, folded → just the row */
:is(.mr-repair, .mr-idesk) .rd-box > .rd-bh[data-fold-row] { align-items: center; margin: -12px -14px 0; padding: 10px 14px; border-radius: 7px 7px 0 0; }
:is(.mr-repair, .mr-idesk) .rd-box > .rd-bh[data-fold-row]:has(> .rd-ftog[aria-expanded="false"]) { margin-bottom: -14px; border-bottom: 0; border-radius: 7px; }
/* job heading (header.rd-jh) inside its job box */
:is(.mr-repair, .mr-idesk) .rd-job > .rd-jh[data-fold-row] { margin: -10px -12px 0; padding: 8px 12px; border-radius: 7px 7px 0 0; }
:is(.mr-repair, .mr-idesk) .rd-job > .rd-jh[data-fold-row]:has(> .rd-ftog[aria-expanded="true"]) { border-bottom: 1px solid var(--border); }
:is(.mr-repair, .mr-idesk) .rd-job > .rd-jh[data-fold-row]:has(> .rd-ftog[aria-expanded="false"]) { margin-bottom: -12px; border-radius: 7px; }
/* job sub-section heading (h5.rd-subh · parts / documents) */
:is(.mr-repair, .mr-idesk) .rd-sub > .rd-subh[data-fold-row] { margin: 0 -6px; padding: 4px 6px; }
:is(.mr-repair, .mr-idesk) .rd-sub > .rd-subh[data-fold-row]:has(> .rd-ftog[aria-expanded="true"]) { padding-bottom: 6px; border-bottom: 1px solid var(--border); border-radius: 6px 6px 0 0; }
/* selected master / item header row in the sticky header */
:is(.mr-repair, .mr-idesk) .rd-head > .ae-h1[data-fold-row] { padding: 2px 4px; margin: -2px -4px; }
:is(.mr-repair, .mr-idesk) .rd-subh { flex-wrap: wrap; }
:is(.mr-repair, .mr-idesk) .rd-mfold-note { padding: 8px 12px; border: 1px dashed var(--border); border-radius: 8px; background: var(--surface-sunken, #F6F8FA); }
@container acc-entry (max-width: 559px) {
  :is(.mr-repair, .mr-idesk) .rd-ftog { width: 44px; height: 44px; }
  /* narrow boxes / jobs use 10px padding (see above): the heading still runs to their edges */
  :is(.mr-repair, .mr-idesk) .rd-box > .rd-bh[data-fold-row] { margin: -10px -10px 0; padding: 6px 10px; }
  :is(.mr-repair, .mr-idesk) .rd-box > .rd-bh[data-fold-row]:has(> .rd-ftog[aria-expanded="false"]) { margin-bottom: -10px; }
  :is(.mr-repair, .mr-idesk) .rd-job > .rd-jh[data-fold-row] { margin: -10px -10px 0; padding: 6px 10px; }
  :is(.mr-repair, .mr-idesk) .rd-job > .rd-jh[data-fold-row]:has(> .rd-ftog[aria-expanded="false"]) { margin-bottom: -10px; }
}
@media (prefers-reduced-motion: reduce) { :is(.mr-repair, .mr-idesk) .rd-ftog .at-chev { transition: none; } }
/* COMMON_FOLD · master-card task boxes (group() · .mr-box > h4.mr-bh): the same full-row heading as rd-box — edge to edge, 1px separator
 * only while open, no separator and no bottom gap while folded. */
.acc-entry.mr-acc:is(.mr-repair, .mr-idesk) .mr-box > .mr-bh[data-fold-row] { margin: -10px -12px 0; padding: 8px 12px; border-radius: 7px 7px 0 0; }
.acc-entry.mr-acc:is(.mr-repair, .mr-idesk) .mr-box > .mr-bh[data-fold-row]:has(> .rd-ftog[aria-expanded="false"]) { margin-bottom: -12px; border-bottom: 0; border-radius: 7px; }
.acc-entry.mr-acc:is(.mr-repair, .mr-idesk) .mr-box > .rd-fb { display: grid; gap: 8px; min-width: 0; }
.acc-entry.mr-acc:is(.mr-repair, .mr-idesk) .mr-box > .rd-fb[hidden] { display: none; }
/* Runtime fix (Terra 1280×720 · …/90-day/<truck>/result/pm) · layout, not per button:
 * 1) only the identity strip (.rd-strip = Back · type / ref · status · truck badge + one title line · actions) is sticky; the truck
 *    details and availability are the separate full-row fold .rd-hmore that scrolls with the content;
 * 2) the scroller reserves the MEASURED strip and form-footer heights (--mr-head-h / --mr-foot-h, set by syncHead) as scroll padding,
 *    and every form control keeps that margin, so focus / scroll-into-view never lands under either;
 * 3) on short windows the strip and the sticky footer compact further and the footer can never take more than a third of the scroller. */
.mr-idesk .rd-strip .ae-h1 { flex-wrap: nowrap; align-items: center; min-width: 0; }
.mr-idesk .rd-strip .aw-ref { min-width: 0; }
.mr-idesk .rd-strip .ae-sub { display: flex; align-items: center; gap: 0 8px; min-width: 0; white-space: nowrap; overflow: hidden; }
.mr-idesk .rd-strip .ae-sub > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mr-idesk .rd-strip .ae-sub > .ac-truck { flex: 0 0 auto; overflow: visible; height: 24px; font-size: 13px; }
.mr-idesk .rd-hmore { margin: 8px 0 0; }
.mr-idesk .rd-hmore > .rd-fb.ae-h2 { display: grid; gap: 6px; padding-top: 8px; }
.mr-idesk .rd-hmore > .rd-fb[hidden] { display: none; }
.mr-idesk .rd-hmore .rd-vin { font-size: 13px; color: var(--text); } /* same as .rd-head .rd-vin, which no longer contains it here */
.acc-entry.mr-acc.mr-idesk .ae-work { scroll-padding-top: calc(var(--mr-head-h, 64px) + 8px); }
.acc-entry.mr-acc.mr-idesk .ae-work:has(.insp-form .form-foot) { padding-bottom: 16px; scroll-padding-bottom: calc(var(--mr-foot-h, 72px) + 12px); }
/* R36 · item 6 · Repair details: the record header stays sticky, so a control that is scrolled to or focused (the Job's "Edit job" link,
 * its fields and buttons) stops below the measured header instead of underneath it. On a short pane the bottom offset gives way, or the
 * two offsets would leave no room at all. Offsets only: nothing moves on the page. */
.acc-entry.mr-acc.mr-repair .ae-work:has(.mr-head) { scroll-padding-bottom: max(0px, min(112px, calc(100% - var(--mr-head-h, 200px) - 60px))); }
.acc-entry.mr-acc.mr-repair .ae-work :is(a, button, input, select, textarea, summary, label):not(.mr-head *) { scroll-margin-top: calc(var(--mr-head-h, 200px) + 8px); }
/* R40 · short windows · Repair details: the full header (ref row + truck / availability rows) took most of the pane, so a saved Job's
 * controls were covered at most scroll positions. Only the ref / title / actions row stays sticky; the truck rows scroll with the record. */
@media (max-height: 700px) {
  .acc-entry.mr-acc.mr-repair .mr-ws > .mr-head { display: contents; }
  .acc-entry.mr-acc.mr-repair .mr-ws > .mr-head > .ae-h1 { position: sticky; top: 0; z-index: 4; background: var(--panel, #fff); padding: 6px 12px; border-bottom: 1px solid var(--border); }
  .acc-entry.mr-acc.mr-repair .mr-ws > .mr-head > .ae-h2 { padding: 8px 12px; }
  .acc-entry.mr-acc.mr-repair .mr-ws > .mr-head .aw-ref h2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
}
.mr-idesk .ae-work .insp-form :is(input, select, textarea, button, a.btn, label, .btn, fieldset) { scroll-margin-top: calc(var(--mr-head-h, 64px) + 8px); scroll-margin-bottom: calc(var(--mr-foot-h, 72px) + 12px); }
.mr-idesk .ae-work .insp-form .form-foot { max-height: 33vh; overflow-y: auto; }
@media (max-height: 820px) {
  .acc-entry.mr-acc.mr-idesk .rd-strip { padding: 6px 12px; gap: 0; }
  .acc-entry.mr-acc.mr-idesk .rd-strip .aw-ref h2 { font-size: 16px; }
  .acc-entry.mr-acc.mr-idesk .rd-strip .aw-int { display: none; }
  .mr-idesk .ae-work .insp-form .form-foot { padding: 8px 10px; margin-top: 10px; gap: 6px; }
  .mr-idesk .ae-work .insp-form .form-foot > :is(.ff-state, .cell-sub) { font-size: 12px; }
}
@container acc-entry (max-width: 559px) {
  .mr-idesk .rd-strip .ae-h1 { flex-wrap: wrap; }
  .mr-idesk .rd-strip .ae-sub { white-space: normal; flex-wrap: wrap; }
  .mr-idesk .rd-hmore .rd-avail { gap: 4px; }
}
/* inspection follow-up 1 · the strip's existing Back link (30 Day / PM detail, entry and closed). The shared accident rules hide it on a
 * wide split (.acc-split .acc-back → none) and, on a narrow one, place it on row 1 across both columns where .ae-acts (col 2 / row 1)
 * covers it. Inside the inspection desk strip only: Back · ref · actions are one compact row, each in its own column (nothing overlaps);
 * a very narrow strip keeps Back + actions on row 1 and the ref on row 2. The href (return origin) is unchanged; the strip height stays
 * measured by syncHead (--mr-head-h), so scroll padding and the form footer keep their reach. */
.acc-entry.mr-acc.mr-idesk .rd-strip .ae-h1 { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 10px; }
.acc-entry.mr-acc.mr-idesk .rd-strip .ae-h1 > .acc-back { display: inline-flex; grid-column: 1; grid-row: 1; justify-self: start; align-self: center; position: relative; z-index: 1; white-space: nowrap; flex: 0 0 auto; }
.acc-entry.mr-acc.mr-idesk .rd-strip .ae-h1 > .aw-ref { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; grid-column: 2; grid-row: 1; min-width: 0; }
.acc-entry.mr-acc.mr-idesk .rd-strip .ae-h1 > .ae-acts { grid-column: 3; grid-row: 1; }
@container acc-entry (max-width: 559px) {
  .acc-entry.mr-acc.mr-idesk .rd-strip .ae-h1 { grid-template-columns: auto minmax(0, 1fr); }
  .acc-entry.mr-acc.mr-idesk .rd-strip .ae-h1 > .ae-acts { grid-column: 2; grid-row: 1; }
  .acc-entry.mr-acc.mr-idesk .rd-strip .ae-h1 > .aw-ref { grid-column: 1 / -1; grid-row: 2; }
}
/* Inspection work view (selected record / due): the boxes stack with the Repair desk rhythm; the state line sits above them */
.mr-idesk .rd-work.mr-iwork { display: grid; gap: 10px; min-width: 0; }
.mr-idesk .rd-wnext { margin: 0; }
.mr-idesk .rd-work .rd-facts .cell-sub { display: block; }
.mr-idesk .rd-work .rd-waits { margin: 0; }
@container acc-entry (max-width: 559px) {
  .acc-entry.mr-acc:is(.mr-repair, .mr-idesk) .mr-box > .mr-bh[data-fold-row] { margin: -10px -10px 0; padding: 6px 10px; }
  /* the shared inspection form in the right pane: one column of fields, no horizontal scroll, 44px controls */
  .mr-idesk .ae-work .insp-form { min-width: 0; max-width: 100%; }
  .mr-idesk .ae-work .insp-form :is(.form-grid, .fgrid, .grid-2, .grid-3) { grid-template-columns: minmax(0, 1fr); } /* grid class names not verified against kit.js */
  .mr-idesk .ae-work :is(input, select, textarea) { max-width: 100%; min-width: 0; }
}
/* Acceptance fix · both panes hidden: the two restore controls sit in ONE compact row at the top of the split (no full-height 200px rail,
 * no stretched empty column) at every width; on a phone the list's restore stays visible next to Show detail. */
.acc-entry.mr-acc:is(.mr-repair, .mr-idesk) .acc-split.rd-list-off.rd-work-off { display: flex; flex-wrap: wrap; align-items: flex-start; align-content: flex-start; gap: 8px; flex: 0 0 auto; height: auto; min-height: 0; grid-template-rows: none; }
.acc-entry.mr-acc:is(.mr-repair, .mr-idesk) .acc-split.rd-list-off.rd-work-off > .acc-list.rd-col-l,
.acc-entry.mr-acc:is(.mr-repair, .mr-idesk) .acc-split.rd-list-off.rd-work-off > .ae-work { display: flex; flex: 0 1 auto; align-self: flex-start; height: auto; max-height: none; max-width: none; min-height: 0; overflow: visible; padding: 0; scroll-padding-bottom: 0; position: static; }
.acc-entry.mr-acc:is(.mr-repair, .mr-idesk) .acc-split.rd-list-off.rd-work-off .rd-col { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 6px 10px; }
/* Acceptance fix · equipment tabs with a selection: every tab stays reachable. Phone width wraps them (nothing off-screen); a medium
 * one-column width keeps one row with a VISIBLE thin scrollbar (the tabs are buttons, so keyboard focus scrolls them into view). */
@container acc-entry (max-width: 859px) {
  .acc-entry.mr-acc .ae-frame:has(> .acc-split.has-sel) .mr-cats { scrollbar-width: thin; scroll-padding-inline: 8px; padding-bottom: 4px; }
  /* one column without a selection: the detail column is not shown (list / detail navigation), so neither is its restore control */
  .acc-entry.mr-acc:is(.mr-repair, .mr-idesk) .acc-split.rd-list-off.rd-work-off:not(.has-sel) > .ae-work { display: none; }
}
/* ===================== Inspection renovation 2026-11-20 · 30 Day Inspection / PM Service (.mr-idesk) =====================
   Same Repair desk classes; only the few facts Repair does not have: inspection status (apart from availability), a record / due
   heading (not a master Ref), due tones, and the Accident left boundary on each record box by its state. Existing tokens only. */
.mr-idesk .rd-stage.t-danger { color: var(--danger, #A3262A); }
.mr-idesk .rd-stage.t-info { color: var(--info, #225D91); }
.mr-idesk .rd-istat { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
/* Left card · inspection records and due facts sit apart from the master rows (they are not master references). */
.mr-idesk .rd-dues { display: grid; gap: 4px; border-top: 1px dashed var(--border); padding-top: 6px; }
.mr-idesk .rd-dues > .rd-dlab { display: inline-flex; align-items: center; gap: 4px; padding: 0 12px; font-size: 11.5px; color: var(--muted, #5b6472); }
.mr-idesk .rd-dues > .rd-istat { padding: 0 12px; }
.mr-idesk .mr-hr.is-doc { font-weight: 600; }
.mr-idesk .acc-tasks > .acc-task.st-todo { border-left-color: var(--st-prog-line, #b9cdf0); }
.mr-idesk .acc-tasks > .acc-task.st-progress { border-left-color: var(--info, #225D91); }
.mr-idesk .acc-tasks > .acc-task.st-done { border-left-color: var(--border-strong, #9AA9B6); }
.mr-idesk .acc-tasks > .acc-task.is-sel { border-left-color: var(--accent, #2563eb); }
.mr-idesk .acc-tasks { display: grid; gap: 10px; min-width: 0; }
@container acc-entry (max-width: 559px) {
  .acc-entry.mr-acc .ae-frame:has(> .acc-split.has-sel) .mr-cats { flex-wrap: wrap; overflow-x: visible; }
  .acc-entry.mr-acc .ae-frame:has(> .acc-split.has-sel) .mr-cat { flex: 0 1 auto; padding: 4px 10px; }
}

/* ---------- R34 · Repair / 30 Day / PM Service list: contiguous aligned rows and a resizable split (Accident is not affected) ---------- */
.acc-entry.mr-acc:is(.mr-repair, .mr-idesk) .ml-div { display: none; }
@container acc-entry (min-width: 860px) {
  .acc-entry.mr-acc:is(.mr-repair, .mr-idesk) .acc-split.has-div { grid-template-columns: clamp(340px, var(--ml-w, 46%), calc(100% - 432px)) 12px minmax(0, 1fr); gap: 0; }
  .acc-entry.mr-acc:is(.mr-repair, .mr-idesk) .acc-split.has-div > .ml-div { display: block; position: relative; cursor: col-resize; touch-action: none; border-radius: 6px; }
  .ml-div > span { position: absolute; inset: 0 5px; border-radius: 2px; background: var(--border); }
  .ml-div:hover > span, .ml-div.is-drag > span { background: var(--accent); }
  .ml-div:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
}
.mr-acc .acc-cards.ml-list { display: block; padding: 0; background: var(--surface); container: ml-list / inline-size; scrollbar-gutter: stable; }
.ml-list .ml-rows { list-style: none; margin: 0; padding: 0; }
.ml-list .ml-item.acc-card { display: block; padding: 0; gap: 0; border: 0; border-bottom: 1px solid var(--table-row-border); border-radius: 0; box-shadow: none; background: none; }
.ml-list .ml-item.acc-card.on { background: var(--row-selected); box-shadow: inset 4px 0 0 var(--accent); }
.ml-list .ml-row { position: relative; display: grid; grid-template-columns: var(--ml-cols) 36px; align-items: center; min-height: 40px; font-size: var(--fs-sm); }
.ml-list .rd-vhead { grid-column: 1 / -2; display: grid; grid-template-columns: subgrid; align-items: center; min-width: 0; min-height: 40px; padding: 4px 0 4px 10px; box-sizing: border-box; color: inherit; text-decoration: none; }
.acc-entry.mr-acc:is(.mr-repair, .mr-idesk) .ml-list .rd-vcard.is-multi > .ml-row > .rd-vhead { border-radius: 0; }
.ml-list .ml-item:not(.on) .ml-row:hover { background: var(--row-hover); }
.ml-list .rd-vhead:focus-visible, .ml-list .rd-mrow:focus-visible { outline: 2px solid var(--focus) !important; outline-offset: -2px !important; }
.ml-list .ml-c { min-width: 0; padding-right: 10px; }
.ml-list .c-truck .ac-truck { max-width: 100%; }
.ml-list .ml-head { position: sticky; top: 0; z-index: 2; min-height: 30px; padding-left: 10px; background: var(--table-head-bg); border-bottom: 1px solid var(--table-head-border); color: var(--text-2); font-size: var(--fs-xs); font-weight: 600; }
.ml-list .ml-head .ml-c { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-list .ml-head.ml-row { padding-left: 0; } .ml-list .ml-head .c-truck { padding-left: 10px; }
.ml-list :is(.ml-t, .ml-s) { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-list .ml-t { font-weight: 600; } .ml-list .ml-s { font-size: var(--fs-xs); color: var(--text-2); }
.ml-list .ml-c :is(.rd-stage, .rd-shop) { max-width: 100%; min-width: 0; } .ml-list .ml-c :is(.rd-stage, .rd-shop) > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-list .ml-c .rd-stage.t-danger { color: var(--danger-text); } .ml-list .ml-c .rd-stage.t-urgent { color: var(--warning-text); }
.ml-list .ml-c :is(.rd-stage, .rd-shop) .i { flex: 0 0 auto; }
.ml-list .ml-why { display: flex; align-items: center; gap: 4px; min-width: 0; margin-top: 2px; font-size: var(--fs-xs); color: var(--danger-text); }
.ml-list .ml-why > span { min-width: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; line-height: 1.25; } .ml-list .ml-why > :is(b, .i) { flex: 0 0 auto; white-space: nowrap; }
.ml-list .ml-row:not(.ml-head) .c-state { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; } .ml-list .ml-why { flex-wrap: wrap; } .ml-list .ml-why > span { flex: 1 1 60px; }
.ml-list .c-state .rd-stage > span { white-space: normal !important; } .ml-list .ml-c.c-state { padding-right: 2px; } .ml-list .c-due, .ml-list .c-last { padding-right: 4px; }
.ml-list .c-n { text-align: right; font-variant-numeric: tabular-nums; }
.ml-list .c-due, .ml-list .c-last { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ml-list .c-due { font-weight: 600; } .ml-list .ml-none, .ml-list .c-due .muted { font-weight: 400; color: var(--text-3); }
.ml-list .c-sched { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-list .ml-more { display: inline-block; margin-right: 0; font-size: var(--fs-xs); color: var(--text-2); }
.acc-entry.mr-acc:is(.mr-repair, .mr-idesk) .ml-list .ml-tog { justify-content: center; width: 32px; min-height: 32px; height: 32px; margin: 0; padding: 0; border-color: transparent; background: none; color: var(--text-2); }
.acc-entry.mr-acc:is(.mr-repair, .mr-idesk) .ml-list .ml-tog:hover { background: var(--surface-sunken); border-color: var(--border); }
.ml-list .ml-tog .at-chev { transition: transform var(--motion, .12s); } .ml-list .ml-tog[aria-expanded="true"] .at-chev { transform: rotate(90deg); }
.ml-list .c-tog { padding-right: 4px; }
.ml-list .ml-sub { border-top: 1px solid var(--table-row-border); background: var(--surface); margin-left: 4px; }
.ml-list .ml-sub[hidden] { display: none; }
.ml-list .ml-restr { list-style: none; margin: 0; padding: 6px 12px 6px 16px; display: grid; gap: 2px; font-size: var(--fs-xs); color: var(--danger-text); border-bottom: 1px solid var(--table-row-border); }
.ml-list .ml-restr li { display: flex; gap: 6px; overflow-wrap: anywhere; }
.acc-entry.mr-acc:is(.mr-repair, .mr-idesk) .ml-list .rd-mrows { gap: 0; padding: 0; }
.acc-entry.mr-acc:is(.mr-repair, .mr-idesk) .ml-list .rd-mrow { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 6px 12px 6px 16px; border: 0; border-left: 3px solid transparent; border-bottom: 1px solid var(--table-row-border); border-radius: 0; background: none; }
.acc-entry.mr-acc:is(.mr-repair, .mr-idesk) .ml-list .rd-mrow:hover { background: var(--row-hover); }
.acc-entry.mr-acc:is(.mr-repair, .mr-idesk) .ml-list .rd-mrow.on { border-left-color: var(--accent); background: var(--row-selected); }
.ml-list .rd-mrow .rd-mt { font-size: var(--fs-sm); }
.ml-list .rd-dues { margin: 0; padding: 0; border: 0; background: none; } .ml-list .rd-dues .rd-dlab { display: flex; gap: 6px; padding: 6px 12px 4px 16px; font-size: var(--fs-xs); color: var(--text-2); }
.ml-outside { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 6px 12px; border-bottom: 1px solid var(--border); font-size: var(--fs-xs); color: var(--warning-text); } .ml-outside > span { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; }
/* Repair columns by the list's own width */
.ml-rep { --ml-cols: 106px minmax(0, 1fr) 66px; } .ml-rep :is(.c-work, .c-shop) { display: none; }
@container ml-list (min-width: 480px) { .ml-rep .ml-row { --ml-cols: 106px minmax(150px, 1.1fr) minmax(130px, 1fr) 66px; } .ml-rep .c-work { display: block; } }
@container ml-list (min-width: 680px) { .ml-rep .ml-row { --ml-cols: 106px minmax(130px, 1fr) minmax(150px, 1.2fr) minmax(130px, .9fr) 66px; } .ml-rep .c-shop { display: block; } .ml-list .rd-mrow { grid-template-columns: minmax(130px, auto) minmax(0, 1fr) minmax(0, auto) !important; align-items: center; column-gap: 12px !important; } }
/* 30 Day / PM Service columns by the list's own width; below 500px the type and the operating status are the second line */
.ml-insp { --ml-cols: 106px minmax(82px, auto) minmax(0, 1fr); } .ml-insp :is(.c-last, .c-sched) { display: none; }
@container ml-list (max-width: 499px) {
  .ml-insp .ml-row { --ml-cols: 136px 92px minmax(0, 1fr); }
  .ml-insp .ml-head .c-op { display: none; } .ml-insp .ml-head .c-type { display: none; }
  .ml-insp .rd-vhead { grid-template-areas: "truck due state" "op type state"; row-gap: 3px; }
  .ml-insp .rd-vhead > .c-truck { grid-area: truck; } .ml-insp .rd-vhead > .c-due { grid-area: due; } .ml-insp .rd-vhead > .c-state { grid-area: state; } .ml-insp .rd-vhead > .c-op { grid-area: op; } .ml-insp .rd-vhead > .c-type { grid-area: type; font-size: var(--fs-xs); color: var(--text-2); }
}
@container ml-list (min-width: 500px) { .ml-insp .ml-row { --ml-cols: 98px 128px 58px 88px minmax(0, 1fr); } }
@container ml-list (min-width: 640px) { .ml-insp .ml-row { --ml-cols: 98px 128px 58px 88px minmax(0, 1fr) 92px; } .ml-insp .c-last { display: block; } }
@container ml-list (min-width: 830px) { .ml-insp .ml-row { --ml-cols: 98px 128px 58px 88px minmax(0, 1fr) 92px 170px; } }
@container ml-list (min-width: 720px) and (max-width: 829px) { .ml-insp .ml-row { --ml-cols: 98px 128px 58px 88px minmax(0, 1fr) 88px 104px; } }
@container ml-list (min-width: 720px) { .ml-insp .c-sched { display: block; } }
@media (pointer: coarse) { .ml-list .rd-vhead, .ml-list .ml-row:not(.ml-head) { min-height: 44px; } .acc-entry.mr-acc:is(.mr-repair, .mr-idesk) .ml-list .ml-tog { min-height: 44px; } }
@container acc-entry (max-width: 859px) { .mr-acc .acc-cards.ml-list { scrollbar-gutter: auto; } .ml-list .ml-head { position: static; } }
/* the full VIN and Unit stay in the fixed right header of the inspection lanes */
.mr-idesk .rd-strip .rd-sid { display: flex; flex-wrap: wrap; gap: 2px 14px; min-width: 0; margin-top: 2px; font-size: var(--fs-xs); color: var(--text); }
.mr-idesk .rd-strip .rd-sid:empty { display: none; }
@container acc-entry (max-width: 859px) { .acc-entry.mr-acc.mr-idesk .rd-strip .ae-acts > .btn { max-width: 100%; white-space: normal; text-align: left; height: auto; } }
