/* V2.6: monitor published route progress from the existing route/visit records. */
#map-company-card .intel-detail-header{align-items:center;gap:8px}
#map-company-card .intel-detail-close{flex:0 0 30px;width:30px;height:30px;padding:0;border:1px solid #34516d;border-radius:8px;background:#122942;color:#dbeeff;font-size:20px;line-height:1;cursor:pointer}
#map-company-card .intel-detail-close:hover{border-color:#41b7ff;background:#173b5b}
#map-company-card .intel-route-monitor{padding-top:10px}
#map-company-card .intel-route-monitor-heading{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
#map-company-card .intel-route-monitor-heading h4,#map-company-card .intel-route-monitor h4{margin:0;color:#e7f1fc;font-size:11px}
#map-company-card .intel-route-monitor-heading strong{color:#70dcb7;font-size:10px;white-space:nowrap}
#map-company-card .intel-route-progress{height:6px;margin:8px 0;border-radius:999px;background:#243c54;overflow:hidden}
#map-company-card .intel-route-progress span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#1596ff,#36d2a0);transition:width .25s ease}
#map-company-card .intel-gps-unavailable{margin:6px 0;color:#91a9c2;font-size:9px;line-height:1.45}
#map-company-card .intel-route-stop{padding:0;background:transparent}
#map-company-card .intel-route-stop>button{display:grid;grid-template-columns:25px minmax(0,1fr);align-items:center;gap:8px;width:100%;padding:7px;border:1px solid #233c55;border-radius:8px;background:#0d1f32;color:#dce9f7;text-align:left;cursor:pointer}
#map-company-card .intel-route-stop>button:hover{border-color:#358dcc;background:#102a43}
#map-company-card .intel-route-stop>button>i{display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#1d75d4;color:#fff;font-size:10px;font-style:normal;font-weight:750}
#map-company-card .intel-route-in_progress>button>i{background:#d28b22;box-shadow:0 0 0 3px #d28b2229}
#map-company-card .intel-route-not_completed>button>i{background:#bc4b58}
#map-company-card .intel-route-stop>button>span{display:grid;gap:3px;min-width:0}
#map-company-card .intel-route-stop>button strong{overflow-wrap:anywhere;color:#edf4fc;font-size:9px}
#map-company-card .intel-route-stop>button small{color:#9fb3c8;font-size:8px;line-height:1.4}
#map-company-card .intel-completed-stops{margin-top:7px;border-top:1px solid #213a53;padding-top:7px}
#map-company-card .intel-completed-stops>summary{cursor:pointer;color:#8fd9c2;font-size:9px;font-weight:650}
#map-company-card .intel-route-monitor .intel-empty{padding:8px;color:#91a9c2;font-size:9px}
#map-company-card .intel-current-service{margin:7px 0;padding:8px 9px;border:1px solid #8d692b;border-radius:8px;background:#392c16;color:#ffe0a6;font-size:9px;line-height:1.5}
#map-company-card .intel-current-service strong{color:#fff0c7}
#map-company-card .intel-route-admin-actions{display:flex;justify-content:flex-end;margin-top:8px;padding-top:7px;border-top:1px solid #213a53}
#map-company-card .intel-route-admin-actions button{min-height:30px;padding:5px 10px;border:1px solid #844755;border-radius:7px;background:#381c28;color:#ffc4ca;font-size:9px;font-weight:650;cursor:pointer}
#map-company-card .intel-route-admin-actions button:hover:not(:disabled){background:#542432;border-color:#d96c7b}
#map-company-card .intel-route-admin-actions button:disabled{opacity:.5;cursor:not-allowed}
body.route-planning-active #route-date{display:none}
body.route-planning-active .route-metrics{line-height:1.65}
body.route-planning-active .route-stop-estimate{display:block;margin-top:4px;color:#a9c6e2;font-size:9px;line-height:1.45}
@media(max-width:900px){#map-company-card{max-height:60vh;overflow:auto}#map-company-card .intel-route-stop>button{min-height:42px}}
@media(prefers-reduced-motion:reduce){#map-company-card .intel-route-progress span{transition:none}}

/* v2.8 · dados da parada e atalho de navegação */
.route-stop-devices{display:block;color:var(--muted,#8fa3bf);font-size:.78rem;margin-top:2px}
.route-stop-waze{display:inline-block;margin-top:6px;padding:4px 10px;border-radius:999px;border:1px solid rgba(51,204,255,.45);color:#33ccff;font-size:.78rem;font-weight:600;text-decoration:none}
.route-stop-waze:hover,.route-stop-waze:focus-visible{background:rgba(51,204,255,.12);outline:none}


/* v2.8 · celular da equipe (StarMDM) */
.team-device-control{display:flex;flex-direction:column;gap:4px;margin-top:8px;font-size:.8rem;color:var(--muted,#8fa3bf)}
.team-device-control select{padding:6px 8px;border-radius:8px}
.team-device-info{display:block;margin-top:4px;color:var(--muted,#8fa3bf);font-size:.76rem}
.team-position-pin{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;font:700 11px/1 system-ui,sans-serif;color:#fff;border:3px solid #fff;box-shadow:0 2px 8px rgba(0,0,0,.45)}
.team-position-pin.is-recent{background:#16a34a}
.team-position-pin.is-old{background:#64748b}

