/* SD ONE — 22/10/2026 (Hassan : « les adresses, on ne voit rien, c'est coupé » ; « espace vide à droite »). Fichier NOUVEAU, chargé en dernier.
   Fiche dossier, tableau des missions, écran large (> 760 px) : adresses complètes (sur 2 lignes si besoin), puces vol / étapes dessous,
   colonne « État » resserrée pour supprimer le vide à droite, colonne Client un peu plus étroite. Rien n'est retiré : affichage seulement. */
@media (min-width: 761px) {
  #v2-contenu .pl-corps.dfin table.tm.dfin-tm col:nth-child(6) { width: 16% !important; }
  #v2-contenu .pl-corps.dfin table.tm.dfin-tm col:nth-child(7) { width: auto !important; }
  #v2-contenu .pl-corps.dfin table.tm.dfin-tm col:nth-child(11) { width: 128px !important; }
  #v2-contenu .pl-corps.dfin .dfin-tm tbody tr.lg:not(.dfin-ouv) td.c-iti { overflow: visible !important; }
  #v2-contenu .pl-corps.dfin .dfin-tm tbody tr.lg:not(.dfin-ouv) .dfin-iti { flex-direction: column !important; align-items: stretch !important; gap: 5px !important; }
  #v2-contenu .pl-corps.dfin .dfin-tm tbody tr.lg:not(.dfin-ouv) .dfin-iti .iti1 { display: block !important; width: auto !important; max-width: none !important; line-height: 1.35; }
  #v2-contenu .pl-corps.dfin .dfin-tm tbody tr.lg:not(.dfin-ouv) .dfin-iti .iti1 .dep,
  #v2-contenu .pl-corps.dfin .dfin-tm tbody tr.lg:not(.dfin-ouv) .dfin-iti .iti1 .arr { display: inline !important; white-space: normal !important; overflow: visible !important; text-overflow: clip !important; max-width: none !important; }
  #v2-contenu .pl-corps.dfin .dfin-tm tbody tr.lg:not(.dfin-ouv) .dfin-iti .iti1 .fl { display: inline !important; margin: 0 6px; }
  #v2-contenu .pl-corps.dfin .dfin-tm tbody tr.lg:not(.dfin-ouv) .dfin-iti .iti2 { flex-wrap: wrap !important; width: auto !important; }
}
/* 22/10 soir (Hassan) : toutes les pastilles de la ligne (vol, train, étapes, état) à la même taille que « Terminée » ;
   « Vol non précisé » n'est plus affiché (le vol n'a de sens que pour un aéroport, le train pour une gare) — repéré par v2-tableau-lisible.js */
#v2-contenu .pl-corps.dfin .dfin-tm tbody tr.lg .iti2 .puce,
#v2-contenu .pl-corps.dfin .dfin-tm tbody tr.lg td.c-st .etb { height: 28px !important; line-height: 28px !important; font-size: 12px !important; font-weight: 800 !important; padding: 0 12px !important; border-radius: 14px !important; display: inline-flex !important; align-items: center !important; }
#v2-contenu .pl-corps.dfin .dfin-tm tbody tr.lg .iti2 .puce.sd-sans-vol { display: none !important; }
/* 22/10 soir (Hassan) : en-tête du dossier, le commentaire n'est plus coupé dans une petite case à défiler : il prend toute la hauteur de la carte. */
#ds-t .dos-tete .dos-b.dos-com p { max-height: none !important; overflow: visible !important; }
/* 22/10 soir (Hassan : « quand j'ouvre, c'est trop grand ») : détail d'une mission ouverte plus compact —
   les 4 boutons (Ouvrir la mission, Fiche PDF, PDF facture, Historique) sur une seule ligne en haut, tarif et infos côte à côte dessous. */
@media (min-width: 761px) {
  #v2-contenu .pl-corps.dfin .dfin-tm tr.dfin-sous .dfs { flex-wrap: wrap !important; gap: 10px 16px !important; padding: 10px 14px 12px 52px !important; }
  #v2-contenu .pl-corps.dfin .dfin-tm tr.dfin-sous .dfs-cote { display: contents !important; }
  #v2-contenu .pl-corps.dfin .dfin-tm tr.dfin-sous .dfs-act { order: -1; flex: 1 1 100% !important; width: 100% !important; display: flex !important; flex-wrap: wrap; gap: 8px !important; }
  #v2-contenu .pl-corps.dfin .dfin-tm tr.dfin-sous .dfs-act .dfs-b { width: auto !important; min-width: 0 !important; height: 38px !important; padding: 0 16px !important; flex: 0 0 auto; }
  #v2-contenu .pl-corps.dfin .dfin-tm tr.dfin-sous .dfs-tarif { flex: 1 1 55% !important; min-width: 0; }
  #v2-contenu .pl-corps.dfin .dfin-tm tr.dfin-sous .dfs-info { flex: 1 1 38% !important; min-width: 0; align-self: start; }
}
/* boutons centrés et plus fins ; marges réduites */
@media (min-width: 761px) {
  #v2-contenu .pl-corps.dfin .dfin-tm tr.dfin-sous .dfs { padding: 8px 14px 10px 52px !important; gap: 8px 16px !important; }
  #v2-contenu .pl-corps.dfin .dfin-tm tr.dfin-sous .dfs-act { justify-content: center !important; }
  #v2-contenu .pl-corps.dfin .dfin-tm tr.dfin-sous .dfs-act .dfs-b { height: 34px !important; font-size: 12.5px !important; padding: 0 14px !important; }
  #v2-contenu .pl-corps.dfin .dfin-tm tr.dfin-sous .dfs-tarif { padding: 8px 12px !important; }
  #v2-contenu .pl-corps.dfin .dfin-tm tr.dfin-sous .dfs-info { row-gap: 4px !important; }
}
/* 22/10 soir (Hassan) : les 4 boutons dans l'encadré blanc « Tarif de la mission », sur la ligne du titre (déplacés par v2-tableau-lisible.js) ;
   encadré blanc d'un bord à l'autre ; infos de la mission en colonnes dessous. */
