/* Taxi, VTC, transport de patients : compléments au socle */
.carte>.t .lien{color:var(--acc-d);font-weight:700;font-size:12.5px;display:inline-flex;align-items:center;gap:2px}
.carte>.t .badge{margin-left:2px}
.carte-alerte{box-shadow:var(--ombre),inset 3px 0 0 var(--rouge)}
.kpi-sur{font-size:15px;color:var(--gris);font-weight:700}
.heure-av{font-weight:800;font-size:13px;color:var(--acc-d)}
.droite-co{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
@media(max-width:520px){.droite-co .badge:first-child{display:none}}
.trajet-c{display:flex;flex-direction:column;min-width:150px}
.trajet-c span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:240px}

/* Chauffeurs en régulation */
.chfs{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:14px}
@media(max-width:1180px){.chfs{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){.chfs{grid-template-columns:1fr}}
.chf{background:var(--surface);border-radius:var(--r);box-shadow:var(--ombre);padding:12px 14px;min-width:0;display:flex;flex-direction:column;gap:4px}
.chf-t{display:flex;align-items:center;gap:8px}
.chf-t b{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chf-c button{display:flex;align-items:center;gap:7px;width:100%;text-align:left;background:var(--fond);border-radius:9px;padding:7px 9px;font-size:13px;font-weight:650;margin-top:4px}
.chf-c button span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chf-c button svg{width:16px;height:16px;color:var(--acc-d)}
.chf-c{min-height:38px;display:flex;align-items:center}

/* Vue chauffeur */
.co-chf{background:var(--surface);border-radius:var(--r);box-shadow:var(--ombre);padding:14px 16px;margin-bottom:14px;border-top:4px solid var(--acc)}
.co-chf.en-cours{border-top-color:var(--violet)}
.co-h{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.co-h b{font-size:22px;font-weight:800;margin-right:4px}
.co-trajet{display:flex;flex-direction:column;gap:10px;margin:12px 0;position:relative}
.co-trajet>div{display:flex;align-items:flex-start;gap:10px;font-size:15px;font-weight:650;line-height:1.3}
.co-trajet>div>span:last-child{display:flex;flex-direction:column}
.co-trajet .pt{width:12px;height:12px;border-radius:50%;margin-top:4px;flex-shrink:0}
.co-trajet .pt.dep{background:var(--acc)} .co-trajet .pt.arr{background:var(--ink)}
.co-trajet.grand{padding:4px 16px 2px;margin:0 0 10px}
.co-cl{display:flex;align-items:center;gap:8px;color:var(--gris);font-size:13.5px}
.co-cl svg{width:16px;height:16px}
.co-note{margin-top:8px;background:var(--ambre-f);color:#6B3F00;padding:8px 10px;border-radius:9px;font-size:13px}
.co-btns{display:grid;grid-template-columns:1fr 1fr 1.4fr;gap:8px;margin-top:14px}
@media(max-width:520px){.co-btns{grid-template-columns:1fr 1fr}.co-btns>:last-child{grid-column:1/-1}}

/* Saisie */
.seg{display:flex;background:var(--trait2);border-radius:10px;padding:3px;gap:3px}
.seg button{flex:1;height:36px;border-radius:8px;font-weight:700;font-size:13.5px;color:var(--gris)}
.seg button.on{background:#fff;color:var(--ink);box-shadow:0 1px 3px rgba(13,23,48,.12)}
.form>span:not(.full){display:contents}
.form>span.full{display:block;grid-column:1/-1}
.sous-titre-form{font-size:11.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--acc-d);margin-top:4px}
.estim{background:var(--fond);border-radius:12px;padding:10px 12px;font-size:13px}
.estim-l{display:grid;grid-template-columns:1fr auto;gap:3px 12px;color:var(--gris)}
.estim-l span:nth-child(even){text-align:right;white-space:nowrap}
.estim-t{display:flex;justify-content:space-between;align-items:center;font-size:15px;font-weight:800;border-top:1px solid var(--trait);margin-top:6px;padding-top:6px}
.estim-t b{font-size:19px;color:var(--acc-d)}
.choix-chf{display:flex;align-items:center;gap:10px;width:100%;padding:11px 12px;border-radius:11px;box-shadow:inset 0 0 0 1.5px var(--trait);margin-bottom:8px;text-align:left}
.choix-chf:hover{box-shadow:inset 0 0 0 1.5px var(--acc)}
.choix-chf .co{flex:1;min-width:0;display:flex;flex-direction:column}
.choix-chf.occupe{opacity:.7}
.nav-jour{display:flex;align-items:center;gap:6px}
.nav-jour .inp{width:160px}

/* Planning */
.planning-g{max-height:calc(100vh - 190px);align-items:flex-start}
.planning-g>*{height:max-content}
.planning-g .ag-col{min-width:170px}
.ag-tete b{display:flex;align-items:center;gap:5px;justify-content:center}
.ag-ev{font-size:11.5px}
.ag-ev.ev-taxi{background:var(--ambre-f);border-color:#D97706;color:#7A4100}
.ag-ev.ev-vtc{background:var(--violet-f);border-color:var(--violet);color:#4B3A99}
.ag-ev.ev-cpam{background:var(--bleu-f);border-color:var(--bleu);color:#1F45B5}
.ag-ev.absent{background:var(--rouge-f);border-color:var(--rouge);color:var(--rouge)}
.legende{display:flex;gap:12px;font-size:12.5px;color:var(--gris);font-weight:650;flex-wrap:wrap}
.legende span{display:flex;align-items:center;gap:5px}
.legende i{width:12px;height:12px;border-radius:3px;border-left:3px solid}
.legende i.ev-taxi{background:var(--ambre-f);border-color:#D97706}.legende i.ev-vtc{background:var(--violet-f);border-color:var(--violet)}.legende i.ev-cpam{background:var(--bleu-f);border-color:var(--bleu)}
@media(max-width:600px){.planning-g .ag-col{min-width:140px}}

/* Véhicules */
.vehs{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
@media(max-width:1000px){.vehs{grid-template-columns:1fr}}
.veh{margin:0;display:flex;flex-direction:column}
.veh-t{display:flex;align-items:center;gap:10px;padding:14px 16px 10px;flex-wrap:wrap}
.veh-t .co{flex:1;min-width:120px}
.veh-t b{font-size:16px}
.veh-ic{width:40px;height:40px;border-radius:11px;background:var(--acc-f);color:var(--acc-d);display:flex;align-items:center;justify-content:center}
.veh-g{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--trait2);border-top:1px solid var(--trait2);border-bottom:1px solid var(--trait2);margin-bottom:12px}
.veh-g>div{background:#fff;padding:9px 12px;display:flex;flex-direction:column;gap:2px;min-width:0}
.veh-g span{font-size:11.5px;color:var(--gris);font-weight:650}
.veh-g b{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:420px){.veh-g{grid-template-columns:repeat(2,1fr)}}
.veh-al{padding:0 16px}
.veh-al .alerte-bandeau{padding:8px 12px;font-size:13px;margin-bottom:6px}
.veh-b{display:flex;gap:8px;padding:4px 16px 14px;flex-wrap:wrap;margin-top:auto}

@media(max-width:860px){.tab .cache-tel,.carte .cache-tel{display:none}}
