#qa-auth{position:fixed;inset:0;z-index:9999;background:#f6f8f4;padding:32px;overflow:auto}
#qa-auth>*{max-width:560px;margin:16px auto}
#qa-auth label{display:block;margin:16px 0}
#qa-auth input{display:block;width:100%;padding:12px;box-sizing:border-box}

/* Keep the notice readable when the workspace loses width to the sidebar. */
.demo-strip.qa-toolbar{flex-wrap:wrap;gap:10px 16px;padding-top:12px;padding-bottom:12px}
.qa-toolbar-notice{flex:1 1 18rem;min-width:0;margin:0;line-height:1.7}
.qa-toolbar-actions{display:flex;flex-wrap:wrap;gap:8px;max-width:100%;min-width:0}
.qa-toolbar-actions .btn{min-width:0;max-width:100%;white-space:normal;line-height:1.5}

@media(max-width:610px){
  .qa-toolbar-notice,.qa-toolbar-actions{flex-basis:100%}
  .qa-toolbar-actions .btn{flex:1 1 100%}
}
.next-form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:16px}
.next-form-grid .field{min-width:0}.next-form-grid input,.next-form-grid select,.next-form-grid textarea{width:100%;max-width:100%;box-sizing:border-box}
.next-board{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:16px}
.next-stage{min-width:0}.next-stage h2{font-size:17px}.next-job{display:flex;flex-direction:column;gap:8px;width:100%;text-align:left;padding:14px;margin:8px 0;border:1px solid #d9e1e7;border-radius:10px;background:white;cursor:pointer;overflow-wrap:anywhere}
.next-counts{display:flex;flex-wrap:wrap;gap:24px}.next-counts strong{font-size:24px}
.next-evidence{max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}
#next-editor{min-width:0}#next-editor .btn-row{margin-top:16px}
@media(max-width:600px){.next-board{grid-template-columns:1fr}.next-form-grid{grid-template-columns:1fr}.next-counts{gap:14px}.next-counts p{margin:0}}
.next-calendar-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px;margin-top:20px}
.next-calendar-event{border-top:1px solid var(--line,#dbe3df);padding-block:12px;overflow-wrap:anywhere}
.next-calendar-event p{white-space:pre-wrap}
.sidebar{overflow-y:auto;overscroll-behavior:contain}
.sidebar>*{flex-shrink:0}
#qa-reauth{padding:24px}
#qa-reauth label{display:block;margin-block:16px}
#qa-reauth input{display:block;width:100%;box-sizing:border-box;padding:12px}
.next-prep{min-width:0;grid-column:1/-1;border:1px solid #d9e1e7;border-radius:10px;padding:14px}
.next-prep label{display:flex;gap:10px;align-items:center;margin:10px 0}
.next-form-grid .next-prep input{width:auto;flex:none}
.next-thread-history{grid-column:1/-1;min-width:0}.next-message-body{white-space:pre-wrap;overflow-wrap:anywhere}#next-progress-qr img{max-width:100%;height:auto}#next-public-url{width:100%;min-width:0}
#dialog label[for^="backup-"]{display:block;margin:16px 0 6px;font-weight:600}
#dialog input[id^="backup-"]{display:block;width:100%;max-width:100%;box-sizing:border-box;min-height:44px;padding:10px;border:1px solid var(--line,#dbe3df);border-radius:8px;font:inherit}
#dialog input[type="file"][id^="backup-"]{overflow:hidden}
#backup-status,#backup-plan{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:610px){.page-intro:has([data-next-action]){flex-wrap:wrap}.page-intro .desktop-action:has([data-next-action]){display:block;flex-basis:100%}}
.next-exterior-editor{margin-block:24px}.next-exterior{position:relative;aspect-ratio:1100/820;width:100%;max-width:900px;margin:16px auto;background:white;border:1px solid var(--line,#dbe3df)}
.next-exterior>img,.next-exterior>svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.next-exterior-editor input,.next-exterior-editor select{min-height:44px}

/* Match the source logo background to the navigation without altering the asset. */
.sidebar .brand-logo,.wordmark-mobile img{filter:grayscale(1) contrast(4);mix-blend-mode:lighten}
.sidebar .brand-logo{height:110px;object-fit:cover}
.wordmark-mobile img{object-fit:cover}
@media(min-width:821px) and (max-height:780px){.sidebar .brand-logo{height:76px}}
/* A short viewport (including an on-screen keyboard) must not cover page actions. */
@media(max-height:600px){.fab-cluster{position:static;margin:0 16px 16px}}
.wordmark-mobile{background:var(--pine)}
.sample-flag,.page-intro .eyebrow,#dialog .dialog-head .eyebrow{display:none}
.role-choice{color:var(--ink);font:inherit;min-width:0;cursor:pointer}
.role-choice strong,.role-choice small{min-width:0;overflow-wrap:normal;word-break:normal}
.role-choice strong{font-size:16px;white-space:nowrap}
.role-choice small{font-size:12px}
/* WebKit date inputs have an intrinsic width: constrain the actual input too. */
#dialog .field,#dialog label,#dialog input,#dialog select,#dialog textarea{min-width:0;max-width:100%;box-sizing:border-box}
#dialog .field input,#dialog .field select,#dialog .field textarea{font-size:16px}
#dialog input[type=date],#content input[type=date]{display:block;appearance:none;-webkit-appearance:none;min-inline-size:0;width:100%;max-width:100%;text-align:left}
input::-webkit-date-and-time-value{min-width:0;text-align:left}
#dialog{max-height:calc(100dvh - 32px);overscroll-behavior:contain}
.next-stage h2{margin:0;font-size:16px;display:flex;align-items:center;gap:8px}
.next-stage h2 small{font-size:12px;border-radius:12px;padding:2px 8px;background:var(--soft)}
.next-stage:empty{min-height:0}
.next-board{gap:12px;margin-top:16px;align-items:start}
.next-stage.surface-pad{padding:14px;min-height:52px}
.next-stage .next-job:last-child{margin-bottom:0}
.next-week{max-width:1000px;margin:0 auto}
.week-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.week-heading h1{font-size:26px;letter-spacing:0;margin:0}
.week-heading .btn{padding:8px 12px;font-size:12px}
.week-range{font-size:15px;margin:8px 0 12px}
.week-navigation{display:grid;grid-template-columns:1fr auto 1fr;gap:8px;margin:12px 0}
.week-navigation .btn{min-width:0;padding:8px 12px;min-height:44px;border-radius:8px}
.week-date-picker{font-size:13px;margin-bottom:10px}
.week-date-picker .field{max-width:260px;margin:8px 0}
.calendar-status{font-size:12px;line-height:1.6;margin:10px 0}
.calendar-warning{color:#855c00;background:#fff6dd;padding:10px 12px;border-radius:8px;font-size:13px}
.week-strip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:0;border-bottom:1px solid var(--line);padding:0 0 10px}
.week-strip button{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0;min-height:108px;border:0;border-radius:8px;padding:9px 0;background:#fff;color:var(--ink);font:inherit;cursor:pointer}
.week-strip button[aria-pressed=true]{background:var(--soft);box-shadow:inset 0 -3px var(--pine)}
.week-strip strong{font-size:15px;white-space:nowrap}.week-strip small{font-size:11px;white-space:nowrap}
.week-strip .sunday{color:#e32648}.week-strip .saturday{color:#3175c5}
.week-symbol{display:inline-grid;place-items:center;flex:none;width:23px;height:23px;font-size:23px;line-height:1;font-weight:800;vertical-align:middle}
.week-symbol.safe{border:3px solid #00b96b;border-radius:50%;width:20px;height:20px;margin:2px;color:transparent}
.week-symbol.warning{background:#ffb400;color:#fff;clip-path:polygon(50% 0,100% 100%,0 100%);font-size:16px;padding-top:5px}
.week-symbol.risk{color:#ef1738;font-size:29px}.week-symbol.unknown{color:#777787;font-size:20px}
.week-legend{display:flex;justify-content:flex-end;gap:6px;align-items:center;font-size:11px;margin:8px 0 14px;color:var(--muted)}
.week-legend .week-symbol{transform:scale(.7);margin:0 -3px}
.week-detail{border-bottom:1px solid var(--line);padding-bottom:12px}
.week-detail h2{font-size:20px;margin:0}
.week-verdict{display:flex;align-items:center;gap:8px;padding:11px 12px;margin:12px 0;border-radius:8px;font-size:14px;background:#f3f3f8}
.week-verdict.safe{background:#eaf8f0;color:#157b4d}.week-verdict.warning{background:#fff6dd;color:#855c00}.week-verdict.risk{background:#fff0f2;color:#c42340}
.week-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));text-align:center;margin:14px 0 6px}
.week-summary>div{padding:6px 3px;border-right:1px solid var(--line)}.week-summary>div:last-child{border:0}
.week-summary span{font-size:12px;color:var(--muted)}.week-summary strong{display:block;font-size:27px;margin-top:6px}.week-summary strong small{font-size:12px;font-weight:400;margin-left:3px}
.week-summary span{display:flex;align-items:center;justify-content:center;min-height:34px;line-height:1.4;text-wrap:balance}
.calendar-count-summary{font-size:12px;color:var(--muted);margin:8px 0 0}
.calendar-section{margin-top:20px}.calendar-section h3{font-size:17px;margin:0 0 10px}
.calendar-section>p,.calendar-empty{font-size:13px;color:var(--muted);line-height:1.7}
.next-calendar-event,.calendar-case{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:12px 0;border-top:1px solid var(--line)}
.next-calendar-event>div,.calendar-case>div{flex:1;min-width:0}.next-calendar-event p{margin:6px 0;font-size:13px;line-height:1.6}
.next-calendar-event .btn,.calendar-case .btn{flex:none;font-size:12px;padding:8px 10px;white-space:normal;max-width:180px}
.calendar-original{white-space:pre-wrap;overflow-wrap:anywhere}.calendar-case span{display:block;font-size:13px;margin-top:6px}.week-definition{border-top:1px solid var(--line);margin-top:20px;font-size:13px}
@media(max-width:610px){
 .demo-strip.qa-toolbar{padding:8px 14px;gap:7px}.qa-toolbar-notice{font-size:11px;line-height:1.5}
 .qa-toolbar-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;width:100%;gap:6px}
 .qa-toolbar-actions .btn{font-size:12px;min-height:40px;padding:7px 10px;border-radius:8px;line-height:1.4}
 .qa-toolbar-actions .btn:first-child{grid-column:1/-1}
 .page-intro{margin-bottom:18px}.page-intro h1{font-size:26px;letter-spacing:0}.page-intro .eyebrow{font-size:10px}
 .surface.surface-pad{border-radius:12px;padding:14px}.surface h2{font-size:18px}
 .next-stage.surface-pad{padding:12px;min-height:48px}.next-stage h2{font-size:16px}.next-board{gap:8px}
 .surface .work-row:has(>[data-next-action]){flex-wrap:wrap;gap:8px;padding:14px 0;min-height:0}
 .surface .work-row:has(>[data-next-action])>div{flex-basis:100%;min-width:0}.surface .work-row:has(>[data-next-action]) p{margin:6px 0}
 .btn-row:has(#next-assignee){gap:6px}.btn-row:has(#next-assignee)>.btn{padding:8px 12px;font-size:12px;min-height:40px}
 .btn-row:has(#next-assignee)>.field{flex:1 1 100%;margin:4px 0}.btn-row:has(#next-assignee) select{width:100%;font-size:16px}
 .week-heading h1{font-size:23px}.week-range{font-size:14px}.week-strip strong{font-size:13px}.week-strip small{font-size:10px}
 .week-summary span{font-size:10px}.week-summary strong{font-size:22px}.week-summary strong:has(:only-child){font-size:22px}
 .next-calendar-event{flex-wrap:wrap}.next-calendar-event>div{flex-basis:100%}.next-calendar-event>.btn{max-width:none}
 .next-week h3{font-size:16px}
}

/* Card-based workspace: clear status, short paths, and a persistent mobile destination. */
:root{--ink:#202333;--pine:#181950;--pine2:#252764;--moss:#303760;--muted:#596174;--paper:#f3f4f7;--line:#dfe2e9;--soft:#eef0f8;--mint:#e6e8f5}
body{color:var(--ink);background:var(--paper);font-size:15px}
.topbar{background:#fff;border-bottom:1px solid var(--line)}
.sidebar{box-shadow:none}.sidebar-top{padding-bottom:18px}
.sidebar .brand-logo,.wordmark-mobile img{filter:none;mix-blend-mode:normal}
.wordmark-mobile{background:#121451;padding:0 7px}
.sidebar .brand-logo{mix-blend-mode:lighten}
.page-intro h1{font-size:28px;letter-spacing:0;line-height:1.4}.page-intro{margin-bottom:20px}
.page-lead,.qa-toolbar-notice,.role-choice small,.step-choice small,.form-step,.qr-reception-gateway p,.form-description,.small-note,.form-foot-note,.foot-disclaimer,.sheet-row span{color:var(--muted)}
.page-lead{font-size:14px;line-height:1.7}.field>span,.field>label{color:#454f63}
.crumb{color:var(--muted)}
.surface{border:1px solid var(--line);border-radius:16px;box-shadow:0 3px 12px #25284605}
.surface-pad{padding:22px}.surface h2{font-size:18px;letter-spacing:0;margin:0 0 16px}
.btn{border-radius:10px;font-weight:700;min-height:44px;box-shadow:none}
.btn-primary{background:var(--pine);color:#fff;border-color:var(--pine)}
.btn-outline{background:#fff;border-color:#cfd4df;color:#303957}.btn-light{background:#eef0f7;color:#343e59}
.pill{font-weight:700}.top-avatar{background:#eef0f8;border-color:#d7dbea;color:var(--pine)}
.mobile-menu{background:#eef0f8;color:var(--pine)}
.home-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 20px}
.home-overview>button{display:flex;flex-direction:column;align-items:flex-start;gap:12px;min-width:0;padding:20px;background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:14px;text-align:left;font:inherit}
.home-overview>button>span:first-child{font-size:13px;font-weight:700;color:var(--muted)}
.home-overview strong{font-size:36px;line-height:1;font-weight:750;letter-spacing:-.03em;color:var(--pine)}
.home-overview strong small{font-size:13px;font-weight:400;margin-left:6px;letter-spacing:0}
.home-stat-link{font-size:12px;color:#384469}.home-stat-link>span{margin-left:6px}
.home-shortcuts{margin-bottom:20px}.home-shortcut-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.home-shortcut-grid .btn{min-height:64px;text-align:center;padding:12px 8px;white-space:normal;line-height:1.5;overflow-wrap:anywhere}
.home-empty{color:var(--muted);font-size:14px;line-height:1.8;padding:12px 0}
.local-reception-row{display:flex;flex-wrap:wrap;gap:8px;padding:18px 0}
.local-reception-row .work-row-detail{flex:1 1 100%;margin-bottom:4px;min-width:0}
.local-reception-row strong{font-size:15px}.local-reception-row small{color:var(--muted);margin-top:6px}
.next-counts{gap:8px}.next-counts p{background:#f3f4f9;border-radius:8px;padding:10px 12px;color:#454f63;font-size:13px}.next-counts strong{color:var(--pine)}
.next-bottom-nav{display:none}.week-detail,.calendar-section{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px}
.week-strip{background:#fff;border:1px solid var(--line);border-radius:12px;padding:4px}
.week-strip button[aria-pressed=true]{background:#eef0f9;box-shadow:inset 0 -3px var(--pine)}
.week-symbol.unknown{color:#596174}.week-legend{color:var(--muted)}
.demo-strip.qa-toolbar{background:#fff;border-bottom:1px solid var(--line)}
.qa-toolbar-notice{font-size:12px}.qa-toolbar-actions .btn{min-height:36px;padding:6px 12px;font-size:12px}
.role-choice.active{background:#eef0fa;border-color:var(--pine)}
.choice small{color:var(--muted)!important;font-size:12px!important}
.nav-link.active{background:#eef0fb;color:var(--pine)}
.choice.active,.section-tabs button.active{background:#eef0f9;color:var(--pine);border-color:#777da4}
.qr-reception-gateway{background:#f2f3fa;border-color:#dfe2ee}
.step-circle.on{background:var(--pine);color:#fff}
.field input,.field select,.field textarea{background:#fff;border-color:#cfd4df}
h1,h2,h3,.work-row-detail strong,.sheet-row strong{color:var(--ink)}
.page-intro h1,.surface h2,.choice{color:var(--ink)}
@media(max-width:820px){
 .topbar{position:relative}
 .workspace{height:100dvh;overflow:hidden;display:flex;flex-direction:column}.content{padding:22px 16px 24px;overflow:auto;min-height:0;flex:1}.topbar{padding:0 16px;height:64px;flex:none}.qa-toolbar{flex:none}
 .next-bottom-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:relative;flex:none;z-index:54;padding:7px 8px calc(7px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line);box-shadow:0 -3px 14px #25284608}
 .next-bottom-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:52px;padding:4px;border:0;border-radius:8px;background:#fff;color:#596174;font:inherit;font-size:11px;font-weight:700}
 .next-bottom-nav svg{width:23px;height:23px;flex:none}.next-bottom-nav button[aria-current]{color:var(--pine);background:#eef0f9}
 .fab-cluster{display:none}.fab{border-radius:10px;font-size:22px;box-shadow:none}.fab span{display:inline}
 .toast{bottom:88px;max-width:calc(100% - 32px)}
 .page-intro{display:block;margin-bottom:18px}.page-intro .desktop-action{display:block;margin-top:14px}.page-intro .desktop-action .btn-primary{width:100%}
 .page-intro h1{font-size:24px}.page-lead{font-size:13px;margin-top:6px}
 .home-overview{gap:8px;margin-bottom:16px}.home-overview>button{padding:14px 10px;gap:12px;border-radius:12px}
 .home-overview>button>span:first-child{font-size:11px}.home-overview strong{font-size:30px}.home-overview strong small{font-size:11px;margin-left:4px}
 .home-stat-link{font-size:11px}.home-shortcut-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.home-shortcut-grid .btn{font-size:13px;min-height:58px}
 .home-shortcuts{margin-bottom:16px}.surface.surface-pad{padding:16px;border-radius:14px}
 .demo-strip.qa-toolbar{padding:8px 16px;gap:7px}.qa-toolbar-notice{flex:1 1 100%;font-size:11px;line-height:1.5}
 .qa-toolbar-actions{display:flex;flex-wrap:nowrap;gap:6px;width:100%}.qa-toolbar-actions .btn{flex:1 1 auto;font-size:11px;min-height:34px;padding:6px 8px;white-space:nowrap}
 .week-heading h1{font-size:23px}.week-detail,.calendar-section{padding:14px}.week-summary span{font-size:11px}
}
@media(max-height:600px){.workspace{height:auto;overflow:visible}.content{overflow:visible;padding-bottom:24px}.next-bottom-nav{position:static}.fab-cluster{margin-bottom:16px}.toast{bottom:16px}}
.next-stage.surface-pad{padding:12px}.next-stage h2{margin:0}
/* A header signature, rather than a miniature square image with illegible lettering. */
@media(max-width:820px){
 .top-left{gap:12px;min-width:0}.top-right{gap:8px;flex:none}
 .wordmark-mobile{position:absolute;left:50%;transform:translateX(-50%);display:flex;gap:7px;min-width:0;height:44px;padding:0;background:transparent;border-radius:0;letter-spacing:0;color:var(--pine)}
 .header-brand-mark{display:block;width:62px;height:29px;flex:none}
 .wordmark-mobile .header-brand-mark img{display:block;width:100%;height:100%;object-fit:contain;filter:none;mix-blend-mode:normal}
 .header-brand-name{display:flex;flex-direction:column;gap:3px;white-space:nowrap}
 .header-brand-name strong{font-size:17px;line-height:1.1;letter-spacing:.08em}.header-brand-name small{font-size:7px;font-weight:700;line-height:1.2;letter-spacing:.1em}
}
@media(max-width:360px){
 .header-brand-mark{width:46px;height:25px}
 .header-brand-name strong{font-size:14px}
 .header-brand-name small{font-size:6px}
 .wordmark-mobile{gap:5px}
}

/* Independent review O1-O4: identify the record and preserve visible save feedback. */
.next-progress-context{padding:12px;background:#f3f4fa;border:1px solid #d7dbea;border-radius:12px;overflow-wrap:anywhere}
.next-progress-sticky{position:sticky;top:0;z-index:2;margin-bottom:16px}
.next-progress-identity{display:flex;flex-direction:column;gap:4px;line-height:1.5}
.next-progress-identity small{font-size:11px;color:#596174}
.next-progress-context p{margin:8px 0 0;font-weight:700}
.next-progress-confirm{margin:12px 0}
[data-progress-status][data-state="dirty"]{color:#805000}
[data-progress-status][data-state="unknown"]{color:#9b2921}
[data-progress-view].is-selected{background:#181950;color:white;border-color:#181950;box-shadow:inset 0 0 0 1px currentColor}
.next-filter-empty{padding:12px 16px;border:1px solid #d7dbea;border-radius:12px;margin:12px 0}
.next-progress-details details{margin:12px 0}
.next-progress-details summary{min-height:44px;padding:10px 12px;box-sizing:border-box;cursor:pointer;line-height:24px;border:1px solid #d7dbea;border-radius:8px}

/* R1: full identity stays in normal flow; the sticky summary has a hard height bound. */
.next-progress-full-target{margin-bottom:12px}
.next-progress-sticky{padding:8px;max-height:112px;box-sizing:border-box;overflow:hidden}
.next-progress-compact{display:flex;flex-direction:column;gap:2px;min-width:0}
.next-progress-compact strong{font-size:14px;line-height:20px}
.next-progress-compact span{font-size:12px;line-height:18px}
.next-progress-compact strong,.next-progress-compact span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.next-progress-sticky [data-progress-status]{margin-top:6px;font-size:12px;line-height:18px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#dialog.next-has-progress{scroll-padding-top:128px}

/* O5: compare vehicles in a table; compact rows retain details on narrow screens. */
.next-fleet-types,.next-fleet-filters{margin:12px 0;flex-wrap:wrap;gap:6px}
.next-fleet-types .btn,.next-fleet-filters .btn{min-height:44px;padding:8px;font-size:13px;line-height:1.4}
.next-fleet-types .is-selected,.next-fleet-filters .is-selected{background:#19194b;color:#fff;border-color:#19194b}
.next-fleet-list{margin:16px 0;overflow:visible}
.next-fleet-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:13px}
.next-fleet-table caption{text-align:left;padding:14px 16px;font-weight:700}
.next-fleet-table th,.next-fleet-table td{padding:12px 10px;border-top:1px solid #d7dbea;vertical-align:top;text-align:left;overflow-wrap:anywhere}
.next-fleet-table thead th{background:#f3f4fa;font-size:12px}
.next-fleet-table small,.next-fleet-current small{display:block;margin-top:4px;line-height:1.6;color:#515a6b;font-weight:400}
.next-fleet-status{display:flex;gap:4px;flex-wrap:wrap;align-content:start}
.next-fleet-badge{display:inline-block;padding:3px 8px;background:#eef0fa;color:#292951;border:1px solid #d7dbea;border-radius:6px;font-size:12px;font-weight:700;white-space:nowrap}
.next-fleet-warning{background:#fff2e8;color:#813c14;border-color:#e2bda4}
.next-fleet-due{color:#813c14;font-weight:700}
.next-fleet-actions .btn{width:100%;margin-bottom:8px;min-height:44px;padding:8px;font-size:13px;line-height:1.5;white-space:normal}
.next-fleet-unassigned,.next-fleet-history{margin-top:20px}
.next-fleet-history details{margin:12px 0}
.next-case-history{margin:16px 0}
.next-case-history summary{min-height:44px;box-sizing:border-box;padding:10px 12px;line-height:24px;cursor:pointer;border:1px solid #d7dbea;border-radius:8px}
.next-fleet-history summary{min-height:44px;padding:12px;line-height:24px;cursor:pointer;border:1px solid #d7dbea;border-radius:8px}
@media(max-width:1023px){
 .next-fleet-list{background:transparent;border:0;box-shadow:none}
 .next-fleet-table,.next-fleet-table tbody{display:block}
 .next-fleet-table caption{display:block;padding:8px 0}
 .next-fleet-table thead{display:none}
 .next-fleet-table tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(110px,.7fr);gap:8px 12px;background:white;border:1px solid #d7dbea;border-radius:12px;padding:14px;margin:10px 0}
 .next-fleet-table th,.next-fleet-table td{display:block;border:0;padding:0}
 .next-fleet-table th[scope=row]{grid-column:1/-1;font-size:15px}
 .next-fleet-table .next-fleet-status{display:flex;grid-column:1/-1}
 .next-fleet-table .next-fleet-optional{display:none}
 .next-fleet-table .next-fleet-actions{grid-column:2;grid-row:3}
 .next-fleet-current{grid-column:1;grid-row:3}
 .next-fleet-table .next-fleet-actions .btn{margin:0 0 8px}
}

.next-fleet-procedure small,.next-fleet-reservation small{display:block;margin:4px 0;color:#515a6b}
#dialog .next-fleet-procedure,#dialog .next-fleet-reservation{border-top:1px solid #d7dbea;padding:12px 0}

/* D2: keep the tablet/desktop board; mobile skips empty stages and can jump to all eleven. */
.next-mobile-stages,.next-stage-empty{display:none}
@media(max-width:600px){.next-mobile-stages{display:block;margin:16px 0}.next-mobile-stages .field{display:block}.next-mobile-stages select{width:100%;min-width:0;min-height:44px}.next-mobile-stages .btn{min-height:44px;white-space:normal}.next-mobile-stage-status{font-weight:700}.next-board[data-mobile-stage="all"] .next-stage[data-stage-count="0"],.next-board .next-stage[data-mobile-visible="false"]{display:none}.next-board:not([data-mobile-stage="all"]) .next-stage-empty{display:block}}
