:root {
  --app-viewport-height: 100vh;
  --ink: #f5f2ff;
  --muted: #aa9fba;
  --canvas: #09070d;
  --panel: #15111c;
  --line: #352c43;
  --navy: #07050a;
  --navy-2: #171020;
  --blue: #8b5cf6;
  --teal: #a855f7;
  --green: #1c9a64;
  --amber: #dd8b15;
  --red: #d04d50;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-width: 320px; min-height: var(--app-viewport-height); overscroll-behavior-y: none; background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button, .button, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
.hidden { display: none !important; }
.skip-link { position: fixed; z-index: 100; top: max(10px, env(safe-area-inset-top)); left: max(10px, env(safe-area-inset-left)); padding: 11px 14px; color: #fff; background: #6f42c1; border-radius: 8px; font-size: 13px; font-weight: 800; transform: translateY(-180%); transition: transform .15s ease-out; }
.skip-link:focus { transform: translateY(0); }
:where(button, a, input, select, textarea, [tabindex]):focus-visible { outline: 3px solid #c4b5fd; outline-offset: 3px; box-shadow: 0 0 0 5px rgba(139,92,246,.24); }
button:focus-visible { transform: none; }
#main-content:focus { outline: none; box-shadow: none; }

.access-screen { min-height: 100vh; padding: 24px; display: grid; place-items: center; background: radial-gradient(circle at top right, #d7ebf7 0, transparent 34%), linear-gradient(135deg, #edf4f7, #f8fbfc); }
.access-card { width: min(100%, 480px); background: rgba(255,255,255,.96); border: 1px solid #d9e5eb; border-radius: 18px; padding: 28px; box-shadow: 0 18px 50px rgba(24,62,85,.13); }
.access-brand { display: flex; align-items: center; gap: 10px; }.access-brand .brand-mark { flex: 0 0 auto; }.access-brand strong, .access-brand small { display: block; }.access-brand strong { font-size: 15px; }.access-brand small { color: var(--muted); font-size: 11px; margin-top: 2px; }
.access-copy { margin: 28px 0 20px; }.access-copy h1 { max-width: 330px; font-size: 27px; line-height: 1.12; letter-spacing: -.8px; }.access-copy p:last-child { margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.access-form { display: grid; gap: 13px; }.access-form label { display: grid; gap: 6px; color: #526779; font-size: 12px; font-weight: 750; }.access-form input { width: 100%; border: 1px solid #cfdce4; border-radius: 8px; padding: 11px; color: var(--ink); background: white; }.access-form .button { margin-top: 4px; }.access-form .button:disabled { cursor: progress; opacity: .7; }
.cloud-setup-note { display: grid; gap: 5px; border-radius: 10px; padding: 13px; background: #eef6fb; border: 1px solid #d5e8f5; color: #3c6078; font-size: 12px; line-height: 1.45; }.cloud-setup-note strong { color: #21445d; }
.demo-access { margin-top: 20px; padding-top: 17px; border-top: 1px solid #e6edf1; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; font-weight: 750; }.demo-access > div { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.access-help { margin: 19px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }

.app-shell { min-height: 100vh; min-height: var(--app-viewport-height); display: flex; }
.sidebar { width: 250px; background: var(--navy); color: #dce7ef; padding: 25px 14px 18px; display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; z-index: 8; -webkit-overflow-scrolling: touch; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 11px 28px; }
.brand-mark { display: grid; place-items: center; height: 38px; width: 38px; border-radius: 11px; background: #2b8acb; color: white; font-weight: 800; letter-spacing: -.5px; }
.brand strong, .brand small { display: block; }
.brand strong { color: white; font-size: 15px; }
.brand small { color: #9eb3c5; font-size: 11px; margin-top: 2px; }
.nav-list { display: grid; gap: 4px; }
.nav-item { width: 100%; border: 0; background: transparent; color: #b5c6d4; text-align: left; padding: 11px 12px; border-radius: 9px; font-size: 14px; display: flex; gap: 12px; align-items: center; }
.nav-item span { width: 15px; text-align: center; color: #90b1cc; font-size: 17px; }
.nav-item:hover { background: rgba(255,255,255,.07); color: white; }
.nav-item.active { color: white; background: #1d4566; font-weight: 700; }
.nav-item.active span { color: #6bc5fa; }
.sidebar-footer { margin-top: auto; border-top: 1px solid rgba(255,255,255,.1); padding: 18px 12px 4px 25px; position: relative; font-size: 12px; color: #d8e2ea; }
.sidebar-footer small { display: block; color: #8fa4b6; margin-top: 3px; font-size: 10px; }
.status-dot { width: 8px; height: 8px; background: #38c681; border-radius: 50%; position: absolute; left: 12px; top: 21px; box-shadow: 0 0 0 3px rgba(56,198,129,.13); }

.main-content { margin-left: 250px; min-width: 0; width: calc(100% - 250px); }
.topbar { min-height: 91px; padding: 19px 32px; display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.84); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.eyebrow { margin: 0 0 3px; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
h1 { font-size: 22px; margin: 0; letter-spacing: -.55px; }
.topbar-actions { display: flex; align-items: center; gap: 11px; }
.connection-status { min-height: 32px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; color: #cdbfdb; background: #17121f; border: 1px solid #3b3048; border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.connection-status::before { content: ""; width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #a78bfa; box-shadow: 0 0 0 3px rgba(167,139,250,.14); }
.connection-status.is-online { color: #9ae4c3; border-color: #285d49; background: #11271f; }.connection-status.is-online::before { background: #53d490; box-shadow: 0 0 0 3px rgba(83,212,144,.15); }
.connection-status.is-offline { color: #ffb7bd; border-color: #71303a; background: #321118; }.connection-status.is-offline::before { background: #e25361; box-shadow: 0 0 0 3px rgba(226,83,97,.15); }
.connection-status.is-syncing { color: #e1d4ff; border-color: #684593; background: #26183a; }.connection-status.is-syncing::before { background: #c084fc; animation: connection-pulse 1.4s ease-in-out infinite; }
@keyframes connection-pulse { 50% { opacity: .45; transform: scale(.75); } }
.icon-button { position: relative; width: 37px; height: 37px; border-radius: 50%; border: 1px solid var(--line); background: white; color: #8397a8; font-size: 12px; }
.notification-count { position: absolute; font-size: 9px; color: white; background: var(--red); width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; top: -5px; right: -5px; }
.driver-toggle { border: 1px solid var(--line); background: white; border-radius: 9px; padding: 6px 11px 6px 7px; color: var(--ink); font-weight: 650; font-size: 12px; display: flex; align-items: center; gap: 7px; }
.driver-avatar { width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; background: #dceafa; color: #2569ae; font-weight: 800; }
.mobile-menu { display: none; }

.app-view { padding: 27px 32px 48px; max-width: 1600px; margin: auto; }
.dashboard-grid { display: grid; gap: 20px; }
.welcome-row { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.page-intro { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.button { border: 0; border-radius: 8px; padding: 10px 14px; font-size: 13px; font-weight: 750; transition: transform .15s, box-shadow .15s; }
.button:hover { transform: translateY(-1px); box-shadow: 0 5px 15px rgba(18,61,96,.12); }
.button-primary { background: var(--blue); color: white; }
.button-secondary { background: #e7f1fb; color: #2369ad; }
.button-danger { background: #fbe9e9; color: #bf4245; }
.button-light { background: white; color: var(--ink); border: 1px solid var(--line); }
.button-sm { padding: 7px 10px; border-radius: 7px; font-size: 11px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(145px, 1fr)); gap: 16px; }
.metric-card { padding: 17px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.metric-label { color: var(--muted); font-size: 12px; margin-bottom: 10px; display: flex; justify-content: space-between; gap: 8px; }
.metric-label span { width: 8px; height: 8px; border-radius: 50%; margin-top: 4px; }
.metric-card strong { font-size: 26px; letter-spacing: -.8px; }
.metric-foot { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.is-blue { background: var(--blue); }.is-green { background: var(--green); }.is-amber { background: var(--amber); }.is-red { background: var(--red); }

/* Refined owner dashboard */
.dashboard-v2 { display: grid; gap: 17px; }
.dashboard-hero { min-height: 154px; padding: 25px 27px; background: linear-gradient(120deg, #102b43, #1c4968); border-radius: 16px; color: white; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; overflow: hidden; position: relative; }
.dashboard-hero::after { content: ""; width: 230px; height: 230px; position: absolute; border: 1px solid rgba(149,211,242,.14); border-radius: 50%; right: -54px; top: -110px; box-shadow: 0 0 0 32px rgba(149,211,242,.045), 0 0 0 64px rgba(149,211,242,.025); }
.hero-copy, .hero-actions { position: relative; z-index: 1; }
.dashboard-hero .eyebrow { color: #a9cce1; margin-bottom: 8px; }
.hero-copy h2 { margin: 0; font-size: 25px; line-height: 1.1; letter-spacing: -.75px; }
.hero-copy > p:last-child { max-width: 560px; margin: 9px 0 0; color: #c6d9e6; font-size: 13px; line-height: 1.45; }
.hero-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.live-chip { background: rgba(255,255,255,.11); color: #deebf3; padding: 8px 10px; border-radius: 999px; font-size: 11px; white-space: nowrap; }
.live-chip i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; background: #53d490; box-shadow: 0 0 0 3px rgba(83,212,144,.16); }
.button-hero { background: white; color: #15364f; box-shadow: none; }
.button-hero:hover { box-shadow: 0 6px 16px rgba(5,18,31,.18); }
.summary-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 14px; background: white; overflow: hidden; }
.summary-stat { padding: 18px 20px; border-right: 1px solid var(--line); display: grid; gap: 3px; }
.summary-stat:last-child { border-right: 0; }
.summary-stat > span { color: var(--muted); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; }
.summary-stat strong { color: #173149; font-size: 27px; line-height: 1.05; letter-spacing: -1px; }
.summary-stat strong em { font-size: 16px; color: #6e8190; font-style: normal; font-weight: 650; letter-spacing: -.35px; }
.summary-stat small { color: var(--muted); font-size: 11px; }
.summary-stat.requires-action { background: #fffafa; }.summary-stat.requires-action strong { color: #b8494a; }
.dashboard-columns { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(285px, .75fr); gap: 17px; align-items: start; }
.dashboard-v2 .panel { border-radius: 14px; box-shadow: none; }
.dashboard-v2 .panel-heading { padding: 16px 18px; }
.fleet-list { padding: 2px 14px 9px; }
.fleet-row { display: grid; grid-template-columns: minmax(160px, 1.25fr) minmax(130px, 1fr) minmax(110px, .85fr) max-content 24px; gap: 12px; align-items: center; padding: 13px 4px; border-bottom: 1px solid #edf1f4; }
.fleet-row:last-child { border-bottom: 0; }
.fleet-row .asset-cell { font-size: 12px; }
.fleet-driver strong, .fleet-driver small, .fleet-state small { display: block; }
.fleet-driver strong { font-size: 12px; }.fleet-driver small, .fleet-state small { margin-top: 3px; color: var(--muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fleet-state { min-width: 0; }.fleet-state .pill { margin-bottom: 2px; }.fleet-check { justify-self: end; }
.row-open { width: 24px; height: 24px; border: 0; border-radius: 6px; background: #f0f5f8; color: #668095; font-size: 21px; line-height: 18px; }
.row-open:hover { background: #e0eef8; color: var(--blue); }
.priority-list { padding: 4px 14px 8px; }
.priority-row { width: 100%; text-align: left; display: grid; grid-template-columns: 25px 1fr 12px; align-items: start; gap: 9px; padding: 14px 4px; border: 0; border-bottom: 1px solid #edf1f4; background: transparent; color: var(--ink); }
.priority-row:last-child { border-bottom: 0; }.priority-row > span { height: 24px; width: 24px; display: grid; place-items: center; border-radius: 7px; background: #e7f2fb; color: #256da9; font-weight: 800; }.priority-row.priority-danger > span { background: #fdeaea; color: #c2494c; }.priority-row.priority-clear > span { background: #e8f6ef; color: #168159; }
.priority-row strong, .priority-row small { display: block; }.priority-row strong { font-size: 12px; }.priority-row small { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.38; }.priority-row b { color: #9aabb7; font-size: 19px; font-weight: 400; line-height: 18px; }
button.priority-row:hover strong { color: var(--blue); }
.priority-footer { padding: 13px 18px; border-top: 1px solid #edf1f4; display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--muted); font-size: 10px; }

.layout-main { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(270px, .75fr); gap: 20px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.panel-heading { padding: 17px 18px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid #e7edf1; }
.panel-heading h2 { font-size: 15px; margin: 0; letter-spacing: -.2px; }
.panel-heading small { color: var(--muted); font-size: 11px; }
.link-button { color: var(--blue); border: 0; background: transparent; padding: 0; font-size: 12px; font-weight: 750; }

.map-canvas { min-height: 345px; position: relative; overflow: hidden; background-color: #dce6d9; background-image: linear-gradient(30deg, transparent 48%, rgba(237,246,229,.9) 49%, rgba(237,246,229,.9) 51%, transparent 52%), linear-gradient(120deg, transparent 47%, rgba(255,255,255,.78) 48%, rgba(255,255,255,.78) 50%, transparent 51%), linear-gradient(0deg, rgba(132,168,135,.17) 1px, transparent 1px), linear-gradient(90deg, rgba(132,168,135,.17) 1px, transparent 1px); background-size: 190px 160px, 130px 130px, 44px 44px, 44px 44px; }
.map-canvas::after { content: "Live map demonstration"; position: absolute; left: 13px; bottom: 12px; color: #597362; background: rgba(255,255,255,.75); border-radius: 5px; padding: 4px 7px; font-size: 10px; font-weight: 700; }
.map-road { position: absolute; height: 12px; background: rgba(255,255,255,.88); box-shadow: 0 0 0 2px rgba(122,157,127,.15); transform: rotate(-21deg); border-radius: 5px; width: 135%; left: -12%; top: 47%; }
.map-road.two { transform: rotate(53deg); width: 86%; left: 12%; top: 38%; height: 9px; }
.map-label { position: absolute; font-size: 10px; color: #5f7666; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.map-label.one { left: 10%; top: 15%; }.map-label.two { right: 12%; bottom: 19%; }.map-label.three { left: 38%; bottom: 10%; }
.truck-marker { position: absolute; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: white; border: 3px solid white; box-shadow: 0 3px 11px rgba(33,67,87,.3); display: grid; place-items: center; font-size: 14px; z-index: 2; }
.truck-marker.idle { background: var(--amber); }.truck-marker.alert { background: var(--red); }
.truck-marker::after { content: attr(data-name); position: absolute; top: 32px; white-space: nowrap; color: var(--ink); font-size: 10px; font-weight: 800; background: white; padding: 3px 5px; border-radius: 4px; box-shadow: 0 2px 5px rgba(0,0,0,.09); }
.map-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 17px; border-top: 1px solid #e7edf1; font-size: 11px; color: var(--muted); }
.legend-item { display: flex; align-items: center; gap: 5px; }.legend-dot { width: 7px; height: 7px; border-radius: 50%; }

.attention-list { padding: 2px 16px 13px; }.attention-item { display: flex; gap: 10px; padding: 14px 0; border-bottom: 1px solid #edf1f4; }.attention-item:last-child { border: 0; }
.attention-icon { min-width: 30px; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: #fff2dd; color: var(--amber); font-size: 14px; }.attention-icon.danger { background: #fde9e9; color: var(--red); }.attention-icon.info { background: #e6f2fc; color: var(--blue); }
.attention-copy { min-width: 0; }.attention-copy strong { display: block; font-size: 12px; }.attention-copy p { margin: 3px 0 0; font-size: 11px; color: var(--muted); line-height: 1.35; }

.table-wrap { overflow-x: auto; }.status-table { width: 100%; border-collapse: collapse; font-size: 12px; }.status-table th { text-align: left; color: var(--muted); font-weight: 700; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; padding: 11px 17px; background: #fbfcfd; border-bottom: 1px solid #e7edf1; }.status-table td { padding: 13px 17px; border-bottom: 1px solid #edf1f4; vertical-align: middle; }.status-table tr:last-child td { border-bottom: 0; }
.asset-cell { display: flex; align-items: center; gap: 8px; font-weight: 750; white-space: nowrap; }.asset-icon { width: 28px; height: 28px; border-radius: 7px; background: #e7f1fb; color: #2a76bb; display: grid; place-items: center; font-size: 14px; }.asset-icon.trailer { background: #e9f7f2; color: #168c6d; }
.subtle { color: var(--muted); font-size: 11px; }.pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 4px 7px; font-size: 10px; font-weight: 750; white-space: nowrap; }.pill::before { content: ""; height: 6px; width: 6px; border-radius: 50%; background: currentColor; }.pill-green { color: #188359; background: #e8f6ef; }.pill-amber { color: #a86708; background: #fff3df; }.pill-red { color: #b84145; background: #fde9e9; }.pill-blue { color: #266eb4; background: #e7f2fc; }.pill-grey { color: #627586; background: #eef2f5; }

.page-layout { display: grid; gap: 20px; }.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; }.page-heading h2 { font-size: 22px; margin: 0; letter-spacing: -.5px; }.page-heading p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }.section-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; }.section-grid.equal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.filter-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }.filter-chip { border: 1px solid var(--line); background: #fff; color: var(--muted); border-radius: 999px; padding: 6px 9px; font-size: 11px; }.filter-chip.active { color: #1e67a9; background: #e9f3fc; border-color: #c7e1f6; font-weight: 700; }
.list-row { padding: 15px 18px; border-bottom: 1px solid #edf1f4; display: flex; justify-content: space-between; align-items: center; gap: 10px; }.list-row:last-child { border-bottom: 0; }.list-row strong { display: block; font-size: 12px; }.list-row p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }.list-meta { text-align: right; min-width: 100px; }.list-meta small { display: block; color: var(--muted); margin-top: 4px; font-size: 10px; }
.doc-progress { width: 84px; height: 5px; border-radius: 5px; background: #e6edf1; overflow: hidden; margin: 5px 0 0 auto; }.doc-progress > span { display: block; height: 100%; border-radius: 5px; background: var(--green); }.doc-progress.warn > span { background: var(--amber); }.doc-progress.danger > span { background: var(--red); }

.form-card { padding: 0; }.form-section { padding: 19px; border-bottom: 1px solid #e7edf1; }.form-section:last-child { border-bottom: 0; }.form-section h3 { margin: 0 0 4px; font-size: 14px; }.form-section > p { margin: 0 0 14px; color: var(--muted); font-size: 12px; }.form-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }.field { display: grid; gap: 5px; }.field label { color: #526779; font-size: 11px; font-weight: 750; }.field input, .field select, .field textarea { width: 100%; border: 1px solid #cfdce4; border-radius: 7px; padding: 9px; color: var(--ink); background: white; font-size: 13px; }.field textarea { min-height: 76px; resize: vertical; }.form-note { background: #eff7fd; border: 1px solid #d7eafb; border-radius: 8px; padding: 10px; color: #39637f; font-size: 11px; line-height: 1.42; }
.checklist { display: grid; gap: 8px; }.check-row { display: flex; align-items: flex-start; gap: 9px; padding: 10px; border: 1px solid #e0e9ee; border-radius: 8px; background: #fcfdfd; }.check-row input { accent-color: var(--teal); margin: 2px 0 0; width: 15px; height: 15px; }.check-row label { font-size: 12px; line-height: 1.35; flex: 1; }.check-row small { display: block; color: var(--muted); margin-top: 2px; font-size: 10px; }.form-actions { display: flex; justify-content: flex-end; gap: 9px; padding: 16px 19px; background: #fafcfd; }
.upload-box { display: block; border: 1.5px dashed #b6cbd9; border-radius: 9px; padding: 18px; text-align: center; background: #f8fbfd; color: var(--muted); font-size: 12px; }.upload-box input { margin-top: 8px; max-width: 100%; font-size: 11px; }.upload-name { display: block; margin: 8px 0 0; color: var(--teal); font-size: 11px; font-weight: 700; }

.driver-page { max-width: 800px; margin: 0 auto; padding: 12px 0; }.driver-banner { background: linear-gradient(135deg, #0e2b47, #1a557b); color: white; padding: 20px; border-radius: 14px; display: flex; align-items: center; justify-content: space-between; gap: 15px; box-shadow: var(--shadow); }.driver-banner h2 { margin: 0; font-size: 20px; }.driver-banner p { margin: 5px 0 0; color: #c3d8e9; font-size: 12px; }.shift-time { background: rgba(255,255,255,.12); border-radius: 8px; padding: 8px 10px; text-align: right; }.shift-time strong, .shift-time small { display: block; }.shift-time strong { font-size: 13px; }.shift-time small { font-size: 10px; color: #cce2f2; margin-top: 2px; }.driver-grid { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }.action-card { padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: var(--shadow); text-align: left; }.action-card:hover { border-color: #9dc7e9; }.action-card .action-icon { font-size: 22px; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: #e6f2fc; color: #226dac; }.action-card .action-icon.green { background: #e7f7f1; color: var(--teal); }.action-card .action-icon.amber { background: #fff3df; color: var(--amber); }.action-card h3 { font-size: 14px; margin: 12px 0 3px; }.action-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.4; }.shift-card { margin-top: 16px; }.driver-footer { color: var(--muted); margin: 16px 0; font-size: 11px; text-align: center; }

/* Contractor operations modules */
.sidebar { overflow-y: auto; }
.field-wide { grid-column: 1 / -1; }
.operations-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.table-search { display: grid; gap: 4px; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.table-search input { width: 210px; padding: 7px 9px; border-radius: 7px; border: 1px solid var(--line); color: var(--ink); background: #0f0b15; font-size: 11px; text-transform: none; letter-spacing: 0; }
.person-cell { display: flex; align-items: center; gap: 9px; }.person-cell > span { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #e7ddff; background: #35234b; font-size: 10px; font-weight: 850; }
.compliance-alert { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px 18px; border-radius: 12px; border: 1px solid #68333c; background: linear-gradient(110deg, #241218, #1a101d); }.compliance-alert > div { display: flex; align-items: center; gap: 11px; }.compliance-alert > div > span { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px; display: grid; place-items: center; color: #ffb1b7; background: #3a1a21; font-weight: 900; }.compliance-alert strong { font-size: 13px; }.compliance-alert p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.compliance-summary { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }.compliance-summary article { padding: 14px 15px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); }.compliance-summary span, .compliance-summary small { display: block; color: var(--muted); font-size: 10px; }.compliance-summary strong { display: block; margin: 5px 0 2px; font-size: 21px; }
.message-row { display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 10px; padding: 17px 18px; border-bottom: 1px solid var(--line); }.message-row:last-child { border-bottom: 0; }.message-row.unread { background: rgba(139,92,246,.055); }.message-mark { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #c4b5fd; background: #2b1d3d; }.message-row strong { font-size: 13px; }.message-row p { margin: 4px 0 7px; color: var(--muted); font-size: 12px; line-height: 1.45; }.message-row small { color: #806f91; font-size: 10px; }
.driver-notice { width: 100%; margin-top: 14px; padding: 13px 14px; display: grid; grid-template-columns: 32px minmax(0,1fr) 16px; align-items: center; gap: 10px; text-align: left; color: var(--ink); background: #1d1528; border: 1px solid #4d3761; border-radius: 11px; }.driver-notice > span { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #d7c2ff; background: #35234b; }.driver-notice strong { font-size: 12px; }.driver-notice p { margin: 3px 0 0; color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.driver-notice b { color: #927da6; }
.action-card { position: relative; }.action-card > small { position: absolute; right: 14px; top: 14px; color: #cab6df; font-size: 10px; font-weight: 800; }
.empty-state { padding: 24px; text-align: center; color: var(--muted); }.empty-state strong { display: block; color: var(--ink); font-size: 13px; }.empty-state p { margin: 5px 0 0; font-size: 11px; }
.form-step { display: flex; align-items: center; gap: 10px; padding: 13px 19px; color: #d9cced; background: #1e1728; border-bottom: 1px solid var(--line); }.form-step > span { width: 25px; height: 25px; border-radius: 8px; display: grid; place-items: center; flex: 0 0 auto; color: white; background: linear-gradient(135deg, #9b5de5, #7548d8); font-size: 11px; font-weight: 850; }.form-step strong, .form-step small { display: block; }.form-step strong { font-size: 12px; }.form-step small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.fuel-total { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; padding: 14px 16px; color: #cdbfe1; background: #20162c; border: 1px solid #49355e; border-radius: 10px; }.fuel-total span { font-size: 11px; font-weight: 750; }.fuel-total strong { color: #f3eaff; font-size: 20px; }
.upload-prominent { margin-top: 12px; padding: 22px; }.upload-prominent strong { color: var(--ink); font-size: 12px; }.upload-prominent span { display: inline-block; margin-top: 4px; font-size: 10px; }.consent-row { margin-top: 12px; }.attachment-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }.attachment-actions p { margin: 0; color: var(--muted); font-size: 11px; }.status-table td > .button { margin-top: 5px; }
.media-help { margin: 4px 0 13px !important; }.hazard-media-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }.hazard-media-card { min-width: 0; padding: 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; color: var(--ink); background: #100c16; border: 1px solid #453454; border-radius: 11px; }.hazard-media-card .media-symbol { width: 30px; height: 30px; display: grid; place-items: center; color: #d8c7f2; background: #2c1e3b; border-radius: 8px; font-size: 13px; }.hazard-media-card strong { font-size: 12px; }.hazard-media-card small { min-height: 27px; color: var(--muted); font-size: 10px; line-height: 1.35; }.hazard-media-card input[type="file"] { width: 100%; margin-top: 3px; color: #bcaecb; font-size: 10px; }.hazard-media-card .upload-name { margin: 2px 0 0; max-width: 100%; color: #bd9df1; font-size: 9px; line-height: 1.35; overflow-wrap: anywhere; }.voice-recorder .button { margin-top: 4px; }.recording-status { color: #92829f; font-size: 9px; }.recording-status.is-recording { color: #ff9ea7; font-weight: 800; }.voice-recorder audio { width: 100%; height: 34px; margin-top: 3px; }

/* Seriousness-based hazard reporting and Director notifications */
.driver-report-section { margin-top: 18px; padding: 18px; border: 1px solid #563667; border-radius: 14px; background: radial-gradient(circle at 95% 0, rgba(163,91,214,.16), transparent 30%), #15101c; box-shadow: var(--shadow); }.report-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }.report-section-head > div { display: flex; gap: 11px; }.report-section-head h2 { margin: 0; font-size: 18px; }.report-section-head p:not(.eyebrow) { margin: 4px 0 0; color: var(--muted); font-size: 11px; }.report-symbol { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: linear-gradient(145deg, #d04d50, #872c39); font-size: 20px; font-weight: 900; }
.report-level-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 9px; margin-top: 16px; }.report-level { min-height: 88px; padding: 13px; border: 1px solid; border-radius: 10px; text-align: left; color: var(--ink); transition: transform .15s, box-shadow .15s; }.report-level:hover { transform: translateY(-2px); }.report-level strong, .report-level span { display: block; }.report-level strong { font-size: 13px; }.report-level span { margin-top: 6px; font-size: 10px; line-height: 1.35; opacity: .8; }.report-level.severity-critical { background: #351118; border-color: #8b303e; }.report-level.severity-high { background: #34200e; border-color: #875019; }.report-level.severity-medium { background: #2b2311; border-color: #716026; }.report-level.severity-low { background: #142720; border-color: #2c6650; }.report-emergency-note { margin: 12px 0 0; padding: 9px 10px; color: #e7bec2; background: #251319; border-radius: 8px; font-size: 10px; line-height: 1.45; }
.hazard-priority-banner { display: flex; align-items: center; gap: 11px; padding: 15px 18px; border-bottom: 1px solid; }.hazard-priority-banner > span { width: 33px; height: 33px; border-radius: 9px; display: grid; place-items: center; flex: 0 0 auto; color: white; font-weight: 900; }.hazard-priority-banner strong, .hazard-priority-banner small { display: block; }.hazard-priority-banner strong { font-size: 13px; }.hazard-priority-banner small { margin-top: 3px; font-size: 10px; opacity: .82; }.hazard-priority-banner.severity-critical { color: #ffcbd0; background: #321118; border-color: #71303a; }.hazard-priority-banner.severity-critical > span { background: #be3545; }.hazard-priority-banner.severity-high { color: #ffd6a0; background: #30200e; border-color: #684619; }.hazard-priority-banner.severity-high > span { background: #c76c19; }.hazard-priority-banner.severity-medium { color: #f7e29b; background: #2b2512; border-color: #5f5221; }.hazard-priority-banner.severity-medium > span { background: #a28724; }.hazard-priority-banner.severity-low { color: #aee9cf; background: #13271f; border-color: #295d49; }.hazard-priority-banner.severity-low > span { background: #277b5c; }.hazard-confirm { margin-top: 12px; }
.hazard-summary { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }.hazard-summary article { padding: 15px; border: 1px solid; border-radius: 11px; }.hazard-summary span, .hazard-summary small { display: block; }.hazard-summary span { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }.hazard-summary strong { display: block; margin: 5px 0 2px; font-size: 24px; }.hazard-summary small { font-size: 10px; opacity: .75; }.hazard-summary .severity-critical { color: #ffb7bd; background: #2c1117; border-color: #6c2b35; }.hazard-summary .severity-high { color: #ffc47b; background: #2d1e0d; border-color: #694519; }.hazard-summary .severity-medium { color: #ead77f; background: #29230f; border-color: #61531f; }.hazard-summary .severity-low { color: #86d8b6; background: #12251e; border-color: #285b48; }
.severity-badge { display: inline-flex; padding: 4px 7px; border-radius: 999px; font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .05em; }.severity-badge.severity-critical { color: #ffd1d5; background: #7a2633; }.severity-badge.severity-high { color: #ffe0b5; background: #704315; }.severity-badge.severity-medium { color: #f2e6aa; background: #625522; }.severity-badge.severity-low { color: #b7ebd5; background: #245c47; }.hazard-table-row.severity-critical td:first-child { box-shadow: inset 4px 0 #d74756; }.hazard-table-row.severity-high td:first-child { box-shadow: inset 4px 0 #d47b25; }.hazard-table-row.severity-medium td:first-child { box-shadow: inset 4px 0 #b69a2b; }.hazard-table-row.severity-low td:first-child { box-shadow: inset 4px 0 #3b9c76; }.hazard-priority.severity-critical { background: #2c1117; }.hazard-priority.severity-high { background: #2c1b0c; }.hazard-priority.severity-medium { background: #29230f; }.hazard-priority.severity-low { background: #12251e; }
.notification-list { max-height: 65vh; overflow-y: auto; }.director-notification { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: start; gap: 11px; padding: 15px 18px; border-bottom: 1px solid var(--line); border-left: 4px solid #6d5a7c; }.director-notification.severity-critical { border-left-color: #e34a5a; background: rgba(190,53,69,.09); }.director-notification.severity-high, .notification-defect { border-left-color: #db812c; background: rgba(199,108,25,.07); }.director-notification.severity-medium, .notification-admin { border-left-color: #b79c32; }.director-notification.severity-low { border-left-color: #3a9b75; }.notification-symbol { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #f4eaff; background: #332442; font-weight: 900; }.notification-title { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }.notification-title strong { font-size: 12px; }.director-notification p { margin: 5px 0; color: var(--muted); font-size: 11px; line-height: 1.4; }.director-notification small { color: #857592; font-size: 9px; }.notification-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.icon-button.has-critical { color: #fff; background: #9e2939; border-color: #e25361; animation: critical-pulse 1.8s infinite; }.icon-button.has-high { color: #ffd6a2; background: #41240e; border-color: #9b591e; }.icon-button.has-medium { color: #ead782; background: #342c10; border-color: #746222; }.icon-button.has-low { color: #91ddbd; background: #173126; border-color: #316d55; } @keyframes critical-pulse { 50% { box-shadow: 0 0 0 6px rgba(226,83,97,.12); } }

.modal-backdrop { position: fixed; z-index: 10; inset: 0; background: rgba(7,23,39,.48); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }.modal { width: min(720px, calc(100vw - 28px)); max-height: calc(var(--app-viewport-height) - 28px); overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; position: fixed; z-index: 11; left: 50%; top: 50%; transform: translate(-50%,-50%); background: white; border-radius: 13px; box-shadow: 0 25px 70px rgba(0,0,0,.25); }.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 19px; border-bottom: 1px solid var(--line); }.modal-head h2 { margin: 0; font-size: 17px; }.modal-head p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }.modal-close { background: #f0f4f6; border: 0; width: 28px; height: 28px; border-radius: 50%; color: var(--muted); font-size: 17px; }.modal-body { padding: 0; }
.toast-region { position: fixed; z-index: 20; bottom: 22px; right: 22px; display: grid; gap: 8px; }.toast { background: #16354f; color: white; padding: 12px 15px; border-radius: 8px; box-shadow: 0 10px 25px rgba(12,34,53,.25); font-size: 12px; animation: toast-in .2s ease-out; }.toast.success { background: #137557; }.toast.warning { background: #b76b07; } @keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1050px) { .metric-grid { grid-template-columns: repeat(2, 1fr); }.layout-main, .section-grid, .dashboard-columns { grid-template-columns: 1fr; }.sidebar { width: 220px; }.main-content { margin-left: 220px; width: calc(100% - 220px); } }
@media (max-width: 720px) { .access-screen { padding: 15px; align-items: start; }.access-card { margin-top: 22px; padding: 22px; }.access-copy { margin: 23px 0 18px; }.access-copy h1 { font-size: 25px; }.demo-access { align-items: flex-start; flex-direction: column; }.demo-access > div { justify-content: flex-start; }.sidebar { transform: translateX(-100%); transition: transform .2s; width: 260px; box-shadow: 12px 0 30px rgba(5,24,40,.18); }.sidebar.open { transform: translateX(0); }.main-content { margin-left: 0; width: 100%; }.topbar { min-height: 75px; padding: 14px 17px; }.topbar h1 { font-size: 18px; }.mobile-menu { display: inline-block; border: 0; padding: 7px; background: transparent; color: var(--ink); font-size: 20px; margin-right: 7px; }.topbar > div:first-of-type { flex: 1; }.topbar { justify-content: flex-start; }.icon-button { display: none; }.driver-toggle { font-size: 0; padding: 5px; }.driver-avatar { width: 27px; height: 27px; }.app-view { padding: 19px 16px 36px; }.welcome-row, .page-heading { align-items: flex-start; flex-direction: column; }.metric-grid { gap: 10px; }.metric-card { padding: 13px; }.metric-card strong { font-size: 22px; }.driver-grid { grid-template-columns: 1fr; }.form-row, .section-grid.equal { grid-template-columns: 1fr; }.field-wide { grid-column: auto; }.status-table th, .status-table td { padding-left: 11px; padding-right: 11px; }.map-canvas { min-height: 300px; }.driver-banner { align-items: flex-start; flex-direction: column; }.shift-time { text-align: left; }.topbar-actions { margin-left: auto; }.dashboard-hero { min-height: 0; padding: 21px; align-items: flex-start; flex-direction: column; }.hero-copy h2 { font-size: 22px; }.hero-actions { width: 100%; justify-content: space-between; }.summary-strip { grid-template-columns: 1fr; }.summary-stat { padding: 14px 16px; grid-template-columns: 1fr auto; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); }.summary-stat:last-child { border-bottom: 0; }.summary-stat small { grid-column: 1 / -1; }.fleet-list { padding: 2px 12px 8px; }.fleet-row { grid-template-columns: minmax(0, 1fr) max-content 24px; gap: 8px; }.fleet-driver { display: none; }.fleet-state { display: none; }.fleet-check { justify-self: end; }.priority-footer { align-items: flex-start; flex-direction: column; }.compliance-summary { grid-template-columns: repeat(2, minmax(0,1fr)); }.compliance-alert { align-items: flex-start; flex-direction: column; }.panel-heading { flex-wrap: wrap; }.table-search { width: 100%; }.table-search input { width: 100%; } }
@media (max-width: 720px) { .icon-button { display: grid; place-items: center; }.report-section-head { flex-direction: column; }.report-level-grid, .hazard-summary { grid-template-columns: repeat(2, minmax(0,1fr)); }.report-level { min-height: 82px; }.director-notification { grid-template-columns: 32px minmax(0,1fr); }.notification-actions { grid-column: 2; justify-content: flex-start; }.hazard-priority-banner { align-items: flex-start; }.driver-report-section { padding: 15px; } }
@media (max-width: 520px) { .hazard-media-grid { grid-template-columns: 1fr; }.hazard-media-card small { min-height: 0; } }

/* Dark purple and black visual theme */
body { color-scheme: dark; background: radial-gradient(circle at 82% 0, #1d102b 0, #09070d 32%, #070509 100%); }
.access-screen { background: radial-gradient(circle at 85% 8%, rgba(139,92,246,.24), transparent 34%), linear-gradient(145deg, #08060b, #100b17); }
.access-card { background: rgba(20,15,28,.96); border-color: #3b2e4c; box-shadow: 0 24px 70px rgba(0,0,0,.5); }
.access-form label, .field label { color: #c2b7d2; }
.access-form input, .field input, .field select, .field textarea { color: var(--ink); background: #0e0b13; border-color: #453653; }
.access-form input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid rgba(167,139,250,.45); border-color: #9b72f2; }
input::placeholder, textarea::placeholder { color: #a99bb7; }
option { color: var(--ink); background: #15111c; }
.access-help, .access-copy p:last-child { color: var(--muted); }
.cloud-setup-note { color: #c9bce0; background: #1d1528; border-color: #48345f; }.cloud-setup-note strong { color: #eadfff; }
.demo-access { border-color: var(--line); }

.sidebar { background: linear-gradient(180deg, #08060b 0%, #100917 100%); border-right: 1px solid #2d2337; }
.brand-mark { background: linear-gradient(145deg, #a855f7, #6d3bd1); box-shadow: 0 8px 18px rgba(112,61,205,.3); }
.brand small, .sidebar-footer small { color: #8f809f; }
.nav-item { color: #b5a9c4; }.nav-item span { color: #8c74a7; }
.nav-item:hover { background: rgba(168,85,247,.1); }
.nav-item.active { background: linear-gradient(90deg, rgba(139,92,246,.3), rgba(94,54,135,.22)); box-shadow: inset 3px 0 #a78bfa; }
.nav-item.active span { color: #c4b5fd; }
.sidebar-footer { border-color: rgba(167,139,250,.16); }
.status-dot { background: #a78bfa; box-shadow: 0 0 0 3px rgba(167,139,250,.14); }

.topbar { background: rgba(9,7,13,.88); border-color: #30263b; }
.icon-button, .driver-toggle, .button-light, .filter-chip { color: var(--ink); background: #17121f; border-color: #3b3048; }
.driver-avatar { color: #e5dcff; background: #35234b; }
.button-primary { background: linear-gradient(135deg, #9b5de5, #7548d8); }
.button-secondary { color: #d8caff; background: #291d3a; }
.button-danger { color: #ffb7bd; background: #38191f; }
.button-hero { color: #f7f2ff; background: #6f42c1; }
.button:hover { box-shadow: 0 7px 20px rgba(111,66,193,.28); }
.link-button { color: #b99aff; }

.dashboard-hero, .driver-banner { background: radial-gradient(circle at 88% 15%, rgba(195,156,255,.18), transparent 34%), linear-gradient(120deg, #100b17, #341b4b); border: 1px solid #49305d; }
.dashboard-hero::after { border-color: rgba(199,172,255,.15); box-shadow: 0 0 0 32px rgba(151,94,215,.05), 0 0 0 64px rgba(151,94,215,.025); }
.dashboard-hero .eyebrow, .driver-banner .eyebrow { color: #bfa2dd !important; }
.hero-copy > p:last-child, .driver-banner p, .shift-time small { color: #c9bdd7; }
.live-chip, .shift-time { background: rgba(255,255,255,.08); }
.live-chip i { background: #c084fc; box-shadow: 0 0 0 3px rgba(192,132,252,.16); }

.panel, .metric-card, .action-card, .summary-strip, .modal { color: var(--ink); background: #15111c; border-color: var(--line); }
.metric-card, .panel, .action-card { box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.summary-stat { border-color: var(--line); background: #15111c; }
.summary-stat strong { color: #f4efff; }.summary-stat strong em { color: #a99db8; }
.summary-stat.requires-action { background: #211118; }.summary-stat.requires-action strong { color: #ff929b; }
.fleet-row, .priority-row, .attention-item, .list-row, .status-table td { border-color: #2b2335; }
.panel-heading, .priority-footer, .map-legend, .form-section, .modal-head { border-color: var(--line); }
.row-open, .modal-close { color: #c7b7db; background: #261d31; }
.row-open:hover, .modal-close:hover { color: white; background: #4b2b6d; }
.priority-row > span { color: #c4b5fd; background: #2b1d3d; }
.priority-row.priority-danger > span { color: #ff9da5; background: #37191e; }
.priority-row.priority-clear > span { color: #69d6a7; background: #132c23; }
.priority-row b { color: #766686; }

.status-table th { color: #a99db8; background: #100c16; border-color: var(--line); }
.status-table tbody tr:hover { background: rgba(139,92,246,.055); }
.asset-icon { color: #c4b5fd; background: #2b1d3d; }.asset-icon.trailer { color: #d8b4fe; background: #2e193a; }
.filter-chip.active { color: #e1d4ff; background: #332147; border-color: #684593; }
.doc-progress { background: #2d2537; }

.form-note { color: #c9bbe0; background: #20162c; border-color: #49355e; }
.check-row { color: var(--ink); background: #110d17; border-color: #382c45; }
.check-row input { accent-color: #a855f7; }
.form-actions { background: #100c16; }
.upload-box { color: #b5a9c4; background: #100c16; border-color: #604777; }
.upload-name { color: #c084fc; }
.action-card:hover { border-color: #7853a2; background: #191221; }
.action-card .action-icon { color: #c4b5fd; background: #2b1d3d; }
.action-card .action-icon.green { color: #77d9ae; background: #143025; }
.action-card .action-icon.amber { color: #ffc373; background: #352611; }

.map-canvas { background-color: #100c16; background-image: linear-gradient(30deg, transparent 48%, rgba(87,52,119,.45) 49%, rgba(87,52,119,.45) 51%, transparent 52%), linear-gradient(120deg, transparent 47%, rgba(31,22,41,.95) 48%, rgba(31,22,41,.95) 50%, transparent 51%), linear-gradient(0deg, rgba(139,92,246,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(139,92,246,.09) 1px, transparent 1px); }
.map-road { background: rgba(83,61,101,.8); box-shadow: 0 0 0 2px rgba(181,135,230,.08); }
.map-label { color: #9d89af; }
.map-canvas::after, .truck-marker::after { color: #e9e1f5; background: rgba(24,17,31,.92); }
.truck-marker { background: #8b5cf6; border-color: #1c1424; }

.pill-green { color: #73d9ab; background: #142d24; }.pill-amber { color: #ffc16b; background: #34240e; }.pill-red { color: #ff9ca4; background: #35171d; }.pill-blue { color: #c4b5fd; background: #2a1c3b; }.pill-grey { color: #b4a9c0; background: #27212e; }
.attention-icon { background: #34240e; }.attention-icon.danger { background: #35171d; }.attention-icon.info { background: #2a1c3b; }
.modal-backdrop { background: rgba(2,1,4,.72); }
.toast { background: #4a2870; box-shadow: 0 12px 30px rgba(0,0,0,.4); }

/* Commodity work board and Simple / Advanced Director views */
.director-view-switch { display: inline-flex; padding: 3px; gap: 2px; background: #120e18; border: 1px solid #3d304a; border-radius: 10px; }.director-view-switch button { border: 0; padding: 7px 10px; color: #9587a5; background: transparent; border-radius: 7px; font-size: 10px; font-weight: 800; }.director-view-switch button.active { color: #f5efff; background: linear-gradient(135deg, #7443c2, #553092); box-shadow: 0 4px 12px rgba(76,43,126,.35); }
.work-dashboard { max-width: 1540px; margin: 0 auto; }.work-summary { grid-template-columns: repeat(4, minmax(0,1fr)); }.work-stream-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }.work-stream-card { min-width: 0; overflow: hidden; color: var(--ink); background: #15111c; border: 1px solid #3a2e46; border-radius: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.18); }.work-stream-card > header { min-height: 86px; padding: 16px; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: start; gap: 10px; border-bottom: 1px solid #352b40; }.stream-mark { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; color: white; background: #7142b4; border-radius: 11px; font-size: 10px; font-weight: 900; letter-spacing: .05em; }.work-stream-card h2 { margin: 1px 0 0; font-size: 15px; }.work-stream-card header p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }.stream-count { padding: 5px 7px; color: #77d9ae; background: #132c23; border-radius: 999px; font-size: 9px; font-weight: 850; white-space: nowrap; }.stream-count.needs-cover { color: #ff9ea7; background: #35171d; }.stream-iron .stream-mark { background: linear-gradient(145deg, #b96836, #824126); }.stream-sand .stream-mark { background: linear-gradient(145deg, #b68b31, #735621); }.stream-lithium .stream-mark { background: linear-gradient(145deg, #7b61d9, #4e3a9f); }
.stream-progress { padding: 13px 16px; display: grid; grid-template-columns: auto minmax(70px,1fr); align-items: center; gap: 13px; background: #100c16; }.stream-progress strong, .stream-progress span { display: block; }.stream-progress strong { font-size: 15px; }.stream-progress span { margin-top: 2px; color: var(--muted); font-size: 9px; }.progress-track { height: 6px; overflow: hidden; background: #2d2537; border-radius: 999px; }.progress-track i { display: block; height: 100%; background: #9a64dc; border-radius: inherit; }.stream-iron .progress-track i { background: #b96836; }.stream-sand .progress-track i { background: #b68b31; }.stream-lithium .progress-track i { background: #8066dd; }
.assignment-list { padding: 0 14px; }.assignment-row { min-width: 0; padding: 13px 2px; display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 9px; border-bottom: 1px solid #2e2637; }.assignment-row:last-child { border-bottom: 0; }.assignment-row.assignment-missing { margin: 7px 0; padding: 12px; background: #251218; border: 1px solid #5d2933; border-radius: 9px; }.assignment-main, .assignment-state { min-width: 0; }.assignment-main strong, .assignment-main span, .assignment-main small, .assignment-state small { display: block; }.assignment-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }.assignment-main span { margin-top: 3px; color: #c8bdd4; font-size: 10px; }.assignment-main small { margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #81748e; font-size: 9px; }.assignment-state { text-align: right; }.assignment-state small { margin-top: 4px; color: #8f819d; font-size: 8px; }.work-stream-card > footer { min-height: 42px; padding: 11px 16px; color: #8f819d; background: #110d17; border-top: 1px solid #2e2637; font-size: 9px; line-height: 1.35; }
.chase-list { padding: 4px 15px 9px; }.chase-row { width: 100%; padding: 13px 3px; display: grid; grid-template-columns: 28px minmax(0,1fr) 14px; align-items: center; gap: 10px; text-align: left; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid #2d2536; }.chase-row:last-child { border-bottom: 0; }.chase-row > span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; font-size: 12px; font-weight: 900; }.chase-row strong, .chase-row small { display: block; }.chase-row strong { font-size: 11px; }.chase-row small { margin-top: 3px; color: var(--muted); font-size: 9px; }.chase-row b { color: #756681; font-size: 18px; font-weight: 400; }.chase-danger > span { color: #ffabb2; background: #35171d; }.chase-warning > span { color: #ffc16b; background: #34240e; }.advanced-dashboard { display: grid; gap: 17px; padding-top: 4px; }.advanced-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 15px; padding-top: 10px; border-top: 1px solid #352c43; }.advanced-heading h2 { margin: 0; font-size: 19px; }.advanced-heading > span { max-width: 410px; color: var(--muted); font-size: 10px; text-align: right; }.advanced-metrics { grid-template-columns: repeat(4, minmax(0,1fr)); }.work-modal-heading { padding: 13px; display: flex; align-items: center; gap: 10px; background: #100c16; border: 1px solid #3b3047; border-radius: 11px; }.work-modal-heading strong, .work-modal-heading small { display: block; }.work-modal-heading strong { font-size: 13px; }.work-modal-heading small { margin-top: 3px; color: var(--muted); font-size: 10px; }

/* Driver job-first view */
.driver-page { max-width: 900px; }.driver-job-card { margin-top: 14px; overflow: hidden; background: #15111c; border: 1px solid #49345b; border-radius: 14px; box-shadow: var(--shadow); }.driver-job-card > header { padding: 16px; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 11px; background: radial-gradient(circle at 95% 0, rgba(142,90,210,.17), transparent 45%), #17111e; border-bottom: 1px solid #352a41; }.driver-job-card header h2 { margin: 1px 0 3px; font-size: 18px; }.driver-job-card header p, .driver-job-card header span { margin: 0; }.driver-job-card header div > span { color: var(--muted); font-size: 10px; }.driver-job-card.no-assignment { border-color: #6d3039; }.driver-job-main { padding: 15px 16px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; }.driver-job-main > div { min-width: 0; }.driver-job-main small, .driver-job-main strong, .driver-job-main span { display: block; }.driver-job-main small { margin-bottom: 4px; color: #8f819d; font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }.driver-job-main strong { font-size: 12px; line-height: 1.35; }.driver-job-main span { margin-top: 3px; color: var(--muted); font-size: 9px; }.job-combination, .job-route { grid-column: 1 / -1; padding-top: 11px; border-top: 1px solid #2d2536; }.driver-job-card > footer { padding: 12px 16px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; background: #100c16; border-top: 1px solid #352a41; }.driver-job-card footer div { display: flex; align-items: baseline; gap: 6px; }.driver-job-card footer strong { font-size: 12px; }.driver-job-card footer span { color: var(--muted); font-size: 9px; }.driver-next-steps { margin-top: 18px; }.section-title { margin-bottom: 10px; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }.section-title h2 { margin: 0; font-size: 17px; }.section-title > span { color: var(--muted); font-size: 9px; }.driver-primary-actions { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; }.driver-task-card { min-height: 85px; padding: 13px; display: flex; align-items: flex-start; gap: 9px; text-align: left; color: var(--ink); background: #15111c; border: 1px solid #3a2f45; border-radius: 11px; }.driver-task-card > span { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 auto; color: #d9c9ef; background: #302140; border-radius: 8px; font-size: 10px; font-weight: 900; }.driver-task-card strong, .driver-task-card small { display: block; }.driver-task-card strong { font-size: 11px; }.driver-task-card small { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.35; }.driver-task-card.task-featured { background: linear-gradient(145deg, #27183a, #1b1226); border-color: #704a98; }.driver-task-card.task-featured > span { color: white; background: #8655ca; }.job-check-card { margin-top: 15px; }.job-check-list { padding: 6px 16px 11px; }.job-check-list > div { padding: 10px 0; display: flex; align-items: flex-start; gap: 9px; border-bottom: 1px solid #2d2536; }.job-check-list > div:last-child { border-bottom: 0; }.job-check-list span { width: 21px; height: 21px; display: grid; place-items: center; flex: 0 0 auto; color: #d8c9ed; background: #2c1e3a; border-radius: 7px; font-size: 9px; font-weight: 900; }.job-check-list p { margin: 2px 0 0; color: #c2b7cd; font-size: 10px; line-height: 1.4; }.driver-secondary-actions { margin-top: 12px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }.driver-secondary-actions button { min-width: 0; padding: 11px 8px; display: grid; grid-template-columns: 22px minmax(0,1fr) auto; align-items: center; gap: 6px; text-align: left; color: var(--ink); background: #120e18; border: 1px solid #382d43; border-radius: 9px; }.driver-secondary-actions button > span { color: #c7a9ee; font-size: 14px; text-align: center; }.driver-secondary-actions strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }.driver-secondary-actions small { min-width: 17px; padding: 2px 4px; color: #ffc1c6; background: #39171e; border-radius: 999px; font-size: 8px; text-align: center; }

/* Everyday mode deliberately keeps the first screen plain: today, safety and
   the next action. Detailed management remains available in Advanced view. */
.simple-director-mode .dashboard-hero { min-height: 0; background: #15111c; box-shadow: none; }.simple-director-mode .dashboard-hero::after { display: none; }.simple-director-mode .hero-copy h2 { font-size: 25px; }.simple-director-mode .hero-actions .button-hero { color: #eee7f8; background: #251a31; border: 1px solid #554068; box-shadow: none; }.simple-director-mode .work-stream-card, .simple-director-mode .panel, .simple-director-mode .summary-strip { box-shadow: none; }.simple-director-mode .work-stream-card > header { min-height: 72px; }.simple-director-mode .stream-mark { border-radius: 8px; background: #4e3370; }.simple-director-mode .stream-iron .stream-mark, .simple-director-mode .stream-sand .stream-mark, .simple-director-mode .stream-lithium .stream-mark { background: #4e3370; }
.driver-simple-page .driver-next-steps { margin-top: 18px; }.driver-simple-page .driver-task-card { min-height: 98px; box-shadow: none; }.driver-simple-page .driver-task-card.task-featured { color: #fff; background: #382152; border-color: #9367c7; }.driver-simple-page .driver-task-card.task-featured > span { background: #8b5dc4; }
.driver-safety-shortcuts { margin-top: 18px; }.driver-safety-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }.driver-safety-actions button { min-height: 78px; padding: 12px; display: grid; grid-template-columns: 27px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; gap: 2px 8px; text-align: left; color: var(--ink); background: #15111c; border: 1px solid #3a2f45; border-radius: 10px; }.driver-safety-actions button > span { grid-row: 1 / 3; width: 27px; height: 27px; display: grid; place-items: center; color: #f4d1d5; background: #371a22; border-radius: 8px; font-weight: 900; }.driver-safety-actions button:first-child > span { color: #dcccf3; background: #302140; }.driver-safety-actions strong { font-size: 11px; }.driver-safety-actions small { color: var(--muted); font-size: 9px; line-height: 1.25; }.driver-safety-actions button:disabled { opacity: .5; }.driver-safety-note { margin: 9px 0 0; padding: 9px 11px; color: #ebc4c9; background: #28151b; border: 1px solid #54303a; border-radius: 9px; font-size: 10px; line-height: 1.4; }
.driver-job-details, .driver-more-tools { margin-top: 13px; overflow: hidden; background: #120e18; border: 1px solid #382d43; border-radius: 10px; }.driver-job-details > summary, .driver-more-tools > summary { min-height: 48px; padding: 0 14px; display: flex; align-items: center; gap: 9px; cursor: pointer; color: #e5ddef; font-size: 11px; font-weight: 800; list-style: none; }.driver-job-details > summary::-webkit-details-marker, .driver-more-tools > summary::-webkit-details-marker { display: none; }.driver-job-details > summary > span, .driver-more-tools > summary > span { width: 24px; height: 24px; display: grid; place-items: center; color: #d7c1f5; background: #2f203e; border-radius: 7px; font-size: 14px; }.driver-job-details[open] > summary, .driver-more-tools[open] > summary { border-bottom: 1px solid #382d43; }.driver-job-details[open] > summary > span { transform: rotate(180deg); }.driver-more-tools-content { padding: 12px; }.driver-more-tools .other-truck-pack-link { margin: 0 0 11px; }.driver-more-tools .driver-secondary-actions { margin-top: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }.driver-more-tools .driver-secondary-actions button { min-height: 64px; grid-template-columns: 20px minmax(0, 1fr); grid-template-rows: auto auto; }.driver-more-tools .driver-secondary-actions button > span { grid-row: 1 / 3; }.driver-more-tools .driver-secondary-actions small { justify-self: start; }

@media (max-width: 1180px) { .work-stream-grid { grid-template-columns: 1fr; }.work-stream-card > header { min-height: 0; }.advanced-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 720px) { .director-view-switch button { padding: 6px 7px; font-size: 9px; }.work-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }.work-summary .summary-stat { border-right: 0; }.assignment-row { grid-template-columns: minmax(0,1fr) auto; }.assignment-row > .button { grid-column: 1 / -1; width: 100%; }.advanced-heading { align-items: flex-start; flex-direction: column; }.advanced-heading > span { text-align: left; }.driver-primary-actions { grid-template-columns: repeat(2,minmax(0,1fr)); }.driver-secondary-actions { grid-template-columns: repeat(2,minmax(0,1fr)); }.driver-safety-actions, .driver-more-tools .driver-secondary-actions { grid-template-columns: 1fr; } }
@media (max-width: 430px) { .director-view-switch { position: fixed; z-index: 7; right: 14px; bottom: 14px; box-shadow: 0 8px 25px rgba(0,0,0,.45); }.work-summary { grid-template-columns: 1fr; }.driver-job-card > header { align-items: start; }.driver-job-main { grid-template-columns: 1fr; }.job-combination, .job-route { grid-column: auto; }.driver-job-card > footer { grid-template-columns: 1fr; }.advanced-metrics { grid-template-columns: 1fr; } }

/* Installed-app safe areas and outdoor-readable driver controls */
.sidebar { padding-top: max(25px, env(safe-area-inset-top)); padding-bottom: max(18px, env(safe-area-inset-bottom)); padding-left: max(14px, env(safe-area-inset-left)); }
.topbar { padding-top: max(19px, env(safe-area-inset-top)); padding-right: max(32px, env(safe-area-inset-right)); }
.app-view { padding-right: max(32px, env(safe-area-inset-right)); padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
.modal { max-height: calc(var(--app-viewport-height) - 28px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
.toast-region { right: max(22px, env(safe-area-inset-right)); bottom: calc(22px + env(safe-area-inset-bottom)); }

.driver-banner p { font-size: 13px; line-height: 1.45; }
.shift-time small { font-size: 11px; }
.driver-notice strong { font-size: 13px; }.driver-notice p { font-size: 12px; line-height: 1.4; }
.driver-job-card header div > span { font-size: 12px; }
.driver-job-main small { font-size: 11px; }.driver-job-main strong { font-size: 14px; }.driver-job-main span { font-size: 11px; }
.driver-job-card footer strong { font-size: 13px; }.driver-job-card footer span { font-size: 11px; }
.section-title > span { font-size: 11px; }
.driver-task-card strong { font-size: 13px; }.driver-task-card small { font-size: 11px; }
.job-check-list p { font-size: 12px; }
.driver-secondary-actions strong { font-size: 12px; }.driver-secondary-actions small { font-size: 10px; }
.report-section-head p:not(.eyebrow) { font-size: 12px; line-height: 1.45; }
.report-level span, .report-emergency-note, .driver-footer { font-size: 11px; }

@media (max-width: 720px) {
  .sidebar { padding-left: max(14px, env(safe-area-inset-left)); }
  .topbar { padding: max(14px, env(safe-area-inset-top)) max(17px, env(safe-area-inset-right)) 14px max(17px, env(safe-area-inset-left)); }
  .topbar > div:first-of-type { min-width: 0; }
  .topbar h1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar-actions { gap: 7px; }
  .connection-status { min-height: 36px; padding: 6px 8px; font-size: 11px; }
  .app-view { padding-right: max(16px, env(safe-area-inset-right)); padding-bottom: calc(44px + env(safe-area-inset-bottom)); padding-left: max(16px, env(safe-area-inset-left)); }
  button, .button, .nav-item, .filter-chip, .director-view-switch button { min-height: 44px; }
  .mobile-menu, .icon-button, .driver-toggle, .modal-close, .row-open { min-width: 44px; width: 44px; min-height: 44px; height: 44px; }
  .field input, .field select, .field textarea, .access-form input { min-height: 44px; font-size: 16px; }
  .check-row { min-height: 44px; }.check-row input { width: 20px; height: 20px; }
  .toast-region { left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); bottom: calc(12px + env(safe-area-inset-bottom)); }
  .toast { width: min(100%, 520px); justify-self: end; }
}

@media (max-width: 430px) {
  .director-view-switch { right: max(14px, env(safe-area-inset-right)); bottom: calc(14px + env(safe-area-inset-bottom)); }
  .connection-status { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
  .connection-status:not(.is-offline):not(.is-syncing) { display: none; }
  .topbar .eyebrow { display: none; }
}

body[data-portal="employee"] .main-content { margin-left: 0; width: 100%; }

@media (pointer: coarse) {
  button, .button, .nav-item, .filter-chip, .director-view-switch button { min-height: 44px; }
  .mobile-menu, .icon-button, .driver-toggle, .modal-close, .row-open { min-width: 44px; min-height: 44px; }
  .field input, .field select, .field textarea, .access-form input { min-height: 44px; font-size: 16px; }
}

.driver-task-card:disabled { cursor: not-allowed; opacity: .5; filter: saturate(.55); box-shadow: none; }
.inspection-check { padding: 12px; background: #110d17; border: 1px solid #382c45; border-radius: 10px; }
.inspection-check label { margin-bottom: 8px; color: #e5deed; font-weight: 700; line-height: 1.4; }
body.modal-open { overflow: hidden; }

/* Separate employee and Director access surfaces */
body[data-portal="employee"] .access-screen { background: radial-gradient(circle at 84% 6%, rgba(139,92,246,.22), transparent 34%), radial-gradient(circle at 6% 92%, rgba(76,42,111,.14), transparent 28%), linear-gradient(145deg, #08060b, #100b17); }
body[data-portal="director"] .access-screen { background: radial-gradient(circle at 78% 8%, rgba(168,85,247,.3), transparent 32%), radial-gradient(circle at 8% 84%, rgba(88,45,145,.22), transparent 30%), linear-gradient(145deg, #050307, #110918); }
body[data-portal="director"] .access-card { width: min(100%, 520px); position: relative; border-color: #664487; box-shadow: 0 28px 80px rgba(0,0,0,.58), 0 0 0 1px rgba(192,132,252,.08); }
body[data-portal="director"] .access-card-director { border-color: #664487; }
body[data-portal="employee"] .access-card-employee { border-color: #3f3150; }
body[data-portal="director"] .access-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; border-radius: 18px 18px 0 0; background: linear-gradient(90deg, #7c3aed, #c084fc, #7c3aed); }
body[data-portal="director"] .access-brand .brand-mark { background: linear-gradient(145deg, #c084fc, #7137bd); }
body[data-portal="director"] .access-form .button-primary { background: linear-gradient(135deg, #a855f7, #6d3bd1); }
body[data-portal="employee"] [data-action="demo-director"], body[data-portal="director"] [data-action="demo-driver"] { display: none; }
.portal-switch { margin-top: 17px; padding-top: 15px; border-top: 1px solid #352b40; text-align: center; }
.portal-switch-link { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 10px; color: #cdb5f2; border-radius: 8px; font-size: 12px; font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.portal-switch-link:hover { color: #fff; background: rgba(139,92,246,.1); }

.access-role-row { margin-bottom: 13px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
:where(.role-badge, .portal-role-badge) { min-height: 28px; display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; color: #d8cbe7; background: #22182d; border: 1px solid #49365b; border-radius: 999px; font-size: 11px; font-weight: 850; line-height: 1.2; letter-spacing: .035em; }
:where(.role-badge, .portal-role-badge)::before { content: ""; width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #a78bfa; }
:where(.role-badge, .portal-role-badge):is(.is-director, .role-director), :where(.role-badge, .portal-role-badge)[data-role="director"] { color: #eedfff; background: #301d42; border-color: #714d8d; }
:where(.role-badge, .portal-role-badge):is(.is-director, .role-director)::before, :where(.role-badge, .portal-role-badge)[data-role="director"]::before { background: #c084fc; box-shadow: 0 0 0 3px rgba(192,132,252,.14); }
:where(.role-badge, .portal-role-badge):is(.is-employee, .is-driver, .role-employee, .role-driver), :where(.role-badge, .portal-role-badge)[data-role="employee"], :where(.role-badge, .portal-role-badge)[data-role="driver"] { color: #d8d0ff; background: #241c38; border-color: #514278; }
:where(.role-badge, .portal-role-badge):is(.is-suspended, .role-suspended), :where(.role-badge, .portal-role-badge)[data-role="suspended"] { color: #ffc1c6; background: #35171d; border-color: #71303a; }
:where(.role-badge, .portal-role-badge):is(.is-suspended, .role-suspended)::before, :where(.role-badge, .portal-role-badge)[data-role="suspended"]::before { background: #e25361; }
.access-route-link { color: #c9b3f5; font-size: 12px; font-weight: 750; text-underline-offset: 3px; }
.access-route-link:hover { color: #fff; }

/* Director safety controls for access and operational status */
.safety-control-panel { display: grid; grid-template-columns: 40px minmax(0,1fr) auto; align-items: start; gap: 13px; padding: 16px; color: var(--ink); background: #15111c; border: 1px solid #49365a; border-radius: 12px; }
.safety-control-panel + .safety-control-panel { margin-top: 10px; }
.safety-control-panel.is-warning { background: #241a0d; border-color: #6c4a1d; }.safety-control-panel.is-danger { background: #281117; border-color: #71303a; }.safety-control-panel.is-restore { background: #10251d; border-color: #2d644f; }
.safety-control-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; color: #eadbff; background: #302140; font-size: 18px; font-weight: 900; }
.safety-control-panel.is-warning .safety-control-icon { color: #ffd292; background: #402b0e; }.safety-control-panel.is-danger .safety-control-icon { color: #ffc1c6; background: #461b24; }.safety-control-panel.is-restore .safety-control-icon { color: #9ae4c3; background: #17382b; }
.safety-control-copy { min-width: 0; }.safety-control-copy h3 { margin: 1px 0 4px; font-size: 14px; }.safety-control-copy p { margin: 0; color: #b8acc5; font-size: 12px; line-height: 1.5; }.safety-control-copy small { display: block; margin-top: 6px; color: #94869f; font-size: 11px; line-height: 1.4; }
.safety-control-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.button-warning, .safety-button-warning { color: #fff2dc; background: #83500d; border: 1px solid #ad721d; }.button-control-danger, .safety-button-danger { color: #fff; background: #a63142; border: 1px solid #d04d5e; }.button-restore, .safety-button-restore { color: #effff8; background: #176548; border: 1px solid #2f8d69; }
.button-warning:disabled, .safety-button-warning:disabled, .button-control-danger:disabled, .safety-button-danger:disabled, .button-restore:disabled, .safety-button-restore:disabled { cursor: not-allowed; opacity: .55; box-shadow: none; }
.safety-control-copy > strong { display: block; margin: 1px 0 4px; color: #f4edf9; font-size: 14px; }
.assignment-held { border-color: #8a3945; box-shadow: 0 0 0 1px rgba(208,77,94,.12); }
.assignment-hold-notice { margin: 0 18px 14px; padding: 12px 14px; color: #ffd7da; background: #2b1218; border: 1px solid #71303a; border-radius: 10px; }
.assignment-hold-notice strong, .assignment-hold-notice p { display: block; }.assignment-hold-notice p { margin: 4px 0 0; color: #d1aeb4; font-size: 12px; line-height: 1.45; }
.employee-role-page .driver-banner { align-items: center; }.employee-role-page .role-badge { flex: 0 0 auto; }
.employee-tools { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Explicit confirmation and reason capture for sensitive Director actions */
.confirmation-reason-form, .reason-form { display: grid; gap: 14px; }
.confirmation-summary { padding: 13px 14px; color: #ddd2e8; background: #120e18; border: 1px solid #3d304a; border-radius: 10px; font-size: 12px; line-height: 1.5; }
.confirmation-summary strong { display: block; margin-bottom: 3px; color: #fff; font-size: 13px; }
.confirmation-summary.is-warning { color: #ffe0b2; background: #251b0d; border-color: #65461d; }.confirmation-summary.is-danger { color: #ffc6cb; background: #291218; border-color: #71303a; }.confirmation-summary.is-restore { color: #a9e9cd; background: #10241c; border-color: #2a5d49; }
.confirmation-reason { display: grid; gap: 6px; }.confirmation-reason label { color: #d8cde3; font-size: 12px; font-weight: 800; }.confirmation-reason textarea, .confirmation-reason input { width: 100%; min-height: 44px; padding: 11px 12px; color: var(--ink); background: #0e0b13; border: 1px solid #493a57; border-radius: 8px; font-size: 14px; }.confirmation-reason textarea { min-height: 104px; resize: vertical; line-height: 1.5; }
.confirmation-reason :is(input, textarea)[aria-invalid="true"] { border-color: #e25361; box-shadow: 0 0 0 3px rgba(226,83,97,.14); }
.reason-help, .reason-error { margin: 0; font-size: 11px; line-height: 1.4; }.reason-help { color: #9f92ac; }.reason-error { color: #ffafb7; font-weight: 750; }
.confirmation-check { display: flex; align-items: flex-start; gap: 10px; padding: 12px; color: #d9cfdf; background: #110d17; border: 1px solid #3b2e47; border-radius: 9px; font-size: 12px; line-height: 1.45; }.confirmation-check input { width: 20px; height: 20px; flex: 0 0 auto; margin: 0; accent-color: #a855f7; }.confirmation-check label { flex: 1; }
.confirmation-actions { display: flex; justify-content: flex-end; gap: 9px; flex-wrap: wrap; }

/* Account-suspended access state */
.suspended-access-screen { width: 100%; min-height: 100vh; min-height: var(--app-viewport-height); display: grid; place-items: center; padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)); }
.suspended-access-card { width: min(100%, 520px); text-align: left; border-color: #71303a; }
.suspended-access-head { display: flex; align-items: flex-start; gap: 13px; }
.suspended-access-icon { width: 46px; height: 46px; display: grid; place-items: center; flex: 0 0 auto; color: #ffc1c6; background: #401820; border: 1px solid #76303b; border-radius: 13px; font-size: 21px; font-weight: 900; }
.suspended-access-copy h1 { margin: 1px 0 6px; font-size: 24px; line-height: 1.15; }.suspended-access-copy p { margin: 0; color: #b9adbf; font-size: 13px; line-height: 1.55; }
.suspended-access-details { margin-top: 17px; padding: 13px 14px; color: #d6cadc; background: #120d16; border: 1px solid #45344f; border-radius: 10px; font-size: 12px; line-height: 1.5; }.suspended-access-details strong, .suspended-access-details span { display: block; }.suspended-access-details span { margin-top: 3px; color: #9f92a7; }
.suspended-access-actions { margin-top: 17px; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

/* Compact, readable management audit history */
.audit-timeline { --audit-colour: #8b5cf6; margin: 0; padding: 3px 0 0; list-style: none; }
.audit-event { position: relative; min-height: 48px; padding: 0 0 16px 30px; }
.audit-event:last-child { padding-bottom: 0; }.audit-event::before { content: ""; position: absolute; left: 6px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--audit-colour); box-shadow: 0 0 0 4px rgba(139,92,246,.14); }.audit-event:not(:last-child)::after { content: ""; position: absolute; left: 10px; top: 20px; bottom: 1px; width: 2px; background: #3b3047; }
.audit-event.is-warning { --audit-colour: #dd8b15; }.audit-event.is-danger { --audit-colour: #d04d50; }.audit-event.is-restore, .audit-event.is-success { --audit-colour: #1c9a64; }
.audit-event-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }.audit-event-head strong { color: #eee8f4; font-size: 12px; line-height: 1.35; }.audit-event time { flex: 0 0 auto; color: #95889f; font-size: 11px; white-space: nowrap; }
.audit-event p { margin: 4px 0 0; color: #b3a7bd; font-size: 11px; line-height: 1.45; }.audit-event-meta { margin-top: 4px; display: flex; gap: 7px; flex-wrap: wrap; color: #8f8199; font-size: 10px; }

@media (max-width: 720px) {
  body[data-portal="director"] .access-card { margin-top: 12px; }
  .safety-control-panel { grid-template-columns: 40px minmax(0,1fr); }
  .safety-control-actions { grid-column: 1 / -1; justify-content: stretch; }.safety-control-actions .button { flex: 1 1 150px; }
  .confirmation-actions, .suspended-access-actions { align-items: stretch; flex-direction: column; }.confirmation-actions .button, .suspended-access-actions .button { width: 100%; }
  .audit-event-head { align-items: flex-start; flex-direction: column; gap: 3px; }.audit-event time { white-space: normal; }
  .employee-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (forced-colors: active) {
  :where(.role-badge, .portal-role-badge), .safety-control-panel, .confirmation-summary, .confirmation-check, .suspended-access-card { border: 1px solid CanvasText; }
  .safety-control-icon, .suspended-access-icon, .audit-event::before { forced-color-adjust: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Director historical search, payroll and efficiency workspace */
.operations-report-page { --sheet-line: #352b40; }
.report-command-panel { overflow: visible; padding: 0; background: linear-gradient(145deg, #17111f, #110d17); border-color: #4a385a; }
.report-command-panel form { padding: 18px; }
.report-preset-row { margin-bottom: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.report-preset-row > span { margin-right: 3px; color: #a99cb5; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.report-preset-row .filter-chip.active { color: #fff; background: #7042a8; border-color: #a168df; }
.report-filter-grid { display: grid; grid-template-columns: minmax(260px, 2fr) repeat(5, minmax(130px, 1fr)); align-items: end; gap: 11px; }
.report-filter-grid .field-wide { grid-column: span 2; }
.report-search-action { min-height: 44px; display: flex; align-items: stretch; gap: 8px; }
.report-search-action .button { white-space: nowrap; }
.report-search-help { margin: 0; padding: 12px 18px; color: #aca0b7; background: rgba(8, 5, 11, .45); border-top: 1px solid #33283d; font-size: 11px; line-height: 1.45; }
.report-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.spreadsheet-wrap { max-height: 520px; overflow: auto; border-top: 1px solid var(--sheet-line); scrollbar-color: #674989 #17111d; }
.spreadsheet-table { min-width: 1080px; border-collapse: separate; border-spacing: 0; }
.spreadsheet-table th { position: sticky; z-index: 2; top: 0; color: #bfb1cb; background: #17111e; border-bottom: 1px solid #554064; box-shadow: 0 1px 0 rgba(0, 0, 0, .4); font-size: 10px; letter-spacing: .035em; text-transform: uppercase; }
.spreadsheet-table td, .spreadsheet-table th { padding: 11px 12px; border-right: 1px solid rgba(53, 43, 64, .62); }
.spreadsheet-table td:last-child, .spreadsheet-table th:last-child { border-right: 0; }
.spreadsheet-table tbody tr:nth-child(even) { background: rgba(113, 71, 148, .045); }
.spreadsheet-table tbody tr:hover { background: rgba(138, 84, 184, .11); }
.record-type { min-height: 25px; display: inline-flex; align-items: center; padding: 4px 8px; color: #dcd0e8; background: #2a2133; border: 1px solid #493959; border-radius: 999px; font-size: 10px; font-weight: 850; white-space: nowrap; }
.record-load { color: #b9dcff; background: #14253a; border-color: #294e75; }
.record-fuel { color: #ffe0a7; background: #33240e; border-color: #694815; }
.record-payment { color: #b9efd6; background: #102b21; border-color: #235f49; }
.record-gps { color: #dec7ff; background: #271a3a; border-color: #5d3984; }
.formula-note { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px 14px; padding: 13px 18px; color: #ad9fba; background: #100b15; border-top: 1px solid var(--sheet-line); font-size: 11px; line-height: 1.5; }
.formula-note strong { color: #e8deef; }
.privacy-note { margin-top: 0; border-color: #59406e; }
.gps-consent-note { margin: 12px 0; display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: start; gap: 9px; padding: 12px 14px; color: #c4b7cf; background: #17111e; border: 1px solid #463653; border-radius: 10px; }
.gps-consent-note > span { width: 28px; height: 28px; display: grid; place-items: center; color: #c6a4ef; background: #2d1e3c; border-radius: 8px; font-size: 13px; }
.gps-consent-note p { margin: 0; font-size: 11px; line-height: 1.5; }
.gps-consent-note strong { color: #eee7f4; }
.gps-consent-note.is-active { color: #b9ddcc; background: #102119; border-color: #2b654d; }
.gps-consent-note.is-active > span { color: #7bd4ac; background: #153b2c; }
.gps-track-map { overflow: hidden; background: radial-gradient(circle at 30% 20%, rgba(145, 91, 192, .13), transparent 34%), #0f0b14; border: 1px solid #49365a; border-radius: 12px; }
.gps-track-map svg { width: 100%; height: min(48vh, 370px); height: min(48dvh, 370px); display: block; }
.gps-map-grid { fill: none; stroke: #292031; stroke-width: .35; vector-effect: non-scaling-stroke; }
.gps-route-line { fill: none; stroke: #b476f0; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.gps-route-start { fill: #68d5a2; stroke: #10261c; stroke-width: 1.1; vector-effect: non-scaling-stroke; }
.gps-route-end { fill: #f0a759; stroke: #2b190a; stroke-width: 1.1; vector-effect: non-scaling-stroke; }
.gps-track-legend { min-height: 44px; display: flex; align-items: center; gap: 14px; padding: 10px 13px; color: #a99caf; background: #15101b; border-top: 1px solid #34283f; font-size: 10px; }
.gps-track-legend span { display: inline-flex; align-items: center; gap: 5px; }.gps-track-legend i { width: 8px; height: 8px; border-radius: 50%; }.gps-track-legend i.is-start { background: #68d5a2; }.gps-track-legend i.is-end { background: #f0a759; }.gps-track-legend strong { margin-left: auto; color: #ddd2e5; }
.gps-track-summary { margin-top: 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gps-track-summary > div { padding: 10px 11px; background: #15101b; border: 1px solid #392c45; border-radius: 9px; }
.gps-track-summary span, .gps-track-summary strong { display: block; }.gps-track-summary span { color: #95889f; font-size: 9px; text-transform: uppercase; }.gps-track-summary strong { margin-top: 4px; color: #eee6f2; font-size: 11px; }
.payroll-panel .spreadsheet-table td:nth-child(n+4):nth-child(-n+8), .efficiency-panel .spreadsheet-table td:nth-child(n+3) { font-variant-numeric: tabular-nums; }

@media (max-width: 1280px) {
  .report-filter-grid { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
  .report-filter-grid .field-wide { grid-column: span 2; }
}

@media (max-width: 720px) {
  .operations-report-page .page-heading { align-items: stretch; flex-direction: column; }
  .operations-report-page .page-heading > .filter-row { display: grid; grid-template-columns: 1fr 1fr; }
  .report-filter-grid { grid-template-columns: 1fr 1fr; }
  .report-filter-grid .field-wide { grid-column: 1 / -1; }
  .report-search-action { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .report-metrics { grid-template-columns: 1fr 1fr; }
  .spreadsheet-wrap { max-height: 70vh; max-height: 70dvh; }
  .formula-note { grid-template-columns: 1fr; gap: 4px; }
  .gps-track-summary { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .operations-report-page .page-heading > .filter-row, .report-filter-grid, .report-search-action, .report-metrics { grid-template-columns: 1fr; }
  .report-filter-grid .field-wide, .report-search-action { grid-column: auto; }
  .report-command-panel form, .report-search-help { padding-right: 14px; padding-left: 14px; }
}

/* Driver-first truck permits, handover, retorque and load plans */
.truck-pack-launch { width: 100%; min-height: 104px; margin-top: 14px; padding: 15px 16px; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 20px; align-items: center; gap: 12px; text-align: left; color: #f8f3ff; background: radial-gradient(circle at 92% 8%, rgba(202, 147, 255, .2), transparent 38%), linear-gradient(135deg, #271538, #17101f); border: 1px solid #76519a; border-radius: 14px; box-shadow: 0 12px 28px rgba(0, 0, 0, .24); }
.truck-pack-launch:hover { border-color: #b77bed; background-color: #2c183d; }
.truck-pack-launch-icon { width: 44px; height: 44px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #a45ee5, #6634a1); border: 1px solid #b67ee2; border-radius: 12px; font-size: 20px; font-weight: 900; }
.truck-pack-launch-copy { min-width: 0; }.truck-pack-launch-copy small, .truck-pack-launch-copy strong, .truck-pack-launch-copy em { display: block; }.truck-pack-launch-copy small { color: #c3add8; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .055em; }.truck-pack-launch-copy strong { margin-top: 4px; font-size: 15px; }.truck-pack-launch-copy em { margin-top: 5px; overflow: hidden; color: #b7a8c4; font-size: 10px; font-style: normal; line-height: 1.4; text-overflow: ellipsis; }
.truck-pack-launch-counts { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 1px 5px; color: #d8c8e7; }.truck-pack-launch-counts b { font-size: 16px; }.truck-pack-launch-counts small { color: #9e8aaa; font-size: 9px; }.truck-pack-launch-counts i { grid-column: 1 / -1; margin-top: 3px; padding: 3px 6px; color: #ffd297; background: #3a250d; border-radius: 999px; font-size: 8px; font-style: normal; text-align: center; }
.truck-pack-launch-arrow { color: #c6acd9; font-size: 25px; font-weight: 400; }
.other-truck-pack-link { width: 100%; min-height: 52px; margin-top: 8px; padding: 10px 13px; display: grid; grid-template-columns: 28px minmax(0, 1fr) 16px; align-items: center; gap: 9px; text-align: left; color: #dfd5e9; background: #120e18; border: 1px solid #3f314b; border-radius: 10px; }.other-truck-pack-link > span:first-child { width: 28px; height: 28px; display: grid; place-items: center; color: #c69dea; background: #2b1d38; border-radius: 8px; }.other-truck-pack-link strong, .other-truck-pack-link small { display: block; }.other-truck-pack-link strong { font-size: 11px; }.other-truck-pack-link small { margin-top: 2px; color: #94869f; font-size: 9px; }.other-truck-pack-link > b { color: #8b7998; font-size: 18px; font-weight: 400; }
.modal.modal-wide { width: min(980px, calc(100vw - 28px)); }
.truck-pack, .truck-pack-chooser { padding: 16px; display: grid; gap: 13px; }
.roadside-permit-note { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: start; gap: 10px; padding: 13px 14px; color: #e6d7f4; background: linear-gradient(135deg, #261636, #1a1123); border: 1px solid #704c8f; border-radius: 11px; }.roadside-permit-note > span { width: 30px; height: 30px; display: grid; place-items: center; color: #fff; background: #7541a5; border-radius: 9px; font-size: 14px; font-weight: 900; }.roadside-permit-note strong, .roadside-permit-note p { display: block; }.roadside-permit-note strong { font-size: 12px; }.roadside-permit-note p { margin: 4px 0 0; color: #bfaecc; font-size: 11px; line-height: 1.5; }
.truck-pack-section { overflow: hidden; background: #110d17; border: 1px solid #3b2e46; border-radius: 12px; }.truck-pack-heading { min-height: 60px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #17111e; border-bottom: 1px solid #392b45; }.truck-pack-heading .eyebrow { margin-bottom: 2px; }.truck-pack-heading h3 { margin: 0; color: #f2ebf7; font-size: 14px; }.truck-pack-heading > .subtle { text-align: right; }
.truck-pack-record { padding: 14px; display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: start; gap: 11px; border-bottom: 1px solid #2d2435; }.truck-pack-record:last-child { border-bottom: 0; }.truck-pack-record-icon { width: 46px; height: 40px; display: grid; place-items: center; color: #f1dcff; background: #38204a; border: 1px solid #604075; border-radius: 9px; font-size: 9px; font-weight: 900; letter-spacing: .04em; }.truck-pack-record strong { color: #eee7f3; font-size: 12px; }.truck-pack-record p { margin: 4px 0 0; color: #9f91a9; font-size: 10px; line-height: 1.4; }.truck-pack-local-files { color: #b7a9c2 !important; }
.load-plan-grid { padding: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }.load-plan-card { min-height: 210px; padding: 14px; display: flex; flex-direction: column; color: #ddd2e6; background: linear-gradient(145deg, #191220, #120e18); border: 1px solid #493757; border-radius: 11px; }.load-plan-card.is-empty { border-style: dashed; }.load-plan-card header { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 9px; }.load-plan-card header > span:first-child { width: 34px; height: 34px; display: grid; place-items: center; color: #f2e6ff; background: #38234b; border-radius: 9px; font-weight: 900; }.load-plan-card header small, .load-plan-card header strong { display: block; }.load-plan-card header small { color: #9888a3; font-size: 9px; }.load-plan-card header strong { margin-top: 2px; font-size: 12px; line-height: 1.35; }.load-plan-card > p { flex: 1; margin: 12px 0 8px; color: #b8acbf; font-size: 11px; line-height: 1.5; }.load-plan-updated { color: #8f8199; font-size: 9px; }.load-plan-actions { margin-top: 10px; padding-top: 10px; display: flex; gap: 7px; flex-wrap: wrap; border-top: 1px solid #33283d; }
.handover-timeline { padding: 5px 14px 10px; }.handover-note { padding: 12px 0; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: start; gap: 9px; border-bottom: 1px solid #2e2536; }.handover-note:last-child { border-bottom: 0; }.handover-note-mark { width: 27px; height: 27px; display: grid; place-items: center; color: #ddc7f3; background: #332140; border-radius: 8px; font-size: 11px; font-weight: 900; }.handover-note.priority-important .handover-note-mark { color: #ffd294; background: #3d290f; }.handover-note.priority-safety .handover-note-mark { color: #ffbdc4; background: #401820; }.handover-note p { margin: 0; color: #d9cfe1; font-size: 11px; line-height: 1.5; }.handover-note small, .handover-note em { display: block; margin-top: 5px; color: #91849a; font-size: 9px; font-style: normal; }.handover-note em { color: #88c5a8; }.handover-note.is-resolved { opacity: .67; }
.handover-note-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.retorque-record { padding: 12px 14px; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 9px; border-bottom: 1px solid #2e2536; }.retorque-record > span { width: 29px; height: 29px; display: grid; place-items: center; color: #cfa7f1; background: #30203e; border-radius: 8px; }.retorque-record strong { color: #e8e0ed; font-size: 11px; }.retorque-record p { margin: 3px 0; color: #c1b4ca; font-size: 10px; }.retorque-record small { color: #91849a; font-size: 9px; line-height: 1.4; }
.truck-pack-vehicle-list { display: grid; gap: 8px; }.truck-pack-vehicle { width: 100%; min-height: 68px; padding: 11px 12px; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto 18px; align-items: center; gap: 10px; text-align: left; color: #e9e1ef; background: #120e18; border: 1px solid #392d44; border-radius: 10px; }.truck-pack-vehicle:hover, .truck-pack-vehicle.is-assigned { border-color: #79559a; background: #191120; }.truck-pack-vehicle strong, .truck-pack-vehicle small { display: block; }.truck-pack-vehicle strong { font-size: 12px; }.truck-pack-vehicle small { margin-top: 3px; color: #92849c; font-size: 9px; }.truck-pack-vehicle-meta { color: #a99caf; font-size: 10px; white-space: nowrap; }.truck-pack-vehicle-meta b { color: #e9d7fa; }

@media (max-width: 720px) {
  .truck-pack-launch { min-height: 94px; padding: 13px; grid-template-columns: 40px minmax(0, 1fr) 18px; }.truck-pack-launch-icon { width: 40px; height: 40px; }.truck-pack-launch-counts { display: none; }.truck-pack-launch-copy strong { font-size: 13px; }.truck-pack-launch-copy em { white-space: normal; }
  .modal.modal-wide { width: calc(100vw - 18px); max-height: calc(var(--app-viewport-height) - 18px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
  .truck-pack, .truck-pack-chooser { padding: 10px; }.truck-pack-heading { align-items: flex-start; flex-direction: column; }.truck-pack-heading .button { width: 100%; }.truck-pack-heading > .subtle { text-align: left; }
  .load-plan-grid { grid-template-columns: 1fr; }.load-plan-card { min-height: 0; }.truck-pack-record { grid-template-columns: 42px minmax(0, 1fr); }.truck-pack-record > .pill { grid-column: 2; justify-self: start; }.handover-note { grid-template-columns: 28px minmax(0, 1fr); }.handover-note-actions { grid-column: 2; justify-self: start; }
  .truck-pack-vehicle { grid-template-columns: 34px minmax(0, 1fr) 18px; }.truck-pack-vehicle-meta { grid-column: 2; white-space: normal; }.truck-pack-vehicle > .truck-pack-launch-arrow { grid-column: 3; grid-row: 1 / span 2; }
  .truck-pack > .form-actions { align-items: stretch; flex-direction: column; }.truck-pack > .form-actions .button { width: 100%; }
}

@media (forced-colors: active) {
  .truck-pack-launch, .other-truck-pack-link, .roadside-permit-note, .truck-pack-section, .load-plan-card, .truck-pack-vehicle { border: 1px solid CanvasText; }
}

/* Display settings, automatic day/night colour modes and a calmer Simple home */
.appearance-toggle { min-height: 37px; padding: 7px 11px; display: inline-flex; align-items: center; gap: 7px; color: #e8ddf4; background: #17121f; border: 1px solid #3b3048; border-radius: 9px; font-size: 11px; font-weight: 800; }
.appearance-toggle > span:first-child { width: 19px; height: 19px; display: grid; place-items: center; color: #e8c77d; background: #332713; border-radius: 6px; font-size: 12px; }
.appearance-toggle[data-mode="night"] > span:first-child { color: #d9c8f2; background: #2d2140; }
.simple-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.simple-work-list { padding: 2px 16px 8px; }
.simple-work-row { min-height: 70px; padding: 11px 2px; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto; align-items: center; gap: 11px; border-bottom: 1px solid #2d2536; }
.simple-work-row:last-child { border-bottom: 0; }
.simple-work-row .stream-mark { width: 34px; height: 34px; border-radius: 9px; }
.simple-work-row > div > strong, .simple-work-row > div > small { display: block; }
.simple-work-row > div > strong { font-size: 12px; }
.simple-work-row > div > small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.simple-work-progress { min-width: 54px; text-align: right; }
.simple-work-progress strong { font-size: 14px !important; }

.display-settings { padding: 18px; display: grid; gap: 20px; }
.display-settings > section { display: grid; gap: 12px; }
.display-settings > section + section { padding-top: 18px; border-top: 1px solid var(--line); }
.settings-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.settings-section-heading h3 { margin: 0; font-size: 14px; }
.settings-section-heading p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.settings-current-mode { padding: 5px 8px; color: #d9c8f1; background: #2c1e3b; border-radius: 999px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.settings-choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.settings-text-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.settings-choice { min-height: 92px; padding: 12px; display: grid; grid-template-columns: 28px minmax(0, 1fr) 18px; align-items: start; gap: 9px; text-align: left; color: var(--ink); background: #110d17; border: 1px solid #3b2e47; border-radius: 11px; }
.settings-choice-wide { min-height: 76px; grid-template-columns: minmax(0, 1fr) 18px; }
.settings-choice:hover { border-color: #725092; background: #18101f; }
.settings-choice.is-selected { background: #291b38; border-color: #9a68ca; box-shadow: inset 0 0 0 1px rgba(190, 139, 235, .22); }
.settings-choice-icon { width: 28px; height: 28px; display: grid; place-items: center; color: #e4d4f4; background: #2f203e; border-radius: 8px; font-size: 14px; }
.settings-choice strong, .settings-choice small { display: block; }
.settings-choice strong { font-size: 12px; }
.settings-choice small { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.settings-choice b { color: #c896ef; font-size: 14px; }
.settings-footer-note { padding: 11px 12px; color: #bcaec8; background: #120e18; border: 1px solid #382d43; border-radius: 9px; font-size: 11px; line-height: 1.45; }

body.night-mode { color-scheme: dark; }

/* Bright, high-contrast daylight mode for yards, cabs and office screens. */
body.day-mode {
  --ink: #271d2c;
  --muted: #6d6373;
  --canvas: #f7f4fa;
  --panel: #ffffff;
  --line: #ded6e4;
  --navy: #f5f0f8;
  --navy-2: #ebe3f1;
  --blue: #7142a8;
  --teal: #7650a8;
  --shadow: 0 8px 24px rgba(67, 42, 78, .08);
  color-scheme: light;
  color: var(--ink);
  background: radial-gradient(circle at 88% 0, #eee4f6 0, #f7f4fa 30%, #faf9fb 100%);
}
body.day-mode .main-content { background: transparent; }
body.day-mode .topbar { background: rgba(255, 255, 255, .94); border-color: #ded6e4; box-shadow: 0 3px 14px rgba(55, 34, 66, .05); }
body.day-mode .sidebar { color: #34273b; background: linear-gradient(180deg, #fcfafd, #f2ebf6); border-right-color: #ddd3e4; box-shadow: 6px 0 24px rgba(55, 34, 66, .05); }
body.day-mode .brand strong { color: #2c2032; }
body.day-mode .brand small, body.day-mode .sidebar-footer small { color: #766b7c; }
body.day-mode .nav-item { color: #55495d; }
body.day-mode .nav-item span { color: #80649a; }
body.day-mode .nav-item:hover { color: #35243e; background: #eee5f4; }
body.day-mode .nav-item.active { color: #3b214b; background: #e8dcf1; box-shadow: inset 3px 0 #8250ad; }
body.day-mode .nav-item.active span { color: #70429b; }
body.day-mode .sidebar-footer { color: #493d51; border-color: #dbd0e2; }
body.day-mode .appearance-toggle, body.day-mode .icon-button, body.day-mode .driver-toggle, body.day-mode .button-light, body.day-mode .filter-chip { color: #302438; background: #fff; border-color: #d9cfe0; }
body.day-mode .appearance-toggle { box-shadow: 0 3px 10px rgba(62, 38, 74, .06); }
body.day-mode .appearance-toggle > span:first-child { color: #8b6515; background: #fff2c9; }
body.day-mode .driver-avatar { color: #60398a; background: #eee3f7; }
body.day-mode .director-view-switch { background: #eee7f2; border-color: #d8ccdf; }
body.day-mode .director-view-switch button { color: #6f6376; }
body.day-mode .director-view-switch button.active { color: #fff; background: #7143a3; box-shadow: none; }
body.day-mode .connection-status { color: #564a5e; background: #f7f3f9; border-color: #dcd3e1; }
body.day-mode .connection-status.is-online { color: #176345; background: #ecf8f2; border-color: #bfe0d0; }
body.day-mode .connection-status.is-offline { color: #a22f3c; background: #fff0f2; border-color: #e9bdc3; }
body.day-mode .connection-status.is-syncing { color: #65408c; background: #f3ebfb; border-color: #d7c1ec; }

body.day-mode .access-screen,
body.day-mode[data-portal="employee"] .access-screen,
body.day-mode[data-portal="director"] .access-screen { background: radial-gradient(circle at 85% 8%, #eadcf5 0, transparent 34%), linear-gradient(145deg, #f4eff8, #fbfafc); }
body.day-mode .access-card { color: var(--ink); background: rgba(255, 255, 255, .97); border-color: #ddd1e5; box-shadow: 0 20px 55px rgba(64, 40, 76, .13); }
body.day-mode[data-portal="director"] .access-card, body.day-mode[data-portal="director"] .access-card-director { border-color: #cbb5dc; }
body.day-mode .access-form label, body.day-mode .field label { color: #55495d; }
body.day-mode .access-form input, body.day-mode .field input, body.day-mode .field select, body.day-mode .field textarea, body.day-mode .confirmation-reason :is(input, textarea), body.day-mode .table-search input { color: #271d2c; background: #fff; border-color: #d6cddd; }
body.day-mode input::placeholder, body.day-mode textarea::placeholder { color: #8a7e90; }
body.day-mode option { color: #271d2c; background: #fff; }
body.day-mode .cloud-setup-note, body.day-mode .form-note { color: #4f3e5b; background: #f2eafa; border-color: #dac9e8; }
body.day-mode .cloud-setup-note strong { color: #382544; }
body.day-mode .portal-switch { border-color: #e2dae7; }
body.day-mode .portal-switch-link, body.day-mode .access-route-link { color: #6d3e99; }

body.day-mode :is(.panel, .metric-card, .action-card, .summary-strip, .modal, .work-stream-card, .driver-job-card, .driver-task-card, .driver-report-section, .truck-pack-section, .load-plan-card, .truck-pack-vehicle, .driver-job-details, .driver-more-tools) { color: var(--ink); background: #fff; border-color: #ded6e4; box-shadow: var(--shadow); }
body.day-mode :is(.panel-heading, .priority-footer, .map-legend, .form-section, .modal-head, .fleet-row, .priority-row, .attention-item, .list-row, .status-table td, .message-row, .simple-work-row, .assignment-row, .job-combination, .job-route, .job-check-list > div, .load-plan-actions, .handover-note, .retorque-record) { border-color: #e8e1eb; }
body.day-mode .status-table th { color: #675b6e; background: #f6f2f8; border-color: #e3dbe7; }
body.day-mode .status-table tbody tr:hover, body.day-mode .message-row.unread { background: #faf7fc; }
body.day-mode .row-open, body.day-mode .modal-close { color: #684b7b; background: #eee7f2; }
body.day-mode .button-secondary { color: #60368b; background: #eee3f8; }
body.day-mode .button-danger { color: #a42f3e; background: #fdecee; }
body.day-mode .link-button { color: #673791; }
body.day-mode .filter-chip.active { color: #5f3487; background: #eee4f6; border-color: #cfb9e1; }
body.day-mode .person-cell > span, body.day-mode .asset-icon, body.day-mode .message-mark, body.day-mode .action-card .action-icon { color: #633b8c; background: #eee4f6; }
body.day-mode .action-card .action-icon.green { color: #187052; background: #e8f6ef; }
body.day-mode .action-card .action-icon.amber { color: #97610f; background: #fff3dc; }
body.day-mode .form-actions, body.day-mode .form-step, body.day-mode .work-modal-heading { color: #44354d; background: #f8f5fa; border-color: #e3dbe7; }
body.day-mode .check-row, body.day-mode .inspection-check, body.day-mode .upload-box, body.day-mode .hazard-media-card { color: var(--ink); background: #fcfbfd; border-color: #dcd2e2; }
body.day-mode .inspection-check label { color: #35293c; }
body.day-mode .fuel-total { color: #594861; background: #f2eafa; border-color: #d8c8e5; }
body.day-mode .fuel-total strong { color: #382344; }

body.day-mode .dashboard-hero, body.day-mode .driver-banner, body.day-mode.simple-director-mode .dashboard-hero { color: #2d2133; background: radial-gradient(circle at 90% 5%, rgba(135, 82, 175, .14), transparent 37%), linear-gradient(135deg, #fff, #eee5f5); border-color: #d6c3e3; box-shadow: 0 8px 24px rgba(77, 46, 92, .07); }
body.day-mode .dashboard-hero .eyebrow, body.day-mode .driver-banner .eyebrow { color: #6f448c !important; }
body.day-mode .hero-copy > p:last-child, body.day-mode .driver-banner p, body.day-mode .shift-time small { color: #655a6c; }
body.day-mode .live-chip, body.day-mode .shift-time { color: #42334b; background: rgba(255, 255, 255, .76); border: 1px solid #d9cce2; }
body.day-mode .button-hero, body.day-mode.simple-director-mode .hero-actions .button-hero { color: #fff; background: #70419c; border-color: #70419c; }
body.day-mode .summary-stat, body.day-mode .summary-stat.requires-action { background: #fff; border-color: #e3dbe7; }
body.day-mode .summary-stat strong { color: #31213a; }
body.day-mode .summary-stat strong em { color: #766b7d; }
body.day-mode .summary-stat.requires-action { background: #fff6f7; }
body.day-mode .summary-stat.requires-action strong { color: #ad3443; }
body.day-mode .stream-progress, body.day-mode .work-stream-card > footer, body.day-mode .driver-job-card > footer { background: #f8f5fa; border-color: #e2d9e7; }
body.day-mode .progress-track, body.day-mode .doc-progress { background: #e8e0ec; }
body.day-mode .assignment-main span, body.day-mode .job-check-list p { color: #55495c; }
body.day-mode .assignment-main small, body.day-mode .assignment-state small, body.day-mode .work-stream-card > footer, body.day-mode .driver-job-main small { color: #7d7183; }
body.day-mode .assignment-row.assignment-missing { background: #fff2f3; border-color: #edc8cc; }
body.day-mode .chase-row { color: var(--ink); border-color: #e7dfea; }
body.day-mode .chase-danger > span { color: #af3341; background: #fdebed; }
body.day-mode .chase-warning > span { color: #98600e; background: #fff1d8; }

body.day-mode .driver-job-card > header { background: #f5eff8; border-color: #ddd1e5; }
body.day-mode .driver-task-card > span, body.day-mode .job-check-list span, body.day-mode .driver-job-details > summary > span, body.day-mode .driver-more-tools > summary > span { color: #63398a; background: #eee4f6; }
body.day-mode .driver-task-card.task-featured, body.day-mode .driver-simple-page .driver-task-card.task-featured { color: #2d2034; background: #eee3f7; border-color: #b892d0; }
body.day-mode .driver-task-card.task-featured > span, body.day-mode .driver-simple-page .driver-task-card.task-featured > span { color: #fff; background: #7445a0; }
body.day-mode .driver-secondary-actions button, body.day-mode .driver-safety-actions button, body.day-mode .other-truck-pack-link { color: #2d2133; background: #fff; border-color: #ddd3e3; }
body.day-mode .driver-secondary-actions button > span, body.day-mode .other-truck-pack-link > span:first-child { color: #6e4295; background: #eee4f6; }
body.day-mode .driver-safety-actions button > span { color: #a52f3d; background: #fdebed; }
body.day-mode .driver-safety-actions button:first-child > span { color: #653d8b; background: #eee4f6; }
body.day-mode .driver-safety-note, body.day-mode .report-emergency-note { color: #8e303a; background: #fff0f1; border-color: #e9c5c9; }
body.day-mode .driver-job-details > summary, body.day-mode .driver-more-tools > summary { color: #392c40; }

body.day-mode .report-command-panel { background: #fff; border-color: #ddd3e3; }
body.day-mode .report-search-help, body.day-mode .formula-note { color: #685c70; background: #f7f3f9; border-color: #e2d9e7; }
body.day-mode .formula-note strong { color: #382c3f; }
body.day-mode .spreadsheet-wrap { scrollbar-color: #bda7cc #f5f1f7; }
body.day-mode .spreadsheet-table th { color: #5e5265; background: #f1ebf4; border-color: #d7cddd; box-shadow: none; }
body.day-mode .spreadsheet-table td, body.day-mode .spreadsheet-table th { border-color: #e5dde9; }
body.day-mode .spreadsheet-table tbody tr:nth-child(even) { background: #faf7fb; }
body.day-mode .spreadsheet-table tbody tr:hover { background: #f3ecf7; }
body.day-mode .gps-consent-note, body.day-mode .gps-track-summary > div { color: #5f5367; background: #f7f3f9; border-color: #ded3e4; }
body.day-mode .gps-consent-note strong, body.day-mode .gps-track-summary strong { color: #33263a; }
body.day-mode .gps-track-map { background: radial-gradient(circle at 30% 20%, rgba(121, 73, 160, .09), transparent 34%), #faf8fb; border-color: #d7c9df; }
body.day-mode .gps-map-grid { stroke: #e3dce7; }
body.day-mode .gps-track-legend { color: #675b6e; background: #f5f0f7; border-color: #ddd3e2; }
body.day-mode .gps-track-legend strong { color: #35283c; }

body.day-mode .truck-pack-launch { color: #2f2236; background: radial-gradient(circle at 92% 8%, rgba(137, 82, 178, .14), transparent 38%), linear-gradient(135deg, #fff, #eee4f5); border-color: #c9addb; box-shadow: var(--shadow); }
body.day-mode .truck-pack-launch-copy small, body.day-mode .truck-pack-launch-copy em, body.day-mode .truck-pack-launch-counts small { color: #6e6175; }
body.day-mode .truck-pack-launch-counts { color: #4a3854; }
body.day-mode .truck-pack-heading { background: #f6f1f8; border-color: #ded3e4; }
body.day-mode .truck-pack-heading h3, body.day-mode .truck-pack-record strong, body.day-mode .load-plan-card, body.day-mode .handover-note p, body.day-mode .retorque-record strong, body.day-mode .truck-pack-vehicle { color: #35283c; }
body.day-mode .truck-pack-record-icon, body.day-mode .load-plan-card header > span:first-child, body.day-mode .handover-note-mark, body.day-mode .retorque-record > span { color: #673d8d; background: #eee3f6; border-color: #d6c3e3; }
body.day-mode .load-plan-card { background: #fcfafd; }
body.day-mode .roadside-permit-note { color: #3d2c47; background: #f1e9f7; border-color: #cfb8df; }
body.day-mode .roadside-permit-note p, body.day-mode .load-plan-card > p, body.day-mode .retorque-record p { color: #625669; }

body.day-mode .safety-control-panel { color: #35283c; background: #fff; border-color: #d9cce0; }
body.day-mode .safety-control-panel.is-warning { background: #fff8ed; border-color: #ecd1a8; }
body.day-mode .safety-control-panel.is-danger { background: #fff1f2; border-color: #edc2c7; }
body.day-mode .safety-control-panel.is-restore { background: #edf8f3; border-color: #b9dfce; }
body.day-mode .safety-control-copy p, body.day-mode .safety-control-copy small { color: #675b6e; }
body.day-mode .safety-control-copy > strong { color: #382a40; }
body.day-mode .confirmation-summary, body.day-mode .confirmation-check, body.day-mode .settings-footer-note { color: #4f4357; background: #f7f3f9; border-color: #ddd3e3; }
body.day-mode .confirmation-summary strong { color: #302337; }
body.day-mode .reason-help { color: #706477; }
body.day-mode .audit-event-head strong { color: #392d40; }
body.day-mode .audit-event p, body.day-mode .audit-event-meta, body.day-mode .audit-event time { color: #716577; }

body.day-mode .display-settings > section + section { border-color: #e4dce8; }
body.day-mode .settings-current-mode { color: #5e3583; background: #eee4f6; }
body.day-mode .settings-choice { color: #302337; background: #fff; border-color: #ddd3e3; }
body.day-mode .settings-choice:hover { background: #faf7fc; border-color: #bfa3d1; }
body.day-mode .settings-choice.is-selected { background: #f0e7f7; border-color: #9162b5; box-shadow: inset 0 0 0 1px rgba(115, 68, 153, .12); }
body.day-mode .settings-choice-icon { color: #653b8b; background: #e9ddf2; }
body.day-mode .settings-choice b { color: #65388d; }

body.large-text-mode .topbar h1 { font-size: 24px; }
body.large-text-mode .page-heading h2, body.large-text-mode .hero-copy h2 { font-size: 26px; }
body.large-text-mode :is(.driver-task-card strong, .driver-safety-actions strong, .driver-job-main strong, .panel-heading h2, .simple-work-row > div > strong) { font-size: 15px; }
body.large-text-mode :is(.driver-task-card small, .driver-safety-actions small, .driver-job-main span, .panel-heading small, .simple-work-row > div > small, .chase-row small) { font-size: 12px; }
body.large-text-mode .status-table { font-size: 14px; }
body.large-text-mode .button { font-size: 14px; }

@media (max-width: 720px) {
  .appearance-toggle { min-width: 44px; width: 44px; min-height: 44px; padding: 0; justify-content: center; }
  .appearance-toggle-copy { display: none; }
  body[data-portal="director"] .director-view-switch { display: none; }
  .settings-choice-grid, .settings-text-grid { grid-template-columns: 1fr; }
  .settings-choice { min-height: 72px; }
  .simple-summary { grid-template-columns: 1fr; }
  .simple-work-row { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .simple-work-row > .pill { grid-column: 2 / -1; justify-self: start; }
}

@media (max-width: 520px) {
  .connection-status { min-width: 44px; width: 44px; padding: 0; justify-content: center; overflow: hidden; font-size: 0; }
  .connection-status::before { margin: 0; }
}

/* Simple employee home: one clear choice per row, then one task per screen. */
.simple-portal-home { width: min(100%, 620px); margin: 0 auto; display: grid; gap: 14px; }
.simple-director-home { width: min(100%, 720px); margin: 0 auto; display: grid; gap: 12px; }
.simple-director-welcome { min-height: 112px; padding: 19px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--ink); background: #15111c; border: 1px solid var(--line); border-radius: 12px; }
.simple-director-welcome > div:first-child > span { display: block; margin-bottom: 4px; color: #b79bd0; font-size: 10px; font-weight: 850; letter-spacing: .075em; text-transform: uppercase; }
.simple-director-welcome h2 { margin: 0; font-size: 23px; letter-spacing: -.45px; }
.simple-director-welcome p { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.simple-director-totals { display: grid; grid-template-columns: repeat(3, 78px); overflow: hidden; background: #100d15; border: 1px solid var(--line); border-radius: 9px; }
.simple-director-totals > div { min-height: 62px; padding: 9px 7px; display: grid; align-content: center; text-align: center; border-right: 1px solid var(--line); }
.simple-director-totals > div:last-child { border-right: 0; }
.simple-director-totals strong, .simple-director-totals small { display: block; }
.simple-director-totals strong { font-size: 19px; }
.simple-director-totals small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.simple-director-totals .needs-attention strong { color: #ff9ba4; }
.simple-director-attention { width: 100%; min-height: 82px; padding: 13px 15px; display: grid; grid-template-columns: 40px minmax(0, 1fr) 16px; align-items: center; gap: 11px; color: #ffd8dc; background: #28151b; border: 1px solid #6d343e; border-radius: 10px; text-align: left; }
.simple-director-attention > span:first-child { width: 40px; height: 40px; display: grid; place-items: center; color: #fff; background: #a23545; border-radius: 9px; font-size: 17px; font-weight: 900; }
.simple-director-attention small, .simple-director-attention strong, .simple-director-attention em { display: block; }
.simple-director-attention small { color: #e7aeb6; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.simple-director-attention strong { margin-top: 3px; font-size: 12px; }
.simple-director-attention em { margin-top: 4px; color: #c9a7ac; font-size: 9px; font-style: normal; line-height: 1.35; }
.simple-director-attention > b { color: #d7aeb5; font-size: 21px; font-weight: 400; }
.simple-director-clear { min-height: 70px; padding: 13px 15px; display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 11px; color: #9be1bf; background: #11271f; border: 1px solid #2b5d4a; border-radius: 10px; }
.simple-director-clear > span { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; background: #247451; border-radius: 9px; font-weight: 900; }
.simple-director-clear strong, .simple-director-clear small { display: block; }
.simple-director-clear small { margin-top: 3px; color: #8fbca8; font-size: 10px; }
.simple-portal-welcome { min-height: 104px; padding: 19px 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--ink); background: #15111c; border: 1px solid var(--line); border-radius: 12px; }
.simple-portal-welcome > div:first-child { min-width: 0; }
.simple-portal-welcome > div:first-child > span, .simple-section-heading > div > span { display: block; margin-bottom: 4px; color: #b79bd0; font-size: 10px; font-weight: 850; letter-spacing: .075em; text-transform: uppercase; }
.simple-portal-welcome h2 { margin: 0; font-size: 23px; letter-spacing: -.45px; }
.simple-portal-welcome p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.simple-shift-status { min-width: 152px; padding: 11px 12px; color: #d8cde3; background: #201827; border: 1px solid #453650; border-radius: 9px; text-align: right; }
.simple-shift-status strong, .simple-shift-status small { display: block; }
.simple-shift-status strong { font-size: 11px; }
.simple-shift-status small { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.simple-shift-status.is-active { color: #8de1b8; background: #12271f; border-color: #2a5e49; }
.simple-shift-status.is-warning { color: #ffb9c0; background: #2a141a; border-color: #71303a; }

.simple-work-card, .simple-role-queue { overflow: hidden; color: var(--ink); background: #15111c; border: 1px solid var(--line); border-radius: 11px; }
.simple-work-card.is-blocked { border-color: #71303a; }
.simple-work-head { min-height: 84px; padding: 15px 16px; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.simple-work-mark { width: 40px; height: 40px; display: grid; place-items: center; color: #fff; background: #7147a0; border-radius: 9px; font-size: 11px; font-weight: 900; }
.simple-work-head > div { min-width: 0; }
.simple-work-head > div > span { color: #a898b5; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.simple-work-head h2 { margin: 2px 0 0; font-size: 16px; }
.simple-work-head p { margin: 4px 0 0; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.simple-work-card .assignment-hold-notice { margin: 0 15px 13px; }
.simple-work-details { border-top: 1px solid var(--line); }
.simple-work-details > summary { min-height: 44px; padding: 0 16px; display: flex; align-items: center; color: #cbbbd7; cursor: pointer; font-size: 11px; font-weight: 800; }
.simple-work-details dl { margin: 0; padding: 3px 16px 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.simple-work-details dl > div { min-width: 0; }
.simple-work-details dt { color: var(--muted); font-size: 9px; }
.simple-work-details dd { margin: 3px 0 0; overflow-wrap: anywhere; font-size: 11px; font-weight: 750; }

.simple-next-action { width: 100%; min-height: 94px; padding: 16px 18px; display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 13px; color: #fff; background: #7142a8; border: 1px solid #9062bc; border-radius: 11px; text-align: left; box-shadow: 0 8px 20px rgba(50, 27, 72, .22); }
.simple-next-action:hover { background: #7b49b5; }
.simple-next-action:disabled { cursor: not-allowed; color: #bcb3c2; background: #29232e; border-color: #49404f; box-shadow: none; }
.simple-next-icon { width: 42px; height: 42px; display: grid; place-items: center; color: #57317c; background: #fff; border-radius: 9px; font-size: 22px; font-weight: 900; }
.simple-next-action:disabled .simple-next-icon { color: #85798c; background: #3b3440; }
.simple-next-action small, .simple-next-action strong, .simple-next-action em { display: block; }
.simple-next-action small { font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; opacity: .78; }
.simple-next-action strong { margin-top: 2px; font-size: 17px; }
.simple-next-action em { margin-top: 4px; font-size: 10px; font-style: normal; line-height: 1.4; opacity: .82; }

.simple-portal-menu, .simple-submenu { display: grid; gap: 9px; }
.simple-menu-card { width: 100%; min-height: 82px; padding: 13px 14px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto 15px; align-items: center; gap: 11px; color: var(--ink); background: #15111c; border: 1px solid var(--line); border-radius: 10px; text-align: left; box-shadow: none; }
.simple-menu-card:hover { background: #1b1622; border-color: #594468; }
.simple-menu-card:disabled { cursor: not-allowed; opacity: .48; filter: saturate(.55); }
.simple-menu-icon { width: 42px; height: 42px; display: grid; place-items: center; color: #d7c2e8; background: #30223b; border-radius: 9px; font-size: 17px; font-weight: 900; }
.simple-menu-copy { min-width: 0; }
.simple-menu-copy strong, .simple-menu-copy small { display: block; }
.simple-menu-copy strong { font-size: 13px; }
.simple-menu-copy small { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.simple-menu-meta { max-width: 105px; padding: 5px 7px; overflow: hidden; color: #cbbbd7; background: #231b2a; border-radius: 999px; font-size: 9px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.simple-menu-arrow { color: #82728e; font-size: 22px; font-weight: 400; }
.simple-safety-reminder { margin: 1px 0 0; padding: 11px 13px; color: #cbbfcf; background: #18131d; border-left: 3px solid #d04d50; border-radius: 7px; font-size: 10px; line-height: 1.5; }
.simple-safety-reminder strong { color: #f0e9f3; }

.simple-role-queue { padding-bottom: 7px; }
.simple-section-heading { min-height: 68px; padding: 13px 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.simple-section-heading h2 { margin: 0; font-size: 14px; }
.simple-role-queue .list-row { margin: 0 14px; padding: 11px 1px; }
.simple-role-queue .empty-state { padding: 20px 16px; }

.simple-submenu { padding: 14px; }
.simple-submenu-status, .simple-danger-note, .simple-location-status { padding: 12px 13px; color: #d9cfdf; background: #17121d; border: 1px solid var(--line); border-radius: 9px; }
.simple-submenu-status strong, .simple-submenu-status span, .simple-danger-note strong, .simple-danger-note span { display: block; }
.simple-submenu-status strong, .simple-danger-note strong { font-size: 12px; }
.simple-submenu-status span, .simple-danger-note span { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.simple-danger-note { color: #ffc4ca; background: #28151b; border-color: #65313b; }
.simple-danger-note span { color: #d3adb3; }
.simple-location-status { color: var(--muted); font-size: 10px; line-height: 1.4; }
.simple-check-list { overflow: hidden; background: #15111c; border: 1px solid var(--line); border-radius: 9px; }
.simple-check-list > summary { min-height: 48px; padding: 0 14px; display: flex; align-items: center; color: var(--ink); cursor: pointer; font-size: 11px; font-weight: 800; }
.simple-check-list > div { padding: 2px 14px 10px; }
.simple-check-list p { margin: 0; padding: 9px 0; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; color: var(--muted); border-top: 1px solid var(--line); font-size: 10px; line-height: 1.4; }
.simple-check-list p > span { width: 22px; height: 22px; display: grid; place-items: center; color: #d7c2e8; background: #30223b; border-radius: 6px; font-weight: 900; }

body.day-mode .simple-portal-welcome,
body.day-mode .simple-director-welcome,
body.day-mode .simple-work-card,
body.day-mode .simple-role-queue,
body.day-mode .simple-menu-card,
body.day-mode .simple-check-list { color: #25202a; background: #fff; border-color: #dfe2e7; box-shadow: none; }
body.day-mode .simple-portal-welcome { background: #fff; }
body.day-mode .simple-director-welcome { color: #25202a; background: #fff; border-color: #dfe2e7; box-shadow: none; }
body.day-mode .simple-director-welcome > div:first-child > span { color: #6f4690; }
body.day-mode .simple-director-welcome p { color: #69717c; }
body.day-mode .simple-director-totals { background: #f6f7f9; border-color: #dfe2e7; }
body.day-mode .simple-director-totals > div { border-color: #dfe2e7; }
body.day-mode .simple-director-totals small { color: #69717c; }
body.day-mode .simple-director-totals .needs-attention strong { color: #a52f3e; }
body.day-mode .simple-director-attention { color: #7d2833; background: #fff1f2; border-color: #e8c2c7; }
body.day-mode .simple-director-attention small, body.day-mode .simple-director-attention em { color: #7c555a; }
body.day-mode .simple-director-attention > b { color: #9a6670; }
body.day-mode .simple-director-clear { color: #176346; background: #eef8f3; border-color: #bfe0d0; }
body.day-mode .simple-director-clear small { color: #557a69; }
body.day-mode .simple-portal-welcome > div:first-child > span,
body.day-mode .simple-section-heading > div > span { color: #6f4690; }
body.day-mode .simple-portal-welcome p,
body.day-mode .simple-work-head p,
body.day-mode .simple-menu-copy small,
body.day-mode .simple-check-list p { color: #69717c; }
body.day-mode .simple-shift-status { color: #3f3645; background: #f4f5f7; border-color: #dfe2e7; }
body.day-mode .simple-shift-status.is-active { color: #176346; background: #eef8f3; border-color: #bfe0d0; }
body.day-mode .simple-shift-status.is-warning { color: #a42f3e; background: #fff0f2; border-color: #e9bdc3; }
body.day-mode .simple-work-mark,
body.day-mode .simple-menu-icon,
body.day-mode .simple-check-list p > span { color: #653b8b; background: #eee6f4; }
body.day-mode .simple-work-details,
body.day-mode .simple-section-heading,
body.day-mode .simple-check-list p { border-color: #e7e9ed; }
body.day-mode .simple-work-details > summary { color: #4f4357; }
body.day-mode .simple-menu-card:hover { background: #f8f9fa; border-color: #c9b5d7; }
body.day-mode .simple-menu-meta { color: #525a64; background: #f0f2f4; }
body.day-mode .simple-menu-arrow { color: #7c6b86; }
body.day-mode .simple-safety-reminder { color: #5f555f; background: #fff; border-top: 1px solid #e1e3e7; border-right: 1px solid #e1e3e7; border-bottom: 1px solid #e1e3e7; }
body.day-mode .simple-safety-reminder strong { color: #332a35; }
body.day-mode .simple-submenu-status,
body.day-mode .simple-location-status { color: #332a38; background: #f5f6f8; border-color: #dde1e6; }
body.day-mode .simple-danger-note { color: #982d39; background: #fff1f2; border-color: #e8c2c7; }
body.day-mode .simple-danger-note span { color: #7c555a; }
body.day-mode .simple-next-action:disabled { color: #776e7b; background: #eceef1; border-color: #d9dde2; }
body.day-mode .simple-next-action:disabled .simple-next-icon { color: #716678; background: #fff; }

body.large-text-mode .simple-menu-copy strong { font-size: 16px; }
body.large-text-mode .simple-menu-copy small,
body.large-text-mode .simple-next-action em,
body.large-text-mode .simple-work-head p { font-size: 12px; }

@media (max-width: 720px) {
  .simple-portal-home { gap: 11px; }
  .simple-director-home { gap: 10px; }
  .simple-director-welcome { padding: 15px; align-items: flex-start; flex-direction: column; }
  .simple-director-welcome h2 { font-size: 21px; }
  .simple-director-totals { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .simple-portal-welcome { min-height: 0; padding: 15px; align-items: flex-start; flex-direction: column; gap: 12px; }
  .simple-portal-welcome h2 { font-size: 21px; }
  .simple-shift-status { width: 100%; min-width: 0; text-align: left; }
  .simple-next-action { min-height: 90px; padding: 14px; }
  .simple-menu-card { min-height: 78px; padding: 11px 12px; grid-template-columns: 40px minmax(0, 1fr) 15px; }
  .simple-menu-icon { width: 40px; height: 40px; }
  .simple-menu-meta { display: none; }
  .simple-work-head { padding: 13px; grid-template-columns: 38px minmax(0, 1fr); }
  .simple-work-mark { width: 38px; height: 38px; }
  .simple-work-head > .pill { grid-column: 2; justify-self: start; }
  .simple-work-details dl { grid-template-columns: 1fr; }
  .simple-submenu { padding: 10px; }
}
