:root {
  --green-900: #03314d; --green-800: #056ca5; --green-700: #038edc; --green-600: #27a3e5;
  --green-100: #dff2fc; --green-50: #eef8fd; --ink: #343a40; --muted: #74788d;
  --line: #eff0f2; --surface: #ffffff; --canvas: #f7f8fa; --warning: #ef8b22;
  --danger: #d84343; --blue: #3876d2; --purple: #7b55c7;
  --shadow: 0 2px 3px rgba(52,58,64,.06); --radius: 4px;
  font-family: Roboto, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink); background: var(--canvas);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--line); padding: 24px 18px 18px; z-index: 20; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 9px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; background: var(--green-700); border-radius: 11px; }
.brand-mark svg { width: 27px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1; }
.brand strong { font-size: 17px; letter-spacing: -.35px; }
.brand small { margin-top: 5px; color: var(--green-700); letter-spacing: 3px; font-size: 9px; font-weight: 800; }
.side-nav { flex: 1; margin-top: 32px; }
.nav-title { margin: 22px 12px 8px; color: #9aa59e; text-transform: uppercase; letter-spacing: 1.15px; font-size: 10px; font-weight: 800; }
.side-nav a { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; margin: 4px 0; padding: 0 12px; border-radius: 10px; color: #46534b; font-size: 14px; font-weight: 600; }
.side-nav a:hover { background: #f4f7f5; color: var(--ink); }
.side-nav a.active { background: var(--green-50); color: var(--green-800); }
.side-nav a.active::before { content: ""; position: absolute; left: -18px; width: 3px; height: 24px; background: var(--green-700); border-radius: 0 4px 4px 0; }
.nav-icon { display: grid; place-items: center; width: 23px; font-size: 20px; font-weight: 400; }
.live-dot { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: #26b96a; box-shadow: 0 0 0 4px #dff7e9; }
.sidebar-footer { display: flex; align-items: center; gap: 10px; padding: 14px 8px 0; border-top: 1px solid var(--line); }
.avatar { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 50%; background: var(--green-100); color: var(--green-800); font-weight: 800; }
.user-meta { min-width: 0; display: flex; flex: 1; flex-direction: column; }
.user-meta strong { overflow: hidden; text-overflow: ellipsis; font-size: 13px; white-space: nowrap; }
.user-meta small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.icon-button { border: 0; background: transparent; color: var(--muted); font-size: 20px; }
.main-content { min-width: 0; }
.topbar { min-height: 86px; display: flex; align-items: center; gap: 14px; padding: 17px 32px; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.topbar h1 { margin: 2px 0 0; font-size: 21px; letter-spacing: -.4px; }
.eyebrow { margin: 0; color: var(--green-700); text-transform: uppercase; letter-spacing: 1.2px; font-size: 10px; font-weight: 800; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.system-status, .date-chip { padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--muted); font-size: 11px; font-weight: 650; }
.system-status i { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #20b766; }
.menu-toggle { display: none; border: 0; background: transparent; font-size: 22px; }
.page-content { padding: 92px 24px 72px; }
.messages { display: grid; gap: 8px; margin-bottom: 18px; }
.message { padding: 12px 15px; border: 1px solid #bfe7d0; border-radius: 10px; background: var(--green-50); color: var(--green-800); font-size: 13px; }
.message.error { border-color: #f1c5c5; background: #fff3f3; color: #a62d2d; }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 22px; }
.page-head h2 { margin: 4px 0 0; font-size: 26px; letter-spacing: -.7px; }
.page-head p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 3px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 500; }
.button:hover { transform: translateY(-1px); box-shadow: 0 5px 15px rgba(20,50,30,.08); }
.button.primary { border-color: var(--green-700); background: var(--green-700); color: #fff; }
.button.danger { border-color: #f0c3c3; color: var(--danger); }
.button.full { width: 100%; }
.button.small { min-height: 32px; padding: 0 11px; font-size: 11px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 15px; margin-bottom: 20px; }
.stat-card, .card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.stat-card { position: relative; overflow: hidden; padding: 20px; }
.stat-card::after { content: ""; position: absolute; left: 20px; right: 20px; bottom: 16px; height: 2px; border-radius: 2px; background: var(--accent, var(--green-600)); opacity: .22; }
.stat-label { color: var(--muted); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .5px; }
.stat-value { display: block; margin-top: 7px; font-size: 29px; line-height: 1; letter-spacing: -1px; }
.stat-foot { display: flex; align-items: center; gap: 6px; margin-top: 13px; color: var(--muted); font-size: 11px; }
.stat-foot i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent, var(--green-600)); }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr); gap: 20px; }
.card { overflow: hidden; }
.card-head { min-height: 61px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 19px; border-bottom: 1px solid var(--line); }
.card-head h3 { margin: 0; font-size: 14px; }
.card-head p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.card-body { padding: 19px; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.data-table th { padding: 11px 15px; background: #fafcfb; color: #89958d; text-align: left; text-transform: uppercase; letter-spacing: .55px; font-size: 9px; white-space: nowrap; }
.data-table td { padding: 13px 15px; border-top: 1px solid var(--line); vertical-align: middle; }
.data-table tbody tr:hover { background: #fbfdfc; }
.primary-cell { display: flex; flex-direction: column; gap: 3px; }
.primary-cell strong { font-size: 12px; }
.primary-cell small, .muted { color: var(--muted); }
.status-badge { display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 20px; background: #edf1ef; color: #657169; text-transform: uppercase; letter-spacing: .35px; font-size: 8px; font-weight: 850; white-space: nowrap; }
.status-badge[data-status="requested"] { background: #fff2e1; color: #af651a; }
.status-badge[data-status="accepted"], .status-badge[data-status="assigned"] { background: #e8f7ef; color: #0a7440; }
.status-badge[data-status="dispatched"], .status-badge[data-status="started"], .status-badge[data-status="at_warehouse"], .status-badge[data-status="loading"], .status-badge[data-status="in_transit"] { background: #e9f1ff; color: #2d63b6; }
.status-badge[data-status="arrived"], .status-badge[data-status="delivered"], .status-badge[data-status="returning"] { background: #f1ebff; color: #6c43b2; }
.status-badge[data-status="returned"], .status-badge[data-status="completed"], .status-badge[data-status="ready"], .status-badge[data-status="received"] { background: #dff5e8; color: #087440; }
.status-badge[data-status="awaiting_original"], .status-badge[data-status="pending"] { background: #fff2e1; color: #af651a; }
.status-badge[data-status="on_hold"], .status-badge[data-status="overdue"] { background: #feeaea; color: #bd3f3f; }
.status-badge[data-status="invoiced"] { background: #e9f1ff; color: #2d63b6; }
.status-badge[data-status="cancelled"] { background: #feeaea; color: #bd3f3f; }
.status-badge[data-status="available"], .status-badge[data-status="active"] { background: #e7f8ef; color: #178451; }
.status-badge[data-status="on_trip"] { background: #e9f2ff; color: #287bea; }
.status-badge[data-status="maintenance"] { background: #fff1e3; color: #c56a16; }
.status-badge[data-status="inactive"] { background: #edf0f4; color: #69768a; }
.resource-meter { display: grid; gap: 16px; }
.resource-row { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 11px; }
.resource-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: var(--green-50); color: var(--green-700); font-size: 19px; }
.resource-row strong { display: block; font-size: 13px; }
.resource-row small { color: var(--muted); font-size: 10px; }
.resource-count { font-size: 20px; font-weight: 800; }
.pipeline { display: grid; gap: 0; }
.pipeline-step { position: relative; display: grid; grid-template-columns: 19px 1fr auto; gap: 10px; padding-bottom: 19px; }
.pipeline-step:last-child { padding-bottom: 0; }
.pipeline-step::before { content: ""; position: absolute; left: 8px; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.pipeline-step:last-child::before { display: none; }
.pipeline-dot { width: 18px; height: 18px; display: grid; place-items: center; border: 2px solid #cfd8d2; border-radius: 50%; background: #fff; color: #fff; font-size: 9px; z-index: 1; }
.pipeline-step.done .pipeline-dot { border-color: var(--green-600); background: var(--green-600); }
.pipeline-step.current .pipeline-dot { border-color: var(--blue); box-shadow: 0 0 0 4px #e5efff; }
.pipeline-step strong { display: block; font-size: 12px; }
.pipeline-step small { color: var(--muted); font-size: 10px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.filter-bar input { flex: 1; min-width: 220px; }
.filter-bar input, .filter-bar select, input, select, textarea { min-height: 41px; padding: 9px 11px; border: 1px solid #dce4df; border-radius: 9px; outline: none; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--green-600); box-shadow: 0 0 0 3px var(--green-100); }
textarea { width: 100%; resize: vertical; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 20px; align-items: start; }
.detail-stack { display: grid; gap: 20px; }
.detail-pairs { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.detail-pair small { display: block; margin-bottom: 4px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .45px; }
.detail-pair strong { font-size: 13px; line-height: 1.5; }
.route-card { position: relative; padding-left: 32px; }
.route-card::before { content: ""; position: absolute; left: 10px; top: 12px; bottom: 13px; border-left: 2px dashed #cdd8d1; }
.route-stop { position: relative; padding: 5px 0 15px; }
.route-stop:last-child { padding-bottom: 0; }
.route-stop::before { content: ""; position: absolute; left: -28px; top: 10px; width: 10px; height: 10px; border: 3px solid var(--green-600); border-radius: 50%; background: #fff; }
.route-stop.destination::before { border-color: var(--danger); }
.route-stop small { color: var(--muted); text-transform: uppercase; font-size: 9px; font-weight: 800; }
.route-stop p { margin: 3px 0 0; font-size: 13px; line-height: 1.45; }
.action-panel { display: grid; gap: 12px; }
.action-panel form { display: grid; gap: 10px; }
.action-panel label, .form-grid label { display: grid; gap: 6px; color: #526058; font-size: 11px; font-weight: 750; }
.assignment-native-fields { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.visual-assignment-form { gap: 12px !important; }
.assignment-picker-group { display: grid; gap: 6px; }
.assignment-picker-group > label { color: #4c596e; font-size: 9px; font-weight: 650; }
.assignment-picker-trigger { width: 100%; min-height: 68px; display: grid; grid-template-columns: 48px minmax(0,1fr) 20px; align-items: center; gap: 10px; padding: 9px; border: 1px solid #dfe5ec; border-radius: 6px; background: #fff; color: #405069; text-align: left; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.assignment-picker-trigger:hover { border-color: #9fc4f5; background: #fbfdff; box-shadow: 0 2px 8px rgba(40,123,234,.08); }
.assignment-picker-trigger.has-selection { border-color: #7eb2f1; background: #f7fbff; }
.assignment-picker-trigger > svg { width: 16px; height: 16px; color: #287bea; }
.assignment-picker-photo { width: 48px; height: 48px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: #eaf3ff; color: #287bea; }
.assignment-picker-photo.truck { border-radius: 5px; background: #f0f3f7; }
.assignment-picker-photo img { width: 100%; height: 100%; object-fit: cover; }
.assignment-picker-photo.truck img { padding: 3px; object-fit: contain; }
.assignment-picker-photo svg { width: 21px; height: 21px; }
.assignment-picker-trigger > span:nth-child(2) { min-width: 0; }
.assignment-picker-trigger small, .assignment-picker-trigger strong, .assignment-picker-trigger em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.assignment-picker-trigger small { color: #8490a3; font-size: 7px; font-style: normal; font-weight: 650; letter-spacing: .35px; text-transform: uppercase; }
.assignment-picker-trigger strong { margin-top: 3px; color: #273248; font-size: 10px; }
.assignment-picker-trigger em { margin-top: 3px; color: #8490a3; font-size: 8px; font-style: normal; }
.assignment-ready-state { min-height: 34px; display: flex; align-items: center; gap: 7px; padding: 7px 9px; border-radius: 4px; background: #f5f7fa; color: #728096; font-size: 8px; }
.assignment-ready-state svg { width: 13px; height: 13px; }
.assignment-ready-state.is-ready { background: #eaf8f1; color: #168050; }

.resource-picker-modal { z-index: 1065; }
.resource-picker-modal .modal-dialog { max-width: 900px; }
.resource-picker-modal .modal-xl { max-width: 1040px; }
.resource-picker-modal .modal-content { overflow: hidden; border: 0; border-radius: 9px; box-shadow: 0 20px 55px rgba(20,36,60,.2); }
.resource-picker-head { min-height: 76px; display: grid; grid-template-columns: 42px minmax(0,1fr) auto 30px; align-items: center; gap: 11px; padding: 13px 16px; border-bottom: 1px solid #e8ecf1; background: #fff; }
.resource-picker-head-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 7px; background: #eaf3ff; color: #287bea; }
.resource-picker-head-icon.truck { background: #e9f8f2; color: #168451; }
.resource-picker-head-icon svg { width: 20px; height: 20px; }
.resource-picker-head p { margin: 0 0 3px; color: #287bea; font-size: 7px; font-weight: 700; letter-spacing: .65px; text-transform: uppercase; }
.resource-picker-head h3 { margin: 0; color: #202c3f; font-size: 15px; font-weight: 650; }
.resource-picker-count { min-width: 76px; padding: 6px 9px; border-radius: 14px; background: #f0f5fb; color: #66758a; font-size: 8px; text-align: center; white-space: nowrap; }
.resource-picker-count strong { color: #287bea; font-size: 10px; }
.resource-picker-body { min-height: 430px; padding: 14px; background: #f7f9fc; }
.resource-picker-search { position: sticky; top: -14px; z-index: 3; height: 46px; display: flex; align-items: center; gap: 9px; margin: -1px 0 12px; padding: 0 12px; border: 1px solid #dfe5ec; border-radius: 6px; background: #fff; box-shadow: 0 2px 7px rgba(16,24,40,.04); }
.resource-picker-search > svg { flex: 0 0 17px; width: 17px; height: 17px; color: #7e8ba0; }
.resource-picker-search input { flex: 1; min-width: 0; min-height: 42px; padding: 6px 0; border: 0; background: transparent; box-shadow: none; font-size: 10px; }
.resource-picker-search input:focus { border: 0; box-shadow: none; }
.resource-picker-search kbd { padding: 2px 5px; border: 1px solid #e2e7ee; border-radius: 4px; background: #f7f8fa; color: #8b96a6; font-family: inherit; font-size: 7px; }
.resource-option-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.resource-option-card { position: relative; min-width: 0; min-height: 120px; display: grid; grid-template-columns: 78px minmax(0,1fr); align-items: center; gap: 12px; padding: 11px; overflow: hidden; border: 1px solid #e1e6ed; border-radius: 7px; background: #fff; color: #48566d; text-align: left; box-shadow: 0 1px 2px rgba(16,24,40,.02); transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.resource-option-card:hover { border-color: #8dbcf4; box-shadow: 0 5px 14px rgba(40,123,234,.1); transform: translateY(-1px); }
.resource-option-card.is-selected { border-color: #287bea; box-shadow: 0 0 0 2px rgba(40,123,234,.11); }
.resource-option-card.is-unavailable { cursor: not-allowed; filter: saturate(.72); opacity: .68; }
.resource-option-card.is-unavailable:hover { border-color: #e1e6ed; box-shadow: 0 1px 2px rgba(16,24,40,.02); transform: none; }
.driver-option > img { width: 78px; height: 92px; border-radius: 6px; background: #eaf3ff; object-fit: cover; }
.truck-option { grid-template-columns: 142px minmax(0,1fr); min-height: 142px; }
.truck-option-photo { width: 142px; height: 94px; display: grid; place-items: center; overflow: hidden; border-radius: 6px; background: radial-gradient(circle at 50% 55%,#fff 0,#f4f7fa 65%,#e8edf2 100%); }
.truck-option-photo img { width: 100%; height: 100%; object-fit: cover; }
.truck-option-photo img.stock-vehicle-image { padding: 8px; object-fit: contain; }
.resource-option-main { min-width: 0; align-self: stretch; display: grid; align-content: center; gap: 8px; }
.resource-option-main > span:first-child { min-width: 0; }
.resource-option-main > span:first-child small, .resource-option-main > span:first-child strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resource-option-main > span:first-child small { color: #287bea; font-size: 7px; font-weight: 700; letter-spacing: .45px; text-transform: uppercase; }
.resource-option-main > span:first-child strong { margin-top: 3px; color: #263247; font-size: 11px; }
.resource-availability { position: absolute; top: 9px; right: 9px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px; border-radius: 10px; background: #e8f8ef; color: #168050; font-size: 7px; font-style: normal; font-weight: 650; }
.resource-availability i { width: 5px; height: 5px; border-radius: 50%; background: #23b96b; }
.resource-availability.unavailable { background: #f0f1f3; color: #68758a; }
.resource-availability.unavailable i { background: #8a95a5; }
.resource-option-details { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 8px; }
.resource-option-details small { min-width: 0; display: flex; align-items: center; gap: 5px; overflow: hidden; color: #7a879a; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.resource-option-details svg { flex: 0 0 11px; width: 11px; height: 11px; color: #8795a8; }
.resource-select-mark { position: absolute; right: 10px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; color: #287bea; font-size: 7px; }
.resource-select-mark svg { width: 11px; height: 11px; }
.resource-select-mark b { font-weight: 650; }
.resource-option-card.is-selected .resource-select-mark { color: #168050; }
.resource-picker-empty { min-height: 300px; display: grid; place-items: center; align-content: center; gap: 7px; color: #8290a3; text-align: center; }
.resource-picker-empty[hidden] { display: none; }
.resource-picker-empty.static { grid-column: 1 / -1; min-height: 280px; }
.resource-picker-empty svg { width: 30px; height: 30px; color: #9ba8b8; }
.resource-picker-empty strong { color: #405069; font-size: 11px; }
.resource-picker-empty p { margin: 0; font-size: 8px; }
.empty-state { padding: 40px 20px; color: var(--muted); text-align: center; }
.empty-state strong { display: block; margin-bottom: 5px; color: var(--ink); }
.form-card { max-width: 920px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.form-grid p { display: contents; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; }
.form-grid input[type="checkbox"] { width: 20px; min-height: 20px; margin: 4px 0; accent-color: var(--green-700); }
.form-grid .full-row { grid-column: 1 / -1; }
.form-errors { color: var(--danger); font-size: 11px; }
.map-shell { position: relative; min-height: 570px; background: #e9efeb; }
#dispatch-map { width: 100%; height: 570px; }
.map-placeholder { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; background-color: #edf2ee; background-image: linear-gradient(#dfe7e1 1px, transparent 1px), linear-gradient(90deg, #dfe7e1 1px, transparent 1px); background-size: 44px 44px; }
.map-placeholder::after { content: ""; position: absolute; width: 110%; height: 90px; border: 4px solid rgba(70,132,190,.6); border-left: 0; border-right: 0; transform: rotate(-12deg); }
.map-placeholder-copy { position: relative; z-index: 2; max-width: 390px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.95); text-align: center; box-shadow: var(--shadow); }
.map-placeholder-copy h3 { margin: 0 0 8px; }
.map-placeholder-copy p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.monitor-layout { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 20px; }
.live-list { max-height: 570px; overflow-y: auto; }
.live-item { display: grid; gap: 9px; padding: 15px 17px; border-bottom: 1px solid var(--line); }
.live-item-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.live-item p { margin: 0; color: var(--muted); font-size: 11px; }
.live-item-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
.login-page { min-height: 100vh; background: #fff; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.1fr) minmax(390px, .9fr); }
.login-story { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 43px 55px; background: radial-gradient(circle at 80% 10%, rgba(67,158,216,.4), transparent 32%), linear-gradient(145deg, #0c324c, #236f9f); color: #fff; }
.login-story::after { content: ""; position: absolute; right: -10%; bottom: -27%; width: 70%; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.02); }
.brand-light .brand-mark { color: var(--green-800); background: #fff; }
.brand-light small { color: #a5e6c2; }
.story-copy { position: relative; z-index: 1; max-width: 590px; }
.story-pill { display: inline-flex; padding: 7px 10px; border: 1px solid rgba(255,255,255,.25); border-radius: 20px; background: rgba(255,255,255,.08); text-transform: uppercase; letter-spacing: 1px; font-size: 9px; font-weight: 800; }
.story-copy h1 { margin: 24px 0 18px; font-size: clamp(44px, 5vw, 71px); line-height: .98; letter-spacing: -3.5px; }
.story-copy h1 em { color: #8fe3b6; font-style: normal; }
.story-copy p { max-width: 490px; color: #cee5d8; font-size: 15px; line-height: 1.65; }
.story-stats { position: relative; z-index: 1; display: flex; gap: 45px; }
.story-stats span { display: flex; flex-direction: column; }
.story-stats strong { font-size: 19px; }
.story-stats small { margin-top: 4px; color: #a8cbb8; font-size: 10px; }
.login-brand-lockup { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; }
.login-brand-lockup img { width: 225px; max-height: 60px; object-fit: contain; filter: drop-shadow(0 6px 18px rgba(0,0,0,.18)); }
.login-brand-lockup span { padding-left: 14px; border-left: 1px solid rgba(255,255,255,.3); color: #cfe9f8; letter-spacing: 1.5px; font-size: 10px; font-weight: 800; }
.login-company { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; margin-top: 24px; color: #b8d8ea; font-size: 9px; text-transform: uppercase; letter-spacing: 1px; }
.login-company img { width: 180px; height: 38px; object-fit: contain; padding: 4px 8px; border-radius: 7px; background: rgba(255,255,255,.94); }
.login-panel { display: grid; place-items: center; padding: 45px; }
.login-form { width: min(390px, 100%); }
.login-form h2 { margin: 7px 0 4px; font-size: 31px; letter-spacing: -1px; }
.login-form > label { display: block; margin: 22px 0 7px; font-size: 11px; font-weight: 800; }
.login-form > input { width: 100%; min-height: 47px; }
.login-form .button { margin-top: 25px; min-height: 47px; }
.login-help { margin-top: 18px; color: var(--muted); text-align: center; font-size: 11px; }
code { padding: 2px 5px; border-radius: 4px; background: #eef3ef; font-size: 10px; }
.empty-state.compact { padding: 14px; }
.table-note { display: block; max-width: 260px; margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.error-text { color: var(--danger); }
.table-actions { min-width: 205px; display: grid; gap: 7px; }
.inline-form { display: flex; align-items: center; gap: 6px; }
.inline-form input { width: 138px; min-height: 32px; padding: 6px 8px; font-size: 11px; }
.billing-table td { vertical-align: top; }
.navbar-brand-box { background: #fff !important; border-right: 1px solid #e5e9ef; }
.fleet-logo-link { display: flex !important; align-items: center; justify-content: center; }
.fleet-logo { width: 150px; max-height: 40px; object-fit: contain; }
.notebook-logo { width: 150px; }
.fleet-monogram { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 9px; background: linear-gradient(145deg, #3194dd, #124d86); color: #fff; font-size: 18px; font-weight: 900; }
.company-endorsement { gap: 7px; padding: 0 12px; color: #8b98a2; font-size: 10px; }
.company-endorsement img { width: 145px; height: 31px; object-fit: contain; }
body[data-sidebar="dark"] .vertical-menu { background: linear-gradient(180deg, #123d59 0%, #0b2d44 100%); }
body[data-sidebar="dark"] #sidebar-menu ul li a { color: #c7d8e4; }
body[data-sidebar="dark"] #sidebar-menu ul li a:hover,
body[data-sidebar="dark"] #sidebar-menu ul li a.active,
body[data-sidebar="dark"] #sidebar-menu ul li.mm-active > a { color: #fff; background: rgba(255,255,255,.09); }
body[data-sidebar="dark"] #sidebar-menu ul li a i { color: #8fc7e8; }
body[data-sidebar="dark"] .menu-title { color: #7fa8c1; }
#page-topbar { box-shadow: 0 2px 3px rgba(52,58,64,.06); }
.vertical-menu { border-color: #e9ebef; }
#sidebar-menu ul li a { border-radius: 3px; }
#sidebar-menu ul li.mm-active > a,
#sidebar-menu ul li a.active { color: #038edc; background: #f2f3fe; }
#sidebar-menu ul li a:hover { color: #038edc; }
.page-title-box h4 { color: var(--ink); font-weight: 500; }
.bg-soft-primary { background-color: #e8f3fa !important; }
.text-primary { color: var(--green-700) !important; }
.breadcrumb-item a { color: var(--green-700); }
.footer { color: var(--muted); }
.fleet-noti-dot { position: absolute; top: 24px; right: 14px; width: 6px; height: 6px; border-radius: 50%; background: #f34e4e; box-shadow: 0 0 0 3px #fff; }
.page-content { background: #f7f8fa; }
.card, .stat-card { border-color: #eff0f2; box-shadow: 0 2px 3px rgba(52,58,64,.06); }
.card-head { min-height: 58px; }
.filter-bar input, .filter-bar select, input, select, textarea { border-color: #e2e5e8; border-radius: 3px; }
.data-table th { background: #f8f9fa; color: #74788d; font-weight: 500; }
.authentication-bg.fleet-auth-bg { background-image: url("../dashonic/images/auth-bg.jpg"); background-size: cover; background-position: center; }
.fleet-auth-card { position: relative; z-index: 2; }
.auth-notebook-logo { width: 190px; height: 54px; object-fit: contain; }
.auth-product-name { margin-top: 8px; color: #74788d; font-size: 10px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; }
.auth-company-wrap { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 34px; color: #9aa1ad; font-size: 9px; letter-spacing: .8px; text-transform: uppercase; }
.auth-company-wrap img { width: 160px; height: 38px; object-fit: contain; }
.fleet-auth-card .btn-info { background: #55c5e8; border-color: #55c5e8; color: #fff; }
.fleet-auth-card .btn-info:hover { background: #3ab8df; border-color: #3ab8df; color: #fff; }
@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .content-grid, .detail-grid { grid-template-columns: 1fr; }
  .monitor-layout { grid-template-columns: 1fr; }
  .live-list { max-height: 330px; }
}
@media (max-width: 920px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: -270px; width: 250px; transition: left .22s ease; box-shadow: 20px 0 40px rgba(0,0,0,.13); }
  .sidebar.open { left: 0; }
  .menu-toggle { display: block; }
  .login-shell { grid-template-columns: 1fr; }
  .login-story { display: none; }
}
@media (max-width: 620px) {
  .topbar { padding: 15px 18px; }
  .topbar-actions { display: none; }
  .page-content { padding: 84px 15px 66px; }
  .page-head { align-items: stretch; flex-direction: column; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 16px; }
  .detail-pairs, .form-grid { grid-template-columns: 1fr; }
  .login-panel { padding: 28px; }
}

/* Dashonic administration and system control */
.admin-stats-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.access-directory-card .card-head { align-items: center; }
.access-security-chip, .settings-updated { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid #dce9fb; border-radius: 14px; background: #f2f7ff; color: #287bea; font-size: 8px; font-weight: 650; white-space: nowrap; }
.access-security-chip svg, .settings-updated svg { width: 12px; height: 12px; }
.access-role-note { display: block; margin-top: 4px; color: #8490a3; font-size: 8px; }
.status-badge[data-status="administrator"] { background: #f0e9ff; color: #7540c2; }
.status-badge[data-status="dispatcher"] { background: #e9f2ff; color: #287bea; }
.status-badge[data-status="driver"] { background: #e5f8f6; color: #0b817c; }
.status-badge[data-status="limited"] { background: #f0f1f3; color: #667085; }
.role-matrix-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 14px; }
.role-matrix-card { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 12px; padding: 15px; }
.role-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 6px; background: #edf4ff; color: #287bea; }
.role-icon.administrator { background: #f1eaff; color: #7540c2; }
.role-icon.driver { background: #e6f8f6; color: #0b817c; }
.role-icon svg { width: 18px; height: 18px; }
.role-matrix-card h3 { margin: 1px 0 5px; color: #263247; font-size: 11px; }
.role-matrix-card p { margin: 0; color: #748095; font-size: 8px; line-height: 1.5; }
.role-matrix-card ul { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; padding: 0; list-style: none; }
.role-matrix-card li { padding: 4px 7px; border-radius: 10px; background: #f5f7fa; color: #647187; font-size: 7px; }
.access-user-form { max-width: 880px; }
.system-settings-head { align-items: center; }
.settings-health-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 11px; margin-bottom: 14px; }
.settings-health-card { min-width: 0; display: grid; grid-template-columns: 36px minmax(0,1fr); gap: 10px; padding: 13px; }
.settings-health-card > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 6px; background: #edf3fb; color: #607089; }
.settings-health-card.is-ready > span { background: #e7f8ef; color: #16804f; }
.settings-health-card.is-warning > span { background: #fff1df; color: #c06b19; }
.settings-health-card svg { width: 17px; height: 17px; }
.settings-health-card small, .settings-health-card strong, .settings-health-card p { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.settings-health-card small { color: #7c8798; font-size: 7px; font-weight: 650; letter-spacing: .35px; text-transform: uppercase; }
.settings-health-card strong { margin-top: 5px; color: #283449; font-size: 10px; }
.settings-health-card p { margin: 4px 0 0; color: #8a94a4; font-size: 7px; }
.system-settings-form { display: grid; gap: 14px; }
.settings-layout-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 14px; }
.settings-form-card { min-width: 0; margin: 0; }
.settings-section-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 6px; background: #edf4ff; color: #287bea; }
.settings-section-icon svg { width: 15px; height: 15px; }
.settings-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.settings-field-grid label { min-width: 0; }
.settings-field-grid .full-row { grid-column: 1 / -1; }
.settings-field-grid .field-help { display: block; margin-top: 4px; color: #8691a2; font-size: 8px; font-weight: 400; }
.telemetry-policy-preview { display: flex; align-items: center; gap: 8px; padding: 12px; border: 1px solid #e8ecf1; border-radius: 5px; background: #fafbfd; }
.telemetry-policy-preview > b { flex: 1; height: 1px; background: #dce2ea; }
.policy-stage { min-width: 72px; text-align: center; }
.policy-stage i { width: 9px; height: 9px; display: block; margin: 0 auto 5px; border-radius: 50%; background: #23b96b; box-shadow: 0 0 0 3px #e6f8ef; }
.policy-stage.weak i { background: #efa038; box-shadow: 0 0 0 3px #fff2df; }
.policy-stage.lost i { background: #db4d4d; box-shadow: 0 0 0 3px #feecec; }
.policy-stage strong, .policy-stage small { display: block; }
.policy-stage strong { color: #344054; font-size: 8px; }
.policy-stage small { margin-top: 3px; color: #8a94a4; font-size: 7px; }
.settings-save-bar { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 13px; border: 1px solid #dce8f8; border-radius: 6px; background: #f7faff; }
.settings-save-bar > span { display: flex; align-items: center; gap: 7px; color: #68758a; font-size: 8px; }
.settings-save-bar > span svg { width: 14px; height: 14px; color: #287bea; }

@media (max-width: 1200px) {
  .admin-stats-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .settings-health-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 920px) {
  .role-matrix-grid, .settings-layout-grid { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .admin-stats-grid, .settings-health-grid, .settings-field-grid { grid-template-columns: 1fr; }
  .settings-field-grid .full-row { grid-column: auto; }
  .settings-save-bar, .system-settings-head { align-items: stretch; flex-direction: column; }
  .telemetry-policy-preview { align-items: stretch; flex-direction: column; }
  .telemetry-policy-preview > b { width: 1px; height: 14px; margin: 0 auto; }
}

/* Invoice preparation and billing workspace */
.billing-page-head { align-items: center; margin-bottom: 14px; }
.billing-head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.billing-head-actions svg, .billing-row-actions svg, .billing-control-chip svg { width: 13px; height: 13px; }
.billing-stats-grid { grid-template-columns: repeat(6, minmax(0,1fr)); gap: 10px; }
.billing-stats-grid .stat-card { min-width: 0; padding: 15px; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.billing-stats-grid .stat-card:hover, .billing-stats-grid .stat-card.is-active { border-color: var(--accent); box-shadow: 0 7px 20px rgba(27,43,65,.09); transform: translateY(-1px); }
.billing-stats-grid .stat-card::after { right: 15px; bottom: 12px; left: 15px; }
.billing-stats-grid .stat-value { font-size: 25px; }
.billing-filter-bar { align-items: stretch; padding: 9px; border: 1px solid #e4e9ef; border-radius: 6px; background: #fff; }
.billing-search { position: relative; display: flex; flex: 1; min-width: 280px; }
.billing-search svg { position: absolute; top: 13px; left: 12px; width: 15px; height: 15px; color: #8290a4; }
.billing-search input { width: 100%; padding-left: 36px; }
.billing-card-head { align-items: center; }
.billing-control-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 14px; background: #eff6ff; color: #287bea; font-size: 8px; font-weight: 650; }
.billing-preparation-table th:nth-child(1) { min-width: 205px; }
.billing-preparation-table th:nth-child(2) { min-width: 150px; }
.billing-preparation-table th:nth-child(3) { min-width: 245px; }
.billing-preparation-table th:nth-child(4) { min-width: 125px; }
.billing-preparation-table th:nth-child(6) { min-width: 245px; }
.billing-link { color: #287bea; font-weight: 650; }
.invoice-amount-cell { display: flex; flex-direction: column; gap: 4px; }
.invoice-amount-cell strong { color: #18243a; font-size: 13px; }
.invoice-amount-cell small { color: #7f8a9d; font-size: 8px; }
.status-badge[data-status="prepared"] { background: #e9f2ff; color: #287bea; }
.billing-row-actions { align-items: center; }
.billing-row-actions form { margin: 0; }
.record-existing { position: relative; }
.record-existing summary { cursor: pointer; color: #7b8799; font-size: 8px; list-style: none; white-space: nowrap; }
.record-existing summary::-webkit-details-marker { display: none; }
.record-existing[open] { width: 100%; padding-top: 4px; }
.record-existing .inline-form { margin-top: 5px; }
.record-existing .inline-form input { min-width: 130px; }

.invoice-preparation-modal { z-index: 1065; }
.invoice-preparation-modal .modal-dialog { max-width: 1220px; }
.invoice-preparation-modal .modal-content { overflow: hidden; border: 0; border-radius: 9px; box-shadow: 0 22px 65px rgba(20,36,60,.23); }
.invoice-modal-head { display: grid; grid-template-columns: 43px minmax(0,1fr) auto; gap: 11px; padding: 14px 18px; border-bottom: 1px solid #e8ecf1; background: #fff; }
.invoice-modal-head > div { min-width: 0; }
.invoice-modal-head p, .invoice-modal-head h3, .invoice-modal-head small { display: block; margin: 0; }
.invoice-modal-head p { color: #287bea; font-size: 8px; font-weight: 700; letter-spacing: .55px; text-transform: uppercase; }
.invoice-modal-head h3 { margin-top: 3px; color: #172033; font-size: 17px; }
.invoice-modal-head small { margin-top: 3px; color: #8490a3; font-size: 8px; }
.invoice-modal-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 8px; background: #eaf3ff; color: #287bea; }
.invoice-modal-icon svg { width: 20px; height: 20px; }
.invoice-modal-body { display: grid; grid-template-columns: 230px minmax(480px,1fr) 215px; gap: 14px; padding: 14px; background: #f7f9fc; }
.invoice-source-summary, .invoice-editor section, .invoice-totals-card { border: 1px solid #e2e8f0; border-radius: 7px; background: #fff; }
.invoice-source-summary, .invoice-totals-card { align-self: start; padding: 15px; }
.invoice-source-summary h4, .invoice-totals-card h4 { margin: 4px 0 13px; color: #1c2940; font-size: 13px; }
.invoice-source-summary dl { display: grid; gap: 10px; margin: 0; }
.invoice-source-summary dl div { padding-bottom: 9px; border-bottom: 1px solid #edf0f4; }
.invoice-source-summary dt { color: #8490a3; font-size: 7px; letter-spacing: .4px; text-transform: uppercase; }
.invoice-source-summary dd { margin: 3px 0 0; color: #354057; font-size: 8px; line-height: 1.45; }
.notebook-invoice-option { display: grid; grid-template-columns: 29px minmax(0,1fr); gap: 9px; margin-top: 12px; padding: 10px; border: 1px solid #dce9fb; border-radius: 6px; background: #f4f8ff; }
.notebook-invoice-option > span { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 5px; background: #e5efff; color: #287bea; }
.notebook-invoice-option svg { width: 14px; height: 14px; }
.notebook-invoice-option strong { color: #273248; font-size: 8px; }
.notebook-invoice-option p { margin: 3px 0 7px; color: #718096; font-size: 7px; line-height: 1.4; }
.notebook-invoice-option a { display: inline-flex; align-items: center; gap: 4px; color: #1768c7; font-size: 7px; font-weight: 700; }
.notebook-invoice-option a svg { width: 10px; height: 10px; }
.invoice-editor { display: grid; gap: 12px; }
.invoice-editor section { overflow: hidden; }
.invoice-editor section > header { display: grid; grid-template-columns: 24px minmax(0,1fr); gap: 9px; align-items: center; padding: 10px 12px; border-bottom: 1px solid #e8ecf1; background: #fbfcfe; }
.invoice-editor section > header > span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 5px; background: #287bea; color: #fff; font-size: 9px; font-weight: 700; }
.invoice-editor header strong, .invoice-editor header small { display: block; }
.invoice-editor header strong { color: #29364c; font-size: 9px; }
.invoice-editor header small { margin-top: 2px; color: #8691a3; font-size: 7px; }
.invoice-field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; padding: 12px; }
.invoice-field-grid label { min-width: 0; }
.invoice-field-grid label.full { grid-column: 1 / -1; }
.invoice-field-grid label > span { display: block; margin-bottom: 4px; color: #667085; font-size: 7px; font-weight: 650; }
.invoice-field-grid input, .invoice-field-grid select, .invoice-field-grid textarea { width: 100%; min-height: 36px; padding: 7px 9px; border-radius: 5px; font-size: 8px; }
.invoice-field-grid textarea { min-height: 50px; }
.invoice-totals-card > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 0; border-bottom: 1px solid #edf0f4; }
.invoice-totals-card > div span { color: #748095; font-size: 8px; }
.invoice-totals-card > div strong { color: #354057; font-size: 9px; }
.invoice-totals-card > div.grand { margin-top: 4px; padding: 13px 0; border-bottom: 0; }
.invoice-totals-card > div.grand span { color: #273248; font-weight: 700; }
.invoice-totals-card > div.grand strong { color: #1768c7; font-size: 16px; }
.invoice-totals-card > div.grand em { font-size: 8px; font-style: normal; }
.invoice-totals-card > p:last-child { margin: 10px 0 0; padding: 9px; border-radius: 5px; background: #f7f9fc; color: #7c8798; font-size: 7px; line-height: 1.45; }
.invoice-modal-footer { gap: 8px; padding: 10px 14px; border-top: 1px solid #e8ecf1; background: #fff; }
.invoice-modal-footer > span { display: inline-flex; flex: 1; align-items: center; gap: 6px; color: #7b8799; font-size: 8px; }
.invoice-modal-footer > span svg { width: 13px; height: 13px; color: #287bea; }

@media (max-width: 1200px) {
  .billing-stats-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .invoice-modal-body { grid-template-columns: 210px minmax(0,1fr); }
  .invoice-totals-card { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .billing-page-head, .billing-head-actions { align-items: stretch; flex-direction: column; }
  .billing-stats-grid { grid-template-columns: 1fr 1fr; }
  .invoice-preparation-modal .modal-dialog { margin: 7px; }
  .invoice-modal-body { grid-template-columns: 1fr; }
  .invoice-totals-card { grid-column: auto; }
  .invoice-field-grid { grid-template-columns: 1fr; }
  .invoice-field-grid label.full { grid-column: auto; }
}

/* Trip bookings and live monitoring tracking workspace */
.tracking-page-head { margin-bottom: 14px; }
.operations-kpi-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); margin-bottom: 14px; overflow: hidden; border: 1px solid #e5eaf0; border-radius: 7px; background: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.025); }
.live-operations-kpis { grid-template-columns: repeat(5, minmax(0,1fr)); }
.operations-kpi-strip article { min-width: 0; display: grid; grid-template-columns: 37px minmax(0,1fr); align-items: center; gap: 10px; min-height: 88px; padding: 13px 15px; border-right: 1px solid #e9edf2; }
.operations-kpi-strip article:last-child { border-right: 0; }
.operations-kpi-icon { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 50%; background: #eaf3ff; color: #287bea; }
.operations-kpi-icon svg { width: 17px; height: 17px; }
.operations-kpi-icon.cyan { background: #e5f8f8; color: #14a4a4; }
.operations-kpi-icon.orange { background: #fff1e3; color: #d9781e; }
.operations-kpi-icon.red { background: #feeeee; color: #d14a48; }
.operations-kpi-icon.green { background: #e8f8ef; color: #20a665; }
.operations-kpi-strip small, .operations-kpi-strip strong, .operations-kpi-strip p { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.operations-kpi-strip small { color: #68768a; font-size: 8px; font-weight: 650; }
.operations-kpi-strip strong { margin-top: 5px; color: #172033; font-size: 21px; line-height: 1; }
.operations-kpi-strip p { margin: 6px 0 0; color: #8a95a6; font-size: 7px; }
.tracking-filter-bar { padding: 10px; border: 1px solid #e7ebf0; border-radius: 6px; background: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.025); }
.tracking-workspace { display: grid; grid-template-columns: 306px minmax(0, 1fr); gap: 14px; align-items: start; }
.tracking-rail, .tracking-detail { min-width: 0; border-color: #e4e9ef; }
.tracking-rail { position: sticky; top: 78px; overflow: hidden; }
.tracking-rail-head { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 13px; border-bottom: 1px solid #e8ecf1; }
.tracking-rail-head strong { display: block; color: #273248; font-size: 11px; }
.tracking-rail-head small { display: block; margin-top: 3px; color: #8490a3; font-size: 8px; }
.tracking-card-list { max-height: 695px; overflow-y: auto; background: #fbfcfd; }
.tracking-trip-card { position: relative; display: grid; width: 100%; gap: 9px; padding: 12px; border: 0; border-bottom: 1px solid #edf0f4; border-left: 3px solid transparent; border-radius: 0; background: #fff; color: #354057; text-align: left; transition: background .15s ease, border-color .15s ease; }
.tracking-trip-card:hover { background: #f8fbff; }
.tracking-trip-card.is-selected { border-left-color: #287bea; background: #f3f7ff; box-shadow: inset 0 0 0 1px #dce9fb; }
.tracking-trip-top, .tracking-trip-footer { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.tracking-trip-top > strong { overflow: hidden; color: #263247; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.tracking-trip-visual { display: grid; grid-template-columns: 68px minmax(0, 1fr); align-items: center; gap: 10px; }
.tracking-truck-thumb { width: 68px; height: 43px; display: grid; place-items: center; overflow: hidden; border: 1px solid #e2e8ef; border-radius: 5px; background: linear-gradient(145deg, #f1f5f9, #e4ebf2); color: #6d7c91; }
.tracking-truck-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tracking-truck-thumb img.stock-vehicle-image { padding: 4px 5px; background: linear-gradient(145deg, #f9fbfd, #eef3f8); object-fit: contain; }
.tracking-truck-thumb svg { width: 27px; height: 27px; }
.tracking-trip-visual > span:last-child { min-width: 0; }
.tracking-trip-visual strong, .tracking-trip-visual small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tracking-trip-visual strong { color: #263247; font-size: 10px; }
.tracking-trip-visual small { margin-top: 3px; color: #7d889b; font-size: 8px; }
.tracking-trip-route { display: grid; grid-template-columns: 14px minmax(0, 1fr); align-items: start; gap: 6px; color: #4e5b70; font-size: 8px; line-height: 1.35; }
.tracking-trip-route svg { width: 12px; height: 12px; color: #287bea; }
.tracking-trip-route span, .tracking-trip-route small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tracking-trip-route small { margin-top: 2px; color: #8a94a5; }
.tracking-trip-footer { color: #8490a3; font-size: 8px; }
.trip-footer-alerts { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.signal-live-chip { display: inline-flex; align-items: center; gap: 3px; padding: 3px 6px; border-radius: 10px; background: #eef2f6; color: #667085; font-weight: 650; }
.signal-live-chip svg { width: 9px; height: 9px; }
.signal-live-chip.online { background: #e8f8ef; color: #178a53; }
.signal-live-chip.weak { background: #fff2df; color: #b66a18; }
.signal-live-chip.lost { background: #feeeee; color: #c83e3e; }
.evidence-chip { display: inline-flex; align-items: center; gap: 3px; padding: 3px 6px; border-radius: 10px; background: #e9f9f0; color: #21965d; font-weight: 600; }
.evidence-chip svg { width: 9px; height: 9px; }

.tracking-detail { overflow: hidden; }
.tracking-detail-head { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 15px; border-bottom: 1px solid #e8ecf1; }
.tracking-detail-head > div { display: flex; min-width: 0; align-items: center; gap: 9px; }
.tracking-detail-id { color: #287bea; font-size: 9px; font-weight: 650; }
.tracking-detail-head h3 { overflow: hidden; margin: 0; color: #172033; font-size: 17px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.tracking-detail-head .button.disabled { pointer-events: none; opacity: .55; }
.tracking-vehicle-hero { display: grid; grid-template-columns: minmax(230px, .72fr) minmax(360px, 1.28fr); min-height: 203px; border-bottom: 1px solid #e8ecf1; background: #fff; }
.tracking-vehicle-photo { min-height: 203px; display: grid; place-items: center; overflow: hidden; border-right: 1px solid #e8ecf1; background: radial-gradient(circle at 50% 50%, #fff 0, #f3f6f9 65%, #e8edf2 100%); }
.tracking-vehicle-photo > img { width: 100%; height: 100%; min-height: 203px; object-fit: cover; }
.tracking-vehicle-photo > img.stock-vehicle-image { padding: 22px 25px; background: radial-gradient(circle at 50% 55%, #fff 0, #f6f8fb 60%, #e9eef4 100%); object-fit: contain; }
.tracking-vehicle-photo > span { display: grid; place-items: center; gap: 7px; color: #718096; }
.tracking-vehicle-photo > span svg { width: 92px; height: 92px; stroke-width: 1.1; }
.tracking-vehicle-photo > span small { max-width: 180px; color: #8490a3; font-size: 8px; text-align: center; }
.tracking-vehicle-data { min-width: 0; display: grid; align-content: center; gap: 22px; padding: 19px; }
.tracking-metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 15px; }
.tracking-metric-grid > div { min-width: 0; }
.tracking-metric-grid small, .tracking-info-grid small, .pod-summary-strip small { display: block; margin-bottom: 5px; color: #8490a3; font-size: 7px; font-weight: 600; letter-spacing: .45px; text-transform: uppercase; }
.tracking-metric-grid strong, .tracking-metric-grid span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tracking-metric-grid strong { color: #273248; font-size: 11px; }
.tracking-metric-grid span { margin-top: 3px; color: #7b8799; font-size: 8px; }
.capacity-panel { min-width: 0; }
.capacity-panel > span { display: flex; align-items: end; justify-content: space-between; gap: 10px; }
.capacity-panel small { color: #667085; font-size: 9px; font-weight: 600; }
.capacity-panel strong { color: #287bea; font-size: 24px; line-height: 1; }
.capacity-bar { height: 8px; margin-top: 8px; overflow: hidden; border-radius: 8px; background: #e8edf3; }
.capacity-bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #287bea, #65a6ff); transition: width .25s ease; }
.capacity-panel p { margin: 7px 0 0; color: #8490a3; font-size: 8px; }
.capacity-panel.is-over-capacity strong { color: #d84343; }
.capacity-panel.is-over-capacity .capacity-bar i { background: linear-gradient(90deg, #ef8b22, #d84343); }
.capacity-panel.is-over-capacity p { color: #b54747; }

.tracking-tabs { min-height: 45px; display: flex; align-items: end; gap: 22px; padding: 0 16px; border-bottom: 1px solid #e8ecf1; background: #fbfcfd; }
.tracking-tabs button { position: relative; min-height: 44px; display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: transparent; color: #7b8799; font-size: 9px; font-weight: 600; }
.tracking-tabs button::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; border-radius: 2px; background: transparent; content: ""; }
.tracking-tabs button.is-active { color: #287bea; }
.tracking-tabs button.is-active::after { background: #287bea; }
.tracking-tabs button span { min-width: 15px; height: 15px; display: inline-grid; place-items: center; padding: 0 4px; border-radius: 8px; background: #e8f1ff; color: #287bea; font-size: 7px; }
.tracking-tab-panel { min-height: 365px; background: #fff; }
.tracking-tab-panel[hidden] { display: none !important; }
.tracking-route-summary { display: grid; grid-template-columns: minmax(0, 1fr) 270px; min-height: 365px; }
.tracking-route-map-shell { position: relative; min-height: 365px; overflow: hidden; border-right: 1px solid #e8ecf1; background: #e7edf2; }
#booking-tracking-map, #dispatch-map { width: 100%; height: 365px; }
.tracking-map-state { position: absolute; top: 12px; left: 50%; z-index: 5; padding: 6px 10px; border-radius: 12px; background: rgba(255,255,255,.92); color: #667085; font-size: 8px; box-shadow: 0 2px 8px rgba(16,24,40,.12); transform: translateX(-50%); }
.tracking-map-state.is-ready { border: 1px solid rgba(40,123,234,.2); background: rgba(245,249,255,.94); color: #1768c7; font-weight: 600; }
.tracking-map-state.is-warning { border: 1px solid rgba(239,139,34,.24); background: rgba(255,249,241,.95); color: #b86616; }
.tracking-map-fallback { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 25px; background-color: #edf2f6; background-image: linear-gradient(28deg, transparent 46%, rgba(255,255,255,.9) 47%, rgba(255,255,255,.9) 51%, transparent 52%), repeating-linear-gradient(0deg, rgba(74,113,150,.05) 0 1px, transparent 1px 32px); color: #667085; text-align: center; }
.tracking-map-fallback svg { width: 26px; height: 26px; margin-bottom: 8px; color: #287bea; }
.tracking-map-fallback strong { color: #273248; font-size: 10px; }
.tracking-map-fallback small { max-width: 310px; margin-top: 5px; font-size: 8px; line-height: 1.45; }
.tracking-route-points { position: relative; display: grid; align-content: center; gap: 17px; padding: 23px 18px; }
.tracking-route-points::before { position: absolute; top: 35px; bottom: 35px; left: 24px; width: 1px; background: #cbd5e1; content: ""; }
.tracking-route-points > div:not(.tracking-empty-inline) { position: relative; z-index: 1; display: grid; grid-template-columns: 14px minmax(0,1fr); align-items: start; gap: 10px; }
.route-dot { width: 13px; height: 13px; display: block; border: 3px solid #fff; border-radius: 50%; background: #287bea; box-shadow: 0 0 0 1px #287bea; }
.route-dot.stop { background: #7a5ce5; box-shadow: 0 0 0 1px #7a5ce5; }
.route-dot.dropoff { background: #21ad69; box-shadow: 0 0 0 1px #21ad69; }
.route-dot.current { background: #ff9f43; box-shadow: 0 0 0 1px #ff9f43, 0 0 0 4px #fff1e3; }
.route-dot.current.online { background: #20b978; box-shadow: 0 0 0 1px #20b978, 0 0 0 4px #e7f8f0; }
.route-dot.current.lost { background: #dc4d4d; box-shadow: 0 0 0 1px #dc4d4d, 0 0 0 4px #feeeee; }
.route-dot.current.waiting { background: #8794a8; box-shadow: 0 0 0 1px #8794a8, 0 0 0 4px #eef2f6; }
.tracking-route-points small, .tracking-route-points strong { display: block; }
.tracking-route-points small { color: #8490a3; font-size: 7px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; }
.tracking-route-points strong { margin-top: 3px; color: #354057; font-size: 8px; font-weight: 500; line-height: 1.4; }
.tracking-route-points .route-signal-copy { margin-top: 4px; color: #7b8799; font-size: 7px; letter-spacing: 0; text-transform: none; }
.tracking-empty-inline { color: #8490a3; font-size: 9px; text-align: center; }

.tracking-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; padding: 1px; background: #e8ecf1; }
.tracking-info-grid > div { min-height: 119px; padding: 20px; background: #fff; }
.tracking-info-grid > div.wide { grid-column: 1 / -1; min-height: 90px; }
.tracking-info-grid strong, .tracking-info-grid span { display: block; color: #273248; font-size: 11px; line-height: 1.4; }
.tracking-info-grid span { margin-top: 4px; color: #7b8799; font-size: 8px; }
.pod-summary-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-bottom: 1px solid #e8ecf1; }
.pod-summary-strip > div { min-width: 0; padding: 14px 16px; border-right: 1px solid #e8ecf1; }
.pod-summary-strip > div:last-child { border-right: 0; }
.pod-summary-strip strong { display: block; overflow: hidden; color: #273248; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.pod-evidence-section { padding: 15px; border-top: 1px solid #edf0f4; }
.tracking-pod-evidence { border-top: 0; }
.pod-evidence-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.pod-evidence-heading strong { color: #273248; font-size: 10px; }
.pod-evidence-heading small { color: #8490a3; font-size: 8px; }
.pod-evidence-grid { display: grid; grid-template-columns: repeat(4, minmax(110px, 1fr)); gap: 9px; }
.pod-evidence-card { position: relative; min-height: 118px; overflow: hidden; border: 1px solid #e1e7ed; border-radius: 5px; background: #f3f6f8; }
.pod-evidence-card img { width: 100%; height: 118px; display: block; object-fit: cover; transition: transform .2s ease; }
.pod-evidence-card.signature img { padding: 13px; background: #fff; object-fit: contain; }
.pod-evidence-card:hover img { transform: scale(1.025); }
.pod-evidence-card span { position: absolute; right: 0; bottom: 0; left: 0; padding: 6px 8px; background: linear-gradient(transparent, rgba(14,25,38,.8)); color: #fff; font-size: 8px; }
.pod-remarks { margin-top: 10px; padding: 10px 12px; border: 1px solid #e6ebf0; border-radius: 5px; background: #fafbfc; }
.pod-remarks small { color: #8490a3; font-size: 7px; font-weight: 600; text-transform: uppercase; }
.pod-remarks p { margin: 4px 0 0; color: #4d5a6e; font-size: 9px; line-height: 1.45; }
.tracking-empty-panel { min-height: 365px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; color: #8490a3; text-align: center; }
.tracking-empty-panel.full { min-height: 695px; }
.tracking-empty-panel svg { width: 31px; height: 31px; margin-bottom: 9px; color: #90a0b5; }
.tracking-empty-panel strong { color: #273248; font-size: 11px; }
.tracking-empty-panel p { max-width: 390px; margin: 5px 0 0; font-size: 8px; line-height: 1.5; }

.monitoring-workspace .tracking-card-list { max-height: 695px; }
.live-trip-button { cursor: pointer; font-family: inherit; }
.tracking-refresh-status { white-space: nowrap; }
.live-route-summary { min-height: 365px; }
.master-vehicle-cell { display: flex; align-items: center; gap: 9px; }
.master-vehicle-thumb { flex: 0 0 48px; width: 48px; height: 34px; display: grid; place-items: center; overflow: hidden; border: 1px solid #e2e8ef; border-radius: 4px; background: #f1f5f9; color: #75849a; }
.master-vehicle-thumb img { width: 100%; height: 100%; object-fit: cover; }
.master-vehicle-thumb img.stock-vehicle-image { padding: 3px; background: #f7f9fc; object-fit: contain; }
.master-vehicle-thumb svg { width: 20px; height: 20px; }
.vehicle-photo-editor { display: grid; grid-template-columns: 185px minmax(0,1fr); align-items: center; gap: 14px; padding: 12px; border: 1px solid #e4e9ef; border-radius: 5px; background: #fafbfc; }
.vehicle-photo-preview { width: 185px; height: 116px; display: grid; place-items: center; overflow: hidden; border: 1px solid #dfe5ec; border-radius: 5px; background: #eef2f6; color: #718096; }
.vehicle-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.vehicle-photo-preview img.stock-vehicle-image { padding: 10px 12px; background: radial-gradient(circle at 50% 55%, #fff 0, #f6f8fb 62%, #e9eef4 100%); object-fit: contain; }
.vehicle-photo-preview svg { width: 42px; height: 42px; }
.vehicle-photo-preview small { color: #8490a3; font-size: 8px; }
.vehicle-photo-input { min-width: 0; display: grid; gap: 7px; }
.vehicle-photo-input input { width: 100%; }
.driver-photo-editor { display: grid; grid-template-columns: 116px minmax(0,1fr); align-items: center; gap: 14px; padding: 12px; border: 1px solid #e4e9ef; border-radius: 5px; background: #fafbfc; }
.driver-photo-preview { width: 102px; height: 102px; display: grid; place-items: center; overflow: hidden; border: 1px solid #dce5ef; border-radius: 50%; background: #eaf3ff; }
.driver-photo-preview img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1180px) {
  .operations-kpi-strip { grid-template-columns: 1fr 1fr; }
  .operations-kpi-strip article:nth-child(2) { border-right: 0; }
  .operations-kpi-strip article:nth-child(-n+2) { border-bottom: 1px solid #e9edf2; }
  .live-operations-kpis article:nth-child(even) { border-right: 0; }
  .live-operations-kpis article:nth-child(-n+4) { border-bottom: 1px solid #e9edf2; }
  .live-operations-kpis article:last-child { grid-column: 1 / -1; border-right: 0; }
  .tracking-workspace { grid-template-columns: 280px minmax(0,1fr); }
  .tracking-vehicle-hero { grid-template-columns: 230px minmax(0,1fr); }
  .tracking-route-summary { grid-template-columns: minmax(0,1fr) 230px; }
  .pod-evidence-grid { grid-template-columns: repeat(3, minmax(105px,1fr)); }
}
@media (max-width: 991.98px) {
  .tracking-workspace { grid-template-columns: 1fr; }
  .tracking-rail { position: static; }
  .tracking-card-list { max-height: 340px; }
}
@media (max-width: 720px) {
  .tracking-detail-head { align-items: flex-start; flex-direction: column; }
  .tracking-detail-head > div { flex-wrap: wrap; }
  .tracking-vehicle-hero { grid-template-columns: 1fr; }
  .tracking-vehicle-photo { min-height: 190px; border-right: 0; border-bottom: 1px solid #e8ecf1; }
  .tracking-vehicle-photo > img { min-height: 190px; max-height: 260px; }
  .tracking-metric-grid { grid-template-columns: 1fr 1fr; }
  .tracking-route-summary { grid-template-columns: 1fr; }
  .tracking-route-map-shell { border-right: 0; border-bottom: 1px solid #e8ecf1; }
  .pod-summary-strip { grid-template-columns: 1fr 1fr; }
  .pod-summary-strip > div:nth-child(2) { border-right: 0; }
  .pod-summary-strip > div:nth-child(-n+2) { border-bottom: 1px solid #e8ecf1; }
  .pod-evidence-grid { grid-template-columns: repeat(2, minmax(105px,1fr)); }
  .tracking-tabs { gap: 15px; overflow-x: auto; }
  .tracking-tabs button { white-space: nowrap; }
}
@media (max-width: 520px) {
  .operations-kpi-strip { grid-template-columns: 1fr; }
  .operations-kpi-strip article { border-right: 0; border-bottom: 1px solid #e9edf2; }
  .operations-kpi-strip article:last-child { border-bottom: 0; }
  .live-operations-kpis article:last-child { grid-column: auto; }
  .tracking-metric-grid, .tracking-info-grid { grid-template-columns: 1fr; }
  .tracking-info-grid > div.wide { grid-column: auto; }
  .pod-evidence-grid { grid-template-columns: 1fr; }
  .pod-evidence-card, .pod-evidence-card img { height: 165px; }
  .vehicle-photo-editor { grid-template-columns: 1fr; }
  .vehicle-photo-preview { width: 100%; }
  .driver-photo-editor { grid-template-columns: 1fr; }
}

/* Enterprise fleet resource planning and incident command */
.resource-head-actions { display: flex; gap: 8px; }
.resource-kpi-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 11px; margin-bottom: 14px; }
.resource-kpi { min-width: 0; display: grid; grid-template-columns: 36px minmax(0,1fr); align-items: start; gap: 10px; padding: 14px 12px; border: 1px solid #e5eaf0; border-radius: 6px; background: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.025); }
.resource-kpi .kpi-icon { width: 36px; height: 36px; }
.resource-kpi .kpi-icon svg { width: 17px; height: 17px; }
.resource-kpi small { display: block; overflow: hidden; color: #677489; font-size: 8px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.resource-kpi strong { display: block; margin-top: 6px; color: #172033; font-size: 22px; line-height: 1; }
.resource-kpi p { overflow: hidden; margin: 7px 0 0; color: #8791a2; font-size: 7px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.resource-control-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(360px,.75fr); gap: 14px; margin-bottom: 14px; }
.resource-plan-card, .incident-command-card { min-width: 0; }
.planning-chip, .incident-count { padding: 4px 8px; border-radius: 12px; background: #eaf3ff; color: #287bea; font-size: 8px; font-weight: 600; }
.incident-count { background: #feeeee; color: #d14a48; }
.resource-plan-table { overflow-x: auto; }
.resource-plan-row { min-width: 570px; display: grid; grid-template-columns: 1.1fr .75fr 1fr 1fr 1.25fr; align-items: center; gap: 10px; min-height: 57px; padding: 8px 14px; border-top: 1px solid #edf0f4; }
.resource-plan-row.header { min-height: 30px; border-top: 0; background: #fafbfc; color: #7d889b; font-size: 7px; font-weight: 600; letter-spacing: .35px; text-transform: uppercase; }
.resource-plan-row > span { min-width: 0; }
.resource-plan-row strong, .resource-plan-row small { display: block; }
.resource-plan-row strong { color: #2d374b; font-size: 10px; }
.resource-plan-row small { margin-top: 3px; color: #8791a2; font-size: 7px; }
.resource-plan-row.has-gap { background: #fff9f5; }
.resource-plan-row.has-gap > span:first-child { color: #d14a48; }
.coverage-cell i { display: block; height: 4px; margin-top: 5px; overflow: hidden; border-radius: 4px; background: #e7ecf2; }
.coverage-cell i b { display: block; height: 100%; border-radius: inherit; background: #25b96b; }
.resource-plan-row.has-gap .coverage-cell i b { background: #ef8b22; }
.incident-command-list { max-height: 465px; overflow-y: auto; }
.incident-command-item { padding: 14px; border-top: 1px solid #edf0f4; border-left: 3px solid #ff9f43; }
.incident-command-item[data-severity="critical"] { border-left-color: #d84343; background: #fffafa; }
.incident-command-item[data-severity="high"] { border-left-color: #ef6c45; }
.incident-command-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.incident-severity { padding: 3px 6px; border-radius: 10px; background: #fff0e6; color: #d96c27; font-size: 7px; font-weight: 700; text-transform: uppercase; }
.incident-command-item[data-severity="critical"] .incident-severity { background: #feeaea; color: #c43e3e; }
.incident-command-top small { color: #8791a2; font-size: 7px; }
.incident-command-item h4 { margin: 8px 0 5px; color: #263247; font-size: 10px; }
.incident-command-item > p { margin: 0; color: #5f6c80; font-size: 8px; line-height: 1.45; }
.incident-resource { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; color: #7d889b; font-size: 8px; }
.incident-resource span { display: inline-flex; align-items: center; gap: 4px; }
.incident-resource svg { width: 10px; height: 10px; }
.incident-response-form { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 11px; }
.incident-response-form select, .incident-response-form textarea { min-width: 0; width: 100%; min-height: 34px; padding: 7px 8px; border-radius: 4px; font-size: 8px; }
.incident-response-form textarea, .incident-response-form button { grid-column: 1 / -1; }
.resource-performance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.resource-kpi-table td { white-space: nowrap; }
.metric-value.good { color: #1d9a5b; }.metric-value.risk { color: #d14a48; }
.incident-mini-count { display: inline-grid; min-width: 21px; height: 21px; place-items: center; border-radius: 50%; background: #edf0f4; color: #667085; font-size: 8px; }
.incident-mini-count.has-value { background: #feeeee; color: #d14a48; font-weight: 700; }
.usage-meter { min-width: 74px; display: grid; grid-template-columns: 50px auto; align-items: center; gap: 5px; }
.usage-meter i { height: 4px; overflow: hidden; border-radius: 4px; background: #e7ecf2; }
.usage-meter b { display: block; height: 100%; border-radius: inherit; background: #287bea; }
.usage-meter small { color: #667085; font-size: 7px; }
.service-chip { padding: 4px 6px; border-radius: 10px; background: #e9f9f0; color: #21965d; font-size: 7px; font-weight: 600; }
.service-chip.due { background: #fff0e6; color: #d96c27; }
.resource-settings-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(320px,.75fr); gap: 14px; margin-bottom: 14px; }
.dispatch-settings-form { display: grid; grid-template-columns: 1fr 1fr 1fr auto; align-items: end; gap: 10px; padding: 14px; }
.dispatch-settings-form label { display: grid; gap: 5px; color: #4c596e; font-size: 8px; font-weight: 600; }
.dispatch-settings-form input { width: 100%; }
.communication-summary-body { min-height: 98px; display: flex; align-items: center; gap: 13px; padding: 16px; }
.communication-icon { flex: 0 0 42px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #eaf3ff; color: #287bea; }
.communication-icon svg { width: 19px; height: 19px; }
.communication-summary-body strong { color: #263247; font-size: 11px; }
.communication-summary-body p { margin: 4px 0 0; color: #7d889b; font-size: 8px; line-height: 1.45; }
.resource-kpi.has-live-alert, .communication-summary-card.has-live-alert { border-color: #f2b9b9; box-shadow: 0 0 0 3px rgba(216,67,67,.06); }
.resource-kpi.has-live-alert .kpi-icon { background: #feeeee; color: #d84343; }
.vehicle-directory-card { margin-bottom: 14px; }
.embedded-filter { margin: 0; padding: 10px 12px; border-bottom: 1px solid #edf0f4; background: #fafbfc; }
.fleet-vehicle-board { margin-bottom: 14px; }
.fleet-board-head .planning-chip { display: inline-flex; align-items: center; gap: 5px; }
.fleet-board-head .planning-chip svg { width: 11px; height: 11px; }
.fleet-board-filter { align-items: center; }
.fleet-board-filter input { min-width: 260px; }
.fleet-vehicle-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 11px; padding: 12px; background: #f7f9fc; }
.fleet-vehicle-card { min-width: 0; overflow: hidden; border: 1px solid #e2e7ed; border-radius: 8px; background: #fff; box-shadow: 0 2px 7px rgba(34,48,70,.045); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.fleet-vehicle-card:hover { border-color: #cbdcf3; box-shadow: 0 8px 20px rgba(34,48,70,.09); transform: translateY(-2px); }
.fleet-vehicle-card[data-status="maintenance"] { border-color: #f2d8bd; }
.fleet-vehicle-status { min-height: 37px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px 0; }
.fleet-vehicle-status small { display: inline-flex; align-items: center; gap: 4px; color: #8792a3; font-size: 7px; }
.fleet-vehicle-status small i { width: 5px; height: 5px; border-radius: 50%; background: #23ad69; }
.fleet-vehicle-image { height: 135px; display: grid; place-items: center; overflow: hidden; margin: 2px 8px 0; border-radius: 6px; background: radial-gradient(circle at 50% 64%, #fff 0, #f7f9fc 57%, #edf2f7 100%); }
.fleet-vehicle-image img { width: 100%; height: 100%; padding: 11px 8px; object-fit: contain; filter: drop-shadow(0 8px 7px rgba(34,48,70,.12)); }
.fleet-vehicle-image img:not(.stock-vehicle-image) { padding: 0; object-fit: cover; filter: none; }
.fleet-vehicle-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 10px 12px 9px; }
.fleet-vehicle-title span { display: block; color: #287bea; font-size: 8px; font-weight: 750; letter-spacing: .4px; }
.fleet-vehicle-title h4 { overflow: hidden; margin: 3px 0 0; color: #202c3f; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.fleet-vehicle-title > strong { flex: 0 0 auto; color: #56647a; font-size: 8px; font-weight: 600; }
.fleet-assignment-summary { min-height: 61px; padding: 10px 12px; border-top: 1px solid #edf0f4; border-bottom: 1px solid #edf0f4; background: #fbfcfe; }
.fleet-route-line { display: grid; grid-template-columns: minmax(0,1fr) 13px minmax(0,1fr); align-items: center; gap: 4px; color: #2f3b4f; font-size: 8px; font-weight: 650; }
.fleet-route-line span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fleet-route-line span:last-child { text-align: right; }
.fleet-route-line svg { width: 11px; height: 11px; color: #287bea; }
.fleet-route-line.is-idle { color: #188351; }
.fleet-route-line.is-idle svg { color: #22a866; }
.fleet-assignment-summary p { overflow: hidden; margin: 6px 0 0; color: #8792a3; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.fleet-assignment-summary p strong { color: #4d5b70; }
.fleet-vehicle-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); padding: 10px 12px 7px; }
.fleet-vehicle-metrics span { min-width: 0; border-right: 1px solid #edf0f4; text-align: center; }
.fleet-vehicle-metrics span:first-child { text-align: left; }
.fleet-vehicle-metrics span:last-child { border-right: 0; text-align: right; }
.fleet-vehicle-metrics small, .fleet-vehicle-metrics strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fleet-vehicle-metrics small { color: #8b96a7; font-size: 6.5px; text-transform: uppercase; }
.fleet-vehicle-metrics strong { margin-top: 3px; color: #344156; font-size: 8px; }
.fleet-load-meter { padding: 4px 12px 11px; }
.fleet-load-meter > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #7f8b9d; font-size: 7px; }
.fleet-load-meter > span strong { color: #344156; }
.fleet-load-meter > i { height: 4px; display: block; overflow: hidden; margin-top: 5px; border-radius: 4px; background: #e8edf3; }
.fleet-load-meter > i b { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, #287bea, #23b1cb); }
.fleet-card-actions { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px; padding: 9px 12px; border-top: 1px solid #edf0f4; }
.fleet-card-actions form { margin: 0; }
.fleet-card-actions .button { width: 100%; min-height: 29px; padding: 0 8px; font-size: 8px; }
.fleet-grid-empty { grid-column: 1 / -1; background: #fff; }

/* Dispatcher chat and operational holds */
.trip-chat-thread { max-height: 290px; min-height: 120px; display: grid; align-content: start; gap: 8px; overflow-y: auto; padding: 12px; background: #f7f9fb; }
.trip-chat-message { max-width: 88%; padding: 9px 10px; border: 1px solid #e2e7ed; border-radius: 5px 12px 12px 12px; background: #fff; }
.trip-chat-message.from-dispatch { justify-self: end; border-color: #cfe0f8; border-radius: 12px 5px 12px 12px; background: #edf5ff; }
.trip-chat-message > span { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.trip-chat-message strong { color: #273248; font-size: 8px; }
.trip-chat-message small { color: #8b96a7; font-size: 7px; }
.trip-chat-message p { margin: 4px 0 0; color: #4d5a6e; font-size: 9px; line-height: 1.45; white-space: pre-wrap; }
.trip-chat-empty { align-self: center; padding: 28px 15px; color: #8490a3; font-size: 8px; text-align: center; }
.trip-chat-compose { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 8px; padding: 10px; border-top: 1px solid #e8ecf1; }
.trip-chat-compose textarea { min-height: 50px; width: 100%; border-radius: 4px; }
.chat-live-dot { display: inline-flex; align-items: center; gap: 4px; color: #20a665; font-size: 8px; font-weight: 600; }
.chat-live-dot i { width: 5px; height: 5px; border-radius: 50%; background: #27c878; box-shadow: 0 0 0 3px #e8f9f0; }
.trip-incident-card { border-left: 3px solid #ff9f43; }
.trip-incident-card[data-severity="critical"], .trip-incident-card[data-severity="high"] { border-left-color: #d84343; }
.trip-incident-card .card-body > p { color: #526074; font-size: 9px; line-height: 1.5; }
.incident-instruction { display: grid; gap: 4px; margin: 10px 0; padding: 10px; border-radius: 5px; background: #fff4eb; }
.incident-instruction small { color: #b36a2d; font-size: 7px; font-weight: 600; text-transform: uppercase; }
.incident-instruction strong { color: #753f20; font-size: 9px; line-height: 1.45; }
.incident-live-chip, .message-live-chip { display: inline-flex; align-items: center; gap: 3px; padding: 3px 6px; border-radius: 10px; background: #feeeee; color: #d14a48; font-weight: 600; }
.message-live-chip { background: #eaf3ff; color: #287bea; }
.incident-live-chip svg, .message-live-chip svg { width: 9px; height: 9px; }
.live-incident-banner { min-height: 51px; display: grid; grid-template-columns: 25px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 9px 14px; border-bottom: 1px solid #f2c8c8; background: #fff3f3; color: #b43a3a; }
.live-incident-banner[hidden] { display: none; }
.live-incident-banner > svg { width: 20px; height: 20px; }
.live-incident-banner strong, .live-incident-banner small { display: block; }
.live-incident-banner strong { font-size: 9px; }.live-incident-banner small { margin-top: 2px; font-size: 8px; }
.live-incident-banner a { color: #b43a3a; font-size: 8px; font-weight: 700; }
.live-signal-banner { min-height: 51px; display: grid; grid-template-columns: 25px minmax(0,1fr); align-items: center; gap: 9px; padding: 9px 14px; border-bottom: 1px solid #f1d09f; background: #fff8eb; color: #a85c15; }
.live-signal-banner[hidden] { display: none; }
.live-signal-banner[data-signal="lost"] { border-bottom-color: #f2c8c8; background: #fff3f3; color: #b43a3a; }
.live-signal-banner[data-signal="waiting"] { border-bottom-color: #dce2e9; background: #f6f8fa; color: #667085; }
.live-signal-banner > svg { width: 20px; height: 20px; }
.live-signal-banner strong, .live-signal-banner small { display: block; }
.live-signal-banner strong { font-size: 9px; }
.live-signal-banner small { margin-top: 2px; font-size: 8px; line-height: 1.45; }

@media (max-width: 1320px) {
  .resource-kpi-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .fleet-vehicle-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .resource-performance-grid { grid-template-columns: 1fr; }
  .dispatch-settings-form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1050px) {
  .resource-control-grid, .resource-settings-grid { grid-template-columns: 1fr; }
  .fleet-vehicle-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .resource-page-head, .resource-head-actions { align-items: stretch; flex-direction: column; }
  .resource-kpi-grid { grid-template-columns: 1fr 1fr; }
  .incident-response-form, .dispatch-settings-form { grid-template-columns: 1fr; }
  .incident-response-form > *, .dispatch-settings-form > * { grid-column: auto; }
  .trip-chat-compose { grid-template-columns: 1fr; }
  .fleet-vehicle-grid { grid-template-columns: 1fr; }
  .fleet-board-filter input { min-width: 100%; }
}

/* Dashonic master-data screens */
.master-stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.master-filter-bar select { min-width: 155px; }
.master-table-card .card-head { background: #fff; }
.master-data-table th:last-child,
.master-data-table td:last-child { text-align: right; }
.master-person { display: flex; align-items: center; gap: 10px; min-width: 190px; }
.master-person .avatar { flex: 0 0 34px; }
.master-driver-photo { flex: 0 0 36px; width: 36px; height: 36px; overflow: hidden; border: 1px solid #dce5ef; border-radius: 50%; background: #eaf3ff; }
.master-driver-photo img { width: 100%; height: 100%; object-fit: cover; }
.master-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; white-space: nowrap; }
.master-row-actions form { margin: 0; }
.master-row-actions .button svg { width: 12px; height: 12px; }
.master-pagination { min-height: 55px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.master-pagination > div { display: flex; gap: 7px; }
.master-form { max-width: 960px; display: grid; gap: 16px; }
.master-form-card { width: 100%; max-width: none; }
.master-form-card .field-help { color: var(--muted); font-size: 10px; font-weight: 400; line-height: 1.45; }
.master-form-card select:disabled { background-color: #f4f6f8; color: #667085; cursor: not-allowed; }
.master-check { padding: 12px 14px; border: 1px solid #e6e9ee; border-radius: 4px; background: #fafbfc; }
.master-check > span { display: flex; align-items: center; gap: 9px; }
.master-check input[type="checkbox"] { flex: 0 0 18px; width: 18px; min-height: 18px; margin: 0; }
.master-check small { margin-left: 27px; color: var(--muted); font-size: 10px; font-weight: 400; }
.master-form-actions { display: flex; justify-content: flex-end; gap: 9px; padding-bottom: 8px; }
.status-badge[data-status="available"],
.status-badge[data-status="active"] { background: #dff5e8; color: #087440; }
.status-badge[data-status="on_trip"] { background: #e9f1ff; color: #2d63b6; }
.status-badge[data-status="maintenance"] { background: #fff2e1; color: #af651a; }
.status-badge[data-status="off_duty"],
.status-badge[data-status="inactive"] { background: #f0f1f3; color: #667085; }

@media (max-width: 920px) {
  .master-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .master-stats-grid { grid-template-columns: 1fr 1fr; }
  .master-filter-bar > * { width: 100%; }
  .master-row-actions { align-items: stretch; flex-direction: column; }
  .master-row-actions .button { width: 100%; }
  .master-pagination { align-items: stretch; flex-direction: column; }
}

/* Fleet operations UX system */
body { font-size: 13px; background: #f7f8fa; }
.navbar-brand-box, .vertical-menu { width: 220px; }
.sidebar-brand-box { position: fixed; top: 0; left: 0; z-index: 1006; display: block; height: 64px; border-right: 1px solid #e9ebef; border-bottom: 1px solid #edf0f4; background: #fff !important; box-shadow: none; }
.sidebar-brand-box .fleet-logo-link { height: 64px; }
.sidebar-brand-box .logo-sm { display: none; }
.vertical-menu { top: 64px; }
#page-topbar { left: 220px; }
.main-content { margin-left: 220px; }
.footer { left: 220px; height: 52px; padding-top: 17px; padding-bottom: 17px; font-size: 11px; box-shadow: none; border-top: 1px solid #edf0f4; }
.navbar-header, .header-item { height: 64px; }
.logo { line-height: 64px; }
.page-content { min-height: calc(100vh - 52px); padding: 86px 20px 70px; }
.navbar-brand-box { padding: 0 14px; }
.fleet-logo-link { justify-content: flex-start; }
.fleet-brand-lockup { display: inline-flex !important; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; height: 64px; }
.fleet-logo, .notebook-logo { width: 122px; height: 34px; }
.fleet-brand-lockup small { margin-left: 44px; margin-top: -6px; color: #667085; font-size: 9px; font-weight: 500; letter-spacing: .1px; line-height: 1; }
.fleet-monogram { width: 32px; height: 32px; border-radius: 50%; background: #eaf3ff; color: #287bea; font-size: 16px; }
body.vertical-collpsed .sidebar-brand-box { width: 70px !important; padding: 0; }
body.vertical-collpsed .sidebar-brand-box .fleet-logo-link { justify-content: center; }
body.vertical-collpsed .sidebar-brand-box .logo-sm { display: inline-flex !important; }
body.vertical-collpsed .sidebar-brand-box .fleet-brand-lockup { display: none !important; }
.navbar-header > .d-flex:first-child .header-item { font-size: 12px; font-weight: 500; }
.vertical-menu-btn svg { width: 17px; height: 17px; }
.header-menu-trigger { display: inline-flex; align-items: center; gap: 5px; }
.header-menu-trigger svg, .header-chevron { width: 13px; height: 13px; stroke-width: 1.8; }
.dropdown-item svg { width: 14px; height: 14px; vertical-align: -2px; }
.company-endorsement img { width: 112px; height: 26px; }
.company-endorsement { padding-right: 10px; }
.header-search { position: relative; align-items: center; width: 250px; height: 36px; margin-right: 3px; padding: 0 9px; border: 1px solid #e6e9ee; border-radius: 5px; background: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.03); }
.header-search svg { width: 15px; height: 15px; color: #8490a3; }
.header-search input { width: 100%; min-height: 32px; padding: 4px 8px; border: 0; outline: 0; box-shadow: none; font-size: 11px; }
.header-search input:focus { border: 0; box-shadow: none; }
.header-search kbd { flex: 0 0 auto; padding: 0; background: transparent; color: #98a2b3; font-family: inherit; font-size: 9px; font-weight: 500; white-space: nowrap; }
.avatar { width: 34px; height: 34px; font-size: 12px; }
#sidebar-menu { padding: 10px 0 12px; }
#sidebar-menu ul li a { min-height: 38px; margin: 1px 8px; padding: .55rem .75rem; border-radius: 5px; color: #49566c; font-size: 12px; }
#sidebar-menu ul li a .nav-icon, #sidebar-menu ul li a svg { width: 16px; height: 16px; min-width: 1.4rem; }
#sidebar-menu ul li.mm-active > a, #sidebar-menu ul li a.active { background: #edf4ff; color: #2778ea; font-weight: 500; }
#sidebar-menu ul li a .badge { font-size: 8px; }
.menu-title { padding: 12px 16px 7px !important; color: #667085; font-size: 8px; font-weight: 600; letter-spacing: .07em; opacity: .85; }
.sidebar-fleet-card { margin: 18px 8px 16px; padding: 13px; border: 1px solid #e7ebf0; border-radius: 6px; background: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.03); }
.sidebar-fleet-head, .sidebar-fleet-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sidebar-fleet-head { margin-bottom: 14px; font-size: 11px; }
.sidebar-fleet-head span { padding: 3px 6px; border-radius: 12px; background: #eafaf1; color: #20a665; font-size: 8px; font-weight: 600; }
.sidebar-fleet-head i { display: inline-block; width: 5px; height: 5px; margin-right: 3px; border-radius: 50%; background: #28c877; }
.sidebar-fleet-row { margin-top: 10px; color: #667085; font-size: 10px; }
.sidebar-fleet-row strong { color: #263247; font-size: 12px; }
.sidebar-fleet-row em { color: #667085; font-size: 9px; font-style: normal; font-weight: 400; }
.mini-progress { height: 3px; margin-top: 7px; overflow: hidden; border-radius: 3px; background: #edf0f4; }
.mini-progress span { display: block; height: 100%; border-radius: inherit; background: #2f80ed; }

.page-head { align-items: center; margin-bottom: 16px; }
.page-head h2 { margin: 0; color: #172033; font-size: 20px; font-weight: 600; letter-spacing: -.35px; }
.page-head p { margin-top: 4px; color: #748095; font-size: 11px; }
.page-head .eyebrow { margin-bottom: 4px; color: #287bea; font-size: 8px; }
.dashboard-head-actions { display: flex; align-items: center; gap: 10px; }
.live-label { display: inline-flex; align-items: center; gap: 5px; color: #2475e6; font-size: 10px; font-weight: 600; }
.live-label i { width: 6px; height: 6px; border-radius: 50%; background: #20c875; box-shadow: 0 0 0 3px #e5f9ef; }
.live-label.has-signal-loss { color: #c83e3e; }
.live-label.has-signal-loss i { background: #dc4d4d; box-shadow: 0 0 0 3px #feeeee; }
.button { min-height: 35px; padding: 0 12px; border-color: #dfe4eb; border-radius: 4px; box-shadow: none; font-size: 11px; font-weight: 500; }
.button svg { width: 14px; height: 14px; }
.button:hover { transform: none; border-color: #b9c2cf; box-shadow: 0 1px 3px rgba(16,24,40,.06); }
.button.primary { border-color: #287bea; background: #287bea; }

.overview-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.overview-kpi { min-width: 0; overflow: hidden; border: 1px solid #e7ebf0; border-radius: 6px; background: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.025); }
.overview-kpi .kpi-main { display: flex; align-items: flex-start; justify-content: space-between; min-height: 101px; padding: 14px 13px 10px; }
.overview-kpi .kpi-main > div:first-child { min-width: 0; }
.overview-kpi span { display: block; overflow: hidden; color: #354057; font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.overview-kpi strong { display: block; margin-top: 9px; color: #172033; font-size: 23px; line-height: 1; letter-spacing: -.7px; }
.overview-kpi small { display: block; margin-top: 8px; color: #7d889b; font-size: 9px; line-height: 1.25; }
.overview-kpi > a { display: flex; align-items: center; gap: 2px; min-height: 34px; padding: 7px 13px; border-top: 1px solid #edf0f4; color: var(--tone, #287bea); font-size: 9px; font-weight: 600; }
.overview-kpi > a svg { width: 12px; height: 12px; }
.kpi-icon { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--tone-soft, #eaf3ff); color: var(--tone, #287bea); }
.kpi-icon svg { width: 17px; height: 17px; }
.tone-blue { --tone: #287bea; --tone-soft: #eaf3ff; }
.tone-green { --tone: #23b96b; --tone-soft: #e7f9ef; }
.tone-cyan { --tone: #18a7bd; --tone-soft: #e6f8fb; }
.tone-violet { --tone: #8b4de8; --tone-soft: #f3edfd; }
.tone-red { --tone: #ef5350; --tone-soft: #feeeee; }
.kpi-spark.bars { display: flex; align-items: flex-end; gap: 2px; width: 42px; height: 38px; margin-top: 24px; }
.kpi-spark.bars i { flex: 1; min-width: 3px; border-radius: 2px 2px 0 0; background: var(--tone); }
.kpi-spark.bars i:nth-child(1) { height: 28%; }.kpi-spark.bars i:nth-child(2) { height: 62%; }.kpi-spark.bars i:nth-child(3) { height: 38%; }.kpi-spark.bars i:nth-child(4) { height: 78%; }.kpi-spark.bars i:nth-child(5) { height: 45%; }.kpi-spark.bars i:nth-child(6) { height: 88%; }.kpi-spark.bars i:nth-child(7) { height: 53%; }
.kpi-spark.bars.alt i:nth-child(1) { height: 50%; }.kpi-spark.bars.alt i:nth-child(2) { height: 84%; }.kpi-spark.bars.alt i:nth-child(3) { height: 63%; }.kpi-spark.bars.alt i:nth-child(4) { height: 95%; }.kpi-spark.bars.alt i:nth-child(5) { height: 72%; }.kpi-spark.bars.alt i:nth-child(6) { height: 54%; }.kpi-spark.bars.alt i:nth-child(7) { height: 80%; }

.dashboard-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.dashboard-grid-primary .fleet-status-card { grid-column: span 3; }
.dashboard-grid-primary .live-map-card { grid-column: span 5; }
.dashboard-grid-primary .billing-watch-card { grid-column: span 4; }
.dashboard-grid-secondary .recent-bookings-card { grid-column: span 4; }
.dashboard-grid-secondary .activity-card { grid-column: span 5; }
.dashboard-grid-secondary .live-dispatch-card { grid-column: span 3; }
.dashboard-card { min-width: 0; overflow: hidden; border: 1px solid #e7ebf0; border-radius: 6px; background: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.025); }
.dashboard-card > header { min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 13px; border-bottom: 1px solid #edf0f4; }
.dashboard-card > header h3 { margin: 0; color: #273248; font-size: 11px; font-weight: 600; }
.dashboard-card > header p { margin: 3px 0 0; color: #8690a0; font-size: 9px; }
.dashboard-card > header > a { color: #287bea; font-size: 9px; font-weight: 600; }
.dashboard-card > footer { min-height: 34px; display: flex; align-items: center; justify-content: flex-end; padding: 7px 13px; border-top: 1px solid #edf0f4; }
.dashboard-card > footer a { display: inline-flex; align-items: center; gap: 2px; color: #287bea; font-size: 9px; font-weight: 600; }
.dashboard-card > footer svg { width: 12px; height: 12px; }

.fleet-status-body { min-height: 192px; display: grid; grid-template-columns: 122px minmax(120px, 1fr); align-items: center; gap: 15px; padding: 16px 14px; }
.fleet-donut { width: 116px; height: 116px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(#35c879 0 var(--road-end), #4a8df4 var(--road-end) var(--assigned-end), #5bb4f8 var(--assigned-end) var(--available-end), #ff9f43 var(--available-end) var(--maintenance-end), #ef5350 var(--maintenance-end) 100%); }
.fleet-donut::before { content: ""; grid-area: 1 / 1; width: 76px; height: 76px; border-radius: 50%; background: #fff; }
.fleet-donut span { position: relative; grid-area: 1 / 1; text-align: center; }
.fleet-donut strong { display: block; color: #1d2940; font-size: 22px; line-height: 1; }
.fleet-donut small { display: block; margin-top: 4px; color: #8490a3; font-size: 9px; }
.fleet-legend { display: grid; gap: 10px; }
.fleet-legend > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 9px; }
.fleet-legend > div > span { display: flex; align-items: center; gap: 6px; color: #667085; }
.fleet-legend i { width: 7px; height: 7px; border-radius: 50%; }
.fleet-legend strong { color: #263247; font-size: 10px; }
.fleet-legend strong small { color: #8490a3; font-size: 8px; font-weight: 400; }
.legend-road { background: #35c879; }.legend-available { background: #5bb4f8; }.legend-assigned { background: #4a8df4; }.legend-maintenance { background: #ff9f43; }

.fleet-map-preview { position: relative; min-height: 226px; overflow: hidden; background-color: #dff3f7; background-image: linear-gradient(25deg, transparent 46%, rgba(255,255,255,.85) 47%, rgba(255,255,255,.85) 51%, transparent 52%), linear-gradient(110deg, transparent 43%, rgba(255,255,255,.72) 44%, rgba(255,255,255,.72) 48%, transparent 49%), repeating-linear-gradient(0deg, rgba(61,168,190,.08) 0 1px, transparent 1px 32px), repeating-linear-gradient(90deg, rgba(61,168,190,.08) 0 1px, transparent 1px 40px); }
.map-header-actions { display: flex; align-items: center; gap: 10px; }
.map-live-chip { display: inline-flex; align-items: center; gap: 4px; color: #20a665; font-size: 8px; font-weight: 600; white-space: nowrap; }
.map-live-chip > i { width: 5px; height: 5px; border-radius: 50%; background: #27c878; box-shadow: 0 0 0 3px #e8f9f0; }
.overview-map-shell { position: relative; min-height: 226px; overflow: hidden; background: #e7edf2; }
.overview-fleet-map { width: 100%; height: 226px; }
.overview-map-state { position: absolute; top: 50%; left: 50%; z-index: 5; display: none; min-width: 190px; flex-direction: column; align-items: center; padding: 13px 16px; border: 1px solid #e4e8ed; border-radius: 6px; background: rgba(255,255,255,.94); color: #58667b; text-align: center; box-shadow: 0 4px 14px rgba(22,34,51,.12); transform: translate(-50%, -50%); }
.overview-map-state.show { display: flex; }
.overview-map-state .spinner-border { width: 17px; height: 17px; margin-bottom: 7px; color: #287bea; }
.overview-map-state strong, .overview-map-unavailable strong { color: #263247; font-size: 10px; }
.overview-map-state small, .overview-map-unavailable small { display: block; margin-top: 4px; color: #7d889b; font-size: 8px; }
.overview-map-unavailable { position: absolute; inset: 0; z-index: 7; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #edf2f6; color: #64748b; text-align: center; }
.overview-map-unavailable svg { width: 21px; height: 21px; margin-bottom: 7px; color: #287bea; }
.map-road { position: absolute; height: 5px; border-radius: 8px; background: rgba(255,255,255,.94); box-shadow: 0 0 0 1px rgba(99,180,201,.15); }
.map-road-one { top: 48%; left: -10%; width: 120%; transform: rotate(-11deg); }.map-road-two { top: 43%; left: 19%; width: 76%; transform: rotate(47deg); }.map-road-three { top: 68%; left: -5%; width: 105%; transform: rotate(19deg); }
.map-place { position: absolute; z-index: 1; color: #566778; font-size: 10px; font-weight: 600; }.place-manila { top: 45%; left: 22%; font-size: 14px; }.place-makati { bottom: 12%; left: 46%; }.place-qc { top: 10%; right: 20%; }
.fleet-map-marker { position: absolute; z-index: 3; display: grid; width: 27px; height: 27px; place-items: center; border: 3px solid #fff; border-radius: 50%; background: #287bea; color: #fff; box-shadow: 0 3px 8px rgba(40,123,234,.28); }
.fleet-map-marker svg { width: 12px; height: 12px; }
.fleet-map-marker > span { position: absolute; bottom: 33px; left: 50%; display: none; min-width: 135px; padding: 6px 8px; border-radius: 4px; background: #263247; color: #fff; font-size: 8px; transform: translateX(-50%); }
.fleet-map-marker > span small { display: block; margin-top: 2px; color: #cbd3df; }
.fleet-map-marker:hover > span, .fleet-map-marker:focus > span { display: block; }
.marker-a { top: 26%; left: 37%; }.marker-b { top: 48%; right: 28%; background: #2abd73; }.marker-c { bottom: 16%; left: 20%; }.marker-d { top: 19%; right: 12%; background: #2abd73; }.marker-e { bottom: 8%; right: 8%; }
.map-zoom { position: absolute; right: 9px; bottom: 9px; z-index: 4; overflow: hidden; border: 1px solid #dfe5eb; border-radius: 4px; background: #fff; box-shadow: 0 1px 3px rgba(16,24,40,.1); }
.map-zoom span { display: grid; width: 25px; height: 25px; place-items: center; color: #536175; font-size: 16px; }.map-zoom span + span { border-top: 1px solid #e7ebf0; }
.map-empty { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #587080; text-align: center; }
.map-empty svg { width: 22px; margin-bottom: 6px; }.map-empty strong { font-size: 11px; }.map-empty small { margin-top: 3px; font-size: 9px; }

.compact-list { min-height: 192px; }
.compact-list-item { min-height: 48px; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 8px 12px; border-bottom: 1px solid #f0f2f5; }
.compact-list-item:last-child { border-bottom: 0; }
.compact-list-item:hover { background: #fafcff; }
.compact-list-item > span:nth-child(2) { min-width: 0; }
.compact-list-item strong { display: block; overflow: hidden; color: #2d374b; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.compact-list-item small { display: block; overflow: hidden; margin-top: 3px; color: #8490a3; font-size: 8px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.list-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; background: #eaf3ff; color: #287bea; }
.list-icon svg { width: 13px; height: 13px; }
.list-icon[data-tone="ready"] { background: #e9f9f0; color: #23ad67; }.list-icon[data-tone="on_hold"] { background: #fff1e8; color: #ed7b27; }.list-icon[data-tone="awaiting_original"] { background: #fff6dd; color: #d99613; }.list-icon[data-tone="in_transit"] { background: #eaf3ff; color: #287bea; }
.status-badge { padding: 4px 7px; font-size: 7px; letter-spacing: .2px; }

.booking-rows { min-height: 198px; }
.booking-row { min-height: 49px; display: grid; grid-template-columns: 1fr 1.35fr auto; align-items: center; gap: 9px; padding: 7px 12px; border-bottom: 1px solid #f0f2f5; }
.booking-row:hover { background: #fafcff; }.booking-row:last-child { border-bottom: 0; }
.booking-row > span { min-width: 0; }.booking-row strong { display: block; overflow: hidden; color: #2d374b; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }.booking-row small { display: block; margin-top: 3px; color: #8490a3; font-size: 8px; }
.booking-route svg { width: 9px; height: 9px; margin: 0 3px; }
.activity-table { min-height: 198px; }
.activity-table-head, .activity-table-row { display: grid; grid-template-columns: 1.1fr 1fr 1fr .9fr; align-items: center; gap: 8px; padding: 0 12px; }
.activity-table-head { min-height: 28px; background: #fafbfc; color: #7d889b; font-size: 8px; font-weight: 500; }
.activity-table-row { min-height: 34px; border-top: 1px solid #f0f2f5; color: #596579; font-size: 8px; }
.activity-table-row:hover { background: #fafcff; }.activity-table-row strong { overflow: hidden; color: #2d374b; text-overflow: ellipsis; white-space: nowrap; }.activity-table-row small { color: #8490a3; }
.live-dispatch-card .compact-list, .recent-bookings-card .booking-rows, .activity-card .activity-table { min-height: 196px; }
.dispatch-list-item { min-height: 49px; }

.card, .stat-card { border-radius: 6px; box-shadow: 0 1px 2px rgba(16,24,40,.025); }
.card-head { min-height: 52px; padding: 12px 15px; }.card-head h3 { color: #273248; font-size: 11px; }.card-head p { font-size: 9px; }
.card-body { padding: 15px; }
.stats-grid { gap: 12px; margin-bottom: 14px; }.stat-card { padding: 16px; }.stat-value { font-size: 24px; }.stat-label, .stat-foot { font-size: 9px; }
.data-table { font-size: 10px; }.data-table th { padding: 10px 12px; font-size: 8px; }.data-table td { padding: 11px 12px; }.primary-cell strong { font-size: 10px; }.primary-cell small { font-size: 9px; }
.filter-bar { gap: 8px; margin-bottom: 12px; }.filter-bar input, .filter-bar select, input, select, textarea { min-height: 36px; font-size: 10px; }
.detail-grid, .content-grid, .detail-stack { gap: 14px; }.detail-pairs { gap: 13px; }.detail-pair strong { font-size: 11px; }.detail-pair small { font-size: 8px; }

@media (max-width: 1260px) {
  .overview-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-grid-primary .fleet-status-card, .dashboard-grid-primary .billing-watch-card { grid-column: span 6; }
  .dashboard-grid-primary .live-map-card { grid-column: span 6; }
  .dashboard-grid-secondary .recent-bookings-card, .dashboard-grid-secondary .activity-card { grid-column: span 6; }
  .dashboard-grid-secondary .live-dispatch-card { grid-column: span 12; }
}
@media (max-width: 991.98px) {
  .sidebar-brand-box { width: 70px; padding: 0 18px; }
  .sidebar-brand-box .fleet-logo-link { justify-content: center; }
  .sidebar-brand-box .logo-sm { display: inline-flex !important; }
  .fleet-brand-lockup { display: none !important; }
  #page-topbar { left: 70px; }
  .main-content, .footer { margin-left: 0; left: 0; }
  .sidebar-fleet-card { display: none; }
}
@media (max-width: 767.98px) {
  .page-content { padding: 80px 13px 66px; }
  .overview-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid-primary .fleet-status-card, .dashboard-grid-primary .live-map-card, .dashboard-grid-primary .billing-watch-card,
  .dashboard-grid-secondary .recent-bookings-card, .dashboard-grid-secondary .activity-card, .dashboard-grid-secondary .live-dispatch-card { grid-column: 1 / -1; }
  .dashboard-head { align-items: flex-start; }.dashboard-head-actions { width: 100%; justify-content: space-between; }
}
@media (max-width: 720px) {
  .resource-picker-modal .modal-dialog { margin: 8px; }
  .resource-picker-head { grid-template-columns: 38px minmax(0,1fr) 26px; }
  .resource-picker-head-icon { width: 38px; height: 38px; }
  .resource-picker-count { display: none; }
  .resource-option-grid { grid-template-columns: 1fr; }
  .resource-picker-search kbd { display: none; }
  .truck-option { grid-template-columns: 115px minmax(0,1fr); }
  .truck-option-photo { width: 115px; }
}
@media (max-width: 479.98px) {
  .overview-kpis { grid-template-columns: 1fr; }
  .fleet-status-body { grid-template-columns: 1fr; justify-items: center; }
  .fleet-legend { width: 100%; }
  .booking-row { grid-template-columns: 1fr auto; }.booking-route { grid-column: 1 / -1; grid-row: 2; }
  .activity-table-head { display: none; }.activity-table-row { grid-template-columns: 1fr 1fr; padding-top: 7px; padding-bottom: 7px; }
}

/* Booking location search and driving-route preview */
.booking-entry-layout {
  display: grid;
  grid-template-columns: minmax(540px, 1.15fr) minmax(380px, .85fr);
  align-items: start;
  gap: 16px;
}
.booking-entry-layout .form-card { max-width: none; }
.booking-form-card, .booking-map-card { min-width: 0; }
.booking-form-card .form-grid > label,
.manual-coordinate-grid > label,
.route-location-field > label {
  color: #354057;
  font-size: 10px;
  font-weight: 600;
}
.route-inputs {
  position: relative;
  display: grid;
  gap: 0;
  margin: 20px 0;
  padding: 16px;
  border: 1px solid #e5eaf0;
  border-radius: 6px;
  background: #fafcff;
}
.route-location-row {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 11px;
  padding-bottom: 18px;
}
.route-location-row[data-location="dropoff"] { padding-bottom: 0; }
.route-location-row:first-of-type::after {
  position: absolute;
  top: 29px;
  bottom: -1px;
  left: 14px;
  width: 2px;
  background: repeating-linear-gradient(to bottom, #b8c6d8 0 4px, transparent 4px 8px);
  content: "";
}
.route-point-marker {
  position: relative;
  z-index: 1;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #287bea;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  box-shadow: 0 0 0 1px #cfe0f8, 0 2px 5px rgba(40,123,234,.18);
}
.route-point-dropoff { background: #20ad69; box-shadow: 0 0 0 1px #c6ebd8, 0 2px 5px rgba(32,173,105,.18); }
.route-location-field { min-width: 0; }
.route-location-field > label { display: block; margin: 0 0 6px; }
.place-search-shell { position: relative; }
.place-search-input {
  width: 100%;
  min-height: 42px;
  padding: 8px 35px 8px 12px;
  border: 1px solid #dce2ea;
  border-radius: 5px;
  background: #fff;
  color: #273248;
  font-size: 10px;
  outline: 0;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.place-search-input:focus {
  border-color: #6da6f4;
  box-shadow: 0 0 0 3px rgba(40,123,234,.11);
}
.place-search-input[aria-busy="true"] { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23287bea' stroke-linecap='round' stroke-width='2' d='M12 3a9 9 0 1 0 9 9'%3E%3CanimateTransform attributeName='transform' dur='.8s' from='0 12 12' repeatCount='indefinite' to='360 12 12' type='rotate'/%3E%3C/path%3E%3C/svg%3E") no-repeat right 11px center; }
.place-search-input::-webkit-search-cancel-button { cursor: pointer; }
.place-search-icon {
  position: absolute;
  top: 50%;
  right: 12px;
  color: #8190a5;
  font-size: 17px;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-50%);
}
.place-search-input[aria-busy="true"] + .place-search-icon { display: none; }
.place-suggestions {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  left: 0;
  z-index: 80;
  max-height: 286px;
  overflow-y: auto;
  border: 1px solid #dce3eb;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(25,38,57,.17);
}
.place-suggestions[hidden] { display: none; }
.place-suggestion-option {
  display: grid;
  width: 100%;
  min-height: 54px;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 0;
  border-bottom: 1px solid #edf0f4;
  border-radius: 0;
  background: #fff;
  color: #273248;
  text-align: left;
  cursor: pointer;
}
.place-suggestion-option:hover,
.place-suggestion-option:focus { background: #f2f7ff; outline: 0; }
.place-suggestion-option strong,
.place-suggestion-option small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.place-suggestion-option strong { font-size: 10px; font-weight: 600; }
.place-suggestion-option small { margin-top: 3px; color: #7d889b; font-size: 8px; }
.place-suggestion-pin {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  background: #eaf3ff;
  color: #287bea;
  font-size: 15px;
}
.place-suggestion-notice { padding: 14px 12px; color: #667085; font-size: 9px; line-height: 1.45; }
.place-suggestion-notice.is-loading { color: #287bea; }
.place-suggestion-notice.is-error { background: #fff7f7; color: #b43a3a; }
.place-suggestions-attribution { padding: 6px 11px; color: #8b96a7; font-size: 7px; font-weight: 600; text-align: right; }
.selected-place {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 3px 12px;
  min-height: 26px;
  padding: 6px 2px 0;
  color: #7b8799;
  font-size: 8px;
}
.selected-place span { min-width: 180px; flex: 1; line-height: 1.35; }
.selected-place small { color: #98a2b3; font-size: 8px; white-space: nowrap; }
.selected-place.has-location span { color: #3f4d63; font-weight: 500; }
.selected-place.has-location small { color: #23885a; }
.route-form-message {
  display: none;
  margin: 14px 0 0 41px;
  padding: 8px 10px;
  border: 1px solid #f4cccc;
  border-radius: 4px;
  background: #fff3f3;
  color: #b43a3a;
  font-size: 9px;
  line-height: 1.4;
}
.route-form-message.show { display: block; }
.route-stops-errors { display: block; margin: 10px 0 0 41px; }
.intermediate-stop-list { display: grid; }
.route-point-intermediate { background: #7a5ce5; box-shadow: 0 0 0 1px #ded7f8, 0 2px 5px rgba(122,92,229,.18); }
.route-stop-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.route-stop-heading label { margin: 0; color: #354057; font-size: 10px; font-weight: 600; }
.route-stop-actions { display: inline-flex; align-items: center; gap: 3px; }
.route-stop-actions button {
  display: grid;
  width: 24px;
  height: 24px;
  min-height: 24px;
  place-items: center;
  padding: 0;
  border: 1px solid #dfe5ec;
  border-radius: 4px;
  background: #fff;
  color: #64748b;
  font-size: 12px;
  cursor: pointer;
}
.route-stop-actions button:hover:not(:disabled) { border-color: #aeb9c7; color: #287bea; }
.route-stop-actions button:disabled { cursor: not-allowed; opacity: .35; }
.add-route-stop {
  display: inline-flex;
  width: max-content;
  min-height: 32px;
  align-items: center;
  gap: 6px;
  margin: 0 0 18px 41px;
  padding: 0 10px;
  border: 1px dashed #9ebce5;
  border-radius: 5px;
  background: #f5f9ff;
  color: #287bea;
  font-size: 9px;
  font-weight: 600;
  cursor: pointer;
}
.add-route-stop:hover { border-color: #287bea; background: #eaf3ff; }
.add-route-stop span { font-size: 14px; line-height: 1; }
.route-key-message { margin-bottom: 14px; }
.manual-coordinate-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 12px 0 16px; }
.booking-detail-fields { padding-top: 2px; }
.booking-checkbox {
  display: flex;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  align-self: end;
  padding: 0 10px;
  border: 1px solid #e1e6ed;
  border-radius: 4px;
  color: #354057;
  font-size: 10px;
  font-weight: 600;
}
.booking-checkbox input { width: auto; min-height: auto; margin: 0; }
.booking-form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.booking-map-card {
  position: sticky;
  top: 80px;
  overflow: hidden;
}
.booking-map-head { align-items: flex-start; }
.route-state-chip {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 10px;
  background: #eef2f7;
  color: #69768a;
  font-size: 8px;
  font-weight: 600;
}
.route-state-chip[data-tone="loading"] { background: #eaf3ff; color: #287bea; }
.route-state-chip[data-tone="ready"] { background: #e9f9f0; color: #21965d; }
.route-state-chip[data-tone="error"] { background: #feeeee; color: #d14a48; }
.booking-map-shell {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: #e7edf2;
}
#booking-route-map { width: 100%; height: 560px; }
.booking-map-loading,
.booking-map-unavailable {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #edf2f6;
  color: #64748b;
  text-align: center;
  transition: opacity .2s ease;
}
.booking-map-loading.is-hidden { pointer-events: none; opacity: 0; }
.booking-map-loading .spinner-border { width: 20px; height: 20px; margin-bottom: 8px; color: #287bea; }
.booking-map-loading strong,
.booking-map-unavailable strong { color: #263247; font-size: 10px; }
.booking-map-loading small,
.booking-map-unavailable small { max-width: 290px; margin-top: 4px; color: #7d889b; font-size: 8px; line-height: 1.45; }
.booking-map-unavailable > span { margin-bottom: 7px; color: #287bea; font-size: 25px; line-height: 1; }
.route-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #e7ebf0;
  background: #fff;
}
.route-summary > div { min-width: 0; padding: 11px 12px; border-right: 1px solid #edf0f4; }
.route-summary > div:last-child { border-right: 0; }
.route-summary small { display: block; color: #8994a6; font-size: 8px; }
.route-summary strong { display: block; overflow: hidden; margin-top: 4px; color: #273248; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.route-google-link {
  display: block;
  padding: 10px 13px;
  border-top: 1px solid #edf0f4;
  color: #287bea;
  font-size: 9px;
  font-weight: 600;
  text-align: center;
}
.route-google-link[hidden] { display: none; }

@media (max-width: 1260px) {
  .booking-entry-layout { grid-template-columns: 1fr; }
  .booking-map-card { position: relative; top: auto; }
  .booking-map-shell, #booking-route-map { min-height: 440px; height: 440px; }
}
@media (max-width: 620px) {
  .route-inputs { padding: 13px 11px; }
  .route-location-row { grid-template-columns: 27px minmax(0, 1fr); gap: 9px; }
  .route-point-marker { width: 27px; height: 27px; }
  .route-location-row:first-of-type::after { top: 26px; left: 13px; }
  .selected-place { display: block; }
  .selected-place span, .selected-place small { display: block; white-space: normal; }
  .selected-place small { margin-top: 3px; }
  .route-form-message { margin-left: 36px; }
  .route-stops-errors { margin-left: 36px; }
  .add-route-stop { margin-left: 36px; }
  .route-stop-heading { align-items: flex-start; }
  .place-suggestions { max-height: 240px; }
  .manual-coordinate-grid { grid-template-columns: 1fr; }
  .booking-map-shell, #booking-route-map { min-height: 360px; height: 360px; }
  .route-summary > div { padding: 10px 8px; }
}

/* Capacity and split-dispatch planning */
.cargo-dimension-entry{display:grid;grid-template-columns:minmax(220px,1.5fr) repeat(3,minmax(110px,.7fr));gap:14px;align-items:end;padding:16px;border:1px solid #dfe7f2;border-radius:12px;background:#f8fbff}.cargo-dimension-entry>div{align-self:center}.cargo-dimension-entry>div strong,.cargo-dimension-entry>div small{display:block}.cargo-dimension-entry>div small{margin-top:4px;color:#71809a;line-height:1.45}.cargo-dimension-entry label{margin:0}.truck-fit-reason{display:block!important;color:#b5473e!important;line-height:1.35}.assignment-split-divider{display:flex;align-items:center;gap:10px;margin:16px 0 10px;color:#8793a8;font-size:11px;text-transform:uppercase;letter-spacing:.06em}.assignment-split-divider:before,.assignment-split-divider:after{content:"";height:1px;background:#e6ebf2;flex:1}.split-delivery-trigger{border-color:#b8cef6;color:#1769db;background:#f5f9ff}.split-delivery-trigger:hover{background:#eaf2ff}.split-leg-list{padding:8px}.split-leg-row{display:grid;grid-template-columns:36px minmax(0,1.5fr) minmax(100px,.7fr) auto 18px;align-items:center;gap:12px;padding:12px;border-radius:10px;color:inherit;text-decoration:none}.split-leg-row:hover{background:#f5f8fd}.split-leg-number{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#eaf2ff;color:#1f6fe5;font-weight:800}.split-leg-row span strong,.split-leg-row span small{display:block}.split-leg-row span small{color:#78869c;margin-top:3px}.split-parent-link{display:flex;align-items:center;gap:12px;padding:14px 16px;border:1px solid #cfe0fb;border-radius:12px;background:#f4f8ff;color:#244a7f}.split-parent-link>span{flex:1}.split-parent-link small,.split-parent-link strong{display:block}.split-parent-link a{font-weight:700;color:#1769db}.split-planner-body{background:#f6f8fc}.split-demand-banner{display:grid;grid-template-columns:repeat(3,minmax(130px,1fr));gap:10px;padding:14px;border:1px solid #dfe7f2;background:#fff;border-radius:13px}.split-demand-banner span{padding:10px 12px;background:#f7faff;border-radius:9px}.split-demand-banner small,.split-demand-banner strong{display:block}.split-demand-banner small{color:#71809a;margin-bottom:4px}.split-demand-banner p{grid-column:1/-1;margin:0;color:#62718a}.split-resource-columns{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px}.split-resource-panel,.split-plan-preview{border:1px solid #dfe7f2;border-radius:13px;background:#fff;overflow:hidden}.split-resource-panel>header,.split-plan-preview>header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 14px;border-bottom:1px solid #e6ebf2}.split-resource-panel header small,.split-plan-preview header small{color:#1770e6;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.1em}.split-resource-panel h4,.split-plan-preview h4{margin:2px 0 0;font-size:15px}.split-resource-panel header input{max-width:170px;padding:8px 10px;border:1px solid #dce4ef;border-radius:8px}.split-resource-list{max-height:320px;overflow:auto;padding:8px}.split-resource-option{display:grid;grid-template-columns:20px 66px 1fr 22px;gap:10px;align-items:center;padding:9px;border:1px solid transparent;border-radius:10px;cursor:pointer;margin:0}.split-resource-option:hover{background:#f6f9fe}.split-resource-option:has(input:checked){border-color:#72a8f5;background:#edf5ff}.split-resource-option input{accent-color:#2677e8}.split-resource-photo{width:60px;height:54px;border-radius:9px;overflow:hidden;background:#eef2f7}.split-resource-photo img{width:100%;height:100%;object-fit:cover}.split-resource-photo.truck img{object-fit:contain}.split-resource-option>span:nth-of-type(2) strong,.split-resource-option>span:nth-of-type(2) small,.split-resource-option>span:nth-of-type(2) em{display:block}.split-resource-option>span:nth-of-type(2) small{color:#7a879b;font-size:11px}.split-resource-option>span:nth-of-type(2) em{color:#235ea7;font-size:11px;font-style:normal;font-weight:700;margin:2px 0}.split-resource-option>i{color:#fff;background:#2a7bea;border-radius:50%;padding:3px;opacity:0}.split-resource-option:has(input:checked)>i{opacity:1}.split-plan-preview{margin-top:14px}.split-plan-preview>header>span{padding:6px 9px;border-radius:999px;background:#edf1f6;color:#657287;font-size:11px;font-weight:700}.split-plan-preview>header>span.is-covered{background:#e5f8ef;color:#168151}.split-plan-preview>header>span.has-gap{background:#fff1ef;color:#c1483d}.split-plan-rows{padding:8px}.split-plan-row{display:grid;grid-template-columns:30px minmax(0,1.5fr) minmax(130px,.8fr) 20px;align-items:center;gap:10px;padding:10px;border-bottom:1px solid #edf0f5}.split-plan-row:last-child{border-bottom:0}.split-plan-row>span{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#eaf2ff;color:#1e6edc;font-weight:800}.split-plan-row strong,.split-plan-row small{display:block}.split-plan-row small{color:#79869a}.split-plan-row>i{color:#1a9c63}.split-planner-footer{display:flex;align-items:center}.split-planner-footer>small{flex:1;color:#64738a}.split-planner-footer .button{width:auto}

@media (max-width:900px){.cargo-dimension-entry{grid-template-columns:1fr 1fr}.cargo-dimension-entry>div{grid-column:1/-1}.split-resource-columns{grid-template-columns:1fr}.split-demand-banner{grid-template-columns:1fr}.split-demand-banner p{grid-column:auto}.split-leg-row{grid-template-columns:34px 1fr auto}.split-leg-row>span:nth-child(3),.split-leg-row>i{display:none}}

/* Enterprise vehicle profile */
.vehicle-breadcrumb{display:flex;align-items:center;gap:9px;margin:-4px 0 16px;color:#71809a;font-size:11px}.vehicle-breadcrumb a{color:#52627a;text-decoration:none}.vehicle-breadcrumb a:hover{color:#176fe5}.vehicle-breadcrumb svg{width:13px;height:13px}.vehicle-breadcrumb strong{color:#263750}.vehicle-master-head{padding:0 2px 16px;margin-bottom:0}.vehicle-master-title{display:flex;align-items:center;gap:13px}.vehicle-master-title>span{display:grid;place-items:center;width:44px;height:44px;border:1px solid #dbe6f4;border-radius:9px;background:#fff;color:#176fe5;box-shadow:0 3px 12px rgba(31,70,122,.05)}.vehicle-master-title>span svg{width:24px;height:24px}.vehicle-master-title h2{margin:0 0 3px;font-size:21px}.vehicle-master-title p{margin:0}.vehicle-master-actions{display:flex;gap:10px}.vehicle-master-actions .button{min-width:108px;justify-content:center}.vehicle-master-form{width:100%}.vehicle-master-card{overflow:hidden}.vehicle-section-heading{display:flex;align-items:flex-start;gap:10px;padding:14px 18px 0}.vehicle-section-heading>span{display:grid;place-items:center;width:20px;height:20px;flex:0 0 auto;border-radius:5px;background:#2476e5;color:#fff;font-size:11px;font-weight:800}.vehicle-section-heading h3{margin:0;color:#20324e;font-size:14px}.vehicle-section-heading p{margin:3px 0 0;color:#7a879b;font-size:10px}.vehicle-master-layout{display:grid;grid-template-columns:minmax(0,2.25fr) minmax(280px,.92fr);gap:26px;padding:14px 18px 18px}.vehicle-identity-pane{min-width:0}.vehicle-field-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 26px}.vehicle-field-grid label,.vehicle-spec-card>label,.vehicle-status-field,.vehicle-remarks-field{display:block;margin:0;color:#2f405a;font-size:11px;font-weight:650}.vehicle-field-grid label>span,.vehicle-spec-card label>span,.vehicle-status-field>span,.vehicle-remarks-field>span{display:block;margin-bottom:6px}.vehicle-master-form label b{color:#df4035}.vehicle-master-form input,.vehicle-master-form select,.vehicle-master-form textarea{border-color:#d9e1ec;border-radius:5px;box-shadow:none;font-size:11px}.vehicle-master-form input,.vehicle-master-form select{min-height:36px}.vehicle-master-form input:focus,.vehicle-master-form select:focus,.vehicle-master-form textarea:focus{border-color:#6ba5ef;box-shadow:0 0 0 3px rgba(37,117,228,.09)}.vehicle-field-grid label>small,.vehicle-spec-card label>small,.vehicle-status-field>small{display:block;margin-top:5px;color:#8793a6;font-size:9px;font-weight:400}.vehicle-field-grid label>em,.vehicle-spec-card label>em,.vehicle-status-field>em,.vehicle-checkbox-stack em,.vehicle-remarks-field>em,.vehicle-field-error{display:block;margin-top:4px;color:#c43c36;font-size:9px;font-style:normal}.vehicle-photo-section{margin-top:18px}.vehicle-field-label{margin-bottom:7px;color:#2f405a;font-size:11px;font-weight:650}.vehicle-photo-workspace{display:grid;grid-template-columns:165px 1fr;gap:12px}.vehicle-master-preview{display:grid;place-items:center;height:112px;border:1.5px solid #91b7ee;border-radius:6px;overflow:hidden;background:#f5f8fc}.vehicle-master-preview img{width:100%;height:100%;object-fit:cover}.vehicle-master-preview img.stock-vehicle-image{padding:10px;object-fit:contain;background:radial-gradient(circle at 50% 55%,#fff 0,#f5f7fa 64%,#e9edf2 100%)}.vehicle-upload-dropzone{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:112px;margin:0;border:1px dashed #c8d4e4;border-radius:6px;background:#fff;color:#52637c;text-align:center;cursor:pointer;transition:.18s ease}.vehicle-upload-dropzone:hover,.vehicle-upload-dropzone.is-dragging{border-color:#4b91eb;background:#f4f9ff}.vehicle-upload-icon{color:#1f77e6}.vehicle-upload-icon svg{width:25px;height:25px}.vehicle-upload-dropzone strong{font-size:10px}.vehicle-upload-dropzone small{margin:2px 0 6px;color:#8190a5;font-size:9px}.vehicle-upload-dropzone>b{padding:5px 13px;border:1px solid #d7dfeb;border-radius:4px;background:#fff;color:#4f6078;font-size:9px;max-width:80%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vehicle-file-input{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0}.vehicle-photo-help{display:block;margin-top:6px;color:#8793a6;font-size:9px}.vehicle-spec-stack{display:flex;flex-direction:column;gap:12px}.vehicle-spec-card{padding:13px;border:1px solid #dae2ed;border-radius:9px;background:linear-gradient(145deg,#fff,#f7f9fc)}.vehicle-spec-card>header{display:flex;align-items:center;gap:8px;margin-bottom:11px;color:#233a5d}.vehicle-spec-card>header svg{width:17px;height:17px;color:#176fe5}.vehicle-spec-card>header strong{font-size:11px}.vehicle-spec-card>label{margin-top:10px}.vehicle-cargo-spec{margin-top:13px;padding-top:11px;border-top:1px solid #e1e7ef}.vehicle-cargo-spec>span{display:flex;align-items:center;justify-content:space-between}.vehicle-cargo-spec>span strong{color:#2f405a;font-size:10px}.vehicle-cargo-spec>span small{color:#8793a6;font-size:8px}.vehicle-cargo-spec>div{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:7px}.vehicle-cargo-spec label{margin:0;color:#697890;font-size:8px}.vehicle-cargo-spec input{min-height:31px;margin-top:3px;padding:5px}.vehicle-cargo-spec p{display:flex;align-items:center;gap:5px;margin:8px 0 0;padding:7px;border-radius:5px;background:#edf5ff;color:#54667f;font-size:9px}.vehicle-cargo-spec p svg{width:13px;height:13px;color:#1f75e4}.vehicle-cargo-spec p strong{margin-left:auto;color:#1f5fac}.vehicle-cargo-spec>em{display:block;margin-top:5px;color:#c43c36;font-size:9px;font-style:normal}.vehicle-operational-section{border-top:1px solid #e5eaf1;padding-bottom:16px}.vehicle-operational-section .vehicle-section-heading>span{background:#15966b}.vehicle-operational-grid{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(230px,.85fr) minmax(300px,1.25fr);gap:34px;padding:14px 18px 0}.vehicle-status-field>div{position:relative}.vehicle-status-field>div>i{position:absolute;left:12px;top:50%;width:7px;height:7px;border-radius:50%;background:#1cab73;transform:translateY(-50%);pointer-events:none}.vehicle-status-field select{padding-left:28px}.vehicle-checkbox-stack{display:grid;align-content:start;gap:12px;padding-top:3px}.vehicle-checkbox-stack label{margin:0;cursor:pointer}.vehicle-checkbox-stack label>span{display:flex;align-items:center;gap:8px}.vehicle-checkbox-stack input{width:14px;height:14px;min-height:0}.vehicle-checkbox-stack strong{color:#2f405a;font-size:10px}.vehicle-checkbox-stack small{display:block;margin:3px 0 0 22px;color:#8793a6;font-size:9px}.vehicle-remarks-field{position:relative}.vehicle-remarks-field textarea{min-height:72px;resize:vertical}.vehicle-remarks-field>small{position:absolute;right:8px;bottom:6px;color:#95a0b1;font-size:8px}.vehicle-remarks-field>small b{color:inherit}.vehicle-mobile-actions{display:none;justify-content:flex-end;gap:10px;margin-top:14px}

@media (max-width:1100px){.vehicle-master-layout{grid-template-columns:1fr}.vehicle-spec-stack{display:grid;grid-template-columns:1fr 1fr}.vehicle-operational-grid{grid-template-columns:1fr 1fr}.vehicle-remarks-field{grid-column:1/-1}}
@media (max-width:720px){.vehicle-master-actions{display:none}.vehicle-field-grid,.vehicle-spec-stack,.vehicle-operational-grid{grid-template-columns:1fr}.vehicle-photo-workspace{grid-template-columns:1fr}.vehicle-master-preview{height:180px}.vehicle-remarks-field{grid-column:auto}.vehicle-mobile-actions{display:flex}.vehicle-breadcrumb{overflow:auto;white-space:nowrap}.vehicle-master-layout{padding-left:13px;padding-right:13px}.vehicle-section-heading,.vehicle-operational-grid{padding-left:13px;padding-right:13px}}

/* Trip Booking & Dispatch command workspace */
.dispatch-page-head{margin-bottom:15px}.dispatch-page-head h2{margin:0 0 4px;font-size:22px}.dispatch-head-actions{display:flex;gap:9px}.dispatch-head-actions .button.is-active{border-color:#6fa5ef;background:#edf5ff;color:#176fe5}.dispatch-kpi-grid{display:grid;grid-template-columns:repeat(6,minmax(145px,1fr));gap:10px;margin-bottom:14px}.dispatch-kpi{display:flex;align-items:center;gap:10px;min-width:0;padding:13px;border:1px solid #e0e6ef;border-radius:9px;background:#fff;color:inherit;text-decoration:none;box-shadow:0 2px 7px rgba(28,53,89,.025);transition:.15s}.dispatch-kpi:hover,.dispatch-kpi.is-active{border-color:#8eb8ef;box-shadow:0 4px 14px rgba(28,91,175,.09);transform:translateY(-1px)}.dispatch-kpi>span{display:grid;place-items:center;width:39px;height:39px;flex:0 0 auto;border-radius:50%}.dispatch-kpi>span svg{width:18px;height:18px}.dispatch-kpi .tone-blue{background:#e6efff;color:#276fe5}.dispatch-kpi .tone-orange{background:#fff0db;color:#e9851d}.dispatch-kpi .tone-violet{background:#efe9ff;color:#7755df}.dispatch-kpi .tone-green{background:#e2f5ea;color:#20925a}.dispatch-kpi .tone-red{background:#fee8e6;color:#d94b45}.dispatch-kpi .tone-cyan{background:#dff8f7;color:#149e9a}.dispatch-kpi div{min-width:0}.dispatch-kpi small,.dispatch-kpi strong,.dispatch-kpi p{display:block}.dispatch-kpi small{color:#66758c;font-size:9px;font-weight:700}.dispatch-kpi strong{margin:2px 0;color:#182944;font-size:20px}.dispatch-kpi p{margin:0;color:#8a96a8;font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dispatch-filter-shell{display:grid;grid-template-columns:minmax(0,1.7fr) auto;gap:10px;margin-bottom:12px}.dispatch-search-filter,.dispatch-date-filter{display:flex;align-items:center;gap:8px;padding:9px;border:1px solid #e0e6ef;border-radius:8px;background:#fff}.dispatch-search-box{position:relative;flex:1}.dispatch-search-box svg{position:absolute;left:10px;top:50%;width:15px;height:15px;color:#8995a7;transform:translateY(-50%)}.dispatch-search-box input{width:100%;height:35px;padding:7px 10px 7px 32px;border:1px solid #dfe5ed;border-radius:5px;font-size:10px}.dispatch-search-filter select{width:150px;height:35px;border:1px solid #dfe5ed;border-radius:5px;font-size:10px}.dispatch-search-filter>a{color:#2574dd;font-size:9px;white-space:nowrap}.dispatch-date-filter>button{height:31px;padding:0 10px;border:0;border-radius:5px;background:transparent;color:#66758b;font-size:9px;font-weight:700}.dispatch-date-filter>button.is-active{background:#eaf3ff;color:#1f70df}.custom-date-range{display:flex;align-items:center;gap:4px;padding-left:7px;border-left:1px solid #e4e9f0}.custom-date-range input{width:108px;height:31px;border:1px solid #dfe5ed;border-radius:5px;font-size:9px}.custom-date-range svg{width:12px}.custom-date-range button{height:31px;border:0;border-radius:5px;background:#253b5c;color:#fff;font-size:9px}.dispatch-calendar-board{margin-bottom:12px;overflow:hidden}.dispatch-calendar-board>header{display:flex;justify-content:space-between;padding:12px 14px;border-bottom:1px solid #e5eaf1}.dispatch-calendar-board h3,.dispatch-calendar-board p{margin:0}.dispatch-calendar-board h3{font-size:13px}.dispatch-calendar-board p,.dispatch-calendar-board a{color:#748198;font-size:9px}.dispatch-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(140px,1fr));overflow:auto}.dispatch-calendar-day{min-height:130px;border-right:1px solid #e8edf3}.dispatch-calendar-day>span{display:flex;justify-content:space-between;padding:8px 10px;background:#f7f9fc}.dispatch-calendar-day>span strong,.dispatch-calendar-day>span small{font-size:9px}.dispatch-calendar-day>div{display:grid;gap:5px;padding:7px}.dispatch-calendar-day>div>a{display:grid;padding:6px;border-left:3px solid #367ee5;border-radius:4px;background:#f1f6fd;color:inherit;text-decoration:none}.dispatch-calendar-day>div>a b{color:#276bd0;font-size:8px}.dispatch-calendar-day>div>a strong{font-size:9px}.dispatch-calendar-day>div>a small,.dispatch-calendar-day>div>p{color:#7d8a9e;font-size:8px}.dispatch-workspace{display:grid;grid-template-columns:300px minmax(0,1fr);gap:10px;align-items:start}.dispatch-booking-rail{position:sticky;top:82px;max-height:calc(100vh - 100px);overflow:hidden}.dispatch-booking-rail>header{display:flex;align-items:center;justify-content:space-between;padding:12px 13px;border-bottom:1px solid #e5eaf1}.dispatch-booking-rail h3{margin:0;font-size:12px}.dispatch-booking-rail h3 span{color:#74829a}.dispatch-booking-rail header small{color:#8b97a9;font-size:8px}.dispatch-booking-rail header svg{width:15px}.dispatch-booking-list{max-height:calc(100vh - 150px);overflow:auto}.dispatch-booking-card{position:relative;display:block;padding:11px 12px;border-bottom:1px solid #e7ebf1;color:inherit;text-decoration:none}.dispatch-booking-card:hover{background:#f8faff}.dispatch-booking-card.is-selected{background:#f5f9ff;box-shadow:inset 3px 0 #327fe8}.dispatch-booking-card.needs-attention{box-shadow:inset 3px 0 #e45a51}.dispatch-card-top,.dispatch-card-resources,.dispatch-card-load,.dispatch-card-flags{display:flex;align-items:center;justify-content:space-between;gap:6px}.dispatch-card-top>strong{color:#236fd8;font-size:8px}.dispatch-status{display:inline-flex;align-items:center;padding:4px 7px;border-radius:999px;background:#edf1f5;color:#56657c;font-size:7px;font-style:normal;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.dispatch-status[data-status="requested"],.dispatch-status[data-status="accepted"]{background:#fff0d7;color:#bd6c16}.dispatch-status[data-status="assigned"]{background:#e7f0ff;color:#236fdb}.dispatch-status[data-status="ready"]{background:#eee7ff;color:#6d48d4}.dispatch-status[data-status="dispatched"],.dispatch-status[data-status="started"],.dispatch-status[data-status="at_warehouse"],.dispatch-status[data-status="loading"]{background:#e9e7ff;color:#614dcc}.dispatch-status[data-status="in_transit"],.dispatch-status[data-status="arrived"],.dispatch-status[data-status="delivered"],.dispatch-status[data-status="returning"]{background:#e2f6ea;color:#18864f}.dispatch-status[data-status="completed"],.dispatch-status[data-status="returned"]{background:#d8f1e4;color:#11643e}.dispatch-status[data-status="cancelled"],.dispatch-status[data-status="attention"]{background:#fee8e5;color:#c9433d}.dispatch-status[data-status="draft"]{background:#edf0f3;color:#6f7a89}.dispatch-booking-card h4{margin:5px 0 3px;color:#20314c;font-size:11px}.dispatch-card-route,.dispatch-card-schedule{display:block;color:#6d7b90;font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dispatch-card-route svg,.dispatch-card-schedule svg{width:10px;height:10px;margin-right:4px}.dispatch-card-route b{color:#93a0b3}.dispatch-card-schedule{margin-top:4px}.dispatch-card-resources{margin-top:8px;padding-top:7px;border-top:1px dashed #e2e7ed;color:#435572;font-size:8px}.dispatch-card-resources span{display:flex;align-items:center;gap:4px}.dispatch-card-resources svg{width:12px;height:12px;color:#387adc}.dispatch-card-load{margin-top:6px}.dispatch-card-load strong{color:#3c4e69;font-size:8px}.dispatch-card-load small{color:#7b8798;font-size:8px}.dispatch-card-load.is-risk strong{color:#d1433b}.dispatch-card-flags{justify-content:flex-start;margin-top:6px}.dispatch-card-flags svg{width:12px;height:12px;color:#64809f}.dispatch-card-flags svg.risk{color:#db4b42}.dispatch-trip-detail{min-width:0;overflow:hidden}.dispatch-trip-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 15px;padding:14px 15px;border-bottom:1px solid #e4e9f0}.dispatch-trip-head>div:first-child>span{color:#2371df;font-size:8px;font-weight:800}.dispatch-trip-head h3{display:inline-block;margin:3px 8px 1px 0;font-size:17px}.dispatch-trip-head p{margin:0;color:#738096;font-size:9px}.dispatch-trip-head>.dispatch-status{align-self:start}.dispatch-trip-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:7px}.dispatch-trip-actions form{margin:0}.dispatch-trip-actions .button{min-height:31px;padding:6px 10px;font-size:9px}.dispatch-trip-actions .icon-only{width:31px;padding:6px}.dispatch-trip-actions button:disabled{opacity:.45;cursor:not-allowed}.dispatch-assignment-grid{display:grid;grid-template-columns:repeat(4,1fr);border-bottom:1px solid #e4e9f0}.dispatch-assignment-grid article{display:flex;gap:9px;min-width:0;padding:13px;border-right:1px solid #e5eaf1}.dispatch-assignment-grid article:last-child{border-right:0}.dispatch-assignment-grid article>svg{width:16px;height:16px;flex:0 0 auto;color:#526a8b}.dispatch-assignment-grid small,.dispatch-assignment-grid strong,.dispatch-assignment-grid span{display:block}.dispatch-assignment-grid small{color:#7c899e;font-size:8px}.dispatch-assignment-grid strong{margin:3px 0;color:#20314c;font-size:11px}.dispatch-assignment-grid span{color:#75839a;font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dispatch-assignment-grid .is-risk strong,.dispatch-assignment-grid .is-risk>svg{color:#d6463e}.dispatch-capacity-alert,.dispatch-capacity-override{display:flex;gap:11px;margin:12px 14px;padding:11px;border:1px solid #f1c6c1;border-radius:7px;background:#fff4f2;color:#b93f37}.dispatch-capacity-alert>svg,.dispatch-capacity-override>svg{width:19px;flex:0 0 auto}.dispatch-capacity-alert>div{flex:1}.dispatch-capacity-alert strong{font-size:10px}.dispatch-capacity-alert p,.dispatch-capacity-override p{margin:3px 0 8px;color:#7f4c48;font-size:8px}.dispatch-capacity-alert>div>span{display:flex;gap:6px}.dispatch-capacity-alert form{margin:0}.dispatch-capacity-alert details{margin-top:8px}.dispatch-capacity-alert summary{cursor:pointer;font-size:8px;font-weight:700}.dispatch-capacity-alert details form{display:flex;gap:6px;margin-top:6px}.dispatch-capacity-alert textarea{flex:1;border:1px solid #e9bbb6;border-radius:5px;font-size:8px}.dispatch-capacity-override{border-color:#b9ddc9;background:#effaf4;color:#167443}.dispatch-capacity-override p{margin-bottom:0;color:#4a705c}.dispatch-detail-tabs{display:flex;gap:20px;padding:0 15px;border-top:1px solid #edf0f4;border-bottom:1px solid #e2e7ee;overflow:auto}.dispatch-detail-tabs button{position:relative;padding:11px 0;border:0;background:transparent;color:#6c7b91;font-size:8px;font-weight:700;white-space:nowrap}.dispatch-detail-tabs button.is-active{color:#2475e2}.dispatch-detail-tabs button.is-active:after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:#2c7be5}.dispatch-detail-tabs button span{padding:1px 4px;border-radius:99px;background:#eaf1fa}.dispatch-tab-panel{padding:12px 14px}.dispatch-overview-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(220px,.72fr) minmax(190px,.55fr);gap:10px}.dispatch-route-map-card,.dispatch-route-timeline,.dispatch-overview-aside>section{border:1px solid #e0e6ee;border-radius:7px;background:#fff;overflow:hidden}.dispatch-route-map-card>header,.dispatch-route-timeline>header{display:flex;align-items:center;justify-content:space-between;padding:9px 10px;border-bottom:1px solid #e7ebf1}.dispatch-route-map-card h4,.dispatch-route-map-card p,.dispatch-route-timeline h4{margin:0}.dispatch-route-map-card h4,.dispatch-route-timeline h4{font-size:10px}.dispatch-route-map-card p,.dispatch-route-map-card header>span,.dispatch-route-timeline header>span{color:#78869a;font-size:7px}.dispatch-route-map-card header>span i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#1fa66c}.dispatch-map-shell,#booking-tracking-map{height:285px}.dispatch-route-map-card>footer{display:flex;gap:12px;padding:7px 9px;color:#758299;font-size:7px}.dispatch-route-map-card footer span{display:flex;align-items:center;gap:4px}.dispatch-route-map-card footer i{display:block;width:16px;height:3px}.dispatch-route-map-card footer i.planned{background:#287bea}.dispatch-route-map-card footer i.actual{background:#ef6b5d}.dispatch-route-map-card footer strong{margin-left:auto;color:#3a4d68}.dispatch-route-timeline>div{padding:8px}.dispatch-route-timeline article{position:relative;display:flex;gap:8px;padding:7px 0}.dispatch-route-timeline article:not(:last-child):after{content:"";position:absolute;left:11px;top:30px;bottom:-6px;border-left:1px dashed #ccd6e3}.dispatch-route-timeline article>i{display:grid;place-items:center;width:23px;height:23px;flex:0 0 auto;border-radius:50%;background:#e9f1fb;color:#3475ca;font-size:8px;font-style:normal;font-weight:800;z-index:1}.dispatch-route-timeline article>i.pickup{background:#dff5e7;color:#18894f}.dispatch-route-timeline article>i.dropoff{background:#fde5e3;color:#c53f38}.dispatch-route-timeline small,.dispatch-route-timeline strong,.dispatch-route-timeline em{display:block}.dispatch-route-timeline small{color:#7c899c;font-size:7px}.dispatch-route-timeline strong{margin:2px 0;color:#2b3d58;font-size:8px}.dispatch-route-timeline em{color:#8491a3;font-size:7px;font-style:normal}.dispatch-overview-aside{display:flex;flex-direction:column;gap:9px}.dispatch-overview-aside>section{padding:10px}.dispatch-overview-aside h4{margin:0 0 6px;font-size:9px}.dispatch-overview-aside strong,.dispatch-overview-aside p,.dispatch-overview-aside a{display:block;margin:2px 0;color:#5f6f86;font-size:8px}.dispatch-overview-aside a{color:#236fd8}.dispatch-overview-aside a svg{width:10px;margin-right:4px}.dispatch-overview-aside p b{display:inline-block;min-width:63px;color:#7c899d}.dispatch-section-list>header{margin-bottom:10px}.dispatch-section-list h4,.dispatch-section-list p{margin:0}.dispatch-section-list h4{font-size:12px}.dispatch-section-list p{color:#7b889c;font-size:8px}.dispatch-section-list>article{display:flex;gap:10px;padding:10px;border-bottom:1px solid #e8ecf2}.dispatch-section-list>article>span{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#e9f2ff;color:#256fd6;font-size:9px;font-weight:800}.dispatch-section-list small,.dispatch-section-list strong,.dispatch-section-list p{display:block}.dispatch-section-list small{color:#79869b;font-size:8px}.dispatch-section-list strong{font-size:10px}.dispatch-section-list article p{font-size:8px}.dispatch-data-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.dispatch-data-grid>div{padding:11px;border:1px solid #e2e7ee;border-radius:6px;background:#f9fbfd}.dispatch-data-grid .wide{grid-column:1/-1}.dispatch-data-grid small,.dispatch-data-grid strong{display:block}.dispatch-data-grid small{color:#7a8799;font-size:8px}.dispatch-data-grid strong{margin-top:4px;color:#263952;font-size:10px}.dispatch-timeline{padding-left:7px}.dispatch-timeline article{display:flex;gap:12px;padding:8px 0}.dispatch-timeline article>i{position:relative;width:12px;height:12px;margin-top:2px;border:3px solid #dfe8f4;border-radius:50%;background:#2c77df}.dispatch-timeline article:not(:last-child)>i:after{content:"";position:absolute;left:2px;top:10px;height:44px;border-left:1px solid #d9e1ec}.dispatch-timeline strong,.dispatch-timeline p,.dispatch-timeline small{display:block;margin:0}.dispatch-timeline strong{font-size:9px}.dispatch-timeline p,.dispatch-timeline small{color:#77859a;font-size:8px}.dispatch-pod-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-bottom:10px}.dispatch-pod-summary section{padding:11px;border:1px solid #e1e7ee;border-radius:6px}.dispatch-pod-summary small,.dispatch-pod-summary strong,.dispatch-pod-summary span{display:block}.dispatch-pod-summary small,.dispatch-pod-summary span{color:#7a879a;font-size:8px}.dispatch-pod-summary strong{font-size:11px}.dispatch-pod-grid{grid-template-columns:repeat(4,minmax(120px,1fr))}.dispatch-pod-remarks{padding:9px;border-radius:6px;background:#f6f8fb;font-size:9px}.dispatch-cost-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:9px}.dispatch-cost-grid article{padding:12px;border:1px solid #e0e6ee;border-radius:6px}.dispatch-cost-grid small,.dispatch-cost-grid strong{display:block}.dispatch-cost-grid small{color:#79869a;font-size:8px}.dispatch-cost-grid strong{margin-top:5px;font-size:12px}.dispatch-cost-grid .total{background:#edf5ff;color:#1f65be}.dispatch-billing-row{display:flex;align-items:center;gap:30px;margin-top:10px;padding:11px;border:1px solid #dfe6ef;border-radius:6px}.dispatch-billing-row span{flex:1}.dispatch-billing-row small,.dispatch-billing-row strong{display:block}.dispatch-billing-row small{color:#7b879a;font-size:8px}.dispatch-billing-row strong{font-size:10px}.dispatch-attachment-list{display:grid;gap:7px}.dispatch-attachment-list>a{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid #e1e7ee;border-radius:6px;color:inherit;text-decoration:none}.dispatch-attachment-list>a>svg{width:16px;color:#367adb}.dispatch-attachment-list>a>span{flex:1}.dispatch-attachment-list strong,.dispatch-attachment-list small{display:block}.dispatch-attachment-list strong{font-size:9px}.dispatch-attachment-list small{color:#7b889c;font-size:8px}.dispatch-audit-table{display:grid;border:1px solid #e0e6ee;border-radius:6px;overflow:hidden}.dispatch-audit-table>div{display:grid;grid-template-columns:145px 140px 130px 1fr}.dispatch-audit-table>div>span{padding:8px;border-bottom:1px solid #e8edf3;color:#54657d;font-size:8px}.dispatch-audit-table .header{background:#f4f7fa;font-weight:800}.dispatch-audit-table .header span{color:#34475f}

@media (max-width:1350px){.dispatch-kpi-grid{grid-template-columns:repeat(3,1fr)}.dispatch-overview-grid{grid-template-columns:1.5fr .75fr}.dispatch-overview-aside{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,1fr)}.dispatch-filter-shell{grid-template-columns:1fr}.dispatch-date-filter{justify-content:flex-end}}
@media (max-width:1050px){.dispatch-workspace{grid-template-columns:1fr}.dispatch-booking-rail{position:relative;top:auto;max-height:none}.dispatch-booking-list{display:grid;grid-template-columns:repeat(2,1fr);max-height:430px}.dispatch-booking-card{border-right:1px solid #e7ebf1}.dispatch-assignment-grid{grid-template-columns:repeat(2,1fr)}.dispatch-overview-grid{grid-template-columns:1fr}.dispatch-overview-aside{grid-template-columns:1fr 1fr}.dispatch-data-grid,.dispatch-cost-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:720px){.dispatch-page-head{align-items:flex-start}.dispatch-head-actions{flex-wrap:wrap}.dispatch-kpi-grid{grid-template-columns:1fr 1fr}.dispatch-search-filter,.dispatch-date-filter{flex-wrap:wrap}.dispatch-search-box{flex-basis:100%}.custom-date-range{width:100%;border-left:0}.custom-date-range input{flex:1}.dispatch-booking-list{grid-template-columns:1fr}.dispatch-trip-head{grid-template-columns:1fr}.dispatch-trip-actions{justify-content:flex-start;flex-wrap:wrap}.dispatch-assignment-grid{grid-template-columns:1fr}.dispatch-assignment-grid article{border-right:0;border-bottom:1px solid #e5eaf1}.dispatch-overview-aside{grid-template-columns:1fr}.dispatch-data-grid,.dispatch-cost-grid,.dispatch-pod-summary{grid-template-columns:1fr}.dispatch-audit-table>div{grid-template-columns:110px 1fr}.dispatch-audit-table>div span:nth-child(2),.dispatch-audit-table>div span:nth-child(3){display:none}.dispatch-capacity-alert details form{display:grid}.dispatch-map-shell,#booking-tracking-map{height:240px}}

/* Booking workspace: combined operational filters and deterministic ordering. */
.dispatch-filter-shell{grid-template-columns:1fr}
.dispatch-search-filter{flex-wrap:wrap}
.dispatch-search-box{min-width:280px}
.dispatch-search-filter select{width:145px;max-width:100%;padding:0 8px;background:#fff;color:#34445c}
.dispatch-search-filter select[name="state"]{width:170px}
.dispatch-search-filter .dispatch-sort-select{width:180px}
.dispatch-date-filter{justify-content:flex-end}
@media (max-width:980px){.dispatch-search-box{flex-basis:100%}.dispatch-search-filter select{flex:1;min-width:145px}.dispatch-search-filter select[name="state"],.dispatch-search-filter .dispatch-sort-select{width:auto}}
@media (max-width:720px){.dispatch-search-filter select{flex-basis:calc(50% - 8px)}.dispatch-search-filter .button{flex:1}.dispatch-date-filter{justify-content:flex-start}}

/* Five-step booking and dispatch intake */
.booking-wizard-page-head{margin-bottom:12px}.booking-wizard-form{min-width:0}.booking-form-alert,.booking-form-error-summary{margin-bottom:10px}.booking-form-error-summary{display:flex;align-items:center;gap:10px;padding:10px 13px;border:1px solid #f2c4bf;border-radius:7px;background:#fff4f2;color:#b64138}.booking-form-error-summary>svg{width:20px;height:20px}.booking-form-error-summary strong,.booking-form-error-summary span{display:block}.booking-form-error-summary strong{font-size:10px}.booking-form-error-summary span{margin-top:2px;color:#895853;font-size:8px}.booking-stepper{display:grid;grid-template-columns:repeat(5,1fr);margin-bottom:11px;border:1px solid #e0e6ef;border-radius:9px;background:#fff;overflow:hidden}.booking-step{position:relative;display:flex;align-items:center;gap:8px;min-width:0;padding:11px 12px;border:0;border-right:1px solid #e7ebf1;background:#fff;color:#68768c;text-align:left;cursor:pointer}.booking-step:last-child{border-right:0}.booking-step:after{content:"";position:absolute;left:0;right:100%;bottom:0;height:3px;background:#287bea;transition:.2s}.booking-step.is-active{background:#f7faff;color:#1f65bd}.booking-step.is-active:after,.booking-step.is-complete:after{right:0}.booking-step>span{display:grid;width:26px;height:26px;flex:0 0 auto;place-items:center;border-radius:50%;background:#eef2f6;color:#617087;font-size:9px;font-weight:800}.booking-step.is-active>span{background:#287bea;color:#fff;box-shadow:0 0 0 4px #e9f2ff}.booking-step.is-complete>span{background:#def4e9;color:#188657}.booking-step strong,.booking-step small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.booking-step strong{font-size:9px}.booking-step small{margin-top:2px;color:#929cad;font-size:7px}.booking-wizard-layout{grid-template-columns:minmax(610px,1.4fr) minmax(340px,.6fr);gap:11px}.booking-wizard-card{min-width:0;overflow:hidden}.booking-wizard-panel[hidden]{display:none}.booking-wizard-panel.is-active{animation:booking-panel-in .18s ease}@keyframes booking-panel-in{from{opacity:.4;transform:translateY(3px)}to{opacity:1;transform:none}}.booking-section-heading{display:flex;align-items:flex-start;gap:11px;padding:15px 17px;border-bottom:1px solid #e5eaf1;background:linear-gradient(110deg,#fff,#f8fbff)}.booking-section-heading>span{display:grid;width:34px;height:34px;flex:0 0 auto;place-items:center;border:1px solid #cfe0f6;border-radius:8px;background:#edf5ff;color:#176fe5}.booking-section-heading>span svg{width:18px;height:18px}.booking-section-heading p,.booking-section-heading h3,.booking-section-heading small{display:block;margin:0}.booking-section-heading p{color:#2473db;font-size:7px;font-weight:800;text-transform:uppercase;letter-spacing:.1em}.booking-section-heading h3{margin-top:2px;color:#1d2f4b;font-size:14px}.booking-section-heading small{margin-top:3px;color:#7a879b;font-size:8px}.booking-section-body{min-height:430px;padding:18px}.booking-wizard-grid{gap:14px 18px}.booking-wizard-grid>label,.resource-assignment-selects>label{display:block;margin:0;color:#34465f;font-size:9px;font-weight:700}.booking-wizard-grid label em{color:#d9473d;font-style:normal}.booking-wizard-grid label>input,.booking-wizard-grid label>select,.booking-wizard-grid label>textarea,.resource-assignment-selects select{margin-top:6px;border-color:#d9e1eb;border-radius:5px;font-size:10px}.booking-wizard-grid label>small,.booking-file-field>small{display:block;margin-top:4px;color:#8390a4;font-size:8px;font-weight:400;line-height:1.4}.booking-wizard-grid .booking-checkbox{display:flex}.booking-wizard-panel .route-inputs{margin:0}.booking-dimension-box{grid-template-columns:minmax(185px,1.25fr) repeat(3,minmax(88px,.7fr)) minmax(110px,.72fr);margin-top:15px;border-radius:7px}.booking-dimension-box label{font-size:8px}.booking-dimension-box input{margin-top:5px}.dimension-result{padding:9px;border-left:1px solid #dce5f0}.dimension-result small,.dimension-result strong{display:block}.dimension-result small{color:#8290a3;font-size:7px}.dimension-result strong{margin-top:4px;color:#1f67bf;font-size:11px}.booking-cargo-options{margin-top:16px}.resource-assignment-selects{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-bottom:16px;padding:12px;border:1px solid #dce5f0;border-radius:7px;background:#f8fbff}.qualified-resource-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:16px 0 8px}.qualified-resource-heading strong,.qualified-resource-heading small{display:block}.qualified-resource-heading strong{color:#263952;font-size:10px}.qualified-resource-heading small{margin-top:2px;color:#7d8a9d;font-size:8px}.qualified-resource-heading>span{padding:5px 8px;border-radius:99px;background:#eaf3ff;color:#246dcc;font-size:8px;font-weight:800}.booking-resource-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.booking-resource-card{display:grid;grid-template-columns:98px minmax(0,1fr);gap:10px;align-items:center;min-width:0;padding:8px;border:1px solid #dfe6ef;border-radius:7px;background:#fff;color:inherit;text-align:left;cursor:pointer;transition:.15s}.booking-resource-card:hover{border-color:#8bb6ed;background:#f9fbff}.booking-resource-card.is-selected{border-color:#287bea;background:#edf5ff;box-shadow:0 0 0 2px rgba(40,123,234,.1)}.booking-resource-card.is-incompatible{display:none}.booking-resource-card>img{width:98px;height:66px;border-radius:6px;background:#f0f3f6;object-fit:cover}.truck-resource-card>img{padding:4px;object-fit:contain}.resource-card-content{min-width:0}.resource-card-content strong,.resource-card-content small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.resource-card-content strong{margin-top:3px;color:#243853;font-size:10px}.resource-card-content small{color:#78869b;font-size:7px}.resource-card-content>div{display:flex;gap:9px;margin:5px 0 3px}.resource-card-content>div span{display:flex;align-items:center;gap:3px;color:#526680;font-size:7px}.resource-card-content>div svg{width:10px;height:10px;color:#2774d9}.resource-fit-badge{display:inline-flex!important;width:max-content;padding:3px 5px;border-radius:99px;background:#fff0e5;color:#bd681e;font-size:6px!important;font-weight:800;text-transform:uppercase}.resource-fit-badge.is-fit{background:#e1f5e9;color:#177d4d}.driver-resource-card{grid-template-columns:50px minmax(0,1fr)}.driver-resource-card>img{width:50px;height:50px;border-radius:50%;object-fit:cover}.resource-empty-state{grid-column:1/-1;display:flex;align-items:center;gap:9px;padding:14px;border:1px dashed #cfd9e7;border-radius:7px;background:#fafbfd;color:#77859a}.resource-empty-state>svg{width:21px;height:21px}.resource-empty-state strong,.resource-empty-state span{display:block}.resource-empty-state strong{color:#40536e;font-size:9px}.resource-empty-state span{font-size:8px}.assignment-policy-note,.booking-submit-note{display:flex;gap:9px;margin-top:15px;padding:10px;border:1px solid #cfe1f7;border-radius:7px;background:#f3f8ff;color:#2468b9}.assignment-policy-note>svg,.booking-submit-note>svg{width:17px;height:17px;flex:0 0 auto}.assignment-policy-note strong,.assignment-policy-note span,.booking-submit-note strong,.booking-submit-note span{display:block}.assignment-policy-note strong,.booking-submit-note strong{font-size:9px}.assignment-policy-note span,.booking-submit-note span{margin-top:2px;color:#607898;font-size:8px;line-height:1.4}.booking-review-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.booking-review-grid article{min-width:0;padding:11px;border:1px solid #e0e6ee;border-radius:7px;background:#fafcff}.booking-review-grid article>span{display:flex;align-items:center;gap:5px;color:#748198;font-size:7px}.booking-review-grid article>span svg{width:12px;height:12px;color:#2875db}.booking-review-grid article strong,.booking-review-grid article small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.booking-review-grid article strong{margin-top:5px;color:#263952;font-size:9px}.booking-review-grid article small{margin-top:2px;color:#8793a4;font-size:7px}.booking-cost-grid{margin-top:15px}.booking-file-field input{padding:8px;border:1px dashed #bccbe0;background:#f9fbfd}.existing-booking-files{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin-top:12px}.existing-booking-files>strong{color:#4b5e78;font-size:8px}.existing-booking-files a{display:inline-flex;align-items:center;gap:4px;padding:5px 7px;border:1px solid #dae3ef;border-radius:5px;color:#276fd0;font-size:8px}.booking-wizard-actions{display:flex;align-items:center;gap:8px;padding:11px 17px;border-top:1px solid #e2e8f0;background:#f9fbfd}.booking-wizard-actions>span{flex:1;color:#8591a3;font-size:8px;text-align:center}.booking-wizard-actions .button{min-height:33px}.booking-wizard-actions .button svg{width:13px;height:13px}.booking-final-actions{display:flex;gap:8px}.booking-final-actions[hidden]{display:none}.booking-wizard-map .booking-map-shell,.booking-wizard-map #booking-route-map{min-height:360px;height:360px}.wizard-readiness-card{padding:12px;border-top:1px solid #e3e8ef;background:#fff}.wizard-readiness-card>div{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.wizard-readiness-card>div span,.wizard-readiness-card>div strong{font-size:8px}.wizard-readiness-card>div span{color:#728096}.wizard-readiness-card>div span svg{width:11px;height:11px;margin-right:4px;color:#2675db}.wizard-readiness-card>div strong{color:#31455f;text-align:right}.wizard-readiness-card ul{display:grid;gap:6px;margin:10px 0 0;padding:0;list-style:none}.wizard-readiness-card li{display:flex;align-items:center;gap:6px;color:#7b879a;font-size:8px}.wizard-readiness-card li svg{width:12px;height:12px;color:#a1acba}.wizard-readiness-card li.is-ready{color:#1b7750}.wizard-readiness-card li.is-ready svg{color:#1aa366}

@media (max-width:1180px){.booking-wizard-layout{grid-template-columns:1fr}.booking-wizard-map{position:relative;top:auto}.booking-step strong{font-size:8px}.booking-step small{display:none}.booking-dimension-box{grid-template-columns:repeat(3,1fr)}.booking-dimension-box>div:first-child{grid-column:1/-1}.dimension-result{border-left:0}}
@media (max-width:760px){.booking-stepper{grid-template-columns:repeat(5,44px);justify-content:space-between;overflow:auto}.booking-step{justify-content:center;padding:10px 8px}.booking-step>div{display:none}.booking-wizard-grid,.resource-assignment-selects,.booking-review-grid,.booking-resource-grid{grid-template-columns:1fr}.booking-section-body{min-height:0;padding:13px}.booking-dimension-box{grid-template-columns:1fr}.booking-dimension-box>div:first-child{grid-column:auto}.booking-resource-card{grid-template-columns:85px 1fr}.booking-resource-card>img{width:85px}.driver-resource-card{grid-template-columns:50px 1fr}.driver-resource-card>img{width:50px}.booking-wizard-actions{flex-wrap:wrap}.booking-wizard-actions>span{order:-1;flex-basis:100%}.booking-final-actions{width:100%}.booking-final-actions .button{flex:1}.booking-wizard-page-head{align-items:flex-start}}
.dispatch-trip-head h3{margin-left:8px}

/* Live driver device presence */
.dispatch-driver-resource{min-width:0;flex-wrap:wrap;justify-content:flex-end}.dispatch-driver-resource>b{max-width:92px;overflow:hidden;color:#435572;font-size:8px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.driver-presence-chip{display:inline-flex;align-items:center;gap:4px;width:max-content;padding:3px 6px;border-radius:999px;background:#edf1f5;color:#66758a;font-size:7px;font-style:normal;font-weight:800;line-height:1;white-space:nowrap}.driver-presence-chip>i{display:block;width:6px;height:6px;border-radius:50%;background:#9aa6b5}.driver-presence-chip[data-presence="online"]{background:#e2f6ea;color:#167c4a}.driver-presence-chip[data-presence="online"]>i{background:#1ca764;box-shadow:0 0 0 3px rgba(28,167,100,.12);animation:driver-presence-pulse 1.8s infinite}.driver-presence-chip[data-presence="delayed"]{background:#fff1d9;color:#b66a16}.driver-presence-chip[data-presence="delayed"]>i{background:#e5952c}.driver-presence-chip[data-presence="offline"]{background:#fee9e7;color:#ba4740}.driver-presence-chip[data-presence="offline"]>i{background:#d85950}.driver-presence-chip[data-presence="unknown"]{background:#edf1f5;color:#66758a}@keyframes driver-presence-pulse{0%,100%{box-shadow:0 0 0 2px rgba(28,167,100,.1)}50%{box-shadow:0 0 0 5px rgba(28,167,100,.02)}}.dispatch-driver-title{display:flex!important;align-items:center;gap:7px;white-space:normal!important}.dispatch-driver-title .driver-presence-chip{flex:0 0 auto}.driver-last-seen{display:block;margin-top:3px;color:#78879b;font-size:7px;font-weight:500}.dispatch-driver-assignment>div>span{white-space:normal}.dispatch-driver-assignment .driver-last-seen:before{content:"";display:inline-block;width:3px;height:3px;margin:0 5px 2px 5px;border-radius:50%;background:#9ca8b7}
