/* PALUX 1.4.8 — live profile markers, street-level focus, status rings, and safe active-route tracking */
.palux-live-layout{display:grid;grid-template-columns:minmax(360px,400px) minmax(0,1fr);gap:18px;align-items:start}
.palux-route-panel{display:flex;flex-direction:column;gap:16px;max-height:clamp(650px,78vh,860px);overflow-y:auto;overscroll-behavior:contain;padding-right:5px;scrollbar-gutter:stable}
.palux-route-toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;justify-content:space-between;margin-bottom:14px}
.palux-route-toolbar .left,.palux-route-toolbar .right{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.palux-route-card{width:100%;border:1px solid var(--border);background:var(--surface);border-radius:20px;padding:0;text-align:left;transition:.18s ease;display:block;color:inherit;overflow:hidden;min-height:230px}.palux-route-card-main{width:100%;border:0;background:transparent;color:inherit;text-align:left;padding:18px;cursor:pointer}.palux-route-card-actions{display:flex;justify-content:flex-end;gap:10px;padding:12px 18px 16px;border-top:1px solid var(--border);background:var(--surface)}.palux-route-card-actions .secondary-btn{min-width:100px;justify-content:center}
.palux-route-card:hover,.palux-route-card:focus-within,.palux-route-card.active{border-color:var(--gold);box-shadow:0 8px 24px rgba(14,30,52,.08);transform:translateY(-1px)}
.palux-route-card-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.palux-route-card h4{margin:0;font-size:20px}.palux-route-card p{margin:5px 0 0;color:var(--muted);font-size:13px;line-height:1.35}
.palux-route-card-date{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0 0;padding:9px 11px;border-radius:12px;background:rgba(213,168,43,.12);border:1px solid rgba(213,168,43,.28)}.palux-route-card-date span{font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:800}.palux-route-card-date strong{font-size:13px;color:var(--navy);text-align:right}.palux-route-progress{height:10px;border-radius:999px;background:var(--soft);overflow:hidden;margin:14px 0 10px}.palux-route-progress span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--gold),#f4d979)}
.palux-route-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.palux-route-metrics div{background:var(--soft);border-radius:13px;padding:10px}.palux-route-metrics small{display:block;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.05em}.palux-route-metrics strong{display:block;margin-top:4px;font-size:14px;line-height:1.2}
.palux-live-map-card{padding:0;overflow:hidden;min-height:780px;position:sticky;top:16px;isolation:isolate}
.palux-live-map-head{padding:16px 18px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;gap:12px;align-items:center;background:var(--surface)}
.palux-live-map-head h3{margin:0}.palux-live-map-head p{margin:4px 0 0;color:var(--muted);font-size:12px}
.palux-map-shell{position:relative;height:clamp(650px,74vh,820px);background:#e9eef3;overflow:hidden;touch-action:none;user-select:none}
.palux-map-tiles{position:absolute;inset:0;overflow:hidden}.palux-map-tile{position:absolute;width:256px;height:256px;max-width:none;pointer-events:none}
.palux-map-overlay{position:absolute;inset:0;pointer-events:none}.palux-map-line{position:absolute;inset:0;width:100%;height:100%;overflow:visible}.palux-map-marker{position:absolute;transform:translate(-50%,-100%);pointer-events:auto;display:flex;flex-direction:column;align-items:center;gap:4px;z-index:5}
.palux-map-pin{width:32px;height:32px;border-radius:50% 50% 50% 8px;transform:rotate(-45deg);background:var(--navy);border:3px solid white;box-shadow:0 4px 12px rgba(14,30,52,.25);display:grid;place-items:center}.palux-map-pin span{transform:rotate(45deg);color:white;font-size:12px;font-weight:800}.palux-map-marker.current .palux-map-pin{background:var(--gold)}.palux-map-marker.completed .palux-map-pin{background:#1b8b5a}.palux-map-marker.failed .palux-map-pin{background:#c64444}.palux-map-marker.rts .palux-map-pin{background:#a26118}
.palux-map-label{white-space:nowrap;background:rgba(255,255,255,.95);border:1px solid rgba(14,30,52,.12);border-radius:8px;padding:4px 7px;font-size:10px;font-weight:700;color:var(--navy);box-shadow:0 3px 10px rgba(14,30,52,.1)}
.palux-map-controls{position:absolute;top:12px;right:12px;z-index:10;display:flex;flex-direction:column;gap:6px}.palux-map-controls button{width:38px;height:38px;border-radius:12px;border:1px solid rgba(14,30,52,.18);background:white;color:var(--navy);font-size:18px;font-weight:800;box-shadow:0 4px 12px rgba(14,30,52,.12);cursor:pointer}
.palux-map-empty{position:absolute;left:16px;bottom:18px;z-index:7;max-width:min(430px,calc(100% - 88px));pointer-events:none}.palux-map-empty>div{background:rgba(255,255,255,.94);border:1px solid rgba(14,30,52,.14);border-radius:16px;padding:14px 16px;text-align:left;box-shadow:0 8px 26px rgba(14,30,52,.16);backdrop-filter:blur(8px);pointer-events:auto}.palux-map-empty strong{display:block;font-size:15px;color:var(--navy)}.palux-map-empty p{margin:5px 0 10px;color:var(--muted);font-size:12px}
.palux-map-attribution{position:absolute;bottom:0;right:0;z-index:10;background:rgba(255,255,255,.88);padding:3px 7px;font-size:9px;color:#405064}.palux-map-attribution a{color:inherit}
.palux-route-detail-strip{padding:16px 18px;background:var(--surface);display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.palux-route-detail-strip div{border-left:3px solid var(--gold);padding-left:9px}.palux-route-detail-strip small{display:block;color:var(--muted);font-size:10px;text-transform:uppercase}.palux-route-detail-strip strong{display:block;margin-top:3px;font-size:13px;word-break:break-word}
.palux-route-stop-list{display:flex;flex-direction:column;gap:8px;margin-top:12px}.palux-route-stop{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:10px;align-items:center;border:1px solid var(--border);border-radius:14px;padding:10px;background:var(--surface)}.palux-route-stop-number{width:34px;height:34px;border-radius:11px;background:var(--soft);display:grid;place-items:center;font-weight:800;color:var(--navy)}.palux-route-stop h5{margin:0;font-size:13px}.palux-route-stop p{margin:3px 0 0;color:var(--muted);font-size:11px}.palux-route-stop-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.palux-route-history-row{display:grid;grid-template-columns:1.1fr 1fr .8fr .8fr .8fr auto;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid var(--border)}
.palux-route-form-help{font-size:11px;color:var(--muted);margin-top:5px}.palux-route-associate-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.palux-location-privacy{margin-top:12px;padding:12px;border-radius:14px;background:var(--soft);font-size:12px;color:var(--muted)}
.palux-route-date-control{display:flex;align-items:center;gap:7px;border:1px solid var(--border);border-radius:12px;padding:6px 9px;background:var(--surface);color:var(--muted)}.palux-route-date-control span{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;white-space:nowrap}.palux-route-date-control input{border:0;background:transparent;color:var(--navy);font:inherit;padding:0;min-width:132px}.palux-route-date-control input:focus{outline:2px solid var(--gold);outline-offset:3px;border-radius:6px}
@media(max-width:1120px){.palux-live-layout{grid-template-columns:1fr}.palux-route-panel{max-height:none;overflow:visible;order:2}.palux-live-map-card{position:relative;top:auto;min-height:0;order:1}.palux-map-shell{height:560px}}
@media(max-width:680px){.palux-route-card{min-height:0}.palux-route-card-main{padding:15px}.palux-route-card-actions{padding:11px 15px 14px}.palux-route-card-actions .secondary-btn{flex:1;min-width:0}.palux-route-date-control{width:100%;justify-content:space-between}.palux-route-date-control input{min-width:0}.palux-route-toolbar .left{width:100%}.palux-route-toolbar .left>.search{flex:1;min-width:145px}.palux-map-shell{height:430px}.palux-route-detail-strip{grid-template-columns:repeat(2,1fr)}.palux-route-stop{grid-template-columns:34px minmax(0,1fr)}.palux-route-stop-actions{grid-column:1/-1;justify-content:flex-start}.palux-route-history-row{grid-template-columns:1fr 1fr}.palux-route-history-row>*:last-child{grid-column:1/-1}}

.palux-operations-kpi{display:block;width:100%;border:0;background:transparent;padding:0;text-align:left;color:inherit;cursor:pointer;border-radius:18px}.palux-operations-kpi:focus-visible{outline:3px solid var(--gold);outline-offset:3px}.palux-operations-kpi>div{height:100%;transition:.18s ease}.palux-operations-kpi:hover>div{transform:translateY(-2px);box-shadow:0 10px 26px rgba(14,30,52,.10)}

.palux-route-driver-line{display:flex;align-items:center;gap:11px;min-width:0}.palux-route-driver-line>div{min-width:0}.palux-route-driver-line h4,.palux-route-driver-line p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.palux-route-driver-avatar{position:relative;flex:0 0 52px;width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,var(--navy),#263f62);border:3px solid #fff;box-shadow:0 4px 12px rgba(14,30,52,.18);color:#fff;font-size:12px;font-weight:800;overflow:hidden}.palux-route-driver-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.palux-route-driver-avatar.compact{width:38px;height:38px;flex-basis:38px}.palux-route-driver-avatar.large{width:68px;height:68px;flex-basis:68px;font-size:18px;border-width:4px}
.palux-route-profile-summary{display:flex;align-items:center;gap:14px;padding:14px;border:1px solid var(--border);border-radius:18px;background:var(--soft)}.palux-route-profile-summary strong{display:block;font-size:17px;color:var(--navy)}.palux-route-profile-summary span{display:block;margin-top:4px;color:var(--muted);font-size:12px}
.palux-live-map-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.palux-live-map-actions strong{white-space:nowrap}
.palux-map-marker.driver-marker{border:0;background:transparent;padding:0;cursor:pointer;color:inherit}.palux-map-driver-photo{position:relative;width:54px;height:54px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,var(--navy),#263f62);border:4px solid #fff;box-shadow:0 7px 20px rgba(14,30,52,.34);color:#fff;font-size:13px;font-weight:900;overflow:visible}.palux-map-driver-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:50%}.palux-map-driver-photo em{position:absolute;right:-10px;bottom:-7px;z-index:2;max-width:76px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:var(--gold);color:var(--navy);border:2px solid #fff;border-radius:999px;padding:2px 6px;font-size:9px;font-style:normal;font-weight:900;box-shadow:0 3px 8px rgba(14,30,52,.22)}.palux-map-marker.driver-marker:hover .palux-map-driver-photo,.palux-map-marker.driver-marker:focus-visible .palux-map-driver-photo{transform:scale(1.08);box-shadow:0 9px 26px rgba(14,30,52,.42)}.palux-map-marker.driver-marker:focus-visible{outline:none}.palux-map-marker.driver-marker .palux-map-label{margin-top:4px;max-width:150px;overflow:hidden;text-overflow:ellipsis}
body.palux-map-expanded-open{overflow:hidden}.palux-live-map-card.palux-map-expanded{position:fixed;inset:18px;z-index:10000;min-height:0;border:1px solid var(--border);box-shadow:0 30px 80px rgba(0,0,0,.35);background:var(--surface)}.palux-live-map-card.palux-map-expanded .palux-map-shell{height:calc(100vh - 190px);min-height:520px}.palux-live-map-card.palux-map-expanded .palux-live-map-head{padding:14px 18px}.palux-live-map-card.palux-map-expanded .palux-route-detail-strip{padding:12px 18px}
@media(min-width:1500px){.palux-live-layout{grid-template-columns:minmax(280px,350px) minmax(0,1fr)}.palux-map-shell{height:clamp(700px,77vh,900px)}.palux-live-map-card{min-height:820px}}
@media(max-width:680px){.palux-route-card{min-height:0}.palux-route-card-main{padding:15px}.palux-route-card-actions{padding:11px 15px 14px}.palux-route-card-actions .secondary-btn{flex:1;min-width:0}.palux-route-date-control{width:100%;justify-content:space-between}.palux-route-date-control input{min-width:0}.palux-route-toolbar .left{width:100%}.palux-route-toolbar .left>.search{flex:1;min-width:145px}.palux-live-map-actions{width:100%;justify-content:flex-start}.palux-live-map-card.palux-map-expanded{inset:6px}.palux-live-map-card.palux-map-expanded .palux-map-shell{height:calc(100vh - 245px);min-height:380px}.palux-map-driver-photo{width:46px;height:46px}.palux-map-marker.driver-marker .palux-map-label{max-width:110px}}


/* PALUX Route Command */
.palux-route-card-badges{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}.palux-command-health,.palux-command-neutral,.palux-command-issue-count{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:5px 9px;font-size:10px;font-weight:900;letter-spacing:.02em;white-space:nowrap}.palux-command-health.assigned{background:#eef2f6;color:#405064}.palux-command-health.pace{background:#e8f6ef;color:#166b49}.palux-command-health.ahead{background:#e6f6f7;color:#116775}.palux-command-health.attention{background:#fff2d8;color:#945d08}.palux-command-health.urgent{background:#ffe5e5;color:#a32121}.palux-command-health.offline{background:#ebe8f1;color:#5e5470}.palux-command-health.complete{background:#e7f5eb;color:#1b7245}.palux-command-neutral{background:var(--soft);color:var(--muted)}.palux-command-issue-count{min-width:25px;height:25px;padding:0;background:#a32121;color:#fff}.palux-route-command-summary{display:flex;justify-content:space-between;gap:8px;margin-top:10px;padding-top:9px;border-top:1px dashed var(--border);font-size:10px;color:var(--muted)}.palux-route-command-summary strong{font-size:10px;color:var(--navy);text-align:right}
#modal:has(#modalForm[data-type="routecommand"]) .modal-card{width:min(1180px,calc(100vw - 30px));max-height:94vh;padding:0;overflow:auto}#modal:has(#modalForm[data-type="routecommand"]) .modal-head{position:sticky;top:0;z-index:20;padding:16px 20px;background:rgba(255,255,255,.96);border-bottom:1px solid var(--border);backdrop-filter:blur(12px)}#modalForm[data-type="routecommand"]{display:block;padding:18px;background:var(--soft)}
.palux-command-shell{display:flex;flex-direction:column;gap:16px}.palux-command-hero{display:grid;grid-template-columns:minmax(0,1fr) 190px auto;align-items:center;gap:18px;padding:20px;border-radius:22px;background:linear-gradient(135deg,var(--navy),#263f62);color:#fff}.palux-command-identity{display:flex;align-items:center;gap:15px;min-width:0}.palux-command-identity h2{margin:3px 0 5px;color:#fff;font-size:24px}.palux-command-identity p{margin:0;color:rgba(255,255,255,.72);font-size:12px}.palux-command-eyebrow{font-size:10px;text-transform:uppercase;letter-spacing:.12em;color:#f2cb58;font-weight:900}.palux-command-badge-row{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-top:10px}.palux-command-hero .status{background:rgba(255,255,255,.12);color:#fff;border-color:rgba(255,255,255,.2)}.palux-command-hero .palux-command-neutral{background:rgba(255,255,255,.12);color:#fff}.palux-command-progress{text-align:center}.palux-command-progress>strong{display:block;color:#f2cb58;font-size:34px}.palux-command-progress>span{display:block;margin-top:2px;color:rgba(255,255,255,.7);font-size:10px;text-transform:uppercase}.palux-command-progress>div{height:8px;margin-top:9px;border-radius:999px;background:rgba(255,255,255,.15);overflow:hidden}.palux-command-progress i{display:block;height:100%;border-radius:inherit;background:#f2cb58}.palux-command-hero-actions{display:flex;flex-direction:column;gap:8px}.palux-command-hero-actions .secondary-btn{background:rgba(255,255,255,.11);color:#fff;border-color:rgba(255,255,255,.25)}
.palux-command-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.palux-command-metrics>div{padding:14px;border:1px solid var(--border);border-radius:16px;background:var(--surface)}.palux-command-metrics small,.palux-command-facts small{display:block;color:var(--muted);font-size:9px;text-transform:uppercase;letter-spacing:.07em}.palux-command-metrics strong{display:block;margin-top:5px;font-size:19px;color:var(--navy)}.palux-command-metrics span{display:block;margin-top:4px;color:var(--muted);font-size:10px}.palux-command-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.palux-command-grid.lower{grid-template-columns:.85fr 1.15fr}.palux-command-panel{padding:17px;border:1px solid var(--border);border-radius:20px;background:var(--surface);min-width:0}.palux-command-panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:13px}.palux-command-panel-head span{display:block;color:var(--muted);font-size:9px;text-transform:uppercase;letter-spacing:.08em}.palux-command-panel-head h3{margin:4px 0 0;font-size:16px}.palux-command-health-callout{padding:14px;border-radius:15px;border-left:4px solid var(--gold);background:var(--soft)}.palux-command-health-callout strong,.palux-command-health-callout span{display:block}.palux-command-health-callout span{margin-top:4px;color:var(--muted);font-size:11px}.palux-command-health-callout.urgent{border-color:#b52b2b;background:#fff1f1}.palux-command-health-callout.attention{border-color:#d58c16;background:#fff8e9}.palux-command-health-callout.complete,.palux-command-health-callout.pace,.palux-command-health-callout.ahead{border-color:#23845a;background:#eff9f4}.palux-command-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:12px}.palux-command-facts>div{padding:10px;border-radius:12px;background:var(--soft)}.palux-command-facts strong{display:block;margin-top:4px;font-size:11px;overflow-wrap:anywhere}
.palux-command-exception-list{display:flex;flex-direction:column;gap:9px}.palux-command-exception{display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:10px;align-items:start;padding:11px;border:1px solid var(--border);border-radius:14px;background:var(--surface)}.palux-command-exception.urgent{border-color:#e8b2b2;background:#fff7f7}.palux-command-exception-icon{width:28px;height:28px;border-radius:9px;display:grid;place-items:center;background:#fff2d8;color:#945d08;font-weight:900}.palux-command-exception.urgent .palux-command-exception-icon{background:#ffe2e2;color:#a32121}.palux-command-row-title{display:flex;justify-content:space-between;gap:8px}.palux-command-row-title span{color:var(--muted);font-size:9px;text-transform:uppercase}.palux-command-exception p{margin:4px 0;color:var(--text);font-size:11px}.palux-command-exception small{color:var(--muted);font-size:9px}.palux-command-clear{padding:16px;border:1px dashed var(--border);border-radius:15px;background:var(--soft)}.palux-command-clear strong,.palux-command-clear span{display:block}.palux-command-clear span{margin-top:5px;color:var(--muted);font-size:11px;line-height:1.45}
.palux-command-timeline{display:flex;flex-direction:column;gap:0;max-height:430px;overflow:auto;padding-right:4px}.palux-command-timeline-row{display:grid;grid-template-columns:18px minmax(0,1fr);gap:10px;padding:0 0 16px;position:relative}.palux-command-timeline-row:before{content:"";position:absolute;left:7px;top:16px;bottom:0;width:2px;background:var(--border)}.palux-command-timeline-row:last-child:before{display:none}.palux-command-timeline-dot{width:16px;height:16px;border-radius:50%;background:var(--gold);border:3px solid #fff;box-shadow:0 0 0 1px var(--border);z-index:1}.palux-command-timeline-dot.urgent{background:#b52b2b}.palux-command-timeline-dot.attention{background:#d58c16}.palux-command-timeline-row strong{font-size:12px}.palux-command-timeline-row p{margin:3px 0;color:var(--text);font-size:11px}.palux-command-timeline-row small{color:var(--muted);font-size:9px}.command-stops{max-height:430px;overflow:auto;padding-right:4px}.palux-command-footer{display:flex;justify-content:space-between;gap:16px;align-items:flex-end;padding:16px;border:1px solid var(--border);border-radius:18px;background:var(--surface)}.palux-command-disclosure{display:flex;flex-direction:column;gap:4px;max-width:720px}.palux-command-disclosure strong{font-size:12px;color:var(--navy)}.palux-command-disclosure span{font-size:10px;line-height:1.45;color:var(--muted)}
@media(max-width:980px){.palux-command-hero{grid-template-columns:1fr 150px}.palux-command-hero-actions{grid-column:1/-1;flex-direction:row}.palux-command-metrics{grid-template-columns:repeat(3,1fr)}.palux-command-grid,.palux-command-grid.lower{grid-template-columns:1fr}}@media(max-width:620px){#modalForm[data-type="routecommand"]{padding:10px}.palux-command-hero{grid-template-columns:1fr;padding:16px}.palux-command-progress{text-align:left}.palux-command-hero-actions{flex-direction:column}.palux-command-metrics{grid-template-columns:repeat(2,1fr)}.palux-command-facts{grid-template-columns:repeat(2,1fr)}.palux-command-footer{display:block}.palux-command-footer .modal-actions{justify-content:stretch;flex-direction:column}.palux-command-footer .modal-actions button{width:100%}.palux-command-exception{grid-template-columns:28px minmax(0,1fr)}.palux-command-exception>button{grid-column:1/-1}}

/* PALUX 1.4.7 — visible route import, real driver roster, stop detail workflow, and owner-only correction controls. */
.palux-route-primary-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;margin-bottom:14px;border:1px solid rgba(213,168,43,.34);border-radius:16px;background:linear-gradient(135deg,rgba(213,168,43,.13),rgba(255,255,255,.8))}.palux-route-primary-actions>div:first-child{min-width:220px}.palux-route-primary-actions strong{display:block;color:var(--navy);font-size:15px}.palux-route-primary-actions span{display:block;margin-top:4px;color:var(--muted);font-size:12px;line-height:1.4}.palux-route-primary-actions>div:last-child{display:flex;gap:8px;align-items:center;justify-content:flex-end;flex-wrap:wrap}.palux-route-primary-actions .employee-document-upload{position:relative;overflow:hidden;cursor:pointer}.palux-route-primary-actions .employee-document-upload input{position:absolute;inset:0;opacity:0;cursor:pointer}
.palux-map-waiting-drivers{position:absolute;left:14px;top:14px;z-index:9;width:min(340px,calc(100% - 84px));max-height:245px;overflow:auto;border:1px solid rgba(14,30,52,.16);border-radius:16px;background:rgba(255,255,255,.94);box-shadow:0 10px 30px rgba(14,30,52,.18);backdrop-filter:blur(10px)}.palux-map-waiting-drivers:empty{display:none}.palux-map-waiting-head{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:10px 12px;border-bottom:1px solid rgba(14,30,52,.1)}.palux-map-waiting-head strong{font-size:12px;color:var(--navy)}.palux-map-waiting-head span{font-size:10px;color:var(--muted)}.palux-map-waiting-list{display:flex;flex-direction:column;padding:6px}.palux-map-waiting-driver{display:grid;grid-template-columns:38px minmax(0,1fr);gap:9px;align-items:center;width:100%;border:0;border-radius:12px;background:transparent;color:inherit;text-align:left;padding:7px;cursor:pointer}.palux-map-waiting-driver:hover,.palux-map-waiting-driver:focus-visible{background:var(--soft);outline:2px solid var(--gold);outline-offset:-2px}.palux-map-waiting-driver>span strong,.palux-map-waiting-driver>span small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.palux-map-waiting-driver>span strong{font-size:12px;color:var(--navy)}.palux-map-waiting-driver>span small{margin-top:2px;font-size:10px;color:var(--muted)}
.palux-command-clear .secondary-btn{margin-top:12px;align-self:flex-start}.palux-route-history-driver{display:flex;align-items:center;gap:9px;min-width:0}.palux-route-history-driver>div{min-width:0}.palux-route-history-driver strong,.palux-route-history-driver small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:900px){.palux-route-primary-actions{align-items:flex-start;flex-direction:column}.palux-route-primary-actions>div:last-child{width:100%;justify-content:flex-start}.palux-route-primary-actions>div:last-child>*{flex:1;justify-content:center;min-width:150px}}
@media(max-width:680px){.palux-map-waiting-drivers{left:8px;top:8px;width:calc(100% - 62px);max-height:190px}.palux-route-primary-actions>div:last-child>*{width:100%;flex-basis:100%}}


/* PALUX 1.4.8 — live associate markers and street-level route focus */
.palux-map-status-legend{position:absolute;left:12px;bottom:12px;z-index:8;display:flex;flex-wrap:wrap;gap:6px;max-width:calc(100% - 110px);padding:7px 9px;border:1px solid rgba(14,30,52,.12);border-radius:12px;background:rgba(255,255,255,.94);box-shadow:0 5px 18px rgba(14,30,52,.14);pointer-events:none}.palux-map-status-legend span{display:inline-flex;align-items:center;gap:5px;font-size:9px;font-weight:850;color:var(--navy)}.palux-map-status-legend span::before{content:"";width:8px;height:8px;border-radius:50%;background:#4f78b8}.palux-map-status-legend .pace::before{background:#1b8b5a}.palux-map-status-legend .attention::before{background:#e09b19}.palux-map-status-legend .urgent::before{background:#c92e37}.palux-map-status-legend .offline::before{background:#7f8894}
.palux-map-marker.driver-marker.pace .palux-map-driver-photo,.palux-map-marker.driver-marker.ahead .palux-map-driver-photo,.palux-map-marker.driver-marker.complete .palux-map-driver-photo{border-color:#1b8b5a;box-shadow:0 0 0 5px rgba(27,139,90,.18),0 8px 22px rgba(14,30,52,.34)}.palux-map-marker.driver-marker.attention .palux-map-driver-photo{border-color:#e09b19;box-shadow:0 0 0 5px rgba(224,155,25,.2),0 8px 22px rgba(14,30,52,.34)}.palux-map-marker.driver-marker.urgent .palux-map-driver-photo{border-color:#c92e37;box-shadow:0 0 0 6px rgba(201,46,55,.22),0 8px 22px rgba(14,30,52,.34);animation:paluxDriverUrgentPulse 1.6s ease-in-out infinite}.palux-map-marker.driver-marker.offline .palux-map-driver-photo{border-color:#7f8894;filter:grayscale(.6);opacity:.88}.palux-map-marker.driver-marker.assigned .palux-map-driver-photo{border-color:#4f78b8}.palux-map-marker.driver-marker .palux-map-label{display:flex;flex-direction:column;align-items:center;gap:1px;padding:5px 8px}.palux-map-marker.driver-marker .palux-map-label strong{font-size:10px;line-height:1.15}.palux-map-marker.driver-marker .palux-map-label small{font-size:8px;color:#637083;line-height:1.15}.palux-map-marker.driver-marker{transition:transform .18s ease}.palux-map-marker.driver-marker:hover,.palux-map-marker.driver-marker:focus-visible{z-index:12}.palux-live-tracking-banner{display:flex;align-items:center;gap:10px;margin-top:12px;padding:11px 13px;border:1px solid rgba(27,139,90,.25);border-radius:12px;background:rgba(27,139,90,.08)}.palux-live-tracking-banner>span{width:11px;height:11px;border-radius:50%;background:#1b8b5a;box-shadow:0 0 0 5px rgba(27,139,90,.15);animation:paluxLiveDot 1.8s ease-in-out infinite}.palux-live-tracking-banner div{display:flex;flex-direction:column}.palux-live-tracking-banner strong{font-size:12px;color:var(--navy)}.palux-live-tracking-banner small{font-size:10px;color:#5d6877}@keyframes paluxDriverUrgentPulse{0%,100%{box-shadow:0 0 0 5px rgba(201,46,55,.18),0 8px 22px rgba(14,30,52,.34)}50%{box-shadow:0 0 0 11px rgba(201,46,55,.05),0 10px 26px rgba(14,30,52,.42)}}@keyframes paluxLiveDot{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.55;transform:scale(.82)}}@media(max-width:680px){.palux-map-status-legend{left:8px;bottom:8px;max-width:calc(100% - 86px)}.palux-map-status-legend span{font-size:8px}.palux-map-marker.driver-marker .palux-map-label small{display:none}}

/* PALUX Code 22 station staging + stable live-map patch */
.palux-map-marker.driver-marker.station-location .palux-map-driver-photo{border-color:#4f78b8;box-shadow:0 0 0 6px rgba(79,120,184,.18),0 8px 22px rgba(14,30,52,.34)}
.palux-map-marker.driver-marker .palux-map-station-address{display:block;max-width:210px;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#34475f;font-size:8px;font-weight:700}
.palux-map-empty-actions,.palux-station-location-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.palux-station-location-card{margin-top:18px}.palux-station-location-status{display:flex;flex-direction:column;gap:6px;margin:10px 0 14px;padding:14px;border:1px solid rgba(14,30,52,.12);border-radius:14px;background:var(--soft)}.palux-station-location-status strong{color:var(--navy);font-size:14px}.palux-station-location-status small{color:var(--muted);font-size:11px;line-height:1.45}
@media(max-width:680px){.palux-map-marker.driver-marker .palux-map-station-address{display:none}.palux-map-empty-actions>*{width:100%}}

/* PALUX Code 22 — all assigned/on-road drivers overview with exact-street focus. */
.palux-map-shell.palux-all-drivers-map .palux-map-marker.driver-marker{z-index:8}
.palux-map-shell.palux-all-drivers-map .palux-map-marker.driver-marker .palux-map-label{opacity:0;visibility:hidden;transform:translateY(3px);transition:opacity .14s ease,transform .14s ease,visibility .14s ease;pointer-events:none}
.palux-map-shell.palux-all-drivers-map .palux-map-marker.driver-marker:hover .palux-map-label,.palux-map-shell.palux-all-drivers-map .palux-map-marker.driver-marker:focus-visible .palux-map-label{opacity:1;visibility:visible;transform:translateY(0)}
.palux-map-shell.palux-all-drivers-map .palux-map-marker.driver-marker:hover,.palux-map-shell.palux-all-drivers-map .palux-map-marker.driver-marker:focus-visible{z-index:30;outline:none}
.palux-map-shell.palux-all-drivers-map .palux-map-driver-photo{width:52px;height:52px}
.palux-map-shell.palux-all-drivers-map .palux-map-marker.station-location .palux-map-driver-photo::after{content:"Station";position:absolute;left:50%;bottom:-17px;transform:translateX(-50%);padding:2px 5px;border-radius:999px;background:#fff;color:#294767;border:1px solid rgba(41,71,103,.18);font-size:7px;font-style:normal;font-weight:900;white-space:nowrap;box-shadow:0 2px 7px rgba(14,30,52,.13)}
@media(max-width:680px){.palux-map-shell.palux-all-drivers-map .palux-map-driver-photo{width:44px;height:44px}.palux-map-shell.palux-all-drivers-map .palux-map-marker.driver-marker .palux-map-label{display:flex}}

/* PALUX Code 22 — all drivers visible at station and moving live. */
.palux-map-station-note{position:absolute;left:50%;top:12px;z-index:11;display:flex;flex-direction:column;align-items:center;gap:2px;max-width:min(430px,calc(100% - 190px));padding:7px 12px;border:1px solid rgba(41,71,103,.18);border-radius:12px;background:rgba(255,255,255,.94);box-shadow:0 6px 20px rgba(14,30,52,.16);backdrop-filter:blur(9px);transform:translateX(-50%);pointer-events:none;text-align:center}.palux-map-station-note:empty{display:none}.palux-map-station-note strong{color:var(--navy);font-size:10px}.palux-map-station-note span{color:var(--muted);font-size:8px;line-height:1.3}
.palux-map-overlap-tether{stroke:#4f78b8;stroke-width:1.5;stroke-dasharray:3 5;opacity:.28;pointer-events:none}
.palux-map-driver-trail{opacity:.72;pointer-events:none;filter:drop-shadow(0 1px 2px rgba(14,30,52,.2))}.palux-map-driver-trail.assigned{stroke:#4f78b8}.palux-map-driver-trail.pace,.palux-map-driver-trail.ahead,.palux-map-driver-trail.complete{stroke:#1b8b5a}.palux-map-driver-trail.attention{stroke:#e09b19}.palux-map-driver-trail.urgent{stroke:#c92e37}.palux-map-driver-trail.offline{stroke:#7f8894;stroke-dasharray:7 6}
.palux-map-marker.driver-marker.spread-location{z-index:10}.palux-map-marker.driver-marker.spread-location .palux-map-driver-photo{transition:transform .16s ease,box-shadow .16s ease}.palux-map-marker.driver-marker.spread-location:hover .palux-map-driver-photo,.palux-map-marker.driver-marker.spread-location:focus-visible .palux-map-driver-photo{transform:scale(1.1)}
@media(max-width:680px){.palux-map-station-note{top:58px;max-width:calc(100% - 24px)}.palux-map-station-note span{display:none}.palux-map-overlap-tether{opacity:.2}}
/* PALUX Archive 166 — management exact-driver focus */
.palux-map-focus-note{position:absolute;left:50%;top:14px;z-index:15;display:none;transform:translateX(-50%);flex-direction:column;align-items:center;max-width:min(520px,calc(100% - 190px));padding:9px 14px;border:1px solid rgba(14,30,52,.18);border-radius:14px;background:rgba(255,255,255,.96);box-shadow:0 10px 28px rgba(14,30,52,.2);backdrop-filter:blur(10px);text-align:center;pointer-events:none}.palux-map-focus-note strong{font-size:13px;color:var(--navy)}.palux-map-focus-note span{margin-top:2px;font-size:10px;color:#596578}.palux-route-card.active{border-color:var(--gold);box-shadow:0 0 0 3px rgba(215,171,39,.18),0 12px 28px rgba(14,30,52,.12)}@media(max-width:680px){.palux-map-focus-note{left:10px;right:78px;transform:none;max-width:none;align-items:flex-start;text-align:left}}
