/* Screen-reference component polish: consistent Lucide-style outline icons and page-specific layouts */
.ref-client-road{margin-top:13px;font-size:13px;color:#111820}
.ref-client-road span{display:inline-flex;align-items:center;gap:7px}
.ref-client-road svg{width:15px;height:15px;color:#5c6873;flex:none}
.ref-client-road b{font-size:13px}
.ref-next{margin-top:9px;color:#59636e}
.ref-next svg{width:16px;height:16px;color:#5d6872;flex:none}
.ref-status{display:inline-flex;align-items:center;gap:6px;border-radius:20px;background:#e9e4df;padding:6px 10px;font-size:11px;font-weight:750;white-space:nowrap}
.ref-status i{width:7px;height:7px;border-radius:50%;display:block;background:currentColor}
.ref-status.moving{color:#279653}
.ref-status.idle{color:#17324a}
.ref-status.service{color:#b96a00}
.ref-status.offline{color:#d93636}

/* FleetFlow shared semantic status system: one meaning, one token family in every module. */
:root{
 --status-success-text:#166534;--status-success-bg:#dcfce7;--status-success-dot:#15803d;
 --status-warning-text:#854d0e;--status-warning-bg:#fef3c7;--status-warning-dot:#a16207;
 --status-neutral-text:#334155;--status-neutral-bg:#e2e8f0;--status-neutral-dot:#475569;
 --status-danger-text:#991b1b;--status-danger-bg:#fee2e2;--status-danger-dot:#b91c1c;
}
.dark-mode{
 --status-success-text:#86efac;--status-success-bg:#14532d;--status-success-dot:#86efac;
 --status-warning-text:#fde68a;--status-warning-bg:#713f12;--status-warning-dot:#fde68a;
 --status-neutral-text:#cbd5e1;--status-neutral-bg:#334155;--status-neutral-dot:#cbd5e1;
 --status-danger-text:#fca5a5;--status-danger-bg:#7f1d1d;--status-danger-dot:#fca5a5;
}
.pill.green,.ref-status.moving,.compliance-status.status-current,.document-expiry-pill.valid,.status-current{
 color:var(--status-success-text)!important;background:var(--status-success-bg)!important;
}
.pill.green:before,.ref-status.moving i,.compliance-status.status-current i{background:var(--status-success-dot)!important}
.pill.amber,.ref-status.service,.compliance-status.status-attention,.document-expiry-pill.expiring,.status-attention{
 color:var(--status-warning-text)!important;background:var(--status-warning-bg)!important;
}
.pill.amber:before,.ref-status.service i,.compliance-status.status-attention i{background:var(--status-warning-dot)!important}
.pill.gray,.ref-status.idle,.ref-status.offline,.compliance-status.status-pending,.status-pending{
 color:var(--status-neutral-text)!important;background:var(--status-neutral-bg)!important;
}
.pill.gray:before,.ref-status.idle i,.ref-status.offline i,.compliance-status.status-pending i{background:var(--status-neutral-dot)!important}
.pill.red,.ref-status.critical,.compliance-status.status-action,.document-expiry-pill.expired,.status-action{
 color:var(--status-danger-text)!important;background:var(--status-danger-bg)!important;
}
.pill.red:before,.ref-status.critical i,.compliance-status.status-action i{background:var(--status-danger-dot)!important}
.pill.blue{color:var(--status-success-text)!important;background:var(--status-success-bg)!important}
.pill.blue:before{background:var(--status-success-dot)!important}
.ref-status,.compliance-status,.document-expiry-pill,.pill{
 display:inline-flex;align-items:center;gap:6px;min-height:26px;padding:4px 9px;
 border:1px solid transparent;border-radius:999px;font-size:11px;line-height:16px;
 font-weight:650;letter-spacing:0;white-space:nowrap;
}
.ref-status i,.compliance-status i{
 width:7px;height:7px;min-width:7px;border-radius:50%;background:currentColor;
}
.ref-status.moving:before{display:none}
.ref-status.idle,.ref-status.offline{background:var(--status-neutral-bg)!important;color:var(--status-neutral-text)!important}
.dark-mode .pill.green,.dark-mode .ref-status.moving,.dark-mode .compliance-status.status-current,.dark-mode .document-expiry-pill.valid{color:var(--status-success-text)!important;background:var(--status-success-bg)!important}
.dark-mode .pill.amber,.dark-mode .ref-status.service,.dark-mode .compliance-status.status-attention,.dark-mode .document-expiry-pill.expiring{color:var(--status-warning-text)!important;background:var(--status-warning-bg)!important}
.dark-mode .pill.gray,.dark-mode .ref-status.idle,.dark-mode .ref-status.offline,.dark-mode .compliance-status.status-pending{color:var(--status-neutral-text)!important;background:var(--status-neutral-bg)!important}
.dark-mode .pill.red,.dark-mode .compliance-status.status-action,.dark-mode .document-expiry-pill.expired{color:var(--status-danger-text)!important;background:var(--status-danger-bg)!important}
.dark-mode .pill.blue{color:var(--status-success-text)!important;background:var(--status-success-bg)!important}
.vehicle-card>p{font-size:14px;margin:5px 0 13px;color:#59636e}
.vehicle-meta-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
.vehicle-meta{display:flex;align-items:center;gap:8px;min-width:0;font-size:14px;color:#111820}
.vehicle-meta svg{width:16px;height:16px;flex:none;color:#5f6b77;stroke-width:1.8}
.vehicle-meta span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vehicle-location{margin-top:10px}
.ref-map{height:210px}
.ref-map i{width:14px;height:14px;border:3px solid #fff}
.ref-stops{display:grid;gap:14px;margin:15px 0 0;padding:0;border:0}
.ref-stop{display:flex;align-items:center;gap:12px;position:relative;min-height:22px}
.ref-stop i{width:12px;height:12px;flex:0 0 12px;border:2px solid #17324a;border-radius:50%;background:#fff;position:relative;z-index:1}
.ref-stop.destination i{background:#17324a}
.ref-stop b{font-size:15px;font-weight:750}
.ref-trip .ref-progress{height:6px;margin-top:14px}
.ref-alert{align-items:flex-start;gap:12px;padding:17px 15px}
.ref-alert-dot{width:10px;height:10px;flex:0 0 10px;border-radius:50%;background:#17324a;margin-top:5px;box-shadow:none}
.ref-alert-dot.warning{background:#ef9b22}
.ref-alert-dot.critical{background:#d93636;box-shadow:0 0 0 5px #fde6e5}
.ref-alert-main{flex:1;min-width:0}
.ref-alert-main b{font-size:15px;font-weight:750}
.ref-alert-main p{font-size:13px;color:#59636e;margin:5px 0 0;line-height:1.35}
.ref-section-head button{display:inline-flex;align-items:center;gap:2px}
.ref-section-head button svg{width:14px;height:14px}
.ref-stat svg{width:20px;height:20px;stroke-width:1.8}
.ref-stat.danger svg{color:#d93636}
.nav-item svg{width:21px;height:21px;stroke-width:1.8}
@media(max-width:600px) and (pointer:coarse){
 .vehicle-meta{font-size:13px}
 .ref-alert-main b{font-size:14px}
 .ref-alert-main p{font-size:12px}
}

/* Trips screen: restore the complete route-card structure from the supplied reference */
.ref-page:has(> .ref-map) > .page-title{margin:0;line-height:1.1}
.ref-page:has(> .ref-map) > .ref-map{height:210px;margin:19px 0 16px;border-radius:20px;background-color:#cfe2e2;background-image:linear-gradient(rgba(255,255,255,.72) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.72) 1px,transparent 1px);background-size:26px 26px}
.ref-page:has(> .ref-map) .ref-map-road{height:11px;background:#f3bd5d;transform:rotate(36deg);left:-20%;top:48%}
.ref-page:has(> .ref-map) .ref-map i{width:14px;height:14px;border:3px solid #fff;background:#17324a;box-shadow:0 1px 5px rgba(23,50,74,.35)}
.ref-page:has(> .ref-map) > .ref-trip{height:136px;min-height:136px;margin:0 0 8px;padding:16px 15px;border-radius:17px;display:flex;flex-direction:column}
.ref-page:has(> .ref-map) .ref-between{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#59636e;line-height:1.2}
.ref-page:has(> .ref-map) .ref-between small{font-size:11px;font-weight:450;white-space:nowrap}
.ref-page:has(> .ref-map) .ref-stops{display:flex;flex-direction:column;gap:0;margin:14px 0 0 0;position:relative}
.ref-page:has(> .ref-map) .ref-stop{display:flex;align-items:center;gap:12px;min-height:30px;position:relative;color:#111820}
.ref-page:has(> .ref-map) .ref-stop:first-child:after{content:"";position:absolute;left:5px;top:calc(50% + 8px);bottom:-7px;width:2px;background:#e1ddd7}
.ref-page:has(> .ref-map) .ref-stop i{width:12px;height:12px;flex:0 0 12px;border:2px solid #17324a;border-radius:50%;background:#fff;position:relative;z-index:1}
.ref-page:has(> .ref-map) .ref-stop.destination i{background:#17324a}
.ref-page:has(> .ref-map) .ref-stop b{display:block;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px;line-height:1.2;font-weight:750}
.ref-page:has(> .ref-map) .ref-trip .ref-progress{height:6px;flex:0 0 6px;margin-top:auto;background:#e7e3dd;border-radius:8px;overflow:hidden}
.ref-page:has(> .ref-map) .ref-trip .ref-progress i{display:block;height:100%;background:#17324a;border-radius:8px}
.ref-page:has(> .ref-map) .empty-state{margin-top:0}

/* Alert screen: match the supplied reference's title-to-list spacing and compact card rhythm */
.ref-page:has(> .ref-alert) > .page-title{margin:0 0 19px;line-height:1.1}
.ref-page:has(> .ref-alert) > .ref-alert{min-height:75px;margin:0 0 8px;padding:17px 15px;gap:12px}
.ref-page:has(> .ref-alert) > .ref-alert:last-child{margin-bottom:0}
.ref-page:has(> .ref-alert) .ref-alert-main{min-width:0}
.ref-page:has(> .ref-alert) .ref-alert-main .ref-between{align-items:center;gap:8px}
.ref-page:has(> .ref-alert) .ref-alert-main b{font-size:14px;line-height:1.25;font-weight:750}
.ref-page:has(> .ref-alert) .ref-alert-main small{font-size:10px;line-height:1.2;color:#59636e;white-space:nowrap}
.ref-page:has(> .ref-alert) .ref-alert-main p{font-size:13px;line-height:1.3;margin:5px 0 0;color:#59636e}
.ref-page:has(> .ref-alert) .ref-alert-dot{width:10px;height:10px;flex:0 0 10px;margin-top:5px}

/* Final spacing and control alignment matched to the five supplied screen references */
.ref-page>.eyebrow{margin:3px 0 5px;line-height:1.2}
.ref-page>.page-title{margin:0;line-height:1.1}
.ref-heading{margin:3px 0 20px;gap:12px}
.ref-heading .eyebrow{margin:0 0 5px;line-height:1.2}
.ref-heading .page-title{margin:0;line-height:1.1}
.ref-page .search-wrap{height:44px;min-height:44px;padding:0 14px;margin:13px 0 11px;border:1px solid #ddd9d2;border-radius:13px}
.ref-page .search-wrap svg{width:16px;height:16px}
.ref-page .search-wrap input{font-size:13px;line-height:1.2}
.ref-page .filter-row{display:flex;align-items:center;gap:7px;margin:0 0 12px;padding:0 0 1px}
.ref-page .filter-chip{display:inline-flex;align-items:center;justify-content:center;min-height:33px;padding:7px 13px;border:1px solid #ddd9d2;border-radius:999px;background:#fff;color:#111820;font-size:11px;font-weight:600;line-height:1.2;letter-spacing:0;transition:background-color .15s,border-color .15s,color .15s}
.ref-page .filter-chip.active{background:#17324a;border-color:#17324a;color:#fff}
.ref-page .filter-chip:focus-visible,.ref-section-head button:focus-visible,.text-link:focus-visible,.primary-btn:focus-visible,.secondary-btn:focus-visible,.small-action:focus-visible{outline:2px solid #6d91ad;outline-offset:2px}
.ref-section-head{margin:20px 0 10px}
.ref-section-head button{min-height:32px;padding:4px 0 4px 8px;font-size:11px;line-height:1.2}
.ref-card{margin-bottom:9px}
.ref-card:last-child{margin-bottom:0}
.client-card{padding:15px}
.vehicle-card{padding:15px}
.ref-alert{padding:17px 15px}
.primary-btn,.secondary-btn,.quiet-btn{min-height:40px;border-radius:11px;font-size:11px;font-weight:700;letter-spacing:0}
.primary-btn{background:#17324a;box-shadow:0 2px 5px rgba(23,50,74,.12)}
.secondary-btn{border:1px solid #ddd9d2;background:#fff;color:#172533}
.quiet-btn{background:transparent;color:#59636e}
.small-action{min-height:30px;padding:6px 10px;border-radius:8px;font-size:10px;font-weight:650}
.text-link{min-height:30px;padding:5px 0;font-size:11px}
.nav-item{min-height:58px;gap:3px;font-size:10px;font-weight:600}
.nav-item.active{color:#17324a}
.nav-item:focus-visible{outline:2px solid #6d91ad;outline-offset:-3px}

/* Trip cards now include management actions, so let the content determine card height. */
.ref-page:has(> .ref-map) > .ref-trip{height:auto;min-height:136px;overflow:visible}
.ref-page:has(> .ref-map) .ref-trip .ref-progress{margin-top:10px;flex:0 0 6px}
.ref-page:has(> .ref-map) .ref-trip .record-actions{justify-content:flex-end;margin-top:10px;padding-top:8px;border-top:1px solid #ece8e3}
.small-action svg{display:block;width:13px;height:13px;flex:0 0 13px}
.small-action.danger{display:inline-flex;align-items:center;justify-content:center;min-width:30px;padding:6px}