/* SD ONE · lot 89 (24/10/2026, Hassan) : planning. Bleu nuit / bleu / argent ; vert et orange seulement pour l'état du vol.
   Fichier NOUVEAU, chargé en dernier. Limité au Planning (.pl-corps.pl-plan). */
:root { --sd89-nuit: #0F2A4A; --sd89-bleu: #1E5AA8; --sd89-argent: #C9D1DC; --sd89-clair: #E8F1FC; --sd89-vert: #1D6F42; --sd89-orange: #B4510F; }

/* 1-3) itinéraire : aéroport ou gare, puis la pastille du vol / du train sur la même ligne */
html body #v2-contenu .pl-corps.pl-plan table.tm tbody tr.lg td.c-iti .iti1.sd89-i { display: block !important; white-space: normal !important; overflow: visible !important; }
html body #v2-contenu .pl-corps.pl-plan table.tm tbody tr.lg td.c-iti .iti1.sd89-i > .dep,
html body #v2-contenu .pl-corps.pl-plan table.tm tbody tr.lg td.c-iti .iti1.sd89-i > .arr { display: inline !important; white-space: normal !important; overflow: visible !important; text-overflow: clip !important; word-break: normal; overflow-wrap: normal; hyphens: none; }
html body #v2-contenu .pl-corps.pl-plan table.tm tbody tr.lg td.c-iti .iti1.sd89-i > .sd89-br { display: block !important; height: 0; }
html body #v2-contenu .pl-corps.pl-plan table.tm tbody tr.lg td.c-iti .iti1.sd89-i > button.puce {
  display: inline-block !important; position: relative; vertical-align: 1px; box-sizing: border-box;
  height: 22px !important; min-height: 0 !important; line-height: 22px !important; padding: 0 9px !important; margin: 0 0 0 8px !important;
  border-radius: 11px; font-size: 11.5px !important; font-weight: 800; letter-spacing: .3px; white-space: nowrap !important;
  max-width: none !important; overflow: visible !important; text-overflow: clip !important; flex: none;
}
/* zone à toucher agrandie sans grossir la pastille */
html body #v2-contenu .pl-corps.pl-plan table.tm tbody tr.lg td.c-iti .iti1.sd89-i > button.puce::after { content: ""; position: absolute; left: -4px; right: -4px; top: -11px; bottom: -11px; }
html body #v2-contenu .pl-corps.pl-plan table.tm tbody tr.lg td.c-iti .iti1.sd89-i > button.puce.vol.sd67-cache { display: none !important; }

/* colonne Horaires un peu plus large pour la ligne de suivi (ordinateur) */
@media (min-width: 761px) {
  html body #v2-contenu .pl-corps.pl-plan.dfin table.tm.dfin-tm col:nth-child(5) { width: 100px !important; }
}
/* 4) suivi du vol / du train, en petit sous l'horaire principal (l'horaire n'est jamais modifié) */
html body #v2-contenu .pl-corps.pl-plan table.tm tbody tr.lg td.c-h > small.sd89-st {
  display: block; margin-top: 3px; font: 700 10.5px/1.25 Manrope, system-ui, sans-serif; letter-spacing: 0;
  white-space: normal !important; word-break: normal; overflow-wrap: normal; hyphens: none; text-align: inherit;
}
html body #v2-contenu .pl-corps.pl-plan table.tm tbody tr.lg td.c-h > small.sd89-vert { color: var(--sd89-vert); }
html body #v2-contenu .pl-corps.pl-plan table.tm tbody tr.lg td.c-h > small.sd89-orange { color: var(--sd89-orange); }

/* 5) cloche / épingle : dans la colonne des actions, le nom du chauffeur garde sa place */
html body #v2-contenu .pl-corps.pl-plan table.tm tbody tr.lg > td.c-chf.sd89-c > .sd45-i { display: none !important; }
@media (min-width: 900px) {
  html body #v2-contenu .pl-corps.pl-plan table.tm tbody tr.lg > td.c-chf.sd89-c { padding-bottom: 2px !important; }
}
/* au-dessus du ⋯, dans la même colonne (la largeur du tableau ne change pas) */
html body #v2-contenu .pl-corps.pl-plan table.tm tbody tr.lg > td.c-plus > .sd89-i {
  display: flex; align-items: center; justify-content: center; box-sizing: border-box;
  width: 28px; height: 28px; margin: 0 auto 4px; /* revue : 28 px, la colonne ⋯ fait 30 px utiles (32 px débordaient à droite) */ padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--sd89-argent); background: #fff; color: var(--sd89-bleu); transition: box-shadow .15s ease, background .15s ease;
}
html body #v2-contenu .pl-corps.pl-plan table.tm tbody tr.lg > td.c-plus > .sd89-cloche { background: var(--sd89-bleu); border-color: var(--sd89-bleu); color: #fff; }
html body #v2-contenu .pl-corps.pl-plan table.tm tbody tr.lg > td.c-plus > .sd89-epingle { background: var(--sd89-clair); }
html body #v2-contenu .pl-corps.pl-plan table.tm tbody tr.lg > td.c-plus > .sd89-i:hover,
html body #v2-contenu .pl-corps.pl-plan table.tm tbody tr.lg > td.c-plus > .sd89-i:focus-visible { box-shadow: 0 0 0 3px rgba(30, 90, 168, .25); outline: none; }
@media (max-width: 760px) {
  html body #v2-contenu .pl-corps.pl-plan table.tm tbody tr.lg > td.c-plus { display: flex !important; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px; }
  html body #v2-contenu .pl-corps.pl-plan table.tm tbody tr.lg > td.c-plus > .sd89-i { width: 44px; height: 44px; margin: 0; }
  html body #v2-contenu .pl-corps.pl-plan table.tm tbody tr.lg td.c-iti .iti1.sd89-i > button.puce { height: 44px !important; line-height: 26px !important; border-top: 9px solid transparent !important; border-bottom: 9px solid transparent !important; background-clip: padding-box !important; vertical-align: middle; margin: -9px 0 -9px 8px !important; }
}