@media (min-width: 761px) {
  #v2-contenu .pl-corps.dfin .dfin-tm tr.dfin-sous > td { padding: 0 !important; }
  #v2-contenu .pl-corps.dfin .dfin-tm tr.dfin-sous .dfs { padding: 6px 2px 8px 2px !important; }
  #v2-contenu .pl-corps.dfin .dfin-tm tr.dfin-sous .dfs-tarif { flex: 1 1 100% !important; width: 100% !important; }
  #v2-contenu .pl-corps.dfin .dfin-tm tr.dfin-sous .dfs-info { flex: 1 1 100% !important; display: grid !important; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important; gap: 4px 18px !important; }
  #v2-contenu .pl-corps.dfin .dfin-tm tr.dfin-sous .dfs-h { display: flex !important; align-items: center !important; gap: 10px 14px !important; flex-wrap: wrap !important; }
  #v2-contenu .pl-corps.dfin .dfin-tm tr.dfin-sous .dfs-h .dfs-act { order: 0; flex: 1 1 auto !important; width: auto !important; justify-content: center !important; margin: 0 !important; }
  #v2-contenu .pl-corps.dfin .dfin-tm tr.dfin-sous .dfs-h .dfs-etat { order: 1; }
}
/* 22/10 soir (Hassan : « commission, marge, prix d'achat, on s'en fout ») : lignes cachées dans la carte « Chiffres » du dossier (marquées par v2-tableau-lisible.js). */
#ds-t .dos-tete .dos-b .l.sd-masque { display: none !important; }
/* 22/10 soir (Hassan : « ça fait doublon ») : mission ouverte, on cache ce qui est déjà sur la ligne du haut (marqué par v2-tableau-lisible.js). */
@media (min-width: 761px) { #v2-contenu .pl-corps.dfin .dfin-tm tr.dfin-sous .dfs-info .dfs-l.sd-doublon { display: none !important; } }
/* 22/10 soir (Hassan) : remise en € ou en % dans le tarif de la mission (ajouté par v2-tableau-lisible.js). */
.dfs-pied label.sd-rem { display: inline-flex !important; align-items: center; gap: 6px; flex-wrap: wrap; }
.dfs-pied .sd-rem-choix { display: inline-flex; align-items: center; gap: 4px; }
.dfs-pied .sd-rem-b { min-width: 34px; height: 30px; padding: 0 8px; border: 1px solid #AFC0D6; background: #fff; color: #0F2A4A; border-radius: 8px; font-weight: 800; cursor: pointer; }
.dfs-pied .sd-rem-b.actif { background: #0F2A4A; border-color: #0F2A4A; color: #fff; }
.dfs-pied .sd-rem-pct { width: 64px !important; }
.dfs-pied .tf-r.sd-rem-calc { background: #F3F6FA; color: #45546A; }
@media (max-width: 760px) { .dfs-pied .sd-rem-b { min-width: 44px; height: 44px; } .dfs-pied .sd-rem-pct { height: 44px; } }
/* 22/10 soir (Hassan) : infos complètes du client dans l'en-tête du dossier ; adresse et e-mail sur plusieurs lignes si besoin. */
#ds-t .dos-tete .dos-b .l.sd-cli b { white-space: normal !important; overflow-wrap: anywhere; text-align: right; }
/* 22/10 soir (Hassan : « je veux mettre 10 %, 15 %, 20 % comme sur l'ancien logiciel ») : remises rapides en un clic. */
.dfs-pied .sd-rem-rapide { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.dfs-pied .sd-rem-p { height: 30px; padding: 0 10px; border: 1px solid #AFC0D6; background: #fff; color: #0F2A4A; border-radius: 15px; font-weight: 700; cursor: pointer; }
.dfs-pied .sd-rem-p.actif { background: #1E5AA8; border-color: #1E5AA8; color: #fff; }
@media (max-width: 760px) { .dfs-pied .sd-rem-p { height: 44px; min-width: 52px; } }
/* 22/10 soir (Hassan : « quand j'ouvre la ligne, je vois toujours les mêmes infos qu'en haut, enlève-les ») : sur grand écran,
   le bloc d'infos sous le tarif est caché en entier (passagers et notes sont déjà sur la ligne et dans « Ouvrir la mission »). */
@media (min-width: 761px) { #v2-contenu .pl-corps.dfin .dfin-tm tr.dfin-sous .dfs-info { display: none !important; } }
