/* SD ONE · lot 43 (24/10/2026, nuit). Affichage seulement, rien n'est retiré. Bleu nuit, bleu, argent ; jamais de doré.
   Chargé après v2-lot38.css (et v2-lot40-recap.css s'il est en place). */

/* ---------- 1. Recherche du haut : écrans de l'ancien logiciel grisés, doublons masqués ---------- */
#v2-suggest > div.sd43-sug-double { display: none !important; }
#v2-suggest > div.sd43-sug-ancien { color: #6B7785 !important; }
#v2-suggest > div.sd43-sug-ancien svg { opacity: .55; }
#v2-suggest .sd43-sug-badge { display: inline-block; margin: 0 6px; padding: 1px 7px; border-radius: 9px; background: #E6EBF1; color: #4A5D73; font: 600 10.5px Manrope, sans-serif; font-style: normal; white-space: nowrap; vertical-align: middle; }

/* ---------- 2. Listes au modèle du Planning (Dossiers, Clients, Archives chauffeurs, Voitures, Factures, Règlements…) ---------- */
/* en-têtes : même bandeau bleu que le tableau des missions, texte blanc, centré verticalement */
#v2-contenu table.tl.sd43-l > thead > tr > th, #v2-contenu table.tl.sd43-l > tbody > tr > th,
#v2-contenu table.mini-t.sd43-l > thead > tr > th, #v2-contenu table.mini-t.sd43-l > tbody > tr:first-child > th, #v2-contenu table.mini-t.sd43-l > tr:first-child > th {
  background: linear-gradient(#2466B6, #173F73) !important; color: #fff !important;
  font: 700 11px Montserrat, sans-serif !important; letter-spacing: .04em; text-transform: none !important;
  height: 44px; padding: 4px 8px !important; vertical-align: middle !important; line-height: 1.2; border: 0 !important;
}
#v2-contenu table.sd43-l th a, #v2-contenu table.sd43-l th button { color: #fff !important; }
/* coins arrondis comme le Planning */
#v2-contenu table.sd43-l { border-collapse: separate !important; border-spacing: 0 !important; background: #fff; }
#v2-contenu table.sd43-l tr:first-child > th:first-child { border-top-left-radius: 14px; }
#v2-contenu table.sd43-l tr:first-child > th:last-child { border-top-right-radius: 14px; }
/* lignes : même texte, même trait entre les lignes que les missions */
#v2-contenu table.sd43-l > tbody > tr > td, #v2-contenu table.mini-t.sd43-l > tr > td { font-size: 12.5px; color: #13202F; border-bottom: 1px solid #E7ECF2; vertical-align: middle; overflow-wrap: break-word; }
/* colonnes d'état : titre et pastille centrés l'un au-dessus de l'autre ; montants à droite, titre compris */
#v2-contenu table.sd43-l th.sd43-cc, #v2-contenu table.sd43-l td.sd43-cc { text-align: center !important; }
#v2-contenu table.sd43-l th.sd43-nr, #v2-contenu table.sd43-l td.sd43-nr { text-align: right !important; white-space: nowrap; }
/* case à cocher et « ⋯ » des listes : centrés */
#v2-contenu table.tl.sd43-l th.a1, #v2-contenu table.tl.sd43-l th.a2, #v2-contenu table.tl.sd43-l>:where(thead):has(>:where(tr)>th.a1)~tbody>tr>td:first-child, #v2-contenu table.tl.sd43-l td.act { text-align: center !important; }
/* titre de la liste centré au-dessus du tableau (Dossiers, Clients, Voitures…) */
#v2-contenu .tuile.pleine > h1.h1m { text-align: center !important; }
#v2-contenu .v2-titre:not(:has(a, button, select, input)) { justify-content: center; text-align: center; }

/* pastilles d'état : même taille que celles des listes du lot 34, couleurs des lots 32 et 34 */
#v2-contenu .sd43-et { display: inline-flex; align-items: center; justify-content: center; width: 136px; max-width: 100%; min-height: 34px; padding: 4px 8px; box-sizing: border-box; border-radius: 17px; color: #fff; font-weight: 700; font-size: 12px; line-height: 1.15; text-align: center; white-space: normal; }
#v2-contenu .sd43-et.sd43-et-neutre { background: #E6EBF1; color: #3E4B5C; }
#v2-contenu table.wp2a-t .wp2a-pt { display: inline-flex; align-items: center; justify-content: center; min-width: 110px; min-height: 28px; padding: 3px 10px; box-sizing: border-box; border-radius: 14px; font-weight: 700; text-align: center; white-space: normal; line-height: 1.15; }
#v2-contenu table.wp2a-t .wp2a-pt.ko { background: #C62828 !important; color: #fff !important; }
#v2-contenu table.wp2a-t .wp2a-pt.bl { background: #1F6FD1 !important; color: #fff !important; }
#v2-contenu table.wp2a-t .wp2a-pt.ok, #v2-contenu table.wp2a-t .wp2a-pt.vt { background: #1D6F42 !important; color: #fff !important; }
#v2-contenu table.wp2a-t .wp2a-pt.or { background: #B04600 !important; color: #fff !important; }
#v2-contenu table.wp2a-t .wp2a-pt.gr { background: #66727A !important; color: #fff !important; }

/* couleurs de rubrique de l'ancien gabarit (violet, brun, bordeaux) ramenées au bleu nuit de SD ONE */
#v2-contenu .tuiles[style*="--mod"], #v2-contenu .fiche[style*="--mod"] { --mod: #173F73 !important; }
#v2-contenu .fiche > .v2-titre[style*="color"] { color: #0F2A4A !important; }

