/* Shared tokens; local assets only. Shells are separate from page components. */
:root {
  --navy: #142438;
  --navy-light: #20334c;
  --blue: #2469e8;
  --blue-dark: #1855c3;
  --canvas: #f4f6fa;
  --panel: #fff;
  --ink: #202e43;
  --muted: #718095;
  --border: #e6ebf2;
  --radius: 12px;
  --sidebar-width: 236px;
  --shadow: 0 2px 5px rgb(27 45 73 / 3%);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-size: 14px;
  line-height: 1.5;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, summary { cursor: pointer; }
button { color: inherit; }
button:disabled, input:disabled, select:disabled { cursor: not-allowed; }
input, select { min-width: 0; width: 100%; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #83b0ff; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 27px; line-height: 1.25; font-weight: 700; letter-spacing: -.8px; }
h2 { font-size: 15px; font-weight: 650; line-height: 1.4; }
h3 { font-size: 14px; font-weight: 600; }
svg { flex-shrink: 0; }
[hidden] { display: none !important; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; background: white; color: var(--blue); padding: 12px 18px; z-index: 100; border-radius: 6px; }
.skip-link:focus { top: 12px; }
.muted { color: var(--muted); font-size: 12px; }
.centered { text-align: center; }
.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 1.8px; color: var(--muted); margin-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; background: var(--blue); color: white; border-radius: 10px; flex-shrink: 0; }
.brand-mark .icon { width: 25px; height: 25px; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.35; }
.brand-copy strong { font-size: 17px; font-weight: 650; letter-spacing: -.35px; }
.brand-copy small { font-size: 11px; color: #a7b7cc; margin-top: 3px; letter-spacing: .7px; }
.avatar { width: 35px; height: 35px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; color: #d3e1fa; background: #2b4261; font-size: 14px; font-weight: 650; }
.avatar-light { background: #eaf0fc; color: #4173c6; }
.icon-button { width: 40px; min-height: 40px; padding: 8px; display: inline-flex; justify-content: center; align-items: center; border: 0; background: transparent; border-radius: 8px; color: var(--muted); }
.icon-button:hover:not(:disabled) { background: #eaf0f8; color: var(--blue); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 40px; padding: 9px 15px; border: 1px solid transparent; border-radius: 7px; font-size: 12px; font-weight: 600; line-height: 1.4; }
.button .icon { width: 17px; height: 17px; }
.button-primary { color: #fff; background: var(--blue); }
.button-primary:hover:not(:disabled) { background: var(--blue-dark); }
.button-primary:disabled { background: #8aa9df; color: #fff; }
.button-secondary { background: white; border-color: var(--border); }
.button-secondary:hover:not(:disabled) { background: #f3f6fb; }
.button-secondary:disabled { color: var(--muted); background: #f7f9fc; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-size: 12px; font-weight: 600; min-height: 30px; }
.text-link:hover { text-decoration: underline; }
.text-link .icon { width: 15px; height: 15px; }
.icon-link { color: var(--muted); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; }
.icon-link:hover { background: #f0f5fe; color: var(--blue); }
.badge { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 5px; font-size: 10px; font-weight: 600; white-space: nowrap; }
.tone-blue { color: #3778d9; background: #edf4ff; }
.tone-purple { color: #8b69c9; background: #f3effb; }
.tone-green { color: #2d9373; background: #eaf8f1; }
.tone-orange { color: #be822d; background: #fff5e6; }
.tone-slate { color: #708399; background: #edf1f6; }
.icon-tile { width: 38px; height: 38px; border-radius: 10px; display: inline-grid; place-items: center; flex-shrink: 0; }
/* Management navigation */
.sidebar { width: var(--sidebar-width); position: fixed; inset: 0 auto 0 0; z-index: 40; background: var(--navy); color: #cad4e3; display: flex; flex-direction: column; padding: 27px 16px 17px; overflow-y: auto; }
.sidebar-brand { padding: 0 8px 32px; display: flex; align-items: center; }
.sidebar .brand { color: white; }
.sidebar-close { display: none; color: #cbd6e6; }
.nav-caption { color: #71869f; font-size: 9px; letter-spacing: 1.8px; margin: 6px 14px 14px; font-weight: 600; }
.main-nav { display: grid; gap: 7px; }
.nav-link { display: flex; align-items: center; gap: 13px; padding: 12px 14px; border-radius: 7px; font-size: 13px; min-height: 45px; }
.nav-link .icon { width: 19px; height: 19px; color: #91a5be; }
.nav-link:hover { background: var(--navy-light); color: white; }
.nav-link.active { background: var(--blue); color: white; box-shadow: 0 3px 8px rgb(0 0 0 / 8%); }
.nav-link.active .icon { color: white; }
.nav-active-dot { margin-left: auto; border-radius: 50%; width: 5px; height: 5px; background: #b8d2ff; }
.sidebar-bottom { margin-top: auto; padding-top: 40px; }
.workspace-label { display: flex; align-items: center; gap: 9px; padding: 12px; font-size: 11px; color: #8ca0b9; border-bottom: 1px solid #2a3a50; margin-bottom: 15px; overflow-wrap: anywhere; }
.workspace-label .icon { width: 16px; height: 16px; }
.sidebar-user { display: flex; gap: 10px; align-items: center; padding: 0 10px; }
.sidebar-user > div { min-width: 0; }
.sidebar-user strong { display: block; color: #edf2f9; font-size: 12px; overflow-wrap: anywhere; }
.sidebar-user small { display: block; font-size: 10px; color: #8ca0b9; margin-top: 3px; }
.sidebar-logout { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 9px 12px; width: 100%; border: 0; background: transparent; color: #a2b1c6; font-size: 12px; border-radius: 7px; }
.sidebar-logout:hover { background: var(--navy-light); color: white; }
.sidebar-logout .icon { width: 16px; height: 16px; }
.workspace { margin-left: var(--sidebar-width); min-width: 0; }
.topbar { height: 72px; background: #fff; border-bottom: 1px solid var(--border); padding: 0 28px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 14px; min-width: 0; }
.breadcrumb { font-size: 12px; color: var(--muted); white-space: nowrap; }
.breadcrumb > span { margin: 0 12px; color: #cad2df; }
.breadcrumb strong { color: #43536b; font-weight: 500; }
.topbar-divider { height: 28px; width: 1px; background: var(--border); margin: 0 3px; }
.user-menu { position: relative; }
.user-menu summary { list-style: none; display: flex; gap: 10px; align-items: center; border-radius: 7px; min-height: 44px; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary > .icon { color: #8b98aa; width: 16px; }
.user-menu-name { max-width: 220px; }
.user-menu-name strong, .user-menu-name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu-name strong { font-size: 12px; font-weight: 600; }
.user-menu-name small { color: var(--muted); font-size: 10px; margin-top: 2px; }
.user-dropdown { position: absolute; z-index: 50; right: 0; top: calc(100% + 12px); width: 240px; max-width: calc(100vw - 32px); background: white; border: 1px solid var(--border); border-radius: 10px; padding: 14px; box-shadow: 0 12px 32px rgb(20 36 56 / 12%); overflow-wrap: anywhere; }
.user-dropdown > strong, .user-dropdown > span { display: block; font-size: 12px; margin-bottom: 6px; }
.user-dropdown > span { color: var(--muted); margin-bottom: 12px; }
.user-dropdown a, .user-dropdown button { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: white; padding: 10px; font-size: 12px; text-align: left; border-radius: 6px; }
.user-dropdown a:hover, .user-dropdown button:hover { background: var(--canvas); }
.menu-toggle { display: none; }
/* Dashboard and shared panels */
.main-content { padding: 25px 28px 16px; min-height: calc(100dvh - 72px); }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 23px; }
.page-heading > div { min-width: 0; }
.page-heading h1 + p { color: var(--muted); font-size: 12px; margin-top: 7px; overflow-wrap: anywhere; }
.date-chip, .scope-chip { background: white; border: 1px solid var(--border); border-radius: 7px; min-height: 37px; display: inline-flex; gap: 8px; align-items: center; padding: 8px 12px; font-size: 11px; color: #63728a; }
.date-chip { white-space: nowrap; }
.date-chip .icon, .scope-chip .icon { width: 16px; height: 16px; }
.scope-chip { max-width: 40%; overflow-wrap: anywhere; }
.kpi-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.kpi-card { border: 1px solid var(--border); border-radius: var(--radius); background: white; padding: 15px 16px 14px; box-shadow: var(--shadow); }
.kpi-label { display: flex; align-items: center; justify-content: space-between; gap: 7px; color: #66758a; font-size: 12px; font-weight: 500; }
.kpi-label .icon-tile { width: 33px; height: 33px; border-radius: 8px; }
.kpi-label .icon { width: 18px; height: 18px; }
.kpi-value { display: block; font-size: 30px; font-weight: 650; line-height: 1; margin: 9px 0 12px; letter-spacing: -.7px; }
.kpi-card p { font-size: 10px; color: #8a96a8; }
.dashboard-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 20px; align-items: start; }
.dashboard-primary, .dashboard-secondary { display: grid; gap: 20px; min-width: 0; }
.dashboard-bottom { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; }
.panel { background: white; border: 1px solid var(--border); border-radius: var(--radius); min-width: 0; box-shadow: var(--shadow); }
.panel-heading { padding: 17px 19px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid #eef1f6; min-height: 61px; }
.panel-heading h2 { font-size: 13px; }
.panel-heading p { font-size: 10px; color: var(--muted); margin-top: 4px; }
.panel-footer { border-top: 1px solid #eef1f6; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 10px 18px; color: #8a96a8; font-size: 10px; min-height: 47px; }
.table-scroll { overflow-x: auto; border-radius: 0 0 var(--radius) var(--radius); }
.data-table { border-collapse: collapse; width: 100%; font-size: 11px; text-align: left; }
.data-table th { padding: 13px 12px; font-weight: 500; color: #728096; background: #fafbfd; border-bottom: 1px solid #edf0f5; white-space: nowrap; font-size: 10px; }
.data-table td { padding: 12px; border-bottom: 1px solid #f3f5f9; }
.data-table td[colspan] { padding: 0; }
.shipment-table { table-layout: fixed; }
.shipment-table th { padding: 12px 6px; font-size: 9px; white-space: normal; overflow-wrap: anywhere; }
.shipment-table th:first-child { padding-left: 14px; }
.empty-state { text-align: center; min-height: 265px; padding: 48px 20px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.empty-icon { display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid #e9eff8; border-radius: 17px; background: #f5f8fd; color: #91a6c5; margin-bottom: 17px; }
.empty-icon .icon { width: 27px; height: 27px; stroke-width: 1.4; }
.empty-state h3 { font-size: 12px; color: #61718a; }
.empty-state p { max-width: 300px; margin-top: 7px; font-size: 11px; color: #94a0b0; line-height: 1.8; }
.empty-compact { min-height: 185px; padding: 25px 18px; }
.empty-compact .empty-icon { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 12px; }
.empty-compact .empty-icon .icon { width: 23px; height: 23px; }
.gallery-empty { margin: 15px; border: 1px dashed #dfe6f0; border-radius: 8px; background: #fcfdff; }
.gallery-empty .empty-state { min-height: 191px; }
.status-body { padding: 22px 20px 18px; }
.empty-donut { width: 144px; height: 144px; border: 16px solid #eef2f7; border-radius: 50%; margin: 0 auto 14px; display: flex; justify-content: center; align-items: center; flex-direction: column; }
.empty-donut strong { font-size: 28px; font-weight: 650; line-height: 1.3; }
.empty-donut span { font-size: 9px; color: #8e9aae; }
.status-body > p { font-size: 10px; }
.status-legend { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 11px; }
.status-legend li, .status-legend li > span { display: flex; align-items: center; }
.status-legend li { justify-content: space-between; font-size: 11px; color: #748196; }
.status-legend li > span { gap: 9px; }
.status-legend strong { color: #536178; font-size: 11px; font-weight: 600; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.page-footer { color: #9aa6b6; font-size: 10px; display: flex; justify-content: space-between; gap: 10px; padding: 24px 0 0; }
/* List screens and settings */
.placeholder-notice, .notice { display: flex; align-items: center; gap: 10px; padding: 12px 15px; background: #edf3fd; border: 1px solid #e0eafb; border-radius: 8px; color: #5c78a3; font-size: 12px; margin-bottom: 18px; }
.placeholder-notice .icon { width: 17px; height: 17px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 16px; padding: 21px; align-items: end; border-bottom: 1px solid var(--border); }
.form-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.form-field label { font-size: 12px; font-weight: 500; color: #536178; }
.form-field input, .form-field select { padding: 10px 12px; min-height: 42px; border: 1px solid #dfe5ee; border-radius: 7px; background: white; color: var(--ink); outline-offset: 1px; }
.form-field input::placeholder { color: #a0aabc; font-size: 12px; }
.form-field input:disabled, .form-field select:disabled { background: #f8fafd; color: #8b98ab; opacity: 1; }
.filter-bar .form-field { flex: 1 1 150px; }
.filter-bar .filter-search { flex: 2 1 250px; }
.search-field { position: relative; }
.search-field > .icon { position: absolute; left: 12px; top: 12px; width: 18px; height: 18px; color: #a0aabd; }
.search-field input { padding-left: 39px; }
.gallery-grid { padding: 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: 16px; }
.gallery-placeholder { grid-column: 1 / -1; border: 1px dashed #dfe6f0; border-radius: 9px; background: #fcfdff; }
.settings-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.settings-card { padding: 24px; }
.settings-card .icon-tile { margin-bottom: 20px; width: 43px; height: 43px; }
.settings-card h2 { font-size: 16px; }
.settings-card p { margin: 8px 0 22px; font-size: 12px; color: var(--muted); }
/* Login */
.login-shell { background: white; }
.login-layout { min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; }
.login-story { padding: 44px 54px 30px; background: var(--navy); color: white; display: flex; flex-direction: column; }
.login-story-content { margin: auto 0; padding: 64px 0; }
.login-story-content .eyebrow { color: #82aaf0; letter-spacing: 2.5px; margin-bottom: 23px; }
.login-story h1 { font-size: clamp(32px, 3.2vw, 49px); line-height: 1.23; letter-spacing: -1.5px; font-weight: 600; }
.login-story-content > p:not(.eyebrow) { margin-top: 24px; color: #a4b6cd; font-size: 15px; line-height: 1.85; }
.route-art { height: 156px; position: relative; max-width: 420px; margin-top: 35px; }
.route-line { position: absolute; left: 24px; right: 24px; top: 71px; border-top: 2px dashed #3b526f; }
.route-origin, .route-destination { position: absolute; top: 46px; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 12px; border: 1px solid #3a506c; background: #20334c; color: #a6bbd7; }
.route-origin { left: 0; }
.route-destination { right: 0; }
.route-truck { width: 76px; height: 76px; display: grid; place-items: center; position: absolute; left: calc(50% - 38px); top: 33px; border-radius: 18px; background: var(--blue); box-shadow: 0 0 0 9px #1a304f; }
.route-truck .icon { width: 41px; height: 41px; stroke-width: 1.3; }
.route-label-start, .route-label-end { position: absolute; top: 114px; font-size: 8px; letter-spacing: 1.8px; color: #7e97b8; }
.route-label-start { left: 0; }
.route-label-end { right: 0; }
.login-benefits { display: flex; gap: 24px; font-size: 11px; color: #a4b6cd; margin-top: 23px; }
.login-benefits > span { display: flex; align-items: center; gap: 8px; }
.login-benefits .icon { color: #739ede; width: 17px; height: 17px; }
.login-story-footer { color: #6f849e; font-size: 10px; }
.login-form-area { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px; position: relative; }
.login-card { width: 100%; max-width: 360px; padding: 35px 0; }
.login-welcome-icon { width: 48px; height: 48px; display: grid; place-items: center; color: var(--blue); background: #edf3ff; border-radius: 13px; margin-bottom: 27px; }
.login-card .eyebrow { font-size: 9px; color: #8494ab; margin-bottom: 10px; }
.login-card h2 { font-size: 28px; letter-spacing: -.7px; }
.login-intro { color: var(--muted); font-size: 12px; margin: 10px 0 30px; }
.login-form { display: grid; gap: 20px; }
.login-form .form-field input { min-height: 48px; font-size: 14px; }
.login-submit { margin-top: 5px; width: 100%; min-height: 48px; font-size: 13px; }
.login-submit .icon { margin-left: auto; }
.login-submit { justify-content: flex-start; padding-inline: 18px; }
.login-help { margin: 28px 0; text-align: center; font-size: 11px; color: #8c99ac; line-height: 1.8; }
.login-help strong { font-weight: 500; color: #61738e; }
.login-security { display: flex; align-items: center; justify-content: center; gap: 6px; padding-top: 22px; border-top: 1px solid var(--border); font-size: 10px; color: #9aa6b8; }
.login-security .icon { width: 13px; height: 13px; }
.login-copyright { position: absolute; bottom: 29px; color: #9aa6b8; font-size: 10px; }
.login-mobile-brand { display: none; }
.form-errors { background: #fff1f0; border: 1px solid #f8d5d3; color: #a33d35; padding: 12px; font-size: 12px; border-radius: 7px; }
.access-denied { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.access-denied .panel { padding: 35px; max-width: 570px; }
.access-denied h1 { font-size: 25px; }
.access-denied h1 + p { color: var(--muted); margin: 18px 0 25px; font-size: 13px; }
.access-actions { display: flex; gap: 12px; flex-wrap: wrap; }
/* Driver shell: mobile first, independently usable at desktop sizes. */
.driver-shell { background: #e9eef5; }
.driver-app { max-width: 500px; margin: 0 auto; min-height: 100dvh; background: #f5f7fb; box-shadow: 0 0 35px rgb(20 36 56 / 5%); }
.driver-header { background: var(--navy); color: white; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: max(17px, env(safe-area-inset-top)) 20px 17px; }
.driver-header .brand-mark { width: 34px; height: 34px; border-radius: 9px; }
.driver-header .brand-mark .icon { width: 22px; height: 22px; }
.driver-header .brand-copy strong { font-size: 15px; }
.driver-header .brand-copy small { font-size: 9px; }
.driver-header .icon-button { color: #a2b6d0; width: 44px; height: 44px; }
.driver-main { padding: 25px 20px calc(102px + env(safe-area-inset-bottom)); }
.driver-greeting { margin-bottom: 24px; }
.driver-greeting > p { font-size: 15px; color: #78869b; }
.driver-greeting h1 { font-size: 26px; margin-top: 3px; overflow-wrap: anywhere; }
.driver-greeting > span { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 11px; color: #8391a5; overflow-wrap: anywhere; }
.driver-greeting > span .icon { width: 14px; height: 14px; }
.driver-shipment .panel-heading { padding: 16px; }
.driver-shipment .panel-heading h2 { text-transform: uppercase; letter-spacing: .7px; font-size: 11px; }
.driver-shipment .badge { font-size: 9px; }
.driver-shipment .empty-state { min-height: 232px; padding: 25px 27px; }
.driver-shipment .empty-state h3 { font-size: 13px; max-width: 250px; line-height: 1.7; color: #536880; }
.driver-shipment .empty-state p { font-size: 11px; max-width: 250px; }
.driver-route-hint { display: flex; align-items: center; gap: 8px; padding: 13px 15px; border-top: 1px solid var(--border); font-size: 10px; color: #8e9bb0; }
.driver-route-hint .icon { width: 15px; height: 15px; }
.driver-actions { margin-top: 25px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.section-heading h2 { font-size: 15px; }
.section-heading > span { font-size: 10px; }
.driver-action-help { color: #8f9caf; font-size: 11px; margin: 5px 0 14px; }
.action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.driver-action { background: white; border: 1px solid var(--border); border-radius: 10px; min-height: 106px; padding: 16px 9px; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; box-shadow: var(--shadow); }
.driver-action strong { color: #8b98ab; font-size: 12px; font-weight: 550; }
.driver-action .icon-tile { width: 35px; height: 35px; }
.driver-action:disabled .icon-tile { opacity: .65; }
.action-wide { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; padding: 14px; min-height: 68px; gap: 11px; }
.action-wide .badge { margin-left: auto; font-size: 9px; }
.driver-footnote { color: #8e9cb0; font-size: 11px; display: flex; align-items: flex-start; gap: 8px; margin-top: 23px; line-height: 1.8; }
.driver-footnote .icon { width: 15px; height: 15px; margin-top: 2px; }
.bottom-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 500px; z-index: 30; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #e4eaf3; background: white; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); box-shadow: 0 -3px 15px rgb(20 36 56 / 3%); }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 7px 2px; min-height: 54px; border-radius: 8px; color: #96a2b4; font-size: 10px; font-weight: 500; }
.bottom-nav .icon { width: 21px; height: 21px; }
.bottom-nav a.active { color: var(--blue); background: #f0f5ff; }
.driver-page-heading { margin-bottom: 23px; }
.driver-page-heading h1 { font-size: 25px; }
.driver-page-heading h1 + p { color: var(--muted); margin-top: 9px; font-size: 12px; }
.kilometer-panel { margin-top: 24px; }
.kilometer-panel fieldset { border: 0; margin: 0; padding: 17px; }
.kilometer-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.kilometer-panel .button { width: 100%; min-height: 46px; }
.profile-identity { text-align: center; padding: 25px 20px; border-bottom: 1px solid var(--border); }
.avatar-large { margin: 0 auto 13px; width: 66px; height: 66px; font-size: 26px; background: #eaf1ff; color: #5885d2; border-radius: 20px; }
.profile-identity h2 { font-size: 18px; margin-bottom: 9px; overflow-wrap: anywhere; }
.profile-details { margin: 0; padding: 5px 20px; }
.profile-details > div { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 16px 0; border-bottom: 1px solid #eef1f6; }
.profile-details > div:last-child { border: 0; }
.profile-details dt { color: #8492a6; font-size: 11px; flex-shrink: 0; }
.profile-details dd { font-size: 12px; font-weight: 500; text-align: right; margin: 0; overflow-wrap: anywhere; min-width: 0; }
.profile-logout { margin-top: 23px; }
.profile-logout .button { min-height: 48px; width: 100%; color: #b65959; }
/* Responsive management shell; without JS navigation remains in normal flow. */
@media (min-width: 1650px) {
  :root { --sidebar-width: 252px; }
  .main-content { padding: 30px 34px 20px; }
  .dashboard-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; }
  .kpi-grid { gap: 20px; }
  .kpi-card { padding: 20px; }
  .shipment-table th { font-size: 11px; padding: 14px 10px; }
  .recent-shipments .empty-state { min-height: 300px; }
  .dashboard-bottom { gap: 24px; }
  .empty-donut { width: 160px; height: 160px; }
}
@media (max-width: 1199px) {
  :root { --sidebar-width: 214px; }
  .sidebar { padding-inline: 12px; }
  .sidebar .brand-copy strong { font-size: 15px; }
  .main-content { padding: 22px 20px 15px; }
  .topbar { padding-inline: 20px; }
  .kpi-grid { gap: 10px; }
  .kpi-card { padding: 13px 11px; }
  .kpi-label { font-size: 10px; }
  .kpi-label .icon-tile { width: 28px; height: 28px; }
  .dashboard-layout { grid-template-columns: minmax(0, 1fr); }
  .dashboard-secondary { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .login-story { padding-inline: 35px; }
}
@media (max-width: 959px) {
  .workspace { margin-left: 0; }
  .sidebar { position: static; width: 100%; padding: 16px; }
  .sidebar-brand { padding: 0 0 16px; }
  .nav-caption, .sidebar-bottom { display: none; }
  .main-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav-link { padding: 12px; }
  .js-enabled .sidebar { position: fixed; width: 264px; transform: translateX(-100%); visibility: hidden; }
  .js-enabled .sidebar.is-open { transform: translateX(0); visibility: visible; }
  .js-enabled .sidebar-brand { padding: 8px 0 25px; justify-content: space-between; }
  .js-enabled .main-nav { grid-template-columns: 1fr; }
  .js-enabled .sidebar-close { display: inline-flex; width: 32px; }
  .js-enabled .sidebar .brand-copy strong { font-size: 15px; }
  .js-enabled .nav-caption { display: block; }
  .js-enabled .sidebar-bottom { display: block; }
  .js-enabled .menu-toggle { display: inline-flex; }
  .sidebar-overlay { position: fixed; inset: 0; z-index: 35; background: rgb(10 23 42 / 45%); border: 0; cursor: default; }
  .menu-open { overflow: hidden; }
  .login-layout { grid-template-columns: .9fr 1.1fr; }
  .login-story { padding: 30px; }
  .login-story h1 { font-size: 33px; }
  .login-story-content > p:not(.eyebrow) { font-size: 13px; }
  .login-benefits { flex-direction: column; gap: 12px; }
  .login-form-area { padding: 32px; }
}
@media (max-width: 639px) {
  h1 { font-size: 24px; }
  .topbar { height: 64px; padding-inline: 14px; }
  .topbar-left, .topbar-right { gap: 5px; }
  .breadcrumb { font-size: 11px; }
  .breadcrumb > span { margin: 0 6px; }
  .user-menu-name, .topbar-divider { display: none; }
  .user-menu summary { gap: 5px; }
  .notification-button { width: 32px; }
  .main-content { padding: 20px 14px 14px; }
  .page-heading { flex-wrap: wrap; gap: 13px; margin-bottom: 18px; }
  .page-heading h1 + p { line-height: 1.7; }
  .page-heading .eyebrow { font-size: 9px; }
  .date-chip { font-size: 10px; padding: 6px 9px; min-height: 32px; }
  .scope-chip { max-width: 100%; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
  .kpi-card:last-child { grid-column: 1 / -1; }
  .kpi-card { padding: 14px; }
  .kpi-label { font-size: 11px; }
  .kpi-value { font-size: 27px; }
  .dashboard-layout, .dashboard-primary, .dashboard-secondary, .dashboard-bottom { gap: 16px; }
  .dashboard-bottom, .dashboard-secondary { grid-template-columns: minmax(0, 1fr); }
  .panel-heading { padding: 15px; gap: 8px; }
  .panel-heading h2 { font-size: 12px; }
  .panel-heading .button { font-size: 10px; padding: 8px 9px; }
  .shipment-table { min-width: 680px; }
  .shipment-table th { font-size: 10px; }
  .data-table:not(.shipment-table) { min-width: 490px; }
  .recent-shipments .empty-state { max-width: calc(100vw - 30px); }
  .table-scroll .empty-state { width: min(100%, calc(100vw - 30px)); }
  .page-footer { font-size: 9px; padding-top: 20px; flex-wrap: wrap; }
  .filter-bar { padding: 16px; gap: 12px; }
  .filter-bar .form-field { flex-basis: 130px; }
  .filter-bar .filter-search { flex-basis: 100%; }
  .settings-grid { grid-template-columns: 1fr; gap: 14px; }
  .settings-card { padding: 21px; }
  .placeholder-notice { font-size: 11px; align-items: flex-start; }
  .placeholder-notice .icon { margin-top: 1px; }
  .main-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .login-layout { display: block; }
  .login-story { display: none; }
  .login-form-area { min-height: 100dvh; padding: 26px 25px 45px; }
  .login-card { padding-top: 10px; }
  .login-mobile-brand { display: flex; margin-bottom: 48px; }
  .login-mobile-brand .brand-copy small { color: #8797ad; }
  .login-welcome-icon { display: none; }
  .login-card h2 { font-size: 27px; }
  .login-form .form-field input { font-size: 16px; }
  .login-copyright { bottom: 20px; }
  .button, .icon-button, .icon-link, .sidebar-logout { min-height: 44px; }
  .user-dropdown a, .user-dropdown button { min-height: 44px; }
  .access-denied .panel { padding: 25px; }
}
@media (max-width: 374px) {
  .driver-main { padding-inline: 16px; }
  .driver-header { padding-inline: 16px; }
  .driver-shipment .panel-heading { padding-inline: 12px; }
  .driver-action strong { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
