:root {
  --navy: #16324f;
  --navy-2: #214869;
  --blue: #2c6e9b;
  --blue-soft: #eaf3f9;
  --teal: #0d7c72;
  --teal-soft: #e4f4f1;
  --amber: #a86005;
  --amber-soft: #fff3dc;
  --red: #b43b3b;
  --red-soft: #fcebea;
  --ink: #17232e;
  --muted: #647483;
  --line: #dbe3e9;
  --surface: #ffffff;
  --canvas: #f4f7fa;
  --shadow: 0 8px 30px rgba(26, 50, 71, .08);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; touch-action: manipulation; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(44,110,155,.32); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hidden { display: none !important; }
.muted, .subtle { color: var(--muted); }
.skip-link { position: fixed; z-index: 120; top: 8px; left: 8px; padding: 10px 14px; border-radius: 8px; color: #fff; background: var(--navy); transform: translateY(-150%); transition: transform .2s ease; }
.skip-link:focus { transform: none; }
.app-shell { min-height: 100vh; }

.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; width: 248px; display: flex; flex-direction: column; padding: 25px 16px 18px; background: var(--navy); color: #fff; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 28px; color: #fff; text-decoration: none; font-size: 19px; font-weight: 750; letter-spacing: -.02em; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: #fff; color: var(--navy); }
.brand-mark svg { width: 23px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.nav-list { display: grid; gap: 6px; }
.nav-item { min-height: 47px; width: 100%; display: flex; align-items: center; gap: 12px; padding: 0 13px; border: 0; border-radius: 11px; color: #c7d5df; background: transparent; text-align: left; transition: .2s ease; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-item.active { color: #fff; background: rgba(255,255,255,.13); box-shadow: inset 3px 0 #59b8ab; }
.nav-item svg, .mobile-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-count { margin-left: auto; min-width: 25px; padding: 2px 7px; border-radius: 20px; background: rgba(255,255,255,.12); color: #dce7ed; text-align: center; font-size: 12px; }
.alert-count { background: #a93f44; color: #fff; }
.sidebar-footer { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 14px 8px 0; border-top: 1px solid rgba(255,255,255,.12); }
.profile-avatar { width: 39px; height: 39px; display: grid; place-items: center; flex: none; border-radius: 50%; background: #dbe9ee; color: var(--navy); font-size: 13px; font-weight: 800; }
.profile-copy { min-width: 0; display: grid; flex: 1; }
.profile-copy strong { font-size: 13px; }
.profile-copy span { color: #aabdc9; font-size: 11px; }
.sidebar .icon-button { color: #c7d5df; border-color: transparent; background: transparent; }

main { min-height: 100vh; margin-left: 248px; padding: 0 36px 48px; }
.topbar { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.eyebrow { margin: 0 0 2px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .075em; font-weight: 700; }
h1 { margin: 0; color: var(--ink); font-size: clamp(23px, 2vw, 29px); letter-spacing: -.035em; line-height: 1.2; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.search-box { width: min(310px, 25vw); height: 44px; display: flex; align-items: center; gap: 9px; padding: 0 11px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--muted); }
.search-box svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 13px; }
kbd { padding: 2px 6px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: #f6f8fa; font: 11px ui-monospace, monospace; }
.language-button { height: 42px; display: flex; align-items: center; gap: 7px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 12px; font-weight: 800; }
.icon-button { width: 42px; height: 42px; display: inline-grid; place-items: center; flex: none; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); transition: .2s ease; }
.icon-button:hover { border-color: #b6c7d3; background: #f8fafb; }
.icon-button svg, button [data-icon] svg, .metric-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.notification-button { position: relative; }
.notification-dot { position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border: 2px solid #fff; border-radius: 50%; background: var(--red); }
.primary-button, .secondary-button, .danger-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border-radius: 10px; font-weight: 700; font-size: 13px; transition: transform .15s ease, background .2s ease, border-color .2s ease; }
.primary-button:active, .secondary-button:active, .danger-button:active { transform: scale(.98); }
.primary-button { border: 1px solid var(--navy); background: var(--navy); color: #fff; }
.primary-button:hover { background: var(--navy-2); }
.secondary-button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.danger-button { border: 1px solid var(--red); background: var(--red); color: #fff; }
.danger-button:hover { background: #9e3030; }
.compact { min-height: 38px; padding: 0 13px; }

.view { display: none; animation: view-in .2s ease; }
.view.active { display: block; }
@keyframes view-in { from { opacity: 0; transform: translateY(4px); } }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.metric-card, .panel, .vehicle-card, .driver-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 1px 2px rgba(22,50,79,.025); }
.metric-card { position: relative; min-height: 148px; display: flex; flex-direction: column; padding: 20px; color: inherit; text-align: left; font: inherit; cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.metric-card:hover, .metric-card:focus-visible { border-color: #a9c0cf; background: #fbfdfe; box-shadow: var(--shadow); }
.metric-card:active { background: #f2f7fa; }
.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.metric-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; }
.metric-icon.blue { color: var(--blue); background: var(--blue-soft); }
.metric-icon.green { color: var(--teal); background: var(--teal-soft); }
.metric-icon.amber { color: var(--amber); background: var(--amber-soft); }
.metric-icon.red { color: var(--red); background: var(--red-soft); }
.metric-card strong { margin-top: auto; font-size: 29px; line-height: 1; letter-spacing: -.04em; }
.metric-card > span { margin-top: 7px; color: var(--muted); font-size: 12px; font-weight: 600; }
.metric-card .metric-open { position: absolute; right: 16px; bottom: 16px; width: 28px; height: 28px; display: grid; place-items: center; margin: 0; border-radius: 8px; color: var(--blue); background: var(--blue-soft); transition: background .2s ease, color .2s ease; }
.metric-card:hover .metric-open, .metric-card:focus-visible .metric-open { color: #fff; background: var(--blue); }
.trend { padding: 4px 7px; border-radius: 7px; font-size: 10px; font-weight: 700; }
.trend.positive { color: var(--teal); background: var(--teal-soft); }
.trend.warning { color: var(--amber); background: var(--amber-soft); }
.trend.negative { color: var(--red); background: var(--red-soft); }
.dashboard-fleet-panel { margin-top: 16px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-top: 16px; }
.panel { overflow: hidden; }
.panel-header { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel-header h2, .section-heading h2 { margin: 0; font-size: 17px; letter-spacing: -.02em; }
.panel-header p, .section-heading p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.text-button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; color: var(--blue); font-size: 12px; font-weight: 700; }
.fleet-row { min-height: 84px; display: grid; grid-template-columns: 50px minmax(150px,1.3fr) minmax(100px,.7fr) minmax(100px,.7fr) auto; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid #edf1f4; cursor: pointer; transition: background .2s ease; }
.fleet-row:last-child { border-bottom: 0; }
.fleet-row:hover { background: #f9fbfc; }
.vehicle-thumb { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(145deg,#e8eef2,#f8fafb); color: var(--navy); }
.vehicle-thumb svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.vehicle-main { display: grid; }
.vehicle-main strong { font-size: 13px; }
.vehicle-main span, .fleet-meta span { color: var(--muted); font-size: 11px; }
.fleet-meta { display: grid; }
.fleet-meta strong { font-size: 12px; }
.status-pill, .priority-pill { width: max-content; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 20px; font-size: 10px; font-weight: 750; white-space: nowrap; }
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; }
.status-ready { color: var(--teal); background: var(--teal-soft); }.status-ready::before { background: var(--teal); }
.status-workshop { color: var(--red); background: var(--red-soft); }.status-workshop::before { background: var(--red); }
.status-due { color: var(--amber); background: var(--amber-soft); }.status-due::before { background: var(--amber); }
.timeline { padding: 9px 20px 15px; }
.timeline-item { position: relative; min-height: 67px; display: grid; grid-template-columns: 45px minmax(0,1fr) auto; gap: 13px; align-items: center; padding: 12px 0; }
.timeline-item:not(:last-child)::after { content: ""; position: absolute; left: 22px; top: 50px; bottom: -10px; width: 1px; background: var(--line); }
.date-box { width: 45px; min-height: 53px; display: grid; place-items: center; align-content: center; border-radius: 10px; color: var(--navy); background: var(--blue-soft); line-height: 1; }
.date-box strong { font-size: 16px; }.date-box span { margin-top: 3px; font-size: 9px; font-weight: 800; text-transform: uppercase; }.date-box small { margin-top: 3px; font-size: 8px; font-weight: 750; opacity: .72; }
.timeline-copy strong { display: block; padding-top: 2px; font-size: 12px; }.timeline-copy span { color: var(--muted); font-size: 11px; }
.issue-panel { margin-top: 16px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 12px 20px; color: var(--muted); background: #f8fafb; font-size: 10px; text-transform: uppercase; letter-spacing: .055em; white-space: nowrap; }
td { padding: 14px 20px; border-top: 1px solid #edf1f4; font-size: 12px; white-space: nowrap; }
td strong { display: block; font-size: 12px; } td small { color: var(--muted); }
.priority-high { color: var(--red); background: var(--red-soft); }.priority-normal { color: var(--amber); background: var(--amber-soft); }.priority-critical { color: #fff; background: var(--red); }
.section-heading { min-height: 74px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-top: 4px; }
.filter-row { display: flex; gap: 8px; margin-bottom: 16px; overflow-x: auto; }
.filter-chip { min-height: 36px; padding: 0 13px; border: 1px solid var(--line); border-radius: 18px; color: var(--muted); background: var(--surface); white-space: nowrap; font-size: 12px; font-weight: 700; }
.filter-chip.active { color: #fff; border-color: var(--navy); background: var(--navy); }
.vehicle-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.vehicle-card { overflow: hidden; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.vehicle-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.vehicle-visual { position: relative; height: 135px; display: grid; place-items: center; background: linear-gradient(145deg,#e8eef2 0%,#f7fafb 60%,#dce7ec 100%); }
.vehicle-visual svg { width: 115px; height: 80px; fill: none; stroke: #436077; stroke-width: 1.1; }
.vehicle-visual .status-pill { position: absolute; top: 12px; right: 12px; }
.vehicle-card-body { padding: 16px; }
.vehicle-card-body h3 { margin: 0; font-size: 18px; letter-spacing: .01em; }.vehicle-card-body > p { margin: 3px 0 13px; color: var(--muted); font-size: 12px; }
.vehicle-card-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.vehicle-card-stats span { display: grid; color: var(--muted); font-size: 10px; }.vehicle-card-stats strong { color: var(--ink); font-size: 12px; }
.issue-vehicle-picker { margin-bottom: 18px; padding: 17px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.issue-vehicle-picker > div:first-child { margin-bottom: 13px; }
.issue-vehicle-picker h3 { margin: 3px 0 0; font-size: 17px; }
.section-eyebrow { display: block; color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.issue-vehicle-list { display: grid; grid-auto-columns: minmax(210px,1fr); grid-auto-flow: column; gap: 9px; overflow-x: auto; padding: 3px 3px 8px; scroll-snap-type: x proximity; }
.issue-vehicle-option { min-height: 68px; display: grid; grid-template-columns: 46px minmax(0,1fr) 28px; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: #fff; font: inherit; text-align: left; cursor: pointer; scroll-snap-align: start; }
.issue-vehicle-option:hover, .issue-vehicle-option:focus-visible { border-color: #8fb5bd; background: #f5fbfa; outline: none; box-shadow: 0 0 0 3px rgba(55,139,129,.12); }
.issue-vehicle-option.active { border-color: var(--teal); background: var(--teal-soft); box-shadow: inset 3px 0 var(--teal); }
.issue-vehicle-option .vehicle-thumb { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 9px; background: #edf2f5; }
.issue-vehicle-option .vehicle-thumb svg { width: 36px; height: 26px; fill: none; stroke: #436077; }
.issue-vehicle-option > span:nth-child(2) { min-width: 0; display: grid; }
.issue-vehicle-option strong, .issue-vehicle-option small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.issue-vehicle-option strong { font-size: 12px; }.issue-vehicle-option small { color: var(--muted); font-size: 10px; }
.issue-vehicle-option b { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; color: var(--navy); background: #e4ebef; font-size: 11px; }
.issue-context-heading { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.issue-context-heading h3 { margin: 4px 0 0; font-size: 18px; }.issue-context-heading h3 small { color: var(--muted); font-size: 12px; font-weight: 500; }
.issue-board { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; align-items: start; }
.board-column { min-height: 320px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #edf2f5; }
.board-heading { display: flex; align-items: center; justify-content: space-between; padding: 3px 4px 12px; font-size: 12px; }.board-heading strong:last-child { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #dbe4e9; }
.issue-card { margin-bottom: 10px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 2px 5px rgba(20,45,62,.04); }
.issue-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.issue-edit-button { min-height: 40px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--navy); background: #fff; font: inherit; font-size: 11px; font-weight: 750; cursor: pointer; }
.issue-edit-button:hover, .issue-edit-button:focus-visible { border-color: #8fb5bd; background: #f0faf8; outline: none; }
.issue-edit-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.issue-card h3 { margin: 10px 0 3px; font-size: 13px; }.issue-card p { margin: 0 0 12px; color: var(--muted); font-size: 11px; }
.issue-latest-note { display: grid; gap: 3px; margin: 10px 0; padding: 10px; border-left: 3px solid var(--teal); border-radius: 0 8px 8px 0; background: #f0faf8; }
.issue-latest-note strong { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }.issue-latest-note span { font-size: 11px; line-height: 1.45; }.issue-latest-note small { color: var(--muted); font-size: 9px; }
.issue-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.issue-action { width: 100%; min-height: 42px; display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--navy); background: #fff; font-size: 11px; font-weight: 750; }
.issue-action:hover { border-color: #abc0ce; background: #f7fafc; }
.issue-action svg { width: 17px; height: 17px; fill: none; stroke: currentColor; }
.board-empty { margin: 0; padding: 26px 10px; color: var(--muted); font-size: 11px; text-align: center; }
.driver-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.driver-card { display: flex; align-items: center; gap: 13px; padding: 18px; }.driver-card .profile-avatar { width: 46px; height: 46px; }.driver-info { min-width: 0; display: grid; flex: 1; }.driver-info strong { font-size: 13px; }.driver-info span { color: var(--muted); font-size: 11px; }.driver-online { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.driver-banner { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; padding: 16px 19px; border: 1px solid #b9dcd5; border-radius: 14px; background: var(--teal-soft); }.driver-banner p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; }.status-dot.good { background: var(--teal); }
.mileage-reminder { min-height: 76px; display: flex; align-items: center; gap: 14px; margin-bottom: 16px; padding: 13px 16px; border: 1px solid #e9ca93; border-radius: 14px; background: var(--amber-soft); }
.mileage-reminder > div { min-width: 0; flex: 1; }
.mileage-reminder strong { font-size: 13px; }
.mileage-reminder p { margin: 2px 0 0; color: #765329; font-size: 12px; }
.section-actions { display: flex; gap: 10px; }
.height-alert { display: grid; grid-template-columns: 26px 1fr; column-gap: 8px; margin: -2px 0 12px; padding: 9px 10px; border: 1px solid #e9ca93; border-radius: 10px; color: #714a0b; background: var(--amber-soft); }
.height-alert svg { grid-row: 1/3; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.height-alert strong { font-size: 11px; }
.height-alert span { font-size: 10px; }

dialog { width: min(650px, calc(100vw - 28px)); max-height: calc(100vh - 28px); padding: 0; border: 0; border-radius: 18px; color: var(--ink); background: var(--surface); box-shadow: 0 24px 70px rgba(11,31,46,.28); }
dialog::backdrop { background: rgba(13,31,44,.53); backdrop-filter: blur(2px); }
.login-dialog { width: min(430px, calc(100vw - 28px)); }
.login-dialog::backdrop { background: rgba(13,31,44,.82); }
.login-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 24px; }
.login-brand .brand-mark { color: #fff; background: var(--navy); }
.login-brand div { display: grid; }
.login-brand strong { font-size: 18px; }
.login-brand span:last-child { color: var(--muted); font-size: 11px; }
.login-hint { margin: -7px 0 18px; color: var(--muted); font-size: 12px; }
.form-error { margin: 0; padding: 10px 12px; border: 1px solid #edb6b4; border-radius: 9px; color: #8d2929; background: var(--red-soft); font-size: 12px; }
.dialog-form { padding: 22px; }
.dialog-header { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 18px; }.dialog-header h2 { margin: 0; font-size: 20px; }.dialog-kicker { color: var(--blue); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.photo-drop { position: relative; min-height: 112px; display: grid; place-items: center; align-content: center; margin-bottom: 18px; border: 1.5px dashed #b8c8d3; border-radius: 13px; color: var(--blue); background: #f7fafc; text-align: center; cursor: pointer; }.photo-drop svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; }.photo-drop strong { margin-top: 5px; font-size: 12px; }.photo-drop > span:last-of-type { color: var(--muted); font-size: 10px; }.photo-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }.form-grid label { display: grid; align-content: start; gap: 6px; color: #3d4c57; font-size: 11px; font-weight: 700; }.form-grid > .full { grid-column: 1/-1; }.form-grid input, .form-grid select, .form-grid textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #cfd9df; border-radius: 9px; outline: 0; color: var(--ink); background: #fff; font-size: 13px; resize: vertical; transition: border .2s, box-shadow .2s; }.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(44,110,155,.1); }.form-grid input:invalid:not(:placeholder-shown) { border-color: var(--red); }.form-grid small { color: var(--muted); font-weight: 400; }.input-suffix { position: relative; }.input-suffix span { position: absolute; top: 12px; right: 12px; color: var(--muted); font-size: 12px; }.input-suffix input { padding-right: 38px; }.file-label input { padding: 7px !important; }.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin: 22px -22px -22px; padding: 16px 22px; border-top: 1px solid var(--line); background: #f8fafb; }
.form-section { min-width: 0; margin: 2px 0 0; padding: 13px; border: 1px solid var(--line); border-radius: 11px; }
.form-section legend { padding: 0 6px; color: var(--navy); font-size: 11px; font-weight: 800; }
.triple-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.form-help { margin: 0; padding: 10px 12px; border-radius: 9px; color: #765329; background: var(--amber-soft); font-size: 11px; }
.form-grid input[type="file"] { padding: 7px; }
.service-notes-field textarea { min-height: 150px; line-height: 1.5; }
.issue-history { padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #f8fafb; }
.issue-history h3 { margin: 0 0 10px; font-size: 13px; }
.issue-history-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }.issue-history-heading span { color: var(--muted); font-size: 10px; }
.issue-created-entry { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); }.issue-created-entry strong { font-size: 11px; }.issue-created-entry span { color: var(--muted); font-size: 10px; }
.issue-history-subheading { margin: 10px 0 6px; color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.issue-attachments { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.issue-attachments button { min-width: 0; min-height: 54px; display: grid; grid-template-columns: 45px minmax(0,1fr); align-items: center; gap: 8px; padding: 5px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; font: inherit; text-align: left; cursor: pointer; }
.issue-attachments button:hover, .issue-attachments button:focus-visible { border-color: var(--teal); background: #f0faf8; outline: none; }
.issue-attachments img, .issue-file-type { width: 45px; height: 42px; display: grid; place-items: center; border-radius: 7px; object-fit: cover; color: var(--teal); background: var(--teal-soft); font-size: 9px; font-weight: 900; }
.issue-attachments button > span:last-child { min-width: 0; display: grid; }.issue-attachments strong, .issue-attachments small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.issue-attachments strong { font-size: 10px; }.issue-attachments small { color: var(--muted); font-size: 8px; }
.issue-history-entry { padding: 10px 0; border-top: 1px solid var(--line); }
.issue-history-entry:first-of-type { border-top: 0; }
.issue-history-entry > div { display: flex; justify-content: space-between; gap: 10px; }
.issue-history-entry strong { font-size: 11px; }.issue-history-entry time, .issue-history-entry small { color: var(--muted); font-size: 10px; }.issue-history-entry p { margin: 5px 0 0; color: var(--ink); font-size: 12px; line-height: 1.5; }
.issue-note-copy { align-items: flex-start; }.issue-note-copy p { flex: 1; white-space: pre-wrap; }
.note-edit-button { min-width: 44px; min-height: 40px; display: inline-flex; align-items: center; gap: 5px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--navy); background: #fff; font: inherit; font-size: 10px; font-weight: 800; cursor: pointer; }.note-edit-button:hover, .note-edit-button:focus-visible { border-color: var(--teal); outline: none; }.note-edit-button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; }
.issue-note-editor { width: 100%; min-height: 96px; margin-top: 8px; padding: 10px; border: 1px solid #cfd9df; border-radius: 8px; font: inherit; font-size: 12px; resize: vertical; }.issue-note-editor:focus { border-color: var(--blue); outline: 0; box-shadow: 0 0 0 3px rgba(44,110,155,.1); }
.issue-note-actions { justify-content: flex-end !important; margin-top: 8px; }.issue-note-actions .compact { min-height: 40px; }
.issue-dialog-actions { align-items: center; }.dialog-action-spacer { flex: 1; }
.delete-button { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; padding: 0 13px; border: 1px solid #e4b4b4; border-radius: 9px; color: var(--red); background: #fff7f7; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }.delete-button:hover, .delete-button:focus-visible { border-color: var(--red); background: var(--red-soft); outline: none; }.delete-button:disabled { opacity: .55; cursor: wait; }.delete-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; }
.issue-table-row { cursor: pointer; }.issue-table-row:hover, .issue-table-row:focus-visible { background: #f0faf8; outline: none; }
.timeline-empty { margin: 0; padding: 18px; color: var(--muted); font-size: 12px; }
.timeline-check { width: 32px; height: 32px; display: grid; place-items: center; margin-left: auto; border-radius: 50%; color: var(--teal); background: var(--teal-soft); }
.timeline-check svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
.completed-panel .date-box { color: var(--teal); background: var(--teal-soft); }
.empty-cell { padding: 28px; color: var(--muted); text-align: center; }
.toast { position: fixed; z-index: 100; right: 25px; bottom: 25px; min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 17px; border-radius: 11px; color: #fff; background: var(--navy); box-shadow: var(--shadow); font-size: 12px; font-weight: 700; transform: translateY(100px); opacity: 0; transition: .25s ease; }.toast.show { transform: none; opacity: 1; }
.detail-drawer { position: fixed; z-index: 60; inset: 0 0 0 auto; width: min(480px, 100vw); padding: 24px; overflow-y: auto; background: #fff; box-shadow: -20px 0 50px rgba(13,31,44,.15); transform: translateX(102%); transition: transform .25s ease; }.detail-drawer.open { transform: none; }.drawer-backdrop { position: fixed; z-index: 55; inset: 0; visibility: hidden; opacity: 0; background: rgba(13,31,44,.35); transition: .2s; }.drawer-backdrop.show { visibility: visible; opacity: 1; }.drawer-top { display: flex; justify-content: space-between; gap: 12px; }.drawer-hero { height: 180px; display: grid; place-items: center; margin: 18px 0; border-radius: 15px; background: linear-gradient(145deg,#e8eef2,#f8fafb); }.drawer-hero svg { width: 160px; height: 100px; fill: none; stroke: #436077; }.drawer-title h2 { margin: 0; font-size: 22px; }.drawer-title p { margin: 3px 0 0; color: var(--muted); }.detail-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }.detail-item { min-height: 73px; display: grid; align-content: center; padding: 12px; background: #fff; }.detail-item span { color: var(--muted); font-size: 10px; }.detail-item strong { font-size: 12px; word-break: break-word; }.drawer-section { margin-top: 22px; }.drawer-section h3 { margin: 0 0 10px; font-size: 14px; }.history-item { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }.history-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: none; border-radius: 9px; color: var(--teal); background: var(--teal-soft); }.history-copy { display: grid; }.history-copy strong { font-size: 12px; }.history-copy span { color: var(--muted); font-size: 10px; }
.history-item .service-edit-button { margin-left: auto; align-self: center; }
.service-edit-button { min-width: 44px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 12px; border: 1px solid #c8d5de; border-radius: 9px; color: var(--navy); background: #fff; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.service-edit-button:hover { border-color: #8fb5bd; background: #f0faf8; }
.service-edit-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.drawer-service-action { grid-column: 1 / -1; }
.drawer-admin-action { grid-column: 1 / -1; }
.mileage-current { padding: 12px 14px; border: 1px solid #bdd9e3; border-radius: 10px; color: var(--navy); background: var(--blue-soft); font-size: 12px; }
.mileage-current strong { display: block; font-size: 17px; }
.service-row { cursor: pointer; transition: background .2s ease; }
.service-row:hover, .service-row:focus-visible { background: #f0faf8; outline: none; }
.service-row:focus-visible { box-shadow: inset 3px 0 var(--teal); }
.service-chevron-heading, .service-chevron { width: 48px; padding-inline: 12px; text-align: right; }
.service-chevron { color: #8596a4; }
.service-chevron svg, .history-open-label svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.service-row:hover .service-chevron, .service-row:focus-visible .service-chevron { color: var(--teal); }
.history-service-link { width: 100%; min-height: 64px; align-items: center; margin-top: 8px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.history-service-link:hover, .history-service-link:focus-visible { border-color: #9bcfc7; background: #f0faf8; outline: none; }
.history-open-label { width: 20px; height: 44px; display: inline-flex; align-items: center; justify-content: flex-end; flex: none; margin-left: auto; color: #8596a4; }
.history-service-link:hover .history-open-label, .history-service-link:focus-visible .history-open-label { color: var(--teal); }
.history-service-link .history-icon { width: 38px; height: 38px; border-radius: 10px; }
.history-service-link .history-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.history-service-link .history-copy { min-width: 0; display: grid; align-content: center; flex: 1; }
.history-service-link .history-copy strong, .history-service-link .history-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-warning { display: flex; align-items: center; gap: 11px; margin: -7px 0 16px; padding: 12px; border: 1px solid #e9ca93; border-radius: 11px; color: #714a0b; background: var(--amber-soft); }
.drawer-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.drawer-section-heading h3 { margin: 0; }
.small-upload, .document-upload, .document-link { position: relative; display: inline-flex; min-height: 34px; align-items: center; justify-content: center; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--navy); background: #fff; font-size: 11px; font-weight: 800; text-decoration: none; cursor: pointer; }
.small-upload input, .document-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.vehicle-photo-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.vehicle-photo-grid button { position: relative; min-width: 0; overflow: hidden; aspect-ratio: 4/3; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: #e8eef2; cursor: pointer; }
.vehicle-photo-grid button:hover, .vehicle-photo-grid button:focus-visible { border-color: #73aaa4; box-shadow: 0 0 0 3px rgba(55,139,129,.13); outline: none; }
.vehicle-photo-grid img { width: 100%; height: 100%; display: block; object-fit: cover; }
.vehicle-photo-grid button > span { position: absolute; right: 0; bottom: 0; left: 0; overflow: hidden; padding: 12px 7px 5px; color: #fff; background: linear-gradient(transparent,rgba(13,31,44,.8)); font-size: 9px; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.drawer-warning > svg { width: 25px; height: 25px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; }
.drawer-warning div { display: grid; }
.drawer-warning strong { font-size: 12px; }
.drawer-warning span { font-size: 10px; }
.drawer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 14px; }
.drawer-actions svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.document-row { display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.document-row + .document-row { margin-top: 8px; }
.document-row > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; color: var(--teal); background: var(--teal-soft); }
.document-row > span svg { width: 17px; height: 17px; fill: none; stroke: currentColor; }
.document-row .document-copy { min-width: 0; display: grid; flex: 1; }
.document-row strong { font-size: 12px; }
.document-row small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.document-row.protected > span { color: var(--red); background: var(--red-soft); }
.document-actions { display: flex; align-items: center; gap: 6px; }
.document-protected-label { width: auto !important; height: auto !important; padding: 6px 8px; color: var(--red) !important; background: var(--red-soft) !important; font-size: 10px; font-weight: 800; }
.document-tile-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.document-tile { min-width: 0; display: grid; align-content: start; gap: 9px; padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfd; }
.document-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
.document-tile > header { min-width: 0; display: flex; align-items: center; gap: 9px; }
.document-tile > header > div { min-width: 0; display: grid; }
.document-tile > header strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.document-tile > header small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.document-tile-icon { width: 30px; height: 30px; display: grid; place-items: center; flex: none; border-radius: 8px; color: var(--teal); background: var(--teal-soft); }
.document-tile-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.document-tile.protected .document-tile-icon { color: var(--red); background: var(--red-soft); }
.document-file-list { display: grid; gap: 5px; }
.document-file-button { min-width: 0; min-height: 42px; display: grid; grid-template-columns: 27px minmax(0,1fr) 16px; align-items: center; gap: 7px; padding: 5px 7px; border: 1px solid #e0e7eb; border-radius: 8px; color: var(--ink); background: #fff; font: inherit; text-align: left; cursor: pointer; }
.document-file-button:hover, .document-file-button:focus-visible { border-color: #83b7b0; background: #f0faf8; outline: none; }
.document-file-button > span:first-child { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 6px; color: var(--teal); background: var(--teal-soft); font-size: 8px; font-weight: 900; }
.document-file-button > span:nth-child(2) { min-width: 0; display: grid; }
.document-file-button strong, .document-file-button small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.document-file-button strong { font-size: 10px; }.document-file-button small { color: var(--muted); font-size: 8px; }
.document-file-button > svg { width: 15px; height: 15px; fill: none; stroke: currentColor; }
.document-empty { margin: 0; color: var(--muted); font-size: 10px; }
.document-tile-upload { width: 100%; min-height: 38px; gap: 6px; padding: 0 9px; border-style: dashed; }
.document-tile-upload svg { width: 15px; height: 15px; fill: none; stroke: currentColor; }
.file-viewer-dialog { width: min(1040px,calc(100vw - 32px)); height: min(820px,calc(100vh - 32px)); max-height: calc(100vh - 32px); overflow: hidden; border-radius: 18px; }
.file-viewer-dialog::backdrop { background: rgba(7,20,30,.78); backdrop-filter: blur(5px); }
.file-viewer-shell { height: 100%; display: grid; grid-template-rows: auto minmax(0,1fr) auto; background: #f4f7f8; }
.file-viewer-header { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 18px; border-bottom: 1px solid var(--line); background: #fff; }
.file-viewer-header > div { min-width: 0; }.file-viewer-header h2 { overflow: hidden; margin: 2px 0 0; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.file-viewer-header .icon-button { width: 44px; height: 44px; flex: none; }
.file-viewer-stage { min-height: 0; display: grid; place-items: center; overflow: auto; padding: 18px; background: #dfe6e9; }
.file-viewer-stage img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 10px 36px rgba(13,31,44,.18); }
.file-viewer-stage iframe { width: 100%; height: 100%; min-height: 420px; border: 0; border-radius: 7px; background: #fff; }
.file-viewer-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 18px; border-top: 1px solid var(--line); background: #fff; }
.file-viewer-details { display: flex; flex-wrap: wrap; gap: 16px 28px; margin: 0; }
.file-viewer-details div { display: grid; gap: 2px; }.file-viewer-details dt { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .05em; }.file-viewer-details dd { margin: 0; font-size: 11px; font-weight: 750; }
.file-delete-button { min-height: 40px; display: inline-flex; align-items: center; gap: 7px; padding: 0 13px; border: 1px solid #e4b4b4; border-radius: 9px; color: var(--red); background: #fff7f7; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.file-delete-button:hover, .file-delete-button:focus-visible { border-color: var(--red); background: var(--red-soft); outline: none; }.file-delete-button:disabled { opacity: .55; cursor: wait; }.file-delete-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; }
.mobile-nav { display: none; }
.install-app-banner { position: fixed; z-index: 70; right: 20px; bottom: 20px; width: min(440px, calc(100vw - 30px)); display: grid; grid-template-columns: 48px minmax(0,1fr) auto auto; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.98); box-shadow: 0 18px 48px rgba(22,50,79,.2); }
.install-app-banner img { border-radius: 12px; }
.install-app-banner div { display: grid; gap: 2px; min-width: 0; }
.install-app-banner div span { color: var(--muted); font-size: 12px; line-height: 1.35; }
.install-app-banner .icon-button { width: 44px; height: 44px; }
.install-steps { display: grid; gap: 14px; margin: 18px 0; padding-left: 24px; line-height: 1.5; }
.install-help-dialog { max-width: 500px; }

@media (max-width: 1180px) { main { padding-inline: 25px; }.metric-grid { grid-template-columns: 1fr 1fr; }.vehicle-grid, .driver-grid { grid-template-columns: 1fr 1fr; }.search-box { display: none; }.dashboard-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }.sidebar { display: none; } main { margin: 0; padding: max(0px, env(safe-area-inset-top)) 15px 26px; }.topbar { min-height: 82px; }.topbar .eyebrow { display: none; }.topbar-actions { gap: 6px; }.desktop-add, .notification-button { display: none; }.language-button { height: 40px; }.metric-grid { grid-template-columns: 1fr 1fr; gap: 10px; }.metric-card { min-height: 126px; padding: 14px; }.metric-card strong { font-size: 25px; }.trend { display: none; }.dashboard-grid { margin-top: 10px; gap: 10px; }.panel-header { padding-inline: 15px; }.fleet-row { grid-template-columns: 45px minmax(135px,1fr) auto; padding-inline: 15px; }.fleet-row .fleet-meta { display: none; }.issue-panel { margin-top: 10px; }.issue-panel .panel-header .compact { width: 44px; min-height: 44px; padding: 0; }.issue-panel .panel-header .compact span:last-child { display: none; }.section-heading { min-height: 78px; }.section-heading .primary-button, .section-heading .danger-button, .section-heading .secondary-button { width: 44px; min-height: 44px; padding: 0; }.section-heading button span:last-child { display: none; }.vehicle-grid, .driver-grid, .issue-board { grid-template-columns: 1fr; }.vehicle-visual { height: 145px; }.mobile-nav { position: fixed; z-index: 40; inset: auto 0 0; height: calc(69px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5,1fr); padding: 5px 5px max(5px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }.mobile-nav button { min-width: 44px; min-height: 44px; display: grid; place-items: center; align-content: center; gap: 2px; border: 0; color: var(--muted); background: transparent; font-size: 9px; }.mobile-nav button.active { color: var(--navy); font-weight: 800; }.mobile-nav .mobile-report span:first-child { width: 38px; height: 38px; display: grid; place-items: center; margin-top: -23px; border-radius: 50%; color: #fff; background: var(--red); box-shadow: 0 5px 14px rgba(180,59,59,.28); }.form-grid { grid-template-columns: 1fr; }.form-grid label.full { grid-column: auto; }.triple-grid { grid-template-columns: 1fr; }.form-grid input, .form-grid select, .form-grid textarea { font-size: 16px; }.dialog-form { padding: 18px; }.dialog-actions { margin: 20px -18px -18px; padding: 14px 18px; }.dialog-actions button { flex: 1; }.toast { right: 15px; bottom: calc(83px + env(safe-area-inset-bottom)); left: 15px; }.detail-drawer { padding: 18px; }.mileage-reminder { align-items: flex-start; flex-wrap: wrap; }.mileage-reminder > div { min-width: calc(100% - 60px); }.mileage-reminder > button { width: 100%; }.drawer-actions { grid-template-columns: 1fr; }.install-app-banner { right: 15px; bottom: calc(82px + env(safe-area-inset-bottom)); left: 15px; width: auto; grid-template-columns: 44px minmax(0,1fr) auto; }.install-app-banner img { width: 44px; height: 44px; }.install-app-banner .icon-button { grid-column: 3; grid-row: 1; }.install-app-banner .primary-button { grid-column: 1 / -1; width: 100%; min-height: 44px; }
  .document-tile-grid { grid-template-columns: 1fr; }.document-tile:last-child:nth-child(odd) { grid-column: auto; }
  .issue-vehicle-picker { padding: 13px; }.issue-context-heading { align-items: flex-start; flex-direction: column; }.issue-context-heading .secondary-button { width: 100%; }.issue-dialog-actions { flex-wrap: wrap; }.issue-dialog-actions .dialog-action-spacer { display: none; }.issue-dialog-actions .delete-button { flex-basis: 100%; }
  .file-viewer-dialog { width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }.file-viewer-header { padding: max(10px,env(safe-area-inset-top)) 12px 10px; }.file-viewer-stage { padding: 8px; }.file-viewer-stage iframe { min-height: 0; }.file-viewer-footer { align-items: stretch; flex-direction: column; padding: 10px 12px max(10px,env(safe-area-inset-bottom)); }.file-viewer-details { justify-content: space-between; }.file-delete-button { width: 100%; justify-content: center; }
}
@media (max-width: 390px) { .metric-grid { grid-template-columns: 1fr; }.metric-card { min-height: 112px; }.metric-card strong { margin-top: 12px; } h1 { font-size: 21px; } }
@media (max-width: 640px) {
  .maintenance-panel .table-wrap { overflow: visible; }
  .maintenance-panel table, .maintenance-panel tbody { display: block; width: 100%; }
  .maintenance-panel thead { display: none; }
  .maintenance-panel .service-row { min-height: 72px; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) 28px; align-items: center; gap: 10px; padding: 12px 14px; }
  .maintenance-panel .service-row td { display: none; padding: 0; border: 0; white-space: normal; }
  .maintenance-panel .service-row td:nth-child(1), .maintenance-panel .service-row td:nth-child(2), .maintenance-panel .service-row .service-chevron { display: block; }
  .maintenance-panel .service-row .service-chevron { width: 28px; padding: 0; text-align: right; }
  .maintenance-panel .empty-cell { display: block; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
.drawer-title h2 { font-size: 26px; letter-spacing: .01em; }
.history-copy small { color: var(--muted); font-size: 9px; }
