.dispatch-gps-panel[hidden], #btn-dispatch-gps[hidden] { display:none !important; }
.dispatch-gps-panel { margin:0 0 18px; padding:16px; border:1px solid #cbd5e1; border-radius:12px; background:#fff; box-shadow:0 3px 16px #0f172a08; }
.dispatch-gps-header { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:12px; }
.dispatch-gps-header h2 { margin:0 0 4px; font-size:18px; color:#0f172a; }
.dispatch-gps-header p, .dispatch-gps-status, .dispatch-gps-map-note { margin:0; font-size:12px; color:#475569; }
.dispatch-gps-actions { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.dispatch-gps-actions label { display:flex; align-items:center; gap:6px; font-size:12px; cursor:pointer; }
.dispatch-gps-status { padding:9px 0; min-height:30px; }
.dispatch-gps-legend { margin:0 0 10px; font-size:11px; line-height:1.5; color:#475569; }
.dispatch-gps-layout { display:grid; grid-template-columns:minmax(0, 1fr) 370px; gap:12px; }
.dispatch-gps-map { position:relative; overflow:hidden; height:410px; min-width:0; border-radius:8px; background:#e2e8f0; border:1px solid #cbd5e1; z-index:0; }
.dispatch-gps-list { max-height:410px; overflow-y:auto; border:1px solid #e2e8f0; border-radius:8px; }
.dispatch-gps-item { margin:10px; padding:11px; display:flex; flex-direction:column; gap:8px; font-size:12px; border:1px solid #e2e8f0; border-left:3px solid #94a3b8; border-radius:9px; background:#fff; }
.dispatch-gps-card-head { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.dispatch-gps-identity { display:flex; align-items:center; gap:8px; min-width:0; flex-wrap:wrap; }
.dispatch-gps-modality { display:grid; place-items:center; min-width:34px; height:32px; padding:0 4px; border-radius:7px; font-size:11px; font-weight:800; color:#fff; }
.dispatch-gps-driver { border:0; padding:3px 0; background:transparent; color:var(--text-primary,#0b1c30); font-family:inherit; font-size:14px; font-weight:700; overflow-wrap:anywhere; text-align:left; }
button.dispatch-gps-driver { cursor:pointer; text-decoration:underline; text-decoration-color:#00685f55; text-underline-offset:3px; }
button.dispatch-gps-driver:hover { color:var(--primary,#00685f); text-decoration-color:currentColor; }
.dispatch-gps-leg { color:#64748b; font-size:10px; }
.dispatch-gps-operational { display:inline-flex; align-items:center; justify-content:center; min-height:29px; padding:5px 10px; border:0 !important; box-shadow:none; border-radius:7px; font-size:12px; font-weight:700; white-space:nowrap; }
.dispatch-gps-route { display:grid; gap:5px; color:#3d4947; }
.dispatch-gps-route-row { display:grid; grid-template-columns:48px minmax(0,1fr); gap:7px; line-height:1.35; overflow-wrap:anywhere; }
.dispatch-gps-route-label { color:#565e74; font-size:10px; padding-top:1px; }
.dispatch-gps-date { color:#64748b; font-size:10.5px; }
.dispatch-gps-details { width:100%; border-top:1px solid #edf1f5; }
.dispatch-gps-details > summary { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:30px; padding-top:4px; cursor:pointer; list-style:none; }
.dispatch-gps-details > summary::-webkit-details-marker { display:none; }
.dispatch-gps-details > summary::after { content:'+'; display:grid; place-items:center; width:23px; height:23px; flex:0 0 auto; border:1px solid #e2e8f0; border-radius:50%; font-size:17px; color:var(--primary,#00685f); }
.dispatch-gps-details[open] > summary::after { content:'−'; }
.dispatch-gps-details > summary:focus-visible, button.dispatch-gps-driver:focus-visible { outline:2px solid var(--primary,#00685f); outline-offset:3px; border-radius:3px; }
.dispatch-gps-detail-body { display:grid; gap:7px; padding-top:8px; font-size:11px; line-height:1.45; }
.dispatch-gps-client { display:flex; flex-wrap:wrap; justify-content:space-between; gap:5px 10px; }
.dispatch-gps-pax { display:inline-flex; align-items:center; gap:5px; white-space:nowrap; }
.dispatch-gps-people { font-size:13px; }
.dispatch-gps-booking { overflow-wrap:anywhere; }
.dispatch-gps-alert { border-radius:6px; padding:4px 7px; font-size:11px; background:#f1f5f9; color:#475569; }
.dispatch-gps-alert.gps-stale, .dispatch-gps-alert.gps-pending, .dispatch-gps-alert.gps-waiting { background:#fef3c7; color:#92400e; }
.dispatch-gps-alert.gps-invalid { background:#fee2e2; color:#991b1b; }
.dispatch-gps-pop { min-width:220px; max-width:340px; font-size:12px; line-height:1.4; color:#1e293b; }
.dispatch-gps-pop-head { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:4px; }
.dispatch-gps-pop-driver { font-size:14px; }
.dispatch-gps-pop-head { gap:6px; }
.dispatch-gps-pop-driver { flex:1; min-width:0; }
.dispatch-gps-pop-type { font-size:10px; font-weight:700; border-radius:999px; padding:2px 8px; white-space:nowrap; background:#475569; color:#fff; }
.dispatch-gps-pop .dispatch-gps-pop-type.badge-dep { background:#1d4ed8; color:#fff; }
.dispatch-gps-pop .dispatch-gps-pop-type.badge-arr { background:#15803d; color:#fff; }
.dispatch-gps-pop .dispatch-gps-pop-type.badge-p2p { background:#6d28d9; color:#fff; }
.dispatch-gps-pop .dispatch-gps-pop-type.badge-exc { background:#fef3c7; color:#92400e; border:1px solid #fcd34d; }
.dispatch-gps-pop-close { flex:none; width:18px; height:18px; padding:0; border:0; border-radius:50%; background:#f1f5f9; color:#475569; font-size:14px; line-height:16px; cursor:pointer; }
.dispatch-gps-pop-close:hover { background:#e2e8f0; color:#0f172a; }
.dispatch-gps-pop-state { display:flex; align-items:center; gap:6px; margin-bottom:6px; padding-bottom:6px; border-bottom:1px solid #e2e8f0; font-weight:600; color:#047857; }
.dispatch-gps-pop-sig { display:inline-flex; align-items:flex-end; gap:2px; height:12px; flex:none; }
.dispatch-gps-pop-sig i { display:block; width:3px; border-radius:1px; background:currentColor; }
.dispatch-gps-pop-sig i:nth-child(1) { height:5px; } .dispatch-gps-pop-sig i:nth-child(2) { height:8px; } .dispatch-gps-pop-sig i:nth-child(3) { height:12px; }
.dispatch-gps-pop-state.gps-stale .dispatch-gps-pop-sig i:nth-child(3), .dispatch-gps-pop-state.gps-pending .dispatch-gps-pop-sig i:nth-child(3), .dispatch-gps-pop-state.gps-waiting .dispatch-gps-pop-sig i:nth-child(3) { opacity:.25; }
.dispatch-gps-pop-state.gps-invalid .dispatch-gps-pop-sig i:nth-child(n+2), .dispatch-gps-pop-state.gps-closed .dispatch-gps-pop-sig i:nth-child(n+2), .dispatch-gps-pop-state.gps-paused .dispatch-gps-pop-sig i:nth-child(n+2), .dispatch-gps-pop-state.gps-revoked .dispatch-gps-pop-sig i:nth-child(n+2), .dispatch-gps-pop-state.gps-none .dispatch-gps-pop-sig i:nth-child(n+2) { opacity:.25; }
.dispatch-gps-pop-text { flex:1; }
.dispatch-gps-pop-route { display:block; }
.dispatch-gps-pop-state.gps-stale, .dispatch-gps-pop-state.gps-pending, .dispatch-gps-pop-state.gps-waiting { color:#b45309; }
.dispatch-gps-pop-state.gps-invalid { color:#b91c1c; }
.dispatch-gps-pop-state.gps-closed, .dispatch-gps-pop-state.gps-paused, .dispatch-gps-pop-state.gps-revoked, .dispatch-gps-pop-state.gps-none { color:#64748b; }
.dispatch-gps-pop-row { display:flex; gap:8px; margin-top:3px; align-items:baseline; }
.dispatch-gps-pop-val { font-weight:600; }
.dispatch-gps-pop-icon { font-size:15px; }
.dispatch-gps-pop-key { flex:0 0 52px; color:#565e74; font-size:10px; padding-top:1px; text-transform:uppercase; }
.dispatch-gps-empty { margin:0; padding:18px; line-height:1.7; font-size:13px; color:#475569; }
.dispatch-gps-map-note { margin-top:8px; }
.dispatch-gps-map-switch { margin-top:6px; padding:5px 10px; font-size:12px; color:#0f172a; background:#fff; border:1px solid #cbd5e1; border-radius:6px; cursor:pointer; }
.dispatch-gps-map-switch[hidden] { display:none; }
@media(max-width:850px) { .dispatch-gps-layout { grid-template-columns:minmax(0,1fr); } .dispatch-gps-map { height:330px; } .dispatch-gps-list { max-height:300px; } }

:where(.dispatch-gps-modality) { background:#64748b; }
:where(.dispatch-gps-operational) { background:#f1f5f9; color:#475569; }

.dispatch-gps-modality.badge-exc { background:#fef3c7; color:#92400e; }