/* 6) véhicule de la course en entier et lisible (« MERCEDES GLC NOIR ») */
html body #v2-contenu .pl-corps.pl-plan table.tm tbody tr.lg > td.c-veh > small.sd-modele.sd89-veh {
  display: block; margin: 1px 0 2px !important; font: 700 11.5px/1.25 Manrope, system-ui, sans-serif; color: var(--sd89-nuit);
  letter-spacing: .2px; white-space: normal !important; overflow: visible !important; text-overflow: clip !important; max-width: none;
  word-break: normal; overflow-wrap: normal; hyphens: none; text-transform: none;
}
html body #v2-contenu .pl-corps.pl-plan table.tm tbody tr.lg > td.c-veh:has(> small.sd89-veh) { white-space: normal !important; }

/* 6 bis) fenêtre « Véhicule » : véhicules de la fiche du chauffeur */
.sd48-veh .sd89-vl { display: flex; flex-direction: column; gap: 4px; margin-bottom: 6px; }
.sd48-veh .sd89-vl .sd89-v { min-height: 44px; }

/* 7) mention TB Service (avec le lot 85) */
.sd85-tb { white-space: nowrap; }
/* le vrai client garde toute la largeur : la mention « TB Service » passe à la ligne, sous le nom */
html body #v2-contenu .pl-corps.pl-plan table.tm tbody tr.lg td.c-cli .nomcli:has(> .sd85-tb[data-sd89t]) { flex-wrap: wrap !important; row-gap: 2px; }
html body #v2-contenu .pl-corps.pl-plan table.tm tbody tr.lg td.c-cli .nomcli>b:is(.sd85-tb[data-sd89t],.sd85-tb[data-sd89t]~*,:has(~.sd85-tb[data-sd89t])){flex: 1 1 0; min-width: 0; }
html body #v2-contenu .pl-corps.pl-plan table.tm tbody tr.lg td.c-cli .nomcli:has(> .sd85-tb[data-sd89t])::after { content: ""; flex-basis: 100%; height: 0; order: 2; }
html body #v2-contenu .pl-corps.pl-plan table.tm tbody tr.lg td.c-cli .nomcli > .sd85-tb[data-sd89t] { order: 3; flex: none; margin-left: 0 !important; }

/* lot98 (24/10/2026 21h, Hassan) */
/* pastilles vol / train : toujours la même largeur */
html body #v2-contenu .pl-corps.pl-plan table.tm tbody tr.lg td.c-iti .iti1.sd89-i > button.puce.vol,
html body #v2-contenu .pl-corps.pl-plan table.tm tbody tr.lg td.c-iti .iti1.sd89-i > button.puce.train { width: 84px !important; padding: 0 !important; text-align: center !important; }
/* noms des chauffeurs centrés (ordinateur ; relecture : sur téléphone la ligne est une fiche, le nom reste à côté de sa pastille) */
@media (min-width: 761px) {
  html body #v2-contenu .pl-corps.pl-plan table.tm tbody tr.lg > td.c-chf { text-align: center !important; }
  html body #v2-contenu .pl-corps.pl-plan table.tm tbody tr.lg > td.c-chf .chf { text-align: center !important; justify-content: center !important; }
}
/* bouton ⋯ des lignes : petit bouton fin (le texte reste le même).
   Relecture : !important, sinon v2-tableau-lisible (24 x 32) et le lot 35 (44 x 44 sur téléphone) l'emportaient. */
html body #v2-contenu .pl-corps.pl-plan table.tm tbody tr.lg > td.c-plus > button.plus {
  position: relative; display: flex; align-items: center; justify-content: center; box-sizing: border-box;
  width: 28px !important; min-width: 28px !important; height: 18px !important; min-height: 0 !important; margin: 0 auto; padding: 0 !important;
  border: 1px solid var(--sd89-argent); border-radius: 9px; background: #fff; color: var(--sd89-bleu); font-size: 14px !important; line-height: 1 !important; letter-spacing: 0; cursor: pointer; }
html body #v2-contenu .pl-corps.pl-plan table.tm tbody tr.lg > td.c-plus > button.plus:hover,
html body #v2-contenu .pl-corps.pl-plan table.tm tbody tr.lg > td.c-plus > button.plus:focus-visible { box-shadow: 0 0 0 3px rgba(30, 90, 168, .25); outline: none; }
/* téléphone : le bouton reste fin, la zone à toucher fait 44 x 44 (comme les pastilles vol / train) */
@media (max-width: 760px) {
  html body #v2-contenu .pl-corps.pl-plan table.tm tbody tr.lg > td.c-plus > button.plus { margin: 13px auto !important; }
  html body #v2-contenu .pl-corps.pl-plan table.tm tbody tr.lg > td.c-plus > button.plus::after { content: ""; position: absolute; left: -9px; right: -9px; top: -14px; bottom: -14px; }
}
