@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

.account-controls[hidden], #usersNavigation[hidden], .account-form[hidden] { display:none; }
.account-controls { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px; padding:10px 2px 0; font-size:14px; font-weight:700; }
.account-controls span { min-width:0; overflow-wrap:anywhere; }
.account-controls .outline-btn { padding:3px 7px; font-size:11px; }
.admin-edit-link { display:inline-block; text-decoration:none; }
.access-page { min-height:100vh; display:grid; place-items:center; padding:20px; }
.access-card { width:min(100%, 380px); padding:26px; border:1px solid #29476b; border-radius:12px; background:#10243d; }
.access-card > img { display:block; width:110px; margin:0 auto 16px; }
.access-card > h1 { margin:0 0 18px; text-align:center; }
.account-form { display:grid; gap:12px; }
.account-form label { display:grid; gap:5px; }
.account-form .remember-access { display:flex; align-items:center; gap:8px; }
.remember-access input { width:16px; height:16px; margin:0; accent-color:#1672ff; }
.account-form p, #accessMessage, #usersMessage { margin:0; }
.account-form p:not(:empty), #accessMessage:not(:empty), #usersMessage:not(:empty) { margin-bottom:8px; }
.user-password-field { display:grid; gap:5px; }
.user-password-input { position:relative; }
.user-password-input input { width:100%; padding-right:46px; }
.user-password-input input::-ms-reveal { display:none; }
.password-visibility { position:absolute; inset:3px 3px 3px auto; width:38px; display:grid; place-items:center; border:0; border-radius:6px; color:var(--text); background:transparent; cursor:pointer; }
.password-visibility:hover { background:var(--panel2); }
.password-visibility:focus-visible { outline:2px solid #72aaff; outline-offset:-2px; }
.password-eye-icon { position:relative; width:16px; height:16px; border:1.5px solid currentColor; border-radius:75% 15%; transform:rotate(45deg); }
.password-eye-icon::before { content:""; position:absolute; inset:4px; border-radius:50%; background:currentColor; }
.password-visibility[aria-pressed="true"] .password-eye-icon::after { content:""; position:absolute; top:6px; left:-3px; width:20px; border-top:1.5px solid currentColor; }
:root {
  --bg: #071326; --panel: #0d1d35; --panel2: #102541; --line: #233b5d;
  --text: #f4f7ff; --muted: #9db0cc; --blue: #1265ed; --green: #18b64c; --sidebar-width:220px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, Arial, sans-serif; }
.sync-status { position:fixed; right:16px; bottom:16px; z-index:30; max-width:min(420px,calc(100vw - 32px)); padding:10px 14px; border:1px solid #31537c; border-radius:9px; background:#102541; color:#dceaff; box-shadow:0 7px 20px #0008; font-size:12px; font-weight:600; }
.sync-status[data-state="error"] { border-color:#a84450; background:#3b202a; color:#ffd9df; }
.sync-status[data-state="waiting"] { border-color:#9b7530; background:#352b1b; color:#ffe4a8; }
.sidebar { width:var(--sidebar-width); position:fixed; inset:0 auto 0 0; background:linear-gradient(180deg,#08172d,#0b2342); border-right:1px solid #1e3b61; padding:24px 12px; display:flex; flex-direction:column; z-index:5; }
.brand { text-align:center; padding: 8px 0 30px; border-bottom:1px solid #1c48c0; }
.brand-logo { display:block; width:100%; height:170px; margin: 0 auto; object-fit:cover; object-position:center; }
nav { display:grid; gap:10px; margin-top:28px; }
nav a { display:flex; align-items:center; gap:12px; color:#ffffff; text-decoration:none; padding:14px 12px; border-radius:9px; font-size:13px; font-weight:600; }
nav a span { width:40px; text-align:center; font-size:24px; }
nav a span img { display:block; width:40px; height:40px; margin:0 auto; object-fit:contain; }
.users-nav-icon { display:block; position:relative; width:24px; height:24px; margin:auto; color:#fff; }
.users-nav-icon::before,.users-nav-icon::after { content:""; position:absolute; left:50%; transform:translateX(-50%); border:2px solid currentColor; }
.users-nav-icon::before { top:1px; width:9px; height:9px; border-radius:50%; }
.users-nav-icon::after { bottom:1px; width:19px; height:10px; border-radius:9px 9px 3px 3px; }
nav a.active, nav a:hover { background:#105ee2; color:white; }
.manifest-alert-button { display:flex; align-items:center; gap:10px; width:100%; margin-top:10px; padding:10px 12px; border:1px solid #243b56; border-radius:9px; background:#0c1d33; color:#92a6c0; font:inherit; font-size:13px; font-weight:700; cursor:pointer; }
.manifest-alert-button:not(.has-pending):hover { color:#dceaff; border-color:#405c7e; }
.manifest-alert-button > span:first-child { display:grid; place-items:center; flex:0 0 28px; height:28px; border:1px solid currentColor; border-radius:50%; font-size:18px; }
.manifest-alert-button.has-pending { border-color:#ff6473; background:#a52635; color:#fff; box-shadow:0 0 9px #ed43566b; animation:manifest-alert-pulse 1.6s ease-in-out infinite alternate; }
#manifestAlertCount { margin-left:auto; }
@keyframes manifest-alert-pulse { to { background:#d9283b; box-shadow:0 0 18px #ff4b5daa; } }
@media (prefers-reduced-motion:reduce) { .manifest-alert-button.has-pending { animation:none; } }
@media (max-width:900px) { .manifest-alert-button { justify-content:center; padding:8px 0; } .manifest-alert-button > span:nth-child(2),#manifestAlertCount { display:none; } }
.fleet-toggle { display:flex; align-items:center; justify-content:space-between; gap:8px; width:100%; margin-top:auto; padding:10px 12px; border:1px solid #294365; border-radius:9px; background:#102541; color:#fff; font:inherit; font-size:13px; font-weight:700; text-align:left; cursor:pointer; }
.fleet-toggle:hover,.fleet-toggle[aria-expanded="true"] { background:#105ee2; }
.fleet-toggle-content { display:flex; align-items:center; gap:9px; min-width:0; }
.fleet-toggle-icon { width:30px; height:30px; object-fit:contain; }
.main { margin-left:var(--sidebar-width); min-height:100vh; }
.topbar { min-height:104px; padding:12px 30px; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:16px; border-bottom:1px solid #1d3554; background:#09182c; }
h1 { margin:0; font-size:30px; letter-spacing:-1px; }
.topbar-logo { display:block; width:auto; height:70px; max-width:100%; object-fit:contain; object-position:left center; }
.topbar p,.section-heading p { margin:0px 0 0; color:var(--muted); font-size:13px; }
.topbar-right { width:40px; height:40px; }
.dashboard-date { display:flex; flex-wrap:wrap; justify-content:flex-end; align-items:center; gap:12px; }
.weekday-navigation { position:relative; display:flex; align-items:center; gap:16px; width:360px; max-width:100%; }
.date-navigation-button { flex:0 0 auto; padding:0; border:0; background:transparent; line-height:0; cursor:pointer; }
.date-navigation-button img { display:block; width:40px; height:40px; object-fit:contain; }
.date-navigation-button:hover { opacity:.8; }
.dashboard-weekday { flex:1; color:#f81717; font-size:30px; font-weight:800; text-align:center; white-space:nowrap; }
.dashboard-date-picker { position:absolute; top:100%; left:50%; transform:translateX(-50%); width:160px; max-width:100%; height:28px; padding:4px 8px; color-scheme:dark; }
.dashboard-add-button { flex:0 0 auto; padding:9px 12px; white-space:nowrap; }
.content-layout { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; padding:22px; align-items:start; }
.trip-list-panel { min-width:0; max-height:calc(100vh - 150px); overflow:auto; background:linear-gradient(180deg,#10233e,#0b1a30); border:1px solid #294365; border-radius:13px; box-shadow:0 7px 20px #0005; }
.trip-list-heading,.schedule-list-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:14px; border-bottom:1px solid #203653; }
.trip-list-heading h2,.schedule-list-heading h2 { margin:0; font-size:16px; }
.schedule-list-heading p { margin:5px 0 0; color:var(--muted); font-size:12px; }
.trip-list-heading p { margin:5px 0 0; color:var(--muted); font-size:12px; }
.trip-list-table { width:100%; min-width:610px; table-layout:fixed; }
.trip-list-table th,.trip-list-table td { padding:8px 6px; white-space:normal; overflow-wrap:anywhere; font-size:11px; }
.trip-list-table th:nth-child(1) { width:11%; }
.trip-list-table th:nth-child(2) { width:19%; }
.trip-list-table th:nth-child(3) { width:22%; }
.trip-list-table th:nth-child(4) { width:22%; }
.trip-list-table th:nth-child(5) { width:10%; }
.trip-list-table th:nth-child(6) { width:16%; }
.trip-origin,.trip-destination { font-weight:700; }
.trip-origin-link { padding:0; border:0; background:transparent; color:inherit; font:inherit; font-weight:inherit; text-align:left; cursor:pointer; }
.trip-origin-link:hover { text-decoration:underline; filter:brightness(1.2); }
.trip-origin-link:focus-visible { outline:2px solid currentColor; outline-offset:2px; border-radius:2px; }
.trip-destination { color:#ce1818; }
.trip-observation { color:#ffd166; font-weight:700; white-space:nowrap !important; }
.trip-action { text-align:center; }
.trip-unloaded { padding:6px 8px; border:0; border-radius:6px; background:#087b66; color:#fff; font-size:10px; font-weight:700; white-space:nowrap; cursor:pointer; }
.trip-unloaded:hover { background:#0b967b; }
.loading-area { min-width:0; }
.dashboard-left-column { display:grid; align-content:start; gap:16px; min-width:0; }
.stopped-vehicles-panel { min-width:0; background:linear-gradient(180deg,#10233e,#0b1a30); border:1px solid #294365; border-radius:13px; box-shadow:0 7px 20px #0005; overflow:hidden; }
.stopped-vehicles-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:14px; border-bottom:1px solid #203653; }
.stopped-vehicles-heading-alert { background:#a52635; border-bottom-color:#c34955; }
.stopped-vehicles-heading h2 { margin:0; font-size:16px; }
.stopped-vehicles-table { width:100%; table-layout:fixed; min-width:520px; }
.stopped-vehicles-table th,.stopped-vehicles-table td { padding:8px 6px; font-size:11px; }
.stopped-vehicles-table th:nth-child(1) { width:18%; }
.stopped-vehicles-table th:nth-child(2) { width:27%; }
.stopped-vehicles-table th:nth-child(3) { width:20%; }
.stopped-vehicles-table th:nth-child(4) { width:35%; }
.stopped-vehicles-table .workshop-entry-date { white-space:nowrap; }
.stopped-vehicle-reason-cell { display:flex; align-items:center; gap:8px; min-width:0; }
.stopped-vehicle-reason-text { min-width:0; flex:1; overflow-wrap:anywhere; white-space:normal; }
.stopped-vehicle-reason-empty { color:var(--muted); font-style:italic; }
.stopped-vehicle-review .stopped-vehicle-reason-text { color:#ffd584; font-weight:700; }
.edit-stopped-reason { display:inline-grid; flex:0 0 28px; place-items:center; width:28px; height:28px; padding:0; border:1px solid #31537c; border-radius:6px; background:transparent; color:#dceaff; font-size:14px; cursor:pointer; }
.edit-stopped-reason:hover { background:#105ee2; }
.vehicle-action-button { padding:0; border:0; background:transparent; color:inherit; font:inherit; font-weight:700; letter-spacing:.3px; text-align:left; cursor:pointer; }
.vehicle-action-button:hover { color:#77aaff; text-decoration:underline; }
.vehicle-action-menu { position:fixed; z-index:40; display:grid; min-width:130px; padding:5px; border:1px solid #345276; border-radius:8px; background:#09182c; box-shadow:0 10px 24px #000b; }
.vehicle-action-menu[hidden] { display:none; }
.vehicle-action-menu button { width:100%; padding:9px 10px; border:0; border-radius:5px; background:transparent; color:#e4edfa; font:inherit; font-size:12px; text-align:left; cursor:pointer; }
.vehicle-action-menu button:hover { background:#15365e; }
.schedule-page-content { padding:22px; }
.topbar.settings-topbar { display:block; min-height:0; padding:22px; }
.settings-topbar-content { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; max-width:1240px; margin:auto; }
.settings-page-content { max-width:1284px; margin-inline:auto; padding:22px; }
.panel-settings-form { display:grid; grid-template-columns:minmax(0,1fr) minmax(245px,320px); align-items:start; gap:18px; }
.settings-sidebar { display:grid; gap:14px; min-width:0; }
.settings-section { min-width:0; padding:16px; border:1px solid var(--line); border-radius:12px; background:var(--panel); box-shadow:0 3px 12px #20365314; }
.settings-section h2 { margin:0 0 7px; font-size:16px; }
.database-setup-note { margin:0; color:var(--muted); font-size:12px; line-height:1.6; }
.settings-client-table { margin-top:12px; overflow:hidden; border:1px solid var(--line); border-radius:8px; }
.settings-client-table table { min-width:0; table-layout:fixed; }
.settings-client-table th,.settings-client-table td { padding:5px 10px; border-color:var(--line); white-space:normal; overflow-wrap:anywhere; vertical-align:middle; }
.settings-client-table th { background:var(--panel2); color:var(--text); }
.settings-client-table tr:nth-child(even) td { background:color-mix(in srgb,var(--panel2) 58%,var(--panel)); }
.settings-client-table :is(th,td):nth-child(2) { width:16%; text-align:center; }
.settings-section input[type="color"] { width:38px; max-width:100%; height:26px; padding:3px; vertical-align:middle; cursor:pointer; }
.settings-sidebar label { margin:9px 0 6px; }
.settings-sidebar :is(input,select) { padding:8px 10px; }
@media (max-width:820px) { .panel-settings-form { grid-template-columns:minmax(0,1fr); } }
@media (max-width:620px) { .topbar.settings-topbar { padding:16px 12px; } .settings-section { padding:12px; } .settings-client-table th,.settings-client-table td { padding-inline:5px; } }
.stopped-overdue-dot { display:inline-block; width:8px; height:8px; margin-right:6px; border-radius:50%; background:#f04444; box-shadow:0 0 5px #f0444480; }
.database-setup-dialog { width:min(620px,calc(100% - 30px)); padding:0; border:1px solid #345276; border-radius:13px; background:#0d1d35; color:var(--text); box-shadow:0 20px 70px #000b; }
.database-setup-dialog::backdrop { background:#020812cc; }
.database-setup-form { display:grid; gap:18px; padding:22px; border:0; box-shadow:none; }
.database-setup-form .dialog-head { margin:0; }
.database-setup-form h2 { margin:0 0 6px; font-size:19px; }
.database-setup-form .dialog-head p { margin:0; color:var(--muted); font-size:12px; line-height:1.6; }
.database-setup-form label { display:grid; gap:8px; color:#cbd8e9; font-size:12px; font-weight:600; }
.database-setup-form input[type="file"] { width:100%; padding:10px; }
.database-setup-form .dialog-actions { margin:0; padding:0; border:0; }
.database-setup-form button:disabled { opacity:.5; cursor:not-allowed; }
.schedule-page-content .section-heading { margin-bottom:14px; }
.schedule-page-content .section-heading p { margin-top:5px; }
.schedule-page-actions { display:flex; align-items:center; gap:10px; }
.schedule-back-button { flex:0 0 auto; white-space:nowrap; }
.schedule-form { padding:16px; }
.schedule-dialog { width:min(1180px,calc(100% - 30px)); }
.schedule-dialog .schedule-form { padding:24px; border:0; background:transparent; box-shadow:none; }
.schedule-dialog .dialog-head { margin-bottom:18px; }
.schedule-fields { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.08fr) minmax(0,.98fr) minmax(0,.9fr) minmax(0,1.1fr); align-items:start; gap:16px; }
.schedule-fields label { margin:0; }
.schedule-location-field { position:relative; min-width:0; }
.schedule-location-control { display:flex; gap:4px; margin-top:7px; }
.schedule-location-control input { min-width:0; }
.schedule-location-control button { flex:0 0 34px; padding:0; }
#scheduleLocationOptions p { margin:4px; padding:5px; color:var(--muted); font-size:12px; }
.client-page-content { max-width:1284px; margin-inline:auto; padding:clamp(12px,2vw,22px); }
.client-list-card { border:1px solid var(--line); border-radius:12px; background:var(--panel); }
.client-list-card table { min-width:550px; table-layout:fixed; }
.client-list-card :is(th,td) { padding:8px 12px; border-color:var(--line); text-align:left; white-space:normal; overflow-wrap:anywhere; }
.client-list-card th { background:var(--panel2); color:var(--text); }
.client-list-card th:nth-child(2) { width:23%; }
.client-list-card :is(th,td):nth-child(3) { width:9%; text-align:center; }
.client-list-card th:nth-child(4) { width:22%; }
.client-list-card :is(th,td):last-child { width:112px; text-align:right; }
.client-list-card tr:nth-child(even) td { background:color-mix(in srgb,var(--panel2) 55%,var(--panel)); }
.client-row-actions { display:flex; align-items:center; justify-content:flex-end; gap:6px; white-space:nowrap; }
.client-row-actions .outline-btn { padding:5px 8px; font-size:12px; }
.client-delete { flex:0 0 25px; width:25px; height:25px; padding:0; border:1px solid #a94b57; border-radius:5px; background:transparent; color:#ef969e; font-size:16px; cursor:pointer; }
.client-delete:not(:disabled):hover { background:#a52635; color:#fff; }
.client-delete-control { display:inline-flex; }
.client-delete-control:has(button:disabled) { cursor:not-allowed; }
.client-delete:disabled { opacity:.45; pointer-events:none; }
[data-theme="light"] .client-delete:not(:hover) { color:#a52635; }
.schedule-fields > label,.schedule-fields > .schedule-product-field,.schedule-fields > .schedule-vehicle-field { min-width:0; }
.schedule-product-field { position:relative; min-width:0; }
.schedule-product-label { display:block; margin-bottom:7px; color:#cbd8e9; font-size:12px; font-weight:600; }
.schedule-product-picker { position:relative; }
.schedule-product-trigger { display:flex; align-items:center; justify-content:space-between; gap:10px; width:100%; min-width:0; height:42px; padding:0 12px; border:1px solid #345276; border-radius:7px; background:#071629; color:#fff; font:inherit; font-size:13px; text-align:left; cursor:pointer; }
.schedule-product-trigger:hover,.schedule-product-trigger[aria-expanded="true"] { border-color:#4b78aa; background:#0a1c32; }
.schedule-product-trigger:focus-visible { outline:2px solid #4f91ff; outline-offset:2px; }
.schedule-product-trigger > span:first-child { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.schedule-product-chevron { flex:0 0 auto; color:#9db0cc; font-size:11px; }
.schedule-product-menu { position:absolute; top:calc(100% + 5px); left:0; right:0; z-index:12; display:grid; gap:2px; max-height:250px; overflow-y:auto; padding:5px; border:1px solid #345276; border-radius:9px; background:#09182c; box-shadow:0 12px 28px #000b; }
.schedule-product-menu-positioned { position:fixed; right:auto; z-index:20; }
.schedule-product-menu[hidden] { display:none; }
.schedule-product-options { display:grid; gap:2px; }
.schedule-product-option-row { display:flex; align-items:center; gap:4px; }
.schedule-product-option { flex:1; min-width:0; width:100%; min-height:34px; padding:7px 10px; border:0; border-radius:5px; background:transparent; color:#e4edfa; font:inherit; font-size:12px; text-align:left; cursor:pointer; }
.schedule-product-option:hover,.schedule-product-option[aria-checked="true"] { background:#15365e; color:#fff; }
.schedule-product-delete { display:grid; flex:0 0 30px; place-items:center; width:30px; height:30px; padding:0; border:0; border-radius:5px; background:transparent; color:#aabbd2; font:inherit; font-size:17px; line-height:1; cursor:pointer; }
.schedule-product-delete:hover { background:#542b3a; color:#ffb6c1; }
.schedule-product-add { display:flex; align-items:center; gap:9px; width:100%; min-height:36px; margin:0 0 2px; padding:6px 10px; border:0; border-bottom:1px solid #294365; border-radius:5px 5px 0 0; background:transparent; color:#b8d3ff; font:inherit; font-size:12px; font-weight:600; text-align:left; cursor:pointer; }
.schedule-product-add:hover { background:#132b4a; color:#fff; }
.schedule-product-add-icon { display:inline-grid; place-items:center; width:20px; height:20px; border:1px solid #4774a7; border-radius:50%; color:#a9cbff; font-size:15px; line-height:1; }
.schedule-vehicle-field { position:relative; min-width:0; }
.schedule-vehicle-field label { margin:0; }
.schedule-vehicle-results { position:absolute; top:calc(100% + 4px); left:0; right:0; z-index:6; display:grid; gap:4px; max-height:220px; overflow-y:auto; padding:6px; border:1px solid #345276; border-radius:8px; background:#0b1a30; box-shadow:0 10px 24px #0008; }
.schedule-vehicle-results[hidden],.schedule-vehicle-selection[hidden] { display:none; }
.schedule-vehicle-option { width:100%; padding:8px 9px; border:0; border-radius:6px; background:transparent; color:var(--text); font:inherit; font-size:11px; text-align:left; cursor:pointer; }
.schedule-vehicle-option:hover { background:#133b6e; }
.schedule-vehicle-empty { margin:0; padding:8px; color:var(--muted); font-size:11px; }
.schedule-vehicle-selection { display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); align-content:start; gap:6px; min-height:56px; max-height:190px; overflow-y:auto; margin-top:8px; padding:4px; border:1px solid #233b5d; border-radius:6px; background:#0b1a30; }
.schedule-vehicle-selection-label { grid-column:1/-1; color:var(--muted); font-size:10px; }
.schedule-vehicle-selection-empty { color:var(--muted); font-size:10px; }
.schedule-vehicle-chip { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; gap:5px; max-width:100%; padding:7px; border:1px solid #345276; border-radius:6px; background:#102541; color:#dceaff; font-size:10px; overflow-wrap:anywhere; }
.schedule-vehicle-chip label { grid-column:1/-1; display:grid; gap:4px; margin:0; color:#ffd166; font-size:10px; }
.schedule-vehicle-chip input { width:100%; min-width:0; padding:5px 6px; font-size:11px; }
.schedule-vehicle-chip small { color:var(--muted); }
.schedule-vehicle-chip button { flex:0 0 auto; padding:0; border:0; background:transparent; color:#f3a5a5; font-size:14px; line-height:1; cursor:pointer; }
.schedule-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:20px; padding-top:16px; border-top:1px solid #203653; }
.schedule-list-card { margin-top:18px; }
.schedule-list { display:grid; gap:10px; padding:14px; }
.schedule-list-empty { margin:0; padding:12px; color:#8498b5; font-size:12px; }
.schedule-date-filter { display:flex; align-items:center; gap:8px; }
#scheduleHistoryDate { width:145px; padding:6px 8px; color-scheme:dark; }
.schedule-list-item { overflow:hidden; border:1px solid #203653; border-radius:9px; background:#0b1a30; }
.schedule-list-row { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:8px 14px; background:color-mix(in srgb,var(--schedule-color) var(--schedule-color-strength,55%),#0b1a30); border-left:4px solid var(--schedule-color); }
.schedule-list-details { border:0; padding:8px 0; background:transparent; text-align:left; font:inherit; color:inherit; cursor:pointer; }
.schedule-list-details[aria-expanded="true"] .schedule-expand-icon { display:inline-block; transform:rotate(90deg); }
.schedule-list-card .schedule-trip-details table { min-width:740px; table-layout:fixed; }
.schedule-trip-details th,.schedule-trip-details td { padding:7px 10px; text-align:left; white-space:normal; overflow-wrap:anywhere; vertical-align:middle; line-height:1.3; }
.schedule-trip-details th:nth-child(1) { width:9%; }
.schedule-trip-details th:nth-child(2) { width:23%; }
.schedule-trip-details th:nth-child(3) { width:12%; }
.schedule-trip-details th:nth-child(4) { width:13%; }
.schedule-trip-details th:nth-child(5) { width:17%; }
.schedule-trip-details th:nth-child(6) { width:16%; }
.schedule-trip-details th:nth-child(7) { width:10%; }
.schedule-trip-details [data-open-schedule-vehicle] { cursor:pointer; }
.schedule-trip-details [data-open-schedule-vehicle]:is(:hover,:focus-within) { outline:1px solid var(--muted); outline-offset:-1px; }
.schedule-trip-details [data-open-schedule-vehicle] .checks { pointer-events:none; }
.schedule-trip-details .check-item input { appearance:none; display:grid; place-items:center; margin:0; padding:0; border:1px solid #94abc6; border-radius:3px; background:#0b1a30; cursor:default; }
.schedule-trip-details .check-item input:checked { border-color:#1672ff; background:#1672ff; }
.schedule-trip-details .check-item input:checked::after { content:"✓"; color:#fff; font-size:12px; line-height:1; }
.schedule-group-actions { display:grid; gap:6px; padding:10px 14px; border-top:1px solid #203653; font-size:12px; }
.schedule-group-actions > div { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.schedule-trip-details p { margin:0; padding:12px 14px; font-size:12px; color:var(--muted); }
.trip-observation-label { font-weight:700; }
.trip-observation-label.finished { color:#59e390; }
.trip-observation-label.open { color:#ffd369; }
.trip-observation-label.moved { color:#b3becb; }
@media (max-width:620px) { .schedule-list-row { align-items:stretch; flex-direction:column; gap:8px; } }
.schedule-list-details { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); align-items:center; gap:14px; min-width:0; flex:1; font-size:12px; }
.schedule-list-details strong { overflow-wrap:anywhere; }
.schedule-list-details span strong { color:var(--text); }
.schedule-list-details span { color:#eef5ff; overflow-wrap:anywhere; }
.schedule-row-actions { display:flex; align-items:center; gap:7px; flex:0 0 auto; }
.schedule-row-actions button { padding:6px 9px; }
.vehicle-page-content { padding:22px; }
.section-heading { display:flex; justify-content:space-between; align-items:center; margin:0 0 16px; }
.section-heading h2 { font-size:18px; margin:0; }
.vehicle-list-actions { display:flex; align-items:center; gap:10px; }
.vehicle-list-actions input { width:260px; max-width:32vw; margin:0; }
.outline-btn,.primary-btn { border:0; border-radius:8px; background:#105ee2; color:white; font-weight:700; padding:11px 15px; cursor:pointer; }
.outline-btn { background:transparent; border:1px solid #31537c; color:#dceaff; }
.location-grid { display:grid; grid-template-columns:minmax(0,1fr); gap:16px; }
.location-card { background:linear-gradient(180deg,#10233e,#0b1a30); border:1px solid #294365; border-radius:13px; overflow:hidden; box-shadow:0 7px 20px #0005; min-width:0; }
.location-card:not(.vehicle-list-card) table { width:100%; min-width:0; table-layout:fixed; }
.location-card:not(.vehicle-list-card) th,.location-card:not(.vehicle-list-card) td { padding:8px 5px; white-space:normal; overflow-wrap:anywhere; }
.location-card:not(.vehicle-list-card) th:nth-child(1) { width:15%; }
.location-card:not(.vehicle-list-card) th:nth-child(2) { width:22%; }
.location-card:not(.vehicle-list-card) th:nth-child(3) { width:17%; text-align:center; }
.location-card:not(.vehicle-list-card) th:nth-child(4) { width:20%; text-align:right; }
.location-card:not(.vehicle-list-card) th:nth-child(5) { width:26%; }
.trip-loading-hour { text-align:center; }
.location-card:not(.vehicle-list-card) .table-wrap { overflow-x:hidden; }
.location-card:not(.vehicle-list-card) { --status-check-width:35px; --status-control-gap:12px; --status-remove-width:22px; }
.status-heading { display:block; width:calc(3 * var(--status-check-width) + 2 * var(--status-control-gap)); margin:0 calc(var(--status-remove-width) + var(--status-control-gap)) 0 auto; text-align:center; white-space:nowrap; }
.location-card:not(.vehicle-list-card) .checks { gap:var(--status-control-gap); justify-content:flex-end; flex-wrap:wrap; }
.location-card:not(.vehicle-list-card) .check-item { width:var(--status-check-width); justify-content:center; margin:0; gap:2px; font-size:11px; white-space:nowrap; }
.location-card:not(.vehicle-list-card) .vehicle-status { display:grid; gap:6px; }
.trip-unload-forecast { display:block; min-width:0; width:100%; max-width:130px; margin-left:auto; padding:5px 6px; color-scheme:dark; font-size:11px; text-align:center; }
.vehicle-list-card table { min-width:780px; }
.vehicle-inventory-count { padding:9px 14px; color:#8498b5; font-size:11px; text-align:right; }
.location-head { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; gap:8px 18px; width:100%; padding:7px 16px; background:var(--accent); min-height:0; }
.location-heading-group[role="button"] { cursor:pointer; transition:filter .15s ease; }
.location-heading-group[role="button"]:hover { filter:brightness(1.08); }
.location-heading-group[role="button"]:focus-visible { outline:2px solid #fff; outline-offset:2px; }
.location-head-actions { grid-column:3; justify-self:end; display:flex; align-items:center; gap:8px; }
.location-head-actions .hide-location-block { background:#07132666; border-color:#ff9aa2; color:#fff; }
.location-head-actions .hide-location-block:not(:disabled):hover { background:#a52635; }
.hide-location-block-control { position:relative; display:inline-flex; }
.hide-location-block-control::after { content:attr(data-tooltip); display:none; position:absolute; top:calc(100% + 5px); right:0; z-index:2; width:max-content; padding:5px 8px; border:1px solid #345276; border-radius:5px; background:#0b1a30; color:#f4f7ff; font-size:11px; font-weight:600; pointer-events:none; }
.hide-location-block-control:hover::after,.hide-location-block-control:focus-within::after { display:block; }
.hide-location-block-control:has(button:disabled) { cursor:not-allowed; }
.location-head-actions .hide-location-block:disabled { opacity:.45; pointer-events:none; }
.location-heading-group { display:grid; grid-column:1; gap:5px; min-width:0; }
.location-head h3 { margin:0; font-size:18px; }
.location-schedule-summary { display:flex; flex-wrap:wrap; gap:4px 14px; margin:0; padding:0; border:0; background:transparent; color:#e4edfa; font-family:inherit; font-size:11px; font-weight:500; line-height:1.35; text-align:left; }
button.location-schedule-summary { cursor:pointer; }
button.location-schedule-summary:hover { text-decoration:underline; }
button.location-schedule-summary:focus-visible { outline:2px solid #fff; outline-offset:2px; }
.location-schedule-summary span { overflow-wrap:anywhere; }
.schedule-entry-highlight { outline:2px solid #ffd166; outline-offset:4px; border-radius:4px; background:#ffd16622; }
.location-product-icons { display:flex; grid-column:2; align-items:center; justify-self:center; justify-content:center; flex-wrap:wrap; gap:6px; max-width:180px; min-width:0; margin:0; }
.location-product-icons img { display:block; flex:0 0 auto; width:40px; height:32px; object-fit:contain; }
.location-total { grid-column:3; justify-self:end; font-size:12px; font-weight:700; background:#07132666; padding:8px 10px; border-radius:20px; white-space:nowrap; }
tr.vehicle-complete { position:relative; }
tr.vehicle-complete td:nth-child(1),tr.vehicle-complete td:nth-child(2) { opacity:.6; }
tr.vehicle-complete::after { content:""; position:absolute; top:50%; left:0; right:0; z-index:1; border-top:1px solid #a9b9cf55; pointer-events:none; }
.location-card:not(.vehicle-list-card) tbody tr:not(.vehicle-complete),
.stopped-vehicles-table tbody tr:not(.stopped-vehicle-review) { background:#173453; }
.location-card:not(.vehicle-list-card) tbody tr:not(.vehicle-complete) td:first-child { border-left:3px solid #f4b740; }
.table-wrap { overflow-x:auto; }
table { width:100%; border-collapse:collapse; min-width:500px; }
th { background:#142a48; color:#c5d5eb; font-size:12px; font-weight:600; padding:12px 9px; text-align:left; white-space:nowrap; }
.vehicle-sort { display:inline-flex; align-items:center; gap:5px; padding:0; border:0; background:transparent; color:inherit; font:inherit; font-weight:inherit; cursor:pointer; }
.vehicle-sort:hover { color:#fff; }
.sort-arrow { min-width:10px; color:#8ca9ce; text-align:center; }
td { padding:12px 9px; border-top:1px solid #203653; font-size:13px; white-space:nowrap; }
tbody tr:hover { background:#ffffff08; }
.plate { font-weight:700; letter-spacing:.4px; }
.checks { display:flex; gap:8px; align-items:center; }
.check-item { display:flex; align-items:center; gap:3px; color:#c4d2e5; font-size:12px; }
.check-item input { accent-color:#1672ff; width:16px; height:16px; cursor:pointer; }
.schedule-trip-details :is(th,td):is(:nth-child(3),:nth-child(4),:nth-child(7)) { text-align:center; }
.schedule-trip-details .checks { justify-content:center; gap:4px; }
.card-footer { display:flex; justify-content:flex-end; padding:4px 12px; border-top:1px solid var(--line); }
.add-vehicle { background:transparent; border:1px solid var(--line); color:var(--muted); border-radius:6px; padding:4px 8px; font-size:11px; font-weight:600; line-height:1.3; cursor:pointer; }
.add-vehicle:not(:disabled):is(:hover,:focus-visible) { background:var(--panel2); color:var(--text); }
.primary-btn:hover { background:#287aff; }
.remove-from-block { flex:0 0 22px; width:22px; height:22px; padding:0; border:1px solid #8e3b46; border-radius:5px; background:transparent; color:#f3a5a5; font-size:15px; line-height:1; cursor:pointer; }
.remove-from-block:hover { background:#8d2634; color:#fff; }
.schedule-row-actions .remove-from-block { display:inline-flex; align-items:center; justify-content:center; padding:0; }
.edit-vehicle { background:transparent; border:1px solid #31537c; border-radius:6px; color:#dceaff; padding:6px 10px; font-size:11px; font-weight:700; cursor:pointer; }
.edit-vehicle:hover { background:#105ee2; }
.primary-btn:disabled { opacity:.55; cursor:not-allowed; }
.transfer-confirmation { display:flex; align-items:center; gap:9px; }
.transfer-confirmation input { width:16px; height:16px; margin:0; padding:0; accent-color:#1672ff; flex:0 0 auto; }
.fleet-sidebar { position:fixed; left:calc(var(--sidebar-width) + 8px); bottom:16px; width:min(360px,calc(100vw - var(--sidebar-width) - 24px)); max-height:calc(100vh - 32px); overflow-x:hidden; overflow-y:auto; background:#0b1a30; border:1px solid #294365; border-radius:12px; box-shadow:0 12px 40px #000b; z-index:8; }
.fleet-sidebar[hidden] { display:none; }
.fleet-title { display:flex; justify-content:space-between; align-items:center; padding:15px; background:#102541; font-size:15px; }
.fleet-close { border:0; background:transparent; color:#c9d7e9; font-size:24px; line-height:1; cursor:pointer; }
.title-icon { width:100px; height:100px; margin-right:5px; object-fit:contain; vertical-align:middle; }
.fleet-total { background:#145ee0; color:white; border-radius:20px; padding:4px 9px; font-size:11px; }
.fleet-group { border-top:1px solid #294365; }
.fleet-row { display:grid; grid-template-columns:9px 1fr; gap:9px; padding:8px 13px; border-top:1px solid #1b304c; font-size:12px; }
.fleet-row-link { width:100%; border:0; border-top:1px solid #1b304c; background:transparent; color:inherit; text-align:left; font-family:inherit; cursor:pointer; }
.fleet-row-link:hover,.fleet-row-link:focus-visible { background:#173453; }
.fleet-target-highlight { outline:2px solid #ffd166; outline-offset:-2px; }
.fleet-row .dot { width:8px; height:8px; margin-top:3px; border-radius:50%; background:#20c45b; }
.awaiting-load .fleet-row .dot { background:#f4bd44; }
.stopped .fleet-row .dot { background:#f04444; }
.unassigned .fleet-row .dot { background:#9aa4b2; }
.fleet-row strong { display:block; font-size:12px; }
.fleet-row small { color:#9db0cc; display:block; margin-top:3px; }
.fleet-empty { color:#8498b5; padding:12px; font-size:12px; }
.fleet-help { border-top:1px solid #294365; padding:12px; color:#879dbb; font-size:10px; line-height:1.5; }
dialog { width:min(480px,calc(100% - 30px)); max-height:calc(100vh - 32px); overflow-y:auto; border:1px solid #345276; border-radius:14px; padding:0; background:#0d1d35; color:var(--text); box-shadow:0 20px 80px #000b; }
dialog::backdrop { background:#000a; backdrop-filter:blur(4px); }
dialog form { padding:22px; }
#manifestAlertDialog { width:min(800px,calc(100% - 30px)); padding:16px; }
#manifestAlertDialog .dialog-head { margin-bottom:12px; }
#manifestAlertDialog th,#manifestAlertDialog td { padding:9px; }
#manifestAlertDialog th:last-child,#manifestAlertDialog td:last-child { text-align:center; }
#manifestAlertDialog input[type="checkbox"] { width:16px; height:16px; accent-color:#1672ff; cursor:pointer; }
.trip-time-dialog { position:fixed; inset:auto; margin:0; width:min(245px,calc(100% - 16px)); border-radius:9px; }
.trip-time-dialog::backdrop { background:transparent; backdrop-filter:none; }
.trip-time-dialog form { padding:12px; }
.trip-time-dialog input { color-scheme:dark; }
.trip-time-dialog .dialog-actions { margin-top:10px; }
#unloadTripTitle { margin:0 0 10px; font-size:13px; font-weight:700; }
.dialog-head { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:20px; }
.dialog-head h2 { margin:0; font-size:20px; }.dialog-head p { margin:5px 0 0; color:var(--muted); font-size:12px; }
#assignVehicleResults,#stoppedVehicleResults { position:static; max-height:160px; margin-top:4px; }
#workshopEntryDateField[hidden] { display:none; }
.assign-vehicle-context { margin:8px 0; color:var(--muted); font-size:12px; }
.assign-vehicle-context strong { color:var(--text); }
.assign-vehicle-no-results { margin:8px 0; color:var(--muted); font-size:12px; }
.close-btn { border:0; color:#c9d7e9; background:transparent; font-size:26px; cursor:pointer; }
label { display:grid; gap:7px; margin:13px 0; color:#cbd8e9; font-size:12px; font-weight:600; }
#vehicleForm label[hidden] { display:none; }
input,select { width:100%; background:#071629; border:1px solid #345276; border-radius:7px; padding:11px; color:white; font:inherit; font-size:13px; }
.form-row { display:grid; grid-template-columns:1fr 1.5fr; gap:12px; }
.vehicle-specs-row { grid-template-columns:1.5fr 1fr; }
.dialog-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:22px; }
.delete-vehicle-btn { margin-right:auto; padding:8px 10px; border:0; border-radius:7px; background:#8d2634; color:#fff; font-size:12px; cursor:pointer; }
.delete-vehicle-btn:hover { background:#ad3141; }
.cancel-btn { background:#263b57; color:#e4edfa; border:0; border-radius:8px; padding:11px 14px; cursor:pointer; }

:root[data-theme="light"] { --bg:#eef3f9; --panel:#fff; --panel2:#e6eef8; --line:#c1d0e1; --text:#172b43; --muted:#475f7a; color-scheme:light; }
[data-theme="light"] .topbar { background:var(--panel); border-color:var(--line); }
[data-theme="light"] .topbar-logo { background:#09182c; border-radius:6px; }
[data-theme="light"] :is(.location-card,.trip-list-panel,.stopped-vehicles-panel,dialog,.fleet-sidebar,.schedule-list-item,.schedule-product-menu,.schedule-vehicle-results,.schedule-vehicle-selection,.vehicle-action-menu) { background:var(--panel); border-color:var(--line); box-shadow:0 3px 12px #2036531a; }
[data-theme="light"] :is(th,.fleet-title,.schedule-vehicle-chip) { background:var(--panel2); color:var(--text); border-color:var(--line); }
[data-theme="light"] :is(td,.fleet-row,.fleet-group,.fleet-help,.card-footer,.trip-list-heading,.schedule-list-heading,.schedule-group-actions) { border-color:var(--line); }
[data-theme="light"] :is(label,.check-item,.fleet-close,.close-btn,.outline-btn,.edit-vehicle,.edit-stopped-reason,.vehicle-action-menu button,.fleet-row small,.fleet-help,.fleet-empty,.schedule-list-empty) { color:var(--muted); }
[data-theme="light"] :is(input,select) { background:#f7faff; color:var(--text); border-color:#9cb1ca; color-scheme:light; }
[data-theme="light"] :is(.trip-unload-forecast,.dashboard-date-picker,#scheduleHistoryDate,.trip-time-dialog input) { color-scheme:light; }
[data-theme="light"] :is(.fleet-row-link:hover,.fleet-row-link:focus-visible,.schedule-vehicle-option:hover,.vehicle-action-menu button:hover) { background:var(--panel2); color:var(--text); }
[data-theme="light"] .location-card:not(.vehicle-list-card) tbody tr:not(.vehicle-complete),
[data-theme="light"] .stopped-vehicles-table tbody tr:not(.stopped-vehicle-review) { background:#e9f1fb; }
[data-theme="light"] .schedule-list-row { background:color-mix(in srgb,var(--schedule-color) 20%,#fff); }
[data-theme="light"] .schedule-list-details span { color:var(--text); }
[data-theme="light"] :is(.stopped-vehicles-heading-alert,.location-head) { color:#fff; }
[data-theme="light"] .location-total { background:#dbe7f6; }
[data-theme="light"] :is(.location-head,.stopped-vehicles-heading-alert) .location-total { background:#07132666; }
[data-theme="light"] :is(.trip-observation,.stopped-vehicle-review .stopped-vehicle-reason-text,.trip-observation-label.open) { color:#845607; }
[data-theme="light"] .trip-observation-label.finished { color:#126239; }
[data-theme="light"] .trip-observation-label.moved { color:#526273; }
[data-theme="light"] .schedule-trip-details .check-item input:not(:checked) { background:#fff; }
.location-head.light-location-color,.location-head.light-location-color .location-schedule-summary { color:#071326; }
.location-head.light-location-color .location-total { background:#ffffff80; }
@media (max-width:1450px) { .content-layout { grid-template-columns:minmax(0,1fr); } .location-grid { grid-template-columns:1fr; } }
@media (max-width:1250px) { .content-layout { padding:15px; gap:12px; } .location-grid { gap:12px; } td { padding:10px 7px; } }
@media (max-width:1100px) { .topbar { padding:16px 20px; grid-template-columns:1fr auto; } .weekday-navigation { grid-row:2; grid-column:1 / -1; justify-self:center; margin-bottom:28px; } .topbar-logo { height:56px; } .dashboard-date { gap:10px; } .date-navigation-button img { width:32px; height:32px; } .dashboard-weekday { font-size:24px; } .dashboard-date-picker { width:150px; } }
@media (max-width:900px) { :root { --sidebar-width:70px; } .sidebar { padding:16px 8px; } .brand { padding:8px 0 24px; } .brand-logo { height:50px; object-fit:cover; } nav a:not(.active) { font-size:0; } nav a { justify-content:center; font-size:0; } nav a span { font-size:20px; } .fleet-toggle { flex-direction:column; justify-content:center; gap:4px; padding:8px 2px; } .fleet-toggle-content { justify-content:center; } .fleet-toggle-text { display:none; } .content-layout { grid-template-columns:1fr; } }
@media (max-width:900px) { .schedule-fields { grid-template-columns:1fr 1fr; } .schedule-fields > label:nth-child(4),.schedule-vehicle-field { grid-column:1/-1; } }
@media (max-width:900px) { .schedule-list-details { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:620px) { .schedule-page-content .section-heading { align-items:flex-start; flex-direction:column; gap:12px; } .schedule-page-actions { width:100%; flex-wrap:wrap; } }
@media (max-width:620px) { .location-grid { grid-template-columns:1fr; } .topbar { padding:16px; grid-template-columns:minmax(0,1fr); } h1 { font-size:23px; } .topbar-right { display:none; } .weekday-navigation { gap:8px; } .date-navigation-button img { width:26px; height:26px; } .dashboard-weekday { font-size:18px; } .dashboard-date-picker { width:130px; padding:4px 5px; font-size:11px; } .dashboard-add-button { padding:8px 11px; } .content-layout,.vehicle-page-content,.schedule-page-content,.settings-page-content { padding:12px; } .trip-list-panel { max-height:55vh; } .schedule-fields { grid-template-columns:1fr; } .schedule-fields > label:nth-child(4),.schedule-vehicle-field { grid-column:auto; } .schedule-list-item { align-items:stretch; flex-direction:column; } .schedule-list-details { grid-template-columns:1fr; gap:7px; } .schedule-row-actions { justify-content:flex-end; } .vehicle-page-content .section-heading { align-items:flex-start; flex-direction:column; gap:12px; } .vehicle-list-actions { width:100%; } .vehicle-list-actions input { flex:1; min-width:0; max-width:none; } .vehicle-list-actions .primary-btn { white-space:nowrap; padding:10px 12px; } }
