.trip-map-card {margin:0 0 1rem;border:1px solid #dce5e1;border-radius:16px;background:#f7faf9;overflow:hidden;color:#142d29}
.trip-map-heading,.trip-map-footer {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.65rem;padding:.85rem 1rem}
.trip-map-heading h3 {font-size:1.04rem;margin:0}
.trip-map-heading [data-trip-phase] {font-size:.86rem;font-weight:700;color:#174c43}
.trip-map-footer p {margin:0;font-size:.85rem;line-height:1.45;color:#344e47}
.trip-map-footer button {min-height:44px;color:#15312b}
.trip-map-card--driver {background:#101f29;border-color:#263d49;color:#eff6f5}
.trip-map-card--driver .trip-map-heading [data-trip-phase],.trip-map-card--driver .trip-map-footer p {color:#c4ddd8}
.trip-map-surface {height:clamp(230px,41dvh,440px);position:relative;overflow:hidden;background:#e5eeeb}
.trip-map-card--driver .trip-map-surface {background:#20313a}
.trip-map-canvas {height:100%;width:100%;overflow:hidden}
.trip-map-loading {position:absolute;z-index:2;left:12px;top:10px;max-width:calc(100% - 72px);margin:0;padding:.46rem .7rem;background:#fff;color:#15312b;border-radius:8px;font-size:.875rem;pointer-events:none;box-shadow:0 1px 6px #10202d25}
.trip-map-loading[hidden] {display:none}
.trip-map-fit {position:absolute;z-index:1;left:12px;bottom:14px;border:1px solid #bccec8;border-radius:9px;background:#fff;color:#15312b;font-size:.85rem;min-height:42px;padding:.5rem .75rem;box-shadow:0 1px 6px #10202d29;cursor:pointer}
button.map-pin {width:32px;height:32px;min-width:0;min-height:0;border-radius:50%;display:grid;place-items:center;padding:0;border:2px solid white;background:#187c62;color:white;box-shadow:0 2px 7px #172f3455;font-size:15px;font-weight:800;cursor:pointer}
button.map-pin--drop {background:#3856ad}
button.map-pin--vehicle {background:#027ab6;box-shadow:0 0 0 7px #11a0e44a,0 2px 7px #172f3455;font-size:22px}
button.map-pin--selection {background:#305e54}
.trip-map-surface .ol-control button {min-width:26px;min-height:26px;padding:0}
.trip-map-surface .ol-zoom {left:auto;right:.5em}
.trip-map-surface .ol-attribution {font-size:.75rem;line-height:1.3}
.location-map-dialog {width:min(calc(100vw - 24px),580px);max-height:calc(100dvh - 24px);padding:0;border:1px solid #d5e2dc;border-radius:16px;color:#142d29;background:#fff;overflow:auto}
.location-map-dialog::backdrop {background:#07151cb0}
.location-map-dialog h2 {font-size:1.15rem;margin:0;line-height:1.2}
.location-map-dialog .trip-map-surface {height:clamp(220px,48dvh,400px)}
.location-map-dialog .trip-map-footer {justify-content:flex-end}
.location-map-dialog .trip-map-footer p {flex:1;min-width:130px}
.location-map-dialog button {cursor:pointer}
.location-map-dialog .pin-dialog-button {border:1px solid #c7d5d0;background:white;border-radius:9px;color:#16342d;min-height:44px;padding:.42rem .75rem;font:inherit}
.location-map-dialog [data-save-map-pin] {background:#ffd44e;border-color:#e3b733;font-weight:700}
.location-map-dialog [data-save-map-pin]:disabled {opacity:.46;cursor:default}
.corporate-booking-details {margin-top:.65rem;border:1px solid #d7ded8;padding:.75rem;border-radius:10px;background:#f7faf8}
.corporate-booking-details p {margin:.45rem 0;font-size:.84rem;line-height:1.4}
.driver-dispatch {container-type:inline-size}
.driver-status-totals {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.6rem;margin:0 0 .8rem}
.driver-status-totals > div {display:flex;align-items:center;justify-content:space-between;gap:.5rem;border:1px solid #dce5e1;border-radius:10px;padding:.65rem .8rem;background:#fff;color:#142d29}
.driver-status-totals dt {font-weight:650;font-size:.875rem}
.driver-status-totals dd {margin:0;font-size:1.12rem;font-weight:750;font-variant-numeric:tabular-nums}
.driver-status-totals [data-duty=free] {background:#edf8f0;color:#17583c}
.driver-status-totals [data-duty=on_trip] {background:#edf3ff;color:#254b8b}
.driver-status-totals [data-duty=leave] {background:#f3edf9;color:#5c3978}
.driver-status-totals [data-duty=reserved] {background:#fff6dd;color:#684800}
.driver-map-layout {display:grid;grid-template-columns:minmax(0,2fr) minmax(250px,1fr);gap:1rem;align-items:start}
.driver-map-layout .trip-map-card {margin:0}
.driver-roster {min-width:0;background:#fff;border:1px solid #dce5e1;border-radius:16px;padding:1rem;color:#142d29}
.driver-roster-head {display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;gap:.65rem}
.driver-roster-head h3 {margin:0 0 .25rem;font-size:1.04rem}
.driver-roster-head [data-driver-total] {font-size:.875rem;color:#48655c;margin-left:.2rem}
.driver-roster-head label {display:grid;gap:.25rem;margin:0;font-size:.875rem}
.driver-roster-head select {width:auto;min-width:115px;margin:0}
.driver-roster-note {margin:.6rem 0;font-size:.83rem;color:#48655c}
.driver-roster [data-driver-roster] {max-height:430px;overflow:auto}
.driver-roster-row {display:flex;justify-content:space-between;align-items:center;gap:.65rem;padding:.68rem 0;border-top:1px solid #e6eee9}
.driver-roster-row strong {margin-right:.5rem;overflow-wrap:anywhere}
.driver-roster-row small {display:block;margin-top:.3rem;color:#48655c}
.driver-roster-row [data-duty] {display:inline-block;padding:.15rem .5rem;border-radius:999px;background:#edf1ef;color:#2d4840;font-size:.78rem;white-space:nowrap}
.driver-roster-row [data-duty=free] {background:#d9efe5;color:#17583c}
.driver-roster-row [data-duty=on_trip] {background:#e2ebff;color:#254b8b}
.driver-roster-row [data-duty=leave] {background:#f3e9fa;color:#5c3978}
.driver-roster-row [data-duty=reserved] {background:#fff0cd;color:#684800}
.driver-dispatch button.map-pin--dispatch {background:#875900}
.driver-dispatch button.map-pin--dispatch[data-status=free] {background:#127251}
.driver-dispatch button.map-pin--dispatch[data-status=on_trip] {background:#285eb4}
.driver-dispatch button.map-pin--dispatch[data-status=leave] {background:#664780}
.driver-presence:not([hidden]) {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:1rem}
.driver-presence div {flex:1;min-width:min(240px,100%)}
.driver-presence h2 {margin:0;font-size:1.05rem}
.driver-presence p {font-size:.85rem;margin:.35rem 0 0}
.driver-presence .presence-status {font-weight:700;color:#17584e}
@container(max-width:720px) {
 .driver-map-layout {grid-template-columns:minmax(0,1fr)}
}
@container(max-width:420px) {
 .driver-status-totals {grid-template-columns:repeat(2,minmax(0,1fr))}
}
