/* SD ONE · lot 19 (23/10/2026, demande Hassan) : barre d'actions du dossier sur UNE seule ligne
   (« Envoyer le devis » à sa taille, plus en pleine largeur) et bouton « + Ajouter une mission » aussi EN BAS de la liste. Rien n'est retiré. */
@media (min-width: 761px) {
  #ds-a.pl-actions > .dfin-barre { flex: 1 1 100%; flex-wrap: wrap; gap: 8px; }
  .pl-actions .dfin-barre .bt.sdm-bt-devis { width: auto !important; flex: 0 0 auto; white-space: nowrap; padding: 0 16px; min-height: 44px; }
}
@media (max-width: 760px) {
  .pl-actions .dfin-barre .bt.sdm-bt-devis { width: auto !important; flex: 1 1 auto; white-space: nowrap; min-height: 44px; }
}
.sd-ajout-bas { order: 3; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; margin: 10px 0 14px; border: 2px dashed #AFC0D6; border-radius: 10px; background: #F7FAFD; color: #1E5AA8; font: 700 14px Montserrat, Manrope, sans-serif; cursor: pointer; }
.sd-ajout-bas:hover, .sd-ajout-bas:focus-visible { background: #E8F1FC; border-color: #1E5AA8; }
.sd-ajout-bas span { font-size: 20px; line-height: 1; }
/* plaque reprise de la fiche du chauffeur : même pastille que les autres */
.sd-chf-annulee { color: #5B6B80 !important; font-style: italic; }
.sd-paye-puce { display: inline-block; margin-top: 3px; padding: 1px 8px; border-radius: 10px; background: #E5F4EA; color: #1E7A44; font: 700 11px Manrope, sans-serif; }
.dfs-act .sd-paye-b { min-height: 40px; }
.dfs-act .sd-paye-b.ok { background: #E5F4EA; color: #1E7A44; border-color: #9BD3AE; }
.sd-paye-f { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sd-paye-f label { display: flex; flex-direction: column; gap: 4px; }
.sd-paye-f .ch { min-height: 44px; }
@media (max-width: 760px) { .sd-paye-f { grid-template-columns: 1fr; } .dfs-act .sd-paye-b { min-height: 44px; } }
.sd-retour-flot { position: fixed; left: 16px; bottom: calc(52px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid #C4D3E6; background: #0F2A4A; color: #fff; font: 700 14px Montserrat, Manrope, sans-serif; box-shadow: 0 4px 14px rgba(15,42,74,.28); cursor: pointer; }
.sd-retour-flot span { font-size: 20px; line-height: 1; }
.sd-retour-flot:hover, .sd-retour-flot:focus-visible { background: #1E5AA8; }
/* 6) bandeau du dossier compact (ordinateur) : Dossier et Chiffres empilés dans la même colonne, bloc Client sur 2 colonnes */
@media (min-width: 1101px) {
  #ds-t .dos-tete { grid-template-columns: 222px minmax(0, 2.1fr) minmax(0, 1.2fr) minmax(0, 1.2fr) !important; grid-template-rows: auto 1fr; row-gap: 10px; align-items: stretch; }
  #ds-t .dos-tete > .dos-num { grid-column: 1; grid-row: 1 / 3; padding: 10px; }
  #ds-t .dos-tete > .dos-num select { width: 100%; max-width: 100%; font-size: 12px; padding-left: 8px; padding-right: 22px; }
  #ds-t .dos-tete > .dos-b { padding: 10px 12px; }
  #ds-t .dos-tete > .dos-b:nth-child(2) { grid-column: 2; grid-row: 1 / 3; }
  #ds-t .dos-tete > .dos-b:nth-child(3) { grid-column: 3; grid-row: 1; }
  #ds-t .dos-tete > .dos-b:nth-child(5) { grid-column: 3; grid-row: 2; }
  #ds-t .dos-tete > .dos-com { grid-column: 4; grid-row: 1 / 3; }
  #ds-t .dos-tete > .dos-b .l { padding-top: 2px; padding-bottom: 2px; min-width: 0; line-height: 1.3; }
  #ds-t .dos-tete > .dos-b h5 { margin-bottom: 4px; }
  #ds-t .dos-tete > .dos-b textarea { max-height: 92px; }
  #ds-t .dos-tete > .sd19-cli { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 16px; row-gap: 2px; align-content: start; }
  #ds-t .dos-tete > .sd19-cli > * { grid-column: 1 / -1; order: 1; }
  #ds-t .dos-tete > .sd19-cli > h5, #ds-t .dos-tete > .sd19-cli > .crayon { order: 0; }
  #ds-t .dos-tete > .sd19-cli > div:not(.l) { order: 2; }
  #ds-t .dos-tete > .sd19-cli > .sd19-contact { order: 3; }
  #ds-t .dos-tete > .sd19-cli > .sd-gc-ligne { order: 4; }
  #ds-t .dos-tete > .sd19-cli > .l { grid-template-columns: 76px minmax(0, 1fr) !important; }
  #ds-t .dos-tete > .sd19-cli > .l > span, #ds-t .dos-tete > .sd19-cli > .l > b { white-space: nowrap !important; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  #ds-t .dos-tete > .sd19-cli > .sd19-adr { order: 10; }
  #ds-t .dos-tete > .sd19-cli > .sd19-ville { order: 11; grid-column: auto; }
  #ds-t .dos-tete > .sd19-cli > .sd19-pays { order: 12; grid-column: auto; }
  #ds-t .dos-tete > .sd19-cli > .sd19-cp { order: 13; grid-column: auto; }
  #ds-t .dos-tete > .sd19-cli > .sd19-tel { order: 14; grid-column: auto; }
  #ds-t .dos-tete > .sd19-cli > .sd19-siret { order: 15; grid-template-columns: 110px minmax(0, 1fr) !important; }
  #ds-t .dos-tete > .sd19-cli > .sd19-tva { order: 16; grid-column: auto; }
  #ds-t .dos-tete > .sd19-cli > .sd19-paie { order: 17; grid-column: auto; }
  #ds-t .dos-tete > .sd19-cli > .sd19-mailf { order: 18; grid-template-columns: 110px minmax(0, 1fr) !important; }
}
@media (min-width: 1101px) {
  #ds-t .dos-tete > .dos-b:nth-child(3) .l, #ds-t .dos-tete > .dos-b:nth-child(5) .l { grid-template-columns: 108px minmax(0, 1fr) !important; }
  #ds-t .dos-tete > .dos-b:nth-child(3) .l > span, #ds-t .dos-tete > .dos-b:nth-child(5) .l > span { white-space: nowrap !important; overflow: hidden; text-overflow: ellipsis; }
  #ds-t .dos-tete > .dos-com textarea { max-height: 78px; min-height: 0; }
  #ds-t .dos-tete > .sd19-cli .sd-gc-ligne button { min-height: 34px; padding-top: 4px; padding-bottom: 4px; }
  #ds-t .dos-tete > .sd19-cli.sd19-replie > .sd19-cp, #ds-t .dos-tete > .sd19-cli.sd19-replie > .sd19-siret, #ds-t .dos-tete > .sd19-cli.sd19-replie > .sd19-tva,
  #ds-t .dos-tete > .sd19-cli.sd19-replie > .sd19-mailf, #ds-t .dos-tete > .sd19-cli.sd19-replie > .sd19-paie, #ds-t .dos-tete > .sd19-cli.sd19-replie > .sd19-tel { display: none !important; }
  #ds-t .dos-tete > .sd19-cli > .sd19-plus { order: 30; grid-column: 1 / -1; justify-self: start; background: none; border: 0; color: #1E5AA8; font: 700 13px Montserrat, sans-serif; padding: 4px 0; cursor: pointer; min-height: 30px; }
  #ds-t .dos-tete > .sd19-cli > .sd19-adr { grid-column: 1 / -1; }
}
.sd19-plus { display: none; }
@media (min-width: 1101px) { #ds-t .dos-tete > .sd19-cli > .sd19-plus { display: inline-block; } }
/* « Type de dossier » sous le statut, à gauche */
#ds-t .dos-num > .sd19-type { display: flex; flex-direction: column; gap: 3px; width: 100%; margin-top: 8px; padding: 0; }
#ds-t .dos-num > .sd19-type > span { font-size: 11px; color: #C4D3E6; letter-spacing: .04em; }
#ds-t .dos-num > .sd19-type > b { display: block; border: 0; padding: 0; }
#ds-t .dos-num > .sd19-type select { width: 100%; max-width: 100%; min-height: 36px; font-size: 12px; padding-left: 8px; padding-right: 22px; }
@media (max-width: 760px) { #ds-t .dos-num > .sd19-type select { min-height: 44px; } }
/* 7) liste verticale des étapes */
.sd19-et { position: fixed; z-index: 1200; width: 230px; max-width: calc(100vw - 16px); background: #fff; border: 1px solid #C4D3E6; border-radius: 12px; box-shadow: 0 10px 30px rgba(15,42,74,.25); padding: 6px; display: flex; flex-direction: column; gap: 2px; font: 600 14px Manrope, sans-serif; color: #0F2A4A; }
.sd19-et-t { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 6px 10px; font: 700 12px Montserrat, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #5B6B80; }
.sd19-et-x { width: 36px; height: 36px; border: 0; border-radius: 8px; background: #EEF2F7; color: #0F2A4A; font-size: 16px; cursor: pointer; }
.sd19-et-x:hover { background: #DCE6F2; }
.sd19-et-i { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: #0F2A4A; font: inherit; text-align: left; cursor: pointer; }
.sd19-et-i:hover:not([disabled]) { background: #E8F1FC; }
.sd19-et-i[disabled] { opacity: .45; cursor: default; }
.sd19-et-i i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #AFC0D6; flex: 0 0 auto; }
.sd19-et-i.fait i { background: #1D6F42; border-color: #1D6F42; }
.sd19-et-i.ici { background: #EEF4FC; }
.sd19-et-i.ici i { background: #1E5AA8; border-color: #1E5AA8; }
.sd19-et-i small { color: #5B6B80; font-weight: 600; }
.sd19-et-i.rouge { color: #9B1C1C; } .sd19-et-i.rouge i { border-color: #9B1C1C; }
.sd19-et-i.gris { color: #5B6B80; } .sd19-et-i.gris i { border-color: #7C8590; }
.sd19-et-sep { height: 1px; background: #E6EBF2; margin: 4px 6px; }
@media (max-width: 760px) { .sd19-et-i { min-height: 44px; } .sd19-et-x { width: 44px; height: 44px; } }
tr[data-id] > td.c-st { cursor: pointer; }
/* 8) Véhicule : gamme, modèle et plaque bien empilés, sans trou (Hassan, 23/10) */
tr[data-id] > td.c-veh > br { display: none; }
tr[data-id] > td.c-veh > b { display: block; line-height: 1.2; }
tr[data-id] > td.c-veh > .sd-modele { display: block; margin: 0 0 2px !important; line-height: 1.2; }
tr[data-id] > td.c-veh > .puce { display: inline-block; margin-top: 2px !important; }
/* 9) liste de choix du chauffeur */
.sd-lc .sd-lc-t small.sd19-lc-plus { color: #1E5AA8; }
.sd-lc.sd-lc-large { max-width: calc(100vw - 16px); }
/* 10) Horaires : début en haut, fin en dessous (Hassan, 23/10) */
tr[data-id] > td.c-h .hrs { flex-direction: column !important; align-items: flex-start !important; gap: 0 !important; flex-wrap: nowrap !important; }
tr[data-id] > td.c-h .hrs .hfn { margin: 0 !important; font-size: 12px; color: #5B6B80; line-height: 1.25; }
tr[data-id] > td.c-h .hrs .hfn::before { content: "→ " !important; }
/* 12) Aperçu du PDF dans la page (fenêtre E-mail) */
.sdm-ap { position: fixed; inset: 0; z-index: 3000; background: rgba(8,24,48,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.sdm-ap-b { width: min(960px, 100%); height: min(92vh, 100%); background: #fff; border-radius: 14px; box-shadow: 0 18px 50px rgba(8,24,48,.45); display: flex; flex-direction: column; overflow: hidden; }
.sdm-ap-t { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; border-bottom: 1px solid #E6EBF2; background: #F4F7FB; }
.sdm-ap-t b { font: 700 14px Montserrat, sans-serif; color: #0F2A4A; margin-right: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sdm-ap-s { color: #5B6B80; font-size: 13px; }
.sdm-ap-t .bt { min-height: 40px; }
.sdm-ap-x { width: 40px; height: 40px; border: 0; border-radius: 10px; background: #0F2A4A; color: #fff; font-size: 16px; cursor: pointer; }
.sdm-ap-f { flex: 1; width: 100%; border: 0; background: #E9EEF4; }
@media (max-width: 760px) { .sdm-ap { padding: 0; } .sdm-ap-b { border-radius: 0; height: 100%; } .sdm-ap-t .bt, .sdm-ap-x { min-height: 44px; } .sdm-ap-x { width: 44px; height: 44px; } }
/* 6 bis) bandeau : toutes les cases de la même hauteur que la fiche client, posées et alignées (Hassan, 23/10) */
@media (min-width: 1101px) {
  #ds-t .dos-tete > .dos-com { display: flex; flex-direction: column; }
  #ds-t .dos-tete > .dos-com textarea:last-of-type { flex: 1 1 auto; max-height: none; }
}
/* « Type de dossier » : même pastille arrondie que le statut juste au-dessus */
#ds-t .dos-num > .sd19-type select { height: 34px; min-height: 34px; border-radius: 17px; border: 1px solid #AFC0D6; background-color: #fff; color: #0F2A4A; font-weight: 700; font-size: 12.5px; padding: 2px 22px 2px 8px; }
@media (max-width: 760px) { #ds-t .dos-num > .sd19-type select { height: 44px; min-height: 44px; border-radius: 22px; } }