/* tuiles de l'Accueil : titres centrés, nombres dans les mêmes bleus */
#v2-contenu .kpi .boite > h3 { text-align: center; }
#v2-contenu .kpi .boite > a > b[style*="#5E5470"], #v2-contenu .kpi .boite > a > b[style*="#6E5A52"], #v2-contenu .kpi .boite > a > b[style*="#7A4550"] { background: #1E5AA8 !important; }
#v2-contenu .kpi .boite > a > b[style*="#4F6478"], #v2-contenu .kpi .boite > a > b[style*="#3E434B"] { background: #0F2A4A !important; }
#v2-contenu .kpi .boite > a > span { min-width: 0; overflow-wrap: anywhere; }

/* ---------- 3. Aller-retour : la puce « ↩ » devient « ↩ Retour », bien visible ---------- */
html body #v2-contenu .puce.sd-rt-bt { display: inline-flex !important; align-items: center; justify-content: center; gap: 4px; width: auto !important; min-width: 30px; height: 30px; padding: 0 10px !important;
  border-radius: 15px !important; border: 0 !important; background: linear-gradient(#2466B6, #173F73) !important; color: #fff !important; font: 700 12px Montserrat, sans-serif !important; white-space: nowrap; cursor: pointer; box-shadow: 0 2px 6px rgba(15, 42, 74, .25); }
html body #v2-contenu .puce.sd-rt-bt:hover, html body #v2-contenu .puce.sd-rt-bt:focus-visible { background: linear-gradient(#2E78D0, #1E5AA8) !important; outline: 2px solid #C4D3E6; outline-offset: 1px; }
html body #v2-contenu .puce.sd-rt-bt .sd43-rt-t { font-size: 11px; letter-spacing: .02em; }
@media (max-width: 760px) {
  html body #v2-contenu .puce.sd-rt-bt { min-width: 44px; height: 44px; border-radius: 22px !important; padding: 0 14px !important; font-size: 13px !important; }
  html body #v2-contenu .puce.sd-rt-bt .sd43-rt-t { font-size: 12.5px; }
}

/* ---------- 4. Facturable : regroupement par client puis par mois ---------- */
#v2-contenu .sd43-fg { margin: 0 0 12px; border-radius: 14px; background: #fff; box-shadow: 0 2px 10px rgba(15, 42, 74, .12); overflow: hidden; }
#v2-contenu .sd43-fg > summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 14px; min-height: 44px; padding: 8px 14px; box-sizing: border-box; cursor: pointer; list-style: none;
  background: linear-gradient(#2466B6, #173F73); color: #fff; font: 700 12.5px Montserrat, sans-serif; text-align: center; }
#v2-contenu .sd43-fg > summary::-webkit-details-marker { display: none; }
#v2-contenu .sd43-fg > summary::before { content: "▸"; font-size: 13px; }
#v2-contenu .sd43-fg[open] > summary::before { content: "▾"; }
#v2-contenu .sd43-fg-r { font-weight: 600; color: #DCE6F2; }
#v2-contenu .sd43-fg-r b { color: #fff; }
#v2-contenu .sd43-fg-w { padding: 10px 12px 12px; overflow-x: auto; }
#v2-contenu .sd43-fg-tab { min-width: 520px; font-size: 12.5px; color: #13202F; }
#v2-contenu .sd43-fg-l { display: grid; grid-template-columns: minmax(160px, 2fr) minmax(110px, 1fr) 80px 80px minmax(110px, 1fr); align-items: center; min-height: 36px; border-bottom: 1px solid #E7ECF2; }
#v2-contenu .sd43-fg-l > span { padding: 4px 8px; min-width: 0; overflow-wrap: anywhere; }
#v2-contenu .sd43-fg-l > .sd43-cc { text-align: center; }
#v2-contenu .sd43-fg-l > .sd43-nr { text-align: right; white-space: nowrap; }
#v2-contenu .sd43-fg-h { min-height: 40px; border-radius: 10px; border: 0; background: #E9EEF5; color: #173F73; font: 700 11px Montserrat, sans-serif; letter-spacing: .04em; }
#v2-contenu .sd43-fg-cli { background: #F3F6FA; }
#v2-contenu .sd43-fg-cli .sd43-fg-c1 { grid-column: 1 / span 2; }
#v2-contenu .sd43-fg-cli .sd43-fg-c2 { display: none; }
#v2-contenu .sd43-fg-mois { color: #3E4B5C; }
#v2-contenu .sd43-fg-tot { border-bottom: 0; border-top: 2px solid #173F73; font-weight: 800; color: #0F2A4A; }
#v2-contenu .sd43-fg-tot .sd43-fg-c1 { grid-column: 1 / span 2; }
#v2-contenu .sd43-fg-tot .sd43-fg-c2 { display: none; }
#v2-contenu .sd43-fg-note { margin: 8px 2px 0; font-size: 11.5px; color: #5B6B80; text-align: center; }

/* ---------- téléphone : boutons des listes d'au moins 44 px ---------- */
@media (max-width: 760px) {
  #v2-contenu table.sd43-l .bt, #v2-contenu table.sd43-l button, #v2-contenu table.sd43-l .menu-l { min-height: 44px; min-width: 44px; }
  #v2-contenu .sd43-fg > summary { font-size: 12px; }
}
