:root {
  --bg: #0e0f11;
  --panel: #17191c;
  --panel-2: #1f2226;
  --line: #2a2d33;
  --text: #f3f1ea;
  --muted: #9a9ca3;
  --gold: #cda55b;
  --gold-soft: rgba(205, 165, 91, .16);
  --green: #5fcf80;
  --green-soft: rgba(95, 207, 128, .14);
  --green-flash: rgba(95, 207, 128, .08);
  --red: #ef6a6a;
  --red-soft: rgba(239, 106, 106, .15);
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body { min-height: 100dvh; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--gold); }
.wrap { max-width: 620px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; }

/* En-tête */
.top { display: flex; align-items: center; gap: 12px; padding: 14px 16px 10px; position: sticky; top: 0; z-index: 500; background: linear-gradient(var(--bg) 75%, transparent); }
.top .logo { height: 30px; width: auto; display: block; }
.top .spacer { flex: 1; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); display: grid; place-items: center; }
.icon-btn:hover { border-color: var(--gold); }
.icon-btn svg { width: 20px; height: 20px; stroke: var(--text); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Onglets */
.tabs { display: flex; border-bottom: 1px solid var(--line); margin: 0 16px; }
.tabs button { flex: 1; background: none; border: 0; padding: 12px 4px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--text); border-color: var(--gold); }

/* Liste */
.list { padding: 4px 16px 110px; }
.row { display: flex; gap: 14px; align-items: center; padding: 8px 0; border-bottom: 0; width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; }
.row:hover .ring { transform: scale(1.04); }
.ring { cursor: pointer; flex: 0 0 76px; width: 76px; height: 76px; border-radius: 50%; border: 2px solid var(--gold); background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: transform .15s; }
.ring b { font-size: 18px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ring span { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ring.soon { border-color: var(--green); background: var(--green-soft); }
.ring.done { border-color: var(--line); background: var(--panel); }
.ring-plane { display: block; color: var(--gold); margin-top: 3px; line-height: 0; }
.ring-plane svg { width: 14px; height: 14px; fill: currentColor; }
.ring-plane.fly { animation: flyBob 1.6s ease-in-out infinite; }
.ring-plane.landed svg { transform: rotate(180deg); }
@keyframes flyBob {
  0%, 100% { transform: translateY(1px) rotate(90deg); }
  50% { transform: translateY(-2px) rotate(90deg); }
}
@media (prefers-reduced-motion: reduce) { .ring-plane.fly { animation: none; } }
.ring.done b { font-size: 13px; }
.ring.bad { border-color: var(--red); background: var(--red-soft); }
.ring.bad b { font-size: 13px; }
.info { flex: 1; min-width: 0; }
.line1 { display: flex; align-items: center; gap: 8px; }
.line1 .num { font-weight: 600; letter-spacing: .02em; }
.line1 .date { margin-left: auto; color: var(--muted); font-size: 13px; white-space: nowrap; }
.route { font-size: 17px; margin: 3px 0 4px; overflow-wrap: anywhere; }
.times { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 4px 10px; font-size: 13px; color: var(--muted); }
.times b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.times s { opacity: .6; font-variant-numeric: tabular-nums; }
.times .late { color: var(--red); }
.times > span { white-space: nowrap; }
.term { background: var(--gold); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 6px; margin-left: 6px; white-space: nowrap; }
.note { font-size: 13px; color: var(--muted); margin: 4px 0 0; overflow-wrap: anywhere; }
.al { width: 22px; height: 22px; border-radius: 5px; background: var(--panel-2); display: inline-grid; place-items: center; font-size: 9px; font-weight: 700; color: var(--muted); overflow: hidden; position: relative; flex: none; }
.al img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pill { font-size: 12px; padding: 2px 9px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.pill.late, .pill.bad { color: var(--red); border-color: var(--red); background: var(--red-soft); }
/* Retard : l'étiquette clignote (liste et fiche). */
.pill.late { animation: delayBlink 1.2s ease-in-out infinite; }
@keyframes delayBlink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .pill.late { animation: none; } }
.pill.ok { color: var(--green); border-color: var(--green); background: var(--green-soft); }
.pill.gold { color: var(--gold); border-color: var(--gold); background: var(--gold-soft); }
/* Barre d'outils : langue et thème */
.tools { display: flex; gap: 4px; align-items: center; }
.top a.icon-btn[href="#reglages"] { margin-left: -6px; }
.top > button.tool-btn:first-of-type { margin-left: -16px; }
/* Drapeau de langue sans cercle, en mode sombre. */
html:not([data-theme="light"]) .tool-btn[data-act="lang"] { background: transparent; border-color: transparent; }
.icon-btn, .tool-btn { flex: none; aspect-ratio: 1; }
.tool-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); display: grid; place-items: center; padding: 0; }
.tool-btn:hover { border-color: var(--gold); }
.tool-btn img { width: 24px; height: 17px; object-fit: cover; border-radius: 2px; }
.tool-btn svg { width: 20px; height: 20px; stroke: var(--text); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Thème clair */
html { color-scheme: dark; }
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f4ef; --panel: #ffffff; --panel-2: #eeece6; --line: #dcd8cd;
  --text: #17150d; --muted: #6d6a60; --gold: #a8843f; --gold-soft: rgba(168, 132, 63, .14);
  --green: #1f9d55; --green-soft: rgba(31, 157, 85, .12); --green-flash: rgba(31, 157, 85, .07); --red: #d64545; --red-soft: rgba(214, 69, 69, .10);
}
html[data-theme="light"] .fab { box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
/* En mode clair, les trois icônes de l'en-tête (langue, thème, réglages) sans cercle blanc. */
html[data-theme="light"] .tool-btn, html[data-theme="light"] a.icon-btn[href="#reglages"] { background: transparent; border-color: transparent; }

/* Vols / Transferts : barre fixe en bas de l'écran (comme une application mobile). */
.tabs.mode-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 600; margin: 0; border-top: 1px solid var(--line); border-bottom: 0; background: var(--bg); padding-bottom: env(safe-area-max-inset-bottom, env(safe-area-inset-bottom)); }
.tabs.mode-tabs button { padding: 8px 4px 8px; border-bottom: 0; border-top: 2px solid transparent; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 13px; }
.tabs.mode-tabs button svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tabs.mode-tabs button.on { background: var(--gold); color: #fff; border-top-color: var(--gold); }
.tabs.mode-tabs button.on svg { color: #fff; }
#app:has(> .tabs.mode-tabs) { padding-bottom: 96px; }
@media print { .tabs.mode-tabs, .fab { display: none !important; } }
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.tsearch-wrap { padding: 8px 16px 0; }
.tsearch-wrap input[type=search] { width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; color: var(--text); outline: none; color-scheme: dark; }
.tsearch-wrap input[type=search]:focus { border-color: var(--gold); }
html[data-theme="light"] .tsearch-wrap input[type=search] { color-scheme: light; }
.chip-filter { flex: 0 0 auto; border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 99px; padding: 6px 14px; white-space: nowrap; }
.chip-filter.on { background: var(--gold); border-color: var(--gold); color: #fff; }
.tcard { border: 1px solid var(--line); background: var(--panel); border-radius: 16px; padding: 14px 16px; margin-bottom: 12px; }
.tcard-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tcard-ref { color: var(--muted); font-size: 13px; margin-top: 6px; }
.tcard-client { font-weight: 600; font-size: 16px; margin-top: 2px; }
.tcard-route { margin-top: 6px; }
.tcard-flight { color: var(--text); letter-spacing: .02em; }
.tcard-extras { margin-top: 6px; font-size: 13px; color: var(--gold); }
/* Sièges enfant : moins d'1 an = rouge clignotant ; 1 à 4 ans = bleu fixe. */
.xbadge { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; margin-right: 6px; white-space: nowrap; vertical-align: 1px; }
.xbadge.infant { color: #fff; background: var(--red); animation: delayBlink 1s ease-in-out infinite; }
.xbadge.toddler { color: #fff; background: #1e88e5; }
@media (prefers-reduced-motion: reduce) { .xbadge.infant { animation: none; } }
.trow b { text-align: left; }
.tcard-foot { display: flex; justify-content: space-between; margin-top: 10px; color: var(--muted); }
.tcard-foot b { color: var(--text); }
.troute { margin: 10px 0 0; }
.tstop { display: flex; gap: 10px; align-items: flex-start; padding: 4px 0; }
.tstop small { display: block; color: var(--muted); font-size: 13px; }
/* Adresses sur une seule ligne, coupées par « … » si trop longues (liste et fiche). */
.tstop > div { flex: 1; min-width: 0; }
.tline { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tstop .addr-row { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.tstop .addr-text { flex: 1; min-width: 0; font-weight: 600; color: var(--gold); overflow-wrap: anywhere; text-decoration: none; }   /* touche : navigation */
.tstop a.gmap-ico { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--gold); }
.tstop a.gmap-ico svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Texte de la fiche : sélectionnable et copiable (appui long). */
.sheet, .tdetail, .tdetail b, .tdetail span, .sub, .head, .head .num, .troute, .tstop small { user-select: text; -webkit-user-select: text; -webkit-touch-callout: default; }
.tdot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex: none; }
.tdot.g { background: #1faa6b; }
.tdot.r { background: #d64545; }
/* Détails en deux colonnes (libellé au-dessus de la valeur) ; lignes longues et contacts sur toute la largeur. */
.tdetail { margin-top: 8px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 12px; border-top: 1px solid var(--line); padding-top: 6px; }
.tdetail .wide { grid-column: 1 / -1; }
.tdetail .contact-btns { grid-column: 1 / -1; border-bottom: 0; padding: 4px 0 6px; }
/* Valeurs sur une seule ligne : police plus petite dans les colonnes. */
.tdetail .trow:not(.wide) b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tdetail .trow a { font-size: 13px; }
/* Contacter le client : WhatsApp (vert), SMS, appel. */
.contact-btns { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 0 12px; border-bottom: 1px solid var(--line); }
.contact-btns .btn { flex: 1 1 0; min-width: 90px; text-decoration: none; color: var(--text); }
.contact-btns .btn.wa { background: #25d366; border-color: #25d366; color: #fff; font-weight: 600; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: 15px; margin: 0 0 6px; }
.back-link:hover { color: var(--text); }
.back-link svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#tmap .leaflet-control-attribution { background: transparent; color: rgba(255, 255, 255, .35); font-size: 8px; line-height: 1.2; padding: 0 4px 1px; }
html[data-theme="light"] #tmap .leaflet-control-attribution { color: rgba(0, 0, 0, .35); }
.tmap { height: 110px; margin: 10px 0 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
a.gmap { color: inherit; text-decoration: none; }
a.gmap b { color: var(--gold); border-bottom: 1px dotted var(--gold); }
a.gmap:hover b { border-bottom-style: solid; }
.trow { display: flex; flex-direction: column; gap: 1px; padding: 6px 0; min-width: 0; overflow-wrap: anywhere; }
.trow span { color: var(--muted); font-size: 12px; }
.trow a { color: var(--gold); }
.day-title { font-size: 14px; font-weight: 600; color: var(--gold); margin: 22px 0 0; letter-spacing: .02em; text-transform: capitalize; }
.list > .day-title { font-size: 18px; }   /* titres de jour des listes Vols et Transferts, plus grands (demande du propriétaire) */
.flag { width: 20px; height: 14px; border-radius: 2px; object-fit: cover; flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); }
.route .flag { margin: 0 6px 0 0; vertical-align: middle; position: relative; top: -2px; }
.flag.big { width: 30px; height: 21px; margin: 0; vertical-align: middle; }
.leg .city .flag { margin-right: 6px; vertical-align: middle; position: relative; top: -1px; }
.leg.r .city, .leg.r .iata, .leg.r s, .leg.r .time, .leg.r .day { text-align: right; }
.row { touch-action: pan-y; transition: transform .2s ease; }
.row[data-hint="delete"] { background: var(--red-soft); }
.row[data-hint="refresh"] { background: var(--green-soft); }
/* Vol qui vient d'être ajouté : toute la ligne clignote d'un vert très léger, d'un bord à l'autre, sans contour.
   La marge négative compense le retrait de la liste (16 px) : le contenu ne bouge pas. */
.row.flash { animation: flashGreen .7s ease-in-out 2; border-radius: 0; box-shadow: none; margin: 0 -16px; padding-left: 16px; padding-right: 16px; width: calc(100% + 32px); }
@keyframes flashGreen { 0%, 100% { background: transparent; } 50% { background: var(--green-flash); } }
@media (prefers-reduced-motion: reduce) { .row.flash { animation: none; background: var(--green-flash); } }
.empty { text-align: center; color: var(--muted); padding: 64px 24px; }
.empty b { display: block; color: var(--text); font-size: 18px; margin-bottom: 6px; font-weight: 600; }
/* Bouton + : 20 px au-dessus de la barre d'onglets du bas (hauteur mesurée par l'application, 64 px par défaut). */
.fab { position: fixed; right: max(20px, calc(50vw - 290px)); bottom: calc(var(--tabbar-h, 64px) + 20px); width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--gold); color: #fff; font-size: 32px; line-height: 1; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); z-index: 600; }
.fab:hover { filter: brightness(1.1); }
/* Archives (vols passés) : même taille que le +, en bas à gauche. */
/* Archives dans l'en-tête, à côté du thème : icône nue, sans cercle. */
.icon-plain { width: 32px; height: 32px; padding: 0; border: 0; background: none; color: var(--text); display: grid; place-items: center; }
.icon-plain svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-plain.on { color: var(--gold); }
/* « + » des vols en bas à gauche, à la hauteur de la bulle de discussion qui occupe le coin droit (owner, 2026-11-23). */
.fab { right: auto; left: 16px; bottom: calc(var(--tabbar-h, 64px) + 10px); width: 56px; height: 56px; }
/* Archives (vols passés) : même forme et même hauteur que le « + », juste à sa droite, fond clair (owner, 2026-11-28). */
.fab.fab-archive { left: calc(16px + 56px + 12px); background: var(--bg); color: var(--text); border: 1.5px solid var(--line); border-radius: 18px; font-size: 0; display: grid; place-items: center; }
.fab-archive svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html[data-theme="light"] .fab-archive { box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }


/* Fiche */
.sheet { background: var(--bg); border-radius: 20px 20px 0 0; margin-top: 0; position: relative; z-index: 2; padding: 14px 14px 28px; flex: 1; }
.head { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: relative; }
.head .num { font-size: 20px; font-weight: 600; }
.head .pill { margin-left: auto; font-size: 13px; padding: 4px 12px; }
.head-l { display: flex; align-items: center; gap: 10px; }
a.num { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--muted); }
.head-r { position: static; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }   /* durée du vol sous le statut */
.head-r .pill { margin-left: 0; }
.dur { color: var(--muted); font-size: 13px; white-space: nowrap; }
.sub { color: var(--muted); font-size: 14px; margin: 2px 0 0; }
.legs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; border-top: 1px dashed var(--line); padding-top: 12px; }
.leg .city { color: var(--muted); font-size: 14px; }
.leg .iata { font-size: 38px; font-weight: 600; letter-spacing: .02em; line-height: 1.1; }
.leg .time { font-size: 22px; color: var(--green); font-weight: 600; font-variant-numeric: tabular-nums; }
.leg .time.late { color: var(--red); }
.leg s { display: block; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.leg .day { color: var(--muted); font-size: 13px; }
.leg.r { text-align: right; }
.mid { text-align: center; color: var(--muted); font-size: 13px; }
.mid svg { width: 26px; height: 26px; fill: var(--text); display: block; margin: 0 auto 4px; }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.chips > div { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.chips > div.r { justify-content: flex-end; grid-column: 2; }
.chip { border: 1px solid var(--line); border-radius: 9px; padding: 5px 10px; font-size: 14px; background: var(--panel); }
.chip.gold { background: var(--gold); color: #fff; border-color: var(--gold); font-weight: 600; }
.chip small { color: var(--muted); font-size: 12px; margin-right: 4px; }
.chip.gold small { color: #fff; }
/* Terminaux : 1 = violet, 2 = bleu (liste et fiche). */
.term.t1, .chip.t1 { background: #7e57c2; border-color: #7e57c2; color: #fff; }
.term.t2, .chip.t2 { background: #1e88e5; border-color: #1e88e5; color: #fff; }
.chip.t1 small, .chip.t2 small { color: #fff; }
.banner { margin-top: 16px; padding: 10px 14px; border-radius: 10px; background: var(--red-soft); color: var(--red); border: 1px solid var(--red); font-size: 15px; }
.meta { color: var(--muted); font-size: 13px; margin-top: 14px; }

/* Formulaires */
label.f { display: block; margin: 14px 0 0; font-size: 14px; color: var(--muted); }
label.f > span { display: block; margin-bottom: 5px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=tel], input[type=search], select, textarea {
  width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; color: var(--text); outline: none; color-scheme: dark; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); }
textarea { min-height: 84px; resize: vertical; }
.hint { font-size: 13px; color: var(--muted); margin-top: 5px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 15px; color: var(--text); }
.check input { width: 20px; height: 20px; accent-color: var(--gold); flex: none; margin-top: 1px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); padding: 11px 20px; min-height: 46px; }
.btn:hover { border-color: var(--gold); }
.btn.primary { background: var(--gold); border-color: var(--gold); color: #fff; font-weight: 600; }
.btn.danger { color: var(--red); }
.btn.danger:hover { border-color: var(--red); }
.btn.cal-on { background: var(--gold); border-color: var(--gold); color: #fff; font-weight: 600; }   /* fond doré : texte blanc (owner, 2026-11-18) */
.btn.cal-off { background: #c0392b; border-color: #c0392b; color: #fff; font-weight: 600; }
.btn.wide { width: 100%; }
.btn.small { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.btn:disabled { opacity: .55; cursor: default; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.msg { margin-top: 12px; font-size: 14px; color: var(--muted); min-height: 1em; }
.msg.err { color: var(--red); }

/* Connexion */
.auth { margin: auto; width: 100%; max-width: 400px; padding: 32px 20px; }
.auth .logo { height: 44px; display: block; margin: 0 0 26px; }
.auth h1 { font-size: 22px; margin: 0 0 4px; font-weight: 600; }
.auth p { color: var(--muted); margin: 0 0 8px; font-size: 15px; }
.auth .check { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 15px; cursor: pointer; }
.auth .check input { width: 18px; height: 18px; margin: 0; accent-color: var(--gold); }
/* Lien texte sans bordure ni fond (ex. « Pas encore de compte ? »). */
.auth .text-link-wrap { position: fixed; left: 0; right: 0; bottom: 50px; margin: 0; text-align: center; }
/* Écran de connexion : formulaire remonté de 80 px. */
.auth:has(.text-link-wrap) { position: relative; top: -80px; }
.auth .text-link { background: none; border: 0; padding: 0; min-height: 0; color: var(--gold); font-size: 15px; text-decoration: underline; cursor: pointer; }

/* Fenêtre d'ajout */
.overlay { position: fixed; inset: 0 0 var(--tabbar-h, 0px) 0; background: rgba(0, 0, 0, .65); z-index: 900; display: flex; align-items: flex-start; justify-content: center; }
.dialog { background: var(--bg); border: 1px solid var(--line); border-radius: 20px; width: calc(100% - 20px); max-width: 620px; margin-top: 60px; max-height: calc(100dvh - 76px - var(--tabbar-h, 0px)); overflow: auto; padding: 20px 16px 30px; }
.dialog h2 { margin: 0 0 4px; font-size: 20px; font-weight: 600; display: flex; align-items: center; }
.dialog h2 button { margin-left: auto; }
/* Espace sous « Rechercher le vol » : 20 px au total (le bloc d'erreur n'ajoute plus de hauteur quand il est vide). */
#addMsg { margin-top: 0; min-height: 0; }
/* Accès rapide aux 10 prochains jours (pastilles). */
.day-picks { display: flex; gap: 8px; overflow-x: auto; padding: 8px 2px 10px; }
.day-pick { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0; line-height: 1.1; }
.day-pick small { font-size: 10px; color: var(--muted); text-transform: uppercase; }
.day-pick b { font-size: 16px; font-weight: 600; }
.day-pick.on { background: var(--gold); border-color: var(--gold); }
.day-pick.on small, .day-pick.on b { color: #fff; }

/* Réglages */
.settings { padding: 0 16px 60px; }
.settings h1 { font-size: 24px; margin: 6px 0 14px; font-weight: 600; }
details.sec { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); margin-bottom: 12px; }
details.sec > summary { padding: 15px 16px; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; }
details.sec > summary::-webkit-details-marker { display: none; }
details.sec > summary::after { content: "+"; margin-inline-start: auto; color: var(--muted); font-size: 20px; font-weight: 400; }
details.sec[open] > summary::after { content: "–"; }
details.sec > summary small { font-weight: 400; color: var(--muted); font-size: 13px; }
details.sec > div { padding: 0 16px 18px; }
.bar { height: 8px; background: var(--panel-2); border-radius: 99px; overflow: hidden; margin: 8px 0 4px; }
.bar i { display: block; height: 100%; background: var(--gold); }
.item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.item:last-child { border-bottom: 0; }
.item .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.item small { color: var(--muted); display: block; font-size: 13px; }
.logbox { font-size: 13px; max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.logbox div { padding: 6px 10px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.logbox time { color: var(--muted); margin-right: 6px; font-variant-numeric: tabular-nums; }
.logbox .error { color: var(--red); }

/* Bon de commande : document blanc, imprimable (la barre d'outils n'est pas imprimée). */
.voucher-bar { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; padding: 14px 64px; }
.v-close { position: fixed; top: 12px; right: 16px; z-index: 600; }
.v-back { position: fixed; top: 12px; left: 16px; z-index: 600; }
.voucher { background: #fff; color: #17150d; max-width: 760px; margin: 0 auto 40px; padding: 28px 28px 22px; border-radius: 6px; font-size: 14px; line-height: 1.45; }
.voucher h1 { margin: 0; font-size: 22px; letter-spacing: .02em; text-transform: uppercase; color: #1b365d; }
.voucher h2 { margin: 0 0 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #6d6a60; }
.v-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; border-bottom: 2px solid #1b365d; padding-bottom: 12px; }
.v-head p { margin: 4px 0 0; color: #6d6a60; font-size: 13px; }
.v-ref { text-align: right; } .v-ref b { display: block; font-size: 16px; } .v-ref small { color: #6d6a60; }
.v-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 18px 0; }
.v-missing { color: #d64545; font-weight: 600; }
.v-table { width: 100%; border-collapse: collapse; }
.v-table th, .v-table td { text-align: left; vertical-align: top; padding: 8px 10px; border-top: 1px solid #e6e2d8; }
.v-table th { width: 38%; font-weight: 500; color: #6d6a60; }
.v-table tr:nth-child(odd) { background: #f8f6f1; }
.v-price { margin: 18px 0 0 auto; max-width: 300px; }
.v-price div { display: flex; justify-content: space-between; padding: 4px 0; }
.v-price .v-total { border-top: 2px solid #1b365d; margin-top: 4px; padding-top: 8px; font-size: 17px; }
.v-foot { margin-top: 22px; padding-top: 10px; border-top: 1px solid #e6e2d8; font-size: 11px; color: #6d6a60; }
@media (max-width: 560px) { .v-parties { grid-template-columns: 1fr; } .voucher { padding: 20px 16px; } .v-head { flex-direction: column; } .v-ref { text-align: left; } }
@media print {
  .no-print, #toast { display: none !important; }
  html, body { background: #fff !important; }
  .voucher { margin: 0; padding: 0; max-width: none; border-radius: 0; }
}

#toast { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); background: #f3f1ea; color: #14120a; padding: 10px 18px; border-radius: 99px; font-size: 15px; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 1000; max-width: 90vw; text-align: center; }
#toast.on { opacity: 1; }
#toast.err { background: #c0392b; color: #fff; left: 40px; right: 40px; transform: none; max-width: none; border-radius: 18px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Croix pour vider le champ du numéro de vol */
.clear-wrap { position: relative; display: block; }
.clear-wrap input { padding-right: 40px; }
.clear-x { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; padding: 0; }
.clear-x[hidden] { display: none; }
.clear-x:hover { color: var(--text); }
.clear-x svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2.4; fill: none; stroke-linecap: round; }

/* Code aéroport cliquable (Google Maps) */
.iata-link { color: inherit; text-decoration: none; }
.iata-link:hover { color: var(--gold); }

/* Carte de la fiche vol : 20 px sous les notes */
.fmap { margin-top: 20px; }
#notes { display: block; }   /* sans l'espace sous la zone de texte */

/* Carte plein écran d'un aéroport (clic sur le code IATA) */
.ap-overlay { align-items: stretch; }
.ap-sheet { background: var(--bg); width: 100%; max-width: 620px; height: 100%; display: flex; flex-direction: column; }
.ap-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; padding-top: max(14px, env(safe-area-inset-top)); }
.ap-head > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ap-head b { font-size: 22px; font-weight: 600; }
.ap-head span { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-map { flex: 1; min-height: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ap-hint { margin: 0; padding: 12px 16px; color: var(--muted); font-size: 13px; text-align: center; }
/* Étiquette d'aéroport sur la carte : posée au-dessus du point, cliquable (Google Maps) */
.ap-pin { background: none; border: 0; }
.ap-label { position: absolute; left: 0; bottom: 14px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; padding: 2px 7px; border-radius: 7px; color: #fff; text-decoration: none; white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,.45); max-width: 220px; }
.ap-label.dep { background: #1faa6b; }
.ap-label.arr { background: #d64545; }
.ap-label b { font-size: 12px; line-height: 1.2; letter-spacing: .03em; }
.ap-label small { font-size: 11px; opacity: .95; max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.ap-label::after { content: ""; position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%); border: 6px solid transparent; border-bottom: 0; border-top-color: inherit; }
.ap-label.dep::after { border-top-color: #1faa6b; }
.ap-label.arr::after { border-top-color: #d64545; }
.fmap { cursor: pointer; }

/* Fiche vol : numéro et date en haut à gauche, statut et durée en haut à droite */
.head.fl { align-items: flex-start; }
.fl-col { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.head.fl .head-r { flex: none; }
.ap-pin a.ap-label, .ap-pin a.ap-label b, .ap-pin a.ap-label small { color: #fff; text-decoration: none; }

/* Avancement estimé du vol : barre toute largeur sous les terminaux et portes */
.fprog { margin-top: 14px; }
.fprog[hidden] { display: none; }
.fprog-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; white-space: nowrap; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.fprog-top b { color: var(--text); font-weight: 600; font-size: 14px; }
.fprog-bar { position: relative; height: 8px; border-radius: 99px; background: var(--line); margin: 0 12px 6px; }
.fprog-fill { height: 100%; border-radius: 99px; background: var(--gold); }
.fprog-plane { position: absolute; top: 50%; width: 24px; height: 24px; transform: translate(-50%, -50%) rotate(90deg); color: var(--gold); }
.fprog-plane svg { width: 24px; height: 24px; fill: currentColor; stroke: var(--bg); stroke-width: 1; }
/* Avion sur les cartes (position estimée) */
.plane-pin { background: none; border: 0; }
.plane-ico { display: block; width: 26px; height: 26px; color: #cda55b; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.plane-ico svg { width: 26px; height: 26px; fill: currentColor; stroke: #fff; stroke-width: 1; }
.plane-lbl { position: absolute; right: 30px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: 11px; font-weight: 600; color: #fff; background: rgba(0,0,0,.65); padding: 1px 6px; border-radius: 6px; }

/* Barre d'alerte en haut : notifications push non activées sur cet appareil */
.push-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); background: #c0392b; color: #fff; font-size: 14px; line-height: 1.35; }
.push-bar span { flex: 1; }
.push-bar .btn.small { background: #fff; color: #c0392b; border-color: #fff; font-weight: 600; flex: none; }
.push-bar-x { flex: none; width: 32px; height: 32px; border: 0; background: transparent; color: #fff; display: grid; place-items: center; padding: 0; cursor: pointer; }
.push-bar-x svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.4; fill: none; stroke-linecap: round; }
.fprog-note { font-size: 11px; color: var(--muted); text-align: right; }



/* Tirer pour actualiser : pas de rafraîchissement natif du navigateur, indicateur de l'app */
html, body { overscroll-behavior: none; }   /* pas d'étirement Android en haut / en bas de page : il faisait bouger la barre du bas (owner, 2026-11-25, app Android) ; « tirer pour actualiser » de l'app reste (app.js) */
.ptr { position: fixed; left: 50%; top: 0; z-index: 950; width: 40px; height: 40px; border-radius: 50%; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 4px 12px rgba(0,0,0,.35); display: grid; place-items: center; opacity: 0; transform: translate(-50%, -50px); pointer-events: none; transition: opacity .15s; }
.ptr svg { width: 22px; height: 22px; stroke: var(--gold); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ptr.spin { transform: translate(-50%, 70px) !important; }
.ptr.spin svg { animation: ptr-spin .8s linear infinite; }
@keyframes ptr-spin { to { transform: rotate(360deg); } }

/* Fiche transfert : note sous « M'assigner » */
.assign-hint { margin: 6px 4px 0; font-size: 12px; color: var(--muted); text-align: center; }

/* Choix de l'application de navigation (fiche transfert) : feuille en bas, au-dessus de la barre d'onglets */
.nav-overlay { align-items: flex-end; }
.nav-sheet { background: var(--bg); width: 100%; max-width: 620px; border-radius: 20px 20px 0 0; border: 1px solid var(--line); border-bottom: 0; padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.nav-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.nav-head > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nav-head b { font-size: 18px; font-weight: 600; }
.nav-head span { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-app { color: var(--text); text-decoration: none; font-weight: 600; }
.nav-app { justify-content: flex-start; gap: 12px; padding-left: 16px; }
.nav-ico { width: 28px; height: 28px; border-radius: 7px; flex: none; object-fit: contain; }
.nav-ico.gen { display: grid; place-items: center; background: var(--line); }
.nav-ico.gen svg { width: 18px; height: 18px; stroke: var(--text); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-always { margin-top: 4px; font-size: 14px; }
/* Réglages : choix de l'application de navigation */
.nav-opts { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.nav-opt { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.nav-opt:has(input:checked) { border-color: var(--gold); }
.nav-opt input { accent-color: var(--gold); margin: 0; }

/* Barre du bas : Réglages en bas à droite, bouton plus étroit */
.tabs.mode-tabs button.tab-settings { flex: 0 0 72px; }   /* plus de trait vertical à gauche (owner, 2026-11-23) */
/* « Plus » (admin, téléphone) : remplace l'engrenage ; ouvre le menu des onglets cachés (tabMoreMenu, app.js). */
.tabs.mode-tabs button.tab-more { display: none; }
@media (max-width: 999px) {
  .tabs.mode-tabs button.tab-more { display: flex; flex: 0 0 72px; }
  .tabs.mode-tabs:has(> .tab-more) > button.tab-settings { display: none; }
}
.tab-more svg circle { fill: currentColor; stroke: none; }
.tm-more { min-width: 210px; }
.tm-more .tf-opt { justify-content: flex-start; gap: 12px; font-size: 15px; }
.tm-more .tf-opt svg { visibility: visible; width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.tm-more .tf-opt.on { color: var(--gold); }
.tm-more-n { margin-inline-start: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font: 700 11px/18px system-ui, sans-serif; text-align: center; font-style: normal; }
/* Se déconnecter : seulement dans la colonne de gauche sur ordinateur (téléphone : en bas des Réglages). */
.tabs.mode-tabs button.tab-signout { display: none; }

/* ==================== Dispatch, partenaires, messagerie, planning ==================== */
input[type=color] { width: 100%; height: 46px; padding: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.text-link { background: none; border: 0; padding: 0; color: var(--gold); text-decoration: underline; cursor: pointer; font-size: 14px; }
.hint.center { text-align: center; padding: 30px 0; }
.bad-txt { color: var(--red); } .gold-txt { color: var(--gold); }
[hidden] { display: none !important; }

/* Barre du bas : libellés et logo cachés sur téléphone (montrés sur ordinateur), pastilles de compteur */
.tabs.mode-tabs .tab-lbl, .tabs.mode-tabs .side-logo, .tabs.mode-tabs .tab-mail, .tabs.mode-tabs .tab-role { display: none; }
.tabs.mode-tabs button { position: relative; }
.tab-badge { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font: 700 11px/18px system-ui, sans-serif; text-align: center; font-style: normal; }

/* Inscription : client ou chauffeur partenaire */
.seg { display: flex; border: 1px solid var(--line); border-radius: 99px; padding: 3px; margin: 14px 0 4px; background: var(--panel); }
.seg button { flex: 1; border: 0; background: none; padding: 9px 10px; border-radius: 99px; color: var(--muted); }
.seg button.on { background: var(--gold); color: #fff; font-weight: 600; }

/* Liste des transferts : chauffeur ou état du dispatch */
.tcard-disp { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; font-weight: 600; }
.tcard-disp svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.tcard-disp.ok { color: var(--green); } .tcard-disp.gold { color: var(--gold); } .tcard-disp.bad { color: var(--red); }

/* Fiche transfert : une colonne sur téléphone (carte sous le trajet), deux sur ordinateur */
.tsheet { display: flex; flex-direction: column; }
.tcol-a, .tcol-b { display: contents; }
.tsheet .o1 { order: 1; } .tsheet .o2 { order: 2; } .tsheet .o3 { order: 3; } .tsheet .o4 { order: 4; } .tsheet .o5 { order: 5; } .tsheet .o6 { order: 6; }
#teamPanel:empty { display: none; }
.dpanel { border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); padding: 12px 14px; margin-top: 12px; }
.dpanel-h { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.btns.tight { gap: 8px; margin-top: 10px; }
.btns.tight .btn { flex: 1 1 0; }
.btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn.gold-line { border-color: var(--gold); color: var(--gold); font-weight: 600; }
.btn.danger-fill { background: #c0392b; border-color: #c0392b; color: #fff; font-weight: 600; }
.drv-card { display: flex; align-items: center; gap: 12px; }
.drv-card .grow { flex: 1; min-width: 0; }
.drv-card b { display: block; }
.drv-card small { display: block; color: var(--muted); font-size: 13px; }
.drv-ava { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; letter-spacing: .02em; }
.drv-ava.sm { width: 32px; height: 32px; font-size: 12px; }
.drv-pending { display: flex; gap: 14px; align-items: center; }
.drv-pending small { display: block; color: var(--muted); font-size: 13px; }
.pulse { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); animation: pulse 1.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(205, 165, 91, .6); } 100% { box-shadow: 0 0 0 14px rgba(205, 165, 91, 0); } }
@media (prefers-reduced-motion: reduce) { .pulse, .plan-item.soon .pdot { animation: none; } }
.dp-open b { display: block; }
.dp-open small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.dp-note { margin-top: 8px; padding: 8px 10px; border-left: 3px solid var(--gold); background: var(--gold-soft); border-radius: 6px; font-size: 14px; }
.dp-note small { display: block; color: var(--gold); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.collect { font-weight: 600; color: var(--gold); margin-bottom: 8px; }
.collect small { color: var(--muted); font-weight: 400; }
.dpanel > .btn.wide { margin-top: 8px; }
.fi-line { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 9px 12px; border-radius: 10px; background: var(--green-soft); color: var(--green); font-size: 14px; font-weight: 600; }
.fi-line.late { background: var(--red-soft); color: var(--red); }
.fi-line svg { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* Étapes de la course */
.stage-steps { list-style: none; margin: 4px 0 12px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.stage-steps li { position: relative; text-align: center; font-size: 12px; color: var(--muted); padding-top: 22px; line-height: 1.25; }
.stage-steps li i { position: absolute; top: 2px; left: 50%; transform: translateX(-50%); width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); background: var(--panel); z-index: 1; }
.stage-steps li::before { content: ""; position: absolute; top: 8px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.stage-steps li:first-child::before { display: none; }
.stage-steps li.done { color: var(--text); }
.stage-steps li.done i { background: var(--green); border-color: var(--green); }
.stage-steps li.done::before { background: var(--green); }
.stage-steps li.next i { border-color: var(--gold); }
.stage-steps li.done + li.next i { border-color: var(--line); }   /* après une étape verte, le point suivant reste gris : le vert suffit (owner, 2026-11-23) */
.stage-steps time { display: block; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.stage-next { font-size: 17px; min-height: 54px; }
.stage-undo { display: block; margin: 10px auto 0; }
.warn-box { display: flex; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--red-soft); border: 1px solid var(--red); color: var(--text); font-size: 14px; margin-top: 10px; }
.warn-box > b { color: var(--red); font-size: 20px; line-height: 1; }

/* Fenêtre « Proposer à un partenaire » */
.dp-dialog .sub { margin-bottom: 6px; }
.dp-sel.off { opacity: .4; pointer-events: none; }
div.f { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
div.f > span { display: block; margin-bottom: 6px; }
.grp-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.grp-chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--panel); border-radius: 99px; padding: 6px 12px; color: var(--text); cursor: pointer; font-size: 14px; }
.grp-chip input { display: none; }
.grp-chip i, .gtag i, .gdot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.grp-chip small { color: var(--muted); }
.grp-chip:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }
.dp-filter { margin-bottom: 8px; }
.dp-list { max-height: 280px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.dp-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); color: var(--text); cursor: pointer; }
.dp-row:last-child { border-bottom: 0; }
.dp-row input { width: 18px; height: 18px; accent-color: var(--gold); flex: none; }
.dp-row .grow { min-width: 0; }
.dp-row b { display: block; font-weight: 600; font-size: 15px; }
.dp-row small { display: block; color: var(--muted); font-size: 12px; }
.dp-row em { font-style: normal; } .dp-row em.bad { color: var(--red); }
.gtag { display: inline-flex; align-items: center; gap: 4px; margin-right: 8px; }
.gdot { width: 14px; height: 14px; }

/* Partenaire : propositions et courses */
.cards { display: grid; gap: 12px; }
.cards .tcard { margin-bottom: 0; cursor: pointer; }
.tcard.offer { border-color: var(--gold); }
.offer-price { color: var(--gold); font-size: 18px; }
.tcard .btns.tight { margin-top: 12px; }

/* Messagerie */
.chat-page { height: calc(100dvh - var(--tabbar-h, 64px)); min-height: 0; }
#app:has(.chat-page) { padding-bottom: var(--tabbar-h, 64px); }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 4px 16px 10px; border-bottom: 1px solid var(--line); }
.chat-head .spacer { flex: 1; }
.chat-msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.msg-b { max-width: 82%; padding: 8px 12px 6px; border-radius: 16px; font-size: 15px; overflow-wrap: anywhere; user-select: text; -webkit-user-select: text; }
.msg-b.me { align-self: flex-end; background: var(--gold); color: #fff; border-bottom-right-radius: 4px; }
.msg-b.them { align-self: flex-start; background: var(--panel); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg-b time { display: block; font-size: 11px; opacity: .7; text-align: right; margin-top: 2px; }
.msg-ref { display: inline-block; font-size: 12px; font-weight: 700; color: inherit; margin-bottom: 2px; }
.chat-form { border-top: 1px solid var(--line); padding: 8px 12px 10px; background: var(--bg); }
.chat-ref { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gold); margin-bottom: 6px; }
.chat-ref button { border: 0; background: none; color: var(--muted); padding: 0; width: 20px; height: 20px; }
.chat-ref svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2.4; fill: none; }
.chat-row { display: flex; gap: 8px; align-items: flex-end; }
.chat-row textarea { min-height: 44px; max-height: 140px; resize: none; border-radius: 22px; padding: 11px 16px; }
.chat-send { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--gold); display: grid; place-items: center; }
.chat-send svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.thread { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.thread .grow { flex: 1; min-width: 0; }
.thread b { display: block; }
.thread small { display: block; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread.unread b, .thread.unread small { color: var(--text); font-weight: 700; }
.thread-r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; color: var(--muted); font-size: 12px; }
.thread-r .tab-badge { position: static; }

/* Planning du jour */
.plan { padding: 0 16px 20px; }
.plan-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 4px 0 12px; }
.plan-bar h1 { font-size: 22px; font-weight: 600; margin: 0; flex: 1 1 auto; }
.plan-date { display: flex; align-items: center; gap: 8px; }
.plan-date .icon-btn { font-size: 22px; line-height: 1; color: var(--text); }
.plan-day { position: relative; cursor: pointer; padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--panel); white-space: nowrap; }
.plan-day input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.plan-map-wrap { position: relative; }
.plan-map { height: 56vh; min-height: 300px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.plan-slider { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 99px; background: var(--panel); }
.plan-slider .icon-btn svg { fill: var(--text); stroke: none; }
.plan-slider input[type=range] { flex: 1; accent-color: var(--gold); min-width: 0; }
.plan-slider select { width: auto; padding: 6px 8px; border-radius: 99px; }
.ps-time { font-variant-numeric: tabular-nums; font-size: 18px; min-width: 52px; }
.plan-est { margin: 6px 4px 0; }
.plan-list { margin-top: 12px; }
.plan-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-left: 5px solid var(--c); border-radius: 12px; margin-bottom: 8px; background: var(--panel); cursor: pointer; transition: opacity .2s; }
.plan-item .grow { flex: 1; min-width: 0; }
.plan-item small { color: var(--muted); font-size: 13px; }
.pi-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pi-top span { color: var(--muted); font-size: 13px; }
.pdot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); flex: none; }
.plan-item.active { box-shadow: 0 0 0 2px var(--c); }
.plan-item.done { opacity: .5; }
.plan-item.soon .pdot { animation: pulse 1.4s ease-out infinite; }
.plan-car { background: none; border: 0; }
.plan-car span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.plan-car svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.leaflet-tooltip.plan-lbl { background: rgba(14, 15, 17, .82); color: #fff; border: 0; border-radius: 6px; padding: 1px 6px; font-size: 11px; font-weight: 600; box-shadow: none; }
.leaflet-tooltip.plan-lbl::before { display: none; }

/* ==================== Ordinateur : barre latérale, pages larges ==================== */
@media (min-width: 1000px) {
  :root { --side-w: 236px; }
  .tabs.mode-tabs { top: 0; bottom: 0; right: auto; width: var(--side-w); flex-direction: column; align-items: stretch; gap: 4px; padding: 20px 14px 18px; border-top: 0; border-right: 1px solid var(--line); background: var(--panel); }
  .tabs.mode-tabs .side-logo { display: block; padding: 4px 12px 26px; }
  .tabs.mode-tabs .side-logo img { height: 34px; width: auto; display: block; }
  .tabs.mode-tabs button { flex: none; flex-direction: row; justify-content: flex-start; align-items: center; gap: 12px; padding: 11px 14px; border: 0; border-radius: 10px; font-size: 15px; color: var(--muted); }
  .tabs.mode-tabs button svg { width: 22px; height: 22px; }
  .tabs.mode-tabs button:hover { background: var(--panel-2); color: var(--text); }
  .tabs.mode-tabs button.on { background: var(--gold); color: #fff; }
  .tabs.mode-tabs .tab-lbl { display: inline; }
  .tabs.mode-tabs button.tab-settings { margin-top: auto; flex: none; border-left: 0; }
  /* E-mail en petit sous « Compte » (owner, 2026-11-28) : photo sur deux lignes, « Compte » puis l'e-mail */
  .tabs.mode-tabs button.tab-settings:has(.tab-mail) { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 0; row-gap: 1px; text-align: start; padding-inline-end: 8px; }
  .tabs.mode-tabs button.tab-settings:has(.tab-mail) > :first-child { grid-row: 1 / 3; align-self: center; }
  .tabs.mode-tabs button.tab-settings:has(.tab-mail) > .tab-lbl { grid-column: 2; grid-row: 1; margin-inline-start: 12px; }
  .tabs.mode-tabs button.tab-settings:has(.tab-mail) > .tab-badge { grid-column: 3; grid-row: 1 / 3; align-self: center; margin-inline-start: 6px; }
  .tabs.mode-tabs .tab-settings .tab-mail { display: block; grid-column: 2; grid-row: 2; margin-inline-start: 12px; font-size: 10.5px; line-height: 1.3; letter-spacing: -.1px; opacity: .8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* Type de compte en doré sous l'e-mail : Client, Chauffeur, Dispatcher, Flotte, Comptable (owner, 2026-11-28) ; blanc sur le fond doré de l'onglet actif */
  .tabs.mode-tabs button.tab-settings:has(.tab-mail) > :first-child { grid-row: 1 / 4; }
  .tabs.mode-tabs button.tab-settings:has(.tab-mail) > .tab-badge { grid-row: 1 / 4; }
  .tabs.mode-tabs .tab-settings .tab-role { display: block; grid-column: 2; grid-row: 3; margin-inline-start: 12px; font-size: 10.5px; line-height: 1.3; font-weight: 700; color: var(--gold); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  html:not(.dt) .tabs.mode-tabs button.tab-settings.on .tab-role { color: #fff; }   /* fond doré seulement hors Gold thread */
  .tabs.mode-tabs button.tab-signout { display: flex; padding: 8px 14px; font-size: 14px; transition: background-color .3s, color .3s; }
  .tabs.mode-tabs button.tab-signout svg { width: 18px; height: 18px; margin: 0 2px; }
  .tabs.mode-tabs .tab-badge { position: static; margin-left: auto; }
  #app:has(> .tabs.mode-tabs) { padding-bottom: 0; padding-left: var(--side-w); }
  /* Aucun écran (admin, chauffeur, comptable, client) ne dépasse 1500 px de large, colonne de gauche COMPRISE, à partir du bord de la
     fenêtre, quelle que soit la largeur de la page elle-même (owner, 2026-11-28) : tout ce qui est dans #app s'arrête là. */
  #app:has(> .tabs.mode-tabs) { max-width: 1500px; }
  body:has(.tabs.mode-tabs) .push-bar { margin-left: var(--side-w); }
  .overlay { left: var(--side-w); }
  #toast { left: calc(50% + var(--side-w) / 2); bottom: 40px; }
  #toast.err { left: calc(var(--side-w) + 40px); }
  .fab { right: auto; left: calc(var(--side-w) + 28px); bottom: 28px; }
  .fab.fab-archive { left: calc(var(--side-w) + 28px + 56px + 12px); }

  /* Toute page commence à 20 px de la colonne de gauche, jamais centrée dans l'espace libre (owner, 2026-11-28) */
  .wrap { max-width: 1180px; padding: 0 20px; }
  #app:has(> .tabs.mode-tabs) > .wrap { margin-left: 0; }
  .wrap.wide { max-width: 1520px; }
  /* Écrans de l'app (tous les rôles) : 1180 px comme les autres pages ; 1500 px est une limite, pas une largeur. Seuls le Planning et
     la vue « liste + fiche » des transferts restent larges (owner, 2026-11-28). Pages de connexion (.bl-page) inchangées. */
  #app:has(> .tabs.mode-tabs) > .wrap.wide:not(.fp-page):not(.plan-page) { max-width: 1180px; }
  .wrap:has(> .sheet:not(.tsheet)) { max-width: 860px; }
  .top { padding: 18px 0 12px; }
  #app:has(> .tabs.mode-tabs) .top > a:first-child .logo { display: none; }   /* logo dans la colonne de gauche ; pages de connexion : logo dans l'en-tête */
  .tsearch-wrap { padding: 8px 0 0; max-width: 560px; }

  /* Listes en grille */
  .list { padding: 4px 0 60px; display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 0 28px; align-content: start; }
  .list > :not(.row):not(.tcard) { grid-column: 1 / -1; }
  .list > .tcard { margin-bottom: 14px; }
  .list:has(> .tcard) { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 0 16px; }
  .list .row { border-bottom: 1px solid var(--line); padding: 12px 0; }
  .list.pr { display: block; }
  .cards { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }

  /* Fiche transfert : détails à gauche, carte et actions à droite (fixes au défilement) */
  .sheet { padding: 6px 0 40px; }
  .tsheet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); gap: 32px; align-items: start; }
  .tcol-a, .tcol-b { display: block; }
  .tcol-b { position: sticky; top: 76px; }
  .tcol-b .tmap { height: 320px; margin-top: 0; }
  .tsheet .head .num { font-size: 26px; }
  .tdetail { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  /* Réglages sur deux colonnes */
  .settings { padding: 0 0 60px; }

  .dialog { margin-top: 70px; max-width: 680px; }
  .chat-page { max-width: 980px; height: 100dvh; }
  #app:has(.chat-page) { padding-bottom: 0; }

  /* Planning : carte à gauche, liste à droite, sur toute la hauteur */
  .plan { padding: 0 0 20px; }
}
.dpanel a.btn, .chat-head a.btn, .plan-item a.btn, .thread a.btn { color: var(--text); text-decoration: none; }
.list.pr .day-title { text-transform: none; }

/* ==================== Connexion des espaces client et chauffeur : présentation de marque ==================== */
.brand-login { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 460px; margin: 0 auto; padding: 0 20px 40px; }
.bl-intro { padding: 0 0 6px; }
.bl-logo { height: 46px; width: auto; max-width: 100%; display: block; margin: 0 0 24px; align-self: flex-start; object-fit: contain; object-position: left center; }
.bl-kicker { display: inline-block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.bl-intro h1 { font-size: 28px; line-height: 1.15; margin: 6px 0 10px; font-weight: 600; letter-spacing: -.01em; }
.bl-intro p { color: var(--muted); margin: 0; font-size: 16px; line-height: 1.5; }
.bl-book { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; }
.bl-book b { font-weight: 600; }
.bl-book .btn { text-decoration: none; min-height: 40px; padding: 8px 18px; }
.auth.bl-form { margin: 6px 0 0; padding: 22px 20px 24px; max-width: none; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; }
.bl-form h2 { margin: 0 0 2px; font-size: 20px; font-weight: 600; }
.bl-form > p { margin-top: 4px; }
.bl-reg { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 14px; }
.bl-reg .btn { margin-top: 8px; }
/* Connexion client en deux temps : adresse saisie rappelée au-dessus du mot de passe, avec « Modifier ». */
.cl-email { display: flex; align-items: center; gap: 12px; margin: 14px 0 4px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); font-size: 15px; }
.cl-email span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.cl-email .text-link { flex: none; }
.cl-note { color: var(--muted); font-size: 13px; }
.cl-forgot { margin-top: 14px; text-align: center; }
/* Réglages enregistrés automatiquement : coche verte « Enregistré » à côté du titre du champ, 5 s. */
.saved-tick { display: inline-flex; align-items: center; gap: 3px; margin-left: 10px; color: var(--green); font-size: 13px; font-weight: 600; opacity: 0; transition: opacity .3s; vertical-align: middle; pointer-events: none; }
.saved-tick.show { opacity: 1; }
.saved-tick svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .saved-tick { margin-left: 0; margin-right: 10px; }
@media (min-width: 1100px) {
  .brand-login { max-width: 1100px; flex-direction: row; align-items: center; gap: 56px; padding: 3vh 28px 60px; min-height: calc(100dvh - 90px); }
  .bl-intro { flex: 1 1 0; align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding: 0 8px 0 0; }
  .bl-logo { height: 60px; margin-bottom: 44px; }
  .bl-intro h1 { font-size: 44px; }
  .bl-intro p { font-size: 18px; max-width: 480px; }
  .bl-book { margin-top: 36px; max-width: 480px; background: var(--bg); }
  .auth.bl-form { flex: 0 0 400px; margin: 0; }
}

/* ==================== Photos de profil et onglet Utilisateurs ==================== */
.drv-ava { overflow: hidden; }
.drv-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.drv-ava.lg { width: 52px; height: 52px; font-size: 17px; }
.drv-ava.xl { width: 76px; height: 76px; font-size: 24px; }
.av-edit { display: flex; align-items: center; gap: 16px; margin: 2px 0 14px; }
.av-btns { flex: 1; min-width: 0; }
.av-btns .btns.tight { margin-top: 0; }
.av-btns .btns.tight .btn { flex: 0 0 auto; }
.av-btns small { display: block; margin-top: 6px; }
.chat-head .drv-ava { font-size: 12px; }

.users-page .us-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.users-page .us-head h1 { margin: 6px 0 10px; }
.us-search { padding: 0 0 4px; }
.chip-filter small { opacity: .7; margin-left: 2px; }
.ugrid { display: grid; gap: 12px; }
.ucard { border: 1px solid var(--line); background: var(--panel); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.ucard.pending { border-color: var(--gold); }
.ucard.off { opacity: .6; }
.uc-top { display: flex; gap: 12px; align-items: center; }
.uc-top .grow { flex: 1; min-width: 0; }
.uc-top b { display: block; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.uc-lines { display: flex; flex-direction: column; gap: 2px; font-size: 14px; min-width: 0; }
.uc-lines a { color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-lines a:hover { color: var(--gold); }
.uc-meta { font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.uc-groups { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.uc-since { font-size: 12px; color: var(--muted); }
.ucard .btns.tight { margin-top: auto; padding-top: 4px; }
.ucard a.btn { color: var(--text); text-decoration: none; }
.us-groups-title { text-transform: none; margin-top: 28px; }
.us-groups { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.grp-card { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid var(--line); background: var(--panel); border-radius: 14px; color: var(--text); text-align: left; }
.grp-card span { display: flex; flex-direction: column; }
.grp-card small { color: var(--muted); font-size: 12px; }
.grp-card.add { border-style: dashed; color: var(--gold); font-weight: 600; }
@media (min-width: 1000px) { .ugrid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); } }

/* Espace client : photos du site (vipazur.fr) derrière la présentation, fondu de 3 s et zoom lent, voile sombre pour le texte */
.bl-intro.has-photo { position: relative; overflow: hidden; isolation: isolate; color: #fff; border-radius: 22px; padding: 26px 22px 22px; background: #0e0f11; border: 0; }
.bl-slides, .bl-slides i { position: absolute; inset: 0; }
.bl-slides { z-index: -1; }
.bl-slides i { background-size: cover; background-position: center; opacity: 0; transition: opacity 2.5s ease-in-out; transform: scale(1); will-change: opacity, transform; z-index: 0; }
.bl-slides i.on { opacity: 1; z-index: 2; animation: heroZoom 10s linear forwards; }
/* Photo sortante : reste visible sous la nouvelle pendant son fondu, et garde son zoom (même animation, qui continue). */
.bl-slides i.prev { opacity: 1; z-index: 1; animation: heroZoom 10s linear forwards; }
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.12); } }
.bl-slides::after { content: ""; position: absolute; inset: 0; z-index: 3; background: linear-gradient(180deg, rgba(8, 9, 11, .55) 0%, rgba(8, 9, 11, .45) 40%, rgba(8, 9, 11, .82) 100%); }
.bl-intro.has-photo .bl-kicker { color: #d9be6a; }
.bl-intro.has-photo h1 { color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .35); }
.bl-intro.has-photo p { color: rgba(255, 255, 255, .88); }
.bl-intro.has-photo .bl-book { background: rgba(14, 15, 17, .55); border-color: rgba(255, 255, 255, .18); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@media (prefers-reduced-motion: reduce) { .bl-slides i { transition: none; } .bl-slides i.on { animation: none; } }
@media (min-width: 1100px) {
  .bl-intro.has-photo { padding: 56px 52px; border-radius: 28px; justify-content: flex-end; min-height: 560px; }
  .bl-intro.has-photo .bl-book { background: rgba(14, 15, 17, .55); }


}

/* Connexion et inscription : en-tête comme sur vipazur.fr (logo en haut à gauche, drapeau juste après) */
.bl-page .top .logo, .wrap:has(> .auth) .top .logo { height: 38px; }
.bl-page .top { padding-top: 18px; }
@media (min-width: 1000px) { .bl-page .top { width: 100%; max-width: 1100px; margin: 0 auto; padding: 22px 28px 8px; } }

/* ==================== Survol des boutons comme sur vipazur.fr ====================
   Le bouton prend les couleurs inverses en 0,3 s : clair/doré → foncé (thème clair) ou foncé → clair (thème sombre),
   soit fond var(--text) et texte var(--bg). Rouge pour les boutons « danger », WhatsApp reste vert.
   Seulement avec une vraie souris (pas d'état de survol bloqué sur téléphone après un appui). */
.btn, .chip-filter, .icon-btn, .tool-btn, .fab, .chat-send, .grp-card, .grp-chip, .seg button, .day-pick, .icon-plain, .text-link,
.tabs.mode-tabs button, .icon-btn svg, .tool-btn svg, .chat-send svg, .fab svg {
  transition: background-color .3s, color .3s, border-color .3s, stroke .3s, fill .3s;
}
@media (hover: hover) {
  .btn:not(:disabled):hover, .chip-filter:hover, .fab:hover, .grp-card:hover, .day-pick:hover {
    background: var(--text); color: var(--bg); border-color: var(--text); filter: none;
  }
  .grp-card:hover small, .day-pick:hover small, .day-pick:hover b, .chip-filter:hover small { color: var(--bg); }
  .btn.danger:not(:disabled):hover { background: var(--red); border-color: var(--red); color: #fff; }
  .tabs.mode-tabs button.tab-signout:hover { background: var(--red); color: #fff; }   /* Se déconnecter (colonne de gauche) : rouge comme « danger » */
  .btn.danger-fill:not(:disabled):hover, .btn.cal-off:not(:disabled):hover { background: #101010; border-color: #101010; color: #fff; }
  .contact-btns .btn.wa:hover { background: #000; border-color: #000; color: #fff; }   /* WhatsApp : fond noir au survol (owner, 2026-11-18) */
  .icon-btn:hover, .tool-btn:hover, .chat-send:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
  /* Calendrier et heures du formulaire : survol comme le sélecteur de vipazur.fr/reservation/ (cercle doré, texte doré) */
  .bk-pick-btn:hover { border-color: var(--gold); }
  .bk-mode button:not(.on):hover { background: var(--text); color: var(--bg); }
  .bk-cal-nav:not(:disabled):hover { background: var(--text); border-color: var(--text); color: var(--bg); }
  .bk-day:not(:disabled):not(.on):hover { border-color: var(--gold); color: var(--gold); }
  .bk-time:not(.on):hover { background: var(--panel); border-color: var(--gold); color: var(--gold); }
  .icon-btn:hover svg, .tool-btn:hover svg, .chat-send:hover svg { stroke: var(--bg); }
  .plan-slider .icon-btn:hover svg { fill: var(--bg); stroke: none; }
  html:not([data-theme="light"]) .tool-btn[data-act="lang"]:hover, html[data-theme="light"] .tool-btn:hover { background: var(--text); border-color: var(--text); }
  .icon-plain:hover, .text-link:hover { color: var(--gold); }
  .grp-chip:hover { border-color: var(--text); }
  .seg button:not(.on):hover { color: var(--text); }
  /* Bandeau rouge des notifications : bouton blanc → noir. */
  .push-bar .btn.small:hover { background: #101010; border-color: #101010; color: #fff; }
  /* Fiche transfert : ligne « position du chauffeur en direct » (ouvre la grande carte). */
  .tp-live:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
  /* Espace client, sur la photo : bouton doré → blanc, comme le bouton doré de l'accueil du site. */
  .bl-intro.has-photo .btn:not(:disabled):hover { background: #fafafa; border-color: #fafafa; color: #101010; }
  /* Colonne de gauche (ordinateur) : lien survolé en clair, onglet actif inchangé. */
  .tabs.mode-tabs button:not(.on):hover { color: var(--text); }
}

/* Carte plein écran du vol sur ordinateur : grande fenêtre centrée (et non une bande étroite), fond cliquable pour fermer */
@media (min-width: 1000px) {
  .ap-overlay { align-items: center; justify-content: center; padding: 32px; }
  .ap-sheet { width: min(1200px, 100%); height: min(860px, 100%); max-width: none; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
  .ap-head { padding: 16px 20px; }
}

/* Boutons-liens : jamais soulignés, comme les boutons du site. */
a.btn { text-decoration: none; }

/* Carte de trajet (transfert, proposition) : cliquable comme celle du vol ; arrêt intermédiaire en or */
.tmap.clickable { cursor: pointer; }
.ap-label.mid { background: #cda55b; }
.ap-label.mid::after { border-top-color: #cda55b; }

/* ==================== Réglages : rubriques à gauche, rubrique choisie à droite (ordinateur) ==================== */
.set-nav { display: none; }
@media (min-width: 1000px) {
  .settings h1 { margin: 6px 0 20px; }
  #sbody.set-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 0 32px; align-items: start; }
  .set-nav { display: flex; flex-direction: column; gap: 4px; grid-column: 1; grid-row: 1; position: sticky; top: 80px; }
  .set-nav button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; border: 0; background: none; padding: 10px 14px; border-radius: 10px; color: var(--muted); font-size: 15px; }
  .set-nav button small { font-size: 12px; opacity: .8; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .set-nav button.on { background: var(--gold); color: #fff; font-weight: 600; }
  .set-nav button.on small { font-weight: 400; }
  /* Colonne de droite : carte de la rubrique, puis carte liée (ex. serveur e-mail sous E-mail). */
  .set-main { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
  .set-panel-2 { min-height: 0; }
  .set-panel-off { display: none; }
  .set-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 8px 28px 28px; min-height: 420px; }
  .set-layout details.sec { display: none; border: 0; background: none; margin: 0; }
  .set-layout details.sec.cur { display: block; }
  .set-layout details.sec > summary { padding: 18px 0 6px; font-size: 22px; cursor: default; pointer-events: none; }
  .set-layout details.sec > summary::after { display: none; }
  .set-layout details.sec > summary small { font-size: 14px; }
  .set-layout details.sec > div { padding: 0; max-width: 760px; }
  .set-layout .set-save { margin: 22px 0 0 !important; max-width: 760px; }
  .set-layout .set-save-off { display: none; }
  /* Se déconnecter : sous Réglages dans la colonne de gauche (.tab-signout), plus dans la page Réglages. */
  .set-logout { display: none !important; }
  .set-layout .logbox { max-height: 60vh; }
}
@media (hover: hover) and (min-width: 1000px) {
  .set-nav button:not(.on):hover { background: var(--text); color: var(--bg); }
}

/* Réglages : icône devant chaque rubrique (liste sur ordinateur, titre sur téléphone) */
.set-ico { flex: none; width: 22px; height: 22px; display: inline-grid; place-items: center; color: var(--gold); font-style: normal; }
.set-ico svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
details.sec > summary .set-ico { margin-right: 2px; }
@media (min-width: 1000px) {
  .set-nav button { flex-direction: row; align-items: center; gap: 12px; }
  .set-txt { display: flex; flex-direction: column; min-width: 0; }
  .set-nav button.on .set-ico { color: #fff; }
  .set-layout details.sec > summary .set-ico { width: 26px; height: 26px; }
  .set-layout details.sec > summary .set-ico svg { width: 24px; height: 24px; }
}
@media (hover: hover) and (min-width: 1000px) { .set-nav button:not(.on):hover .set-ico { color: var(--bg); } }

/* Planning : bouton de date (ouvre le calendrier) */
button.plan-day { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font: inherit; }
button.plan-day svg { width: 18px; height: 18px; stroke: var(--gold); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.plan-dayhead { margin: 14px 0 8px; text-transform: none; }
.plan-dayhead:first-child { margin-top: 0; }
@media (hover: hover) { button.plan-day:hover { background: var(--text); color: var(--bg); border-color: var(--text); } button.plan-day:hover svg { stroke: var(--bg); } }

/* Calendrier du Planning : choix rapides, jours ronds, période en bande arrondie (bouts de semaine et de mois) */
.cal-overlay { align-items: center; }
.cal-dialog { max-width: 420px; margin-top: 0; padding: 20px 18px 22px; }
.cal-presets { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 4px; }
.cal-presets .chip-filter { padding: 6px 12px; font-size: 13px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 6px; }
.cal-head b { font-size: 16px; font-weight: 600; }
.cal-head .icon-btn { width: 36px; height: 36px; font-size: 20px; line-height: 1; color: var(--text); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; text-align: center; }
.cal-grid i { font-style: normal; font-size: 12px; font-weight: 600; color: var(--muted); padding: 6px 0; }
.cal-grid button { position: relative; height: 42px; padding: 0; border: 0; background: none; color: var(--text); font-size: 15px; display: grid; place-items: center; }
.cal-grid button span { position: relative; z-index: 1; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; transition: background-color .2s, color .2s; }
/* Bande de la période : derrière les ronds, arrondie aux extrémités */
.cal-grid button.in::before, .cal-grid button.from::before, .cal-grid button.to::before {
  content: ""; position: absolute; top: 2px; bottom: 2px; left: 0; right: 0; background: var(--gold-soft); }
.cal-grid button.from::before { left: 50%; }
.cal-grid button.to::before { right: 50%; }
.cal-grid button.in.ws::before { left: 2px; border-radius: 99px 0 0 99px; }
.cal-grid button.in.we::before { right: 2px; border-radius: 0 99px 99px 0; }
.cal-grid button.from.we::before, .cal-grid button.to.ws::before { display: none; }
.cal-grid button.edge span { background: var(--gold); color: #fff; font-weight: 700; }
.cal-grid button.today:not(.edge) span { box-shadow: inset 0 0 0 1.5px var(--gold); font-weight: 600; }
.cal-sel { margin: 14px 0 0; font-size: 14px; color: var(--muted); text-align: center; }
.cal-sel b { color: var(--text); }
.cal-hint { text-align: center; margin-top: 4px; }
.cal-dialog .btns { margin-top: 14px; }
@media (hover: hover) { .cal-grid button:not(.edge):hover span { background: var(--text); color: var(--bg); } }

/* Barre « Installer l'app » (téléphone) */
.install-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 14px; padding-top: max(10px, env(safe-area-inset-top)); background: var(--gold); color: #fff; font-size: 14px; line-height: 1.35; }
.install-bar img { flex: none; border-radius: 50%; }
.install-bar span { flex: 1; }
.install-bar .btn.small { background: #fff; color: #101010; border-color: #fff; font-weight: 600; flex: none; }
/* ✕ du bandeau d'installation (owner, 2026-11-30) : rond, couleur du texte du bandeau, cible de 36 px pour le doigt */
.install-bar .ib-x { flex: none; width: 36px; height: 36px; margin-inline-start: -4px; border: 0; border-radius: 50%; background: transparent; color: inherit; display: grid; place-items: center; cursor: pointer; padding: 0; transition: background-color .3s, color .3s; }
.install-bar .ib-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (hover: hover) { .install-bar .ib-x:hover { background: var(--text); color: var(--bg); } }

/* Fenêtres au-dessus des cartes (les boutons +/− de Leaflet ont z-index 1000) ; messages au-dessus des fenêtres */
.overlay { z-index: 1100; }
#toast { z-index: 1200; }

/* Planning : transferts en bande horizontale au-dessus (défilement sur le côté), carte sur toute la largeur en dessous */
.plan-main { display: flex; flex-direction: column; gap: 12px; }
.plan-list { order: -1; margin: 0; display: flex; gap: 10px; overflow-x: auto; overflow-y: hidden; padding: 2px 2px 10px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.plan-list > .empty, .plan-list > .hint { flex: 1; padding: 18px 0; }
.plan-list .plan-item { position: relative; flex: 0 0 250px; margin: 0; align-items: flex-start; padding: 10px 12px 10px 14px; scroll-snap-align: start; }
.plan-list .plan-item .pdot { margin-top: 5px; }
.plan-list .plan-item .tline { font-size: 14px; margin: 2px 0; }
.plan-list .plan-item small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan-list .plan-item .pi-top { padding-right: 58px; flex-wrap: nowrap; white-space: nowrap; overflow: hidden; }
.plan-list .plan-item a.btn { position: absolute; top: 8px; right: 8px; min-height: 28px; padding: 2px 10px; font-size: 12px; }
/* Plusieurs jours : la date en tête de chaque groupe, dans la bande */
.plan-list .plan-dayhead { scroll-snap-align: start; flex: 0 0 auto; align-self: stretch; display: flex; align-items: center; margin: 0; padding: 0 10px; max-width: 92px; font-size: 13px; line-height: 1.25; border-left: 2px solid var(--gold); white-space: normal; }
.plan-list .plan-dayhead:first-child { border-left: 0; padding-left: 2px; }
.plan-map { height: 62vh; }
@media (min-width: 1000px) {
  .plan-map { height: calc(100dvh - 330px); min-height: 420px; }
}
/* Téléphone : curseur du temps sur sa propre ligne, sous lecture / heure / vitesse */
@media (max-width: 999px) {
  .plan-slider { flex-wrap: wrap; border-radius: 18px; row-gap: 6px; }
  .plan-slider .ps-time { flex: 1; font-size: 16px; }
  .plan-slider input[type=range] { order: 5; flex: 1 0 100%; }
}
/* Bande du Planning : main pour glisser à la souris ; pas d'aimantation ni de sélection de texte pendant le glissement */
@media (hover: hover) { .plan-list { cursor: grab; } .plan-list .plan-item a.btn { cursor: pointer; } }
.plan-list.dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; -webkit-user-select: none; }
.plan-list.dragging * { cursor: grabbing; }

/* Ordinateur : drapeau de langue juste à côté du logo, dans la colonne de gauche (comme sur vipazur.fr) */
.tabs.mode-tabs .side-top { display: none; }
@media (min-width: 1000px) {
  .tabs.mode-tabs .side-top { display: flex; align-items: center; gap: 2px; padding: 4px 0 26px 12px; }
  .tabs.mode-tabs .side-top .side-logo { padding: 0; flex: 1 1 auto; min-width: 0; }   /* toute la place restante : drapeau et lune calés à droite, ils ne bougent plus quand le logo clair / sombre change de largeur (owner, 2026-11-28) */
  /* Logo ChauffApp plus large que l'ancien : il rétrécit pour que le drapeau et le thème restent dans la colonne (owner, 2026-11-27) */
  .tabs.mode-tabs .side-top .side-logo img { height: auto; max-height: 28px; max-width: 100%; }
  .tabs.mode-tabs .side-top .tool-btn { background: transparent; border-color: transparent; }
  #app:has(> .tabs.mode-tabs) .top .tool-btn[data-act="lang"] { display: none; }
}
/* Drapeau à côté du logo : petit bouton rond centré, collé au logo (n'hérite pas du style des onglets de la colonne) */
@media (min-width: 1000px) {
  .tabs.mode-tabs .side-top { gap: 8px; }
  .tabs.mode-tabs .side-top .tool-btn { flex: none; width: 30px; height: 30px; padding: 0; margin: 0; display: grid; place-items: center; place-content: center; gap: 0; border: 0; border-radius: 50%; background: transparent; }
  .tabs.mode-tabs .side-top .tool-btn img { width: 24px; height: 17px; display: block; }
}
@media (hover: hover) and (min-width: 1000px) {
  html .tabs.mode-tabs .side-top .tool-btn:hover, html .tabs.mode-tabs .side-top .tool-btn:focus { background: transparent !important; border-color: transparent !important; opacity: .75; }
}

/* Espace client : flèche de retour à gauche du logo */
.top-back { flex: none; width: 36px; height: 36px; margin-right: -4px; display: grid; place-items: center; border-radius: 50%; color: var(--text); }
.top-back svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .top-back:hover { background: var(--text); color: var(--bg); } }
/* Espace client (ordinateur) : panneau photo à la hauteur du formulaire de connexion, pas de toute la page */
@media (min-width: 1100px) {
  .bl-intro.has-photo { align-self: center; height: 800px; min-height: 0; max-height: calc(100dvh - 120px); padding: 40px 44px; }
  .bl-intro.has-photo h1 { font-size: 38px; }
  .bl-intro.has-photo .bl-book { margin-top: 26px; }
}

/* Inscription client sans réservation */
.nb-panel h2 { margin: 0 0 8px; font-size: 20px; font-weight: 600; }
.nb-panel p { color: var(--muted); margin: 0; line-height: 1.5; }
/* Tablette et petits écrans (moins de 1100 px) : présentation au-dessus, formulaire en dessous, centrés */
@media (min-width: 1000px) and (max-width: 1099px) {
  .brand-login { max-width: 640px; }
  .bl-intro.has-photo { min-height: 380px; display: flex; flex-direction: column; justify-content: flex-end; padding: 36px 34px; }
  .bl-intro.has-photo h1 { font-size: 34px; }
  .bl-page .top { width: 100%; max-width: 640px; margin: 0 auto; padding: 22px 20px 8px; }
}

/* ==================== Inscription chauffeur (dossier VTC) ==================== */
.reg-wrap { display: flex; flex-direction: column; gap: 18px; width: 100%; max-width: 1100px; margin: 0 auto; padding: 4px 16px 60px; }
.reg-intro h1 { font-size: 28px; line-height: 1.15; margin: 6px 0 10px; font-weight: 600; }
.reg-intro p { color: var(--muted); margin: 0 0 12px; line-height: 1.5; }
.reg-steps { display: none; }
.reg-form { display: flex; flex-direction: column; gap: 14px; }
.reg-sec { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 20px; scroll-margin-top: 20px; }
.reg-sec h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font-size: 18px; font-weight: 600; }
.reg-sec h2 i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
.reg-sec label.f { margin-top: 12px; }
.reg-grid { display: grid; grid-template-columns: 1fr; column-gap: 16px; }
.doc-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 12px; }
.doc-tile { border: 1.5px dashed var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.doc-tile.done { border-style: solid; border-color: var(--green); background: var(--green-soft); }
.doc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.doc-head b { font-size: 14px; }
.doc-tile small { color: var(--muted); font-size: 12px; }
.doc-files { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.doc-files li { display: flex; align-items: center; gap: 6px; font-size: 13px; min-width: 0; }
.doc-files li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-files button, .mf-file button { border: 0; background: none; color: var(--muted); padding: 0; width: 22px; height: 22px; display: grid; place-items: center; flex: none; }
.doc-files svg, .mf-file svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2.4; fill: none; }
.doc-add { align-self: flex-start; margin-top: 6px; cursor: pointer; }
@media (min-width: 1000px) {
  .reg-grid { grid-template-columns: 1fr 1fr; }
  .doc-grid { grid-template-columns: 1fr 1fr; }
  .reg-sec { padding: 22px 24px 24px; }
}
@media (min-width: 1100px) {
  .reg-wrap { flex-direction: row; align-items: flex-start; gap: 40px; padding: 10px 20px 80px; }
  .reg-intro { flex: 0 0 300px; position: sticky; top: 24px; }
  .reg-intro h1 { font-size: 34px; }
  .reg-steps { display: flex; flex-direction: column; gap: 2px; list-style: none; padding: 0; margin: 18px 0 20px; counter-reset: st; }
  .reg-steps a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 15px; counter-increment: st; }
  .reg-steps a::before { content: counter(st); width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 12px; }
  .reg-form { flex: 1; min-width: 0; }
  .doc-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (hover: hover) { .reg-steps a:hover { background: var(--text); color: var(--bg); } .doc-tile:not(.done):hover { border-color: var(--gold); } }

/* Dossier du chauffeur : alertes, informations, pièces */
.dos-dialog { max-width: 760px; }
.dos-h { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 18px 0 6px; }
.dos-flags { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.dos-flag { padding: 8px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; margin-top: 10px; }
.dos-flags .dos-flag { margin-top: 0; }
.dos-flag.bad { background: var(--red-soft); color: var(--red); }
.dos-flag.warn { background: var(--gold-soft); color: var(--gold); }
.dos-flag.ok { background: var(--green-soft); color: var(--green); }
.dos-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dos-docs { display: grid; grid-template-columns: 1fr; gap: 8px; }
.dos-doc { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; }
.dos-doc.miss { border-color: var(--red); }
.dos-doc em { color: var(--muted); font-style: normal; font-size: 13px; }
.dos-doc.miss em { color: var(--red); font-weight: 600; }
.dos-doc a { color: var(--gold); overflow-wrap: anywhere; }
.mf-docs { margin-top: 16px; }
.mf-file { display: flex; align-items: center; gap: 6px; }
.mf-docs .text-link { margin-top: 4px; font-size: 13px; cursor: pointer; align-self: flex-start; }
.dos-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; margin-left: 4px; }
@media (min-width: 1000px) { .dos-docs { grid-template-columns: 1fr 1fr; } .dos-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ==================== Choix de la langue (11 langues du site) ==================== */
.lang-drop-bg { position: fixed; inset: 0; z-index: 1150; }
.lang-list.drop { position: fixed; min-width: 220px; max-height: 72vh; overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); padding: 6px; }
.lang-opt { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: none; color: var(--text); padding: 9px 12px; border-radius: 10px; font-size: 15px; text-align: start; cursor: pointer; transition: background-color .3s, color .3s; }
.lang-opt img { width: 24px; height: 17px; border-radius: 2px; object-fit: cover; flex: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.lang-opt span { flex: 1; }
.lang-opt i { font-style: normal; color: var(--gold); font-weight: 700; }
.lang-opt.on { background: var(--gold-soft); }
@media (hover: hover) { .lang-opt:hover { background: var(--text); color: var(--bg); } .lang-opt:hover i { color: var(--bg); } }
/* Téléphone : plein écran */
.overlay.lang-full { align-items: stretch; justify-content: stretch; background: var(--bg); }
.lang-list.full { width: 100%; height: 100%; overflow: auto; padding: 14px 16px 24px; padding-top: max(14px, env(safe-area-inset-top)); }
.lang-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 0 10px; }
.lang-head b { font-size: 22px; font-weight: 600; }
.lang-list.full .lang-opt { padding: 15px 8px; font-size: 18px; border-bottom: 1px solid var(--line); border-radius: 0; }
.lang-list.full .lang-opt img { width: 32px; height: 23px; }

/* ==================== Arabe : de droite à gauche ==================== */
[dir="rtl"] .back-link svg, [dir="rtl"] .top-back svg, [dir="rtl"] .chat-head .icon-plain svg { transform: scaleX(-1); }
[dir="rtl"] .fab { right: auto; left: max(20px, calc(50vw - 290px)); }
[dir="rtl"] .tabs.mode-tabs button.tab-settings { border-left: 0; }
[dir="rtl"] .plan-list .plan-item a.btn { right: auto; left: 8px; }
[dir="rtl"] .plan-list .plan-item .pi-top { padding-right: 0; padding-left: 58px; }
[dir="rtl"] .reg-steps a::before { margin: 0; }
[dir="rtl"] input[type=email], [dir="rtl"] input[type=tel], [dir="rtl"] input[type=password], [dir="rtl"] input[type=number] { direction: ltr; text-align: right; }
@media (min-width: 1000px) {
  [dir="rtl"] .tabs.mode-tabs { left: auto; right: 0; border-right: 0; border-left: 1px solid var(--line); }
  [dir="rtl"] #app:has(> .tabs.mode-tabs) { padding-left: 0; padding-right: var(--side-w); }
  [dir="rtl"] .overlay { left: 0; right: var(--side-w); }
  [dir="rtl"] body:has(.tabs.mode-tabs) .push-bar { margin-left: 0; margin-right: var(--side-w); }
  [dir="rtl"] .fab { left: 40px; right: auto; }
  [dir="rtl"] #toast { left: calc(50% - var(--side-w) / 2); }
  [dir="rtl"] #toast.err { left: 40px; right: calc(var(--side-w) + 40px); }
  [dir="rtl"] .tabs.mode-tabs .side-top { padding: 4px 12px 26px 0; }
}

/* Client : réserver un nouveau transfert dans l'app (onglet + bouton en haut de la liste) ; onglet ouvert : blanc sur or comme les autres */
.tabs.mode-tabs button.tab-book { color: var(--gold); }
.tabs.mode-tabs button.tab-book.on { color: #fff; }
.cbook { margin: 4px 0 12px; }
.cbook .btn { display: flex; align-items: center; justify-content: center; gap: 10px; }
.cbook .btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
@media (min-width: 1024px) { .cbook .btn { width: auto; display: inline-flex; padding-left: 26px; padding-right: 26px; } }
/* Client : contacter le chauffeur attribué (WhatsApp, SMS, appel) */
.drv-contact { border-bottom: 0; padding: 12px 0 4px; }
/* Arabe (droite à gauche) : le trait entre deux étapes part vers la droite */
[dir="rtl"] .stage-steps li::before { left: auto; right: -50%; }
/* Photo du chauffeur : cartes de la liste des transferts et ligne « Attribué à » de la fiche */
.drv-ava.xs { width: 22px; height: 22px; font-size: 9px; }
.as-who { display: inline-flex; align-items: center; gap: 8px; }
/* Planning sur ordinateur : transferts sur la moitié haute (grille qui défile), carte sur la moitié basse ; plus de curseur du temps */
@media (min-width: 1000px) {
  .plan-page .plan-main { display: grid; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; height: calc(100dvh - 230px); min-height: 520px; }
  .plan-page .plan-list { order: -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); align-content: start; gap: 10px; overflow-x: hidden; overflow-y: auto; scroll-snap-type: none; padding: 2px 4px 2px 2px; cursor: auto; }
  .plan-page .plan-list .plan-item { flex: none; min-width: 0; }
  .plan-page .plan-list .plan-dayhead { grid-column: 1 / -1; max-width: none; border-left: 0; padding: 6px 2px 0; }
  .plan-page .plan-map-wrap { display: flex; flex-direction: column; min-height: 0; }
  .plan-page .plan-map { flex: 1; height: auto; min-height: 0; }
  .plan-page .plan-est { margin: 6px 0 0; }
  .wrap.plan-page { min-height: 0; }
}
/* Téléphone : la barre de dates du Planning passe à la ligne au lieu de déborder */
@media (max-width: 999px) {
  .plan-date { flex-wrap: wrap; max-width: 100%; }
  .plan-day { min-width: 0; max-width: calc(100vw - 132px); }
  .plan-day b { overflow: hidden; text-overflow: ellipsis; }
}

/* ==================== Réservation dans l'app (#reserver, book.js) ====================
   Même formulaire dans l'app, sur la page publique /reservation/ et dans l'iframe de vipazur.fr (thème clair ou sombre).
   Motif commun : le trajet départ ● → arrivée ○ relié par un pointillé (étape 1 et récapitulatif).
   Propriétés logiques (inline-start / end) : l'arabe se retourne sans règle à part. */
.bk-page {
  --bk-r: 18px; --bk-ri: 13px;
  --bk-sh: 0 1px 2px rgba(0, 0, 0, .25), 0 14px 34px -18px rgba(0, 0, 0, .7);
  --bk-sh-pop: 0 22px 48px -18px rgba(0, 0, 0, .75);
  --bk-dash: color-mix(in srgb, var(--muted) 55%, transparent);
  padding: 0 16px 120px; caret-color: var(--gold);
}
html[data-theme="light"] .bk-page {
  --bk-sh: 0 1px 2px rgba(16, 16, 16, .05), 0 14px 34px -20px rgba(16, 16, 16, .22);
  --bk-sh-pop: 0 22px 48px -20px rgba(16, 16, 16, .3);
}
.bk-page ::selection { background: color-mix(in srgb, var(--gold) 32%, transparent); color: var(--text); }
.bk-title { font-size: 26px; font-weight: 650; letter-spacing: -.015em; line-height: 1.15; margin: 6px 0 18px; }

/* Étapes (owner, 2026-11-18 : « fit the design better ») : 3 colonnes égales, une barre de progression au-dessus de chacune
   (dorée jusqu'à l'étape en cours, remplie en glissant), puis la pastille et le nom de l'étape. */
.bk-steps { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bk-steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 9px; row-gap: 10px; min-width: 0;
  font-size: 14px; font-weight: 550; color: var(--muted); transition: color .3s; }
.bk-steps li::before { content: ""; grid-column: 1 / -1; height: 4px; border-radius: 99px;
  background: linear-gradient(var(--gold), var(--gold)) no-repeat left / 0% 100%, var(--line); transition: background-size .5s cubic-bezier(.16, 1, .3, 1); }
[dir="rtl"] .bk-steps li::before { background-position: right; }
.bk-steps li.on::before, .bk-steps li.done::before { background-size: 100% 100%; }
.bk-steps li i { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12.5px; font-weight: 650;
  font-variant-numeric: tabular-nums; border: 1.5px solid var(--line); color: var(--muted); transition: background-color .3s, color .3s, border-color .3s; }
.bk-steps li i svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.bk-steps li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-steps li.on { color: var(--text); font-weight: 650; }
.bk-steps li.done { color: var(--text); }
.bk-steps li.on i { background: var(--gold); border-color: var(--gold); color: #fff; }
.bk-steps li.done i { background: color-mix(in srgb, var(--gold) 16%, transparent); border-color: transparent; color: var(--gold); }
.bk-enter .bk-steps li.on::before { animation: bkStepFill .7s cubic-bezier(.16, 1, .3, 1) both; }   /* nouvelle étape : sa barre se remplit */
@keyframes bkStepFill { from { background-size: 0% 100%; } }
@media (prefers-reduced-motion: reduce) { .bk-steps li::before { transition: none; } .bk-enter .bk-steps li.on::before { animation: none; } }

/* Transfert / Mise à disposition : onglets en haut du formulaire (book.js bkStep1) */
.bk-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: calc(var(--bk-ri) + 2px); background: var(--bg); }
.bk-mode button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 6px 10px; border: 0; border-radius: calc(var(--bk-ri) - 2px);
  background: none; color: var(--muted); font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; text-align: center; cursor: pointer;
  transition: background-color .3s, color .3s, box-shadow .3s; }
.bk-mode button svg { flex: none; width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .bk-mode button svg { transform: scaleX(-1); }
.bk-mode button.on { background: var(--gold); color: #fff; box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--gold) 80%, transparent); }
.bk-mode button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 420px) { .bk-mode button { font-size: 14px; gap: 6px; padding-inline: 6px; } }

/* Blocs */
.bk-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--bk-r); padding: 20px; margin-bottom: 16px; box-shadow: var(--bk-sh); }
.bk-sec { margin-bottom: 18px; }
.bk-h { font-size: 17px; font-weight: 650; letter-spacing: -.005em; margin: 0 0 14px; }
.bk-sec > .bk-h { margin: 2px 2px 12px; }
.bk-sec > .hint { margin: 10px 4px 0; }

/* Étape 1 : départ et arrivée, reliés par un pointillé ; bouton pour inverser sur le trait de séparation */
.bk-places { position: relative; border: 1px solid var(--line); border-radius: calc(var(--bk-ri) + 2px); background: var(--bg); transition: border-color .25s, box-shadow .25s; }
.bk-places:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 22%, transparent); }
.bk-places::before { content: ""; position: absolute; inset-inline-start: 31px; top: 53px; bottom: 53px; border-inline-start: 2px dotted var(--bk-dash); pointer-events: none; }
.bk-place { position: relative; display: flex; align-items: center; gap: 14px; min-height: 70px; padding-block: 10px; padding-inline: 14px 64px; }
.bk-place[data-side="to"] { border-top: 1px solid var(--line); }
.bk-mark { position: relative; z-index: 1; flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; }
.bk-mark.from { background: var(--gold); color: #fff; }
.bk-mark.to { background: var(--bg); color: var(--text); border: 1.5px solid var(--text); }
.bk-mark svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bk-mark svg path[d^="M11 3h2"], .bk-sugg-ic svg path[d^="M11 3h2"] { fill: currentColor; stroke: none; }
.bk-pl { flex: 1; min-width: 0; display: block; }
.bk-pl small { display: block; font-size: 12px; font-weight: 550; letter-spacing: .01em; color: var(--muted); margin-bottom: 1px; }
.bk-pl input[type=text] { width: 100%; border: 0; background: transparent; padding: 2px 0; min-height: 0; font-size: 17px; font-weight: 550; outline: none; box-shadow: none; border-radius: 0; text-overflow: ellipsis; }
.bk-pl input[type=text]::placeholder { color: var(--muted); font-weight: 400; }
.bk-swap { position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%); z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--panel); color: var(--text); display: grid; place-items: center; box-shadow: var(--bk-sh); }
.bk-swap svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Adresses proposées */
.bk-sugg { position: absolute; inset-inline: 8px; top: calc(100% + 6px); z-index: 30; list-style: none; margin: 0; padding: 6px; max-height: 340px; overflow: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--bk-sh-pop); }
.bk-sugg button { width: 100%; display: flex; gap: 12px; align-items: center; text-align: start; background: none; border: 0; border-radius: 11px; padding: 9px 10px; color: var(--text); }
.bk-sugg button.on, .bk-sugg button:focus-visible { background: var(--panel-2); outline: none; }
.bk-sugg b { display: block; font-weight: 600; font-size: 15px; }
.bk-sugg small { display: block; color: var(--muted); font-size: 13px; margin-top: 1px; }
.bk-sugg-ic { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); color: var(--muted); }
.bk-sugg-ic svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* Date et heure : icône dorée dans le champ ; tout le champ ouvre le sélecteur du navigateur */
.bk-dt { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.bk-field { display: block; min-width: 0; }
.bk-field > span:first-child { display: block; font-size: 12px; font-weight: 550; letter-spacing: .01em; color: var(--muted); margin: 0 0 6px 2px; }
.bk-field-in { position: relative; display: flex; align-items: center; }
.bk-field-in > svg { position: absolute; inset-inline-start: 13px; width: 18px; height: 18px; stroke: var(--gold); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.bk-field-in input { -webkit-appearance: none; appearance: none; min-width: 0; height: 54px; padding-block: 0; padding-inline: 40px 6px; border-radius: var(--bk-ri);
  background: var(--bg); font-size: 16px; font-weight: 550; font-variant-numeric: tabular-nums; text-align: start; transition: border-color .25s, box-shadow .25s; }
.bk-field-in input::-webkit-date-and-time-value { text-align: start; }
.bk-field-in input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: auto; height: auto; opacity: 0; cursor: pointer; }

/* Date et heure : calendrier et liste d'heures comme vipazur.fr/reservation/ (book.js bkOpenPick) */
.bk-pickf { position: relative; }
.bk-pick-btn { width: 100%; height: 54px; margin: 0; padding-block: 0; padding-inline: 40px 10px; border: 1px solid var(--line); border-radius: var(--bk-ri);
  background: var(--bg); color: var(--text); font: inherit; font-size: 16px; font-weight: 550; font-variant-numeric: tabular-nums; text-align: start; cursor: pointer;
  transition: border-color .3s, box-shadow .3s; }
.bk-pick-val { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-pick-val.ph { color: var(--muted); font-weight: 450; }
.bk-pickf.open .bk-pick-btn, .bk-pick-btn:focus-visible { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 22%, transparent); }
.bk-invalid .bk-pick-btn { border-color: var(--red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 16%, transparent); }
.bk-pop { position: absolute; top: calc(100% + 8px); z-index: 40; background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--bk-sh-pop); animation: bkPopIn .18s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes bkPopIn { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .bk-pop { animation: none; } }
.bk-pop-date { inset-inline-start: 0; width: min(380px, calc(100vw - 40px)); padding: 16px 14px 18px; }
.bk-pop-time { inset-inline-end: 0; width: min(290px, calc(100vw - 40px)); max-height: 330px; overflow-y: auto; padding: 10px; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.bk-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.bk-cal-title { font-size: 18px; font-weight: 700; text-transform: capitalize; text-align: center; }
.bk-cal-nav { flex: none; width: 40px; height: 40px; min-height: 0; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--text);
  display: grid; place-items: center; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.bk-cal-nav svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bk-cal-nav.next svg, [dir="rtl"] .bk-cal-nav:not(.next) svg { transform: scaleX(-1); }
[dir="rtl"] .bk-cal-nav.next svg { transform: none; }
.bk-cal-nav:disabled { opacity: .35; cursor: default; }
.bk-cal { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; justify-items: center; }
.bk-cal-wd { padding: 12px 0 10px; font-size: 13px; color: var(--muted); text-transform: uppercase; }
.bk-day { width: 100%; max-width: 46px; aspect-ratio: 1; min-height: 0; padding: 0; border-radius: 50%; border: 2px solid transparent; background: none; color: var(--text);
  font: inherit; font-size: 16px; font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.bk-day.today { border-color: var(--gold); color: var(--gold); }
.bk-day.on { background: var(--gold); border-color: var(--gold); color: #fff; font-weight: 600; }
.bk-day:disabled { color: var(--muted); opacity: .45; cursor: default; border-color: transparent; }
.bk-day:focus-visible, .bk-time:focus-visible, .bk-cal-nav:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.bk-times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bk-time { min-height: 0; padding: 11px 4px; border-radius: 8px; border: 2px solid transparent; background: var(--panel-2); color: var(--text);
  font: inherit; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: center; white-space: nowrap; cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s; }
.bk-time.on { background: var(--gold); border-color: var(--gold); color: #fff; }
.bk-times-none { margin: 8px; color: var(--muted); font-size: 14px; }
@media (max-width: 420px) { .bk-cal-wd { padding: 8px 0 6px; } .bk-day { font-size: 15px; } }
.bk-go { margin-top: 18px; min-height: 54px; font-size: 16px; gap: 10px; }
.bk-go svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
[dir="rtl"] .bk-go svg { transform: scaleX(-1); }
.bk-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: bkspin .8s linear infinite; }
@keyframes bkspin { to { transform: rotate(360deg); } }

/* Champs (étape 3) */
.bk-page label.f { margin-top: 14px; font-size: 12px; font-weight: 550; letter-spacing: .01em; }
.bk-page label.f > span { margin: 0 0 6px 2px; }
.bk-page .f input, .bk-page .f select, .bk-page .f textarea { min-height: 52px; padding: 13px 14px; border-radius: var(--bk-ri); background: var(--bg); font-size: 16px; transition: border-color .25s, box-shadow .25s; }
.bk-page .f textarea { min-height: 88px; }
.bk-page .f input:focus, .bk-page .f select:focus, .bk-page .f textarea:focus, .bk-field-in input:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 22%, transparent); }
.bk-page .two { gap: 12px; }
.bk-page .hint { font-size: 13px; }

/* Étape 2 : véhicules = choix à cocher (coche dorée), côte à côte sur grand écran */
.bk-vehs { display: grid; gap: 12px; }
.bk-veh { position: relative; display: grid; grid-template-columns: 116px 1fr auto; align-items: center; gap: 14px; width: 100%; text-align: start;
  background: var(--panel); border: 1.5px solid var(--line); border-radius: var(--bk-r); padding-block: 14px; padding-inline: 8px 16px; color: var(--text); box-shadow: var(--bk-sh); }
.bk-veh.on { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 7%, var(--panel)); }
.bk-veh-img img { width: 116px; height: 66px; object-fit: contain; display: block; }
.bk-veh-body { min-width: 0; }
.bk-veh-name { display: block; font-size: 17px; font-weight: 650; letter-spacing: -.005em; }
.bk-veh-meta { display: flex; gap: 14px; color: var(--muted); font-size: 14px; margin-top: 5px; font-variant-numeric: tabular-nums; }
.bk-veh-meta span { display: inline-flex; align-items: center; gap: 5px; }
.bk-veh-meta svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bk-veh-price { display: flex; align-items: center; gap: 14px; }
.bk-veh-price b { font-size: 22px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bk-radio { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--muted) 65%, transparent); display: grid; place-items: center; color: transparent; font-style: normal; }
.bk-veh.on .bk-radio { background: var(--gold); border-color: var(--gold); color: #fff; }
.bk-radio svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 1000px) {
  .bk-vehs { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
  .bk-veh { grid-template-columns: 1fr auto; grid-template-areas: "img img" "body price"; align-items: end; row-gap: 10px; padding: 14px 18px 18px; }
  .bk-veh-img { grid-area: img; justify-self: center; }
  .bk-veh-img img { width: 220px; height: 124px; }
  .bk-veh-body { grid-area: body; }
  .bk-veh-price { grid-area: price; }
}

/* Sièges enfant : quantité dans une pastille − 0 + */
.bk-extra { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.bk-h + .bk-extra { border-top: 0; padding-top: 0; }
.bk-extra b { display: block; font-weight: 600; }
.bk-extra small { color: var(--muted); font-size: 13px; }
.bk-qty { flex: none; display: inline-flex; align-items: center; padding: 3px; border: 1px solid var(--line); border-radius: 99px; background: var(--bg); transition: border-color .3s; }
.bk-extra.on .bk-qty { border-color: var(--gold); }
.bk-qty span { min-width: 30px; text-align: center; font-weight: 650; font-variant-numeric: tabular-nums; }
.bk-qty button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; font-size: 20px; line-height: 1; display: grid; place-items: center; color: var(--text); }
.bk-qty button:disabled { opacity: .3; cursor: default; }
.bk-extra.on .bk-qty button[data-d="1"]:not(:disabled) { color: var(--gold); }

/* Pourboire : cercles comme sur le formulaire du site */
.bk-tipcard { text-align: center; }
.bk-tips { display: flex; justify-content: center; gap: 12px; }
.bk-tips button { width: 60px; height: 60px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--bg); color: var(--text); font-weight: 650; font-variant-numeric: tabular-nums; }
.bk-tips button.on { background: var(--gold); border-color: var(--gold); color: #fff; }

/* Récapitulatif : même trajet ● → ○ qu'à l'étape 1, total bien visible */
.bk-recap-head { display: flex; align-items: baseline; justify-content: space-between; }
.bk-recap-head .bk-h { margin-bottom: 10px; }
.bk-when { font-weight: 650; margin-bottom: 14px; }
.bk-route { display: grid; gap: 16px; padding-inline-start: 24px; }
.bk-route div { position: relative; font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.bk-dot { position: absolute; inset-inline-start: -24px; top: 4px; width: 12px; height: 12px; border-radius: 50%; }
.bk-dot.from { background: var(--gold); }
.bk-dot.to { background: var(--panel); border: 2px solid var(--text); }
.bk-route div:first-child::after { content: ""; position: absolute; inset-inline-start: -19px; top: 20px; bottom: -14px; border-inline-start: 2px dotted var(--bk-dash); }
.bk-recap > .hint { margin-top: 10px; }
.bk-lines { margin-top: 16px; border-top: 1px dashed var(--line); padding-top: 12px; display: grid; gap: 8px; }
.bk-line { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.bk-line span { color: var(--muted); }
.bk-line b { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.bk-line.total { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 20px; align-items: baseline; }
.bk-line.total span { color: var(--text); font-weight: 650; font-size: 16px; }
.bk-line.total b { font-weight: 750; letter-spacing: -.01em; }

/* Barre du bas : total + boutons, collée au-dessus de la barre d'onglets */
.bk-bar { position: sticky; bottom: calc(var(--tabbar-h, 0px) + 12px); z-index: 20; display: flex; align-items: center; gap: 10px; margin: 8px 0 16px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 99px; padding: 6px; box-shadow: var(--bk-sh-pop); }
.bk-bar .btn { min-height: 46px; }
.bk-bar-total { flex: 1; text-align: center; line-height: 1.15; }
.bk-bar-total small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.bk-bar-total b { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bk-ov { align-items: center; }
.bk-dialog { margin: 16px; max-width: 460px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--bk-sh-pop); }
.bk-dialog h2 { margin: 0 0 8px; font-size: 19px; letter-spacing: -.005em; }
.bk-dialog p { margin: 0; color: var(--muted); }
.bk-dialog a.btn { text-decoration: none; }

/* Clavier : anneau doré visible */
.bk-page :is(button, select, textarea, input[type=email], input[type=tel]):focus-visible, .bk-dialog :is(a, button):focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.bk-pl input:focus-visible, .bk-field-in input:focus-visible { outline: none; }

/* Changement d'étape : le contenu glisse en place (une seule animation, rien au survol ni aux quantités) */
@media (prefers-reduced-motion: no-preference) {
  .bk-enter .bk-main, .bk-enter .bk-aside { animation: bkIn .45s cubic-bezier(.16, 1, .3, 1) both; }
  .bk-enter .bk-aside { animation-delay: .07s; }
}
@keyframes bkIn { from { opacity: 0; transform: translateY(12px); } }

@media (max-width: 420px) {
  .bk-steps { gap: 8px; }   /* téléphone étroit : les 3 noms restent, en plus petit */
  .bk-steps li { font-size: 12.5px; column-gap: 6px; }
  .bk-steps li i { width: 22px; height: 22px; font-size: 11px; }
  .bk-card { padding: 16px; }
  .bk-veh { grid-template-columns: 88px 1fr auto; gap: 10px; padding-inline: 6px 12px; }
  .bk-veh-img img { width: 88px; height: 50px; }
  .bk-veh-price { gap: 10px; }
  .bk-veh-price b { font-size: 19px; }
  .bk-bar .btn { padding: 8px 14px; }
}
/* Ordinateur : formulaire à gauche, récapitulatif collant à droite */
@media (min-width: 1000px) {
  .bk-page { padding: 0 0 60px; }
  .bk-steps { max-width: 560px; }
  .bk-grid.has-aside { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
  .bk-grid:not(.has-aside) .bk-main { max-width: 640px; }
  .bk-aside { position: sticky; top: 76px; }
  .bk-bar { bottom: 16px; }
}
/* Survol comme sur vipazur.fr : couleurs inverses en 0,3 s, souris seulement */
.bk-swap, .bk-qty button, .bk-tips button, .bk-veh, .bk-sugg button { transition: background-color .3s, color .3s, border-color .3s, box-shadow .3s; }
@media (hover: hover) {
  .bk-swap:hover, .bk-qty button:not(:disabled):hover, .bk-tips button:not(.on):hover { background: var(--text); border-color: var(--text); color: var(--bg); }
  .bk-veh:not(.on):hover { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); }
  .bk-sugg button:hover { background: var(--panel-2); }
  .bk-go:not(:disabled):hover svg { transform: translateX(4px); }
  [dir="rtl"] .bk-go:not(:disabled):hover svg { transform: scaleX(-1) translateX(4px); }
}

/* Aller-retour : ligne avec interrupteur sous la date et l'heure ; cochée, la date et l'heure du retour apparaissent dessous */
.bk-rt { display: flex; align-items: center; gap: 12px; margin-top: 12px; min-height: 54px; padding-block: 8px; padding-inline: 14px 12px; border: 1px solid var(--line); border-radius: var(--bk-ri);
  background: var(--bg); cursor: pointer; transition: border-color .3s, background-color .3s; -webkit-tap-highlight-color: transparent; }
.bk-rt.on { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 7%, var(--bg)); }
.bk-rt-ic { display: grid; place-items: center; color: var(--gold); }
.bk-rt-ic svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.bk-rt-txt { flex: 1; font-size: 16px; font-weight: 600; }
.bk-rt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.bk-switch { position: relative; flex: none; width: 46px; height: 28px; border-radius: 99px; background: color-mix(in srgb, var(--muted) 45%, transparent); transition: background-color .3s; }
.bk-switch::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.bk-rt input:checked + .bk-switch { background: var(--gold); }
.bk-rt input:checked + .bk-switch::after { transform: translateX(18px); }
[dir="rtl"] .bk-rt input:checked + .bk-switch::after { transform: translateX(-18px); }
.bk-rt input:focus-visible + .bk-switch { outline: 2px solid var(--gold); outline-offset: 2px; }
[dir="rtl"] .bk-rt-ic svg, [dir="rtl"] .bk-when-tag svg { transform: scaleX(-1); }
.bk-return .bk-dt { margin-top: 12px; }
@media (prefers-reduced-motion: no-preference) { .bk-return-in { animation: bkIn .35s cubic-bezier(.16, 1, .3, 1) both; } }
@media (hover: hover) { .bk-rt:not(.on):hover { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); } }

/* Erreurs sous les champs (remplacent le message rouge plein écran) : bord rouge + message court avec icône */
.bk-err, .bk-alert { display: flex; align-items: flex-start; gap: 8px; color: var(--red); font-size: 13.5px; font-weight: 550; line-height: 1.35; letter-spacing: 0; }
.bk-err { margin: 7px 2px 0; animation: bkErrIn .25s ease-out both; }
.bk-err svg, .bk-alert svg { flex: none; width: 17px; height: 17px; margin-top: 0; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.bk-alert { padding: 12px 14px; margin: 0 0 14px; border-radius: var(--bk-ri); background: var(--red-soft); animation: bkErrIn .25s ease-out both; }
.bk-go + .bk-alert, .bk-alert + .bk-go { margin-top: 14px; }
@keyframes bkErrIn { from { opacity: 0; transform: translateY(-4px); } }
.bk-invalid.bk-place { background: color-mix(in srgb, var(--red) 6%, transparent); flex-wrap: wrap; }
.bk-invalid.bk-place:first-child { border-radius: var(--bk-ri) var(--bk-ri) 0 0; }
.bk-invalid.bk-place .bk-mark.from { background: var(--red); }
.bk-invalid.bk-place .bk-mark.to { border-color: var(--red); color: var(--red); }
.bk-place > .bk-err { flex-basis: 100%; margin: 0 0 0 50px; }
.bk-invalid .bk-field-in input, .bk-page .bk-invalid.f input, .bk-page .bk-invalid.f select, .bk-invalid .bk-tel { border-color: var(--red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 16%, transparent); }
.bk-invalid.bk-paycard { border-color: var(--red); }

/* Téléphone : « + » fixe devant le numéro (impossible à effacer), indicatif du pays obligatoire */
.bk-page label.f > .bk-tel { position: relative; display: flex; margin: 0; align-items: stretch; border: 1px solid var(--line); border-radius: var(--bk-ri); background: var(--bg); transition: border-color .25s, box-shadow .25s; }
.bk-tel:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 22%, transparent); }
.bk-tel b { display: grid; place-items: center; padding-inline: 14px 4px; font-size: 17px; font-weight: 650; color: var(--text); user-select: none; }
.bk-page .f .bk-tel input { flex: 1; min-width: 0; border: 0; box-shadow: none; background: transparent; padding-inline-start: 2px; letter-spacing: .01em; }
.bk-page .f .bk-tel input:focus { box-shadow: none; }
[dir="rtl"] .bk-tel { direction: ltr; }   /* numéro toujours écrit de gauche à droite */

/* Âge de chaque enfant, sous le siège choisi */
.bk-extra-wrap + .bk-extra-wrap .bk-extra { border-top: 1px solid var(--line); }
.bk-h + .bk-extra-wrap .bk-extra { border-top: 0; padding-top: 0; }
.bk-ages { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; padding: 0 0 14px; }
.bk-page .bk-ages label.f { margin-top: 0; }
.bk-page .bk-ages .f select { min-height: 46px; padding-block: 10px; }
.bk-line span small { display: block; font-size: 12.5px; margin-top: 1px; }

/* Paiement : carte bancaire (Stripe) ou espèces, choix à cocher comme les véhicules */
.bk-pays { display: grid; gap: 10px; }
.bk-pay { display: flex; align-items: center; gap: 14px; width: 100%; text-align: start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--bk-ri); background: var(--bg); color: var(--text); }
.bk-pay.on { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 7%, var(--panel)); }
.bk-pay.on .bk-radio { background: var(--gold); border-color: var(--gold); color: #fff; }
.bk-pay-ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--panel-2, var(--panel)); color: var(--gold); }
.bk-pay-ic svg, .bk-line-pay svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.bk-pay-body { flex: 1; min-width: 0; }
.bk-pay-body b { display: block; font-size: 16px; font-weight: 650; }
.bk-pay-body small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.bk-pay-brands { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
/* Apple Pay, Google Pay, PayPal allumés dans Stripe (book.js) : nom écrit, sans logo redessiné. */
.bk-pay-brands .wal { border: 1px solid var(--line); color: var(--text); background: var(--bg); font: 700 10.5px/1 inherit; font-family: inherit; font-style: normal; letter-spacing: 0; padding: 0 7px; }
/* Réglages › Paiement : Apple Pay, Google Pay, PayPal du compte Stripe (book.js stripePmMount). Même ligne que les réglages à interrupteur. */
.spm { display: flex; flex-direction: column; }
.spm-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; font-weight: 600; }
.spm-row .t { flex: 1; min-width: 0; line-height: 1.35; }
.spm-row .t small { display: block; margin-top: 2px; font-weight: 500; font-size: 12.5px; color: var(--muted); }
.spm-err { margin: 6px 0 0; color: var(--red, #c0392b); font-size: 13px; line-height: 1.45; }
.spm-note { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.spm-note a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.bk-pay-brands i { display: grid; place-items: center; height: 22px; min-width: 34px; padding: 0 4px; border-radius: 4px; font: 800 9.5px/1 Arial, sans-serif; font-style: italic; letter-spacing: .02em; }
.bk-pay-brands .visa { background: #1a1f71; color: #fff; font-size: 10.5px; }
.bk-pay-brands .amex { background: #2e77bb; color: #fff; font-style: normal; font-size: 8.5px; }
.bk-pay-brands .mc { position: relative; background: #252525; }
.bk-pay-brands .mc s { position: absolute; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #eb001b; left: 5px; }
.bk-pay-brands .mc s + s { left: 14px; background: #f79e1b; mix-blend-mode: screen; opacity: .95; }
.bk-line-pay b { display: inline-flex; align-items: center; gap: 6px; }
.bk-line-pay svg { width: 17px; height: 17px; color: var(--gold); }

/* Récapitulatif : aller / retour et petite carte du trajet (un appui l'ouvre en grand) */
.bk-when { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.bk-when:has(+ .bk-when-back) { margin-bottom: 6px; }
.bk-when-tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 7px; border-radius: 99px; background: color-mix(in srgb, var(--gold) 14%, transparent); color: var(--gold); font-size: 12px; font-weight: 650; }
.bk-when-tag svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.bk-map { position: relative; display: block; width: 100%; height: 170px; margin-top: 16px; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--bk-ri); background: var(--bg); cursor: zoom-in; text-align: start; }
.bk-map-in { position: absolute; inset: 0; z-index: 0; }
.bk-map-in .leaflet-control-attribution { font-size: 9px; }
.bk-map-info { position: absolute; z-index: 500; inset-inline-start: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; border-radius: 99px;
  background: var(--panel); color: var(--text); font-size: 13px; box-shadow: var(--bk-sh); pointer-events: none; }
.bk-map-info svg { width: 14px; height: 14px; stroke: var(--gold); fill: none; stroke-width: 2; }
.bk-map-info b { font-weight: 700; font-variant-numeric: tabular-nums; }
.bk-map-info span { color: var(--muted); font-variant-numeric: tabular-nums; }
.bk-map-info em { font-style: normal; font-weight: 700; color: var(--gold); }
.bk-map.bk-map-off { height: auto; cursor: default; border: 0; background: none; }
.bk-map.bk-map-off .bk-map-info { position: static; box-shadow: none; padding: 0; background: none; }
.bk-pay { transition: background-color .3s, color .3s, border-color .3s; }
@media (hover: hover) {
  .bk-pay:not(.on):hover { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); }
  .bk-map:hover { border-color: var(--gold); }
}

/* Réglages › Paiement : intertitre « Connexion Stripe » */
.pay-sub { margin: 22px 0 2px; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 650; font-size: 14px; }

/* Réglages > Serveur e-mail : adresse de test + bouton sur une ligne, résultat en vert ou rouge. */
.smtp-test { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; margin-top: 14px; }
.smtp-test .f { margin: 0; }
.smtp-test .btn { margin-bottom: 1px; }
.smtp-res { margin-top: 12px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.smtp-res.ok { color: var(--green); background: var(--green-soft); border-color: transparent; }
.smtp-res.bad { color: var(--red); background: var(--red-soft); border-color: transparent; }
.smtp-res small { display: block; margin-top: 6px; color: var(--muted); word-break: break-word; }
@media (max-width: 520px) { .smtp-test { grid-template-columns: 1fr; } }

/* Réglages sur téléphone : une seule colonne de cartes dans l'ordre de la page (la carte Serveur e-mail suit E-mail). */
@media (max-width: 999px) { .set-main { display: flex; flex-direction: column; } .set-main > .set-panel { display: contents; } }

/* ==================== Tarifs (#tarifs, pricing.js, super admin) ====================
   Lecture seule (étape 1) : comparaison app / vipazur.fr, grille, règles dans l'ordre d'application, carte des zones. */
.tabs.mode-tabs button.tab-desk { display: none; }   /* téléphone : accès par Réglages › Réservations du site */
@media (min-width: 1000px) { .tabs.mode-tabs button.tab-desk { display: flex; } }
.pr-page { padding-bottom: 60px; }
.pr-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.pr-head h1 { margin: 6px 0 0; font-size: 26px; letter-spacing: -.015em; }
.pr-ver { color: var(--muted); font-size: 14px; }
.pr-src { margin: 8px 0 0; color: var(--muted); max-width: 72ch; }
.pr-seg { max-width: 680px; }
.pr-tab { margin-top: 16px; }
.pr-ro { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.pr-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; margin-bottom: 16px; }
.pr-card h2 { font-size: 17px; margin: 0 0 6px; letter-spacing: -.005em; }
.pr-card > .hint { margin-top: 0; max-width: 80ch; }
.pr-two { display: grid; gap: 16px; }
@media (min-width: 1000px) { .pr-two { grid-template-columns: 1fr 1fr; } }
.pr-tag { display: inline-block; font-style: normal; font-size: 12px; font-weight: 650; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.pr-tag.fix { background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold); }

/* Tableaux (grille, comparaison) */
.pr-tablewrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.pr-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.pr-table th, .pr-table td { padding: 10px 12px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
.pr-table thead th { position: sticky; top: 0; background: var(--panel); font-size: 12px; font-weight: 650; color: var(--muted); letter-spacing: .02em; white-space: nowrap; }
.pr-table th small { display: block; font-weight: 500; }
.pr-table .num { text-align: end; white-space: nowrap; }
.pr-table .muted { color: var(--muted); }
.pr-table .off { color: var(--muted); }
.pr-grid tbody th { font-weight: 550; white-space: nowrap; }
.pr-grid td { font-weight: 600; }
.pr-grid .pr-km th, .pr-grid .pr-km td { border-bottom: 0; color: var(--gold); }
.pr-extras { list-style: none; margin: 8px 0 0; padding: 0; }
.pr-extras li { display: flex; align-items: baseline; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.pr-extras li:first-child { border-top: 0; }
.pr-extras span { flex: 1; }
.pr-extras small { color: var(--muted); }

/* Règles */
.pr-order { margin: -4px 0 12px; }
.pr-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pr-rule { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: start; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.pr-rule.is-off { background: transparent; }
.pr-rule.is-off .pr-rule-top b { color: var(--muted); }
.pr-idx { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); color: var(--muted); font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; }
.pr-rule-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pr-rule-top b { font-weight: 600; }
.pr-conds { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pr-conds span { font-size: 13px; padding: 3px 10px; border-radius: 99px; background: var(--panel-2); color: var(--text); }
.pr-note { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.pr-wp { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.pr-rule-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.pr-eff { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pr-state { font-size: 12px; font-weight: 650; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }
.pr-state.on { background: var(--green-soft); border-color: transparent; color: var(--green); }
.pr-skip summary, .pr-fixes summary { cursor: pointer; font-weight: 600; }
.pr-skip p { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.pr-fixes ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.pr-fixes li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: baseline; font-size: 14px; }

/* Zones */
.pr-zones { display: grid; gap: 16px; }
.pr-map { height: 460px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--panel-2); }
.pr-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; align-content: start; }
.pr-legend li { display: grid; grid-template-columns: 14px 1fr; gap: 10px; align-items: start; }
.pr-legend i { width: 14px; height: 14px; border-radius: 4px; margin-top: 3px; background: var(--zc); }
.pr-legend small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
@media (min-width: 1000px) { .pr-zones { grid-template-columns: minmax(0, 1fr) 320px; } .pr-map { height: 560px; } }

/* Comparer */
.pr-ctl { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin-top: 12px; }
.pr-ctl .f { margin: 0; width: 180px; }
.pr-times > span { display: block; font-size: 14px; color: var(--muted); margin-bottom: 5px; }
.pr-times > div { display: flex; flex-wrap: wrap; gap: 6px; }
.pr-times .chip-filter { font-variant-numeric: tabular-nums; }
.pr-progress { position: relative; margin-top: 14px; height: 30px; border-radius: 99px; background: var(--panel-2); overflow: hidden; }
.pr-progress i { position: absolute; inset-block: 0; inset-inline-start: 0; background: color-mix(in srgb, var(--gold) 35%, transparent); transition: width .4s cubic-bezier(.16, 1, .3, 1); }
.pr-progress span { position: relative; display: block; line-height: 30px; padding-inline: 14px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pr-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 10px; }
.pr-filter { display: inline-flex; gap: 6px; margin-inline-start: auto; }
.pr-badge { display: inline-block; font-size: 12px; font-weight: 650; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.pr-badge.same { background: var(--green-soft); color: var(--green); }
.pr-badge.fix { background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold); }
.pr-badge.check, .pr-badge.err { background: var(--red-soft); color: var(--red); }
.pr-cmp td.trip { min-width: 220px; }
.pr-cmp td.trip small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.pr-cmp td.num small { display: block; font-size: 12px; font-weight: 650; }
.pr-cmp small.up { color: var(--gold); }
.pr-cmp small.down { color: var(--green); }
.pr-row { cursor: pointer; }
.pr-row.open td { background: var(--panel-2); }
.pr-row:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.pr-detail td { background: var(--panel-2); padding: 4px 12px 16px; }
.pr-empty { padding: 18px 0 4px; }
.pr-bds { display: grid; gap: 14px; }
@media (min-width: 1000px) { .pr-bds { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } }
.pr-bd h4 { margin: 10px 0 6px; font-size: 14px; }
.pr-bd ol { list-style: none; margin: 0; padding: 0; }
.pr-bd li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px dashed var(--line); font-size: 13px; }
.pr-bd li:first-child { border-top: 0; }
.pr-bd li b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pr-bd .pr-bd-total { border-top: 1px solid var(--line); font-weight: 650; }
.pr-bd .pr-bd-total b { color: var(--gold); }
.pr-offs { margin-top: 8px; display: grid; gap: 4px; }
.pr-offs small { color: var(--muted); font-size: 12px; font-weight: 600; }
.pr-offs span { font-size: 12px; color: var(--muted); }
.pr-free { display: grid; gap: 12px; align-items: end; margin-top: 10px; }
.pr-free .f { margin: 0; position: relative; }
@media (min-width: 1000px) { .pr-free { grid-template-columns: 1fr 1fr 130px auto; } }
.pr-free-veh { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.pr-free-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.pr-free-top b { font-size: 20px; font-variant-numeric: tabular-nums; }
.pr-free-top span { color: var(--muted); font-size: 14px; }
#prFreeRes:not(:empty) { margin-top: 14px; }
@media (hover: hover) {
  .pr-row:hover td { background: var(--panel-2); }
}

/* ==================== Tarifs : modification (pricing.js) ====================
   Règles (interrupteur, flèches d'ordre, fenêtre d'édition), grille modifiable, véhicules, suppléments, zones, versions. */
.pr-head .pr-hist { margin-inline-start: auto; }
.pr-head .pr-hist svg, .pr-bar .btn svg, .pr-card-h .btn svg, .pr-veh .btn svg, .pr-zacts .btn svg, .pr-form .btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pr-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 12px; }
.pr-bar .hint { margin: 0; flex: 1 1 320px; }
.pr-card-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.pr-card-h h2 { margin: 0; }
.pr-acts { display: inline-flex; gap: 8px; }

/* Règle : carte cliquable, effet, interrupteur, ordre */
.pr-rule { grid-template-columns: 28px 1fr auto; }
.pr-rule-main { all: unset; box-sizing: border-box; display: block; min-width: 0; cursor: pointer; border-radius: 10px; }
.pr-rule-main:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.pr-rule-main > span { display: flex; }
.pr-rule-main .pr-note { display: block; }
.pr-rule-side { flex-direction: row; align-items: center; gap: 12px; }
.pr-move { display: inline-flex; gap: 4px; }
.pr-move .icon-btn { width: 34px; height: 34px; }
.pr-move .icon-btn:disabled { opacity: .3; cursor: default; }
.pr-switch { position: relative; width: 46px; height: 26px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel-2); padding: 0; flex: none; }
.pr-switch i { position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: transform .25s cubic-bezier(.16, 1, .3, 1), background-color .25s; }
.pr-switch.on { background: var(--green); border-color: var(--green); }
.pr-switch.on i { background: #fff; transform: translateX(20px); }
[dir="rtl"] .pr-switch.on i { transform: translateX(-20px); }
@media (max-width: 640px) {
  .pr-rule { grid-template-columns: 1fr; }
  .pr-rule .pr-idx { display: none; }
  .pr-rule-side { justify-content: space-between; border-top: 1px solid var(--line); padding-top: 10px; }
}

/* Fenêtre d'édition */
.pr-ov { align-items: center; justify-content: center; padding: 16px; }
.pr-dlg { width: 100%; max-width: 520px; max-height: calc(100% - 8px); display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .6); }
.pr-dlg.wide { max-width: 760px; }
.pr-dlg-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 10px; border-bottom: 1px solid var(--line); }
.pr-dlg-h h2 { margin: 0; font-size: 18px; letter-spacing: -.005em; }
.pr-dlg-b { padding: 6px 20px 20px; overflow: auto; overscroll-behavior: contain; }
.pr-form .f { margin-top: 12px; }
.pr-form .check { margin-top: 12px; }
.pr-form input[type=url] { width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; color: var(--text); outline: none; }
.pr-form input[type=url]:focus { border-color: var(--gold); }
.pr-h3 { margin: 22px 0 2px; font-size: 15px; }
.pr-lbl { display: block; margin: 14px 0 6px; font-size: 14px; color: var(--muted); }
.pr-lbl small { font-size: 12px; }
.pr-row3 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
@media (min-width: 640px) { .pr-row3 { grid-template-columns: 2fr 1fr auto; } .pr-row3 .pr-span2 { grid-column: span 2; } }
.pr-oncheck { margin: 0 0 12px; white-space: nowrap; }
.pr-checks { display: flex; flex-wrap: wrap; gap: 6px; }
.pr-chk { position: relative; display: inline-flex; }
.pr-chk input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pr-chk span { display: inline-block; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg); font-size: 14px; transition: background-color .3s, color .3s, border-color .3s; }
.pr-chk input:checked + span { background: var(--gold); border-color: var(--gold); color: #fff; font-weight: 600; }
.pr-chk input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.pr-fs { border: 1px solid var(--line); border-radius: 14px; padding: 4px 14px 14px; margin: 14px 0 0; min-width: 0; }
.pr-fs legend { padding: 0 6px; font-size: 14px; font-weight: 600; }
.pr-fs .hint { margin-top: 8px; }
.pr-dates { display: grid; gap: 4px; margin-bottom: 8px; }
.pr-daterow { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
.pr-daterow .f { margin-top: 0; }
.pr-dlg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.pr-dlg-actions .spacer { flex: 1; }

/* Grille modifiable, véhicules, suppléments */
.pr-grid.editing td { padding: 6px 8px; }
.pr-grid input { width: 92px; min-height: 0; padding: 7px 8px; text-align: end; font-variant-numeric: tabular-nums; border-radius: 8px; }
.pr-vehs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pr-veh { display: grid; grid-template-columns: 96px 1fr auto auto; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; }
.pr-veh.is-off { opacity: .7; }
.pr-veh-img img { width: 96px; height: 54px; object-fit: contain; display: block; }
.pr-veh-body b { display: block; }
.pr-veh-body small { display: block; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.pr-veh-body .pr-avail { color: var(--gold); }
@media (max-width: 560px) { .pr-veh { grid-template-columns: 72px 1fr; } .pr-veh-img img { width: 72px; height: 40px; } .pr-veh .pr-state { justify-self: start; } }
.pr-extras.editing li { display: grid; grid-template-columns: 52px minmax(0, 1.3fr) minmax(0, 1fr) 84px 64px auto; gap: 8px; align-items: center; }
.pr-extras.editing .pr-xicon { text-align: center; font-size: 18px; padding-inline: 4px; }
@media (max-width: 640px) { .pr-extras.editing li { grid-template-columns: 52px 1fr 84px 64px auto; } .pr-extras.editing .pr-ximg { grid-column: 1 / -1; grid-row: 2; } }
.pr-extras.editing input { min-height: 0; padding: 8px 10px; }
.pr-xrow + .pr-xrow { border-top: 0; }

/* Zones : barre de dessin et boutons de la légende */
.pr-zbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 12px; border: 1px solid var(--gold); border-radius: 14px; background: color-mix(in srgb, var(--gold) 10%, var(--panel)); }
.pr-zbar .hint { margin: 0; }
.pr-zbar .spacer { flex: 1; }
.pr-zacts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pr-map .leaflet-draw-tooltip { font-size: 12px; }

/* Versions */
.pr-vers { list-style: none; margin: 0; padding: 0; }
.pr-vers li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.pr-vers li:first-child { border-top: 0; }
.pr-vers b { display: block; font-weight: 550; font-size: 14px; }
.pr-vers small { color: var(--muted); font-size: 12px; }

/* Survol comme sur vipazur.fr (couleurs inverses en 0,3 s), souris seulement */
.pr-switch, .pr-rule-main { transition: background-color .3s, border-color .3s; }
@media (hover: hover) {
  .pr-switch:not(.on):hover { border-color: var(--text); }
  .pr-chk:hover input:not(:checked) + span { background: var(--text); border-color: var(--text); color: var(--bg); }
  .pr-rule:hover { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); }
}

/* ==================== Tarifs › Règles : rangées par type, une ligne simple par règle ====================
   Effet en grand (avec « majoration », « prix fixe »…), nom, conditions en une phrase, interrupteur. */
.pr-rhead { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; max-width: 960px; }
.pr-rview { margin: 0; flex: 0 1 340px; }
.pr-rcount { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.pr-rhead .btn.primary { margin-inline-start: auto; }
.pr-rhead .btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.pr-rhint { margin: 10px 2px 0; max-width: 72ch; }
.pr-rgroup { margin-top: 24px; max-width: 960px; }
.pr-rgroup h3 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 8px 4px; font-size: 16px; font-weight: 650; letter-spacing: -.005em; }
.pr-rgroup h3 small { font-size: 13px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.pr-rlist { list-style: none; margin: 0; padding: 0; max-width: 960px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
ol.pr-rlist { margin-top: 12px; }
.pr-r { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-top: 1px solid var(--line); transition: background-color .2s; }
.pr-r:first-child { border-top: 0; }
.pr-r .pr-idx { flex: none; }
.pr-pill { flex: none; width: 96px; display: flex; flex-direction: column; line-height: 1.15; }
.pr-pill b { font-size: 18px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pr-pill small { font-size: 12px; color: var(--muted); margin-top: 2px; }
.pr-pill.up b { color: var(--gold); }
.pr-pill.down b { color: var(--green); }
.pr-pill.fix b { color: var(--text); }
.pr-r-main { all: unset; box-sizing: border-box; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; cursor: pointer; padding: 2px 0; border-radius: 8px; }
.pr-r-main b { font-size: 15px; font-weight: 600; }
.pr-r-main span { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.pr-r-main:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.pr-r.is-off .pr-pill b, .pr-r.is-off .pr-r-main b { color: var(--muted); }
.pr-r.is-off .pr-r-main b { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); }
.pr-chev { flex: none; width: 18px; height: 18px; color: var(--muted); }
.pr-chev svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .pr-chev svg { transform: scaleX(-1); }
@media (hover: hover) {
  .pr-r:hover { background: var(--panel-2); }
  .pr-r:hover .pr-chev { color: var(--text); }
}
@media (max-width: 560px) {
  .pr-r { gap: 12px; padding: 12px; }
  .pr-pill { width: 70px; }
  .pr-pill b { font-size: 16px; }
  .pr-chev { display: none; }
  .pr-r .pr-move { display: none; }
  ol.pr-rlist .pr-r .pr-move { display: inline-flex; flex-direction: column; }
  .pr-rhead .btn.primary { margin-inline-start: 0; }
}

/* ==================== Réglages › Modèles d'e-mails (pricing.js, mtMount / mtEdit) ==================== */
.mt-h { margin: 18px 0 8px 2px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.mt-list { list-style: none; margin: 0; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.mt-r { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-top: 1px solid var(--line); transition: background-color .2s; }
.mt-r:first-child { border-top: 0; }
.mt-r-main { all: unset; box-sizing: border-box; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; cursor: pointer; border-radius: 8px; }
.mt-r-main b { font-size: 15px; font-weight: 600; }
.mt-r-main span { font-size: 13px; color: var(--muted); }
.mt-r-main:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.mt-r.is-off .mt-r-main b { color: var(--muted); }
.mt-tag { margin-inline-start: 6px; padding: 1px 7px; border-radius: 99px; font-size: 11px; font-weight: 600; color: var(--gold); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); vertical-align: 1px; }
@media (hover: hover) { .mt-r:hover { background: var(--panel-2); } }

.pr-dlg.mt-dlg { max-width: 1180px; height: calc(100% - 8px); }
.mt-dlg .pr-dlg-b { flex: 1; display: flex; padding-top: 14px; }
.mt-ed { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 22px; }
.mt-form { min-width: 0; overflow: auto; padding-inline-end: 4px; }
.mt-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.mt-lang { margin: 0; flex: 0 1 260px; }
.mt-on { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.mt-f textarea { width: 100%; min-height: 90px; resize: vertical; font: inherit; line-height: 1.55; }
.mt-bh { margin-top: -4px; }
.mt-vars { margin-top: 14px; }
.mt-vars > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mt-chip { border: 1px solid var(--line); background: var(--panel-2); color: var(--text); border-radius: 99px; padding: 5px 11px; font-size: 13px; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.mt-prev { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #f6f3ec; }
.mt-prev-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 10px 14px; background: var(--panel); border-bottom: 1px solid var(--line); }
.mt-prev-h span { flex: 1; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-prev-h small { color: var(--muted); font-size: 12px; }
.mt-prev iframe { flex: 1; width: 100%; min-height: 420px; border: 0; background: #f6f3ec; }
@media (hover: hover) { .mt-chip:hover { background: var(--text); color: var(--bg); border-color: var(--text); } }
@media (max-width: 999px) {
  .pr-dlg.mt-dlg { height: auto; }
  .mt-dlg .pr-dlg-b { display: block; }
  .mt-ed { display: block; }
  .mt-form { overflow: visible; padding: 0; }
  .mt-prev { margin-top: 20px; }
  .mt-prev iframe { height: 560px; flex: none; }
}

/* ==================== Réservation : aller-retour et mise à disposition côte à côte, sièges enfant en cartes ==================== */
.bk-hours { max-width: 340px; }
.bk-hours select { -webkit-appearance: none; appearance: none; width: 100%; min-width: 0; height: 54px; padding-block: 0; padding-inline: 40px 40px; border: 1px solid var(--line); border-radius: var(--bk-ri); background: var(--bg); color: var(--text); font: inherit; font-size: 16px; font-weight: 550; cursor: pointer; transition: border-color .25s, box-shadow .25s; }
.bk-hours .bk-field-in::after { content: ""; position: absolute; inset-inline-end: 16px; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-2px) rotate(45deg); pointer-events: none; }
.bk-hours select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 22%, transparent); }
.bk-hourly-hint { margin: 10px 2px 0; font-size: 14px; color: var(--muted); }
.bk-route-h { display: flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 600; }
.bk-route-h svg, .bk-rt-ic svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.bk-seats-sec { margin-top: 26px; }
.bk-seats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.bk-seat { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; transition: border-color .3s, box-shadow .3s; }
.bk-seat.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 14px 32px -22px color-mix(in srgb, var(--gold) 70%, transparent); }
.bk-seat-img { display: block; width: 100%; height: 140px; margin: 0 0 12px; padding: 10px; border-radius: 14px; background: #fff; overflow: hidden; }
.bk-seat-img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.bk-seat-name { margin: 0; font-size: 16px; font-weight: 650; line-height: 1.3; }
.bk-seat-age { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.bk-seat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: start; }   /* nom + âge à gauche, prix à droite (owner, 2026-11-18) */
.bk-seat-txt { min-width: 0; }
.bk-seat-price { flex: none; margin: 0; font-size: 20px; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.bk-seat-qty { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.bk-seat-qty > span { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.bk-seat.on .bk-qty { border-color: var(--gold); }
.bk-seat.on .bk-qty button[data-d="1"]:not(:disabled) { color: var(--gold); }
.bk-seat-sel { margin-top: 12px; gap: 6px; }
.bk-seat-sel svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.bk-seats-sec .bk-ages { margin-top: 14px; padding: 16px; }
@media (max-width: 520px) {
  .bk-seats { grid-template-columns: 1fr; }
  .bk-seat { display: grid; grid-template-columns: 92px 1fr; grid-template-areas: "img head" "qty qty" "sel sel"; column-gap: 14px; align-items: center; text-align: start; padding: 14px; }
  .bk-seat-img { grid-area: img; height: 92px; margin: 0; padding: 6px; }
  .bk-seat-head { grid-area: head; }
  .bk-seat-qty { grid-area: qty; }
  .bk-seat-sel { grid-area: sel; }
}
/* Modèles d'e-mails : encadré des langues (français et anglais modifiés, 9 langues traduites automatiquement) */
.mt-note { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0 6px; padding: 12px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--gold) 35%, var(--line)); background: color-mix(in srgb, var(--gold) 7%, var(--panel)); }
.mt-note svg { flex: none; width: 20px; height: 20px; margin-top: 1px; stroke: var(--gold); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mt-note p { margin: 0; font-size: 13.5px; line-height: 1.5; }
.mt-note small { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.mt-note small.ok { color: var(--green); }
/* Langue principale des e-mails : choisie dans l'encadré des langues (owner, 2026-11-28) */
.mt-note-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.mt-main { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 0; font-size: 13.5px; font-weight: 700; }
.mt-main .sel-btn { width: auto; min-width: 160px; }
.mt-prev-h select { flex: none; max-width: 150px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; font-size: 13px; }
.mt-pv-note { padding: 7px 14px; font-size: 12.5px; color: var(--muted); background: var(--panel); border-bottom: 1px solid var(--line); }

/* Réglages : onglets en haut d'une rubrique à plusieurs cartes (E-mail : Notifications, Modèles, Serveur SMTP), ordinateur */
.set-tabs { display: none; }
@media (min-width: 1000px) {
  .set-tabs:not([hidden]) { display: inline-flex; gap: 4px; margin: 20px 0 4px; padding: 4px; border: 1px solid var(--line); border-radius: 99px; background: var(--bg); }
  .set-tabs button { border: 0; background: none; padding: 9px 20px; border-radius: 99px; color: var(--muted); font: inherit; font-size: 14px; font-weight: 550; cursor: pointer; transition: background-color .3s, color .3s; }
  .set-tabs button.on { background: var(--gold); color: #fff; font-weight: 600; }
  .set-tabs button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
  /* Groupes à 5 ou 6 onglets (Factures, Notifications, owner 2026-11-30) : noms sur une ligne, la barre défile si elle dépasse la carte. */
  .set-tabs:not([hidden]) { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .set-tabs::-webkit-scrollbar { display: none; }
  .set-tabs button { flex: none; white-space: nowrap; }
}
/* Réglages : onglets en sous-menu dans la liste, design 2 « Trait de rattachement » (owner, 2026-12-01 ; settingsLayout, team.js).
   La rubrique ouverte garde son fond normal avec un chevron ; ses sous-menus, en retrait, sont reliés par un trait fin ;
   le sous-menu choisi est en gras avec un petit trait doré. Chemin « Rubrique › Sous-menu » au-dessus de la carte. Ordinateur seulement. */
.set-subs, .set-crumb { display: none; }
@media (min-width: 1000px) {
  #sbody .set-nav .set-subs.open { display: flex; flex-direction: column; gap: 2px; margin: 2px 0 6px 20px; padding-left: 12px; border-left: 2px solid color-mix(in srgb, var(--text) 32%, transparent); }
  #sbody .set-nav .set-sub { position: relative; display: block; text-align: left; border: 0; background: none; padding: 9px 12px; border-radius: 10px; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color .3s, color .3s; }
  #sbody .set-nav .set-sub.on { color: var(--text); font-weight: 800; }
  #sbody .set-nav .set-sub.on::before { content: ''; position: absolute; left: -14px; top: 7px; bottom: 7px; width: 2px; border-radius: 2px; background: var(--gold); }
  #sbody .set-nav button.has-subs.on, html.dt #sbody .set-nav button.has-subs.on { background: none; color: var(--text); font-weight: 700; box-shadow: none; }
  #sbody .set-nav button.has-subs.on .set-ico, html.dt #sbody .set-nav button.has-subs.on .set-ico, html.dt #sbody .set-nav button.has-subs.on .set-ico svg { color: var(--text); stroke: var(--text); }
  #sbody .set-nav button.has-subs .set-adm-chev { margin-inline-start: auto; }
  #sbody .set-nav button.has-subs[aria-expanded="true"] .set-adm-chev { transform: rotate(225deg) translate(-2px, -2px); }
  #sbody .set-crumb:not([hidden]) { display: block; margin: 20px 0 4px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
  #sbody .set-crumb b { color: var(--gold); font-weight: 700; }
}   /* survol des sous-menus : le bleu marine de toute la liste (owner, 2026-11-28, plus bas dans ce fichier) */
@media (min-width: 1000px) and (hover: hover) { .set-tabs button:not(.on):hover { background: var(--text); color: var(--bg); } }
/* Modèles d'e-mails : question dans la fenêtre (modifications non enregistrées, texte d'origine) */
.mt-ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 12px 20px 0; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--gold); background: color-mix(in srgb, var(--gold) 12%, var(--panel)); }
.mt-ask p { margin: 0; font-size: 14px; font-weight: 600; color: var(--text); }
.mt-ask div { display: flex; flex-wrap: wrap; gap: 8px; }
@media (prefers-reduced-motion: no-preference) { .mt-ask { animation: bkIn .3s cubic-bezier(.16, 1, .3, 1) both; } }

/* Aller-retour dans le récapitulatif (book.js bkRecap / bkBindRecap) : interrupteur, puis date et heure du retour */
.bk-recap-rt { margin-top: 14px; }
.bk-recap-rt .bk-rt { margin-top: 0; }
.bk-recap-rt .bk-dt { position: relative; margin-top: 10px; gap: 8px; }
.bk-recap-rt .bk-pickf { position: static; }   /* calendrier et heures : toute la largeur du récapitulatif */
.bk-recap-rt .bk-pop { inset-inline: 0; width: auto; }
.bk-recap-rt .bk-pick-btn { padding-inline: 36px 8px; font-size: 15px; }
.bk-recap-rt .bk-field-in > svg { inset-inline-start: 11px; }
.bk-lines.bk-stale { opacity: .45; }   /* aller-retour coché, prix pas encore recalculés */
.bk-aside.bk-busy .bk-lines { opacity: .45; transition: opacity .2s; }
.bk-aside.bk-busy .bk-recap-rt .bk-rt { pointer-events: none; }
.bk-aside.bk-busy .bk-recap-rt .bk-switch { opacity: .6; }
.bk-recap .bk-alert { margin: 14px 0 0; }

/* Transfert lié à un vol (app.js flightTransferTag / flightTransferCard) : étiquette dans la liste, bloc sur la fiche du vol */
.ftr { display: flex; align-items: center; gap: 7px; max-width: 100%; width: fit-content; margin-top: 8px; padding: 5px 10px 5px 8px; border: 1px solid var(--gold);
  border-radius: 99px; background: var(--gold-soft); color: var(--text); font-size: 13px; line-height: 1.3; cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s; }
.ftr svg { flex: none; width: 15px; height: 15px; stroke: var(--gold); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.ftr-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ftr-txt b { color: var(--gold); font-weight: 650; transition: color .3s; }
.ftr-go { flex: none; font-style: normal; font-size: 17px; line-height: 1; color: var(--gold); }
[dir="rtl"] .ftr-go { transform: scaleX(-1); }
.ftr-card { display: block; margin: 16px 0 4px; padding: 14px 16px; border: 1px solid var(--line); border-inline-start: 3px solid var(--gold); border-radius: 16px;
  background: var(--panel); color: var(--text); text-decoration: none; transition: border-color .3s, background-color .3s; }
.ftr-head { display: flex; align-items: center; gap: 9px; }
.ftr-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gold-soft); }
.ftr-ic svg { width: 17px; height: 17px; stroke: var(--gold); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ftr-title { flex: 1; font-weight: 650; }
.ftr-card .ftr-go { font-size: 22px; }
.ftr-when { margin-top: 10px; font-size: 14px; }
.ftr-when b { color: var(--gold); }
.ftr-card .tcard-route { margin-top: 6px; }
.ftr-meta { margin-top: 8px; font-size: 13px; color: var(--muted); }
@media (hover: hover) {
  .row .ftr:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
  .row .ftr:hover svg { stroke: var(--bg); }
  .row .ftr:hover b, .row .ftr:hover .ftr-go { color: var(--bg); }
  .ftr-card:hover { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 5%, var(--panel)); }
}

/* ==================== Fiche transfert : en-tête, trajet, prix, sections (réservations du site et du formulaire de l'app) ==================== */
.td-head { margin: 4px 0 14px; }
.td-head-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.td-head-top .num { font-size: 15px; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.td-head-top .pill { font-size: 13px; padding: 4px 12px; }
.td-when { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: 6px; }
.td-when b { font-size: 26px; font-weight: 650; letter-spacing: -.015em; line-height: 1.15; }
.td-when span { font-size: 26px; font-weight: 650; color: var(--gold); font-variant-numeric: tabular-nums; }
.td-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.td-tag { padding: 4px 11px; border-radius: 99px; border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); background: var(--panel); }
.td-tag.gold { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); color: var(--gold); font-weight: 600; }

.td-route { position: relative; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.td-route .tstop { padding: 7px 0; }
.tdot.m { background: var(--gold); }
.td-hourly { display: block; font-weight: 600; color: var(--gold); }
.td-return { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 14px; }
.td-return svg { width: 16px; height: 16px; stroke: var(--gold); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transform: scaleX(-1); }
.td-return span { color: var(--muted); }

.td-price { margin-top: 14px; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line)); border-radius: 16px; background: color-mix(in srgb, var(--gold) 6%, var(--panel)); }
.td-price-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.td-price-top span { font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.td-price-top b { font-size: 28px; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.td-lines { margin-top: 8px; border-top: 1px solid var(--line); }
.td-line, .td-pay { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; font-size: 14px; }
.td-line + .td-line { border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.td-line span { min-width: 0; }
.td-line small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.td-line b, .td-pay b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.td-pay { border-top: 1px solid var(--line); margin-top: 2px; }
.td-pay span { color: var(--muted); }

.td-secs { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.td-sec { padding: 4px 16px 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.td-sec h3 { margin: 10px 0 2px; font-size: 12px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.td-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 14px; }
.td-grid .wide, .td-grid .contact-btns { grid-column: 1 / -1; }
.td-grid .contact-btns { border-bottom: 0; padding: 6px 0 4px; }
.td-grid .trow { padding: 8px 0; }
.td-grid .trow b { font-size: 14px; font-weight: 600; }
.td-grid .trow b.muted { color: var(--muted); font-weight: 500; }
.td-grid .as-who { display: inline-flex; align-items: center; gap: 6px; }
.td-seats { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; }
.td-seat span { font-weight: 600; }
.td-seat small { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); }
@media (max-width: 560px) {
  .td-when b, .td-when span { font-size: 22px; }
  .td-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .td-price-top b { font-size: 24px; }
}

/* ==================== Factures (invoices.js, 2026-11-18) ====================
   Client : transferts effectués à cocher, barre « N sélectionné(s) · total » collée au-dessus de la barre du bas, factures créées.
   Admin : liste de toutes les factures. Document de facture : même feuille blanche que le bon de commande (.voucher). */
.users-page .us-head h1 { margin-inline-end: auto; }
.inv-page { padding: 0 16px; }
.inv-page h1 { margin: 6px 0 4px; }
.inv-page .tsearch-wrap { padding: 8px 0 4px; }
.inv-sec { margin: 18px 0 8px; }
.inv-sec-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.inv-sec-h h2 { font-size: 17px; margin: 0; }
.inv-sec .empty { padding: 28px 16px; }
.inv-grid { display: grid; gap: 12px; margin-top: 10px; }
.inv-grid .tcard { margin: 0; }
@media (min-width: 1000px) { .inv-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); } }
.inv-pick { position: relative; display: flex; gap: 12px; align-items: flex-start; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.inv-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.inv-box { flex: none; width: 22px; height: 22px; margin-top: 1px; border: 2px solid var(--muted); border-radius: 6px; display: grid; place-items: center; transition: background-color .2s, border-color .2s; }
.inv-pick.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.inv-pick.on .inv-box { background: var(--gold); border-color: var(--gold); }
.inv-pick.on .inv-box::after { content: ''; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.inv-pick input:focus-visible + .inv-box { outline: 2px solid var(--gold); outline-offset: 2px; }
.inv-pick-main { flex: 1; min-width: 0; display: block; }
.inv-pick-main .tcard-ref, .inv-pick-main .tcard-route, .inv-pick-main .tline, .inv-card .tcard-client { display: block; }
.inv-card { display: block; color: inherit; text-decoration: none; cursor: pointer; transition: border-color .2s; }
.inv-meta { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; overflow-wrap: anywhere; }
.inv-bar { position: sticky; bottom: calc(var(--tabbar-h, 0px) + 12px); z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 18px; padding: 10px 10px 10px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.inv-bar span { font-weight: 600; }
.inv-bar .btn { flex: none; }
.inv-total { font-weight: 600; margin: 0 0 12px; }
.inv-dialog .warn-box { background: color-mix(in srgb, var(--gold) 10%, transparent); border-color: var(--gold); }
.inv-dialog .warn-box > b { color: var(--gold); }
/* Étape 2 « Vérifiez votre facture » : aperçu du document (feuille blanche réduite) + avertissement rouge + 2 boutons */
.inv-dialog.inv-step2 { max-width: 820px; }
.inv-dialog .warn-box.inv-stop { background: var(--red-soft); border-color: var(--red); }
.inv-dialog .warn-box.inv-stop > b { color: var(--red); }
.inv-stop strong { display: block; margin-bottom: 2px; }
.inv-prev { position: relative; margin-top: 12px; padding: 34px 10px 10px; border-radius: 14px; background: color-mix(in srgb, var(--text) 8%, transparent); }
.inv-prev-tag { position: absolute; top: 9px; inset-inline-start: 12px; font-size: 12px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.inv-prev .voucher { margin: 0; font-size: 12.5px; box-shadow: 0 4px 18px rgba(0, 0, 0, .12); }
.inv-prev .voucher h1 { font-size: 18px; }
.inv-prev .inv-logo { height: 34px; margin-bottom: 10px; }
.inv-prev .v-foot { font-size: 10px; }
.inv-nonum { display: block; font-size: 12px; font-weight: 500; color: #6d6a60; font-style: italic; }
.inv-confirm-btns .btn { flex: 1 1 200px; }
.inv-agree { margin-top: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 500; }
.inv-agree:has(input:checked) { border-color: var(--gold); }
@media (max-width: 560px) {
  .inv-prev { padding: 32px 6px 6px; }
  .inv-prev .voucher { padding: 14px 10px; overflow-x: auto; }
  .inv-prev .inv-lines { font-size: 11px; }
  .inv-prev .inv-lines th { font-size: 9px; letter-spacing: 0; }
  .inv-prev .inv-lines .num { white-space: normal; }
  .inv-confirm-btns { flex-direction: column-reverse; }
  .inv-confirm-btns .btn { flex: none; width: 100%; }
}
@media (hover: hover) { .inv-card:hover, .inv-pick:not(.on):hover { border-color: var(--gold); } }
/* Document de facture (toujours en français / anglais, de gauche à droite) */
.inv-en { color: #6d6a60; font-weight: 500; }
.inv-logo { display: block; height: 44px; width: auto; margin: 0 0 14px; }   /* logo du thème clair : « AZUR » foncé, lisible sur la feuille blanche */
.inv-lines { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: 13px; }
.inv-lines th { text-align: left; font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: #6d6a60; font-weight: 600; padding: 8px 6px; border-bottom: 2px solid #1b365d; }
.inv-lines td { padding: 9px 6px; border-bottom: 1px solid #e6e2d8; vertical-align: top; }
.inv-lines tr { break-inside: avoid; }
.inv-lines small { color: #6d6a60; }
.inv-lines .num { text-align: right; white-space: nowrap; }
.inv-lines .inv-d { white-space: nowrap; }
.inv-pay { margin: 14px 0 0; font-size: 13px; }
@media (max-width: 560px) { .inv-lines { font-size: 12px; } .inv-lines .inv-d { white-space: normal; } .inv-lines th, .inv-lines td { padding-left: 4px; padding-right: 4px; } }
/* PDF depuis un téléphone : la page est mise en largeur A4 le temps de la copie */
.voucher.invoice.inv-print { width: 760px; max-width: none; font-size: 14px; }
.voucher.invoice.inv-print .v-parties { grid-template-columns: 1fr 1fr; }
.voucher.invoice.inv-print .v-head { flex-direction: row; }
.voucher.invoice.inv-print .v-ref { text-align: right; }
.voucher.invoice.inv-print .inv-lines { font-size: 13px; }
.voucher.invoice.inv-print .inv-lines .inv-d { white-space: nowrap; }
/* Facture supprimée (admin) : carte estompée dans la liste, bandeau rouge au-dessus du document */
.inv-card.inv-del { opacity: .55; }
.inv-card.inv-del .tcard-top b:first-child { text-decoration: line-through; }
.inv-card .pill { font-size: 11px; vertical-align: 2px; margin-inline-start: 6px; text-decoration: none; display: inline-block; }
.inv-del-note { max-width: 760px; margin: 0 auto 12px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--red); background: var(--red-soft); color: var(--text); font-size: 14px; }

/* ==================== Fiche transfert « document » (owner, 2026-11-18, idée 5) ====================
   Une colonne sans cadres : en-tête (date, prix), trajet + petite carte, vol suivi, véhicule (photo), sièges (photo),
   client, chauffeur, prix, autres informations, historique (super admin). Barre d'actions flottante, fixée en bas. */
.tp { width: 100%; max-width: 760px; margin: 0 auto; padding: 4px 16px 150px; }
.tp-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tp-top .back-link { margin: 0; }
.tp-edit { display: inline-flex; align-items: center; gap: 6px; border-color: var(--gold); color: var(--gold); }
.tp svg, .tp-bar svg, .tp-menu svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.tp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 14px 0 0; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.tp-head-l { min-width: 0; }
.tp-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.tp-ref { font-size: 14px; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.tp-when { margin: 6px 0 0; font-size: 26px; font-weight: 650; letter-spacing: -.015em; line-height: 1.15; }
.tp-when span { color: var(--gold); margin-inline-start: 10px; font-variant-numeric: tabular-nums; }
.tp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tp-head-r { text-align: end; flex: none; }
.tp-total { display: block; font-size: 28px; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tp-head-r small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.tp-route { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.tp .tp-map { flex: none; width: 150px; height: 104px; margin: 0; border-radius: 12px; }
.tp-stops { flex: 1; min-width: 0; }
.tp-sec { padding: 16px 0 10px; border-bottom: 1px solid var(--line); }
.tp-sec:last-child { border-bottom: 0; }
.tp-h { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 12.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.tp-h svg { width: 17px; height: 17px; }
.tp-item { display: flex; align-items: center; gap: 14px; padding: 6px 0; }
.tp-item .grow, .tp .drv-card .grow { flex: 1; min-width: 0; }
.tp-item b { display: block; font-weight: 600; font-size: 15px; }
.tp-item small { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin-top: 2px; }
.tp-item small svg { width: 15px; height: 15px; }
.tp-amt { flex: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.tp-car { flex: none; width: 168px; height: auto; max-height: 96px; object-fit: contain; }
.tp-car.none { width: 64px; height: 64px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); }
.tp-plate { flex: none; width: 64px; height: 64px; border-radius: 14px; background: #fff; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); }
.tp-plate img { width: 54px; height: 54px; object-fit: contain; }
.tp-plate.none { background: var(--panel); color: var(--muted); }
.tp-ava { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--panel); border: 1px solid var(--line); color: var(--gold); display: grid; place-items: center; font-weight: 650; font-size: 14px; }
.tp-ava.none { background: none; border: 2px dashed var(--red); color: var(--red); }
.tp-none b { color: var(--red); }
.tp-contact { display: flex; gap: 6px; flex: none; }
.tp-ico { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--text); display: grid; place-items: center; cursor: pointer; padding: 0; text-decoration: none;
  transition: background-color .3s, color .3s, border-color .3s; }
.tp-ico.wa { color: #25d366; }
.tp .dpanel { border: 0; background: none; padding: 0; margin: 0; }
.tp .dpanel + .dpanel { margin-top: 12px; }
.tp .dpanel-h { color: var(--muted); }
.tp .drv-card { padding: 4px 0; }
.tp .trow { display: flex; flex-direction: row; justify-content: space-between; align-items: baseline; gap: 16px; padding: 8px 0; border-top: 1px solid color-mix(in srgb, var(--line) 55%, transparent); }
.tp .tp-h + .trow { border-top: 0; }
.tp .trow span { color: var(--muted); font-size: 14px; flex: none; max-width: 45%; }
.tp .trow b { font-weight: 550; font-size: 14px; text-align: end; overflow-wrap: anywhere; }
.tp-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; font-size: 14px; border-top: 1px solid color-mix(in srgb, var(--line) 55%, transparent); }
.tp .tp-h + .tp-row, .tp-fl-top + .tp-row { border-top: 0; }
.tp-row span { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.tp-row span svg { color: var(--gold); width: 17px; height: 17px; }
.tp-row b { font-weight: 600; font-variant-numeric: tabular-nums; }
.tp-sum { border-top: 1px solid var(--line); font-size: 16px; }
.tp-sum b { color: var(--gold); font-size: 18px; }
.tp-muted { color: var(--muted); font-size: 13.5px; margin: 6px 0; }
/* Vol suivi */
.tp-flight { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px 4px; background: var(--panel); }
.tp-fl-top { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.tp-fl-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--gold) 14%, transparent); color: var(--gold); flex: none; }
.tp-fl-ico svg { width: 24px; height: 24px; fill: currentColor; stroke: none; }
.tp-fl-top .grow { flex: 1; min-width: 0; }
.tp-fl-top small { display: block; color: var(--muted); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; }
.tp-fl-num { font-size: 19px; font-weight: 650; color: var(--text); text-decoration: none; letter-spacing: .02em; }
/* Historique */
.tp-hlist { list-style: none; margin: 0; padding: 0; position: relative; }
.tp-hlist li { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; }
.tp-hlist li:not(:last-child)::before { content: ""; position: absolute; inset-inline-start: 15px; top: 40px; bottom: -8px; width: 2px; background: var(--line); }
.tp-hico { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line); background: var(--bg); color: var(--muted); }
.tp-hico svg { width: 16px; height: 16px; }
.tp-hlist li.ok .tp-hico { color: var(--green); border-color: var(--green); }
.tp-hlist li.gold .tp-hico { color: var(--gold); border-color: var(--gold); }
.tp-hlist li.bad .tp-hico { color: var(--red); border-color: var(--red); }
.tp-hlist .grow { flex: 1; min-width: 0; padding-top: 5px; }
.tp-hlist b { display: block; font-weight: 600; font-size: 14.5px; }
.tp-hlist small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; overflow-wrap: anywhere; }
.tp-hlist time { flex: none; color: var(--muted); font-size: 12.5px; padding-top: 7px; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Barre d'actions flottante : fixée au-dessus de la barre d'onglets, toujours visible pendant le défilement */
.tp-bar { position: fixed; z-index: 800; left: 0; right: 0; bottom: calc(var(--tabbar-h, 64px) + 12px); display: flex; flex-direction: column; align-items: center; pointer-events: none; padding: 0 12px; }
.tp-bar-in { pointer-events: auto; display: flex; align-items: center; gap: 8px; width: 100%; max-width: 728px; padding: 8px; border-radius: 999px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.tp-bar .btn { margin: 0; border-radius: 999px; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; white-space: nowrap; }
.tp-main { flex: 1 1 auto; min-width: 0; font-weight: 650; }
.tp-main span { overflow: hidden; text-overflow: ellipsis; }
.tp-side { flex: 0 0 auto; padding: 0 16px; }
.tp-bico { flex: none; width: 46px; padding: 0; color: var(--text); }
.tp-bar .assign-hint { pointer-events: auto; margin: 6px 0 0; padding: 4px 10px; border-radius: 8px; background: var(--panel); }
.tp-menu { pointer-events: auto; position: absolute; bottom: calc(100% + 8px); inset-inline-end: max(12px, calc(50% - 364px)); min-width: 230px; padding: 6px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
.tp-mi { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border: 0; border-radius: 10px; background: none; color: var(--text); font: inherit; font-size: 15px; text-align: start; cursor: pointer; transition: background-color .3s, color .3s; }
.tp-mi.danger { color: var(--red); }
/* Fenêtre « Modifier le transfert » */
.tp-e-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; }
.tp-e-grid .tp-e-wide { grid-column: 1 / -1; }
.tp-e-grid .f { position: relative; }
/* « Modifier le transfert » : Client = liste déroulante de l'app avec recherche ; le nom du bouton ne déborde pas (owner, 2026-11-23). */
.tp-e-grid .sel-btn > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-sug { position: absolute; z-index: 5; left: 0; right: 0; top: 100%; margin-top: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); box-shadow: 0 12px 30px rgba(0, 0, 0, .3); overflow: hidden; }
.tp-sug button { display: block; width: 100%; padding: 9px 12px; border: 0; background: none; color: var(--text); text-align: start; cursor: pointer; font: inherit; }
.tp-sug button + button { border-top: 1px solid var(--line); }
.tp-sug b { display: block; font-size: 14px; }
.tp-sug small { color: var(--muted); font-size: 12.5px; }
.tp-edit-dlg .btns { justify-content: flex-end; }
@media (min-width: 1000px) {
  .tp-bar { left: var(--side-w); }
  .tp-when { font-size: 30px; }
}
@media (max-width: 640px) {
  .tp { padding-inline: 14px; }
  .tp-head { align-items: flex-start; }
  .tp-when { font-size: 22px; }
  .tp-when span { display: block; margin: 2px 0 0; }
  .tp-total { font-size: 22px; }
  .tp .tp-map { width: 104px; height: 88px; }
  .tp-car { width: 116px; }
  .tp-item { gap: 12px; }
  .tp-hlist li { flex-wrap: wrap; }
  .tp-hlist time { padding-top: 0; flex-basis: 100%; padding-inline-start: 44px; margin-top: -4px; }
  .tp-e-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-side { padding: 0 12px; }
  .tp-bar .btn { min-height: 44px; }
  .tp-bar-in { gap: 6px; padding: 6px; }
  .tp-main svg { display: none; }
  .tp-bar .assign-hint { display: none; }
  .tp-bar .tp-side { display: none; }   /* « M'assigner » : dans le menu … sur téléphone */
}
@media (min-width: 1000px) { [dir="rtl"] .tp-bar { left: 0; right: var(--side-w); } }
@media (hover: hover) {
  .tp-ico:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
  .tp-ico.wa:hover { background: #000; border-color: #000; color: #fff; }   /* WhatsApp : fond noir au survol (owner, 2026-11-18) */
  .tp-mi:hover { background: var(--text); color: var(--bg); }
  .tp-mi.danger:hover { background: var(--red); color: #fff; }
  .tp-sug button:hover { background: var(--panel); }
  .tp-edit:hover { border-color: var(--text); }
}

/* Message du bas (toast) : presque toute la largeur, 40 px de chaque côté (owner, 2026-11-18), centré ; au-dessus de la barre
   d'actions flottante sur la fiche transfert. */
#toast { left: 40px; right: 40px; transform: none; max-width: none; text-align: center; border-radius: 18px; }
body:has(.tp-bar) #toast { bottom: calc(var(--tabbar-h, 64px) + 92px); }
@media (min-width: 1000px) {
  #toast, #toast.err { left: calc(var(--side-w) + 40px); right: 40px; }
  [dir="rtl"] #toast, [dir="rtl"] #toast.err { left: 40px; right: calc(var(--side-w) + 40px); }
  body:has(.tp-bar) #toast { bottom: 96px; }
}
.tp-e-seats { margin: 4px 0 6px; }
.tp-e-lbl { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.tp-e-seat { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid color-mix(in srgb, var(--line) 55%, transparent); }
.tp-e-seat .grow { flex: 1; min-width: 0; }
.tp-e-seat b { display: block; font-size: 14px; font-weight: 600; }
.tp-e-seat small { color: var(--muted); font-size: 12.5px; }
.tp-plate.sm { width: 44px; height: 44px; border-radius: 10px; }
.tp-plate.sm img { width: 38px; height: 38px; }
.tp-step { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 18px; line-height: 1; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.tp-qty { width: 54px !important; text-align: center; }
.tp-e-hint { display: block; color: var(--muted); font-size: 12.5px; margin-top: 6px; }
@media (hover: hover) { .tp-step:hover { background: var(--text); border-color: var(--text); color: var(--bg); } }
/* ==================== Client sur ordinateur : liste à gauche, fiche à droite (option 4, owner 2026-11-18) ====================
   viewTransferSplit() (app.js) : la fiche « document » de viewTransfer() est déplacée dans .tsplit-detail.
   La liste garde sa position et défile seule ; la barre d'actions flottante se centre sur la colonne de la fiche. */
@media (min-width: 1000px) {
  .wrap.tsplit-wrap { max-width: none; padding: 0; }
  .tsplit-wrap > .top { padding-inline: 20px; }
  .tsplit { --tsplit-w: 400px; display: grid; grid-template-columns: var(--tsplit-w) minmax(0, 1fr); align-items: start; flex: 1; }
  .tsplit-list { position: sticky; top: 0; height: 100dvh; overflow-y: auto; overscroll-behavior: contain; padding: 4px 18px 40px 20px; border-inline-end: 1px solid var(--line); }
  .tsplit-list .tsearch-wrap { max-width: none; }
  .tsplit-list .list { display: block; padding: 0 0 24px; }
  .tsplit-list .list > .tcard { margin-bottom: 10px; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
  .tsplit-list .list > .day-title { font-size: 15px; margin-top: 18px; }
  .tsplit-list .tcard.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
  .tsplit-list .tcard:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
  .tsplit-list .filters { flex-wrap: wrap; }
  .tsplit-detail { min-width: 0; padding: 0 12px; }
  .tsplit-detail .tp { margin-inline: 0; }   /* fiche collée à gauche contre la liste, sans vide (owner, 2026-11-18) */
  .tsplit .tp-bar { align-items: flex-start; padding-inline-start: 28px; }   /* barre d'actions alignée sur la fiche */
  .tsplit .tp-top .back-link { display: none; }   /* la liste est à côté : pas de « Retour » */
  .tsplit .tp-bar { left: calc(var(--side-w) + var(--tsplit-w)); }
  [dir="rtl"] .tsplit .tp-bar { left: 0; right: calc(var(--side-w) + var(--tsplit-w)); }
}
@media (hover: hover) and (min-width: 1000px) { .tsplit-list .tcard:not(.on):hover { border-color: var(--gold); } }
/* Bouton de vue « Liste / Liste + détails » (client sur ordinateur), à droite des filtres ; survol comme vipazur.fr */
.tview { display: inline-flex; margin-inline-start: 0; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); }
.tview-b { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: inherit; font-size: 13.5px; cursor: pointer; transition: background-color .3s, color .3s; }
.tview-b svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.tview-b.on { background: var(--gold); color: #fff; }
.tsplit-list .tview { margin-inline-start: 0; }
.tview-b span { display: none; }   /* icônes seules, juste après le tri, dans les deux vues (owner, 2026-11-18 ; titre au survol) */
@media (hover: hover) { .tview-b:not(.on):hover { background: var(--text); color: var(--bg); } }

/* ==================== Position GPS du chauffeur (2026-11-18) ==================== */
/* Bandeau bleu « Activer la localisation » (chauffeurs), même forme que celui des notifications. */
.geo-bar { background: #1f6fb2; }
.geo-bar .btn.small { color: #1f6fb2; }
/* Chauffeur, panneau des étapes : « Position partagée avec le client ». */
.geo-live { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; padding: 9px 12px; border-radius: 10px; background: var(--green-soft); color: var(--text); font-size: 13.5px; line-height: 1.4; }
.geo-live svg { flex: none; width: 17px; height: 17px; margin-top: 1px; stroke: var(--green); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.geo-live.bad { background: var(--red-soft); }
.geo-live.bad svg { stroke: var(--red); }
/* Client, super admin : ligne sous le trajet. */
.tp-live { display: flex; align-items: center; gap: 8px; width: 100%; margin: 12px 0 0; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--text); font: inherit; font-size: 14px; text-align: start; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.tp-live[hidden] { display: none; }
.tp-live span:last-child { color: var(--muted); }
.tp-live:hover span:last-child { color: inherit; }
.tp-live.stale .live-dot { background: var(--muted); animation: none; }
.live-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #1faa6b; box-shadow: 0 0 0 0 rgba(31, 170, 107, .6); animation: live-pulse 1.8s infinite; }
.live-dot.wait { background: var(--gold); animation: none; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(31, 170, 107, .55); } 70% { box-shadow: 0 0 0 9px rgba(31, 170, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 170, 107, 0); } }
/* Voiture du chauffeur sur les cartes (petite carte, grande carte, planning). */
.live-car { background: none; border: 0; }
.live-car-dot { position: relative; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .45); }
.live-car-dot::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; animation: live-pulse 1.8s infinite; }
.live-car-dot.stale { filter: grayscale(1); opacity: .7; }
.live-car-dot.stale::after { animation: none; }
.live-car-dot svg { width: 62%; height: 62%; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .live-dot, .live-car-dot::after { animation: none; } }

/* Liste des transferts sur ordinateur : collée à la colonne de gauche, toute la largeur (owner, 2026-11-18) */
@media (min-width: 1000px) { .wrap.tlist-wrap { max-width: 832px; margin: 0; } .wrap.tlist-wrap.tl-col { max-width: clamp(440px, 38vw, 540px); } }   /* vue « liste + fiche » sans course à ouvrir (liste vide) : la largeur de la colonne de liste, comme quand une fiche est ouverte (owner, 2026-11-28) */   /* deux colonnes de cartes (2 × 380 + 32), recherche et filtres de la même largeur ; 1500 px est une limite, pas une largeur (owner, 2026-11-28 : « still too big ») */
/* Filtre « Statut » : une pastille avec liste déroulante (Tous, Confirmés, En attente, Terminés) */
.chip-filter.tf-status { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px 0 14px; cursor: pointer; }
.tf-status > span { color: var(--muted); }
.tf-status.on > span { color: inherit; opacity: .85; }
.tf-status select { appearance: none; -webkit-appearance: none; border: 0; background: none; color: inherit; font: inherit; font-weight: 600; padding: 6px 18px 6px 0; margin-inline-end: -18px; cursor: pointer; outline: none; }
.tf-status select option { color: var(--text); background: var(--bg); font-weight: 400; }
.tf-status svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; flex: none; }
.tf-status:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (hover: hover) { .chip-filter.tf-status:hover > span { color: var(--bg); } }
.tsplit.has-back .tp-top .back-link { display: flex; }   /* ouvert depuis le planning, un vol… : « Retour » y ramène */
/* Ordinateur : le contenu de chaque page démarre contre la colonne de gauche, jamais centré avec un vide (owner, 2026-11-18).
   Pages de connexion (sans colonne) : restent centrées. */
@media (min-width: 1000px) { #app:has(> .tabs.mode-tabs) > .wrap { margin-inline: 0 auto; } }

/* Tri de la liste des transferts : petite icône ronde (owner, 2026-11-18) ; flèche vers le haut = plus ancien d'abord. */
/* Même cadre que le choix de présentation (.tview) : 38 px, rond doré de 30 px à l'intérieur (owner, 2026-11-18). */
.chip-filter.t-sort { width: 38px; height: 38px; min-height: 0; padding: 3px; display: inline-grid; place-items: center; align-self: center; flex: none;
  border: 1px solid var(--line); background: linear-gradient(var(--gold), var(--gold)) content-box, var(--panel); color: #fff; }
.t-sort svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s; }
.t-sort.asc svg { transform: scaleY(-1); }

/* Colonne de gauche (ordinateur) : logo aligné sur les icônes du menu, puis drapeau et bouton clair/sombre (owner, 2026-11-18).
   Le bouton thème de l'en-tête est caché quand la colonne est là. */
@media (min-width: 1000px) {
  .tabs.mode-tabs .side-top { padding-inline-start: 7px; gap: 4px; }
  [dir="rtl"] .tabs.mode-tabs .side-top { padding: 4px 7px 26px 0; }
  .tabs.mode-tabs .side-top .side-logo { margin-inline-end: 4px; }
  .tabs.mode-tabs .side-top .tool-btn[data-act="theme"] { color: var(--muted); }
  .tabs.mode-tabs .side-top .tool-btn[data-act="theme"] svg { width: 19px; height: 19px; }
  #app:has(> .tabs.mode-tabs) .top .tool-btn[data-act="theme"] { display: none; }
}

/* Recherche des transferts : même largeur en « Liste » et en « Liste + fiche » (owner, 2026-11-18), celle de la colonne de liste. */
@media (min-width: 1000px) {
  .tsearch-wrap, .tsplit-list .tsearch-wrap { max-width: 338px; }   /* 338 : la place de la colonne une fois sa barre de défilement comptée */
  .inv-page .tsearch-wrap { max-width: 560px; }
}

/* Liste des transferts sur ordinateur (owner, 2026-11-18) : Statut + tri + présentation forment une ligne aussi large que la
   recherche (le choix de présentation finit au bord droit de la recherche), et rien ne bouge quand on change de présentation. */
@media (min-width: 1000px) {
  .filters:has(> .t-sort) { max-width: 338px; flex-wrap: nowrap; }
  .filters:has(> .t-sort) > .tf-status { flex: 1 1 auto; min-width: 0; }
  .filters:has(> .t-sort) > .tf-status b { flex: 1 1 auto; min-width: 0; text-align: start; }   /* la flèche reste au bout du champ */
  .tsplit .tsplit-list { padding-top: 0; }
  .tsplit .tsplit-list .list { padding-top: 4px; }
}
/* Menu « Statut » de la liste des transferts (owner, 2026-11-18) : remplace la liste du navigateur. */
.tf-status b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tf-status[aria-expanded="true"] svg { transform: rotate(180deg); }
.tf-status svg { transition: transform .2s; }
.tf-menu { position: fixed; z-index: 1100; display: flex; flex-direction: column; gap: 2px; padding: 6px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--panel); box-shadow: 0 14px 34px rgba(0, 0, 0, .28); animation: tfIn .14s ease-out; }
@keyframes tfIn { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .tf-menu { animation: none; } }
.tf-opt { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--text);
  font: inherit; font-size: 14.5px; text-align: start; cursor: pointer; transition: background-color .3s, color .3s; }
.tf-opt svg { width: 16px; height: 16px; stroke: var(--gold); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; visibility: hidden; flex: none; transition: stroke .3s; }
.tf-opt.on { color: var(--gold); font-weight: 600; }
.tf-opt.on svg { visibility: visible; }
.tf-opt:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
@media (hover: hover) {
  .tf-opt:hover { background: var(--text); color: var(--bg); }
  .tf-opt:hover svg { stroke: var(--bg); }
}

/* ==================== Chauffeur : prêt à recevoir des courses (2026-11-18) ==================== */
.ready { margin: 4px 0 18px; padding: 14px; border: 1px solid var(--red); border-radius: 14px; background: var(--red-soft); }
.ready.all { padding: 10px 14px; border-color: var(--green); background: var(--green-soft); }
.ready-msg { margin: 0 0 10px; font-weight: 600; line-height: 1.4; }
.ready-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ready-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--panel); }
.ready-list .grow { flex: 1; min-width: 0; }
.ready-list li small { display: block; margin-top: 3px; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.ready-list .btn.small { flex: none; }
/* « Position exacte » : « Activer le GPS » (doré) et « Revérifier » côte à côte (owner, 2026-11-24). */
.rd-btns { display: flex; flex-wrap: wrap; gap: 8px; flex: none; }
.ready-ico { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--red); color: #fff; font-size: 13px; font-weight: 700; }
.ready-list li.ok .ready-ico { background: var(--green); }
.ready-list li.ok b { color: var(--muted); font-weight: 500; }
.ready-ok { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; }
.ready-ok svg { flex: none; width: 20px; height: 20px; stroke: var(--green); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ready { max-width: 640px; }   /* ordinateur : liste étroite, une colonne (owner : « pas si large ») */
/* Liste « Vous ne recevrez pas… » repliable (team.js readyFold, owner 2026-11-23) : dépliée à chaque réouverture. */
.ready-head { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.ready-head .ready-msg { flex: 1; min-width: 0; }
.ready .ready-tg { flex: none; width: 34px; height: 34px; min-height: 0; margin: -4px -2px 0 0; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--panel); color: var(--text); cursor: pointer; transition: background-color .3s, color .3s; }
.ready .ready-tg svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s ease; transform: rotate(180deg); }
.ready.fold .ready-tg svg { transform: none; }   /* ouverte : flèche vers le haut ; repliée : vers le bas */
.ready.fold .ready-list { display: none; }
.ready.fold .ready-msg { margin-bottom: 0; }
@media (hover: hover) { .ready .ready-tg:hover { background: var(--text); color: var(--bg); } }
html.dt .ready .ready-tg { background: var(--bg); }
@media (hover: hover) { html.dt .ready .ready-tg:hover { background: var(--text); color: var(--bg); } }
/* Téléphone : rond à gauche, texte à droite, bouton sous le texte (owner : le bouton écrasait le texte). */
@media (max-width: 999px) {
  .ready-list li { display: grid; grid-template-columns: 24px 1fr; align-items: start; column-gap: 10px; row-gap: 10px; }
  .ready-ico { margin-top: 1px; }
  .ready-list .btn.small { grid-column: 2; justify-self: start; }
  .ready-list .rd-btns { grid-column: 2; justify-self: start; }
  .ready-list .rd-btns .btn.small { grid-column: auto; }
}

/* Dialogue « Proposer à un chauffeur » : chauffeur pas prêt (notifications, position exacte, dossier VTC), non cochable. */
.dp-row.unready { opacity: .65; cursor: not-allowed; }
.dp-unready { display: block; margin-top: 2px; color: var(--red); font-size: 12px; font-style: normal; }
.dp-unready-n { color: var(--red); }

/* Fenêtre « Activer la position exacte » : étapes numérotées. */
.geo-fix-steps { margin: 6px 0 12px; padding-inline-start: 22px; display: grid; gap: 8px; line-height: 1.45; }

/* Mon dossier VTC : pièces en liste à cocher (owner, 2026-11-18). Envoyée = vert ; obligatoire manquante = rouge. */
.mf-check { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.mf-check li { display: grid; grid-template-columns: 24px 1fr; column-gap: 10px; align-items: start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.mf-check li.ok { border-color: var(--green); background: var(--green-soft); }
.mf-check li.todo { border-color: var(--red); }
.mf-check .grow { min-width: 0; }
.mf-check small { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; }
.mf-check .mf-file { margin-top: 6px; overflow-wrap: anywhere; }
.mf-ico { display: grid; place-items: center; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; background: var(--line); color: #fff; font-size: 13px; font-weight: 700; }
.mf-check li.ok .mf-ico { background: var(--green); }
.mf-check li.todo .mf-ico { background: var(--red); }
.mf-up { margin-top: 10px; cursor: pointer; }
.mf-up.busy { opacity: .6; pointer-events: none; }
/* Filtre par dates (owner, 2026-11-18) : bouton calendrier au bout de la recherche (même largeur totale), doré quand une période est choisie. */
.tsearch-row { display: flex; gap: 8px; align-items: stretch; }
.tsearch-row input[type=search] { flex: 1 1 auto; min-width: 0; }
.t-date { flex: none; width: 47px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); display: grid; place-items: center; padding: 0; cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s; }
.t-date svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.t-date.on { background: var(--gold); border-color: var(--gold); color: #fff; }
.t-range { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 4px 6px 4px 12px; border-radius: 999px; border: 1px solid var(--gold); color: var(--gold); font-size: 13.5px; font-weight: 600; }
.t-range button { width: 24px; height: 24px; border-radius: 50%; border: 0; background: none; color: inherit; display: grid; place-items: center; cursor: pointer; padding: 0; transition: background-color .3s, color .3s; }
.t-range svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; }
@media (hover: hover) {
  .t-date:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
  .t-range button:hover { background: var(--text); color: var(--bg); }
}
/* Utilisateurs : onglets Chauffeurs / Clients en haut, comme Tarifs (owner, 2026-11-18). */
.us-seg { max-width: 560px; margin: 6px 0 12px; }   /* 3 onglets sur une ligne (Vérification des documents) */

/* Petit cercle qui tourne (vérification de la position exacte). */
.mini-spin { display: inline-block; width: 13px; height: 13px; margin-inline-end: 7px; vertical-align: -2px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: vpz-mini-spin .8s linear infinite; }
@keyframes vpz-mini-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .mini-spin { animation-duration: 2s; } }
/* ==================== Chauffeurs : prêt à recevoir des courses, vérification des documents (owner, 2026-11-18) ==================== */
.rd-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rd-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px 3px 7px; border-radius: 999px; font-size: 12.5px; font-weight: 600; border: 1px solid; }
.rd-chip svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.rd-chip.ok { color: var(--green); border-color: color-mix(in srgb, var(--green) 45%, transparent); background: color-mix(in srgb, var(--green) 10%, transparent); }
.rd-chip.no { color: var(--red); border-color: color-mix(in srgb, var(--red) 45%, transparent); background: color-mix(in srgb, var(--red) 9%, transparent); }
.dr { display: grid; grid-template-columns: 1fr; gap: 16px; }
.dr-list { display: flex; flex-direction: column; gap: 10px; }
.dr-list .us-search { padding: 0 0 4px; }
.dr-card { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); color: var(--text); text-align: start; cursor: pointer; font: inherit;
  transition: border-color .2s, box-shadow .2s; }
.dr-card.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.dr-card .grow { flex: 1; min-width: 0; }
.dr-card b { display: block; font-size: 15px; }
.dr-card small { display: block; color: var(--muted); font-size: 13px; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-sum { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.dr-sum .pill { font-size: 11.5px; padding: 1px 8px; }
.dr-detail { min-width: 0; }
.dr-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.dr-head .grow { flex: 1; min-width: 0; }
.dr-head h2 { margin: 0; font-size: 22px; }
.dr-head small { color: var(--muted); font-size: 13.5px; }
.dr-ready { margin: 4px 0 10px; }
.dr-docs { display: flex; flex-direction: column; gap: 8px; }
.dr-type { padding: 10px 0; border-bottom: 1px solid var(--line); }
.dr-type-h { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.dr-type-h b { font-size: 14.5px; }
.dr-type-h small { color: var(--muted); font-size: 12px; }
.dr-type-h em { font-style: normal; color: var(--muted); font-size: 13px; }
.dr-type.miss .dr-type-h em { color: var(--red); font-weight: 600; }
.dr-file { display: flex; align-items: flex-start; gap: 12px; margin-top: 8px; padding: 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.dr-file.rejected { border-color: color-mix(in srgb, var(--red) 55%, var(--line)); }
.dr-file.approved { border-color: color-mix(in srgb, var(--green) 45%, var(--line)); }
.dr-thumb { flex: none; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line); color: var(--muted); }
.dr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dr-thumb svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linejoin: round; }
.dr-file .grow { flex: 1; min-width: 0; }
.dr-file b { display: block; font-size: 14px; overflow-wrap: anywhere; }
.dr-file b a { color: var(--text); }
.dr-file small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.dr-act { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.dr-act .pill { font-size: 12px; }
.dr-rej { margin-top: 8px; }
.dr-rej textarea { width: 100%; }
@media (min-width: 1000px) {
  .dr { grid-template-columns: 360px minmax(0, 1fr); gap: 28px; align-items: start; }
  .dr-list { position: sticky; top: 12px; max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; padding-inline-end: 6px; }
}
@media (max-width: 640px) {
  .dr-file { flex-wrap: wrap; }
  .dr-act { flex-direction: row; align-items: center; flex-wrap: wrap; width: 100%; justify-content: flex-start; }
  .dr-head .grow { flex: 1 1 calc(100% - 90px); }
  .dr-head .btn { width: 100%; }   /* « Valider les N pièces » sur sa propre ligne */
}

/* Mon dossier VTC : statut de chaque pièce donné par ChauffApp (en attente, validée, refusée + motif). */
.mf-check li.wait { border-color: var(--gold); }
.mf-check li.wait .mf-ico { background: var(--gold); }
.mf-check li.rej { border-color: var(--red); }
.mf-check li.rej .mf-ico { background: var(--red); }
.mf-st { margin-inline-start: 8px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-style: normal; white-space: nowrap; border: 1px solid currentColor; }
.mf-st.pending { color: var(--gold); }
.mf-st.approved { color: var(--green); }
.mf-st.rejected { color: var(--red); }
.mf-file.rej a { text-decoration: line-through; opacity: .7; }
.mf-note { display: block; margin-top: 2px; color: var(--red); font-size: 12.5px; }
/* Liste « Nouvelles propositions » : étapes « position exacte » numérotées. */
/* « Position exacte » : deux cases, hors course / en course (design 3, owner 2026-11-24), pleine largeur de la carte sur téléphone. */
.rd-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 2px; }
.rd-duo > div { border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-size: 13px; line-height: 1.4; }
.rd-duo > div.live { border-color: var(--gold); background: var(--gold-soft); }
.rd-duo b { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.rd-duo .live b { color: var(--gold); }
.rd-duo b svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rd-duo span { color: var(--muted); }
.ready-list li:has(.rd-duo) { align-items: flex-start; }
@media (max-width: 999px) { .rd-duo { margin-inline-start: -34px; } }
.ready-steps { margin: 6px 0 0; padding-inline-start: 18px; display: grid; gap: 4px; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
/* Vérification des documents : pièce en pleine largeur, boutons dessous, plein écran dans une fenêtre (owner, 2026-11-18). */
.dr-file { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px; }
.dr-file-h { display: flex; align-items: center; gap: 10px; }
.dr-file-h .grow { flex: 1; min-width: 0; }
.dr-file-h b { display: block; font-size: 14px; overflow-wrap: anywhere; }
.dr-full { flex: none; width: 36px; height: 36px; }
.dr-full svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dr-view { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); }
.dr-view img { display: block; width: 100%; max-height: 70vh; object-fit: contain; cursor: zoom-in; }
.dr-view iframe { display: block; width: 100%; height: 560px; border: 0; background: #fff; }
.dr-note { margin: 0; font-size: 13.5px; }
.dr-file .dr-act { flex-direction: row; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 8px; }
.dr-file .dr-act .btn { min-width: 130px; }
.dv-overlay { align-items: stretch; }
.dv-sheet { width: min(1200px, calc(100% - 32px)); margin: 16px auto; display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; border: 1px solid var(--line); background: var(--bg); }
.dv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 18px; border-bottom: 1px solid var(--line); }
.dv-head b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dv-body { flex: 1; min-height: 0; display: grid; place-items: center; background: #111; }
.dv-body img { max-width: 100%; max-height: 100%; object-fit: contain; }
.dv-body iframe { width: 100%; height: 100%; border: 0; background: #fff; }
@media (max-width: 640px) {
  .dr-view iframe { height: 420px; }
  .dv-sheet { width: calc(100% - 16px); margin: 8px auto; }
}

/* Page « Mon dossier VTC » (#dossier, son propre onglet) : une colonne de lecture sur ordinateur. */
.settings.mf-page { max-width: 760px; }

/* Plein écran : la pièce défile dans la fenêtre (rien de caché en bas), Valider / Refuser dans une barre en bas (owner, 2026-11-18). */
.dv-sheet { max-height: calc(100% - 32px); }
.dv-body { overflow: auto; overscroll-behavior: contain; }
.dv-body.img { display: block; text-align: center; padding: 12px; }
.dv-body.img img { max-width: 100%; max-height: none; height: auto; }
.dv-foot { border-top: 1px solid var(--line); padding: 10px 14px; background: var(--bg); }
.dv-btns { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dv-btns .grow { flex: 1; }
.dv-btns .btn { min-width: 130px; }
.dv-rej { margin-bottom: 8px; }
.dv-rej textarea { width: 100%; }
@media (max-width: 640px) { .dv-sheet { max-height: calc(100% - 16px); } .dv-btns .btn { flex: 1; min-width: 0; } }

/* Utilisateurs : « Vérification des documents » en bouton à côté de « + Ajouter », pastille = pièces à vérifier (owner, 2026-11-18). */
.us-docbtn { display: inline-flex; align-items: center; gap: 2px; }
.dos-count[hidden] { display: none; }

/* Mon dossier VTC, design 1 (owner, 2026-11-18) : progression, puis une carte dépliable par sujet. */
.mf-prog { display: flex; align-items: center; gap: 10px; margin: 4px 0 14px; font-size: 13px; color: var(--muted); }
.mf-bar { flex: 1; height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.mf-bar i { display: block; height: 100%; background: var(--green); border-radius: 999px; transition: width .3s; }
.mfg-list { display: grid; gap: 10px; }
.mfg { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); overflow: hidden; }
.mfg-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; list-style: none; }
.mfg-head::-webkit-details-marker { display: none; }
.mfg-tt { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.mfg-ico { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--line); color: var(--muted); }
.mfg-ico svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mfg-ico.ok { background: var(--green-soft); color: var(--green); } .mfg-ico.wait { background: rgba(205, 165, 91, .16); color: var(--gold); } .mfg-ico.bad { background: var(--red-soft); color: var(--red); }
.mfg-chip { flex: none; padding: 2px 9px; border-radius: 999px; font-size: 12px; white-space: nowrap; border: 1px solid currentColor; color: var(--muted); }
.mfg-chip.ok { color: var(--green); } .mfg-chip.wait { color: var(--gold); } .mfg-chip.bad { color: var(--red); }
.mfg-chev { flex: none; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: -4px 4px 0; transition: transform .2s; }
.mfg[open] .mfg-chev { transform: rotate(-135deg); margin-top: 4px; }
.mfg[open] .mfg-head { border-bottom: 1px solid var(--line); }
.mfg-body { padding: 12px 14px 14px; display: grid; gap: 10px; }
.mfg-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 12px; }
.mfg-fields .f { margin: 0 0 4px; }
.mfg-note { margin: 0; padding: 8px 10px; border-radius: 10px; font-size: 13px; }
.mfg-note.bad { background: var(--red-soft); color: var(--red); } .mfg-note.wait { background: rgba(205, 165, 91, .14); color: var(--gold); }
.mf-doc { border: 1px dashed var(--line); border-radius: 12px; padding: 10px 12px; }
.mf-doc.ok { border-style: solid; border-color: var(--green); background: var(--green-soft); }
.mf-doc.wait { border-style: solid; border-color: var(--gold); }
.mf-doc.rej, .mf-doc.todo:not(.opt) { border-color: var(--red); }
.mf-doc-h { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; }
.mf-doc small { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; }
.mf-doc .mf-file { margin-top: 6px; overflow-wrap: anywhere; }
.mf-doc .mf-ico { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--line); color: #fff; font-size: 13px; font-weight: 700; }
.mf-doc.ok .mf-ico { background: var(--green); } .mf-doc.wait .mf-ico { background: var(--gold); } .mf-doc.rej .mf-ico, .mf-doc.todo:not(.opt) .mf-ico { background: var(--red); }
.mf-optl { color: var(--muted); font-size: 12px; font-weight: 400; }
@media (hover: hover) { .mfg-head:hover { background: var(--panel-2); } }

/* Mon dossier VTC : pièce pas encore transmise (champs du sujet vides) et champ vide à remplir (owner, 2026-11-18). */
.mf-doc.draft { border-style: solid; border-color: var(--line); }
.mf-doc.draft .mf-ico { background: var(--muted); }
.mf-st.draft { color: var(--muted); }
.mfg-fields input.mf-miss { border-color: var(--red); }

/* Grande carte du trajet : voiture du chauffeur bien visible (dorée, 46 px, bord épais) et étiquette « Votre chauffeur » (owner, 2026-11-18) */
.live-car.xl .live-car-dot { border-width: 3px; box-shadow: 0 0 0 4px rgba(205, 165, 91, .35), 0 4px 14px rgba(0, 0, 0, .5); }
.leaflet-tooltip.live-tip { background: #cda55b; border: 0; color: #fff; font-weight: 650; font-size: 13px; padding: 4px 10px; border-radius: 99px; box-shadow: 0 4px 12px rgba(0, 0, 0, .35); }
.leaflet-tooltip.live-tip::before { border-top-color: #cda55b; }

/* Mon dossier VTC : carte et permis en deux faces, une ligne Recto et une ligne Verso (owner, 2026-11-18). */
.mf-slot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.mf-slot-l { min-width: 52px; font-size: 13px; }
.mf-slot .mf-up, .mf-slot .mf-file { margin-top: 0; }
.mf-side { margin-inline-end: 6px; font-size: 12px; color: var(--muted); }

/* Mon dossier VTC : calendrier des fins de validité (celui de la réservation) ; la carte ne coupe plus la fenêtre du calendrier. */
.mfg { overflow: visible; }
.mfg-head { border-radius: 14px; }
.mfg[open] .mfg-head { border-radius: 14px 14px 0 0; }
.mfg-fields .mf-pick { margin: 0 0 4px; }
.mfg-fields .mf-pick > span:first-child { display: block; margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.mf-pick.mf-miss .bk-pick-btn { border-color: var(--red); }

/* Documents VTC : carte VTC ou permis avec un seul cote envoye (recto + verso exiges). */
.dr-type-h em.dr-side-miss { color: var(--red); font-weight: 600; }

/* Étapes de la course : bouton à glisser (owner, 2026-11-18). Doré, rond blanc à gauche, la partie glissée s'assombrit. */
.slide-btn { position: relative; flex: 1; min-width: 0; height: 48px; border-radius: 999px; background: var(--gold); color: #fff; overflow: hidden; display: flex; align-items: center; justify-content: center; user-select: none; -webkit-user-select: none; cursor: default; }
.slide-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: rgba(0, 0, 0, .2); border-radius: 999px; pointer-events: none; }
.slide-lbl { position: relative; padding: 0 50px; font-weight: 600; font-size: 15px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.slide-knob { position: absolute; left: 4px; top: 4px; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--gold); display: grid; place-items: center; touch-action: none; cursor: grab; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.slide-btn.tp-main .slide-knob svg { display: block; }   /* .tp-main svg est caché ailleurs */
.slide-knob svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.slide-btn.drag .slide-knob { cursor: grabbing; }
.slide-btn.busy .slide-lbl { opacity: .75; }
.slide-btn.nudge .slide-knob { animation: slide-nudge .55s ease; }
@keyframes slide-nudge { 30% { transform: translateX(26px); } 65% { transform: translateX(-3px); } 100% { transform: translateX(0); } }
.slide-btn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
@media (hover: hover) { .slide-knob:hover { background: var(--text); color: var(--bg); } }
@media (prefers-reduced-motion: reduce) { .slide-btn.nudge .slide-knob { animation: none; } }

/* Fins de validité : case JJ/MM/AAAA + bouton calendrier (owner, 2026-11-18). */
.mf-datebox { display: flex; gap: 8px; }
.mf-datetxt { flex: 1; min-width: 0; }
.mf-datetxt.bad, .mf-pick.mf-miss .mf-datetxt { border-color: var(--red); }
.mf-calbtn { flex: none; width: 46px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--gold); cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.mf-calbtn.bk-pick-btn { width: 54px; height: auto; min-height: 46px; padding: 0; }
.mf-calbtn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }
@media (hover: hover) { .mf-calbtn:hover { background: var(--text); border-color: var(--text); color: var(--bg); } }

/* Grande carte : la voiture du chauffeur et son étiquette s'ouvrent dans l'application de navigation. */
.live-car.big, .leaflet-tooltip.live-tip { cursor: pointer; }
.leaflet-tooltip.live-tip { pointer-events: auto; }

/* Fiche transfert : « Voir mon chauffeur sur la carte » dans la section du trajet, à droite des adresses (sous elles sur
   téléphone), avec un halo doré qui pulse (owner, 2026-11-18). */
.tp-route { flex-wrap: wrap; }
.tp-see { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border: 0; border-radius: 999px; background: var(--gold); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; animation: see-pulse 1.8s infinite; transition: background-color .3s, color .3s; }
.tp-see[hidden] { display: none; }
.tp-see svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@keyframes see-pulse { 0% { box-shadow: 0 0 0 0 rgba(205, 165, 91, .6); } 70% { box-shadow: 0 0 0 14px rgba(205, 165, 91, 0); } 100% { box-shadow: 0 0 0 0 rgba(205, 165, 91, 0); } }
@media (max-width: 640px) { .tp-see { flex-basis: 100%; margin-top: 4px; } }
@media (hover: hover) { .tp-see:hover { background: var(--text); color: var(--bg); } }
@media (prefers-reduced-motion: reduce) { .tp-see { animation: none; } }

/* Messages sur ordinateur (super admin) : conversations à gauche, conversation à droite (owner, 2026-11-18). */
@media (min-width: 1000px) {
  .chat-page.chs-wrap { max-width: none; }
  .chs { flex: 1; min-height: 0; display: grid; grid-template-columns: 360px minmax(0, 1fr); }
  .chs-list { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 18px 24px 28px; border-inline-end: 1px solid var(--line); }
  .chs-list h1 { margin: 6px 0 12px; }
  .chs-list .thread { padding: 10px 12px; margin-bottom: 4px; border: 1px solid transparent; border-bottom-color: var(--line); border-radius: 14px; transition: border-color .2s, background-color .2s; }
  .chs-list .thread.on { border-color: var(--gold); background: var(--panel); }
  .chs-detail { min-height: 0; display: flex; flex-direction: column; }
  .chs-detail .chat-head { padding-top: 14px; }
  .chs-detail .chat-head .icon-plain { display: none; }   /* la liste est à côté : pas de retour */
}
@media (hover: hover) and (min-width: 1000px) { .chs-list .thread:not(.on):hover { background: var(--panel); } }

/* Messagerie : la page ne défile pas, seuls les messages (owner, 2026-11-18). */
html:has(.chat-page), body:has(.chat-page) { overflow: hidden; overscroll-behavior: none; }
.chat-msgs { overscroll-behavior: contain; }
#app:has(> .tabs.mode-tabs):has(.chat-page) { padding-bottom: 0; }   /* hauteur calculée en JS (fit), barre du bas comprise */

/* Messagerie : courses proposées en direct (owner, 2026-11-18). */
.chat-offer { flex: none; width: 42px; height: 42px; align-self: flex-end; border-radius: 50%; border: 1px solid var(--gold); background: var(--panel); color: var(--gold); display: grid; place-items: center; cursor: pointer; padding: 0; transition: background-color .3s, color .3s, border-color .3s; }
.chat-offer svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.msg-b.has-offer { max-width: min(420px, 92%); width: 100%; }
.co-card { display: flex; flex-direction: column; gap: 4px; text-align: start; }
.co-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.co-top .pill { font-size: 11.5px; }
.co-ref { opacity: .75; font-size: 12px; }
.co-route { display: flex; flex-direction: column; font-weight: 600; }
.co-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; margin-top: 2px; font-size: 13.5px; }
.co-pay { display: flex; flex-direction: column; align-items: flex-end; }
.co-pay small { opacity: .75; font-size: 11px; }
.co-pay b { font-size: 16px; }
.co-note { margin: 4px 0 0; font-style: italic; font-size: 13px; }
.co-btns { display: flex; gap: 8px; margin-top: 6px; }
.co-btns .btn { flex: 1; }
.co-card.withdrawn, .co-card.expired, .co-card.cancelled { opacity: .7; }
.co-dialog .co-list { display: flex; flex-direction: column; gap: 6px; max-height: 50vh; overflow-y: auto; margin: 8px 0 10px; }
.co-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .2s, background-color .2s; }
.co-row.on { border-color: var(--gold); background: var(--panel); }
.co-row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.co-row small { color: var(--muted); font-size: 12.5px; }
.co-row em { color: var(--gold); font-style: normal; }
.co-r { font-size: 14px; }
.co-price { flex: none; display: flex; align-items: center; gap: 4px; }
.co-price input { width: 82px; text-align: end; }
.co-price input:disabled { opacity: .45; }
@media (hover: hover) { .chat-offer:hover { background: var(--gold); border-color: var(--gold); color: #fff; } .co-row:not(.on):hover { border-color: var(--muted); } }

/* Documents VTC : une carte par sujet, numéros + dates + pièces ensemble (owner, 2026-11-18). */
.drg-list { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.drg { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); padding: 14px 16px; }
.drg-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.drg-h b { flex: 1; font-size: 16px; }
.drg-ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--gold) 14%, transparent); color: var(--gold); }
.drg-ico svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.drg-exp { font-size: 12.5px; font-weight: 600; padding: 2px 10px; border-radius: 999px; border: 1px solid; }
.drg-exp.ok { color: var(--green); border-color: color-mix(in srgb, var(--green) 45%, transparent); }
.drg-exp.warn { color: var(--gold); border-color: var(--gold); }
.drg-exp.bad { color: var(--red); border-color: color-mix(in srgb, var(--red) 55%, transparent); }
.drg-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 18px; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.drg-fields dt { color: var(--muted); font-size: 12.5px; }
.drg-fields dd { margin: 2px 0 0; font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.drg-empty { color: var(--red); font-weight: 500; font-size: 13.5px; }
.drg-doc { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.drg .dr-file { background: var(--bg); }

/* Liste « Nouvelles propositions » : progression des pièces du dossier VTC (owner, 2026-11-18). */
.rd-prog { margin: 8px 0 2px; font-size: 12.5px; }

/* Documents VTC : sujets validés repliés en bas (owner, 2026-11-18). */
.drg.closed > :not(.drg-h) { display: none; }
.drg.done .drg-h { cursor: pointer; }
.drg.done.closed { padding-block: 10px; opacity: .85; }
.drg-chev { width: 18px; height: 18px; stroke: var(--muted); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.drg.done:not(.closed) .drg-chev { transform: rotate(180deg); }
@media (hover: hover) { .drg.done.closed:hover { opacity: 1; border-color: var(--muted); } }

/* Messagerie : bouton corbeille sur les messages de ChauffApp (super admin). */
.msg-b { position: relative; }
.msg-del { position: absolute; top: -9px; inset-inline-start: -9px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--red); display: grid; place-items: center; padding: 0; cursor: pointer; transition: opacity .2s, background-color .3s, color .3s; }
.msg-del svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .msg-b .msg-del { opacity: 0; } .msg-b:hover .msg-del, .msg-del:focus-visible { opacity: 1; } .msg-del:hover { background: var(--red); border-color: var(--red); color: #fff; } }

/* Messagerie : heure, coches (✓ envoyé, ✓✓ lu) et corbeille en bas à droite du message (owner, 2026-11-18). */
.msg-meta { display: flex; align-items: center; justify-content: flex-end; gap: 5px; margin-top: 2px; }
.msg-meta time { display: inline; margin: 0; }
.msg-tick { display: inline-flex; opacity: .8; }
.msg-tick svg { width: 17px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.msg-tick.wait svg { width: 13px; height: 13px; stroke-width: 2; }
.msg-tick.read { opacity: 1; color: #2f9bff; }
.msg-b.me .msg-tick.read { color: #0a5fd8; }
html:not([data-theme="light"]) .msg-b.me .msg-tick.read { color: #8fd0ff; }
.msg-b.sending { opacity: .8; }
.msg-meta .msg-del { position: static; order: 3; width: 22px; height: 22px; margin-inline-start: 2px; }
.msg-meta .msg-del svg { width: 12px; height: 12px; }

/* Messagerie comme WhatsApp : heure et coches sur une ligne, en bas à droite, à la suite du texte quand la place le permet. */
.msg-b:not(.has-offer) > div:not(.msg-meta) { display: inline; }
.msg-b:not(.has-offer) > .msg-meta { display: inline-flex; float: right; margin: 6px 0 -3px 12px; white-space: nowrap; }
.msg-b:not(.has-offer)::after { content: ""; display: block; clear: both; }
.msg-meta time { white-space: nowrap; }

/* Barres de défilement aux couleurs de ChauffApp (owner, 2026-11-18) : fines, poignée dorée arrondie, piste invisible, sans flèches. */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--gold) 45%, transparent); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: color-mix(in srgb, var(--gold) 85%, transparent); }
::-webkit-scrollbar-thumb:active { background-color: var(--gold); }
/* Firefox (pas de ::-webkit-scrollbar) : barre fine dorée. */
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--gold) 55%, transparent) transparent; }
}

/* Messagerie sur téléphone : page fixée sur la partie visible de l'écran, la case reste au-dessus de la barre du bas (owner, 2026-11-18). */
@media (max-width: 999px) { .chat-page.chat-fixed { position: fixed; left: 0; right: 0; margin: 0 auto; width: 100%; min-height: 0; z-index: 1; } }

/* Messagerie : coches blanches (✓ envoyé un peu pâle, ✓✓ lu bien blanc) et état de la carte de course sur fond plein, bien lisible (owner, 2026-11-18). */
.msg-b.me .msg-tick, .msg-b.me .msg-tick.read, html:not([data-theme="light"]) .msg-b.me .msg-tick.read { color: #fff; }
.msg-b.me .msg-tick { opacity: .75; }
.msg-b.me .msg-tick.read { opacity: 1; }
.co-top .pill { font-weight: 700; padding: 3px 10px; border: 0; color: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .18); }
.co-top .pill.ok { background: var(--green); }
.co-top .pill.bad { background: var(--red); }
.co-top .pill.gold { background: var(--gold); }
.msg-b.me .co-top .pill.gold { background: #fff; color: var(--gold); }

/* Messagerie : jour au-dessus de ses messages, comme WhatsApp (owner, 2026-11-18). */
.msg-day { align-self: center; margin: 8px 0 2px; }
.msg-day span { display: inline-block; padding: 4px 12px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 600; }

/* Bulle : référence, texte, heure, coches et corbeille sur une ligne, tous centrés verticalement ; l'heure passe dessous à droite si le texte est long (owner, 2026-11-18). */
.msg-b:not(.has-offer) { display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px; row-gap: 2px; padding: 7px 10px 7px 12px; }
.msg-b:not(.has-offer)::after { content: none; }
.msg-b:not(.has-offer) > div:not(.msg-meta) { display: block; flex: 0 1 auto; min-width: 0; }
.msg-b:not(.has-offer) > .msg-ref { margin: 0; }
.msg-b:not(.has-offer) > .msg-meta { display: flex; float: none; align-items: center; margin: 0 0 0 auto; padding-inline-start: 6px; white-space: nowrap; }
.msg-meta time { line-height: 1; }
.msg-meta .msg-tick { align-items: center; }

/* Proposer des courses (messagerie) : seule la liste défile, le bouton d'envoi reste visible en bas de la fenêtre ; espace sous l'avertissement (owner, 2026-11-18). */
.co-dialog { display: flex; flex-direction: column; overflow: hidden; padding-bottom: 16px; }
.co-dialog > * { flex: none; }
.co-dialog .warn-box { margin-bottom: 14px; }
.co-dialog .co-list { flex: 1 1 auto; min-height: 140px; max-height: none; }
.co-dialog .btns { margin-top: 8px; }

/* Facturation des chauffeurs (earnings.js) et commission ChauffApp sur les courses payées à bord (owner, 2026-11-18). */
.dp-board { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 4px 0 12px; background: var(--panel); }
.dp-board-t { margin: 0 0 10px; font-weight: 600; color: var(--gold); font-size: 14px; }
.dp-board .two { margin-bottom: 8px; }
.dp-pcts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dp-pcts .hint { flex: 1 1 100%; margin: 0 0 2px; }
.dp-pcts .chip-filter { padding: 5px 12px; font-size: 13px; }
.collect-comm { font-size: 13.5px; color: var(--muted); margin: -4px 0 8px; }
.offer-board { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--gold) 12%, transparent); color: var(--gold); font-weight: 600; font-size: 13.5px; }
.offer-board small { display: block; font-weight: 500; color: var(--text); margin-top: 2px; }
.ea-page { max-width: 860px; }
.ea-page h1 { margin-bottom: 12px; }
.ea-who { display: flex; align-items: center; gap: 10px; margin: 8px 0 12px; }
.ea-who h1 { margin: 0; }
.ea-bal { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); margin-bottom: 10px; }
.ea-bal small { flex: 1 1 100%; color: var(--muted); font-size: 13.5px; }
.ea-bal b { font-size: 30px; font-variant-numeric: tabular-nums; flex: 1 1 auto; }
.ea-bal.pos b { color: #2e9d5b; }
.ea-bal.neg b { color: var(--gold); }
.ea-seg { margin: 14px 0 12px; }
.ea-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ea-tile { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--panel); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ea-tile small { color: var(--muted); font-size: 12.5px; }
.ea-tile b { font-size: 19px; font-variant-numeric: tabular-nums; }
.ea-h { font-size: 16px; margin: 22px 0 8px; }
.ea-months { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ea-mrow { display: grid; grid-template-columns: 1.6fr .7fr 1fr 1fr; gap: 8px; padding: 9px 12px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; font-size: 14px; }
.ea-mrow span:not(:first-child) { text-align: right; }
.ea-mrow span:first-child { text-transform: capitalize; }
.ea-mhead { border-top: 0; color: var(--muted); font-size: 12.5px; background: var(--panel); }
.ea-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ea-line { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; }
.ea-line:first-child { border-top: 0; }
.ea-l-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ea-l-main small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ea-l-amt { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ea-l-amt small { color: var(--muted); font-size: 12px; }
.ea-pos { color: #2e9d5b; }
.ea-neg { color: var(--gold); }
.ea-soft { color: var(--muted); font-weight: 500; }
.ea-pay { background: var(--panel); }
.ea-del { flex: 0 0 auto; }
.ea-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-decoration: none; color: var(--text); }
.ea-card-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ea-card-who > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.ea-card-who small { color: var(--muted); font-size: 12.5px; }
.ea-card-bal { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ea-card-bal small { color: var(--muted); font-size: 12px; }
.ea-card-bal.pos b { color: #2e9d5b; }
.ea-card-bal.neg b { color: var(--gold); }
.ea-dirs { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
@media (max-width: 640px) {
  .ea-tiles { grid-template-columns: 1fr 1fr; }
  .ea-bal b { font-size: 26px; }
  .ea-seg button { padding: 8px 4px; font-size: 13px; white-space: nowrap; }
  .ea-mrow { grid-template-columns: 1.3fr .6fr 1fr 1fr; font-size: 13px; padding: 8px 10px; }
}

/* Proposer des courses : avertissement sur une ligne, fermable ; pas d'espace vide au-dessus du bouton (owner, 2026-11-18). */
.co-dialog .co-warn { align-items: center; gap: 10px; padding: 8px 8px 8px 12px; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.co-dialog .co-warn > b { font-size: 16px; }
.co-dialog .co-warn > div { flex: 1; min-width: 0; }
.co-warn-x { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 0; background: transparent; color: var(--red); display: grid; place-items: center; padding: 0; cursor: pointer; transition: background-color .3s, color .3s; }
.co-warn-x svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2.4; fill: none; }
@media (hover: hover) { .co-warn-x:hover { background: var(--red); color: #fff; } }
.co-dialog #coMsg { margin-top: 4px; min-height: 0; }
.co-dialog #coMsg:empty { display: none; }
.co-dialog .co-list { min-height: 110px; }
.co-dialog label.f textarea { min-height: 0; height: 64px; }
.co-dialog .btns { margin-top: 10px; }

/* Proposer des courses : message au chauffeur sur une ligne, texte indicatif dans la case (owner, 2026-11-18). */
.co-dialog .co-note-in { min-height: 0; height: 46px; max-height: 120px; margin-top: 10px; resize: none; }

/* Boutons −20 % / −30 % à côté du prix proposé (owner, 2026-11-18). */
.pct-cut { display: flex; gap: 6px; margin-top: 6px; }
.pct-cut button { flex: 1; min-height: 0; height: 30px; padding: 0 10px; border-radius: 99px; border: 1px solid var(--gold); background: transparent; color: var(--gold); font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.pct-cut button.on { background: var(--gold); color: #fff; }
@media (hover: hover) { .pct-cut button:not(.on):hover { background: var(--text); border-color: var(--text); color: var(--bg); } }
.co-price { flex-wrap: wrap; justify-content: flex-end; max-width: 128px; }
.co-price .pct-cut { flex-basis: 100%; gap: 4px; }
.co-price .pct-cut button { padding: 0 6px; height: 28px; font-size: 12px; }
.co-row:not(.on) .pct-cut { opacity: .45; pointer-events: none; }

/* Proposer des courses, ligne « design D » (owner, 2026-11-18) : détails à gauche, gros prix doré à droite, boutons de prix dessous. */
.co-row.co-d { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 2px 10px; padding: 12px 12px 12px 14px; }
.co-d > input[type=checkbox] { margin-top: 3px; }
.co-d .grow { gap: 1px; }
.co-d .co-when { font-size: 15px; }
.co-d .co-ex { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.co-pr { display: flex; flex-direction: column; align-items: flex-end; text-align: end; }
.co-was { font-size: 12px; color: var(--muted); }
.co-big { font-size: 24px; line-height: 1.15; color: var(--gold); white-space: nowrap; }
.co-pr small { font-size: 12px; color: var(--muted); }
.co-acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.co-acts button { flex: 1; min-height: 0; height: 34px; padding: 0 8px; border-radius: 99px; border: 1px solid var(--gold); background: transparent; color: var(--gold); font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.co-acts button.on { background: var(--gold); color: #fff; }
.co-acts button[data-edit] { flex: none; width: 40px; padding: 0; display: grid; place-items: center; }
.co-acts button[data-edit] svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.co-acts .co-in { flex-basis: 100%; text-align: end; font-size: 17px; }
.co-row.co-d:not(.on) .co-acts { opacity: .6; }
@media (hover: hover) { .co-acts button:not(.on):hover { background: var(--text); border-color: var(--text); color: var(--bg); } }

/* « Enregistrer un paiement » sur téléphone : rien ne dépasse, montant et date l'un sous l'autre (owner, 2026-11-18). */
.ea-dialog .two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
.ea-dialog .mf-pick { margin: 14px 0 0; min-width: 0; }
.ea-dialog .mf-pick > span:first-child { display: block; margin-bottom: 5px; font-size: 14px; font-weight: 400; color: var(--muted); }
.ea-dialog .mf-datebox, .ea-dialog .mf-datetxt { min-width: 0; }
.ea-dialog input { max-width: 100%; }
@media (max-width: 520px) { .ea-dialog .two { grid-template-columns: minmax(0, 1fr); gap: 0; } }

/* Bouton « Réserver un nouveau transfert » : marges de 16 px sur téléphone comme la recherche dessous (owner, 2026-11-18). */
.cbook { margin: 8px 16px 4px; }
@media (min-width: 1000px) { .cbook { margin: 4px 0 8px; } }

/* Liste des transferts « design D » (owner, 2026-11-18) : bande de couleur à gauche (vert attribué, doré proposé, orange à attribuer, rouge annulé). */
.tcard.tk { border-left: 5px solid var(--strip, var(--line)); padding: 12px 14px 12px 12px; }
.tk-main { display: flex; align-items: flex-start; gap: 10px; }
.tk-l { flex: 1; min-width: 0; }
.tk-when { display: block; font-size: 15px; }
.tk-route { font-size: 14px; margin-top: 2px; }
.tk-meta { color: var(--muted); font-size: 13px; margin-top: 1px; }
.tk-r { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: end; }
.tk-price { font-size: 18px; white-space: nowrap; }
.tk-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.tk-acts .btn { min-height: 0; height: 32px; padding: 0 14px; font-size: 13px; width: auto; }
.tk-acts .tk-me { margin-inline-start: auto; }
.pill.tk-todo { color: #b26a00; border-color: #e0a33a; background: rgba(224, 163, 58, .14); }
html:not([data-theme="light"]) .pill.tk-todo { color: #f0b85a; }

/* Cartes de transfert : bande d'état fine et droite à gauche, sans arrondi (owner, 2026-11-18). */
.tcard.tk { position: relative; border-left: 1px solid var(--line); padding-left: 16px; }
.tcard.tk::before { content: ""; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 4px; background: var(--strip, var(--line)); border-radius: 0; }

/* Cartes de transfert : couleur d'état en dégradé depuis la gauche, qui s'efface vers l'intérieur, sur toute la hauteur (owner, 2026-11-18). */
.tcard.tk::before { content: none; }
.tcard.tk { background: linear-gradient(90deg, color-mix(in srgb, var(--strip, var(--line)) 30%, transparent) 0%, color-mix(in srgb, var(--strip, var(--line)) 8%, transparent) 35%, transparent 70%), var(--panel); }

/* « Proposer à un chauffeur » puis « Moi », poussés à droite (owner, 2026-11-18). */
.tk-acts .tk-me { margin-inline-start: 0; }
.tk-acts .tk-offer { margin-inline-start: auto; }

/* Liste des transferts : chauffeur attribué cliquable pour en choisir un autre (owner, 2026-11-18). */
.tk-drv { border: 0; background: none; padding: 4px 8px 4px 0; margin-top: 6px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; text-align: start; border-radius: 99px; transition: background-color .3s, color .3s; }
.tk-drv > svg:last-child { width: 14px; height: 14px; opacity: .7; }
@media (hover: hover) { .tk-drv:hover { background: var(--text); color: var(--bg); padding-inline-start: 8px; } }
.tk-dialog .tk-list { display: flex; flex-direction: column; gap: 6px; max-height: 55vh; overflow-y: auto; margin: 10px 0; }
.tk-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); text-align: start; cursor: pointer; font: inherit; transition: background-color .3s, color .3s, border-color .3s; }
.tk-row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tk-row small { color: var(--muted); font-size: 12.5px; }
.tk-row em { font-style: normal; font-size: 12px; color: var(--gold); }
.tk-row.on { border-color: var(--gold); }
@media (hover: hover) { .tk-row:not(.on):hover { background: var(--text); color: var(--bg); border-color: var(--text); } .tk-row:not(.on):hover small { color: inherit; opacity: .7; } }

/* Planning : cartes avec la couleur du trajet en dégradé depuis le bord, comme la liste des transferts (owner, 2026-11-18). */
.plan-item { border-left: 1px solid var(--line); background: linear-gradient(90deg, color-mix(in srgb, var(--c, var(--line)) 30%, transparent) 0%, color-mix(in srgb, var(--c, var(--line)) 8%, transparent) 35%, transparent 70%), var(--panel); }
[dir="rtl"] .plan-item { border-left: 1px solid var(--line); background: linear-gradient(270deg, color-mix(in srgb, var(--c, var(--line)) 30%, transparent) 0%, color-mix(in srgb, var(--c, var(--line)) 8%, transparent) 35%, transparent 70%), var(--panel); }
[dir="rtl"] .tcard.tk { background: linear-gradient(270deg, color-mix(in srgb, var(--strip, var(--line)) 30%, transparent) 0%, color-mix(in srgb, var(--strip, var(--line)) 8%, transparent) 35%, transparent 70%), var(--panel); }   /* arabe : depuis la droite */

/* Fiche transfert sur téléphone (owner, 2026-11-18) : véhicule en grand au-dessus, nom puis prix dessous ; sièges enfant : photo à gauche, texte et prix l'un sous l'autre. */
@media (max-width: 640px) {
  .tp-sec .tp-item.tp-seatrow, .tp-sec .tp-item.tp-veh { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 12px; row-gap: 4px; }
  .tp-sec .tp-item.tp-seatrow > .tp-amt { grid-column: 2; justify-self: start; font-size: 16px; }
  .tp-sec .tp-item.tp-veh { grid-template-columns: minmax(0, 1fr) auto; }
  .tp-veh .tp-car { grid-column: 1 / -1; justify-self: center; width: 100%; max-width: 300px; max-height: 150px; margin-bottom: 6px; }
  .tp-veh .tp-car.none { width: 64px; justify-self: start; }
  .tp-veh .grow { grid-column: 1; }
  .tp-sec .tp-item.tp-veh > .tp-amt { grid-column: 2; grid-row: 2; justify-self: end; align-self: start; }
}

/* Véhicule sur téléphone comme les sièges enfant : petite photo à gauche, texte puis prix à droite (owner, 2026-11-18). */
@media (max-width: 640px) {
  .tp-sec .tp-item.tp-veh { grid-template-columns: auto minmax(0, 1fr); }
  .tp-veh .tp-car { grid-column: 1; grid-row: 1 / span 2; justify-self: start; width: 96px; max-width: none; max-height: 72px; margin: 0; }
  .tp-veh .grow { grid-column: 2; grid-row: 1; }
  .tp-sec .tp-item.tp-veh > .tp-amt { grid-column: 2; grid-row: 2; justify-self: start; align-self: start; font-size: 16px; }
}

/* Sièges enfant sur téléphone : même cadre que la photo du véhicule (96 × 72), textes alignés (owner, 2026-11-18). */
@media (max-width: 640px) {
  .tp-seatrow .tp-plate { width: 96px; height: 72px; }
  .tp-seatrow .tp-plate img { width: 84px; height: 62px; }
  .tp-seatrow .tp-plate { grid-row: 1 / span 2; align-self: start; }
  .tp-veh .tp-car { align-self: start; height: 72px; object-fit: contain; }
}

/* Recherche d'entreprise (inscription chauffeur, Mon dossier VTC › Entreprise), owner 2026-11-18. */
.co-look { position: relative; grid-column: 1 / -1; border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin: 0 0 14px; background: var(--panel); }
.co-head { display: flex; align-items: center; gap: 8px; }
.co-head svg { width: 20px; height: 20px; fill: none; stroke: var(--gold); stroke-width: 2; }
.co-hint { margin: 6px 0 10px; color: var(--muted); font-size: 13.5px; }
.co-box { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 6px 0 12px; background: var(--bg); }
.co-box:focus-within { border-color: var(--gold); }
.co-box > svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.6; }
.co-box input.co-q { flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 0; font-size: 16px; color: var(--text); outline: none; box-shadow: none; }
.co-box input.co-q::-webkit-search-cancel-button { display: none; }
.co-x { flex: none; border: 0; background: transparent; color: var(--muted); padding: 6px; display: grid; place-items: center; cursor: pointer; }
.co-x svg { width: 18px; height: 18px; }
.co-x[hidden], .co-res[hidden] { display: none; }
.co-res { margin-top: 6px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden auto; max-height: 320px; background: var(--bg); }
.co-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--text); padding: 11px 12px; cursor: pointer; font: inherit; }
.co-item:first-child { border-top: 0; }
.co-item > svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.6; }
.co-item > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.co-item b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-item small { color: var(--muted); font-size: 13px; white-space: pre; letter-spacing: .02em; }
.co-item.closed { opacity: .5; cursor: default; }
.co-msg { display: flex; align-items: center; gap: 8px; padding: 12px; color: var(--muted); font-size: 14px; }
@media (hover: hover) { .co-item:not(.closed):hover { background: var(--panel); } .co-x:hover { color: var(--text); } }

/* Entreprise : raison sociale, SIRET (et ville à l'inscription) en lecture seule, remplis seulement par la recherche (owner, 2026-11-18). */
input.co-ro, input.co-ro:focus { background: color-mix(in srgb, var(--muted) 16%, transparent); color: var(--muted); border-color: transparent; cursor: default; box-shadow: none; outline: none; }
input.co-ro::placeholder { color: transparent; }
.co-look.co-bad { border-color: var(--red, #d64545); }
.co-look.co-bad .co-box { border-color: var(--red, #d64545); }

/* Messagerie : cartes de course avec le dégradé d'état depuis le bord, comme la liste des transferts (owner, 2026-11-18). */
.msg-b.has-offer:has(.co-top .pill.ok) { --strip: var(--green); }
.msg-b.has-offer:has(.co-top .pill.gold) { --strip: var(--gold); }
.msg-b.has-offer:has(.co-top .pill.bad) { --strip: var(--red); }
.msg-b.has-offer.them { background: linear-gradient(90deg, color-mix(in srgb, var(--strip, var(--line)) 30%, transparent) 0%, color-mix(in srgb, var(--strip, var(--line)) 8%, transparent) 35%, transparent 70%), var(--panel); }
.msg-b.has-offer.me { background: linear-gradient(90deg, color-mix(in srgb, var(--strip, transparent) 55%, transparent) 0%, color-mix(in srgb, var(--strip, transparent) 15%, transparent) 35%, transparent 70%), var(--gold); }
.msg-b.has-offer.me:has(.co-top .pill.gold) { --strip: transparent; }   /* en attente sur la bulle dorée : sans halo */
[dir="rtl"] .msg-b.has-offer.them { background: linear-gradient(270deg, color-mix(in srgb, var(--strip, var(--line)) 30%, transparent) 0%, color-mix(in srgb, var(--strip, var(--line)) 8%, transparent) 35%, transparent 70%), var(--panel); }
[dir="rtl"] .msg-b.has-offer.me { background: linear-gradient(270deg, color-mix(in srgb, var(--strip, transparent) 55%, transparent) 0%, color-mix(in srgb, var(--strip, transparent) 15%, transparent) 35%, transparent 70%), var(--gold); }

/* Cartes de course (messagerie) sans fond doré : couleur d'état → transparent, sur fond de carte, des deux côtés (owner, 2026-11-18). */
.msg-b.has-offer.me, [dir="rtl"] .msg-b.has-offer.me { color: var(--text); border: 1px solid var(--line); background: linear-gradient(90deg, color-mix(in srgb, var(--strip, var(--line)) 30%, transparent) 0%, color-mix(in srgb, var(--strip, var(--line)) 8%, transparent) 35%, transparent 70%), var(--panel); }
[dir="rtl"] .msg-b.has-offer.me { background: linear-gradient(270deg, color-mix(in srgb, var(--strip, var(--line)) 30%, transparent) 0%, color-mix(in srgb, var(--strip, var(--line)) 8%, transparent) 35%, transparent 70%), var(--panel); }
.msg-b.has-offer.me:has(.co-top .pill.gold) { --strip: var(--gold); }
.msg-b.has-offer.me .co-top .pill.gold { background: var(--gold); color: #fff; }
.msg-b.has-offer.me .msg-meta, .msg-b.has-offer.me .msg-tick { color: var(--muted); }
.msg-b.has-offer.me .msg-tick.read { color: var(--gold); }

/* Détails de l'entreprise sous la recherche (lecture seule, annuaire officiel), owner 2026-11-18. */
.co-details { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; margin-bottom: 4px; }
.co-details .co-wide { grid-column: 1 / -1; }
.co-details input.co-ro { text-overflow: ellipsis; }
@media (max-width: 560px) { .co-details { grid-template-columns: 1fr; } }

/* Carte de course (messagerie) comme la liste des transferts (owner, 2026-11-18). */
.co-card.tkc { gap: 0; }
.co-card.tkc .tk-r { gap: 0; }
.co-paylbl { font-size: 11px; color: var(--muted); }
.co-card.tkc .co-stat { justify-content: flex-start; margin-top: 8px; }
.co-card.tkc .co-note { margin-top: 6px; }
.co-card.tkc .co-btns { margin-top: 10px; }

/* Messagerie : corbeille avant l'heure, pas après les coches (owner, 2026-11-18). */
.msg-meta .msg-del { order: -1; margin-inline-start: 0; margin-inline-end: 2px; }

/* Messagerie : corbeille · heure · coches en bas à droite, sur la dernière ligne du texte (place réservée à la fin du texte), comme WhatsApp (owner, 2026-11-18). */
.msg-b:not(.has-offer) { display: block; position: relative; padding: 7px 10px 7px 12px; --metaw: 44px; }
.msg-b.me:not(.has-offer) { --metaw: 64px; }
.msg-b:not(.has-offer):has(.msg-del) { --metaw: 92px; }
.msg-b:not(.has-offer) > .msg-ref { display: inline; margin: 0 6px 0 0; }
.msg-b:not(.has-offer) > div:not(.msg-meta) { display: inline; }
.msg-b:not(.has-offer) > div:not(.msg-meta)::after { content: ""; display: inline-block; width: var(--metaw); height: 1px; }
.msg-b:not(.has-offer) > .msg-meta { position: absolute; right: 10px; bottom: 6px; margin: 0; padding: 0; float: none; }
[dir="rtl"] .msg-b:not(.has-offer) > .msg-meta { right: auto; left: 10px; }
/* Carte de course : sur la ligne du bas de la carte (message ou état), sauf quand les boutons Accepter / Refuser sont là. */
.msg-b.has-offer { position: relative; }
.msg-b.has-offer:not(:has(.co-btns)) > .msg-meta { position: absolute; right: 12px; bottom: 10px; margin: 0; }
[dir="rtl"] .msg-b.has-offer:not(:has(.co-btns)) > .msg-meta { right: auto; left: 12px; }
.msg-b.has-offer:not(:has(.co-btns)) .co-card > :last-child { padding-inline-end: 96px; }
/* Messagerie : étiquette « Client » sur les conversations des clients (owner, 2026-11-18). */
.pill.ch-client { font-size: 11px; padding: 1px 8px; margin-inline-start: 6px; vertical-align: 2px; color: var(--gold); border-color: var(--gold); font-weight: 600; }

/* Inscription chauffeur : champs obligatoires marqués d'un astérisque (owner, 2026-11-18) ; détails de l'entreprise cachés tant qu'elle n'est pas choisie. */
#preg .f:has(> input[required]) > span::after, #preg .co-head b::after, .co-req > span::after { content: ' *'; color: #d64545; font-weight: 700; }
.reg-req { margin: 0 0 10px; }
.co-details[hidden] { display: none; }

/* Propositions reçues par le chauffeur (onglet Courses) : même carte que la messagerie et la liste des transferts (owner, 2026-11-18). */
.tcard.tk.offer .co-stat { display: flex; justify-content: flex-start; margin-top: 8px; }
.tcard.tk.offer .co-paylbl { color: var(--muted); font-size: 12px; }
.tcard.tk.offer .offer-board, .tcard.tk.offer .dp-note { margin-top: 8px; }
.tcard.tk.offer .btns { margin-top: 10px; }

/* ==================== Messagerie client (ridechat.js, owner 2026-11-18) ====================
   « ChauffApp Client Support » toujours en haut, puis « Discuter avec votre chauffeur » (une conversation par course).
   Bulles : classes .msg-b de la messagerie existante. Chauffeur / admin : même fenêtre dans une boîte de dialogue. */
.rc-page { padding-bottom: 40px; }
.rc-page > h1 { margin: 6px 16px 14px; }
.rc-card { margin: 0 16px 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); overflow: hidden; }
.rc-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border: 0; background: none; color: var(--text); font: inherit; text-align: start; }
.rc-head .grow { flex: 1; min-width: 0; }
.rc-head b { display: block; font-size: 16px; font-weight: 650; }
.rc-head small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; }
.rc-head small.rc-last { white-space: nowrap; color: var(--text); opacity: .8; }
.rc-logo { width: 40px; height: 40px; border-radius: 50%; flex: none; background: #000; object-fit: cover; }
.rc-support .rc-head { border-bottom: 1px solid var(--line); }
.rc-support .rc-head b { color: var(--gold); }
.rc-h2 { display: flex; align-items: center; gap: 8px; margin: 22px 16px 10px; font-size: 13px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.rc-h2 svg, .rc-open svg, .rc-chev svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rc-none { margin: 0 16px; color: var(--muted); font-size: 14px; }
.rc-toggle { cursor: pointer; }
.rc-chev { flex: none; color: var(--muted); transition: transform .3s; }
.rc-ride.open .rc-chev { transform: rotate(180deg); }
.rc-ride.open .rc-toggle { border-bottom: 1px solid var(--line); }
.rc-badge { flex: none; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.rc-win { display: flex; flex-direction: column; background: var(--bg); }
.rc-msgs { height: min(46vh, 380px); overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.rc-empty { margin: auto; max-width: 360px; text-align: center; color: var(--muted); font-size: 14px; }
.rc-tick { letter-spacing: -2px; }
.rc-tick.read { color: #8fd3ff; }
.rc-note { margin: 0; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.rc-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--panel); }
.rc-form textarea { flex: 1; min-height: 44px; max-height: 140px; resize: none; overflow-y: hidden; border-radius: 22px; padding: 11px 16px; }
.rc-send { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--gold); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background-color .3s, color .3s; }
.rc-send svg { width: 20px; height: 20px; fill: currentColor; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }   /* flèche blanche (owner, 2026-11-18) */
.rc-send:disabled { opacity: .55; }
.rc-dialog { padding: 16px 0 0; overflow: hidden; display: flex; flex-direction: column; }
.rc-dialog h2 { padding: 0 16px 12px; border-bottom: 1px solid var(--line); }
.rc-dialog h2 small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.rc-dialog .rc-msgs { height: min(56vh, 460px); }
@media (min-width: 1000px) {
  .rc-page { max-width: 860px; }
  .rc-page > h1, .rc-card, .rc-h2, .rc-none { margin-inline: 0; }
  .rc-msgs { height: 360px; }
}
@media (hover: hover) {
  .rc-send:not(:disabled):hover { background: var(--text); color: var(--bg); }
  .rc-toggle:hover { background: color-mix(in srgb, var(--text) 5%, transparent); }
}

/* Recherche d'entreprise : adresse du siège sous le SIREN dans la liste (owner, 2026-11-18). */
.co-item small.co-addr { white-space: normal; letter-spacing: 0; line-height: 1.3; }
.co-look, .co-details, .co-details .f { min-width: 0; }   /* noms longs dans la liste : rien ne dépasse sur téléphone */

/* Fiche transfert du client : grande carte sur toute la largeur, adresses dessous (owner, 2026-11-18). */
.tp .tp-route-big { flex-wrap: wrap; }
.tp .tp-route-big .tp-map { flex: 1 1 100%; width: 100%; height: 240px; }
@media (max-width: 640px) { .tp .tp-route-big .tp-map { width: 100%; height: 200px; } }
.tp .tp-route-big .tp-stops { flex: 1 1 100%; }

/* Inscription chauffeur : « Créer mon compte » sous les cadres, pas dedans (owner, 2026-11-18). */
.reg-submit { margin-top: 16px; }
.reg-submit .msg:empty { display: none; }
#rs2 .co-look { margin-bottom: 0; }
#rs2 .co-details:not([hidden]) { margin-top: 14px; }

/* Carte de la fiche transfert : le calque SVG de Leaflet (trajet, repères) garde sa taille, pas celle des icônes (.tp svg 18 px) (owner, 2026-11-18). */
.tp .leaflet-container svg, .tp-bar .leaflet-container svg { width: auto; height: auto; stroke: none; stroke-width: 0; }

/* Inscription chauffeur : téléphone = indicatif pays (liste, France par défaut) + numéro (owner, 2026-11-18). */
.ph-box { display: flex; gap: 8px; min-width: 0; }
.ph-box .ph-cc { flex: none; width: auto; min-width: 0; padding-inline: 10px 6px; }
.ph-box input { flex: 1; min-width: 0; }
.f > .ph-box { display: flex; margin: 0; }   /* la règle « .f span » mettait la boîte en bloc */
.f > .ph-box .ph-cc { width: auto; }
.f > .ph-box input { width: auto; }
.co-req > .ph-box::after { content: none; }

/* Messagerie client : date de la course à gauche de chaque conversation avec le chauffeur (owner, 2026-11-18). */
.rc-date { flex: none; width: 52px; padding: 5px 0 6px; border-radius: 12px; background: color-mix(in srgb, var(--gold) 14%, transparent); color: var(--gold); text-align: center; line-height: 1.05; }
.rc-date b { display: block; font-size: 21px; font-weight: 700; margin: 1px 0; }
.rc-head .rc-date small { display: block; margin: 0; color: var(--gold); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; overflow: visible; }
.rc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }   /* date lue par les lecteurs d'écran, vue dans la case */

/* Messagerie client : bouton WhatsApp « Urgent ? » dans l'en-tête du Service client (vert WhatsApp, reste vert au survol) */
.rc-wa { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 99px; background: #25D366; color: #fff; font-size: 14px; font-weight: 650; text-decoration: none; white-space: nowrap; transition: background-color .3s; }
.rc-wa svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
@media (max-width: 420px) { .rc-wa-u { display: none; } }
@media (hover: hover) { .rc-wa:hover { background: #000; color: #fff; } }   /* WhatsApp : fond noir au survol (owner, 2026-11-18) */

/* Téléphone : indicatif pays en liste moderne avec drapeaux et recherche, comme la recherche d'entreprise (owner, 2026-11-18). */
.ph-box { position: relative; align-items: stretch; }
.ph-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text); font: inherit; cursor: pointer; transition: border-color .3s, background-color .3s; }
.ph-box.open .ph-btn, .ph-btn:focus-visible { border-color: var(--gold); outline: none; }
.ph-flag { width: 22px; height: 16px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); flex: none; }
.ph-code { font-weight: 600; font-variant-numeric: tabular-nums; }
.ph-chev { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; transition: transform .2s; }
.ph-box.open .ph-chev { transform: rotate(180deg); }
.ph-pop { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; max-width: 360px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); box-shadow: 0 12px 32px rgba(0, 0, 0, .28); overflow: hidden; }
.ph-pop[hidden] { display: none; }
.ph-search { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.ph-search svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; }
.f > .ph-box .ph-pop input.ph-q { flex: 1; width: auto; min-width: 0; border: 0; background: transparent; padding: 4px 0; font-size: 16px; color: var(--text); outline: none; box-shadow: none; }
.ph-q::-webkit-search-cancel-button { display: none; }
.ph-list { max-height: 280px; overflow-y: auto; overscroll-behavior: contain; }
.ph-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--text); font: inherit; text-align: start; cursor: pointer; transition: background-color .3s, color .3s; }
.ph-item:first-child { border-top: 0; }
.ph-name { flex: 1; min-width: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-dial { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 14px; }
.ph-item.on { background: color-mix(in srgb, var(--gold) 16%, transparent); }
.ph-item.on .ph-name { color: var(--gold); font-weight: 700; }
.ph-empty { padding: 14px; color: var(--muted); font-size: 14px; }
@media (hover: hover) { .ph-item:hover { background: var(--text); color: var(--bg); } .ph-item:hover .ph-dial, .ph-item:hover .ph-name { color: var(--bg); } .ph-btn:hover { border-color: var(--gold); } }

/* Messagerie client : fenêtres en accordéon (ChauffApp ↔ chauffeur) et « Partager ma position » (owner, 2026-11-18) */
.rc-sup-head { padding: 0 16px 0 0; cursor: pointer; }
.rc-sup-toggle { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; padding: 14px 0 14px 16px; border: 0; background: none; color: inherit; font: inherit; text-align: start; cursor: pointer; }
.rc-support:not(.open) .rc-head { border-bottom: 0; }
.rc-support.open .rc-chev { transform: rotate(180deg); }
.rc-share { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 12px; }
.rc-share small { color: var(--muted); font-size: 12.5px; }
.rc-loc-btn { display: inline-flex; align-items: center; gap: 8px; border-color: var(--gold); color: var(--gold); font-weight: 600; }
.rc-loc-btn svg, .rc-locb svg, .rc-loc svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.rc-locb { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--gold); display: grid; place-items: center; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.rc-locb[hidden] { display: none; }
.msg-b.is-loc { min-width: 220px; }
.rc-loc { display: flex; align-items: center; gap: 10px; }
.rc-loc svg { width: 26px; height: 26px; }
.rc-loc b { display: block; font-weight: 650; }
.rc-loc small { display: block; font-size: 12px; opacity: .8; }
.rc-loc-go { display: inline-block; margin-top: 8px; padding: 6px 14px; border-radius: 99px; font-size: 13.5px; font-weight: 650; text-decoration: none; transition: background-color .3s, color .3s; }
.msg-b.me .rc-loc-go { background: rgba(255, 255, 255, .22); color: #fff; }
.msg-b.them .rc-loc-go { background: var(--gold); color: #fff; }
@media (hover: hover) {
  .rc-locb:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
  .rc-loc-go:hover, .msg-b.me .rc-loc-go:hover { background: var(--text); color: var(--bg); }
  .rc-sup-head:hover { background: color-mix(in srgb, var(--text) 5%, transparent); }
}

/* Utilisateurs : bouton « + » seul, rond (owner, 2026-11-18). */
.us-head .us-add { width: 36px; height: 36px; min-height: 0; padding: 0; border-radius: 50%; display: inline-grid; place-items: center; font-size: 22px; font-weight: 500; line-height: 1; flex: none; }

/* Fiche transfert du chauffeur : position partagée par le client (carte et repère), owner 2026-11-18. */
.cli-loc { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 0 0 12px; border-radius: 14px; border: 1px solid color-mix(in srgb, #2e9d5b 45%, var(--line)); background: color-mix(in srgb, #2e9d5b 12%, var(--panel)); }
.cli-loc[hidden] { display: none; }
.cli-pin { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #2e9d5b; }
.cli-pin svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; }
.cli-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cli-txt small { color: var(--muted); font-size: 12.5px; }
.cli-loc .cli-go { flex: none; width: auto; }
.cli-mark span { display: grid; place-items: center; width: 30px; height: 30px; }
.cli-mark svg { width: 30px; height: 30px; fill: #2e9d5b; stroke: #fff; stroke-width: 1.6; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.cli-mark svg circle { fill: #fff; stroke: none; }
.cli-mark.big span, .cli-mark.big svg { width: 38px; height: 38px; }
.cli-mark.big span, .cli-mark.big svg { width: 38px; height: 38px; }

/* Messages du client : course à venir sans chauffeur encore, avec le rappel « attribué 12 à 24 h avant » (owner, 2026-11-18). */
.rc-ride-pend { border-style: dashed; }
.rc-pend-av { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--gold) 60%, transparent); }
.rc-pend-av .pulse { width: 10px; height: 10px; }
.rc-ride-pend .rc-head b { font-size: 15px; }
.rc-head small.rc-pend-hint { color: var(--gold); }

/* Messages du client : en-tête « ChauffApp Client Support » doré, texte blanc, pour le distinguer des conversations avec les
   chauffeurs (owner, 2026-11-18). Survol comme vipazur.fr : passe en sombre, texte clair. Le bouton WhatsApp reste vert. */
.rc-support .rc-sup-head { background: var(--gold); color: #fff; border-bottom-color: transparent; transition: background-color .3s, color .3s; }
.rc-support .rc-sup-head b, .rc-support .rc-sup-head .rc-chev { color: inherit; }
@media (hover: hover) { .rc-support .rc-sup-head:hover { background: var(--text); color: var(--bg); } }

/* Messages du client, maquette « 2 · Next ride first » choisie par l'owner (2026-11-18). */
.rc-page .rc-h2 { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 600; margin: 22px 16px 8px; }
.rc-hero { border: 1.5px solid #1faa6b; }
.rc-hero-top { display: flex; align-items: center; gap: 12px; padding: 14px 16px 10px; }
.rc-hero-top .drv-ava { width: 40px; height: 40px; font-size: 14px; }
.rc-hero-top .grow { flex: 1; min-width: 0; }
.rc-hero-top b { display: block; font-size: 16px; font-weight: 650; }
.rc-hero-top small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-live { display: inline-flex; align-items: center; gap: 6px; color: #1faa6b; }
.rc-hero-acts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 14px 68px; }
.rc-pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--gold); border-radius: 99px; background: transparent; color: var(--text); font: inherit; font-size: 14px; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.rc-pill[aria-expanded="true"] { background: var(--gold); color: #fff; }
.rc-hero .rc-body { border-top: 1px solid var(--line); }
@media (hover: hover) { .rc-pill:hover, .rc-pill[aria-expanded="true"]:hover { background: var(--text); border-color: var(--text); color: var(--bg); } }
@media (max-width: 520px) { .rc-hero-acts { padding-inline-start: 16px; } }
#rcNow:empty { display: none; }
.rc-support .rc-sup-toggle { padding-block: 12px; }
.rc-support .rc-sup-head small { color: inherit; margin-top: 1px; }
.rc-support.open .rc-sup-head { border-bottom: 0; }
.rc-pend-av { color: var(--gold); }
.rc-pend-av svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rc-ride-pend .rc-head small { white-space: nowrap; }
.rc-ride-pend .rc-head small { white-space: nowrap; }
/* Transferts sans chauffeur connu regroupés sur une ligne repliable (owner, 2026-11-18). */
.rc-pend-group { border-style: dashed; }
.rc-pend-toggle { cursor: pointer; }
.rc-pend-group.open .rc-chev { transform: rotate(180deg); }
.rc-pend-group.open .rc-pend-toggle { border-bottom: 1px dashed var(--line); }
.rc-pend-row { padding-block: 10px; }
.rc-pend-row + .rc-pend-row { border-top: 1px solid var(--line); }
.rc-pend-row small { white-space: nowrap; }
@media (hover: hover) { .rc-pend-toggle:hover { background: color-mix(in srgb, var(--text) 5%, transparent); } }

/* Fiche transfert du client : bulle « Besoin d'aide ? » en bas à droite, ouvre le Service client ChauffApp (owner, 2026-11-18, design 4). */
.rc-fab { position: fixed; z-index: 700; right: 16px; bottom: calc(var(--tabbar-h, 64px) + 16px); display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; color: var(--text); font: inherit; cursor: pointer; pointer-events: auto; }
.rc-fab-l { padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); font-size: 14px; font-weight: 600; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); transition: background-color .3s, color .3s, border-color .3s; }
.rc-fab-b { width: 56px; height: 56px; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .28); transition: background-color .3s, color .3s; }
.rc-fab-b svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 1000px) { .rc-fab { right: 28px; bottom: 28px; } }
@media (hover: hover) { .rc-fab:hover .rc-fab-b { background: var(--text); color: var(--bg); } .rc-fab:hover .rc-fab-l { background: var(--text); color: var(--bg); border-color: var(--text); } }
.tp:has(.rc-fab), .wrap:has(.rc-fab) { padding-bottom: 96px; }
.rc-sup-dialog { padding-top: 0; }
.rc-sup-dialog h2 { display: flex; align-items: center; gap: 10px; margin: 0; padding: 14px 12px 14px 16px; background: var(--gold); color: #fff; border-bottom: 0; }
.rc-sup-dialog h2 > span { flex: 1; min-width: 0; }
.rc-sup-dialog h2 small { color: inherit; opacity: 1; }
.rc-sup-dialog h2 .icon-btn { margin-left: 0; background: transparent; border-color: rgba(255, 255, 255, .6); color: #fff; }
.rc-sup-dialog .rc-wa .rc-wa-u { display: none; }
/* Fond doré : texte et symboles toujours blancs (owner, 2026-11-18) — croix de fermeture du Service client ChauffApp. */
.rc-sup-dialog h2 .icon-btn svg { stroke: #fff; }
@media (hover: hover) { .rc-sup-dialog h2 .icon-btn:hover { background: var(--text); border-color: var(--text); } .rc-sup-dialog h2 .icon-btn:hover svg { stroke: var(--bg); } }

/* Service client ChauffApp de la fiche transfert : fenêtre dans le coin, au-dessus de la bulle, sans voile (owner, 2026-11-18). */
.rc-sup-panel { position: fixed; z-index: 750; right: 16px; bottom: calc(var(--tabbar-h, 64px) + 84px); width: min(380px, calc(100vw - 32px)); height: min(520px, calc(100dvh - var(--tabbar-h, 64px) - 150px)); display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 14px 44px rgba(0, 0, 0, .3); animation: rc-pop .2s ease-out; transform-origin: bottom right; }
@keyframes rc-pop { from { opacity: 0; transform: translateY(10px) scale(.97); } }
@media (prefers-reduced-motion: reduce) { .rc-sup-panel { animation: none; } }
@media (min-width: 1000px) { .rc-sup-panel { right: 28px; bottom: 100px; height: min(560px, calc(100dvh - 140px)); } }
.rc-sup-ph { flex: none; display: flex; align-items: center; gap: 8px; padding: 12px 12px 12px 16px; background: var(--gold); color: #fff; }
.rc-sup-ph > span { flex: 1; min-width: 0; font-size: 16px; font-weight: 650; }
.rc-sup-ph small { display: block; font-size: 12.5px; font-weight: 400; color: inherit; }
.rc-sup-ph .rc-wa { padding: 7px 12px; }
.rc-sup-ph .rc-wa .rc-wa-u { display: none; }
.rc-sup-ph .icon-btn { width: 36px; height: 36px; background: transparent; border-color: rgba(255, 255, 255, .6); }
.rc-sup-ph .icon-btn svg { stroke: #fff; }
@media (hover: hover) { .rc-sup-ph .icon-btn:hover { background: var(--text); border-color: var(--text); } .rc-sup-ph .icon-btn:hover svg { stroke: var(--bg); } }
.rc-sup-pw { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.rc-sup-pw .rc-win { flex: 1; min-height: 0; }
.rc-sup-pw .rc-msgs { flex: 1; height: auto; min-height: 0; }
.rc-fab-chat, .rc-fab-x { display: grid; place-items: center; }
.rc-fab-x, .rc-fab.open .rc-fab-chat, .rc-fab.open .rc-fab-l { display: none; }
.rc-fab.open .rc-fab-x { display: grid; }
.rc-fab-x svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.rc-fab, .rc-sup-panel { z-index: 1100; }   /* au-dessus des commandes de la carte (Leaflet : 1000) */
body:has(.overlay) .rc-fab, body:has(.overlay) .rc-sup-panel { display: none; }   /* une autre fenêtre (grande carte…) passe devant */
@media (max-width: 420px) { .rc-sup-ph .rc-wa > span { display: none; } .rc-sup-ph .rc-wa { padding: 8px; } }

/* Réponses rapides (super admin, chauffeurs) : éclair à gauche de la case, menu au-dessus, rubrique des Réglages (owner, 2026-11-18). */
.qr-btn { flex: none; width: 42px; height: 42px; align-self: flex-end; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--gold); display: grid; place-items: center; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.qr-btn[hidden] { display: none; }
.qr-btn svg { width: 20px; height: 20px; fill: currentColor; stroke: currentColor; stroke-width: 1; stroke-linejoin: round; }
.qr-btn[aria-expanded="true"] { background: var(--gold); border-color: var(--gold); color: #fff; }
.rc-form .qr-btn { width: 44px; height: 44px; }
.qr-host { position: relative; }
.qr-menu { position: absolute; left: 8px; right: 8px; bottom: calc(100% + 6px); z-index: 60; max-height: min(320px, 50vh); overflow-y: auto; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.qr-item { display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px; background: none; color: var(--text); font: inherit; text-align: start; cursor: pointer; }
.qr-item b { display: block; font-size: 14px; font-weight: 650; }
.qr-item small { display: block; margin-top: 1px; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qr-item.on { background: var(--gold-soft); }
.qr-none { margin: 8px 10px; color: var(--muted); font-size: 13px; }
.qr-edit { display: flex; align-items: center; gap: 8px; margin-top: 4px; padding: 9px 10px 4px; border-top: 1px solid var(--line); color: var(--gold); font-size: 13px; font-weight: 600; text-decoration: none; }
.qr-edit svg, .qr-add svg { width: 16px; height: 16px; fill: currentColor; stroke: none; flex: none; }
.qr-list { display: flex; flex-direction: column; }
.qr-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.qr-row .qr-t { grid-column: 1; font-weight: 600; }
.qr-row .qr-b { grid-column: 1; resize: vertical; min-height: 60px; }
.qr-row .qr-del { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
.qr-row .saved-tick { grid-column: 1; }
@media (hover: hover) {
  .qr-btn:hover, .qr-btn[aria-expanded="true"]:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
  .qr-item:hover { background: color-mix(in srgb, var(--text) 7%, transparent); }
  .qr-item.on:hover { background: var(--gold-soft); }
  .qr-edit:hover { text-decoration: underline; }
  .qr-row .qr-del:hover { background: var(--red); border-color: var(--red); }
  .qr-row .qr-del:hover svg { stroke: #fff; }
}

/* Accueil du chauffeur (home.js), owner 2026-11-19 : chiffres du jour, prochaine course avec compte à rebours, courses suivantes. */
.hm { padding: 4px 16px 24px; display: flex; flex-direction: column; gap: 12px; max-width: 620px; width: 100%; margin: 0 auto; }
.hm-hi small { color: var(--muted); font-size: 13px; display: block; }
.hm-hi h1 { margin: 2px 0 0; font-size: 24px; font-weight: 600; }
.hm-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hm-tile { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px 6px; text-align: center; min-width: 0; }
.hm-tile b { display: block; font-size: 19px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-tile b.gold { color: var(--gold); }
.hm-tile small { color: var(--muted); font-size: 12px; }
.hm-offers { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line)); color: var(--text); text-decoration: none; transition: background .3s, color .3s; }
.hm-offers b { flex: 1; font-weight: 600; font-size: 14.5px; }
.hm-offers-dot { min-width: 26px; height: 26px; padding: 0 6px; border-radius: 99px; background: var(--gold); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.hm-chev { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hm-next { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 16px; text-align: center; cursor: pointer; }
.hm-next.hm-empty { cursor: default; display: flex; flex-direction: column; gap: 4px; padding: 22px 16px; }
.hm-next.hm-empty small { color: var(--muted); }
.hm-lbl { display: flex; justify-content: space-between; align-items: center; color: var(--gold); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.hm-lbl .hm-chev { color: var(--muted); }
.hm-ringbox { position: relative; width: 132px; height: 132px; margin: 6px auto 8px; }
.hm-ring { width: 100%; height: 100%; display: block; }
.hm-ring circle { fill: none; stroke-width: 6; }
.hm-ring-bg { stroke: var(--line); }
.hm-ring-fg { stroke: var(--gold); stroke-linecap: round; transition: stroke-dashoffset .6s ease; }
.hm-ring.live .hm-ring-fg { stroke: var(--green); }
.hm-ring.due .hm-ring-bg { stroke: var(--red); }
.hm-ring-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: 0 18px; }
.hm-ring-c b { font-size: 30px; font-weight: 600; line-height: 1.1; white-space: nowrap; }
.hm-ring-c small { color: var(--muted); font-size: 12px; line-height: 1.2; }
.hm-ring-ico svg { width: 30px; height: 30px; fill: none; stroke: var(--green); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hm-who { font-size: 16px; }
.hm-who b { font-weight: 600; }
.hm-flrow { margin-top: 8px; }
.hm-fl { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 12.5px; background: var(--panel-2); color: var(--muted); max-width: 100%; }
.hm-fl svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; flex: none; }
.hm-fl b { font-weight: 600; }
.hm-fl.ok { background: var(--green-soft); color: var(--green); }
.hm-fl.late { background: var(--red-soft); color: var(--red); }
.hm-route { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 8px 10px; align-items: center; text-align: left; margin: 14px 0 6px; font-size: 14.5px; }
.hm-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--gold); }
.hm-sq { width: 10px; height: 10px; background: var(--gold); border-radius: 2px; }
.hm-to { color: var(--muted); }
.hm-meta { text-align: left; color: var(--muted); font-size: 13px; padding-left: 22px; }
.hm-acts { display: flex; gap: 8px; margin: 14px 0 10px; }
.hm-acts .btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.hm-acts .btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hm-next .slide-btn { width: 100%; }
.hm-h { color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; margin: 6px 2px -4px; }
.hm-list { display: flex; flex-direction: column; gap: 8px; }
.hm-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); color: var(--text); transition: background .3s, color .3s; }
.hm-row-t { display: flex; flex-direction: column; min-width: 48px; }
.hm-row-t b { font-size: 16px; font-weight: 600; }
.hm-row-t small, .hm-row-m small { color: var(--muted); font-size: 12px; }
.hm-row-m { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hm-row-m > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.hm-row-p { color: var(--gold); font-weight: 600; white-space: nowrap; }
.hm-all { align-self: center; text-decoration: none; }
@media (hover: hover) {
  .hm-row:hover, .hm-offers:hover { background: var(--text); color: var(--bg); }
  .hm-row:hover small, .hm-row:hover .hm-row-p { color: var(--bg); }
}

/* Accueil du chauffeur : liste « pour recevoir des courses » en haut, contenu aligné à gauche sur ordinateur (owner 2026-11-19). */
.hm .ready { margin: 0; }
@media (min-width: 1000px) { .wrap:has(> .hm) { margin-left: 0; } .hm { margin: 0; padding-left: 0; padding-right: 0; } .hm-all { align-self: flex-start; } }

/* Bouton à glisser : prise n'importe où sur le bouton (owner 2026-11-19). Accueil : course en cours = rond vert plein, icône et texte blancs. */
.slide-btn { touch-action: pan-y; cursor: grab; }
.slide-btn.drag { cursor: grabbing; }
.hm-ring.live .hm-ring-bg { fill: var(--green); stroke: var(--green); }
.hm-ring-c.live small { color: #fff; font-weight: 600; }
.hm-ring-c.live .hm-ring-ico svg { stroke: #fff; }

/* Accueil du chauffeur : carte « Prochaine course » en design B (owner 2026-11-19) : bandeau or avec texte blanc. */
.hm-next { padding: 0; overflow: hidden; text-align: left; }
.hm-band { background: var(--gold); color: #fff; padding: 14px 16px 12px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.hm-band.live { background: var(--green); }
.hm-band .hm-lbl { display: block; color: #fff; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.hm-time { display: block; font-size: 44px; font-weight: 700; line-height: 1.05; letter-spacing: -.01em; }
.hm-left { text-align: right; display: flex; flex-direction: column; align-items: flex-end; padding-bottom: 4px; }
.hm-left small { font-size: 13px; color: #fff; }
.hm-left b { font-size: 19px; font-weight: 700; white-space: nowrap; }
.hm-body { padding: 14px 16px 16px; }
.hm-who { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 17px; }
.hm-who b { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-pay { color: var(--gold); flex: none; }
.hm-body .hm-meta { padding-left: 0; margin-top: 2px; }
.hm-body .hm-route { margin: 12px 0 4px; }
.hm-icos { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin: 14px 0 10px; }
.hm-ico { height: 46px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); display: grid; place-items: center; text-decoration: none; transition: background .3s, color .3s, border-color .3s; }
.hm-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .hm-ico:hover { background: var(--text); color: var(--bg); border-color: var(--text); } }

/* Donneurs d'ordre (orderers.js) et facturation électronique SUPER PDP (invoices.js), owner 2026-11-19. */
.od-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 4px 0 8px; }
.od-tools .tsearch-wrap { flex: 1 1 240px; margin: 0; }
.od-card { text-align: start; display: flex; flex-direction: column; gap: 4px; width: 100%; cursor: pointer; font: inherit; color: inherit; }
.od-card .tcard-top small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.od-card .od-line { font-size: 13px; overflow-wrap: anywhere; }
.od-card .od-muted { color: var(--muted); }
.od-card.od-off { opacity: .6; }
.od-dialog .two, .od-imp .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .od-dialog .two { grid-template-columns: 1fr; } }
.od-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.od-btns .danger { margin-inline-end: auto; }
.od-imp { max-width: 760px; }
.od-imp .od-h { font-size: 15px; margin: 18px 0 8px; }
.od-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px 12px; }
.od-cols .f span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.od-groups { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.od-sum { margin: 16px 0 8px; }
.od-rows { max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 4px 10px; }
.od-row { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; border-bottom: 1px solid var(--line); }
.od-row:last-child { border-bottom: 0; }
.od-row .pill { flex: none; min-width: 92px; text-align: center; }
.od-rc { display: flex; flex-direction: column; min-width: 0; }
.od-rc small { color: var(--muted); overflow-wrap: anywhere; }
.od-imp-go { position: sticky; bottom: -1px; background: var(--panel); padding-top: 10px; }
.inv-pro { margin-top: 6px; }
.inv-siren-row { display: flex; gap: 8px; }
.inv-siren-row input { flex: 1; min-width: 0; }
.inv-hits { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.inv-hit { text-align: start; display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); font: inherit; cursor: pointer; transition: background-color .3s, color .3s; }
.inv-hit small { color: var(--muted); }
@media (hover: hover) { .inv-hit:hover { background: var(--text); color: var(--bg); } .inv-hit:hover small { color: inherit; } }
.inv-card .inv-ei { display: block; margin-top: 6px; }
.inv-ei-box { max-width: 820px; margin: 12px auto 0; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.inv-ei-box.bad { border-color: var(--red); background: var(--red-soft); }
.inv-ei-err { flex: 1 1 100%; color: var(--red); font-size: 13px; overflow-wrap: anywhere; }
.inv-ei-panel { margin: 0 0 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; }
.inv-ei-panel summary { cursor: pointer; font-weight: 600; }
.inv-ei-panel summary small { color: var(--muted); font-weight: 400; margin-inline-start: 6px; }
.inv-ei-panel h3 { font-size: 14px; margin: 12px 0 6px; }
.inv-ei-panel ul { margin: 0; padding-inline-start: 18px; font-size: 13px; }
.inv-ei-panel li { margin: 4px 0; }
.inv-ei-panel li.bad { color: var(--red); }
label.f > .inv-siren-row { display: flex; gap: 8px; align-items: center; margin: 0; }
label.f > .inv-siren-row .btn { flex: none; }
/* Fenêtre Support du coin : logo ChauffApp (blanc, fond doré) + « Support » au lieu du texte (owner, 2026-11-19). */
.rc-sup-brand { display: flex; align-items: center; gap: 7px; }
.rc-sup-brand img { height: 22px; width: auto; filter: brightness(0) invert(1); }
.rc-sup-brand b { font-size: 16px; font-weight: 650; }
.rc-support .rc-sup-head .rc-sup-brand { margin-bottom: 2px; }   /* carte Support de la page Messages : logo blanc + « Support » (owner, 2026-11-19) */
/* Logo rond ChauffApp (badge noir) dans les deux en-têtes Support : page Messages et fenêtre du coin (owner, 2026-11-19). */
.rc-sup-brand { gap: 10px; }
.rc-sup-brand img.rc-sup-badge { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; filter: none; background: #000; flex: none; box-shadow: none; }
.rc-sup-head .rc-sup-brand img.rc-sup-badge { width: 40px; height: 40px; }
.rc-sup-brand { flex: 1; min-width: 0; }
.rc-sup-brand > span { flex: 1; min-width: 0; }
.rc-sup-brand b { display: block; }
.rc-sup-ph > .rc-sup-brand { font-size: 16px; }
.rc-sup-ph .rc-wa > span { display: none; }   /* fenêtre du coin : WhatsApp en icône (titre au survol), place pour « À propos du transfert CA-… » */
.rc-sup-ph .rc-wa { padding: 9px; }
.rc-sup-ph .rc-wa svg { width: 20px; height: 20px; }
.rc-sup-ph small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Page Messages : en-tête Support clair comme les conversations du dessous (owner, 2026-11-19 : « light colors »). La fenêtre du coin reste dorée. */
.rc-support .rc-sup-head { background: var(--panel); color: var(--text); border-bottom: 1px solid var(--line); }
.rc-support:not(.open) .rc-sup-head { border-bottom: 0; }
.rc-support .rc-sup-head small { color: var(--muted); }
@media (hover: hover) { .rc-support .rc-sup-head:hover { background: color-mix(in srgb, var(--text) 5%, var(--panel)); color: var(--text); } }

/* Paiements › Factures donneurs d'ordre (orderinv.js, design B), owner 2026-11-19. */
.oi-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.oi-head h1 { margin: 0; }
.oi-head .oi-seg { width: auto; margin: 0; }
.oi-head .oi-seg button { padding-inline: 14px; white-space: nowrap; }
.oi-head .oi-sp { flex: 1; }
.oi-saved { color: var(--muted); font-size: 13px; }
.oi-page { max-width: 1400px; }
.oi-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 18px; align-items: start; }
@media (max-width: 1100px) { .oi-grid { grid-template-columns: 1fr; } }
.oi-form { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.oi-sec h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 10px; }
.oi-sec-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.oi-sec-h h3 { margin: 0; }
.oi-in, .oi-sec select, .oi-sec input { width: 100%; }
.oi-who { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 8px; font-size: 13px; color: var(--muted); }
.oi-who a.pill { text-decoration: none; }
.oi-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 560px) { .oi-two { grid-template-columns: 1fr; } }
.oi-two .f small { color: var(--muted); font-weight: 400; }
.oi-mode { display: flex; align-items: center; gap: 12px; margin-top: 6px; color: var(--muted); font-size: 14px; }
.oi-mode .seg { width: auto; margin: 0; }
.oi-warn { margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: var(--red-soft); color: var(--red); font-size: 13px; }
.oi-line { display: flex; gap: 12px; width: 100%; text-align: start; padding: 10px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--text); font: inherit; cursor: pointer; transition: background-color .3s; }
.oi-line:last-child { border-bottom: 0; }
@media (hover: hover) { .oi-line:hover { background: var(--panel-2); } }
.oi-l-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.oi-l-main small, .oi-l-price small { color: var(--muted); font-size: 12.5px; }
.oi-l-price { text-align: end; white-space: nowrap; display: flex; flex-direction: column; }
.oi-tot .tot-row { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: flex-end; align-items: baseline; color: var(--muted); font-size: 14px; }
.oi-tot .tot-row b { color: var(--text); }
.oi-tot .oi-big b { font-size: 22px; color: var(--gold); }
.oi-deldraft { align-self: flex-start; }
.oi-prev { position: sticky; top: 76px; min-width: 0; }
.oi-prev .voucher.invoice { zoom: .7; margin: 0; max-width: none; }
@media (max-width: 1100px) { .oi-prev .voucher.invoice { zoom: .5; } }
.oi-card { position: relative; }
.oi-card .oi-x { position: absolute; top: 8px; inset-inline-end: 8px; width: 30px; height: 30px; }
.oi-card .oi-st { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.oi-card[data-draft] { cursor: pointer; padding-inline-end: 44px; }
.oi-ldlg { max-width: 620px; }
.oi-ldlg .oi-other { display: block; color: var(--muted); margin-top: 4px; }
.oi-lbtns { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.oi-lbtns .danger { margin-inline-end: auto; }
.oi-paidbox { gap: 10px; }
.voucher.invoice .v-ref small { display: block; }
.oi-mode .seg button { white-space: nowrap; padding-inline: 14px; }
/* Paiements › Factures, design 2 « Totaux d'abord » (owner, 2026-11-23) : 3 totaux, bouton, filtres, lignes. */
.oi-list { max-width: 980px; }
.oi-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 4px 0 14px; }
.oi-kpi { background: var(--panel-2); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.oi-kpi small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oi-kpi b { font-size: 20px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.oi-kpi b.bad { color: var(--red); }
.oi-newbtn { width: 100%; }
.oi-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0 8px; }
.oi-rows { display: flex; flex-direction: column; gap: 6px; }
.oi-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; background: var(--panel-2); border-radius: 10px;
  color: var(--text); text-decoration: none; cursor: pointer; transition: background .3s, color .3s; }
.oi-r-main { display: flex; flex-direction: column; min-width: 0; }
.oi-r-main b { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.oi-r-main small { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.oi-r-end { display: flex; align-items: center; gap: 6px; flex: none; }
.oi-r-end .pill { white-space: nowrap; }
.oi-row .oi-x { width: 30px; height: 30px; }
.oi-row.inv-del .oi-r-main b { text-decoration: line-through; color: var(--muted); }
@media (hover: hover) { .oi-row:hover { background: var(--gold-soft); } }
@media (min-width: 1000px) { .oi-newbtn { width: auto; padding-inline: 22px; } .oi-kpi b { font-size: 24px; } }
@media (max-width: 420px) { .oi-kpi { padding: 10px; } .oi-kpi b { font-size: 16px; } .oi-head .oi-seg button { padding-inline: 10px; } }
/* Paiements › Autofactures et espace chauffeur « Autofacturation » (selfbill.js, owner 2026-11-23). */
.sb-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 560px) { .sb-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sb-mode { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; background: var(--gold-soft); margin: 4px 0 14px; }
.sb-mode p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.sb-mode > div { flex: 1 1 260px; min-width: 0; }
.sb-mode.on { background: var(--panel-2); }
.sb-sec-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.sb-sec-h .ea-h { margin: 0; }
.sb-build { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sb-build .sel-btn { width: auto; min-width: 170px; min-height: 0; height: 36px; padding-block: 0; }
.sb-empty { margin: 4px 0 0; }
.sb-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sb-warn { color: var(--red) !important; }
.sb-mrow { flex-wrap: wrap; cursor: default; }
@media (max-width: 560px) { .sb-mrow .oi-r-end, .sb-myrow .oi-r-end { width: 100%; justify-content: flex-end; flex-wrap: wrap; } .sb-myrow { flex-wrap: wrap; } }
.sb-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 8px 0 6px; }
.sb-head h2 { margin: 0; font-size: 20px; overflow-wrap: anywhere; }
.sb-head .hint { margin: 4px 0 0; }
.sb-info { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 13.5px; margin-bottom: 12px; }
.sb-info b { color: var(--text); }
.sb-frhint { background: var(--red-soft); color: var(--text); padding: 10px 12px; border-radius: 10px; }
.sb-lines { display: flex; flex-direction: column; gap: 6px; }
.sb-line { background: var(--panel-2); border-radius: 10px; padding: 11px 12px; }
.sb-l-top { display: flex; justify-content: space-between; gap: 12px; }
.sb-l-amt { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sb-l-amt small { color: var(--muted); font-size: 12.5px; }
.sb-l-edit { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-top: 8px; }
.sb-l-edit .f { margin: 0; flex: 0 0 150px; min-width: 0; }
.sb-l-edit .f:has(input[data-k="note"]) { flex: 1 1 200px; }
.sb-l-x { width: 34px; height: 34px; margin-bottom: 4px; flex: none; }
@media (max-width: 640px) { .sb-l-edit .f { flex: 1 1 130px; } .sb-l-edit .f:has(input[data-k="note"]) { flex-basis: 100%; } }
.sb-tot { margin-top: 12px; background: var(--panel-2); border-radius: 12px; padding: 12px 14px; }
.sb-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 14px; }
.sb-revoke { text-align: end; margin-top: 18px; }
.sb-revoke .text-link { color: var(--red); }
.ea-sb { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.sb-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px; border-radius: 12px; background: var(--panel-2); color: var(--text);
  text-decoration: none; margin-bottom: 14px; transition: background .3s, color .3s; }
.sb-card.gold { background: var(--gold); color: #fff; }
.sb-card b { white-space: nowrap; }
.sb-todo { display: block; color: var(--gold); margin-top: 2px; }
@media (hover: hover) { a.sb-card:hover, a.sb-card.gold:hover { background: var(--text); color: var(--bg); } a.sb-card:hover .sb-todo { color: var(--bg); } }
.sb-my { max-width: 760px; padding-bottom: 110px; }   /* dernier bouton jamais sous la bulle de discussion flottante */
.sb-page { padding-bottom: 96px; }
.sb-intro { color: var(--muted); }
.sb-links { display: flex; gap: 8px; flex-wrap: wrap; }
.sb-co { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-direction: column; gap: 4px; }
.sb-co span { color: var(--muted); }
.sb-vat .nav-opt span { display: flex; flex-direction: column; }
.sb-vat .nav-opt small { color: var(--muted); font-size: 12.5px; }
/* Régime de TVA en lecture seule, repris de l'annuaire (owner, 2026-11-23) */
.sb-vatro { display: flex; flex-direction: column; gap: 3px; margin: 0 0 8px; }
.sb-vatro small { color: var(--muted); font-size: 12.5px; }
.sb-vatro .sb-vat-src { margin-top: 4px; }
.sb-text { max-height: 340px; overflow: auto; padding: 12px 14px; border-radius: 12px; background: var(--panel-2); font-size: 13.5px; line-height: 1.5; }
.sb-text h4 { margin: 12px 0 4px; font-size: 14px; }
.sb-text h4:first-child { margin-top: 0; }
.sb-text p { margin: 0; }
.sb-agree { margin: 16px 0 14px; }
.sb-signbtns { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
/* Portail de l'expert-comptable (finance.js, brouillon 1 « À traiter », owner 2026-11-23). */
.fn-page { max-width: 1320px; padding-bottom: 96px; }
.fn-ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fn-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.fn-head h1 { margin: 0; } .fn-head .hint { margin: 6px 0 0; }
.fn-per { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fn-per b { min-width: 150px; text-align: center; font-variant-numeric: tabular-nums; }
.fn-per .icon-btn { width: 34px; height: 34px; }
.fn-mode { width: auto; margin: 0 0 0 6px; }
.fn-mode button { padding-inline: 14px; white-space: nowrap; }
.fn-subnav { display: flex; gap: 4px; overflow-x: auto; margin: 0 0 18px; padding-bottom: 2px; scrollbar-width: none; }
.fn-subnav a { flex: none; padding: 7px 13px; border-radius: 99px; font-weight: 600; font-size: 14px; color: var(--muted); text-decoration: none; transition: background .3s, color .3s; }
.fn-subnav a.on { background: var(--gold); color: #fff; }
.fn-subnav a i { font-style: normal; font-size: 12px; margin-inline-start: 4px; padding: 0 6px; border-radius: 99px; background: var(--gold-soft); color: var(--gold); }
.fn-subnav a.on i { background: rgba(255,255,255,.25); color: #fff; }
@media (min-width: 1000px) { .fn-subnav-acc { display: none; } }
.fn-figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fn-figs > div { padding: 14px 16px 14px 0; min-width: 0; }
.fn-figs > div + div { padding-inline-start: 16px; border-inline-start: 1px solid var(--line); }
.fn-figs small { display: block; color: var(--muted); font-size: 12.5px; }
.fn-figs b { font-size: 22px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fn-figs b.g, .fn-calc .g { color: var(--gold); }
.fn-sync { display: flex; gap: 6px 18px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin: 10px 0 20px; }
.fn-sync span { display: inline-flex; align-items: center; gap: 6px; }
.fn-sync .fn-ic { width: 15px; height: 15px; color: var(--green, #2e9d5b); }
.fn-work { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 24px; align-items: start; }
.fn-grp { margin-bottom: 20px; }
.fn-grp-h { margin: 0 0 6px; font-size: 13.5px; font-weight: 700; }
.fn-grp-h span { color: var(--muted); font-weight: 500; margin-inline-start: 6px; }
.fn-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; text-align: start; padding: 12px; border-radius: 12px;
  border: 0; background: none; color: var(--text); font: inherit; cursor: pointer; transition: background .3s; }
.fn-row.sel { background: var(--gold-soft); }
.fn-row.done { opacity: .72; }
.fn-ri { width: 34px; height: 34px; border-radius: 10px; background: var(--panel-2); display: grid; place-items: center; color: var(--gold); }
.fn-row.sel .fn-ri { background: var(--bg); }
.fn-rm { display: flex; flex-direction: column; min-width: 0; }
.fn-rm b { overflow-wrap: anywhere; } .fn-rm small { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.fn-pane { position: sticky; top: 20px; background: var(--panel-2); border-radius: 16px; padding: 20px; min-width: 0; }
.fn-pane h3 { margin: 10px 0 2px; font-size: 18px; overflow-wrap: anywhere; }
.fn-sub { margin: 0; }
.fn-route { margin: 14px 0 4px; }
.fn-bar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: #2f6f9f; }
.fn-bar .fr { background: var(--gold); }
.fn-leg { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); margin-top: 6px; flex-wrap: wrap; }
.fn-leg b { color: var(--text); }
.fn-calc { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 10px; font-variant-numeric: tabular-nums; }
.fn-calc td { padding: 7px 0; border-bottom: 1px solid var(--line); }
.fn-calc td:last-child { text-align: end; font-weight: 700; white-space: nowrap; padding-inline-start: 10px; }
.fn-calc tr.t td { border-bottom: 0; font-size: 15px; padding-top: 10px; }
.fn-calc .strike { text-decoration: line-through; color: var(--muted); font-weight: 500; }
.fn-note { margin: 10px 0 0; }
.fn-quote { margin: 10px 0 6px; padding: 12px 14px; background: var(--bg); border-radius: 12px; white-space: pre-wrap; }
.fn-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.fn-acts .btn { display: inline-flex; align-items: center; gap: 8px; }
.fn-dl { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; }
.fn-dl a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 600; transition: background .3s, color .3s; }
.fn-dl-main { flex-direction: row; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.fn-dl-main a { background: var(--panel-2); }
.fn-acc { margin-top: 28px; }
.fn-acc-row { padding: 10px 12px; border-radius: 10px; background: var(--panel-2); margin-bottom: 6px; display: flex; align-items: center; gap: 12px; }
.fn-acc-row .fn-rm { flex: 1; min-width: 0; }
.fn-acc-row .fn-view { flex: none; display: inline-flex; align-items: center; gap: 6px; }
.fn-acc-row .fn-view svg { width: 16px; height: 16px; }
.fn-inv { margin-top: 12px; max-width: 520px; }
.fn-inv .two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.fn-inv input { width: 100%; }
@media (max-width: 560px) { .fn-inv .two { grid-template-columns: 1fr; } }
.fn-filters { display: flex; gap: 6px; flex-wrap: wrap; margin: 18px 0 10px; }
.fn-tblwrap { overflow-x: auto; }
.fn-tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.fn-tbl th { text-align: start; font-size: 12px; color: var(--muted); padding: 8px 8px; border-bottom: 1px solid var(--text); white-space: nowrap; }
.fn-tbl td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.fn-tbl td small { display: block; color: var(--muted); font-size: 12px; }
.fn-tbl a { color: var(--text); }
.fn-tbl .r { text-align: end; white-space: nowrap; }
.fn-tbl tr.is-done td { color: var(--muted); }
.fn-tot td { font-weight: 800; border-bottom: 0; border-top: 1px solid var(--text); }
.fn-ck-c { width: 34px; }
.fn-ck { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--line); background: none; display: grid; place-items: center; color: #fff; padding: 0; cursor: pointer; transition: background .3s, border-color .3s; }
.fn-ck.on { background: #2e9d5b; border-color: #2e9d5b; }
.fn-ck .fn-ic { width: 14px; height: 14px; }
.fn-xx { color: #2f6f9f; font-weight: 700; }
.fn-h { font-size: 17px; margin: 26px 0 8px; }
.fn-list { display: flex; flex-direction: column; gap: 6px; max-width: 820px; }
.fn-li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border-radius: 10px; background: var(--panel-2); color: var(--text); text-decoration: none; transition: background .3s; }
.fn-li > b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.fn-vat { max-width: 720px; border-top: 1px solid var(--line); margin-top: 6px; }
.fn-vl { display: flex; justify-content: space-between; gap: 14px; padding: 13px 2px; border-bottom: 1px solid var(--line); }
.fn-vl b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.fn-vl.tot { border-bottom: 0; font-size: 17px; } .fn-vl.tot b { color: var(--gold); }
.fn-thread { display: flex; flex-direction: column; gap: 12px; max-width: 820px; max-height: 60vh; overflow-y: auto; padding: 4px 2px 12px; }
.fn-msg { display: flex; } .fn-msg.me { justify-content: flex-end; }
.fn-bub { max-width: 78%; background: var(--panel-2); border-radius: 14px; padding: 12px 14px; overflow-wrap: anywhere; }
.fn-msg.me .fn-bub { background: var(--gold); color: #fff; }
.fn-bub small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.fn-msg.me .fn-bub small { color: rgba(255,255,255,.85); }
.fn-compose { display: flex; gap: 10px; align-items: flex-end; max-width: 820px; margin-top: 10px; }
.fn-compose textarea { flex: 1; min-height: 76px; resize: vertical; }
.fn-compose .btn { display: inline-flex; align-items: center; gap: 8px; }
@media (hover: hover) {
  .fn-row:not(.sel):hover, a.fn-li:hover, .fn-dl a:hover { background: var(--panel-3, var(--panel-2)); }
  .fn-dl-main a:hover { background: var(--text); color: var(--bg); }
  .fn-subnav a:not(.on):hover { background: var(--text); color: var(--bg); }
  .fn-ck:not(.on):hover { border-color: var(--text); }
}
@media (max-width: 1100px) { .fn-work { grid-template-columns: 1fr; } .fn-pane { position: static; } }
@media (max-width: 640px) {
  .fn-figs { grid-template-columns: 1fr 1fr; }
  .fn-figs > div:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .fn-figs > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .fn-figs b { font-size: 18px; }
  .fn-per { width: 100%; } .fn-per b { flex: 1; min-width: 0; }
  .fn-tbl .fn-hs { display: none; }
  .fn-compose { flex-direction: column; align-items: stretch; }
}
a.oi-card, a.oi-card:visited { color: var(--text); text-decoration: none; }

/* Page Messages, carte Support « Hairline » (design 1 choisi par l'owner, 2026-11-19) : tout blanc, titre sur une ligne
   « Support · we reply here », logo rond 28 px, WhatsApp en rond vert, jour en texte gris, n° de transfert en petite ligne. */
.rc-page .rc-support .rc-win, .rc-page .rc-support .rc-msgs { background: var(--panel); }
.rc-page .rc-support .rc-sup-toggle { padding-block: 10px; gap: 10px; }
.rc-page .rc-support .rc-sup-head { padding-right: 12px; }
.rc-page .rc-support .rc-sup-head img.rc-sup-badge { width: 28px; height: 28px; }
.rc-page .rc-support .rc-sup-brand > span { display: flex; align-items: baseline; gap: 5px; min-width: 0; }
.rc-page .rc-support .rc-sup-brand b { display: inline; font-size: 16px; }
.rc-page .rc-support .rc-sup-head small { display: inline; margin: 0; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-page .rc-support .rc-sup-brand b::after { content: " ·"; font-weight: 400; color: var(--muted); }
.rc-page .rc-support .rc-sup-head small::first-letter { text-transform: lowercase; }
.rc-page .rc-support .rc-wa { width: 34px; height: 34px; padding: 0; justify-content: center; }
.rc-page .rc-support .rc-wa > span { display: none; }
.rc-page .rc-support .rc-wa svg { width: 19px; height: 19px; }
.rc-page .rc-support .msg-day span { padding: 0; border: 0; background: none; font-weight: 400; font-size: 11.5px; }
.rc-page .rc-support .msg-b:not(.has-offer) > .msg-ref { display: block; flex-basis: 100%; margin: 0; font-size: 11px; font-weight: 500; text-decoration: none; opacity: .85; }
.rc-page .rc-support .rc-form { padding: 8px 12px; }
.rc-page .rc-support .rc-form textarea { min-height: 40px; padding: 9px 16px; }
.rc-page .rc-support .rc-send { width: 38px; height: 38px; }
.rc-page .rc-support .rc-send svg { width: 17px; height: 17px; }
a.oi-card, a.oi-card:visited { color: var(--text); text-decoration: none; }
.rc-page .rc-support.open .rc-sup-head { border-bottom: 1px solid var(--line); }

/* Page Messages, carte Support : en-tête plus haut, logo et WhatsApp plus grands (owner, 2026-11-19). */
.rc-page .rc-support .rc-sup-toggle { padding-block: 14px; gap: 12px; }
.rc-page .rc-support .rc-sup-head img.rc-sup-badge { width: 42px; height: 42px; }
.rc-page .rc-support .rc-sup-brand b { font-size: 18px; }
.rc-page .rc-support .rc-sup-head small { font-size: 14px; }
.rc-page .rc-support .rc-wa { width: 44px; height: 44px; }
.rc-page .rc-support .rc-wa svg { width: 24px; height: 24px; }

/* Utilisateurs › Clients : bouton Factures à droite des filtres (owner, 2026-11-19). */
.us-frow { display: flex; align-items: center; gap: 10px; }
.us-frow .filters { flex: 1; min-width: 0; }
.us-frow .us-inv { flex: none; margin-bottom: 8px; }

/* Utilisateurs : bouton + en icône, plus grand et bien centré (owner, 2026-11-19). */
.us-head .us-add { width: 40px; height: 40px; }
.us-head .us-add svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; display: block; }
.us-head .us-add { color: #fff; }
@media (hover: hover) { .us-head .us-add:hover { color: var(--bg); } }

/* Fiche Partenaire, design 1 (owner, 2026-11-19) : bandeau d'état, SIREN + annuaire, TVA calculée grisée. */
.od-d1 { max-width: 560px; }
.od-d1 .od-req { color: var(--red); font-weight: 600; }
.od-d1 .od-state { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; font-size: 14px; margin-bottom: 14px; }
.od-d1 .od-state.ok { background: var(--green-soft); color: var(--green); }
.od-d1 .od-state.bad { background: var(--red-soft); color: var(--red); }
.od-d1 .od-sirow { display: flex; gap: 8px; margin: 0; }
.od-d1 .od-sirow input { flex: 1; min-width: 0; }
.od-d1 .od-sirow .btn { flex: none; }
.od-d1 .od-hint { margin: -4px 0 10px; }
.od-d1 .od-ro { background: var(--panel-2); color: var(--muted); }
.od-d1 label.f > span small { color: var(--muted); font-weight: 400; }
.od-d1 .od-three { display: grid; grid-template-columns: 110px 1fr 140px; gap: 0 12px; }
@media (max-width: 520px) { .od-d1 .od-three { grid-template-columns: 1fr 1fr; } .od-d1 .od-three .f:last-child { grid-column: 1 / -1; } .od-d1 .od-sirow { flex-wrap: wrap; } .od-d1 .od-sirow .btn { width: 100%; } }
.od-d1 .inv-hits { margin: -4px 0 12px; }

/* Utilisateurs : pastille rouge sur l'onglet Chauffeurs du sélecteur (owner, 2026-11-19). */
.us-seg .tab-badge { position: static; display: inline-block; margin-inline-start: 8px; vertical-align: 1px; }
.us-seg .tab-badge[hidden] { display: none; }
/* 5 onglets (Flotte, Inviter, owner 2026-11-28) : chaque onglet à la largeur de son texte, pastille sur la même ligne que « Chauffeurs » */
.us-seg { max-width: none; width: max-content; }
.us-seg button { flex: 1 1 auto; white-space: nowrap; padding-inline: 18px; }

/* Réglages → Mon compte : adresse e-mail et son changement (owner, 2026-11-19) */
.em-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.em-row .em-k { color: var(--muted); font-size: 14px; }
.em-row .em-v { font-weight: 600; overflow-wrap: anywhere; }
.em-row .btn { margin-inline-start: auto; }
.em-form { margin-top: 16px; }
.em-form .em-sent { margin: 0 0 10px; }

/* Réglages → Mon compte : interrupteur des notifications du client (owner, 2026-11-19) */
.push-sw { margin-top: 4px; }
.push-sw .push-sw-row { margin-top: 0; font-weight: 600; }
.push-sw .push-sw-l { margin: 0; font-weight: 600; }
.push-sw .hint { margin: 6px 0 0; }
.push-sw .push-try { margin-top: 8px; padding: 0; border: 0; background: none; color: var(--gold); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
@media (hover: hover) { .push-sw .push-try:hover { text-decoration: underline; } }

/* Client sur ordinateur : la liste reste exactement en place pendant que la fiche défile (owner, feedback 2026-11-19).
   --tsplit-top = où la liste commence (sous le bandeau éventuel), mesuré par tSplitPin() dans app.js. */
@media (min-width: 1000px) {
  /* Colonne fixe (pas « sticky ») : une colonne collante remontait en bas d'une longue fiche, poussée par la fin de la grille
     (owner, 2026-11-19 : « it should always stay static »). La fiche garde sa place grâce au retrait de la grille. */
  .tsplit.pin { display: block; padding-inline-start: var(--tsplit-w); }
  .tsplit.pin .tsplit-list { position: fixed; top: var(--tsplit-top, 0px); bottom: 0; height: auto; width: var(--tsplit-w); inset-inline-start: var(--tsplit-x, var(--side-w, 0px)); z-index: 5; background: var(--bg); }
}

/* Se déconnecter au survol : fond rouge et texte BLANC (une règle plus générale remettait le texte en noir, owner 2026-11-19). */
@media (hover: hover) { .tabs.mode-tabs button.tab-signout:not(.on):hover, .tabs.mode-tabs button.tab-signout:not(.on):hover svg { color: #fff; stroke: #fff; } }

/* Factures : transferts payés en ligne pas encore effectués, verrouillés (owner, 2026-11-19), comme « Vos chauffeurs » de Messages. */
.inv-soon-h { margin: 28px 0 4px; font-size: 17px; font-weight: 600; }
.inv-soon { max-width: 520px; }
.inv-soon-row { display: flex; gap: 14px; align-items: center; padding: 12px 14px; margin-inline: -14px; border-radius: 10px; color: var(--text); text-decoration: none; transition: background-color .3s; }
.inv-lock { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1.5px dashed var(--gold); color: var(--gold); display: grid; place-items: center; }
.inv-lock svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.inv-soon-row .grow { flex: 1; min-width: 0; }
.inv-soon-row b { display: block; font-size: 16px; font-weight: 600; }
.inv-soon-row small { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.inv-soon-row small.inv-soon-route { font-size: 13px; }
.inv-soon-row .inv-soon-price { flex: none; align-self: flex-start; font-size: 15px; color: var(--muted); }
@media (hover: hover) { .inv-soon-row:hover { background: var(--panel-2); } }
@media (max-width: 999px) { .inv-soon-row { margin-inline: 0; padding-inline: 0; } }

/* Factures, rien à facturer : encadré doré pâle, à gauche (design 2, owner 2026-11-19). */
.inv-empty { display: flex; gap: 14px; align-items: flex-start; max-width: 520px; margin: 14px 0 6px; padding: 16px 18px; border-radius: 12px; background: var(--gold-soft); }
.inv-empty svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.inv-empty b { display: block; font-size: 16px; font-weight: 600; }
.inv-empty span { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; line-height: 1.45; }

/* Bulle du Support sur tous les écrans (owner, 2026-11-19) : au-dessus de la barre de prix collante de la réservation sur téléphone. */
@media (max-width: 999px) { body:has(.bk-bar) .rc-fab-all { bottom: calc(var(--tabbar-h, 64px) + 92px); } }

/* ===== « Se connecter en tant que » (owner, 2026-11-19), loginas.js ===== */
@media (min-width: 1000px) {
  .tabs.mode-tabs button.tab-loginas { margin-top: auto; }
  .tabs.mode-tabs button.tab-loginas + button.tab-settings { margin-top: 0; }
}
.btn.la-phone { width: 100%; margin: 0 0 14px; gap: 10px; font-weight: 600; transition: background-color .3s, color .3s, border-color .3s; }
.btn.la-phone svg { width: 20px; height: 20px; flex: none; }
@media (min-width: 1000px) { .btn.la-phone { display: none; } }
@media (hover: hover) { .btn.la-phone:hover { background: var(--text); color: var(--bg); border-color: var(--text); } }
.la-box { display: flex; flex-direction: column; gap: 10px; }
.la-q { width: 100%; box-sizing: border-box; }
.la-hint { margin: 0; }
.la-list { display: flex; flex-direction: column; gap: 6px; max-height: min(60vh, 560px); overflow-y: auto; overscroll-behavior: contain; margin: 0 -4px; padding: 0 4px; }
.la-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); text-align: start; cursor: pointer; font: inherit; transition: background-color .3s, color .3s, border-color .3s; }
.la-row:disabled { opacity: .6; cursor: progress; }
.la-av { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--gold); color: #fff; font-size: 14px; font-weight: 650; }
.la-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.la-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.la-who b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.la-who small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.la-n { flex: none; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--gold); color: #fff; white-space: nowrap; }
.la-n.zero { background: var(--panel-2); color: var(--muted); }
@media (hover: hover) {
  .la-row:not(:disabled):hover { background: var(--text); color: var(--bg); border-color: var(--text); }
  .la-row:not(:disabled):hover small { color: var(--bg); opacity: .75; }
}
.as-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); background: var(--gold); color: #fff; font-size: 14px; line-height: 1.35; }
.as-bar > svg { width: 20px; height: 20px; flex: none; }
.as-bar span { flex: 1; min-width: 0; }
/* N° de la fenêtre (plusieurs comptes ouverts côte à côte, owner 2026-11-27) */
.as-bar .as-slot { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #14120a; font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.la-who .la-win { color: var(--gold); font-weight: 600; }
.as-bar .btn.small { flex: none; background: #fff; color: #14120a; border-color: #fff; font-weight: 600; transition: background-color .3s, color .3s, border-color .3s; }
@media (hover: hover) { .as-bar .btn.small:hover { background: #101010; border-color: #101010; color: #fff; } }
@media (min-width: 1000px) { body:has(.tabs.mode-tabs) .as-bar { margin-left: var(--side-w); } [dir="rtl"] body:has(.tabs.mode-tabs) .as-bar { margin-left: 0; margin-right: var(--side-w); } }
.la-open { width: 100%; box-sizing: border-box; text-decoration: none; transition: background-color .3s, color .3s, border-color .3s; }
.la-open svg { width: 20px; height: 20px; flex: none; }
@media (hover: hover) { .btn.primary.la-open:hover { background: var(--text); color: var(--bg); border-color: var(--text); } }
/* Login As : filtre « Tous / Transfert à venir » (owner, 2026-11-19) */
.la-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.la-chip { cursor: pointer; font: inherit; font-size: 14px; transition: background-color .3s, color .3s, border-color .3s; }
@media (hover: hover) { .la-chip:not(.on):hover { background: var(--text); color: var(--bg); border-color: var(--text); } }
.la-who small.la-next { color: var(--gold); font-weight: 600; }
@media (hover: hover) { .la-row:not(:disabled):hover small.la-next { color: var(--bg); } }
.la-who small.la-next { white-space: normal; overflow: visible; }
@media (min-width: 1000px) { .tabs.mode-tabs button.tab-loginas svg { width: 18px; height: 18px; margin: 0 2px; } }   /* même taille que Se déconnecter (owner, 2026-11-19) */

/* ===== Carte partenaire, design B (owner, 2026-11-19), orderers.js ===== */
.odb { border: 1px solid var(--line); background: var(--panel); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.odb.off { opacity: .6; }
.odb-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.odb .drv-ava.odb-av { width: 40px; height: 40px; font-size: 14px; flex: none; }
.odb-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.odb-name { display: flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: wrap; }
.odb-name b { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.odb-id small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.odb-tag { font-size: 11px; line-height: 1.4; padding: 1px 8px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; flex: none; }
.odb-tag.bad { border-color: var(--red); color: var(--red); }
.odb-tag.gold { border-color: var(--gold); color: var(--gold); }
.odb-ib { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--text); background: var(--panel); transition: background-color .3s, color .3s, border-color .3s; }
.odb-ib svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.odb-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--panel-2); border-radius: 10px; padding: 8px 4px; text-align: center; }
.odb-figs > div { min-width: 0; padding: 0 6px; }
.odb-figs > div + div { border-left: 1px solid var(--line); }
.odb-figs small { display: block; font-size: 11px; color: var(--muted); }
.odb-figs b { display: block; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.odb-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.odb-foot > small { font-size: 11.5px; color: var(--muted); }
.odb-acts { display: flex; gap: 2px; margin-right: -8px; }
.odb-acts button { border: 0; background: transparent; color: var(--text); font: inherit; font-size: 13px; padding: 5px 9px; border-radius: 99px; cursor: pointer; transition: background-color .3s, color .3s; }
.odb-acts button.gold { color: var(--gold); font-weight: 600; }
.odb-acts button.red { color: var(--red); }
[dir="rtl"] .odb-figs > div + div { border-left: 0; border-right: 1px solid var(--line); }
[dir="rtl"] .odb-acts { margin-right: 0; margin-left: -8px; }
@media (hover: hover) {
  .odb-ib:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
  .odb-acts button:hover { background: var(--text); color: var(--bg); }
  .odb-acts button.red:hover { background: var(--red); color: #fff; }
}
.odb-name b { flex: 0 0 auto; }   /* le nom garde sa largeur : les étiquettes passent dessous si besoin */
.odb .drv-ava.odb-av.logo { background: #fff; border: 1px solid var(--line); }
.odb .drv-ava.odb-av.logo img { object-fit: contain; padding: 5px; box-sizing: border-box; background: #fff; }   /* logo entier, sur fond blanc */

/* Bulle pendant la course : discussion avec le chauffeur, sa photo ronde dans l’en-tête doré (owner, 2026-11-19). */
.rc-drv-panel .rc-sup-brand > .drv-ava { width: 36px; height: 36px; flex: none; border: 2px solid #fff; font-size: 13px; }

/* Dossier VTC, sujet Véhicule : liste des places à remplir en rouge comme les autres champs, owner 2026-11-19. */
.mfg-fields select.mf-miss { border-color: var(--red); }

/* Listes déroulantes : bouton-champ + menu de l'app (selMenu() dans app.js), jamais la liste du système. Owner, 2026-11-19. */
.tf-menu { overflow-y: auto; overscroll-behavior: contain; }
.tf-menu > .tf-opt { flex-shrink: 0; }
.sel-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: start; cursor: pointer; font: inherit;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; color: var(--text); transition: border-color .3s, color .3s; }
.sel-btn .sel-ph { color: var(--muted); }
.sel-chev { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .7; transition: transform .2s; }
.sel-btn[aria-expanded="true"], .sel-btn:focus-visible { outline: none; border-color: var(--gold); }
.sel-btn[aria-expanded="true"] .sel-chev { transform: rotate(180deg); }
.sel-btn.mf-miss { border-color: var(--red); }
.sel-btn:disabled { opacity: .55; cursor: default; }
@media (hover: hover) { .sel-btn:not(:disabled):hover { border-color: var(--gold); } }

/* « Continuer avec Google » sur la connexion de l'espace client (owner, 2026-11-19), googlelogin.js */
.gsi-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: var(--muted); font-size: 13px; }
.gsi-or::before, .gsi-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.gsi-btn { display: flex; justify-content: center; min-height: 44px; }

/* Réglages › Authentification (owner, 2026-11-19) */
.auth-h { font-size: 15px; font-weight: 700; margin: 22px 0 8px; }
.auth-steps { margin: 14px 0 0; padding-inline-start: 20px; display: grid; gap: 6px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.auth-steps b { color: var(--text); font-weight: 600; }
.auth-steps a { color: var(--gold); text-underline-offset: 2px; }

/* Messages du chauffeur (home.js, viewDriverChat), owner 2026-11-19 : barre dorée du Support en haut, cadenas jusqu'à « Arrivé ». */
.wrap.dc-page .rc-sup-bar { position: static; display: flex; gap: 12px; align-items: center; margin: 0 16px 14px; width: auto; padding: 14px 16px; border-radius: 14px; background: var(--gold); color: #fff; text-decoration: none; transition: background-color .3s, color .3s; }
.dc-page .rc-sup-bar .grow { flex: 1; min-width: 0; }
.dc-page .rc-sup-bar b { display: block; font-size: 16px; font-weight: 600; }
.dc-page .rc-sup-bar small { display: block; font-size: 13.5px; color: inherit; margin-top: 2px; }
.dc-page .rc-sup-bar-i svg, .dc-arrow svg { width: 24px; height: 24px; display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dc-arrow svg { width: 20px; height: 20px; }
.dc-sup-n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: #fff; color: var(--gold); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.dc-sup-n[hidden] { display: none; }
@media (hover: hover) { .wrap.dc-page .rc-sup-bar:hover { background: var(--text); color: var(--bg); } .dc-page .rc-sup-bar:hover .dc-sup-n { background: var(--bg); color: var(--text); } }
.rc-head small.dc-ok { color: #1faa6b; }
small.dc-lock { display: flex; align-items: center; gap: 5px; color: var(--gold); white-space: normal; margin-top: 3px; }
small.dc-lock svg { width: 13px; height: 13px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dc-page .rc-lock-row { display: flex; gap: 14px; align-items: center; margin: 0 16px 8px; padding: 12px 14px; border-radius: 12px; color: var(--text); text-decoration: none; transition: background-color .3s; }
.dc-page .rc-lock { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1.5px dashed var(--gold); color: var(--gold); display: grid; place-items: center; }
.dc-page .rc-lock svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dc-page .rc-lock-row .grow { flex: 1; min-width: 0; }
.dc-page .rc-lock-row b { display: block; font-size: 16px; font-weight: 600; }
.dc-page .rc-lock-row small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.dc-page .rc-lock-row small.dc-lock-t { color: var(--gold); }
@media (hover: hover) { .dc-page .rc-lock-row:hover { background: var(--panel-2); } }
.dc-none { margin: 0 16px 14px; }
.dc-page a.rc-pill { text-decoration: none; color: var(--text); }
.wrap.dc-page .rc-card, .wrap.dc-page .rc-lock-row, .wrap.dc-page .dc-none { margin-inline: 0; }
.wrap.dc-page .rc-sup-bar { margin-inline: 0; }
@media (max-width: 999px) { .wrap.dc-page > .rc-sup-bar, .wrap.dc-page > :is(#rcNow, .rc-h2, #rcRides, #rcOld) { margin-inline: 16px; } }
@media (min-width: 1000px) { .dc-page { max-width: 760px; } }

/* Adresse Gmail : Google d'abord, le mot de passe en second choix sous « ou » (owner, 2026-11-19), googlelogin.js */
.gsi-btn.gsi-top { margin-top: 18px; }
.gsi-first .gsi-or { margin: 20px 0 6px; }
.gsi-first .btns .btn.primary { background: transparent; color: var(--text); border: 1px solid var(--line); transition: background-color .3s, color .3s, border-color .3s; }
@media (hover: hover) { .gsi-first .btns .btn.primary:hover { background: var(--text); color: var(--bg); border-color: var(--text); } }

/* Inscription chauffeur : même espace sous « 2 Votre entreprise » que sous « 1 Vous » (h2 4 px + champ 12 px), owner 2026-11-19. */
#rs2 .co-look { margin-top: 12px; }

/* Réglages › Authentification, version simple avec image (owner, 2026-11-19), googlelogin.js authSecHtml */
.ag { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.ag-txt { flex: 1 1 280px; min-width: 0; }
.ag-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ag-head b { font-size: 17px; font-weight: 700; }
.ag-g svg, .ag-btn svg { width: 22px; height: 22px; display: block; }
.ag-st { font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: var(--panel-2); color: var(--muted); }
.ag-st.on { background: var(--gold); color: #fff; }
.ag-txt p { margin: 12px 0 0; font-size: 15px; line-height: 1.5; }
.ag-txt p.ag-who { color: var(--muted); font-size: 14px; }
.ag-pic { flex: 0 0 auto; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ag-scr { width: 230px; box-sizing: border-box; padding: 16px; border-radius: 18px; background: var(--panel-2); display: flex; flex-direction: column; gap: 9px; }
.ag-scr > b { font-size: 14px; font-weight: 700; }
.ag-mail { font-size: 11.5px; padding: 7px 10px; border-radius: 9px; background: var(--bg); border: 1px solid var(--line); color: var(--text); }
.ag-btn { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; font-weight: 600; padding: 7px 10px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); color: var(--text); box-shadow: 0 0 0 3px var(--gold-soft, rgba(205, 165, 91, .15)); }
.ag-btn svg { width: 16px; height: 16px; }
.ag-or { font-size: 10.5px; color: var(--muted); text-align: center; }
.ag-field { height: 22px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); opacity: .6; }
.ag-pic figcaption { font-size: 12px; color: var(--muted); text-align: center; max-width: 230px; }
.ag-tech { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 14px; }
.ag-tech > summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--muted); list-style: none; display: flex; align-items: center; gap: 8px; }
.ag-tech > summary::-webkit-details-marker { display: none; }
.ag-tech > summary::before { content: "›"; display: inline-block; transition: transform .2s; font-size: 18px; line-height: 1; }
.ag-tech[open] > summary::before { transform: rotate(90deg); }
.ag-tech > summary small { font-weight: 500; color: var(--gold); }
.ag-tech[open] > summary { margin-bottom: 12px; }
@media (hover: hover) { .ag-tech > summary:hover { color: var(--text); } }
@media (max-width: 640px) { .ag { gap: 20px; } .ag-pic { flex: 1 1 100%; } }

/* Carte client : rond « site web » en haut à droite (adresse d'entreprise), owner 2026-11-19 */
.uc-top .uc-web { align-self: flex-start; margin-inline-start: auto; }
@media (hover: hover) { .uc-top .uc-web:hover { background: var(--text); color: var(--bg); border-color: var(--text); } }

/* Historique : position GPS du chauffeur à l'étape (owner, 2026-11-19) */
.tp-hpos { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 12.5px; color: var(--gold); text-decoration: none; }
.tp-hpos svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .tp-hpos:hover { text-decoration: underline; text-underline-offset: 2px; } }
.tp-hpos { white-space: nowrap; }

/* Fiche transfert : boutons Modifier + PDF ensemble ; version PDF sans boutons (owner, 2026-11-19), team.js tpPdf */
.tp-top-r { display: inline-flex; gap: 8px; align-items: center; }
.tp-pdf svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tp-print { max-width: none !important; padding: 0 !important; }
.tp-print :is(.tp-top, .tp-bar, button, .icon-btn, .contact-btns, .slide-btn, .tp-see, .rc-fab, .tp-hist-more) { display: none !important; }
.tp-print a { color: inherit !important; text-decoration: none !important; }
.tp-print :is(.tp-ico, .gmap-ico) { display: none !important; }   /* boutons ronds (message, WhatsApp, appel, carte) : pas dans le PDF */
.tp-print { width: auto !important; margin: 0 !important; box-sizing: border-box; }
.html2pdf__container { right: auto !important; margin: 0 !important; }   /* cadre du PDF collé à gauche, page et copie identiques (sinon bord coupé) */

/* Rapport de transfert en PDF (owner, 2026-11-19 : document à envoyer au client en cas de litige), team.js tpPdf */
.rep { width: 700px; box-sizing: border-box; background: #fff; color: #17150d; font-size: 12.5px; line-height: 1.5; font-family: Manrope, system-ui, sans-serif; }
.rep i { font-style: normal; color: #8a857a; font-weight: 400; }
.rep-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 2px solid #cda55b; }
.rep-logo { height: 30px; width: auto; display: block; }
.rep-title { text-align: right; }
.rep-title h1 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.01em; color: #17150d; }
.rep-title p { margin: 2px 0 0; color: #8a857a; font-size: 13px; }
.rep-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0; padding: 12px 14px; background: #f7f5ef; border-radius: 8px; }
.rep-meta small { display: block; font-size: 10.5px; color: #6d6a60; }
.rep-meta b { display: block; font-size: 14px; margin-top: 2px; }
.rep-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 4px 0 6px; }
.rep-parties h2, .rep-h { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: #cda55b; text-transform: none; letter-spacing: 0; }
.rep-h { margin: 22px 0 8px; padding-bottom: 5px; border-bottom: 1px solid #e6e2d8; }
.rep-parties b { font-size: 14px; }
.rep-table { width: 100%; border-collapse: collapse; }
.rep-table th, .rep-table td { text-align: left; vertical-align: top; padding: 7px 10px; border-top: 1px solid #eeeae0; }
.rep-table tr:first-child th, .rep-table tr:first-child td { border-top: 0; }
.rep-table th { width: 34%; font-weight: 500; color: #6d6a60; }
.rep-table tbody tr:nth-child(odd), .rep-table > tr:nth-child(odd) { background: #faf9f5; }
.rep-steps thead th { width: auto; font-size: 11px; color: #6d6a60; border-bottom: 1px solid #e6e2d8; background: #fff; }
.rep-steps td:first-child { font-weight: 600; }
.rep-note { margin: 8px 0 0; padding: 8px 12px; background: #f7f5ef; border-left: 3px solid #cda55b; font-size: 12px; }
.rep-map { display: block; width: 100%; height: auto; border-radius: 8px; }
.rep-price { margin: 0 0 0 auto; max-width: 320px; }
.rep-price div { display: flex; justify-content: space-between; padding: 4px 0; }
.rep-price .rep-total { border-top: 2px solid #cda55b; margin-top: 4px; padding-top: 8px; font-size: 15px; font-weight: 700; }
.rep-hist td:first-child { width: 30%; color: #6d6a60; white-space: nowrap; }
.rep-hist span { color: #6d6a60; font-size: 11.5px; }
.rep-foot { margin-top: 26px; padding-top: 10px; border-top: 1px solid #e6e2d8; font-size: 10.5px; color: #6d6a60; line-height: 1.45; }

/* Messages du chauffeur : logo rond ChauffApp dans la barre du Support (owner, 2026-11-19). */
.dc-sup-logo { width: 40px; height: 40px; flex: none; border-radius: 50%; object-fit: cover; background: #000; }

/* Fiche transfert : vrai logo WhatsApp (plein) sur le bouton rond vert, owner 2026-11-19. */
.tp-ico.wa svg.wa-logo { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.rep-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin: 8px 0 0; font-size: 11px; color: #17150d; }
.rep-legend span { display: inline-block; width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #d9d5ca; margin-left: 8px; }
.rep-legend span:first-child { margin-left: 0; }
.rep-legend .lg-a { background: #2e9d5b; } .rep-legend .lg-b { background: #c0392b; }
.rep-legend .lg-n { width: 15px; height: 15px; background: #17150d; color: #fff; font-size: 9px; font-weight: 700; text-align: center; line-height: 15px; }
.rep-contact { margin-top: 8px; font-size: 11.5px; color: #17150d; }
.rep-contact b { color: #cda55b; font-weight: 700; }

/* Fiche transfert, client : bouton Appel | SMS (design 7, owner 2026-11-19), entre la discussion de l'app et WhatsApp */
.tp-callsms { display: inline-flex; align-items: stretch; height: 44px; box-sizing: border-box; border: 1px solid var(--gold); border-radius: 99px; overflow: hidden; background: var(--panel); flex: none; }
.tp-callsms a { display: flex; align-items: center; justify-content: center; padding: 0 14px; color: var(--text); text-decoration: none; transition: background-color .3s, color .3s; }
.tp-callsms a + a { border-inline-start: 1px solid var(--line); }
.tp-callsms svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tp-cs-sms { font-size: 13px; font-weight: 700; letter-spacing: .02em; }
@media (hover: hover) { .tp-callsms a:hover { background: var(--text); color: var(--bg); } }
.tp-print .tp-callsms { display: none !important; }

/* Accueil chauffeur : pièces du dossier VTC qui expirent (hmExpRender, home.js), owner 2026-11-19. */
.hm-exps { display: flex; flex-direction: column; gap: 8px; }
.hm-exps[hidden] { display: none; }
.hm-exp { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.hm-exp.wait { background: color-mix(in srgb, var(--gold) 10%, var(--panel)); border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.hm-exp.bad { background: color-mix(in srgb, var(--red) 8%, var(--panel)); border-color: color-mix(in srgb, var(--red) 45%, var(--line)); }
.hm-exp .grow { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.hm-exp b { font-weight: 600; font-size: 14.5px; }
.hm-exp small { flex-basis: 100%; color: var(--muted); font-size: 13px; line-height: 1.4; }
.hm-exp-go { flex: none; padding: 7px 14px; border-radius: 99px; background: var(--gold); color: #fff; font-size: 13px; font-weight: 600; transition: background-color .3s, color .3s; }
.hm-exp.bad .hm-exp-go { background: var(--red); }
@media (hover: hover) { .hm-exp:hover .hm-exp-go { background: var(--text); color: var(--bg); } }
@media (max-width: 420px) { .hm-exp { flex-wrap: wrap; } .hm-exp .grow { flex: 1 1 calc(100% - 46px); } .hm-exp-go { margin-left: 46px; } }

/* Page Courses : pièces qui expirent, sous la liste « pour recevoir des courses » (owner, 2026-11-19). */
.pr-exps { max-width: 640px; margin: -6px 0 18px; }

/* Charte des chauffeurs ChauffApp (home.js, viewCharter), owner 2026-11-19. */
.chr { max-width: 640px; width: 100%; margin: 0 auto; padding: 4px 16px 40px; display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 1000px) { .wrap:has(> .chr) { margin-left: 0; } .chr { margin: 0; padding-left: 0; padding-right: 0; } }
.chr-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.chr-hico { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold); }
.chr-hico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chr-head h1 { margin: 0; font-size: 22px; line-height: 1.25; }
.chr-head small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; }
.chr-grp { display: flex; align-items: center; gap: 8px; margin: 14px 0 2px; font-size: 13px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.chr-grp::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.chr-grp.must { color: var(--red); } .chr-grp.road, .chr-grp.look { color: var(--gold); } .chr-grp.info { color: var(--muted); }
.chr-r { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.chr-ic { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; }
.chr-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chr-r.must .chr-ic { background: color-mix(in srgb, var(--red) 14%, transparent); color: var(--red); }
.chr-r.road .chr-ic, .chr-r.look .chr-ic { background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold); }
.chr-r.info .chr-ic { background: var(--panel-2); color: var(--muted); }
.chr-r b { display: block; font-size: 15px; font-weight: 600; line-height: 1.35; padding-top: 2px; }
.chr-r small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.chr-end { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--gold); color: #fff; }
.chr-end svg { flex: none; width: 22px; height: 22px; margin-top: 1px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chr-end p { margin: 0; font-size: 14px; line-height: 1.5; color: #fff; }
.chr-agree { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--panel); font-weight: 600; font-size: 15px; line-height: 1.4; cursor: pointer; }
.chr-agree.todo { border-color: var(--red); }
.chr-agree.done { border-color: var(--green); cursor: default; }
.chr-agree input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--gold); cursor: pointer; }
.chr-note { margin: 2px 4px 0; font-size: 13px; }
.chr-note.todo { color: var(--red); }
.chr-note.done { color: var(--green); }
.chr-r { align-items: center; }   /* une ligne : texte centré sur l'icône */

/* Accueil chauffeur : carte « Prochaine course », design 5 (carte du trajet + sections), owner 2026-11-19. */
.hm5 .hm-map { height: 170px; margin: 0; border: 0; border-radius: 0; }
.hm5 .hm-left { justify-content: flex-end; gap: 2px; }
.hm5 .hm-day { font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; }
.hm5 .hm-left-in { display: flex; align-items: baseline; gap: 5px; }
.hm-sec { margin: 14px 0 2px; font-size: 12.5px; font-weight: 600; color: var(--muted); text-align: left; }
.hm-body > .hm-sec:first-child { margin-top: 0; }
.hm-li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); text-align: left; }
.hm-li-i { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--gold); }
.hm-li-i svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hm-li-t { flex: 1; min-width: 0; font-size: 14.5px; line-height: 1.4; overflow-wrap: anywhere; }
.hm-li-t b { font-weight: 600; }
.hm-li-t small { display: block; margin-top: 1px; color: var(--muted); font-size: 13px; }
.hm-li-t .ok { color: var(--green); }
.hm-li-t .bad { color: var(--red); }
.hm-note { color: var(--muted); font-style: italic; }
.hm-payrow { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 6px 0 2px; color: var(--muted); font-size: 13.5px; text-align: left; }
.hm-payrow .hm-pay { flex: none; font-size: 20px; font-weight: 700; color: var(--gold); white-space: nowrap; }
.hm5 .hm-icos { margin-top: 14px; }

/* Crédit des cartes (« Tiles © Esri, OpenStreetMap contributors ») : petit ⓘ discret dans le coin, sur toutes les cartes ;
   le texte s'affiche au survol (souris) ou à l'appui (attrClick, home.js). Owner, 2026-11-19 : « hide it everywhere » ;
   Esri et OpenStreetMap exigent la mention, elle reste donc accessible. */
/* Les boutons et le « i » d'une carte restent dans la carte : ils ne passent plus par-dessus la barre du bas au défilement (2026-11-23). */
.leaflet-container { isolation: isolate; }
.leaflet-container .leaflet-control-attribution { width: 16px !important; height: 16px !important; margin: 0 6px 6px 0 !important; padding: 0 !important; border-radius: 50% !important;
  overflow: hidden; white-space: nowrap; font-size: 0 !important; line-height: 16px !important; background: rgba(255, 255, 255, .7) !important; color: #444 !important; cursor: pointer; opacity: .55; transition: opacity .3s; }
.leaflet-container .leaflet-control-attribution::before { content: 'i'; display: block; width: 16px; text-align: center; font: italic 700 10px/16px Georgia, serif; color: #444; }
.leaflet-container .leaflet-control-attribution.open { width: auto !important; height: auto !important; padding: 1px 6px !important; border-radius: 6px !important; font-size: 10px !important; opacity: 1; }
.leaflet-container .leaflet-control-attribution.open::before { display: none; }
@media (hover: hover) {
  .leaflet-container .leaflet-control-attribution:hover { width: auto !important; height: auto !important; padding: 1px 6px !important; border-radius: 6px !important; font-size: 10px !important; opacity: 1; }
  .leaflet-container .leaflet-control-attribution:hover::before { display: none; }
}

/* Accueil chauffeur : carte « Prochaine course », design 2 (bandeau de paiement, heure, rémunération, carte), owner 2026-11-19. */
.hm2.live { border-color: var(--green); }
.hm-paybar { display: flex; align-items: center; gap: 10px; padding: 11px 16px; font-size: 14px; line-height: 1.35; text-align: left; }
.hm-paybar svg { flex: none; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.hm-paybar b { font-weight: 700; }
.hm-paybar.collect { background: rgba(239, 159, 39, .16); color: #e9a23b; }
.hm-paybar.none { background: rgba(95, 207, 128, .14); color: var(--green); }
.hm-paybar.unknown { background: var(--panel-2); color: var(--muted); }
html[data-theme="light"] .hm-paybar.collect { background: #faeeda; color: #854f0b; }
html[data-theme="light"] .hm-paybar.none { background: #e6f4ea; color: #1f7a3e; }
.hm2-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 14px 16px 12px; }
.hm2-tl { min-width: 0; }
.hm2 .hm-time { color: var(--text); }
.hm2-when { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px; margin-top: 2px; color: var(--muted); font-size: 13.5px; }
.hm2-when .hm-left-in { display: inline-flex; align-items: baseline; gap: 4px; }
.hm2-when b { color: var(--gold); font-weight: 700; }
.hm2.live .hm2-when b { color: var(--green); }
.hm2-when .live-dot { align-self: center; }
.hm2-pay { flex: none; text-align: right; }
.hm2-pay small { display: block; color: var(--muted); font-size: 12.5px; }
.hm2-pay b { font-size: 26px; font-weight: 700; color: var(--gold); white-space: nowrap; }
.hm2 .hm-map { height: 160px; margin: 0; border: 0; border-radius: 0; }
.hm2 .hm-body { padding: 6px 16px 16px; }
.hm2-meta { padding: 8px 0 0; color: var(--muted); font-size: 12.5px; text-align: left; }
.hm2 .hm-icos { margin-top: 12px; }

/* Société avec plusieurs chauffeurs (owner, 2026-11-19), fleet.js : Réglages › Mes chauffeurs, « Qui conduit ? », invitation. */
.fl-list { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 14px; }
.fl-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--panel-2); flex-wrap: wrap; }
.fl-card.off { opacity: .55; }
.fl-card .grow { min-width: 0; flex: 1 1 180px; }
.fl-card b { display: block; }
.fl-card small { display: block; color: var(--muted); overflow-wrap: anywhere; }
.fl-ava { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--gold); color: #fff; font-weight: 600; font-size: 14px; }
.fl-ava img { width: 100%; height: 100%; object-fit: cover; }
.fl-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.fl-st, .fl-up { font-size: 12px; padding: 2px 9px; border-radius: 99px; background: var(--bg); color: var(--muted); }
.fl-st.ok { color: var(--green); }
.fl-st.bad { color: var(--red); }
.fl-st.wait { color: var(--gold); }
.fl-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-inline-start: auto; }
.fl-form { margin: 6px 0 14px; padding: 14px; border-radius: 12px; background: var(--panel-2); }
.fl-emp-note { margin: 0; line-height: 1.5; }
.fl-pick select, .fl-pick .sel-btn { width: 100%; }
.fl-pick .hint { margin: 8px 0 0; }
.tcard-drv { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; color: var(--gold); font-weight: 600; }
.tcard-drv svg { width: 16px; height: 16px; flex: none; }
.fl-join { max-width: 420px; }
@media (max-width: 640px) { .fl-acts { margin-inline-start: 52px; } }

/* Dossier VTC : lien « Tout télécharger (.zip) » en haut à droite, owner 2026-11-19. */
.mf-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.mf-top .hint { flex: 1; min-width: 0; }
.mf-zip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--gold); border-radius: 99px; color: var(--gold); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color .3s, color .3s, border-color .3s; }
.mf-zip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .mf-zip:hover { background: var(--text); border-color: var(--text); color: var(--bg); } }
@media (max-width: 520px) { .mf-top { flex-direction: column; gap: 4px; } .mf-zip { margin-bottom: 10px; } }

/* Carte « Prochaine course » : date plus grande, sans compte à rebours (owner, 2026-11-19). */
.hm2-date { font-size: 17px; font-weight: 600; color: var(--text); }

/* Carte « Prochaine course » : « Avant de partir », prise en charge (vert) et dépose (rouge) comme sur la carte, owner 2026-11-19. */
.hm-before { margin: 8px 0 0; color: var(--muted); font-size: 13px; font-weight: 600; text-align: left; }
.hm-li-i.pick { color: #1faa6b; }
.hm-li-i.drop { color: #d64545; }

/* Onglet Partenaires : sociétés de chauffeurs au-dessus des donneurs d'ordre (owner, 2026-11-20). */
.od-fleet-h small { color: var(--muted); font-weight: 500; }
.od-fleet { margin-bottom: 18px; }
.uc-emps { margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.45; }

/* Champs téléphone de toute l'app : indicatif pays (phoneCcEnhance), owner 2026-11-20. */
.ph-auto { display: flex; gap: 8px; min-width: 0; position: relative; }
.ph-auto input[name="phone_local"] { flex: 1; min-width: 0; }
.ph-box input.ph-bad { border-color: var(--red); }
/* Pages de connexion et d'inscription : bouton clair / sombre juste après le drapeau, comme dans l'app (owner, 2026-11-20). */
.bl-page > .top .spacer { order: 10; }
.bl-page > .top { gap: 10px; }

/* Véhicules de la société (owner, 2026-11-20), fleetveh.js : Réglages › Mes véhicules, « Quel véhicule ? ». */
.fv-list { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 14px; }
.fv-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--panel-2); flex-wrap: wrap; }
.fv-card .grow { min-width: 0; flex: 1 1 180px; }
.fv-card b, .fv-card small { display: block; }
.fv-card small { color: var(--muted); overflow-wrap: anywhere; }
.fv-card.main b { margin-top: 2px; }
.fv-ico { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold); }
.fv-ico svg { width: 20px; height: 20px; }
.fv-cg { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 13px; }
.fv-cg a { color: var(--gold); font-weight: 600; }
.fv-up { cursor: pointer; font-size: 13px; }
.fv-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-inline-start: auto; }
.fv-form { padding: 14px; border-radius: 12px; background: var(--panel-2); }
.fv-ride b { display: block; }
@media (max-width: 640px) { .fv-acts { margin-inline-start: 52px; } }
.fv-ico svg, .tcard-drv svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Accueil chauffeur : pastilles de gains (hmEarnFill), design 5, owner 2026-11-20. */
.hm-earn { display: flex; flex-wrap: wrap; gap: 8px; }
.hm-earn[hidden] { display: none; }
.hm-chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 13.5px; text-decoration: none; transition: background-color .3s, color .3s, border-color .3s; }
.hm-chip span { color: var(--muted); }
.hm-chip b { font-weight: 700; }
.hm-chip svg { align-self: center; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); }
.hm-chip.due { border-color: var(--gold); }
.hm-chip.due b { color: var(--gold); }
.hm-chip.owe { border-color: var(--red); }
.hm-chip.owe b { color: var(--red); }
@media (hover: hover) { .hm-chip:hover { background: var(--text); border-color: var(--text); } .hm-chip:hover span, .hm-chip:hover b, .hm-chip:hover svg { color: var(--bg); } }
@media (max-width: 520px) { .hm-earn { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } .hm-chip { flex-direction: column; align-items: center; gap: 1px; padding: 7px 6px; border-radius: 14px; font-size: 12.5px; text-align: center; } .hm-chip b { font-size: 15px; } .hm-chip svg { display: none; } }   /* téléphone : 3 colonnes, une seule ligne */

@media (max-width: 600px) { .two:has(.ph-auto) { grid-template-columns: 1fr; } }   /* téléphone : un champ téléphone avec indicatif prend toute la ligne (owner, 2026-11-20) */

/* Photo de profil validée par ChauffApp (home.js), owner 2026-11-20. */
.av-st { display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: 99px; border: 1px solid currentColor; font-size: 12px; }
.av-st.none, .av-st.rejected { color: var(--red); } .av-st.pending { color: var(--gold); } .av-st.approved { color: var(--green); }
.uc-photo { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 8px 0 2px; padding: 8px 10px; border-radius: 12px; background: color-mix(in srgb, var(--gold) 12%, transparent); font-size: 13px; font-weight: 600; color: var(--gold); }
.uc-photo span { flex: 1; min-width: 0; }
.uc-photo .btn { width: auto; }
.uc-photo.muted { background: color-mix(in srgb, var(--red) 10%, transparent); color: var(--red); }
.uc-photo-img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; display: block; background: var(--panel-2); }

/* Bandeau de paiement : précision sur une 2e ligne (owner, 2026-11-20). */
.hm-paybar { padding-block: 12px; }
.hm-paybar small { display: block; margin-top: 2px; font-size: 13px; font-weight: 500; color: inherit; }

/* Mon compte (chauffeur) : champ du profil encore vide en rouge (owner, 2026-11-20). */
.f input.pf-miss { border-color: var(--red); }

/* Mon compte (chauffeur) : la photo en haut, un peu d'espace avant le prénom (owner, 2026-11-20). */
.settings .av-edit + .two { margin-top: 14px; }

/* Admin : pièces à vérifier dans la carte du chauffeur et dossier en grand (home.js, openDossier), owner 2026-11-20. */
.us-docbtn { display: none !important; }   /* plus de bouton « Documents » en haut : la vérification est dans chaque carte */
.uc-docs { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 0 2px; padding: 9px 12px; border: 0; border-radius: 12px; background: color-mix(in srgb, var(--gold) 12%, transparent); color: var(--gold); font: inherit; font-size: 13px; font-weight: 600; text-align: left; cursor: pointer; transition: background-color .3s, color .3s; }
@media (hover: hover) { .uc-docs:hover { background: var(--text); color: var(--bg); } }
.dv-dialog { width: min(980px, calc(100vw - 24px)); max-width: 980px; }
.dv-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--gold) 12%, transparent); color: var(--gold); }
.dv-bar .btn { width: auto; }
.dv-none { margin: 12px 0; color: var(--green); font-weight: 600; }
.dv-list { display: flex; flex-direction: column; gap: 12px; }
.dv-doc { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.dv-prev { display: grid; place-items: center; min-height: 220px; border-radius: 10px; overflow: hidden; background: var(--panel-2); }
.dv-prev a { display: block; }
.dv-prev img { display: block; max-width: 100%; max-height: 440px; object-fit: contain; }
.dv-prev object { display: block; width: 100%; height: 440px; border: 0; }
.dv-info { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dv-info > b { font-size: 16px; }
.dv-f { display: flex; flex-direction: column; font-size: 13px; }
.dv-f span { color: var(--muted); }
.dv-acts { display: flex; gap: 8px; margin-top: auto; padding-top: 8px; }
.dv-acts .btn { flex: 1; }
.dv-more { margin-top: 16px; }
.dv-more summary { padding: 8px 0; font-weight: 600; cursor: pointer; }
@media (max-width: 999px) { .dv-doc { grid-template-columns: 1fr; } .dv-prev img { max-height: 360px; } .dv-prev object { height: 360px; } }

/* Journal des e-mails (owner, 2026-11-20), maillog.js : Réglages › E-mail › Journal, aperçu en fenêtre. */
.ml-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 10px 0 12px; }
.ml-bar input[type=search] { flex: 1 1 220px; min-width: 0; }
.ml-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ml-list { display: flex; flex-direction: column; gap: 4px; }
.ml-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--text); text-align: start; font: inherit; cursor: pointer; transition: background-color .3s; }
@media (hover: hover) { .ml-row:hover { background: var(--panel-2); } }
.ml-ico { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700; color: #fff; }
.ml-ico.ok { background: var(--green); }
.ml-ico.bad { background: var(--red); }
.ml-main { flex: 1; min-width: 0; }
.ml-main b, .ml-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-main small { color: var(--muted); }
.ml-err { color: var(--red) !important; white-space: normal !important; }
.ml-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ml-side time { font-size: 12px; color: var(--muted); white-space: nowrap; }
.ml-st { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 99px; white-space: nowrap; }
.ml-st.ok { color: var(--green); background: var(--green-soft); }
.ml-st.bad { color: var(--red); background: var(--red-soft); }
.ml-dialog { width: min(860px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); display: flex; flex-direction: column; }
.ml-dialog h2 { display: flex; align-items: flex-start; gap: 10px; }
.ml-dialog h2 span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ml-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px 16px; margin: 0 0 12px; }
.ml-meta div { min-width: 0; }
.ml-meta dt { font-size: 12px; color: var(--muted); }
.ml-meta dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.ml-frame { flex: 1; width: 100%; min-height: 60vh; border: 0; border-radius: 10px; background: #fff; }
@media (max-width: 640px) { .ml-side time { display: none; } .ml-dialog { width: calc(100vw - 16px); max-height: calc(100vh - 16px); } }

/* Coche verte de réussite à côté du bouton (okTick, home.js), owner 2026-11-20. */
.ok-tick { flex: none; white-space: nowrap; align-self: center; }

/* Coche verte de réussite : flotte sous le bouton, ne déplace rien (owner, 2026-11-20). */
.ok-float { position: absolute; z-index: 3000; margin: 0 !important; padding: 4px 10px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--green) 45%, transparent); background: var(--panel); white-space: nowrap; pointer-events: none; }

/* Gmail : « Continuer avec Google » tout en bas, sous le formulaire mot de passe (owner, 2026-11-20), googlelogin.js */
.gsi-or.gsi-or-end { margin: 22px 0 14px; }
.gsi-btn.gsi-end { margin-bottom: 4px; }

/* Véhicule du dossier VTC en haut de « Mes véhicules » (mountMyFile(…, 'vehicle')), owner 2026-11-20. */
.veh-main { margin: 4px 0 14px; }
.veh-main:empty { display: none; }

/* Ma société (salarié) : coordonnées en lecture seule (fleet.js fleetEmpCoHtml), owner 2026-11-20. */
.fl-emp-co { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 18px; margin: 16px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.fl-emp-co > div { min-width: 0; }
.fl-emp-co dt { color: var(--muted); font-size: 12px; }
.fl-emp-co dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }

/* Réponse rapide en cours de traduction (ridechat.js qrAttach), owner 2026-11-20. */
.qr-menu.busy { opacity: .6; pointer-events: none; }

/* Pièces à vérifier en haut de Utilisateurs › Chauffeurs, sociétés comprises (owner, 2026-11-20), fleet.js usPendHtml. */
.us-pend { margin: 4px 0 16px; padding: 14px; border-radius: 14px; background: var(--gold-soft); }
.us-pend-h { display: block; margin-bottom: 8px; }
.us-pend-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.us-pend-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; text-align: start; cursor: pointer; transition: background-color .3s, color .3s; }
.us-pend-item .grow { min-width: 0; }
.us-pend-item b, .us-pend-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.us-pend-item small { color: var(--muted); }
.us-pend-n { flex: none; color: var(--gold); font-weight: 700; font-size: 13px; white-space: nowrap; }
@media (hover: hover) { .us-pend-item:hover { background: var(--text); color: var(--bg); } .us-pend-item:hover small, .us-pend-item:hover .us-pend-n { color: var(--bg); } }
.fl-dos-emp { margin: 10px 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--panel-2); }
.fl-dos-emp p { margin: 0 0 10px; line-height: 1.45; }

/* Message traduit : lien « Voir l'original » sous le texte (ridechat.js msgTextHtml), owner 2026-11-20. */
.msg-trb { display: block; margin: 4px 0 0; padding: 0; border: 0; background: none; color: inherit; opacity: .6; font: inherit; font-size: 11px; text-align: start; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; transition: opacity .3s; }
@media (hover: hover) { .msg-trb:hover { opacity: 1; } }

/* Dossier du chauffeur : aperçus plus grands, bouton plein écran en haut à droite (owner, 2026-11-20). */
.dv-prev { position: relative; }
.dv-prev object { height: 78vh; }
.dv-prev img { max-height: 70vh; }
.dv-fs { position: absolute; top: 8px; right: 8px; z-index: 2; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(23, 21, 13, .72); color: #fff; cursor: pointer; transition: background-color .3s, color .3s; }
.dv-fs svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .dv-fs:hover { background: #fff; color: #17150d; } }
.dv-full { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; background: rgba(0, 0, 0, .92); padding: 56px 12px 12px; }
.dv-full img { max-width: 100%; max-height: 100%; object-fit: contain; }
.dv-full object { width: 100%; height: 100%; border: 0; background: #fff; border-radius: 6px; }
.dv-full-x { position: fixed; top: 10px; right: 12px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #fff; color: #17150d; cursor: pointer; transition: background-color .3s, color .3s; }
.dv-full-x svg { width: 20px; height: 20px; }
@media (hover: hover) { .dv-full-x:hover { background: var(--gold); color: #fff; } }
@media (max-width: 999px) { .dv-prev object { height: 70vh; } .dv-prev img { max-height: 60vh; } }
.dv-full img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; }
.dv-full-x svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.dv-full img, .dv-full object { position: absolute; top: 60px; left: 12px; width: calc(100% - 24px); height: calc(100% - 72px); max-width: none; max-height: none; object-fit: contain; }

/* « Salarié de … » cliquable (owner, 2026-11-20) : ouvre la société dans Partenaires, carte mise en évidence. */
.pill.pill-link { cursor: pointer; font: inherit; border: 1px solid var(--line); background: var(--bg); color: var(--text); transition: background-color .3s, color .3s, border-color .3s; }
@media (hover: hover) { .pill.pill-link:hover { background: var(--text); color: var(--bg); border-color: var(--text); } }
.ucard.uc-flash { box-shadow: 0 0 0 2px var(--gold); transition: box-shadow .3s; }

/* Dossier : bouton plein écran d'un PDF en bas à droite (en haut, il cachait la barre d'outils du PDF) ; image en plein écran :
   un clic la referme (owner, 2026-11-20). */
.dv-fs.pdf { top: auto; bottom: 12px; right: 22px; }
.dv-full img { cursor: zoom-out; }

/* « Salarié de … » : même taille que l'étiquette « Chauffeur » (owner, 2026-11-20). */
.pill.pill-link { font-family: inherit; font-size: 12px; font-weight: 400; line-height: 17.4px; padding: 2px 9px; border-radius: 99px; border: 1px solid var(--line); background: none; color: var(--muted); }
@media (hover: hover) { .pill.pill-link:hover { background: var(--text); color: var(--bg); border-color: var(--text); } }

/* Filtre « Salariés de … » (owner, 2026-11-20). */
.us-emp-row { margin: 0 0 12px; }
.us-emp-chip span { margin-inline-start: 6px; }

/* Étiquettes dorées cliquables (« N chauffeurs », « Vérification en attente ») : restent dorées (owner, 2026-11-20). */
.pill.gold.pill-link { color: var(--gold); border-color: var(--gold); }
.pill.pill-link.uc-chk { background: var(--gold); color: #fff; border-color: var(--gold); font-weight: 600; }
@media (hover: hover) { .pill.gold.pill-link:hover, .pill.pill-link.uc-chk:hover { background: var(--text); color: var(--bg); border-color: var(--text); } }

/* Carte utilisateur : icône « Se connecter en tant que » en haut à droite (à côté du site web s'il y en a un), owner 2026-11-20. */
.uc-top .uc-la { align-self: flex-start; margin-inline-start: auto; flex: none; }
.uc-top .uc-web + .uc-la { margin-inline-start: 6px; }
.uc-top .uc-la svg { width: 18px; height: 18px; }
@media (hover: hover) { .uc-top .uc-la:hover { background: var(--text); color: var(--bg); border-color: var(--text); } }
.dv-prev a img { cursor: zoom-in; }   /* un clic : plein écran (owner, 2026-11-20) */

/* Aperçu PDF du dossier : une page entière, sans la barre d'outils du PDF ni le début de la page suivante (owner, 2026-11-20). */
.dv-prev object { height: auto; aspect-ratio: 210 / 297; max-height: 78vh; }

/* Plein écran d'un PDF : en haut à droite comme les images (la barre d'outils du PDF est cachée dans l'aperçu), owner 2026-11-20. */
.dv-fs.pdf { top: 8px; bottom: auto; right: 22px; }

/* Utilisateurs : recherche puis filtres sur la même ligne (Chauffeurs, Partenaires, Clients), owner 2026-11-20. Téléphone : l'un sous l'autre. */
.us-frow.us-bar { flex-wrap: wrap; align-items: center; column-gap: 12px; row-gap: 0; margin-bottom: 8px; }
.us-bar .us-search { flex: 0 1 340px; max-width: 340px; padding: 0; }
.us-bar .filters { padding: 0; align-items: center; }
.us-bar .us-inv { margin-bottom: 0; }
@media (max-width: 999px) { .us-bar .us-search { flex-basis: 100%; max-width: none; margin-bottom: 10px; } .us-bar .filters { padding-bottom: 4px; } }
.dv-pdf-hit { position: absolute; inset: 0; z-index: 1; cursor: zoom-in; }   /* clic sur l'aperçu PDF : plein écran (owner, 2026-11-20) */

/* Boutons dorés « Approuver » (dossier du chauffeur, cartes) : fond noir et texte blanc au survol, fondu 0,3 s (owner, 2026-11-20). */
.dv-dialog .btn.primary, .ucard .btn.primary { transition: background-color .3s, color .3s, border-color .3s; }
@media (hover: hover) { .dv-dialog .btn.primary:hover, .ucard .btn.primary:hover { background: #17150d; border-color: #17150d; color: #fff; } }

/* Dispatchers : sociétés de chauffeurs puis donneurs d'ordre, une seule liste (owner, 2026-11-20). */
#odFleet .od-fleet { margin-bottom: 16px; }

.dv-pdfjs { width: 100%; overflow-y: auto; padding: 8px; background: #e9e8e4; border-radius: 10px; cursor: zoom-in; box-sizing: border-box; }
.dv-pdfjs canvas { display: block; margin: 0 auto 8px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }

/* Dossier : boutons sous le titre de la pièce ; « changer d'avis » dans Toutes les pièces (owner, 2026-11-20). */
.dv-info > .dv-acts { margin: 8px 0 12px; }
.dv-chs { display: inline-flex; gap: 6px; margin: 4px 0 6px 6px; vertical-align: middle; }
.dv-ch { font: inherit; font-size: 12px; padding: 2px 10px; border-radius: 99px; cursor: pointer; background: var(--bg); transition: background-color .3s, color .3s, border-color .3s; }
.dv-ch.no { border: 1px solid var(--red); color: var(--red); }
.dv-ch.ok { border: 1px solid var(--gold); color: var(--gold); }
@media (hover: hover) { .dv-ch.no:hover { background: var(--red); color: #fff; } .dv-ch.ok:hover { background: #17150d; border-color: #17150d; color: #fff; } }

/* Réglages › Sauvegarde (owner, 2026-11-20), backup.js. */
.bk-h { font-size: 14px; font-weight: 600; margin: 22px 0 8px; }
.bk-kept { display: flex; flex-direction: column; gap: 4px; }
.bk-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--panel-2); color: var(--text); text-decoration: none; transition: background-color .3s, color .3s; }
.bk-row small { color: var(--muted); }
@media (hover: hover) { .bk-row:hover { background: var(--text); color: var(--bg); } .bk-row:hover small { color: var(--bg); } }
.bk-warn { margin: 0 0 14px; padding: 12px 14px; border-radius: 10px; background: var(--red-soft); color: var(--red); line-height: 1.45; }

/* Prochaine course : ligne client (home.js hmClientRow), owner 2026-11-20. */
.hm-client { margin: 12px 0 10px; padding: 10px 0 0; border-top: 1px solid var(--line); }
.hm-client .grow b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 480px) { .hm-client { flex-wrap: wrap; row-gap: 10px; } .hm-client .tp-contact { width: 100%; gap: 8px; } .hm-client .tp-callsms { flex: 1; } .hm-client .tp-callsms a { flex: 1; } }

.bk-row .grow { flex: 1; min-width: 0; }
.bk-kind { flex: none; min-width: 108px; font-size: 12px; font-weight: 600; color: var(--gold); }
.bk-row:hover .bk-kind { color: var(--bg); }

/* Charte : une case par règle (home.js viewCharter), owner 2026-11-20. */
.chr-r, .chr-end { cursor: pointer; }
.chr-r .grow, .chr-end .grow { flex: 1; min-width: 0; }
.chr-tk { flex: none; position: relative; width: 28px; height: 28px; align-self: center; }
.chr-tk input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chr-tk i { display: grid; place-items: center; width: 28px; height: 28px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--line); background: var(--bg); transition: background-color .3s, border-color .3s; pointer-events: none; }
.chr-tk i::after { content: ''; width: 7px; height: 12px; margin-top: -3px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); opacity: 0; transition: opacity .2s; }
.chr-tk input:checked + i { background: var(--gold); border-color: var(--gold); }
.chr-tk input:checked + i::after { opacity: 1; }
.chr-tk input:focus-visible + i { outline: 2px solid var(--gold); outline-offset: 2px; }
.chr-end .chr-tk i { border-color: rgba(255, 255, 255, .7); background: transparent; }
.chr-end .chr-tk input:checked + i { background: #fff; border-color: #fff; }
.chr-end .chr-tk input:checked + i::after { border-color: var(--gold); }
.chr-r small.chr-2w { color: var(--text); margin-top: 6px; }
.chr-wa { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; padding: 7px 12px; border-radius: 99px; background: #25d366; color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; transition: background-color .3s, color .3s; }
.chr-wa svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
@media (hover: hover) { .chr-wa:hover { background: #000; color: #fff; } }
.chr-agree input:disabled { cursor: not-allowed; }
.chr-agree:has(input:disabled:not(:checked)) { opacity: .6; cursor: not-allowed; }

/* Import de sauvegarde : zone de fichier moderne, prénom + nom pour confirmer (owner, 2026-11-20). */
.bk-drop { display: flex; align-items: center; gap: 14px; margin: 4px 0 16px; padding: 18px; border: 1.5px dashed var(--line); border-radius: 14px; background: var(--panel-2); cursor: pointer; transition: border-color .3s, background-color .3s; }
.bk-drop.on { border-style: solid; border-color: var(--gold); }
.bk-drop.drag { border-color: var(--gold); background: var(--gold-soft); }
@media (hover: hover) { .bk-drop:hover { border-color: var(--gold); } }
.bk-drop-ico { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #fff; }
.bk-drop-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bk-drop-txt { min-width: 0; }
.bk-drop-txt b, .bk-drop-txt small { display: block; overflow-wrap: anywhere; }
.bk-drop-txt small { color: var(--muted); margin-top: 2px; }
#bkImp:disabled { opacity: .45; cursor: not-allowed; }

/* Charte : case « J'ai lu la charte… » au design de l'app (rond doré), pas la case du navigateur (owner, 2026-11-20). */
.chr-agree input { appearance: none; -webkit-appearance: none; flex: none; display: grid; place-items: center; width: 28px; height: 28px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--line); background: var(--bg); transition: background-color .3s, border-color .3s; }
.chr-agree input::after { content: ''; width: 7px; height: 12px; margin-top: -3px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); opacity: 0; transition: opacity .2s; }
.chr-agree input:checked { background: var(--gold); border-color: var(--gold); }
.chr-agree input:checked::after { opacity: 1; }
.chr-agree input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.chr-agree.todo input:not(:disabled) { border-color: var(--gold); }

/* Accueil chauffeur : tout dans la carte, courses terminées (home.js hmExtraHtml, hmFootHtml, hmDoneHtml), owner 2026-11-20. */
.hm-xtra { display: flex; flex-direction: column; gap: 10px; margin: 10px 0 12px; }
.hm-xtra .dpanel { margin: 0; }
.hm-dnote { margin: 0; }
.hm-picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.hm-steps { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); }
.hm-steps-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.hm-steps-h .text-link { text-transform: none; letter-spacing: 0; font-weight: 500; }
.hm-steps .stage-steps { margin: 0; }
.hm-foot { flex-direction: row; justify-content: center; gap: 8px; margin: 10px 0 0; }
.hm-fbtn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.hm-fbtn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hm-fbtn.danger { color: var(--red); border-color: color-mix(in srgb, var(--red) 40%, transparent); }
@media (hover: hover) { .hm-fbtn:hover { background: var(--text); color: var(--bg); border-color: var(--text); } .hm-fbtn.danger:hover { background: var(--red); color: #fff; border-color: var(--red); } }
.hm-offs { display: flex; flex-direction: column; gap: 10px; }
.hm-dchk { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green); font-size: 12px; font-weight: 700; }
.hm-canc { margin: 4px 2px 0; text-align: center; }
@media (max-width: 480px) { .hm-foot { flex-direction: column; } }
/* Charte : imprévu de dernière minute, encadré rouge et texte blanc (très important, owner 2026-11-20). */
.chr-urg { display: block; margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: #d32f2f; color: #fff; }
.chr-r .chr-urg small.chr-2w { margin: 0; color: #fff; font-size: 14px; font-weight: 600; line-height: 1.45; }
.chr-urg .chr-wa { margin-top: 10px; box-shadow: 0 0 0 2px #fff; }

/* Charte : « Pas de sous-traitance » entièrement en rouge, texte blanc (owner, 2026-11-20). */
.chr-r.chr-red { background: #d32f2f; border-color: #d32f2f; color: #fff; }
.chr-r.chr-red b, .chr-r.chr-red small, .chr-r.chr-red small.chr-2w { color: #fff; }
.chr-r.chr-red .chr-ic { background: rgba(255, 255, 255, .18); color: #fff; }
.chr-r.chr-red .chr-urg { padding: 0; background: none; border-radius: 0; }
.chr-r.chr-red .chr-tk i { border-color: rgba(255, 255, 255, .75); background: transparent; }
.chr-r.chr-red .chr-tk input:checked + i { background: #fff; border-color: #fff; }
.chr-r.chr-red .chr-tk input:checked + i::after { border-color: #d32f2f; }

/* Bouton à glisser plus épais : +20 px (owner, 2026-11-20). */
.slide-btn, .slide-btn.tp-main { height: 68px; min-height: 68px; }
.slide-knob { width: 60px; height: 60px; }
.slide-knob svg { width: 26px; height: 26px; }
.slide-lbl { padding: 0 72px; font-size: 16px; }

/* Conversation ChauffApp : logo plus grand, sans cadre (owner, 2026-11-20). */
.chat-head .drv-ava:has(.ch-vip) { width: 44px; height: 44px; border: 0; background: none; box-shadow: none; }

/* Étape franchie : le point vert apparaît et pulse (home.js hmRefreshCard), owner 2026-11-20. */
@keyframes st-pop { 0% { transform: translateX(-50%) scale(.3); } 70% { transform: translateX(-50%) scale(1.25); } 100% { transform: translateX(-50%) scale(1); } }
@keyframes st-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 65%, transparent); } 100% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--green) 0%, transparent); } }
.stage-steps li.st-pulse i { animation: st-pop .45s ease-out, st-pulse 1.3s ease-out .3s 3; }
@media (prefers-reduced-motion: reduce) { .stage-steps li.st-pulse i { animation: none; } }

/* Étape en cours : le point vert pulse sans arrêt (owner, 2026-11-20) ; « pop » seulement quand il vient d'être franchi. */
.hm-steps .stage-steps li.done:is(:has(+ li:not(.done)), :last-child) i { animation: st-pulse 1.6s ease-out infinite; }
.hm-steps .stage-steps li.done.st-pulse:is(:has(+ li:not(.done)), :last-child) i { animation: st-pop .45s ease-out, st-pulse 1.6s ease-out .3s infinite; }

/* Carte de la prochaine course : plus cliquable (owner, 2026-11-20). */
.hm-next.hm2 { cursor: default; }


/* Accueil : carte ouverte dans la liste (home.js hmExpand), owner 2026-11-20. */
.hm-list > .hm-next { margin: 4px 0; text-align: left; }

/* Charte : règle rouge qui pulse ; case cochée dorée comme les autres (owner, 2026-11-20). */
@keyframes chr-red-pulse { 0% { box-shadow: 0 0 0 0 rgba(211, 47, 47, .55); } 100% { box-shadow: 0 0 0 14px rgba(211, 47, 47, 0); } }
.chr-r.chr-red { animation: chr-red-pulse 1.8s ease-out infinite; }
.chr-r.chr-red .chr-tk input:checked + i { background: var(--gold); border-color: var(--gold); }
.chr-r.chr-red .chr-tk input:checked + i::after { border-color: #fff; }
@media (prefers-reduced-motion: reduce) { .chr-r.chr-red { animation: none; } }

/* Charte : signature par le nom complet dans l'encadré doré (home.js), owner 2026-11-20. */
.chr-sign { cursor: default; }
.chr-sign .grow p { margin: 0; }
.chr-name { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.chr-name span { font-size: 13px; font-weight: 600; color: #fff; }
.chr-name input { width: 100%; box-sizing: border-box; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid rgba(255, 255, 255, .85); background: #fff; color: #1a1a1a; font: inherit; font-size: 16px; font-weight: 600; }
.chr-name input::placeholder { color: #9a9a9a; font-weight: 400; }
.chr-name input:focus { outline: 2px solid #fff; outline-offset: 2px; }
.chr-name input[readonly] { background: rgba(255, 255, 255, .9); }
.chr-sign .chr-tk { align-self: flex-end; margin-bottom: 9px; }
.chr-sign .chr-tk input { cursor: default; }

/* Adresses cliquables de la carte de course (home.js hmAddrLink), owner 2026-11-20. */
.hm-addr { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--gold) 60%, transparent); text-underline-offset: 3px; transition: color .3s; }
@media (hover: hover) { .hm-addr:hover { color: var(--gold); } }

/* Charte : engagement et signature dans l'encadré doré, remerciement (home.js), owner 2026-11-20. */
.chr-commit { margin: 14px 0 0 !important; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .35); font-weight: 700; font-size: 15px; color: #fff; }
.chr-signbtn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; margin-top: 12px; border: 0; border-radius: 99px; background: #fff; color: var(--gold); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: background-color .3s, color .3s, opacity .3s; }
@media (hover: hover) { .chr-signbtn:not(:disabled):hover { background: #1a1a1a; color: #fff; } }
.chr-signbtn:disabled { opacity: .55; cursor: not-allowed; }
.chr-sign .chr-note { margin: 8px 0 0; color: #fff; font-size: 13px; opacity: .9; }
.chr-signed { margin: 12px 0 0 !important; font-weight: 700; color: #fff; }
.chr-sign .chr-tk { align-self: flex-start; margin-top: 2px; margin-bottom: 0; }
.chr-thanks { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 16px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--green) 40%, transparent); background: color-mix(in srgb, var(--green) 10%, var(--panel)); }
.chr-thx-ico { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; }
.chr-thx-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chr-thanks b { display: block; font-size: 16px; }
.chr-thanks p { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* Bandeau du haut de la carte de course (home.js hmLblHtml), owner 2026-11-20. */
.hm-tag { display: flex; align-items: center; gap: 8px; padding: 11px 16px; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; text-align: left; }
.hm-tag::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.hm-tag.next { background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold); }
.hm-tag.up { background: rgba(239, 140, 30, .16); color: #e8891c; }
.hm-tag.past { background: color-mix(in srgb, var(--red) 14%, transparent); color: var(--red); }
html[data-theme="light"] .hm-tag.up { color: #b25e00; }
.hm-next .hm-tag { justify-content: flex-start; }

/* « Prochaine course » : fond vert, texte blanc (owner, 2026-11-20). */
.hm-next .hm-tag.next { background: #23944a; color: #fff; }

/* « À venir » : doré comme l'ancien « Prochaine course » (owner, 2026-11-20). */
.hm-next .hm-tag.up, html[data-theme="light"] .hm-next .hm-tag.up { background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold); }

/* Équipements à préparer (home.js hmExtrasHtml, hmExtrasPopup), owner 2026-11-20. */
.hm-xh { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; }
.hm-x { display: flex; align-items: center; gap: 10px; padding: 5px 0; cursor: pointer; font-size: 14px; }
.hm-xk { flex: none; position: relative; width: 24px; height: 24px; }
.hm-xk input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.hm-xk i { display: grid; place-items: center; width: 24px; height: 24px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--gold); background: var(--bg); transition: background-color .3s, border-color .3s; pointer-events: none; }
.hm-xk i::after { content: ''; width: 6px; height: 10px; margin-top: -3px; border: solid #fff; border-width: 0 2.4px 2.4px 0; transform: rotate(45deg); opacity: 0; transition: opacity .2s; }
.hm-xk input:checked + i { background: var(--gold); border-color: var(--gold); }
.hm-xk input:checked + i::after { opacity: 1; }
.hm-xk input:focus-visible + i { outline: 2px solid var(--gold); outline-offset: 2px; }
.hm-xdlg { max-width: 440px; }
.hm-xlist { display: flex; flex-direction: column; gap: 4px; margin: 12px 0 16px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); }
.hm-xdlg .btn:disabled { opacity: .5; cursor: not-allowed; }

/* Étapes : la barre verte se remplit doucement jusqu'à l'étape franchie, puis le point passe au vert (owner, 2026-11-20). */
.stage-steps li.done::before { background: var(--line); }
.stage-steps li::after { content: ""; position: absolute; top: 8px; left: -50%; width: 100%; height: 2px; background: var(--green); transform-origin: left center; transform: scaleX(0); }
.stage-steps li:first-child::after { display: none; }
.stage-steps li.done::after { transform: scaleX(1); }
[dir="rtl"] .stage-steps li::after { left: auto; right: -50%; transform-origin: right center; }
@keyframes st-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes st-arrive {
  0%, 68% { background: var(--panel); transform: translateX(-50%) scale(1); }   /* bord : celui du point avant (gris, ou doré pour la 1re étape) */
  82% { background: var(--green); border-color: var(--green); transform: translateX(-50%) scale(1.35); }
  100% { background: var(--green); border-color: var(--green); transform: translateX(-50%) scale(1); }
}
@keyframes st-fade { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.stage-steps li.st-pulse::after { animation: none; }   /* étape franchie : vert tout de suite, sans remplissage de 1 s (owner, 2026-11-23 : « should be instant ») */
.stage-steps li.st-pulse i, .hm-steps .stage-steps li.done.st-pulse:is(:has(+ li:not(.done)), :last-child) i { animation: st-pulse 1.6s ease-out infinite; }   /* pulse dès le changement */
.stage-steps li.st-pulse time { animation: none; }
@media (prefers-reduced-motion: reduce) { .stage-steps li.st-pulse::after, .stage-steps li.st-pulse i, .stage-steps li.st-pulse time { animation: none !important; } }

/* Photo de l'équipement (home.js hmXImgs), owner 2026-11-20. */
.hm-ximg { flex: none; width: 52px; height: 52px; object-fit: contain; border-radius: 10px; background: #fff; border: 1px solid var(--line); padding: 3px; box-sizing: border-box; }
.hm-x { gap: 12px; }

/* Charte : règle rouge plus aérée en haut et en bas (owner, 2026-11-20). */
.chr-r.chr-red { padding-top: 20px; padding-bottom: 20px; }

/* Photo de l'équipement plus grande (owner, 2026-11-20). */
.hm-ximg { width: 84px; height: 84px; padding: 4px; border-radius: 12px; }

/* Facturation : course ouverte sur place (home.js eaMoreHtml), owner 2026-11-20. */
a.ea-line.open { background: var(--panel); border-radius: 12px 12px 0 0; }
.ea-more { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 14px; background: var(--panel); border-radius: 0 0 12px 12px; margin-bottom: 6px; }
.ea-more-r { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; font-size: 14px; }
.ea-more-r span { color: var(--muted); }
.ea-more-r b { font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 480px) { .ea-more-r { grid-template-columns: 1fr; gap: 2px; } }

/* Étapes : « Client prévenu » ; fenêtre « Paiement encaissé ? » (home.js), owner 2026-11-20. */
.stage-steps .st-note { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); line-height: 1.3; }
.stage-steps .st-note.ok { color: var(--green); font-weight: 600; }
.stage-steps li.st-pulse .st-note { animation: none; }
.hm-cash { max-width: 420px; }
.hm-cash-amt { display: flex; align-items: center; gap: 12px; margin: 10px 0 12px; padding: 14px 16px; border-radius: 14px; background: rgba(239, 159, 39, .16); color: #e9a23b; }
html[data-theme="light"] .hm-cash-amt { background: #faeeda; color: #854f0b; }
.hm-cash-amt svg { flex: none; width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.hm-cash-amt b { display: block; font-size: 22px; }
.hm-cash-amt small { display: block; font-size: 13px; }
.hm-cash .btns { display: flex; gap: 8px; }
.hm-cash .btns .btn { flex: 1; }

/* Calendrier du chauffeur (home.js viewDriverCalendar), owner 2026-11-20. */
.cal { max-width: 720px; width: 100%; margin: 0 auto; padding: 4px 16px 40px; box-sizing: border-box; }
@media (min-width: 1000px) { .wrap:has(> .cal) { margin-left: 0; } .cal { margin: 0; padding-left: 0; padding-right: 0; } }
.cal h1 { margin: 0 0 4px; }
.cal-sum { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.cal-sum b { color: var(--gold); }
.cal-month { margin: 18px 2px 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.cal-day { margin-bottom: 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); overflow: hidden; }
.cal-dh { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; transition: background-color .3s, color .3s; }
.cal-dh span { flex: 1; min-width: 0; }
.cal-dh b { color: var(--gold); font-weight: 600; white-space: nowrap; }
.cal-chev { flex: none; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: -4px 2px 0; transition: transform .3s; }
.cal-day.open .cal-chev { transform: rotate(-135deg); margin-top: 4px; }
@media (hover: hover) { .cal-dh:hover { background: var(--text); color: var(--bg); } .cal-dh:hover b { color: var(--bg); } .cal-dh:hover .cal-chev { border-color: var(--bg); } }
.cal-rows { border-top: 1px solid var(--line); }
.cal-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 14px; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--text); font: inherit; font-size: 14px; text-align: left; cursor: pointer; transition: background-color .3s, color .3s; }
.cal-rows > .cal-row:first-child { border-top: 0; }
.cal-row b { flex: none; width: 46px; font-variant-numeric: tabular-nums; }
.cal-row span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-row small { flex: none; color: var(--muted); }
.cal-row.open { background: var(--panel-2); font-weight: 600; }
@media (hover: hover) { .cal-row:hover { background: var(--text); color: var(--bg); } .cal-row:hover small { color: var(--bg); } }
.cal-raw { display: flex; flex-direction: column; gap: 4px; padding: 10px 14px 14px 70px; background: var(--panel-2); font-size: 13px; line-height: 1.45; }
.cal-raw > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; }
.cal-raw > div > span:first-child { color: var(--muted); }
.cal-raw > div > span:last-child { overflow-wrap: anywhere; }
.cal-link { color: var(--text); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--gold) 60%, transparent); text-underline-offset: 3px; transition: color .3s; }
@media (hover: hover) { .cal-link:hover { color: var(--gold); } }
@media (max-width: 480px) { .cal-raw { padding-left: 14px; } .cal-raw > div { grid-template-columns: 1fr; gap: 0; } .cal-raw > div > span:first-child { font-size: 12px; } }

/* Compte à rebours avant archivage de la course déposée (home.js hmArchive), owner 2026-11-20. */
.hm-arch { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 12px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.hm-arch i { display: block; width: 100%; max-width: 220px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.hm-arch b { display: block; height: 100%; background: var(--green); transform-origin: left center; animation: hm-arch 20s linear forwards; }
@keyframes hm-arch { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* Calendrier : section des courses terminées (home.js), owner 2026-11-20. */
.cal-month.cal-past { margin-top: 28px; color: var(--muted); scroll-margin-top: 80px; }
a.btn.hm-all { text-decoration: none; }

/* Calendrier : bouton des courses plus anciennes (home.js), owner 2026-11-20. */
.cal-older { width: 100%; margin: 6px 0 10px; }

/* Bas de la carte : boutons plus hauts, Écrire à ChauffApp | WhatsApp ChauffApp (home.js hmFootHtml), owner 2026-11-20. */
.hm-foot, .hm-xtra.hm-foot { flex-direction: column; gap: 8px; }
.hm-foot-row { display: flex; gap: 8px; }
.hm-foot-row .hm-fbtn { flex: 1; min-width: 0; }
.hm-fbtn { min-height: 52px; text-decoration: none; }
.hm-fbtn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-fbtn.wa { background: #25d366; border-color: #25d366; color: #fff; }
.hm-fbtn.wa svg { fill: currentColor; stroke: none; width: 19px; height: 19px; }
@media (hover: hover) { .hm-fbtn.wa:hover { background: #000; border-color: #000; color: #fff; } }
@media (max-width: 480px) { .hm-fbtn { padding: 0 10px; gap: 6px; font-size: 12.5px; } }
@media (max-width: 480px) { .hm-foot-row .hm-fbtn span { white-space: normal; overflow: visible; text-align: center; line-height: 1.2; } }

/* Bandeau d'encaissement : commission et ⚠ espèces qui clignote (home.js), owner 2026-11-20. */
.hm-paybar .grow { flex: 1; min-width: 0; }
.hm-paybar small.hm-comm { margin-top: 3px; font-weight: 700; }
.hm-cash-warn { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #d32f2f; color: #fff; animation: hm-blink 1s steps(1, end) infinite; }
.hm-cash-warn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes hm-blink { 0%, 100% { opacity: 1; } 50% { opacity: .15; } }
@media (prefers-reduced-motion: reduce) { .hm-cash-warn { animation: none; } }

/* « Ajouter à l'agenda » sur la carte de course (home.js calAddChooser), owner 2026-11-20. */
.hm-tag .grow { flex: 1; min-width: 0; }
.hm-caladd { display: inline-flex; align-items: center; gap: 6px; margin: -4px 0; padding: 5px 11px; border: 1px solid currentColor; border-radius: 99px; background: transparent; color: inherit; font: inherit; font-size: 11px; font-weight: 700; letter-spacing: .04em; cursor: pointer; transition: background-color .3s, color .3s; }
.hm-caladd svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .hm-caladd:hover { background: var(--text); color: var(--bg); border-color: var(--text); } .hm-tag.next .hm-caladd:hover { background: #fff; color: #23944a; border-color: #fff; } }
.cal-add { max-width: 420px; }
.cal-add-btns { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.cal-add-btns .btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; text-decoration: none; }
.cal-add-btns svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* Coordonnées masquées (home.js) ; ⚠ espèces : fondu doux et halo (owner, 2026-11-20). */
.hm-client small.hm-ct { color: var(--muted); font-style: italic; white-space: normal; }
@keyframes hm-warn-fade { 0%, 100% { opacity: .45; transform: scale(.94); box-shadow: 0 0 0 0 rgba(211, 47, 47, .5); } 50% { opacity: 1; transform: scale(1.04); box-shadow: 0 0 0 8px rgba(211, 47, 47, 0); } }
.hm-cash-warn { animation: hm-warn-fade 1.8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .hm-cash-warn { animation: none; } }

/* Jour au-dessus de l'heure de la carte (home.js hmDayLabel), owner 2026-11-20. */
.hm2-tl .hm2-day { display: block; margin-bottom: 2px; color: var(--muted); font-size: 13px; font-weight: 600; }
.hm2-when:empty { display: none; }

/* ⚠ espèces : pulsation seule, sans fondu (owner, 2026-11-20). */
@keyframes hm-warn-pulse { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(211, 47, 47, .55); } 50% { transform: scale(1.08); } 70% { box-shadow: 0 0 0 10px rgba(211, 47, 47, 0); } 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(211, 47, 47, 0); } }
.hm-cash-warn { opacity: 1; animation: hm-warn-pulse 1.6s ease-out infinite; }
@media (prefers-reduced-motion: reduce) { .hm-cash-warn { animation: none; } }

/* Remerciement de la charte : lien WhatsApp (owner, 2026-11-20). */
.chr-thanks p.chr-thx-wa { margin-top: 8px; }
.chr-thx-wa a { color: #1f9d55; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; transition: color .3s; }
@media (hover: hover) { .chr-thx-wa a:hover { color: var(--text); } }

/* ⚠ espèces : seul le contour pulse, l'icône ne bouge pas (owner, 2026-11-20). */
@keyframes hm-warn-ring { 0% { box-shadow: 0 0 0 0 rgba(211, 47, 47, .6); } 80%, 100% { box-shadow: 0 0 0 12px rgba(211, 47, 47, 0); } }
.hm-cash-warn { transform: none; opacity: 1; animation: hm-warn-ring 1.6s ease-out infinite; }
@media (prefers-reduced-motion: reduce) { .hm-cash-warn { animation: none; } }

/* Encaissement à bord, design 1 (home.js hmCollectHtml), owner 2026-11-20. */
.hm-collect { align-items: center; padding-top: 14px; padding-bottom: 14px; }
.hm-collect .hm-cl-k { display: block; font-size: 12px; font-weight: 600; }
.hm-collect .hm-cl-amt { display: block; font-size: 30px; font-weight: 700; line-height: 1.15; }
.hm-cl-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.hm-cl-pills span { padding: 3px 10px; border-radius: 99px; background: rgba(255, 255, 255, .12); font-size: 12px; font-weight: 700; }
html[data-theme="light"] .hm-cl-pills span { background: #fff; }
.hm-cl-pills .keep { color: var(--green); }
.hm-cl-pills .comm { color: var(--red); }

/* Équipements : la case alignée sur les icônes des lignes au-dessus (owner, 2026-11-20). */
.hm-xli .hm-x { margin-left: -32px; }

/* « Écrire à ChauffApp » : logo ChauffApp (owner, 2026-11-20). */
.hm-vip-ico { flex: none; width: 22px; height: 22px; border-radius: 50%; }

/* ⚠ espèces devant le montant (owner, 2026-11-20). */
.hm-collect .hm-cl-amt { display: flex; align-items: center; gap: 10px; }
.hm-cl-amt .hm-cash-warn { width: 32px; height: 32px; }
.hm-cl-amt .hm-cash-warn svg { width: 18px; height: 18px; }

/* Calendrier : nom du client sous le trajet (home.js), owner 2026-11-20. */
.cal-row .cal-rt em { display: block; margin-top: 1px; font-style: normal; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (hover: hover) { .cal-row:hover .cal-rt em { color: var(--bg); } }

/* Encaissement à droite de l'heure, design 1 (home.js hmCollectTop), owner 2026-11-20. */
.hm2-collect b { color: #e9a23b; }
html[data-theme="light"] .hm2-collect b { color: #854f0b; }
.hm2-split { display: block; margin-top: 2px; font-size: 13px; font-weight: 700; color: var(--muted); }
.hm2-split i { font-style: normal; }
.hm2-split .k { color: var(--green); }
.hm2-split .r { color: var(--red); }

/* Encaissement, version 1 : badge Espèces au contour qui pulse (home.js hmCollectTop), owner 2026-11-20. */
.hm2-collect { display: flex; flex-direction: column; align-items: flex-end; }
.hm2-cbadge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 99px; background: rgba(239, 159, 39, .16); color: #e9a23b; font-size: 12px; font-weight: 700; }
html[data-theme="light"] .hm2-cbadge { background: #faeeda; color: #854f0b; }
.hm2-cbadge svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
@keyframes hm-cb-ring { 0% { box-shadow: 0 0 0 0 rgba(233, 162, 59, .6); } 80%, 100% { box-shadow: 0 0 0 9px rgba(233, 162, 59, 0); } }
.hm2-cbadge.cash { animation: hm-cb-ring 1.6s ease-out infinite; }
@media (prefers-reduced-motion: reduce) { .hm2-cbadge.cash { animation: none; } }
.hm2-collect b { margin-top: 4px; line-height: 1.15; }
.hm2-dont { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; }
.hm2-dont i { font-style: normal; font-weight: 700; color: var(--red); }

/* Étapes : « Encaisser X € » sous Client déposé (home.js hmStepsHtml), owner 2026-11-20. */
.stage-steps .st-note.cash { color: #e9a23b; font-weight: 700; }
html[data-theme="light"] .stage-steps .st-note.cash { color: #b25e00; }

/* « Encaisser X € » sous Client déposé : fondu doux (owner, 2026-11-20). */
@keyframes st-cash-fade { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.stage-steps .st-note.cash { animation: st-cash-fade 2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .stage-steps .st-note.cash { animation: none; } }

/* Bandeau « En cours » (home.js hmLblHtml), owner 2026-11-20. */
.hm-next .hm-tag.live { background: #23944a; color: #fff; justify-content: flex-start; }
@keyframes hm-live-dot { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .8); } 80%, 100% { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0); } }
.hm-tag.live::before { animation: hm-live-dot 1.6s ease-out infinite; }
@media (prefers-reduced-motion: reduce) { .hm-tag.live::before { animation: none; } }

/* Calendrier : « Qui conduit ? » dans les détails (home.js), owner 2026-11-20. */
.cal-raw > .cal-pick { display: block; max-width: 420px; margin-top: 8px; }
.cal-pick .dpanel { margin: 0; }

/* Onglet Charte signé : ✓ vert (home.js chrTabMark), owner 2026-11-20. */
.tabs button.chr-signed { position: relative; }
.tabs button.chr-signed::after { content: '✓'; position: absolute; top: 4px; left: calc(50% + 6px); display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: #23944a; color: #fff; font-size: 9px; font-weight: 700; line-height: 1; }
@media (min-width: 1000px) {
  .tabs.mode-tabs button.chr-signed::after { position: static; margin-left: auto; width: 20px; height: 20px; font-size: 11px; }
  .tabs.mode-tabs button.on.chr-signed::after { background: #fff; color: #23944a; }
}

/* Onglet Charte actif : la coche garde son vert (owner, 2026-11-20). */
@media (min-width: 1000px) { .tabs.mode-tabs button.on.chr-signed::after { background: #23944a; color: #fff; } }

/* Course en compte, design 3 (home.js hmAccountTop), owner 2026-11-20. */
.hm2-cbadge.ok { background: rgba(95, 207, 128, .14); color: var(--green); }
html[data-theme="light"] .hm2-cbadge.ok { background: #e6f4ea; color: #1f7a3e; }
.hm2-acc b { color: var(--gold); }
.hm2-acc .hm2-dont i { color: var(--green); font-weight: 600; }

/* Calendrier : chauffeur attribué à droite de la ligne (home.js), owner 2026-11-20. */
.cal-row small.cal-drv { max-width: 38%; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; color: var(--text); }
@media (hover: hover) { .cal-row:hover small.cal-drv { color: var(--bg); } }

/* Montant de la carte (espèces et en compte) plus grand, à la hauteur de l'heure (owner, 2026-11-20). */
.hm2-collect b { font-size: 36px; line-height: 1.05; margin-top: 6px; }
/* Course en compte : montant en vert (owner, 2026-11-20). */
.hm2-acc b { color: var(--green); }
html[data-theme="light"] .hm2-acc b { color: #1f7a3e; }

/* Réglages : « ! » rouge sur les rubriques incomplètes (home.js setWarnMarks), owner 2026-11-20. */
.set-warn { flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: auto; border-radius: 50%; background: #d32f2f; color: #fff; font-size: 12px; font-weight: 800; line-height: 1; }
summary .set-warn { margin-left: 8px; vertical-align: middle; }
.set-nav button { position: relative; }
.set-nav button .set-warn { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }

/* Date au-dessus de l'heure : sur une ligne (owner, 2026-11-20). */
.hm2-tl .hm2-day { white-space: nowrap; }

/* Bloc vol de la carte, design 1 (home.js hmFlightHtml), owner 2026-11-20. */
.hm-next .hm-fl { display: block; }
.hm-fl { display: block; max-width: none; margin: 6px 0; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 13px; text-align: left; }
.hm-fl-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hm-fl-n { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.hm-fl-n svg { width: 18px; height: 18px; flex: none; color: var(--gold); fill: none; stroke: currentColor; stroke-width: 1.8; }
.hm-fl-n small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-fl-pill { flex: none; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.hm-fl-pill.ok { background: rgba(95, 207, 128, .14); color: var(--green); }
.hm-fl-pill.late { background: color-mix(in srgb, var(--red) 14%, transparent); color: var(--red); }
.hm-fl-route { display: flex; align-items: flex-end; gap: 10px; margin-top: 10px; }
.hm-fl-route small { display: block; color: var(--muted); font-size: 12px; }
.hm-fl-route b { display: block; font-size: 22px; font-weight: 700; line-height: 1.2; }
.hm-fl-route b s { font-size: 13px; font-weight: 500; color: var(--red); }
.hm-fl-route .r { text-align: right; }
.hm-fl-line { flex: 1; position: relative; height: 1px; margin-bottom: 12px; border-top: 1px dashed var(--muted); }
.hm-fl-line i { position: absolute; left: 55%; top: -10px; color: var(--gold); }
.hm-fl-line svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.hm-fl-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 13px; color: var(--text); }
.hm-fl-g { flex: none; color: var(--gold); font-weight: 600; text-decoration: none; transition: color .3s; }
@media (hover: hover) { .hm-fl-g:hover { color: var(--text); } }

/* Champ du profil manquant : contour rouge en fondu (home.js setWarnMarks), owner 2026-11-20. */
@keyframes pf-miss-pulse { 0%, 100% { border-color: rgba(211, 47, 47, .35); box-shadow: 0 0 0 0 rgba(211, 47, 47, 0); } 50% { border-color: #d32f2f; box-shadow: 0 0 0 3px rgba(211, 47, 47, .18); } }
.f input.pf-miss { border-color: #d32f2f; animation: pf-miss-pulse 1.8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .f input.pf-miss { animation: none; } }

/* Calendrier : bouton « mois suivant » en bas (home.js), owner 2026-11-20. */
.cal-newer { margin-top: 14px; }

/* Calendrier : bloc vol dans les détails (home.js calRideRaw), owner 2026-11-20. */
.cal-raw > .cal-fl { display: block; max-width: 520px; margin-bottom: 8px; }
.cal-fl .hm-fl { margin: 0; }

/* Ligne de course : étiquette de l'étape (home.js hmStagePill), owner 2026-11-20. */
.hm-stp { flex: none; padding: 3px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 600; white-space: nowrap; background: var(--panel-2); color: var(--muted); }
.hm-stp.live { background: color-mix(in srgb, #e8912d 16%, transparent); color: #e8912d; }
.hm-stp.en_route, .hm-stp.arrived, .hm-stp.on_board { background: rgba(95, 207, 128, .14); color: var(--green); }
@media (max-width: 420px) { .hm-row .hm-stp { font-size: 11px; padding: 2px 7px; } }

/* Calendrier : étiquette d'étape sur la ligne (home.js hmStagePill), owner 2026-11-20. */
.cal-row span.hm-stp { flex: none; overflow: visible; }
.hm-stp.done { background: rgba(95, 207, 128, .14); color: var(--green); }
html[data-theme="light"] .hm-stp.done, html[data-theme="light"] .hm-stp.en_route, html[data-theme="light"] .hm-stp.arrived, html[data-theme="light"] .hm-stp.on_board { background: #e6f4ea; color: #1f7a3e; }

/* Bloc vol, design choisi (home.js hmFlightHtml, .hm-fc), owner 2026-11-20. */
.hm-fc { display: flex; align-items: center; gap: 12px; margin: 6px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--text); text-decoration: none; text-align: left; transition: background-color .3s, color .3s, border-color .3s; }
.hm-fc-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold); }
.hm-fc-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hm-fc-m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hm-fc-m b { font-size: 14px; font-weight: 700; }
.hm-fc-m small { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.hm-fc-r { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.hm-fc-r b { font-size: 22px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hm-fc-pill { padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.hm-fc-pill.ok { background: rgba(95, 207, 128, .14); color: var(--green); }
.hm-fc-pill.late { background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--red); }
html[data-theme="light"] .hm-fc-pill.ok { background: #e6f4ea; color: #1f7a3e; }
.cal-raw > .cal-fl { max-width: 520px; }
.cal-fl .hm-fc { margin: 0; }
@media (hover: hover) { .hm-fc:hover { background: var(--text); color: var(--bg); border-color: var(--text); } .hm-fc:hover .hm-fc-m small { color: var(--bg); } }

/* Bloc vol sans suivi : « Vérifier sur Google › » à droite du numéro (home.js), owner 2026-11-20. */
.hm-fc-g { flex: none; color: var(--gold); font-size: 13px; font-weight: 600; white-space: nowrap; transition: color .3s; }
@media (hover: hover) { .hm-fc:hover .hm-fc-g { color: var(--bg); } }

/* Réglages ordinateur : « ! » seulement dans le menu de gauche (owner, 2026-11-20). */
@media (min-width: 1000px) { .set-layout details.sec > summary .set-warn { display: none; } }

/* Bouton à glisser : coins 20 px, pastille 16 px (owner, 2026-11-20). */
.slide-btn, .slide-btn.tp-main { border-radius: 20px; }
.slide-knob { border-radius: 16px; }

/* Mon compte sans photo : croix rouge dans le rond (team.js avatarEditHtml), owner 2026-11-20. */
.drv-ava.av-none { background: color-mix(in srgb, #d32f2f 10%, transparent); border: 0; color: #d32f2f; }   /* plus de cercle rouge autour de la croix (owner, 2026-11-22) */
.drv-ava.av-none svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.drv-ava.av-tap { cursor: pointer; }   /* cercle de la photo cliquable = « Ajouter une photo » (owner, 2026-11-28) */

/* Carte de course : trois boutons sur une ligne (home.js hmFootHtml), owner 2026-11-20. */
.hm-foot-row .hm-fbtn { padding-left: 8px; padding-right: 8px; }
@media (max-width: 480px) { .hm-foot-row { gap: 6px; } .hm-foot-row .hm-fbtn { flex-direction: column; gap: 4px; font-size: 12.5px; } }

/* Dossier chauffeur : informations saisies à côté de chaque pièce, fins de validité en couleur (owner, 2026-11-20). */
.dv-f.exp-ok b { color: var(--green, #2e9e5b); }
.dv-f.exp-soon b { color: #d98a00; }
.dv-f.exp-bad b { color: var(--red); }
.dv-f b em { font-style: normal; font-size: 12px; font-weight: 600; margin-left: 4px; text-transform: uppercase; letter-spacing: .03em; }
.dos-doc-f:not(:empty) { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px 14px; margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--line); }
.dos-doc-f .dv-f { min-width: 0; overflow-wrap: anywhere; }

/* Mes véhicules : détails du véhicule sous le titre replié (team.js), owner 2026-11-20. */
.mfg-sub { color: var(--muted); font-size: 13px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Véhicules de la société : photos avant, côté, intérieur (fleetveh.js fvPhotosHtml), owner 2026-11-20. */
.fv-card .fv-ph { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; max-width: 460px; }
.fv-ph-t { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 92px; padding: 8px 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 12.5px; font-weight: 600; text-align: center; cursor: pointer; overflow: hidden; transition: background-color .3s, color .3s, border-color .3s; }
.fv-card .fv-ph-t small { display: block; color: inherit; opacity: .8; font-size: 11px; font-weight: 500; }
.fv-ph-t img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.fv-ph-t.add { border: 1.5px dashed #d32f2f; color: #d32f2f; animation: pf-miss-pulse 1.8s ease-in-out infinite; }
.fv-ph-t.add svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.fv-ph-t.busy { opacity: .6; pointer-events: none; }
.fv-ph-miss { margin: 8px 0 0; color: #d32f2f; font-size: 12.5px; }
@media (hover: hover) { .fv-ph-t:hover { background: var(--text); color: var(--bg); border-color: var(--text); } }
@media (prefers-reduced-motion: reduce) { .fv-ph-t.add { animation: none; } }

/* Accueil : macaron aéroport manquant (home.js hmAptWarn), owner 2026-11-20. */
.hm-apt:not([hidden]) { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid #e8912d; background: color-mix(in srgb, #e8912d 10%, var(--panel)); }
.hm-apt-ico { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #e8912d; color: #fff; font-weight: 800; font-size: 14px; }
.hm-apt .grow { min-width: 0; }
.hm-apt b { display: block; font-size: 14px; }
.hm-apt small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.hm-apt-btn { flex: none; padding: 8px 14px; border-radius: 99px; background: #e8912d; color: #fff; font-weight: 600; font-size: 13px; text-decoration: none; transition: background-color .3s, color .3s; }
@media (hover: hover) { .hm-apt-btn:hover { background: var(--text); color: var(--bg); } }

/* Couleur du véhicule : carré de couleur devant le nom (team.js vColorBind), owner 2026-11-20. */
.vsw { display: inline-block; flex: none; width: 16px; height: 16px; margin-right: 10px; border-radius: 4px; border: 1px solid rgba(127, 127, 127, .45); vertical-align: -3px; }
.vsw[data-none] { background: repeating-linear-gradient(45deg, transparent 0 3px, rgba(127, 127, 127, .35) 3px 4px) !important; }
.vcol-menu .tf-opt span, .sel-btn span { display: inline-flex; align-items: center; }

/* Rappel macaron aéroport : texte qui prend la place, « Ajouter » à droite (owner, 2026-11-20). */
.hm-apt .grow { flex: 1; }

/* Pièce en attente de validation : horloge (owner, 2026-11-20). */
.mf-st.pending, .mfg-chip.wait { display: inline-flex; align-items: center; gap: 4px; }
.mf-st.pending::before, .mfg-chip.wait::before { content: ''; flex: none; width: 12px; height: 12px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5V12l3 2'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5V12l3 2'/%3E%3C/svg%3E") center / contain no-repeat; }
.mf-doc.wait .mf-ico, .mf-check li.wait .mf-ico { font-size: 0; }
.mf-doc.wait .mf-ico::before, .mf-check li.wait .mf-ico::before { content: ''; width: 15px; height: 15px; background: #fff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5V12l3 2'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5V12l3 2'/%3E%3C/svg%3E") center / contain no-repeat; }
.set-wait { flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: 8px; border-radius: 50%; background: var(--gold); color: #fff; vertical-align: middle; }
.set-wait svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.set-nav button .set-wait { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); margin: 0; }
@media (min-width: 1000px) { .set-layout details.sec > summary .set-wait { display: none; } }

/* Inscription chauffeur : libellés dans les champs (team.js viewPartnerRegister), owner 2026-11-20. */
.reg-form .reg-lbl-h { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Téléphone : charte signée = icône verte, pas de pastille (owner, 2026-11-20). */
@media (max-width: 999px) { .tabs button.chr-signed::after { content: none; display: none; } .tabs button.chr-signed:not(.on) svg { color: #23944a; stroke: #23944a; } }

/* En attente de vérification : horloge dorée au trait, sans fond (design 1), owner 2026-11-20. */
.set-wait { width: 20px; height: 20px; background: none; color: var(--gold); border-radius: 0; }
.set-wait svg { width: 18px; height: 18px; stroke-width: 2; }
.set-nav button.on .set-wait { color: #fff; }
.av-st.pending { display: inline-flex; align-items: center; gap: 4px; }
.av-st.pending::before { content: ''; flex: none; width: 12px; height: 12px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat; }
.mf-doc.wait .mf-ico, .mf-check li.wait .mf-ico { background: none !important; color: var(--gold); font-size: 0; }
.mf-doc.wait .mf-ico::before, .mf-check li.wait .mf-ico::before { content: ''; width: 22px; height: 22px; background: var(--gold); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Onglet Charte signé : pas la marge de « Signé » de la page Charte (icône alignée), owner 2026-11-20. */
.tabs button.chr-signed { margin: 0 !important; font-weight: inherit; }

/* Mes véhicules : bouton « Tout télécharger (.zip) » à droite (team.js), owner 2026-11-20. */
.mf-top-veh { justify-content: flex-end; margin-bottom: 10px; }

/* Titres Calendrier et Messages : même style que Facturation (owner, 2026-11-20). */
.cal > h1, .cal h1, .rc-page > h1 { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }

/* Carte « Expire le… » : style du bandeau macaron aéroport, rouge si expiré (home.js), owner 2026-11-20. */
a.hm-exp2 { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid #e8912d; background: color-mix(in srgb, #e8912d 10%, var(--panel)); color: var(--text); text-decoration: none; grid-template-columns: none; }
a.hm-exp2 .grow { flex: 1; min-width: 0; }
a.hm-exp2 b { display: block; font-size: 14px; }
a.hm-exp2 small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.35; }
a.hm-exp2.bad { border-color: #d32f2f; background: color-mix(in srgb, #d32f2f 8%, var(--panel)); }
a.hm-exp2.bad .hm-apt-ico, a.hm-exp2.bad .hm-apt-btn { background: #d32f2f; }
.hm-exps:not([hidden]) { display: flex; flex-direction: column; gap: 10px; }
@media (hover: hover) { a.hm-exp2:hover .hm-apt-btn { background: var(--text); color: var(--bg); } }

/* Bandeaux macaron aéroport et « Expire le… » : sans fond coloré, seulement le contour (owner, 2026-11-20). */
.hm-apt:not([hidden]), a.hm-exp2, a.hm-exp2.bad { background: var(--panel); }

/* Supprimer un utilisateur : icône corbeille en bas à droite de la carte + fenêtre de confirmation (owner, 2026-11-20). */
.ucard .btns.tight .uc-del { margin-left: auto; flex: 0 0 auto; width: 38px; height: 38px; color: var(--red); transition: background-color .3s, color .3s; }
.ucard .btns.tight .uc-del svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .ucard .btns.tight .uc-del:hover { background: var(--red); color: #fff; } }
.ud-dialog { max-width: 440px; text-align: center; }
.ud-dialog .ud-ico { width: 52px; height: 52px; margin: 4px auto 6px; border-radius: 50%; display: grid; place-items: center; color: var(--red); background: color-mix(in srgb, var(--red) 12%, transparent); }
.ud-dialog .ud-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ud-dialog h2 { justify-content: center; }
.ud-dialog p { margin: 8px 0; line-height: 1.45; }
.ud-dialog .ud-restore { padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--gold) 12%, transparent); color: var(--text); font-weight: 500; }
.ud-dialog .btns { justify-content: center; margin-top: 14px; }
.ud-dialog .btn.danger.fill { background: var(--red); color: #fff; border-color: var(--red); }
@media (hover: hover) { .ud-dialog .btn.danger.fill:hover { background: var(--text); color: var(--bg); border-color: var(--text); } }

/* Dossier chauffeur : carte « Nouvelle inscription » (société à valider), owner 2026-11-20. */
.dv-signup { border-color: var(--gold); }
.dv-signup .dv-co { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 16px; align-content: start; padding: 14px; border-radius: 10px; background: var(--panel-2); }
.dv-signup .dv-co .dv-f { min-width: 0; overflow-wrap: anywhere; }
.dv-signup .dv-info .dv-f { overflow-wrap: anywhere; }

/* Carte client : lien « N réservation(s) » vers Transferts filtré (owner, 2026-11-20). */
.uc-meta .uc-bk { align-self: flex-start; color: var(--gold); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; transition: color .3s; }
@media (hover: hover) { .uc-meta .uc-bk:hover { color: var(--text); } }

/* Création de compte chauffeur : zone Kbis (owner, 2026-11-20). */
.reg-kbis { grid-column: 1 / -1; margin: 14px 0 0; }
.reg-kbis.co-bad { border-color: var(--red); }
.reg-kbis { margin: 0 0 14px; }   /* au-dessus de la recherche d'entreprise */

/* Création de compte chauffeur : bouton plus près de la section (owner, 2026-11-20). */
.reg-submit { margin-top: 0; }
.reg-submit .btns { margin-top: 4px; }

/* Votre entreprise : mêmes espaces partout, titre → Kbis → recherche = recherche → bas de la carte (24 px), owner 2026-11-20. */
.reg-sec .reg-kbis { margin: 20px 0 0; }
#rs2 .reg-kbis + .co-look { margin-top: 24px; }

/* Boutons dorés (Gold thread) : au survol fond foncé et texte clair, partout (owner, 2026-11-20). « html.dt .btn.primary »
   (design-thread.css) était plus fort que la règle générale de survol, donc les boutons dorés restaient dorés. */
@media (hover: hover) { html.dt .btn.primary:not(:disabled):hover { background: var(--text); border-color: var(--text); color: var(--bg); } }
#rs2 { padding-bottom: 23px; }   /* bas de la carte = 24 px, comme les autres espaces (ordinateur et téléphone) */
#kbDrop:not(.on) #kbName::after { content: ' *'; color: #d64545; font-weight: 700; }   /* Kbis obligatoire : étoile rouge comme la recherche d'entreprise */

/* Erreur de formulaire en bulle sous le champ (fieldTip, team.js), owner 2026-11-20 */
.f-tip { position: absolute; z-index: 10000; display: flex; align-items: center; gap: 10px; max-width: min(340px, calc(100vw - 32px)); padding: 10px 14px; border-radius: 10px; background: #2b2b2b; color: #fff; font-size: 14px; line-height: 1.35; box-shadow: 0 8px 24px rgba(0,0,0,.22); animation: fTipIn .18s ease-out; }
.f-tip::before { content: ''; position: absolute; top: -6px; left: var(--ax, 22px); width: 12px; height: 12px; background: #2b2b2b; border-radius: 2px; transform: translateX(-50%) rotate(45deg); }
.f-tip i { flex: 0 0 22px; height: 22px; display: grid; place-items: center; border-radius: 5px; background: #e8590c; color: #fff; font-style: normal; font-weight: 800; font-size: 14px; }
@keyframes fTipIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.f-tip { width: max-content; }   /* bulle sur une ligne quand il y a la place */

/* Proposition : 10 s avant « Accepter » (home.js ofDelayBind), owner 2026-11-20. */
.of-wait { display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: default; color: var(--muted); background: var(--panel-2); border-color: var(--line); pointer-events: none; }
.of-ring { flex: none; width: 16px; height: 16px; border-radius: 50%; background: conic-gradient(var(--gold) calc(var(--p) * 360deg), color-mix(in srgb, var(--gold) 22%, transparent) 0); -webkit-mask: radial-gradient(circle, transparent 5px, #000 5.5px); mask: radial-gradient(circle, transparent 5px, #000 5.5px); }
.of-wait-hint { margin: 8px 0 6px; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
@keyframes of-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.of-ready { animation: of-in .3s ease-out; }
@media (prefers-reduced-motion: reduce) { .of-ready { animation: none; } }

/* Charte : frise des étapes (home.js chrStagesHtml), design 2, owner 2026-11-20. */
.chr-tl { position: relative; list-style: none; margin: 8px 0 8px; padding: 0 0 0 18px; }
.chr-tl::before { content: ''; position: absolute; left: 4px; top: 7px; bottom: 7px; border-left: 1.5px solid color-mix(in srgb, var(--gold) 40%, transparent); }
.chr-tl li { position: relative; margin: 0 0 6px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.chr-tl li:last-child { margin-bottom: 0; }
.chr-tl li::before { content: ''; position: absolute; left: -18px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.chr-r .chr-tl li b { display: inline; font-size: 13px; color: var(--text); }
.chr-r small.chr-tl-note { display: block; }

/* Modèle d'e-mail : règle d'envoi sous l'aperçu (pricing.js), owner 2026-11-20. */
.mt-how { flex: none; padding: 12px 16px 14px; border-top: 1px solid var(--line); background: var(--panel); }
.mt-how b { display: block; font-size: 13px; margin-bottom: 4px; }
.mt-how p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

/* Carte utilisateur : bouton WhatsApp (team.js), owner 2026-11-20. */
.btns .uc-wa { flex: none; display: inline-grid; place-items: center; padding: 0 14px; background: #25d366; border-color: #25d366; color: #fff; transition: background-color .3s, color .3s, border-color .3s; }
.uc-wa svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
@media (hover: hover) { .btns .uc-wa:hover { background: #000; border-color: #000; color: #fff; } }

/* Carte utilisateur : crayon « Modifier » en bas à droite (team.js), owner 2026-11-20. */
.btns .uc-edit { flex: none; margin-left: auto; display: inline-grid; place-items: center; width: 38px; padding: 0; }
.uc-edit svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }

/* Carte dispatcher : WhatsApp vert, crayon « Modifier » (orderers.js), owner 2026-11-20. */
.odb-ib.odb-wa { background: #25d366; border-color: #25d366; color: #fff; }
.odb-wa svg { fill: currentColor; stroke: none; }
@media (hover: hover) { .odb-ib.odb-wa:hover { background: #000; border-color: #000; color: #fff; } }
.odb-acts button.odb-edit { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); }
.odb-edit svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.odb-acts { align-items: center; gap: 4px; }

/* Boutons WhatsApp verts : logo blanc (owner, 2026-11-20). */
.btns .uc-wa, .btns .uc-wa svg, .btns .uc-wa svg *, .odb-ib.odb-wa, .odb-ib.odb-wa svg, .odb-ib.odb-wa svg * { color: #fff !important; fill: #fff !important; stroke: none !important; }

/* Sujets du dossier : colonne limitée à la largeur disponible (longue ligne du véhicule coupée par « … »), owner 2026-11-20. */
.mfg-list { grid-template-columns: minmax(0, 1fr); }
.mfg-list > details.mfg { min-width: 0; }
.mfg-sub { white-space: normal; overflow: visible; text-overflow: clip; }   /* ligne du véhicule en entier, sur 2 lignes si besoin */

/* Mon compte : bloc mot de passe ; téléphone : e-mail et mot de passe empilés, alignés à gauche (owner, 2026-11-20). */
.pw-h { margin: 20px 0 8px; color: var(--muted); font-size: 14px; }
.pw-two .f { margin-top: 0; }
@media (max-width: 600px) {
  .pw-two { display: flex; flex-direction: column; gap: 10px; }
  .em-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .em-row .btn { margin-inline-start: 0; margin-top: 4px; }
}

/* Tirer pour actualiser façon iOS (app.js), owner 2026-11-20. */
.ptr { transform: translate(-50%, -50px) scale(.55); transition: none; will-change: transform, opacity; }
.ptr.anim { transition: transform .45s cubic-bezier(.2, .9, .25, 1.15), opacity .35s ease; }
.ptr.spin { transform: translate(-50%, 70px) scale(1) !important; }
.ptr .ptr-ring { width: 24px; height: 24px; transform: rotate(-90deg); transition: opacity .2s; }
.ptr .ptr-ring circle { fill: none; stroke: var(--gold); stroke-width: 2.4; stroke-linecap: round; }
.ptr.armed .ptr-ring circle { stroke-width: 2.8; }
.ptr.spin .ptr-ring, .ptr.spin svg { animation: none; opacity: 0; }
.ptr-wheel { position: absolute; inset: 0; opacity: 0; transition: opacity .2s; }
.ptr.spin .ptr-wheel { opacity: 1; animation: ptr-wheel 0.8s steps(8) infinite; }
.ptr-wheel i { position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); transform-origin: 50% 12px; transform: rotate(calc(var(--i) * 45deg)); opacity: calc(1 - var(--i) * .11); }
@keyframes ptr-wheel { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ptr.anim { transition: opacity .2s; } .ptr.spin .ptr-wheel { animation-duration: 1.6s; } }

/* Formulaire « Ajouter un véhicule » : un champ par ligne sur téléphone, couleur facultative sans rouge (fleetveh.js), owner 2026-11-20. */
.fv-form .sel-btn.mf-miss, .fv-form select.vcol.mf-miss + .sel-btn { border-color: var(--line); animation: none; }
.fv-form .mf-pick { margin-top: 0; }
@media (max-width: 600px) { .fv-form .two { display: flex; flex-direction: column; gap: 0; } .fv-form .btns .btn { flex: 1; } }
.fv-form .mf-pick > span { font-size: 14px; font-weight: 400; letter-spacing: normal; margin-bottom: 5px; }

/* Véhicule de la société : couleur obligatoire, contour rouge tant qu'elle n'est pas choisie (owner, 2026-11-20). */
.fv-form select.vcol.mf-miss + .sel-btn, .fv-form .sel-btn.mf-miss { border-color: #d32f2f; animation: pf-miss-pulse 1.8s ease-in-out infinite; }

/* Tirer pour actualiser : roue centrée (rond de 38 px à l'intérieur de la bordure : centre à 19 px), owner 2026-11-20. */
.ptr-wheel i { top: 8px; transform-origin: 50% 11px; }
.ptr-wheel { transform-origin: 50% 50%; }

/* Marque du véhicule : icône devant le nom (team.js vBrandBind), owner 2026-11-20. */
.vbi { flex: none; width: 18px; height: 18px; margin-right: 10px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: -4px; }
.vbi path { fill: currentColor; stroke: none; }
svg.vbi[viewBox] path[d^="M12 7.5"] { fill: none; stroke: currentColor; stroke-width: 2; }
.fv-form select.vbrand.mf-miss + .sel-btn { border-color: #d32f2f; animation: pf-miss-pulse 1.8s ease-in-out infinite; }

/* Calendrier sur téléphone : tout le détail visible, étape et chauffeur sous les détails (home.js), owner 2026-11-20. */
@media (max-width: 600px) {
  .cal-row { flex-wrap: wrap; align-items: flex-start; row-gap: 6px; padding: 12px 14px; }
  .cal-row > b { padding-top: 1px; }
  .cal-row span.cal-rt { flex: 1 1 calc(100% - 56px); white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.35; }
  .cal-row .cal-rt em { white-space: normal; overflow: visible; text-overflow: clip; margin-top: 3px; line-height: 1.4; }
  .cal-row small.cal-drv { order: 3; margin-left: 56px; max-width: calc(100% - 56px); text-align: left; white-space: normal; }
  .cal-row small.cal-drv:empty { display: none; }
  .cal-row span.hm-stp { order: 4; }
  .cal-row small.cal-drv:empty + span.hm-stp { margin-left: 56px; }
}

/* Carte de course : icône « Bon de commande » après « Ajouter à l'agenda » (home.js), owner 2026-11-20. */
.hm-bon { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; margin: -4px 0 -4px 8px; border: 1px solid currentColor; border-radius: 50%; color: inherit; transition: background-color .3s, color .3s, border-color .3s; }
.hm-bon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .hm-bon:hover { background: var(--text); color: var(--bg); border-color: var(--text); } .hm-tag.next .hm-bon:hover, .hm-tag.live .hm-bon:hover { background: #fff; color: #23944a; border-color: #fff; } }
/* « Réduire » la carte ouverte du fil (owner, 2026-11-25) : rond comme .hm-bon, seulement quand la carte est ouverte dans le fil */
.hm-min { display: none; flex: none; place-items: center; width: 30px; height: 30px; margin: -4px 0 -4px 8px; padding: 0; border: 1px solid currentColor; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.hm-tlbox .hm-min { display: inline-grid; }
.hm-min svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .hm-min:hover { background: var(--text); color: var(--bg); border-color: var(--text); } .hm-tag.next .hm-min:hover, .hm-tag.live .hm-min:hover { background: #fff; color: #23944a; border-color: #fff; } }

/* Annuler la course pleine largeur ; contacts ChauffApp dans la fenêtre d'annulation (owner, 2026-11-20). */
.hm-foot-row .hm-cancel-wide { flex: 1 1 100%; flex-direction: row; gap: 8px; }
.rc-help { margin: 12px 0 8px; color: var(--muted); font-size: 13px; }
.rc-contact { display: flex; gap: 8px; margin-bottom: 14px; }
.rc-contact .hm-fbtn { flex: 1; min-width: 0; }
.rc-contact .hm-fbtn span { white-space: normal; overflow: visible; text-overflow: clip; text-align: center; line-height: 1.2; }

/* Menu des marques : icône visible (owner, 2026-11-20). */
.tf-opt svg.vbi { visibility: visible; width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.tf-opt svg.vbi path { fill: currentColor; stroke: none; }
.tf-opt svg.vbi path[d^="M12 7.5"] { fill: none; stroke: currentColor; stroke-width: 2; }

/* Calendrier : avatar du chauffeur avant l'étape ; course sans chauffeur en rouge clair (home.js calWhoHtml), owner 2026-11-20. */
.cal-row small.cal-drv { overflow: visible; max-width: none; }
.cal-who { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--text); white-space: nowrap; }
.cal-who .drv-ava.cal-av { width: 24px; height: 24px; font-size: 10px; }
.cal-row.cal-unass { background: color-mix(in srgb, #d32f2f 7%, transparent); }
.cal-row.cal-unass.open { background: color-mix(in srgb, #d32f2f 11%, var(--panel-2)); }
@media (max-width: 600px) { .cal-row small.cal-drv { align-self: center; } .cal-row small.cal-drv + span.hm-stp { margin-left: 0; } }

/* Photo du profil : « Changer » et « Retirer » sur une ligne (owner, 2026-11-20). */
.av-btns .btns.tight { flex-wrap: nowrap; }

/* Mon compte : « Mot de passe » collé à ses champs (owner, 2026-11-20). */
details.sec .pw-h { margin: 24px 0 8px; }
details.sec .two.pw-two { margin-top: 0; }
@media (max-width: 600px) { details.sec .two.pw-two { gap: 10px; } }

/* Mon compte : libellés dans les champs, espaces réguliers (home.js acctPlaceholders), owner 2026-11-20. */
.reg-lbl-h { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html.dt details.sec:has(#myMail) > div > * + * { margin-top: 12px; }
html.dt details.sec:has(#myMail) > div > .av-edit + * { margin-top: 20px; }
html.dt details.sec:has(#myMail) > div > #emChange, html.dt details.sec:has(#myMail) > div > .pw-h { margin-top: 24px; }
html.dt details.sec:has(#myMail) > div > .pw-two, html.dt details.sec:has(#myMail) > div > .pw-h + * { margin-top: 0; }
details.sec:has(#myMail) .two { gap: 10px; }
/* plus fort que design-thread.css (chargé après) */
html.dt body details.sec:has(#myMail) > div > * + * { margin-top: 12px; }
html.dt body details.sec:has(#myMail) > div > .av-edit + * { margin-top: 20px; }
html.dt body details.sec:has(#myMail) > div > #emChange, html.dt body details.sec:has(#myMail) > div > .pw-h { margin-top: 24px; }
html.dt body details.sec:has(#myMail) > div > .pw-two, html.dt body details.sec:has(#myMail) > div > .pw-h + * { margin-top: 0; }
html.dt body details.sec:has(#myMail) .two { gap: 10px; }
body details.sec:has(#myMail) .two > label.f { margin-top: 0; }

/* Changer d'adresse e-mail : champs l'un sous l'autre sur téléphone (ridechat.js), owner 2026-11-20. */
body details.sec:has(#myMail) .em-two > label.f { margin-top: 0; }
@media (max-width: 600px) { body details.sec:has(#myMail) .two.em-two { display: flex; flex-direction: column; gap: 10px; } }

/* « Ajouter un chauffeur » : champs serrés, boutons pleine largeur sur téléphone (fleet.js), owner 2026-11-20. */
.fl-form { display: flex; flex-direction: column; gap: 10px; }
.fl-form .f, .fl-form .two { margin: 0; }
.fl-form .two { gap: 10px; }
.fl-form .msg:empty { display: none; }
@media (max-width: 600px) { .fl-form .two { display: flex; flex-direction: column; } .fl-form .btns { flex-direction: column; gap: 8px; margin-top: 4px; } .fl-form .btns .btn { width: 100%; } }
/* Offre gratuite : pas de chauffeur salarié (owner, 2026-11-29). Bloc à contour fin, sans fond gris (règle des sections ouvertes). */
.fl-paid { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin: 4px 0 14px; }
.fl-paid-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--gold-soft, rgba(205,165,91,.13)); color: var(--gold-ink, #775a21); }
.fl-paid-ic svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fl-paid b { display: block; font-size: 15px; line-height: 1.3; }
.fl-paid p { margin: 4px 0 12px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.fl-paid .btn { display: inline-flex; }
@media (max-width: 600px) { .fl-paid { grid-template-columns: 1fr; } .fl-paid .btn { width: 100%; justify-content: center; } }
/* Salarié d'un gérant en offre gratuite : écran « Accès en pause » (fleet.js empPauseRoute, owner 2026-11-29) */
.fl-pause { max-width: 560px; margin: 24px 0; }
.fl-pause h1 { margin: 0; font-size: 22px; line-height: 1.25; }
.fl-pause p { font-size: 14.5px; }

/* Réglages des chauffeurs : libellés dans les champs (home.js setPlaceholdersAll), owner 2026-11-20. */
#sbody .mfg-fields label.f, #sbody .fv-form label.f, #sbody .mf-pick { margin-top: 0; }
#sbody .mfg-fields { gap: 10px; }
#sbody .sel-btn .sel-ph { color: var(--muted); }

/* Réglages : 10 px entre les champs sans libellé ; placeholder en casse normale (owner, 2026-11-20). */
#sbody .fv-form { display: flex; flex-direction: column; gap: 10px; }
#sbody .fv-form > .two { display: grid; gap: 10px; margin: 0; }
#sbody .fv-form > .f, #sbody .fv-form .two > .f, #sbody .fv-form .mf-pick { margin: 0; }
@media (max-width: 600px) { #sbody .fv-form > .two { display: flex; flex-direction: column; gap: 10px; } }
#sbody .fv-form .msg:empty { display: none; }
#sbody .fv-form .btns { margin-top: 6px; }
#sbody .mfg-fields { display: flex; flex-direction: column; gap: 10px; }
#sbody .mfg-fields > * { margin: 0; }
input::placeholder { text-transform: none; }
#sbody .mf-pick .mf-datetxt { font-size: 14px; height: 44px; }
#sbody .mf-pick .mf-calbtn { height: 44px; }

/* Utilisateurs : « + » juste à droite des onglets (owner, 2026-11-20) */
.users-page .us-head.us-row { justify-content: flex-start; gap: 12px; margin: 6px 0 12px; }
.users-page .us-head.us-row .us-seg { margin: 0; min-width: 0; flex: 0 1 560px; }
@media (max-width: 640px) {   /* téléphone : les 4 onglets prennent toute la largeur, « + » reste sur la ligne du titre */
  .users-page { position: relative; }
  .users-page .us-head.us-row .us-add { position: absolute; top: 3px; right: 16px; }
}

/* Utilisateurs › « Toutes les bases » : interrupteur juste à droite du titre, plateforme seulement (team.js viewUsersAll, owner 2026-11-29) */
.users-page .us-head.us-titlerow { justify-content: flex-start; gap: 24px; flex-wrap: wrap; row-gap: 2px; }
.users-page .us-head.us-titlerow h1 { margin-inline-end: 0; }
.us-alldb { display: inline-flex; align-items: center; gap: 10px; margin: 6px 0 10px; font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer; user-select: none; }
.us-alldb input { flex: none; margin: 0; }
.us-all .us-frow.us-bar { margin-top: 6px; }
.us-gnote { margin: 4px 0 14px; font-size: 13px; color: var(--muted); }
.us-gnote .us-gbad { color: var(--bad, #c0392b); }
.ug-space { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 10px; font-size: 14px; }
.ug-space svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ug-space small { color: var(--muted); font-size: 12px; }
/* Icônes sans texte en bas des cartes de « Toutes les bases » : Dossier (pastille = pièces à approuver), Modifier, Ouvrir l'espace (owner, 2026-11-30) */
.ug-card { display: flex; flex-direction: column; }
.ug-ibs { display: flex; gap: 8px; margin-top: auto; padding-top: 14px; }
.ug-ibs .odb-ib { width: 38px; height: 38px; position: relative; text-decoration: none; }
.ug-ibs .odb-ib svg { width: 18px; height: 18px; }
.ug-ibs .odb-ib[data-k] { border-color: var(--gold); color: var(--gold); }
.ug-ibs .odb-ib .ph-bdg { position: absolute; top: -6px; inset-inline-end: -6px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px; background: var(--bad, #c0392b); color: #fff; font: 700 11px/18px Manrope, system-ui, sans-serif; text-align: center; }   /* même pastille que celle du haut (.ph-ib .ph-bdg) */
@media (hover: hover) { .ug-ibs .odb-ib[data-k]:hover { background: var(--text); color: var(--bg); border-color: var(--text); } }
@media (max-width: 640px) {   /* téléphone : l'interrupteur passe sous le titre (le « + » occupe le coin droit) */
  .users-page .us-head.us-titlerow .us-alldb { flex-basis: 100%; margin: 0 0 8px; }
}

/* Fenêtre utilisateur en sections, comme les Réglages (owner, 2026-11-20) */
.dialog.uf .uf-sec { margin-top: 24px; }
.dialog.uf .uf-sec[hidden] { display: none; }
.dialog.uf .uf-h { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 17px; font-weight: 600; }
.dialog.uf .uf-h svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dialog.uf .f { margin: 0 0 12px; }
.dialog.uf .two { gap: 12px; }
.dialog.uf .two > .f { margin-bottom: 12px; }
.dialog.uf .uf-sec > :last-child, .dialog.uf .uf-sec > .two:last-child > .f { margin-bottom: 0; }
.dialog.uf .uf-co .co-res { position: relative; z-index: 2; }
.dialog.uf .uf-co-st { margin: 8px 2px 0; font-size: 13px; color: var(--muted); line-height: 1.4; }
.dialog.uf .uf-co-st.ok { color: #2e8b57; font-weight: 600; }
.dialog.uf .uf-pw { margin: 0 0 12px; max-width: 420px; }
.dialog.uf .uf-pw button { flex: 1; }
.dialog.uf .uf-note { margin: 0 0 4px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.dialog.uf .uf-note[hidden], .dialog.uf .uf-mail[hidden], .dialog.uf .uf-pwf[hidden] { display: none; }
.dialog.uf .uf-mail span small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.dialog.uf .btns { margin-top: 24px; }
/* Modèles d'e-mails : catégories en puces séparées avec leur nombre de modèles, qui passent à la ligne (design 3, owner 2026-11-28). */
.mt-head { display: flex; align-items: flex-start; gap: 16px; }
.mt-head .hint { flex: 1; min-width: 0; }
.mt-lay { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 99px; padding: 7px 14px; font-size: 13px; font-weight: 700; white-space: nowrap; transition: background .3s, color .3s, border-color .3s; }
.mt-lay svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mt-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 10px; }
.mt-cats button { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 99px; padding: 7px 13px 7px 14px; font-size: 13.5px; font-weight: 600; white-space: nowrap; transition: background .3s, color .3s, border-color .3s; }
.mt-cats button .mt-n { background: var(--panel-2); color: var(--muted); border-radius: 99px; padding: 1px 7px; font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; transition: background .3s, color .3s; }
.mt-cats button.on { background: var(--text); border-color: var(--text); color: var(--bg); font-weight: 700; }
.mt-cats button.on .mt-n { background: color-mix(in srgb, var(--bg) 18%, transparent); color: var(--bg); }
@media (hover: hover) {
  .mt-cats button:not(.on):hover, .mt-lay:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
  .mt-cats button:not(.on):hover .mt-n { background: color-mix(in srgb, var(--bg) 18%, transparent); color: var(--bg); }
  .mt-cats button.on:hover { background: var(--bg); color: var(--text); }
  .mt-cats button.on:hover .mt-n { background: var(--panel-2); color: var(--muted); }
}
@media (max-width: 640px) { .mt-cats { gap: 7px; } .mt-cats button { padding: 6px 11px 6px 12px; font-size: 13px; } .mt-head { flex-direction: column; gap: 10px; } }
.dialog.uf .co-box { border-radius: 10px; border-width: 1px; }   /* même champ que les autres */
.dialog.uf .co-box input.co-q { font-size: 14px; padding: 12px 0; }

/* Recadrer la photo de profil (dossier chauffeur), owner 2026-11-20 */
.dv-crop { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0 0; width: 100%; }
.dv-crop svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.avc-ov { z-index: 1200; }
.avc-dialog { max-width: 420px; }
.avc-hint { margin: 6px 0 16px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.avc-stage { position: relative; width: min(320px, calc(100vw - 72px)); aspect-ratio: 1; margin: 0 auto; overflow: hidden; border-radius: 16px; background: #1d1d1d; touch-action: none; cursor: grab; user-select: none; }
.avc-stage.drag { cursor: grabbing; }
.avc-stage img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; user-select: none; }
.avc-mask { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle closest-side, transparent 99.2%, rgba(0,0,0,.68) 100%); }
.avc-mask::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--gold); }
.avc-zl { display: flex; align-items: center; gap: 12px; width: min(320px, calc(100vw - 72px)); margin: 18px auto 0; color: var(--muted); font-size: 20px; line-height: 1; }
.avc-zoom { flex: 1; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 4px; background: var(--line); outline: none; margin: 0; }
.avc-zoom::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); border: 3px solid var(--bg); box-shadow: 0 1px 4px rgba(0,0,0,.3); cursor: pointer; }
.avc-zoom::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--gold); border: 3px solid var(--bg); box-shadow: 0 1px 4px rgba(0,0,0,.3); cursor: pointer; }
.avc-dialog .btns { margin-top: 20px; }
.avc-stage { background: #fff; }   /* zone vide = blanc, comme le fichier enregistré */

/* Recadrer une pièce du dossier chauffeur (owner, 2026-11-20) */
.dcr-dialog { max-width: 640px; }
.dcr-stage { position: relative; margin: 0 auto; touch-action: none; user-select: none; background: #f2f2f2; }
.dcr-stage canvas { display: block; }
.dcr-box { position: absolute; border: 2px solid var(--gold); box-shadow: 0 0 0 9999px rgba(0,0,0,.5); cursor: move; touch-action: none; }
.dcr-stage { overflow: hidden; border-radius: 10px; }
.dcr-box i { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.dcr-box i[data-h=nw] { left: -12px; top: -12px; cursor: nwse-resize; } .dcr-box i[data-h=se] { right: -12px; bottom: -12px; cursor: nwse-resize; }
.dcr-box i[data-h=ne] { right: -12px; top: -12px; cursor: nesw-resize; } .dcr-box i[data-h=sw] { left: -12px; bottom: -12px; cursor: nesw-resize; }
.dcr-tools { display: flex; justify-content: center; gap: 12px; margin-top: 16px; }
.dcr-rot svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dcr-dialog .btns { margin-top: 20px; }
/* Dossier : en-tête fixe en haut de la fenêtre au défilement ; aperçu collé à l'image (owner, 2026-11-20) */
.dv-dialog .dv-head { display: block; position: sticky; top: calc(-1 * var(--dvpt, 20px)); z-index: 5; background: var(--bg); margin: calc(-1 * var(--dvpt, 20px)) -16px 0; padding: var(--dvpt, 20px) 16px 2px; }
.dv-doc .dv-prev { align-self: start; min-height: 0; }
.dcr-box i { width: 20px; height: 20px; }   /* poignées à l'intérieur des coins : jamais coupées */
.dcr-box i[data-h=nw] { left: -3px; top: -3px; } .dcr-box i[data-h=ne] { right: -3px; top: -3px; } .dcr-box i[data-h=sw] { left: -3px; bottom: -3px; } .dcr-box i[data-h=se] { right: -3px; bottom: -3px; }

/* Recadrer la photo : arrière-plan, bouton centré (owner, 2026-11-20) */
.avc-tools { display: flex; justify-content: center; margin-top: 16px; }
.avc-bg { display: inline-flex; align-items: center; gap: 8px; width: auto; }
.avc-bg svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.avc-bg.busy { opacity: .75; cursor: progress; }
.avc-dialog .avc-btns { display: flex; justify-content: center; }

/* Carte de vérification, variante C (owner, 2026-11-20) */
.dv-acts.dv-c { display: block; }
.dv-acts.dv-c > .btn.primary { width: 100%; }
.dv-no { display: flex; align-items: center; gap: 6px; margin-top: 8px; padding: 4px 4px 4px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
.dv-no:focus-within { border-color: var(--gold); }
.dv-no .dv-why { flex: 1; min-width: 0; border: 0; background: transparent; padding: 8px 0; font-size: 14px; color: var(--text); outline: none; box-shadow: none; min-height: 0; }
.dv-no .btn { flex: none; width: auto; min-height: 0; padding: 8px 18px; }
@media (max-width: 999px) { .dv-dialog .dv-head { position: static; } }   /* téléphone : en-tête non fixe (il prendrait la moitié de l'écran) */
/* Retrait de l'arrière-plan en cours : rond qui tourne + lumière dorée sur la photo (owner, 2026-11-20) */
.avc-bg.busy svg { display: none; }
.avc-bg.busy::before { content: ''; width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--gold); border-right-color: transparent; animation: avcSpin .8s linear infinite; flex: none; }
.avc-stage.avc-busy::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 30%, rgba(205, 165, 91,.45) 50%, transparent 70%); background-size: 250% 100%; animation: avcSweep 1.4s ease-in-out infinite; }
@keyframes avcSpin { to { transform: rotate(360deg); } }
@keyframes avcSweep { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.dcr-dialog .avc-btns { display: flex; justify-content: center; }   /* comme Recadrer la photo */

/* Carte de vérification, variante A (owner, 2026-11-20) */
.dv-acts.dv-a { display: block; }
.dv-a .dv-ab { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dv-a .dv-ab .btn { width: 100%; }
.dv-a .dv-why { display: block; width: 100%; box-sizing: border-box; margin-top: 8px; }

/* Pièces du dossier : aperçu devant le nom (home.js mfThumbs), owner 2026-11-20. */
.mf-file { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mf-file .mf-thumb, .mf-thumb { flex: none; position: relative; display: grid; place-items: center; width: 56px; height: 56px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); overflow: hidden; cursor: zoom-in; transition: border-color .3s; }
.mf-thumb img, .mf-thumb canvas { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.mf-thumb.pdf canvas { opacity: 0; transition: opacity .2s; }
.mf-thumb.pdf.ok canvas { opacity: 1; }
.mf-thumb-pdf { position: absolute; font-size: 11px; font-weight: 700; color: #d32f2f; }
.mf-thumb.pdf.ok .mf-thumb-pdf { display: none; }
@media (hover: hover) { .mf-file .mf-thumb:hover { border-color: var(--gold); } }
/* Toutes les pièces : aperçu image + Recadrer (owner, 2026-11-20) */
.dos-th { display: block; margin: 8px 0 6px; width: fit-content; max-width: 100%; }
.dos-th img { display: block; max-width: 100%; max-height: 160px; border-radius: 10px; border: 1px solid var(--line); object-fit: contain; background: var(--panel-2); cursor: zoom-in; }
.dos-crop { display: inline-flex; align-items: center; gap: 6px; width: auto; margin: 6px 0 4px; }
.dos-crop svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Modèles d'e-mails : envoi manuel (owner, 2026-11-20) */
.mt-r .mt-send { flex: none; margin-inline-end: 10px; }
.mt-send svg, .mts-btns svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mts-hint { margin: 0 0 14px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.mts-list { margin-top: 10px; display: grid; gap: 6px; max-height: 340px; overflow: auto; }
.mts-it { position: relative; display: block; width: 100%; text-align: left; padding: 10px 40px 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text); cursor: pointer; transition: border-color .3s, background-color .3s; }
.mts-it b { display: block; font-size: 15px; font-weight: 600; } .mts-it small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.mts-it i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-style: normal; font-weight: 700; color: var(--gold); opacity: 0; }
.mts-it.on { border-color: var(--gold); background: var(--gold-soft); } .mts-it.on i { opacity: 1; }
@media (hover: hover) { .mts-it:hover { border-color: var(--gold); } }
.mts-btns { display: flex; justify-content: center; margin-top: 18px; }
.mts-btns .btn { display: inline-flex; align-items: center; gap: 8px; }
/* Chauffeur entièrement vérifié : carte vert clair (owner, 2026-11-20) */
html .ucard.verified, html.dt .ucard.verified { background: color-mix(in srgb, #2e8b57 11%, var(--panel-2, var(--panel))); border-color: color-mix(in srgb, #2e8b57 26%, transparent); }   /* plus fort que html.dt :is(.ucard…) */

/* Recadrer : bouton 16:9 / 9:16 (home.js docCropOpen), owner 2026-11-20. */
.dcr-ar { height: 38px; min-width: 64px; padding: 0 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--panel); color: var(--text); font: inherit; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
@media (hover: hover) { .dcr-ar:hover { background: var(--text); color: var(--bg); border-color: var(--text); } }

/* « Envoyer à… » : hauteur fixe (la fenêtre ne saute plus en cherchant), choix multiples en pastilles (pricing.js mtSendOpen), owner 2026-11-20. */
.mts-list { height: min(340px, 42vh); max-height: none; align-content: start; transition: opacity .2s; }
.mts-list.busy { opacity: .5; }
.mts-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.mts-chips[hidden] { display: none; }
.mts-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 8px 0 12px; border: 1px solid var(--gold); border-radius: 99px; background: var(--gold-soft); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.mts-chip svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (hover: hover) { .mts-chip:hover { background: var(--text); color: var(--bg); border-color: var(--text); } }

/* Menu des Réglages : 12 px entre le trait du menu de l'app et le menu, 12 px entre le menu et le trait du contenu ; moins de vide à droite des titres (owner, 2026-11-20). */
@media (min-width: 1000px) {
  html.dt body .set-nav { margin-inline: 0 12px; }   /* 20 px de la colonne de gauche, comme toute page (owner, 2026-11-28) */
  html.dt body .set-nav button { padding-inline-end: 40px; }
}

/* Prochaine course : carte sous le haut de la carte, fond légèrement transparent (home.js hmMapUnder), owner 2026-11-20. */
.hm2 .hm-map.under { position: relative; z-index: 0; }
.hm2 .hm-over { position: relative; z-index: 1; }
.hm2 .hm2-top.hm-over { background: color-mix(in srgb, var(--panel) 82%, transparent); }
html.dt .hm2 .hm2-top.hm-over { background: color-mix(in srgb, var(--panel-2) 82%, transparent); }

/* Prochaine course : carte sous le bloc du vol, voile transparent autour ; « dont X € à reverser » en pastille rouge (variation 3), owner 2026-11-20. */
.hm2 .hm-map.under-b::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: var(--hmB); z-index: 450; pointer-events: none; background: color-mix(in srgb, var(--panel) 82%, transparent); }
html.dt .hm2 .hm-map.under-b::after { background: color-mix(in srgb, var(--panel-2) 82%, transparent); }
.hm2 .hm-map.under-b .leaflet-bottom { bottom: var(--hmB); }
.hm2-collect .hm2-dont { display: inline-block; margin-top: 5px; padding: 4px 10px; border-radius: 99px; background: rgba(226, 75, 74, .16); color: #f09595; font-size: 12px; font-weight: 700; }
html[data-theme="light"] .hm2-collect .hm2-dont { background: #fdecec; color: #a32d2d; }
.hm2-collect .hm2-dont i { color: inherit; font-weight: inherit; }

/* Prochaine course : haut plus transparent, carte nue autour du vol (owner, 2026-11-20). */
.hm2 .hm2-top.hm-over { background: color-mix(in srgb, var(--panel) 68%, transparent); }
html.dt .hm2 .hm2-top.hm-over { background: color-mix(in srgb, var(--panel-2) 68%, transparent); }
.hm2 .hm-map.under-b::after, html.dt .hm2 .hm-map.under-b::after { display: none; }

/* Prochaine course : la ligne sous le vol ne colle plus au bas de la carte (owner, 2026-11-20). */
.hm2 .hm-body.hm-over > .hm-fc + * { margin-top: 12px; }

/* Heure en anglais : AM / PM plus petit à côté de la grande heure (app.js tmHtml), owner 2026-11-20. */
.ampm { font-size: .42em; font-weight: 700; margin-inline-start: .18em; letter-spacing: .02em; }

/* Prochaine course : prise en charge et dépose dans une carte blanche sur la carte, comme le vol (home.js), owner 2026-11-20. */
.hm-stops { margin: 6px 0; padding: 2px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.hm-stops .hm-li:last-child { border-bottom: 0; }
.hm2 .hm-body.hm-over > .hm-fc + .hm-stops { margin-top: 10px; }
.hm2 .hm-body.hm-over > .hm-stops + * { margin-top: 12px; }

/* Prochaine course : chauffeur (or) et client (vert) en direct sur la carte, avec leur photo (home.js hmLiveMap), owner 2026-11-20. */
.hml-mark { background: none; border: 0; }
.hml-pin { position: relative; display: block; box-sizing: border-box; width: 40px; height: 40px; border: 3px solid #cda55b; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.28); }
.hml-pin::after { content: ''; position: absolute; left: 50%; top: 100%; margin-top: -1px; transform: translateX(-50%); border: 6px solid transparent; border-top: 9px solid #cda55b; border-bottom: 0; }
.hml-pin.cli { border-color: #1faa6b; } .hml-pin.cli::after { border-top-color: #1faa6b; }
.hml-pin .drv-ava { width: 100%; height: 100%; font-size: 12px; }
.hml-pin.cli .drv-ava { background: #1faa6b; }
.hml-pin.stale { filter: grayscale(1); opacity: .75; }

/* Refus d'inscription : champ raison (owner, 2026-11-20) */
.ud-dialog .dvs-why { display: block; width: 100%; box-sizing: border-box; margin: 4px 0 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text); font: inherit; font-size: 15px; resize: vertical; }
.ud-dialog .dvs-why:focus { border-color: var(--gold); outline: none; }
/* Aperçu des modèles d'e-mail : choisir une vraie réservation (owner, 2026-11-20), pricing.js */
.mt-pvbar { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--line); background: var(--panel); font-size: 13px; }
.mt-pvbar > span { flex: none; color: var(--muted); }
.mt-pvb { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; padding: 5px 8px 5px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; transition: border-color .3s; }
.mt-pvb b { min-width: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-pvb[aria-expanded="true"] { border-color: var(--gold); }
.mt-pvb[aria-expanded="true"] .sel-chev { transform: rotate(180deg); }
@media (hover: hover) { .mt-pvb:hover { border-color: var(--gold); } }
.mt-pvpop { position: absolute; z-index: 5; top: calc(100% + 4px); left: 10px; right: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); box-shadow: 0 12px 32px rgba(0, 0, 0, .25); }
.mt-pvpop[hidden] { display: none; }
.mt-pvpop .mts-list { height: auto; max-height: min(320px, 50vh); }

/* Prochaine course : bouton itinéraire (home.js hmStopsNav) ; survol or clair comme le fond de l'icône avion, bloc vol compris (owner, 2026-11-20). */
.hm-stops .hm-li { align-items: center; }
.hm-go { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: var(--panel); color: var(--gold); transition: background-color .3s, border-color .3s; }
.hm-go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; }
@media (hover: hover) {
  .hm-go:hover { background: color-mix(in srgb, var(--gold) 16%, transparent); border-color: transparent; color: var(--gold); }
  .hm-fc:hover { background: color-mix(in srgb, var(--gold) 12%, var(--panel)); color: var(--text); border-color: color-mix(in srgb, var(--gold) 16%, transparent); }
  .hm-fc:hover .hm-fc-m small { color: var(--muted); }
  .hm-fc:hover .hm-fc-g { color: var(--gold); }
}

/* Prochaine course : lignes prise en charge / dépose, survol or clair, ouvrent Google Maps (home.js hmStopsNav), owner 2026-11-20. */
.hm-stops { padding: 0; overflow: hidden; }
.hm-stops .hm-li.hm-srow { padding: 8px 14px; cursor: pointer; transition: background-color .3s; }
@media (hover: hover) { .hm-stops .hm-li.hm-srow:hover { background: color-mix(in srgb, var(--gold) 12%, var(--panel)); } .hm-stops .hm-li.hm-srow:hover .hm-go { background: var(--panel); } .hm-stops .hm-li.hm-srow .hm-go:hover { background: color-mix(in srgb, var(--gold) 28%, var(--panel)); border-color: transparent; } }

/* Annuler une course : confirmation écrite, puis le bouton apparaît (team.js openRideCancel), owner 2026-11-20. */
.rc-go[hidden] { display: none; }
.rc-go { animation: rcGoIn .25s ease-out; }
@keyframes rcGoIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Annuler une course : bouton grisé jusqu'à « oui je l'ai fait » (team.js), owner 2026-11-20. */
.rc-go { animation: none; }
.rc-go .btn:disabled, .rc-go .btn:disabled:hover { background: var(--line); border-color: transparent; color: var(--muted); opacity: 1; cursor: not-allowed; }

/* Annuler une course : boutons de contact lisibles, l'un sous l'autre sur téléphone (team.js openRideCancel), owner 2026-11-20. */
.rc-contact .hm-fbtn { font-size: 15px; font-weight: 600; min-height: 50px; }
.rc-contact .hm-fbtn img, .rc-contact .hm-fbtn svg { width: 22px; height: 22px; }
@media (max-width: 480px) { .rc-contact { flex-direction: column; } .rc-contact .hm-fbtn { width: 100%; font-size: 15px; padding: 0 16px; gap: 8px; } }

/* Accueil chauffeur : bouton carré « annuler » (croix) à droite du bouton à glisser (home.js hmCancelBeside), owner 2026-11-20. */
html body .hm-slrow.hm-xtra { display: flex; flex-direction: row; align-items: stretch; gap: 10px; padding: 0; border: 0; background: none; }
.hm-slrow .slide-btn { flex: 1; min-width: 0; width: auto; margin: 0; }
.hm-xcancel { flex: none; aspect-ratio: 1; display: grid; place-items: center; padding: 0; border: 1px solid color-mix(in srgb, var(--red) 45%, transparent); border-radius: 16px; background: var(--panel); color: var(--red); cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.hm-xcancel svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
@media (hover: hover) { .hm-xcancel:hover { background: var(--red); border-color: var(--red); color: #fff; } }
@media (max-width: 600px) { .hm-slrow .slide-lbl { padding: 0 12px 0 72px; } }   /* téléphone : le texte du bouton à glisser n'est plus coupé */

/* À préparer : eau et chemise-cravate sur la même ligne si la place le permet (home.js hmExtrasHtml), owner 2026-11-20. */
.hm-xli .hm-li-t { display: flex; flex-wrap: wrap; column-gap: 16px; margin-left: -32px; }
.hm-xli .hm-xh { flex: 0 0 100%; margin-left: 32px; }
.hm-xli .hm-x { flex: 1 1 100%; margin-left: 0; min-width: 0; }
.hm-xli .hm-x:nth-last-child(-n+2) { flex: 1 1 230px; }

/* Annuler une course : la raison apparaît après « oui je l'ai fait » (team.js), owner 2026-11-20. */
.rc-why[hidden] { display: none; }
.rc-why { animation: rcGoIn .25s ease-out; }

/* Accueil chauffeur : bon de commande en bas de la carte, trait fin + téléchargement (home.js hmBonRow), owner 2026-11-20. */
html body .hm-bonrow.hm-xtra { display: flex; flex-direction: row; align-items: stretch; gap: 8px; margin-top: 10px; padding: 0; border: 0; background: none; }
.hm-bonbtn, .hm-bondl { display: flex; align-items: center; justify-content: center; height: 46px; border: .5px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--text); text-decoration: none; transition: background-color .3s; }
.hm-bonbtn { flex: 1; min-width: 0; gap: 8px; font-size: 14px; font-weight: 500; }
.hm-bondl { flex: none; width: 46px; padding: 0; color: var(--gold); cursor: pointer; }
.hm-bonbtn svg, .hm-bondl svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.hm-bonbtn svg { color: var(--gold); }
@media (hover: hover) { .hm-bonbtn:hover, .hm-bondl:hover { background: color-mix(in srgb, var(--gold) 12%, var(--panel)); } }
/* Recadrer : 3 formats (owner, 2026-11-20) */
.dcr-tools .dcr-ars { margin: 0; width: auto; }
.dcr-ars button { padding: 7px 14px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Transferts : carré doré « + » pour réserver (owner, 2026-11-20) */
.t-new { flex: none; width: 47px; border-radius: 10px; border: 1px solid var(--gold); background: var(--gold); color: #fff; display: grid; place-items: center; text-decoration: none; transition: background-color .3s, color .3s, border-color .3s; }
.t-new svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
@media (hover: hover) { .t-new:hover { background: #111; border-color: #111; color: #fff; } }

/* Réservation par l'admin sur un seul écran (owner, 2026-11-20) */
.ab-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.ab-side { position: sticky; top: 16px; }
.ab-sec { margin: 0 0 24px; }
.ab-h { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 18px; font-weight: 600; }
.ab-h i { width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 13px; font-weight: 700; flex: none; }
.ab-sec .bk-sec { margin: 0; } .ab-sec .bk-sec .bk-h { display: none; } .ab-sec .bk-seats-sec { margin-top: 16px; }
.ab-sec .bk-seats-sec .bk-h { display: block; }
.ab-wait { margin: 0; padding: 16px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); font-size: 14px; }
.ab-card .f { margin: 0 0 12px; } .ab-card .two { gap: 12px; } .ab-card > :last-child, .ab-card > .two:last-child .f { margin-bottom: 0; }
.ab-box { margin-bottom: 8px; } .ab-res { display: grid; gap: 6px; margin-bottom: 10px; } .ab-res:empty { display: none; }
.ab-newbtn { display: inline-flex; align-items: center; gap: 8px; width: auto; margin: 0 0 14px; }
.ab-newbtn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.ab-chip { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; margin: 0 0 14px; border: 1px solid var(--gold); border-radius: 12px; background: var(--gold-soft); }
.ab-chip b { display: block; } .ab-chip small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; word-break: break-all; } .ab-chip .btn { width: auto; flex: none; }
.ab-hint { margin: -4px 0 12px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.ab-pays { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 10px; }
.ab-pay { padding: 12px 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.ab-pay.on { background: var(--gold); border-color: var(--gold); color: #fff; }
@media (hover: hover) { .ab-pay:not(.on):hover { background: var(--text); border-color: var(--text); color: var(--bg); } .ab-pay.on:hover { background: #111; border-color: #111; color: #fff; } }
.ab-sum .ab-l { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 8px; font-size: 14px; } .ab-sum .ab-l.mut { color: var(--muted); }
.ab-sum .ab-tot { margin: 4px 0 14px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 17px; }
.ab-sum .ab-pricef { margin: 14px 0 6px; } .ab-sum .ab-notify { margin: 0 0 16px; }
@media (max-width: 999px) { .ab-grid { grid-template-columns: 1fr; } .ab-side { position: static; } }
@media (max-width: 520px) { .ab-pays { grid-template-columns: repeat(2, 1fr); } }

/* Réglages › Paiement : moyens de la réservation par ChauffApp (owner, 2026-11-20) */
.ap-list { display: grid; gap: 8px; margin: 10px 0 12px; }
.ap-row { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.2fr) 36px; gap: 8px; align-items: center; }
.ap-row .ap-on { margin: 0; } .ap-row .ap-name { min-width: 0; } .ap-row .ap-x { width: 36px; height: 36px; }
.ap-add { width: auto; }
@media (max-width: 560px) { .ap-row { grid-template-columns: auto minmax(0, 1fr) 36px; } .ap-row select, .ap-row .sel-btn { grid-column: 2 / 3; grid-row: 2; } .ap-row .ap-x { grid-row: 1; grid-column: 3; } }
/* Réservation admin : même écart (14 px) entre tous les champs, lignes à deux champs comprises ; rien au-dessus du premier (owner, 2026-11-20) */
.ab-page .ab-card .f { margin: 0 0 14px; }
.ab-page .ab-card .two { margin: 0 0 14px; gap: 14px; }
.ab-page .ab-card .two > .f { margin: 0; }
.ab-page .ab-card .ab-hint { margin: 0 0 14px; }
.ab-page .ab-card > :last-child, .ab-page .ab-card > .two:last-child, .ab-page .ab-card > .f:last-child { margin-bottom: 0; }
.ab-page .ab-card .text-link { display: block; width: fit-content; margin: 0 0 14px; line-height: 1.3; }
.ab-page .ab-card .ab-hint { line-height: 1.4; }
.ab-page .ab-card textarea { display: block; }   /* pas d'espace de ligne sous la zone de texte */
.ap-row { grid-template-columns: auto minmax(0, 1fr) auto 36px; } .ap-row .sel-btn { white-space: nowrap; }   /* « Encaissé : … » sur une ligne */

/* Adresses fréquentes : étoile dans les champs d'adresse + réglages (owner, 2026-11-20) */
.bk-place.has-star { padding-inline-end: 108px; }
.bk-star { position: absolute; inset-inline-end: 62px; top: 50%; transform: translateY(-50%); z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--gold); display: grid; place-items: center; padding: 0; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.bk-star svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.bk-star[aria-expanded=true] { background: var(--gold); border-color: var(--gold); color: #fff; }
@media (hover: hover) { .bk-star:hover { background: var(--text); border-color: var(--text); color: var(--bg); } }
.bk-places:not(:has(.bk-swap)) .bk-star { inset-inline-end: 14px; } .bk-places:not(:has(.bk-swap)) .bk-place.has-star { padding-inline-end: 60px; }
.bk-qlist { position: absolute; inset-inline: 8px; top: calc(100% + 6px); z-index: 31; list-style: none; margin: 0; padding: 6px; max-height: 340px; overflow: auto; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.14); }
.bk-qlist button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border: 0; border-radius: 10px; background: none; color: var(--text); text-align: start; cursor: pointer; font: inherit; }
.bk-qlist button b { display: block; font-size: 15px; } .bk-qlist button small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.bk-qlist .bk-sugg-ic svg { color: var(--gold); }
@media (hover: hover) { .bk-qlist button:hover { background: var(--gold-soft); } }
.qp-list { display: grid; gap: 8px; margin: 10px 0 12px; }
.qp-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.qp-main { min-width: 0; } .qp-main input { width: 100%; } .qp-main small { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qp-acts { display: flex; gap: 4px; } .qp-acts .icon-btn { width: 34px; height: 34px; } .qp-acts .qp-del { color: var(--red); }
.qp-addbtn { width: auto; } .qp-add .qp-found { display: grid; gap: 6px; margin-top: 8px; }
@media (max-width: 560px) { .qp-row { grid-template-columns: minmax(0, 1fr) auto; } .qp-row > select, .qp-row > .sel-btn { grid-column: 1 / -1; } }

/* Fiche transfert : bouton œil + aperçu « vue du chauffeur » ; réservation admin : « + » doré du titre Client (owner, 2026-11-20) */
.tp-eye { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--gold); background: var(--bg); color: var(--gold); display: inline-grid; place-items: center; padding: 0; cursor: pointer; flex: none; transition: background-color .3s, color .3s, border-color .3s; }
.tp-eye svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
@media (hover: hover) { .tp-eye:hover { background: var(--text); border-color: var(--text); color: var(--bg); } }
.tpv-dlg { width: auto; max-width: calc(100vw - 24px); max-height: none; overflow: hidden; padding: 16px 20px 20px; margin-top: 16px; }
.tpv-dlg h2 { margin-bottom: 12px; }
.tpv-stage { margin: 0 auto; overflow: hidden; }
.tpv-card { width: 400px; transform-origin: top left; pointer-events: none; user-select: none; }
.tpv-card .hm-next { margin: 0; }
.ab-h .ab-plus { width: 30px; height: 30px; border-radius: 8px; border: 0; background: var(--gold); color: #fff; display: inline-grid; place-items: center; padding: 0; margin-inline-start: 4px; cursor: pointer; transition: background-color .3s; }
.ab-h .ab-plus svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
@media (hover: hover) { .ab-h .ab-plus:hover { background: #111; } }
/* Destination : rond vert, icône blanche (owner, 2026-11-20) */
.bk-place .bk-mark.to, html.dt .bk-place .bk-mark.to { background: #2e8b57; border-color: #2e8b57; color: #fff; }
.bk-place .bk-mark.to svg { stroke: #fff; }
.ab-page .ab-card .ab-box { margin: 0 0 14px; } .ab-page .ab-card .ab-res:not(:empty) { margin: -6px 0 14px; }   /* même écart de 14 px sous la recherche */

/* Réservation admin : véhicule du chauffeur (photo envoyée par lui) et rappel dans le récapitulatif (owner, 2026-11-20) */
.abv-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 0 0 14px; }
.abv { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--text); text-align: start; font: inherit; cursor: pointer; transition: border-color .3s, background-color .3s; }
.abv.on { border-color: var(--gold); background: var(--gold-soft); } .abv-list.one .abv { cursor: default; }
.abv-img { display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--panel-2); }
.abv-img img { width: 100%; height: 100%; object-fit: cover; display: block; } .abv-img i { font-style: normal; font-size: 12px; color: var(--muted); }
.abv-t b { display: block; font-size: 14px; } .abv-t small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.abv .bk-radio { position: absolute; top: 14px; right: 14px; }
@media (hover: hover) { .abv-list:not(.one) .abv:not(.on):hover { border-color: var(--text); } }
.abv-sum { margin: 0 0 14px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; }
.abv-who { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; } .abv-who b { display: block; font-size: 15px; } .abv-who small { display: block; font-size: 12px; color: var(--muted); }
.abv-sum-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; margin: 0 0 8px; }
.abv-sum-t b { display: block; font-size: 14px; } .abv-sum-t small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.abv.on .bk-radio { background: var(--gold); border-color: var(--gold); color: #fff; }   /* véhicule choisi : rond doré coché */

/* Bandeau client en haut : barre dorée, bouton blanc en pilule, ✕ (owner, 2026-11-20, design 2), ridechat.js cliBanner */
.push-bar.cli-bar { gap: 10px; padding: 8px 8px 8px 16px; padding-top: max(8px, env(safe-area-inset-top)); background: var(--gold, #cda55b); color: #fff; font-size: 13.5px; }
.cli-bar .cb-ic { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.push-bar.cli-bar .btn.small { min-height: 30px; padding: 4px 14px; border-radius: 99px; background: #fff; color: #7a6a2a; border-color: #fff; font-weight: 600; transition: background-color .3s, color .3s, border-color .3s; }
.cli-bar .push-bar-x { width: 30px; height: 30px; }
@media (hover: hover) {
  .push-bar.cli-bar .btn.small:hover { background: #101010; border-color: #101010; color: #fff; }
  .cli-bar .push-bar-x { transition: opacity .3s; } .cli-bar .push-bar-x:hover { opacity: .7; }
}

/* Connexion client sur téléphone et tablette : le formulaire au-dessus de la présentation photo (owner, 2026-11-20) */
@media (max-width: 1099px) { .brand-login:has(> .bl-intro.has-photo) > .bl-form { order: -1; } }

/* Page de connexion : lune à la même distance du drapeau que dans la colonne de gauche (13 px entre les icônes), owner 2026-11-20 */
.bl-page > .top [data-act="theme"] { margin-inline-start: -15px; }

/* Espace client connecté (téléphone) : lune à 13 px du drapeau, comme la page de connexion et la colonne de gauche (owner, 2026-11-20) */
html.cl-area .wrap > .top .spacer { order: 10; }
html.cl-area .wrap > .top [data-act="theme"] { margin-inline-start: -17px; }
/* Réservation admin : photo du chauffeur à gauche du véhicule (owner, 2026-11-20) */
.abv-row { display: flex; gap: 10px; align-items: stretch; margin: 0 0 14px; }
.abv-row .abv-list { flex: 1; margin: 0; min-width: 0; }
.abv-person { flex: 0 0 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); text-align: center; }
.abv-person .drv-ava { width: 72px; height: 72px; font-size: 24px; } .abv-person b { font-size: 14px; line-height: 1.3; } .abv-person small { font-size: 12px; color: var(--muted); word-break: break-word; }
@media (max-width: 560px) { .abv-row { flex-direction: column; } .abv-person { flex: none; flex-direction: row; justify-content: flex-start; text-align: start; } .abv-person .drv-ava { width: 52px; height: 52px; } }

/* Menu de l'app avec recherche (data-search), owner 2026-11-20 */
#tfMenu .tf-search { position: sticky; top: -6px; z-index: 2; margin: -6px -6px 6px; padding: 8px; background: var(--bg); border-bottom: 1px solid var(--line); }
#tfMenu .tf-search input { width: 100%; box-sizing: border-box; min-height: 38px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); font: inherit; font-size: 14px; outline: none; }
#tfMenu .tf-search input:focus { border-color: var(--gold); }
#tfMenu .tf-opt[hidden] { display: none; }
/* Véhicule du chauffeur, variante 1 (owner, 2026-11-20) */
.abv1 { max-width: 340px; margin: 0 0 14px; padding: 8px; border: 1.5px solid var(--gold); border-radius: 14px; background: var(--gold-soft); }
.abv1-pic { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; background: var(--panel-2); display: grid; place-items: center; }
.abv1-pic img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; display: block; } .abv1-pic > i { font-style: normal; font-size: 12px; color: var(--muted); }
.abv1-arr { position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #111; font-size: 22px; line-height: 1; display: grid; place-items: center; padding: 0 0 2px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.18); transition: background-color .3s, color .3s; }
.abv1-arr.prev { left: 8px; } .abv1-arr.next { right: 8px; }
@media (hover: hover) { .abv1-arr:hover { background: #111; color: #fff; } }
.abv1-ava { position: absolute; left: 12px; bottom: -22px; border-radius: 50%; border: 3px solid #fff; background: #fff; line-height: 0; }
.abv1-ava .drv-ava { width: 50px; height: 50px; font-size: 17px; }
.abv1-t { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 28px 4px 2px; }
.abv1-t b { display: block; font-size: 15px; } .abv1-t small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.abv1-dots { display: flex; gap: 5px; flex: none; padding-bottom: 4px; } .abv1-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); } .abv1-dots i.on { background: var(--gold); }

/* Bandeau client sans bouton (notifications bloquées) : même marge à droite qu'à gauche (owner, 2026-11-20) */
.push-bar.cli-bar { padding-inline: 16px; }
.push-bar.cli-bar[data-cb="d"] { padding-inline-end: 16px; }

/* Réactions aux messages, design 2 (app.js msgRxHtml), owner 2026-11-20. */
.msg-b[data-rxk] { position: relative; overflow: visible; }
.msg-b.has-rx { margin-bottom: 20px; }
.msg-rx-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--panel); color: var(--gold); cursor: pointer; opacity: .6; transition: opacity .2s, background-color .3s; }
.msg-b.them .msg-rx-btn { left: calc(100% + 8px); }
.msg-b.me .msg-rx-btn { right: calc(100% + 8px); }
.msg-rx-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
@media (hover: hover) { .msg-rx-btn { opacity: 0; } .msg-b:hover .msg-rx-btn, .msg-rx-btn:focus-visible { opacity: 1; } .msg-rx-btn:hover { background: color-mix(in srgb, var(--gold) 14%, var(--panel)); } }
.msg-rx { position: absolute; bottom: -17px; display: flex; gap: 4px; z-index: 1; }
.msg-b.them .msg-rx { left: 10px; }
.msg-b.me .msg-rx { right: 10px; }
.msg-rx-chip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border: 1px solid var(--line); border-radius: 99px; background: var(--panel); color: var(--text); font: inherit; font-size: 12px; cursor: pointer; white-space: nowrap; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.msg-rx-chip span { font-size: 14px; line-height: 1; }
.msg-rx-chip small { font-size: 11.5px; color: var(--muted); }
.msg-rx-chip b { font-size: 11.5px; font-weight: 600; }
.msg-rx-chip.mine { background: color-mix(in srgb, var(--gold) 16%, var(--panel)); border-color: color-mix(in srgb, var(--gold) 45%, transparent); }
.msg-rx-bar { position: absolute; z-index: 60; display: flex; gap: 2px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 99px; background: var(--panel); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.msg-rx-bar button { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: none; font-size: 21px; cursor: pointer; transition: background-color .2s, transform .15s; }
@media (hover: hover) { .msg-rx-bar button:hover { background: color-mix(in srgb, var(--gold) 14%, var(--panel)); transform: scale(1.12); } }

/* Fiche transfert du client : carte du véhicule du chauffeur (.abv1 de la réservation admin), owner 2026-11-20, ridechat.js rcCarHtml */
.dpanel .abv1.rc-car { max-width: 360px; margin: 0 0 14px; }
/* Étoile : liste vide, ajout de l'adresse du champ (owner, 2026-11-20) */
.bk-qlist .qp-empty { padding: 10px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.bk-qlist .qp-addcur { border-bottom: 1px solid var(--line); border-radius: 10px 10px 0 0; }
/* Adresses fréquentes : nom modifiable (crayon), changer l'adresse (owner, 2026-11-20) */
.qp-namebox { position: relative; display: block; } .qp-namebox input { padding-right: 38px; }
.qp-namebox svg { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; fill: none; stroke: var(--gold); stroke-width: 1.8; pointer-events: none; }
.qp-main small { display: flex; gap: 8px; align-items: baseline; } .qp-main small > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qp-main .qp-chg { flex: none; font-size: 12px; }
.qp-repick { margin: 0 0 8px; font-size: 13px; color: var(--muted); }

/* ✕ effacer l'adresse ; prise en charge par défaut (owner, 2026-11-20) */
.bk-clear { position: absolute; top: 50%; transform: translateY(-50%); inset-inline-end: 58px; z-index: 2; width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--panel-2); color: var(--muted); display: grid; place-items: center; padding: 0; cursor: pointer; transition: background-color .3s, color .3s; }
.bk-clear svg { width: 14px; height: 14px; }
@media (hover: hover) { .bk-clear:hover { background: var(--text); color: var(--bg); } }
.bk-place.has-val { padding-inline-end: 96px; }
.bk-place.has-star .bk-clear { inset-inline-end: 102px; } .bk-place.has-star.has-val { padding-inline-end: 136px; }
.bk-places:not(:has(.bk-swap)) .bk-clear { inset-inline-end: 14px; } .bk-places:not(:has(.bk-swap)) .bk-place.has-val { padding-inline-end: 50px; }
.bk-places:not(:has(.bk-swap)) .bk-place.has-star .bk-clear { inset-inline-end: 56px; } .bk-places:not(:has(.bk-swap)) .bk-place.has-star.has-val { padding-inline-end: 92px; }
.qp-acts .qp-def svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.qp-acts .qp-def.on { background: var(--gold); border-color: var(--gold); color: #fff; }
.qp-namebox .qp-tick { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); padding: 3px 9px; border-radius: 99px; background: color-mix(in srgb, #2e8b57 12%, var(--bg)); color: #2e8b57; font-size: 12px; font-weight: 600; white-space: nowrap; pointer-events: none; }
.qp-namebox.ticked > svg { opacity: 0; }   /* « Enregistré » à la place du crayon */
.qp-namebox.ticked input { padding-right: 120px; }
.bk-clear svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.qp-acts .qp-def.on { background: #2e8b57; border-color: #2e8b57; color: #fff; }   /* prise en charge par défaut : vert, icône blanche (owner, 2026-11-20) */
@media (hover: hover) { .qp-acts .qp-def.on:hover { background: #111; border-color: #111; color: #fff; } }
/* Réservation admin : mini-carte du trajet (owner, 2026-11-20) */
.ab-route { margin: 0 0 14px; }
.ab-route .ab-rmap { height: 150px; border-radius: 12px; overflow: hidden; margin: 0; }
.ab-rinfo { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; color: var(--muted); } .ab-rinfo b { color: var(--text); font-weight: 600; }
.bk-star svg { fill: var(--gold); stroke: var(--gold); }   /* étoile pleine dorée (owner, 2026-11-20) */
.bk-star[aria-expanded=true] svg { fill: #fff; stroke: #fff; }
@media (hover: hover) { .bk-star:hover svg { fill: var(--bg); stroke: var(--bg); } }

/* Journal des e-mails : bouton Actualiser à droite du titre (owner, 2026-11-20) */
#secMailLog > summary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ml-refresh { margin-left: auto; width: 38px; height: 38px; border-radius: 50%; color: var(--gold); flex: none; }
.ml-refresh svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ml-refresh.spin svg { animation: avcSpin .8s linear infinite; }
@media (hover: hover) { .ml-refresh:hover { background: var(--text); color: var(--bg); } }

/* Prochaine course : client (photo ou initiales + prénom nom) sous l'heure (home.js), owner 2026-11-20. */
.hm2-cli { display: flex; align-items: center; gap: 8px; margin: 6px 0 2px; min-width: 0; font-size: 15px; font-weight: 600; color: var(--text); }
.hm2-cli > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: capitalize; }
.hm2-cli .drv-ava.hm2-cav { width: 28px; height: 28px; font-size: 11px; flex: none; }
.ml-refresh { pointer-events: auto !important; position: relative; z-index: 2; cursor: pointer; }   /* le titre de la section est non cliquable dans la mise en page des Réglages : le bouton, lui, reste cliquable */

/* Transferts : bouton « Transferts précédents » en haut de la liste (owner, 2026-11-20) */
.t-past { display: flex; justify-content: center; margin: 4px 0 14px; } .t-past .btn { width: auto; }

/* Prochaine course : adresse sur une ligne avec « … » (home.js hmStopsNav), owner 2026-11-20. */
.hm-stops .hm-li-t { min-width: 0; }
.hm-st-main { display: flex; align-items: baseline; gap: .3em; min-width: 0; white-space: nowrap; }   /* seule l'adresse raccourcit, l'heure reste visible */
.hm-st-main > a.hm-addr { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* Course en cours : l'étape est dans la barre verte du haut, plus sous le nom du client (home.js hmLblHtml), owner 2026-11-20. */
.hm2.live .hm2-when { display: none; }

/* Prochaine course : prénom du client entier ; adresse sous « Prise en charge à … » avec « … » (home.js), owner 2026-11-20. */
.hm2-cli > span:last-child { overflow: visible; text-overflow: clip; white-space: normal; }
.hm-st-lbl { display: block; }
.hm-st-main { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-st-main > a.hm-addr { overflow: visible; }

/* Prochaine course : ville, pays sous l'adresse, sur téléphone (home.js hmCityCountry), owner 2026-11-20. */
.hm-st-city { display: none; }
@media (max-width: 600px) { .hm-st-city { display: block; margin-top: 1px; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
/* Fiche transfert : Dispatch et Moi en haut (owner, 2026-11-20) */
.tp-top-r .tp-disp svg, .tp-top-r .tp-me svg { width: 16px; height: 16px; }

/* Proposer : envoyer aussi aux chauffeurs pas prêts (owner, 2026-11-20) */
.dp-bypass small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.dp-row.unready.bypass { opacity: 1; }
/* Fenêtre de dispatch : case des chauffeurs = rond doré de l'app (comme la charte), pas la case carrée du navigateur (owner, 2026-11-23). */
.dp-row input[name=u] { appearance: none; -webkit-appearance: none; display: grid; place-items: center; width: 24px; height: 24px; margin: 0; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--line); background: var(--bg); cursor: pointer; transition: background-color .3s, border-color .3s; }
.dp-row input[name=u]::after { content: ''; width: 6px; height: 10px; margin-top: -3px; border: solid #fff; border-width: 0 2.4px 2.4px 0; transform: rotate(45deg); opacity: 0; transition: opacity .2s; }
.dp-row input[name=u]:checked { background: var(--gold); border-color: var(--gold); }
.dp-row input[name=u]:checked::after { opacity: 1; }
.dp-row input[name=u]:disabled { cursor: not-allowed; }
.dp-row input[name=u]:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
/* Fenêtre de dispatch : étiquette Chauffeur / Dispatcher après le nom (owner, 2026-11-23) */
.dp-row b .pill.dp-role { font-size: 11px; font-weight: 500; padding: 1px 8px; margin-inline-start: 8px; vertical-align: 1px; }
/* Transfert terminé (client déposé) : barre verte à gauche (owner, 2026-11-20) */
html.dt .tcard.tk.dropped, html.dt .tsplit-list .tcard.tk.dropped.on, html.dt .tcard.tk.dropped.on { border-left-color: #2e8b57; }
.tcard.tk.dropped { border-left: 3px solid #2e8b57; }

/* Fiche transfert : en-tête fixe, barre flottante retirée pour Dispatch/Moi, menu … en haut ; champ nombre sans flèches ; photo client (owner, 2026-11-20) */
@media (min-width: 1000px) { .tp-stick { position: sticky; top: 0; z-index: 30; background: var(--bg); padding-top: 12px; margin-top: -12px; padding-bottom: 14px; } }   /* ordinateur : sur téléphone le titre prendrait trop de place */
html.dt .tp-stick .tp-head { margin-bottom: 0; }
.tp-bar.tp-bar-off { display: none; }
.tp-top-r { position: relative; }
.tp-top-r .tp-menu { position: absolute; top: calc(100% + 8px); bottom: auto; inset-inline-end: 0; left: auto; transform: none; z-index: 40; }
.tp-top-r #tpMoreTop svg { width: 18px; height: 18px; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }
input[type=number]::-webkit-outer-spin-button, input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tp-ava img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.tp-ava:has(img) { padding: 0; overflow: hidden; }
@media (min-width: 1000px) { .tp-wrap:has(.tp-stick) > .top { position: static; } }   /* la barre du haut (vide sur ordinateur) ne recouvre plus les boutons fixes */
.tp .leaflet-container { isolation: isolate; z-index: 0; }   /* la carte passe sous l'en-tête fixe */
.tp-top-r { flex-wrap: wrap; justify-content: flex-end; row-gap: 8px; }

/* Proposition : Demain / Après-demain (owner, 2026-11-20) */
.tk-when .of-rel { color: var(--gold); }
.tk-l .of-rel { display: block; color: var(--gold); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3px; }   /* au-dessus de la date, en or */

/* Proposition : adresses liées à Google Maps, 10 px entre les deux (owner, 2026-11-20) */
.of-route .of-addr { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--gold) 55%, transparent); text-underline-offset: 3px; transition: color .3s; }
@media (hover: hover) { .of-route .of-addr:hover { color: var(--gold); } }
.of-route .of-to { display: flex; gap: 6px; margin-top: 10px; } .of-route .of-arr { flex: none; color: var(--gold); }

/* Prochaine course : distance / durée / dépose en bas de la carte blanche, une ligne (home.js hmStopsStats), owner 2026-11-20. */
.hm-st-stats { padding: 7px 10px 8px; border-top: 1px solid var(--line); text-align: center; }
.hm-st-stats small { display: block; margin: 0; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-st-stats:has(#hmDrive:empty) { display: none; }

/* Planning : raccourcis de période ; la liste prend sa hauteur, la carte le reste (owner, 2026-11-20) */
.plan-quick { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 0 14px; padding-bottom: 2px; }
.plan-quick .chip-filter { cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
@media (hover: hover) { .plan-quick .chip-filter:hover { background: var(--text); color: var(--bg); border-color: var(--text); } }
@media (min-width: 1000px) { .plan-page .plan-main { grid-template-rows: fit-content(50%) minmax(0, 1fr); } }

/* Proposition de course : « En attente de réponse » au-dessus du prix (team.js offerCard), owner 2026-11-20. */
.tk-r .of-wait { display: inline-block; margin-bottom: 6px; white-space: nowrap; }

/* Proposition prise par un autre : explication + compte à rebours 60 s (owner, 2026-11-20) */
.tcard.offer.taken { opacity: .92; cursor: default; }
.of-taken-msg { margin: 10px 0 0; font-size: 14px; line-height: 1.45; color: var(--text); }
.of-taken-cd b { background: var(--gold); }
.tcard.offer.taken .btns { display: none !important; }

/* Planning : raccourcis en liste déroulante sur téléphone (owner, 2026-11-20) */
.plan-quick-sel { display: none; margin: 0 0 14px; }
@media (max-width: 640px) { .plan-quick { display: none; } .plan-quick-sel { display: block; } }

/* Proposition de course : adresses et détails sur toute la largeur sous date / prix (team.js offerCard), owner 2026-11-20. */
.tk.offer .of-full { padding: 0; margin-top: 6px; }
.tk.offer .of-full .tk-route { margin-top: 0; }
@media (max-width: 600px) { .tk-r .of-wait { font-size: 11px; padding: 2px 8px; } .tk.offer .tk-when { white-space: nowrap; } }

/* Proposition de course : étiquette en haut à gauche ; Demain | prix, date | Votre rémunération sur les mêmes lignes (team.js offerCard), owner 2026-11-20. */
.tk.offer .of-pillrow { margin-bottom: 8px; }
.tk.offer .of-pillrow .of-wait { margin: 0; }
.tk.offer .tk-main.of-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; align-items: baseline; }
.tk.offer .of-grid > .tk-l, .tk.offer .of-grid > .tk-r { display: contents; }
.tk.offer .of-grid .of-rel { grid-column: 1; grid-row: 1; margin: 0; font-size: 18px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.tk.offer .of-grid .tk-when { grid-column: 1; grid-row: 2; }
.tk.offer .of-grid .tk-price { grid-column: 2; grid-row: 1; justify-self: end; }
.tk.offer .of-grid .co-paylbl { grid-column: 2; grid-row: 2; justify-self: end; }
.tk.offer .of-grid:not(:has(.of-rel)) .tk-when { grid-row: 1; }
.tk.offer .of-grid:not(:has(.of-rel)) .co-paylbl { grid-row: 2; }

/* Proposition de course, design K (team.js offerCard), owner 2026-11-20 : en-tête or clair, 18 px partout, prix en noir. */
.tk.offer.ofk { padding: 0; overflow: hidden; border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); border-radius: 18px; background: var(--panel); }
.tk.offer.ofk::before, .tk.offer.ofk::after { display: none; }
.ofk-head { padding: 18px; background: color-mix(in srgb, var(--gold) 13%, var(--panel)); }
.ofk-top { display: flex; align-items: center; gap: 12px; min-height: 24px; }
.ofk-top .of-rel { display: inline-block; margin: 0; padding: 3px 12px; border-radius: 99px; background: var(--gold); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.ofk-wait { margin-left: auto; color: var(--gold); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-align: right; }
.ofk-main { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-top: 14px; }
.ofk-l { min-width: 0; }
.ofk-title { font-size: 24px; font-weight: 700; line-height: 1.2; color: var(--text); }
.ofk-sub { margin-top: 6px; font-size: 13px; color: var(--muted); }
.ofk-r { flex: none; text-align: right; }
.ofk-price { display: block; font-size: 30px; font-weight: 700; line-height: 1; color: var(--text); }
.ofk-r small { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.ofk-body { display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.ofk-body > * { margin: 0; }
.ofk-addr { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--text); font-size: 15px; text-decoration: none; }
.ofk-addr i { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.ofk-addr i.pick { background: #1faa6b; }
.ofk-addr i.drop { background: #d64545; }
.ofk-addr span { min-width: 0; white-space: nowrap; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
@media (hover: hover) { .ofk-addr:hover span { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; } }
.ofk-meta { font-size: 13px; color: var(--muted); }
.tk.offer.ofk.taken .ofk-head { background: color-mix(in srgb, var(--muted) 10%, var(--panel)); }
.tk.offer.ofk.taken .ofk-wait { color: var(--muted); }
@media (max-width: 480px) { .ofk-title { font-size: 21px; } .ofk-price { font-size: 26px; } }

/* Design K : contour (plus fort que la bande dorée des cartes) ; durée / distance sur leur ligne sur téléphone, owner 2026-11-20. */
html body article.tcard.tk.offer.ofk { padding: 0; overflow: hidden; border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); border-radius: 18px; background: var(--panel); box-shadow: none; }
.ofk-route:not(:empty)::before { content: ' · '; }
@media (max-width: 480px) { .ofk-route { display: block; margin-top: 2px; } .ofk-route:not(:empty)::before { content: none; } }
/* État de la proposition en bandeau doré en haut de la carte (owner, 2026-11-23 : « like the chauffeur card for the client ») */
.ofk-band { display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: var(--gold); color: #fff; font-size: 15px; font-weight: 700; line-height: 1.3; }
.ofk-pulse { position: relative; width: 10px; height: 10px; border-radius: 50%; background: #fff; flex: none; }
.ofk-pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #fff; animation: ofkPing 1.8s cubic-bezier(.16, 1, .3, 1) infinite; }
@keyframes ofkPing { from { transform: scale(1); opacity: .55; } to { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ofk-pulse::after { animation: none; } }
.tk.offer.ofk.taken .ofk-band { background: var(--muted); }
.tk.offer.ofk.taken .ofk-pulse::after { animation: none; }

/* Mon compte : téléphone (admin, client), app.js, owner 2026-11-20. */
.ac-phone { align-items: center; }
.ac-phone input { flex: 1; min-width: 0; max-width: 320px; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); font: inherit; font-size: 15px; }
.ac-phone input:focus { outline: none; border-color: var(--gold); }

/* Fiche transfert : « Envoyer un e-mail au client » (owner, 2026-11-20) */
.tpm-to { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.tpm-to svg, .tpm-btns svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; flex: none; }
.tpm-list { display: flex; flex-direction: column; gap: 10px; }
.tpm-it { display: flex; gap: 12px; align-items: flex-start; text-align: start; width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); cursor: pointer; transition: border-color .3s, background-color .3s; }
.tpm-it i { flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; border: 2px solid var(--line); box-sizing: border-box; transition: border-color .3s; }
.tpm-it.on { border-color: var(--gold); } .tpm-it.on i { border: 5px solid var(--gold); }
.tpm-it b { display: block; font-weight: 600; } .tpm-it small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; line-height: 1.4; }
@media (hover: hover) { .tpm-it:not(.on):hover { border-color: var(--text); } }
.tpm-btns { margin-top: 18px; justify-content: center; } .tpm-btns .btn { display: inline-flex; align-items: center; gap: 8px; }

/* Journal des e-mails : « Lu » (owner, 2026-11-20) */
.ml-pills { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ml-st.read { background: color-mix(in srgb, #2f6fdb 12%, transparent); color: #2f6fdb; }
.ml-st.read.maybe { background: color-mix(in srgb, var(--muted) 14%, transparent); color: var(--muted); }

/* E-mail au client : design 3, Client / Rechercher / Autre adresse (owner, 2026-11-20) */
.tpm-seg { display: flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; margin: 0 0 14px; }
.tpm-seg button { flex: 1; border: 0; background: transparent; color: var(--text); border-radius: 999px; padding: 8px 6px; font: inherit; font-size: 14px; cursor: pointer; transition: background-color .3s, color .3s; white-space: nowrap; }
.tpm-seg button.on { background: var(--gold); color: #fff; }
@media (hover: hover) { .tpm-seg button:not(.on):hover { background: var(--text); color: var(--bg); } }
.tpm-who { margin: 0 0 14px; display: flex; flex-direction: column; gap: 10px; }
.tpm-p, .tpm-pick { display: flex; align-items: center; gap: 10px; text-align: start; width: 100%; }
.tpm-p { padding: 10px 12px; border: 1px solid var(--gold); border-radius: 12px; }
.tpm-av { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.tpm-pn { min-width: 0; flex: 1; } .tpm-pn b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tpm-pn small { display: block; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpm-ck { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--gold); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tpm-q { margin: 0; } .tpm-res { display: flex; flex-direction: column; max-height: 220px; overflow-y: auto; }
.tpm-pick { border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); padding: 9px 4px; font: inherit; cursor: pointer; transition: background-color .3s; border-radius: 8px; }
.tpm-pick:last-child { border-bottom: 0; } .tpm-pick.on .tpm-av { box-shadow: 0 0 0 1.5px var(--gold); }   /* anneau collé à la photo (owner, 2026-11-22) */
@media (hover: hover) { .tpm-pick:hover { background: var(--panel-2); } }
.tpm-other { margin: 0; }

/* Prochaine course : le haut se fond doucement dans la carte, sans trait net (owner, 2026-11-20). */
.hm2 .hm2-top.hm-over::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 34px; pointer-events: none;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--panel) 68%, transparent), color-mix(in srgb, var(--panel) 0%, transparent)); }
html.dt .hm2 .hm2-top.hm-over::after { background: linear-gradient(to bottom, color-mix(in srgb, var(--panel-2) 68%, transparent), color-mix(in srgb, var(--panel-2) 0%, transparent)); }

/* Prochaine course (chauffeur) : plus de « Avant de partir » au-dessus des adresses (owner, 2026-11-20) */
.hm-before { display: none !important; }

/* Envoi manuel : personne puis transferts ; espaces égaux (14 px) sous l'aide et sous la recherche (owner, 2026-11-20) */
.mts .mts-hint { margin: 0 0 14px; } .mts .mts-box { margin: 0; } .mts .mts-chips { margin-top: 14px; } .mts .mts-list { margin-top: 14px; }
.mts-person { position: relative; padding-inline-end: 40px; } .mts-person .mts-go { position: absolute; inset-inline-end: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mts-back { display: flex; align-items: center; gap: 10px; width: 100%; text-align: start; border: 1px solid var(--gold); border-radius: 12px; background: transparent; color: var(--text); padding: 10px 12px; font: inherit; cursor: pointer; transition: background-color .3s, color .3s; }
.mts-back svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mts-back b { display: block; font-weight: 600; } .mts-back small { display: block; color: var(--muted); font-size: 13px; }
@media (hover: hover) { .mts-back:hover { background: var(--text); color: var(--bg); } .mts-back:hover small { color: inherit; } }
.mts-step { margin: 8px 0 2px; font-size: 13px; color: var(--muted); }
.mts-it.past { opacity: .7; }

/* Chauffeur : pastille « coordonnées dans… » (design D) ; photo du client (owner, 2026-11-20) */
.hm-ct-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold); font-size: 13px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
html[data-theme="light"] .hm-ct-pill { background: #f8f3e3; color: #5c4d17; }
.hm-ct-pill svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hm-client .tp-ava img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.hm-client .tp-ava:has(img) { padding: 0; overflow: hidden; }

/* Réglages › Bon de commande : société de ChauffApp (app.js), owner 2026-11-20. */
.bon-co { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.bon-co .f, .bon-co .two { margin: 0; }

/* Permis : n° sur toute la largeur, « obtenu le » et « fin de validité » côte à côte (team.js), owner 2026-11-20. */
#sbody details.mfg[data-g="license"] .mfg-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
#sbody details.mfg[data-g="license"] .mfg-fields > :first-child { grid-column: 1 / -1; }

/* Dossier VTC : champs deux par deux (team.js MF_GROUPS), owner 2026-11-20. */
#sbody details.mfg .mfg-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
#sbody details.mfg .mfg-fields > * { margin: 0; min-width: 0; }
#sbody details.mfg .mfg-fields > :last-child:nth-child(odd) { grid-column: 1 / -1; }
#sbody details.mfg[data-g="license"] .mfg-fields > :last-child:nth-child(odd) { grid-column: auto; }
#sbody details.mfg[data-g="license"] .mfg-fields > :first-child, #sbody details.mfg[data-g="bank"] .mfg-fields > :first-child { grid-column: 1 / -1; }
@media (max-width: 480px) { #sbody details.mfg .mfg-fields { grid-template-columns: minmax(0, 1fr); } #sbody details.mfg .mfg-fields > * { grid-column: auto !important; } }   /* téléphone : un champ par ligne, lisible */

/* Fiche client : photo du véhicule réel (réservé par ChauffApp) dans « Véhicule », même cadre que la photo de catégorie, coins arrondis (owner, 2026-11-20) */
.tp-veh .tp-car.tp-car-real { object-fit: cover; border-radius: 10px; }

/* Réserver : « Le client a déjà payé » (owner, 2026-11-20) */
.ab-paid small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }

/* Ligne client : compte à rebours à droite, aussi sur téléphone, chiffres qui ne bougent pas (home.js), owner 2026-11-20. */
.hm-client:has(.hm-ct-pill) { flex-wrap: nowrap; }
.hm-client:has(.hm-ct-pill) .tp-contact { width: auto; flex: none; margin-left: auto; }
.hm-ct-pill { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Planning : curseur de période avec histogramme (design 2, owner 2026-11-20) */
.plan-quick, .plan-quick-sel { display: none !important; }
.plan-range { margin: 0 0 16px; padding: 14px 16px 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.plan-range.off .plr-fill, .plan-range.off .plr-bars i.on { opacity: .35; }
.plr-hd { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.plr-lbl { font-size: 16px; font-weight: 600; } .plr-n { color: var(--muted); font-size: 13px; }
.plr-bars { display: flex; align-items: flex-end; gap: 1px; height: 34px; padding: 0 11px; }
.plr-bars i { flex: 1; min-width: 0; background: var(--line); border-radius: 2px 2px 0 0; transition: background-color .2s; }
.plr-bars i.on { background: var(--gold); }
.plr-trk { position: relative; height: 30px; margin: 0 11px; touch-action: none; user-select: none; }
.plr-rail { position: absolute; left: 0; right: 0; top: 13px; height: 4px; border-radius: 4px; background: var(--line); }
.plr-fill { position: absolute; top: 13px; height: 4px; border-radius: 4px; background: var(--gold); }
.plr-th { position: absolute; top: 4px; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--gold); box-sizing: border-box; cursor: grab; transition: transform .15s; }
.plr-th.drag { cursor: grabbing; transform: scale(1.15); } .plr-th:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.plr-ticks { position: relative; height: 16px; margin: 0 11px; font-size: 11px; color: var(--muted); }
.plr-ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; } .plr-ticks span:first-child { transform: none; } .plr-ticks span:last-child { transform: translateX(-100%); }
@media (max-width: 640px) { .plan-range { padding: 12px 12px 8px; } .plr-th { width: 26px; height: 26px; margin-left: -13px; top: 2px; } }

/* Ligne client : nom complet sur plusieurs lignes si besoin, jamais « … » (home.js hmClientRow), owner 2026-11-20. */
html body .hm-client .grow b { overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }

/* Ligne client avant le contact, design A (home.js hmClientRow), owner 2026-11-20 : grande photo, compte à rebours sous le texte. */
.hm-client:has(.hm-ct-pill) { align-items: center; gap: 14px; }
.hm-client:has(.hm-ct-pill) .tp-ava { width: 76px; height: 76px; font-size: 24px; flex: none; }
.hm-client:has(.hm-ct-pill) .grow { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.hm-client:has(.hm-ct-pill) .grow b { font-size: 17px; }
.hm-client .grow .hm-ct-pill { margin: 2px 0 0; }
.hm-client:has(.hm-ct-pill) .tp-contact:empty, .hm-client:has(.hm-ct-pill) .tp-contact:not(:has(*)) { display: none; }

/* À préparer : images 64 px (10 px de moins de chaque côté), home.js hmXBox, owner 2026-11-20. */
.hm-x .hm-ximg { width: 64px; height: 64px; padding: 3px; border-radius: 10px; }

/* Charte : ligne d'aide vide cachée (home.js), owner 2026-11-20. */
.chr-note:empty { display: none; }

/* Prochaine course : sans client sous l'heure, heure et date plus grandes (home.js), owner 2026-11-20. */
.hm2 .hm2-cli { display: none; }
.hm2 .hm2-top { align-items: flex-end; }
.hm2 .hm2-day { font-size: 15px; }
.hm2 .hm-time { font-size: 54px; line-height: 1; margin-top: 4px; }
@media (max-width: 480px) { .hm2 .hm-time { font-size: 48px; } }

/* Utilisateurs : téléphone (rôles en liste déroulante, barre du bas dans l'écran), dernière connexion, tri (owner, 2026-11-20) */
.us-tabsel { display: none; position: relative; flex: 1; min-width: 0; }
.us-tabsel .tab-badge { position: absolute; top: 50%; transform: translateY(-50%); inset-inline-end: 42px; pointer-events: none; }
.uc-seen { display: block; margin-top: 2px; }
.us-sortsel { margin: 0 0 14px; max-width: 280px; }
@media (max-width: 640px) {
  .users-page .us-seg { display: none; } .us-tabsel { display: block; }
  .us-sortsel { max-width: none; }
  .tabs.mode-tabs { left: 0; right: 0; width: auto; max-width: 100vw; box-sizing: border-box; }
  .tabs.mode-tabs > * { flex: 1 1 0; min-width: 0; }
}
.us-tabsel .tab-badge { width: auto; min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; display: inline-grid; place-items: center; border-radius: 10px; font-size: 11px; line-height: 1; inset-inline-end: 44px; left: auto; right: 44px; }
.us-tabsel .tab-badge[hidden] { display: none; }

/* Utilisateurs : filtres (Tous, Chauffeurs…) au-dessus, puis recherche + tri en icône à sa droite (team.js usSortBtn), owner 2026-11-29 */
.users-page .us-frow.us-bar { margin-bottom: 14px; }
.us-sbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.us-sgrp { display: flex; align-items: stretch; gap: 10px; flex: 0 1 420px; min-width: 0; }
.us-sbar .us-search { flex: 1 1 auto; min-width: 0; max-width: none; padding: 0; margin: 0; }
.us-sbar .us-inv { margin: 0; }
/* Même présentation interrupteur éteint ou allumé (owner, 2026-11-29) : titre, « ··· » et « + » à droite, pastilles dessous */
.users-page .us-head.us-titlerow .us-tacts { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 10px; }
.us-morebtn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--text); display: grid; place-items: center; padding: 0; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.us-morebtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
@media (hover: hover) { .us-morebtn:hover { background: var(--text); color: var(--bg); border-color: var(--text); } }
.us-morebtn.on, .us-morebtn[aria-expanded="true"] { border-color: var(--gold); color: var(--gold); }
.users-page .us-head.us-titlerow .us-add { position: static; }
.chip-filter .us-chipbadge { position: static; transform: none; margin-inline-start: 6px; vertical-align: middle; }
.users-page:not(.us-all) .us-frow.us-bar { margin-top: 6px; }
@media (max-width: 640px) {
  .users-page .us-head.us-titlerow .us-alldb { order: 3; }
}
.us-sortbtn { flex: none; width: 44px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.us-sortbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.us-sortbtn.on, .us-sortbtn[aria-expanded="true"] { border-color: var(--gold); color: var(--gold); }
@media (hover: hover) { .us-sortbtn:hover { background: var(--text); color: var(--bg); border-color: var(--text); } }
@media (max-width: 999px) { .us-sgrp { flex-basis: 100%; } }

/* Flotte : changer de type (owner, 2026-11-20) */
.od-type { margin-bottom: 14px; } .od-type-hint { margin: -6px 0 14px; }

/* Fiche utilisateur : activité des 30 derniers jours (owner, 2026-11-20) */
.uf-hist { margin-top: 18px; } .uf-hist .uf-h svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.uf-hist-list { display: flex; flex-direction: column; max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; }
.uf-hist-it { display: flex; gap: 12px; padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.4; }
.uf-hist-it:last-child { border-bottom: 0; }
.uf-hist-it time { flex: none; width: 92px; color: var(--muted); font-variant-numeric: tabular-nums; }
.uf-hist-it span { min-width: 0; overflow-wrap: anywhere; }
.uf-hist-list .hint, .uf-hist-list .co-msg { margin: 0; padding: 12px; }
.uf-hist-it time { width: auto; min-width: 96px; white-space: nowrap; }

/* Utilisateurs : les cartes rétrécissent avec l'écran (petits téléphones), rien ne dépasse à droite (owner, 2026-11-20) */
.ugrid { grid-template-columns: minmax(0, 1fr); } .ucard { min-width: 0; }
@media (min-width: 1000px) { .ugrid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); } }
.ucard .btns.tight { flex-wrap: wrap; } .ucard .uc-lines a, .ucard .uc-meta { overflow-wrap: anywhere; }

/* Planning : pastille « Jusqu'au … · +30 jours » en bas à droite de la liste (design 2, owner 2026-11-20) */
.plan-range { display: none !important; }
.plan-more { order: -1; align-self: flex-end; justify-self: end; display: inline-flex; align-items: center; gap: 10px; padding: 4px 4px 4px 14px; border: 1px solid var(--gold); border-radius: 999px; background: var(--panel); font-size: 13px; color: var(--muted); white-space: nowrap; }
.plan-more .btn { margin: 0; border-radius: 999px; min-height: 34px; padding: 6px 14px; display: inline-flex; align-items: center; gap: 6px; }
.plan-more .btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
@media (min-width: 1000px) { .plan-page .plan-main { position: relative; } .plan-page .plan-more { position: absolute; right: 14px; top: calc(var(--plListH, 50%) - 52px); z-index: 5; box-shadow: 0 6px 18px rgba(0,0,0,.12); } }

/* Planning : période + « 30 jours » dans une pastille en haut à droite (owner, 2026-11-20) */
.plan-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border: 1px solid var(--gold); border-radius: 999px; background: var(--panel); min-width: 0; }
.plan-pill .plan-day { border: 0; background: transparent; min-width: 0; }
.plan-pill .plan-day b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-pill #plMore { margin: 0; border-radius: 999px; min-height: 34px; padding: 6px 14px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; flex: none; }
.plan-pill #plMore svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.plan-date { min-width: 0; max-width: 100%; }
@media (max-width: 640px) { .plan-date { flex-wrap: nowrap; width: 100%; } .plan-pill { flex: 1; } .plan-pill .plan-day { flex: 1; padding-inline: 8px; } .plan-pill #plMore { padding: 6px 10px; } }
.plan-date #plPrev, .plan-date #plNext { display: none; }   /* flèches retirées : la pastille période + 30 jours suffit (owner, 2026-11-20) */
@media (min-width: 1000px) { .plan-page .plan-main { grid-template-rows: fit-content(36%) minmax(0, 1fr); } }   /* carte plus haute (owner, 2026-11-20) */
.hm2 .hm2-top { align-items: flex-start; }   /* prochaine course : date et heure en haut, plus collées au bas (owner, 2026-11-20) */

/* Transferts (liste à gauche) : la recherche reste en haut quand la liste défile (owner, 2026-11-20) */
.tsplit-list .tsearch-wrap { position: sticky; top: 0; z-index: 6; background: var(--bg); padding-bottom: 10px; }

/* Fiche transfert (admin) : photo du client en grand, comme sur la carte du chauffeur (owner, 2026-11-20) */
.tp-ava.tp-cli-ava { width: 76px; height: 76px; font-size: 24px; } .tp-ava.tp-cli-ava:has(img) { padding: 0; overflow: hidden; }
.tp-item:has(> .tp-cli-ava) { align-items: center; } .tp-item:has(> .tp-cli-ava) .grow b { font-size: 17px; }

/* Réserver : « Déjà payé » sous le paiement, date du paiement dessous (owner, 2026-11-20) */
.ab-sec .ab-paid { margin-top: 14px; } .ab-paidat { margin-top: 14px; max-width: 280px; }

/* Menu « … » : icône WhatsApp (owner, 2026-11-20) */
.tp-mi[data-k="wa"] svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }

/* Modifier le transfert : champ téléphone plus large (owner, 2026-11-20) */
.tp-e-grid > label.f:has([name="phone"]) { grid-column: span 2; }
@media (max-width: 640px) { .tp-e-grid > label.f:has([name="phone"]) { grid-column: 1 / -1; } }
.tp-e-grid > label.f:has([name="email"]) { grid-column: 1 / 2; } .tp-e-grid > label.f:has([name="phone"]) { grid-column: 2 / 4; }   /* e-mail | téléphone sur une ligne (owner, 2026-11-20) */
@media (max-width: 640px) { .tp-e-grid > label.f:has([name="email"]), .tp-e-grid > label.f:has([name="phone"]) { grid-column: 1 / -1; } }

/* Modifier le transfert : paiement, chauffeur, e-mail au client (owner, 2026-11-20) */
.tp-e-more { display: flex; flex-direction: column; gap: 18px; margin: 4px 0 14px; }
.tpe-sec { border-top: 1px solid var(--line); padding-top: 14px; }
.tpe-h { margin: 0 0 12px; font-size: 15px; font-weight: 600; }
.tpe-sec .ab-paid { margin-top: 14px; } .tpe-sec .ab-paidat { margin-top: 14px; max-width: 280px; }
.tpe-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 14px; } .tpe-two .f { margin: 0; }
@media (max-width: 640px) { .tpe-two { grid-template-columns: minmax(0, 1fr); } }
.tpe-sec .check small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }

/* Modifier le transfert : titre fixe en haut de la fenêtre pendant le défilement (owner, 2026-11-20) */
.tp-edit-dlg > h2 { position: sticky; top: 0; z-index: 6; margin: -20px -16px 4px; padding: 20px 16px 12px; background: inherit; border-radius: 20px 20px 0 0; }
.tp-edit-dlg > h2 { top: -20px; }   /* collé au bord haut de la fenêtre (le défilement part sous le padding) */

/* Repères en direct v2 : 32 px, vraie photo, initiales sinon ; un peu plus grands sur la grande carte (home.js), owner 2026-11-21. */
.hml-mark .hml-pin { width: 32px; height: 32px; border-width: 2px; }
.hml-mark .hml-pin::after { border-width: 5px; border-top-width: 7px; }
.hml-mark.big .hml-pin { width: 40px; height: 40px; border-width: 3px; }
.hml-in { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: #cda55b; color: #fff; font-size: 11px; font-weight: 700; }
.hml-pin.cli .hml-in { background: #1faa6b; }
.hml-in img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Repères en direct : image entière dans le rond (home.js hmLivePin), owner 2026-11-21. */
.hml-in:has(img) { background: #fff; }
.hml-in img { object-fit: contain; }

/* Repères en direct : photo à la taille du rond, plus forte que la règle Leaflet des images de repères, owner 2026-11-21. */
.leaflet-container .leaflet-marker-pane .hml-in img { width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; object-fit: cover; }

/* « Qui conduit ? » design 2 (fleet.js fleetPickHtml), owner 2026-11-21. */
.fl-pick2 { display: flex; align-items: center; gap: 12px; }
.fl-pick2 .drv-ava.fl-av { width: 52px; height: 52px; font-size: 17px; flex: none; box-shadow: 0 0 0 1.5px var(--gold); }   /* anneau doré comme la photo des Réglages (owner, 2026-11-23) */
.fl-pick2 .grow { flex: 1; min-width: 0; }
.fl-pick2 .dpanel-h { margin: 0 0 4px; }
.fl-pick2 .fl-nm { display: block; font-size: 16px; overflow-wrap: anywhere; }
.fl-pick2 .fl-st { flex: none; padding: 3px 10px; border-radius: 99px; background: color-mix(in srgb, var(--gold) 16%, var(--panel)); color: var(--gold); font-size: 12px; font-weight: 700; white-space: nowrap; }

/* Cartes touchables : pas de sélection de texte (Chrome Android ouvrait sa barre « Touchez pour rechercher »), owner 2026-11-21. */
.tcard, .hm-row, .cal-row, .tk { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

/* Liste des transferts : lignes Client / Chauffeur en lien (app.js), owner 2026-11-21. */
.tk-who { display: flex; align-items: center; gap: 8px; margin-top: 8px; min-width: 0; }
.tk-who + .tk-who, .tk-who + .tk-acts { margin-top: 6px; }
.tk-lbl { flex: none; color: var(--muted); font-size: 13px; }
.tk-wbtn { display: inline-flex; align-items: center; gap: 8px; min-width: 0; padding: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-align: left; }
.tk-wbtn > span:last-child { min-width: 0; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--gold) 60%, transparent); text-underline-offset: 3px; overflow-wrap: anywhere; }
.tk-wbtn.ok { color: var(--green); }
.tk-wbtn .drv-ava { flex: none; }
@media (hover: hover) { .tk-wbtn:hover > span:last-child { text-decoration-color: currentColor; } }

/* Menu de contact de la fiche transfert (app.js ctMenuHtml), owner 2026-11-21. */
.ct-wrap { position: relative; }
.ct-menu { position: absolute; z-index: 40; top: calc(100% + 8px); right: 0; min-width: 230px; padding: 6px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); box-shadow: 0 12px 32px rgba(0,0,0,.18); display: flex; flex-direction: column; gap: 2px; }
.ct-menu[hidden] { display: none; }
.ct-it { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border: 0; border-radius: 10px; background: none; color: var(--text); font: inherit; font-size: 15px; text-align: left; text-decoration: none; cursor: pointer; transition: background-color .2s; }
.ct-it > svg, .ct-it > .ct-sms { flex: none; width: 20px; height: 20px; color: var(--gold); }
.ct-it > svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ct-it .ct-sms { display: grid; place-items: center; font-size: 9px; font-weight: 800; letter-spacing: .02em; }
@media (hover: hover) { .ct-it:hover { background: color-mix(in srgb, var(--gold) 12%, var(--panel)); } }

/* Recherche des transferts : croix visible dès qu'il y a du texte (app.js tSearchHtml), owner 2026-11-21. */
.ts-box { position: relative; flex: 1 1 auto; min-width: 0; display: flex; }
.ts-box input[type=search] { flex: 1 1 auto; min-width: 0; padding-right: 40px; }
#tSearch::-webkit-search-cancel-button { display: none; -webkit-appearance: none; }
.ts-clear { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; transition: background-color .3s, color .3s; }
.ts-clear[hidden] { display: none; }
.ts-clear svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (hover: hover) { .ts-clear:hover { background: var(--text); color: var(--bg); } }

/* Menu de contact ouvert au-dessus de l'icône quand il n'y a pas de place en dessous (app.js), owner 2026-11-21. */
.ct-menu.up { top: auto; bottom: calc(100% + 8px); }

/* Liste des transferts : « (Chauffeur) » après le nom (app.js), owner 2026-11-21. */
.tk-role { flex: none; color: var(--muted); font-size: 13px; }

/* Menu de contact : ligne « Pas de numéro de téléphone » (app.js), owner 2026-11-21. */
.ct-it.ct-none { color: var(--muted); cursor: default; }
.ct-it.ct-none > svg { color: var(--muted); }
@media (hover: hover) { .ct-it.ct-none:hover { background: none; } }

/* Liste des transferts : recherche collée sous la barre du haut pendant le défilement (app.js tStickyTop), owner 2026-11-21. */
.tlist-wrap > .tsearch-wrap { position: sticky; top: var(--tl-top, 64px); z-index: 30; background: var(--bg); padding-bottom: 8px; }
.tlist-wrap > .list > .filters:first-child { position: sticky; top: var(--tl-top2, 127px); z-index: 29; background: var(--bg); }

/* Barre du haut : fond plein, plus de fondu transparent (le contenu se voyait dessous), owner 2026-11-21. */
.top { background: var(--bg); }

/* Menu de contact : logo WhatsApp officiel, vert #25D366, plein (app.js ctPhoneItems), owner 2026-11-21. */
.ct-it > svg.wa-logo { width: 22px; height: 22px; color: #25D366; fill: #25D366; stroke: none; }
.ct-it > svg.wa-logo path { fill: #25D366; stroke: none; }

/* Liste des transferts (téléphone) : recherche et filtre glissent sous la barre ChauffApp en descendant (app.js), owner 2026-11-21. */
@media (max-width: 999px) {
  .tlist-wrap > .tsearch-wrap, .tlist-wrap > .list > .filters:first-child { transition: transform .3s ease; }
  body.tl-bars-hide .tlist-wrap > .tsearch-wrap { transform: translateY(-100%); }
  body.tl-bars-hide .tlist-wrap > .list > .filters:first-child { transform: translateY(calc(var(--tl-top, 64px) - var(--tl-top2, 127px) - 100%)); }
}

/* Fiche transfert : nombre de réservations du client / du chauffeur, lien vers la liste filtrée (app.js tpCountLink), owner 2026-11-21. */
.tp-count { display: block; margin-top: 4px; padding: 0; border: 0; background: none; color: var(--gold); font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--gold) 50%, transparent); text-underline-offset: 3px; transition: color .3s; }
@media (hover: hover) { .tp-count:hover { color: var(--text); text-decoration-color: currentColor; } }

/* Choix WhatsApp / WhatsApp Business (super admin, Android), logos officiels, owner 2026-11-21. */
.wa-dialog { max-width: 360px; }
.wa-opts { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.wa-opt { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--text); font: inherit; font-size: 16px; font-weight: 600; text-align: left; cursor: pointer; transition: background-color .3s, color .3s; }
.wa-opt > svg { flex: none; width: 30px; height: 30px; }
.wa-opt > svg.wa-logo, .wa-opt > svg.wa-logo path { fill: #25D366; stroke: none; }
@media (hover: hover) { .wa-opt:hover { background: var(--text); color: var(--bg); } }

/* Choix WhatsApp : fenêtre centrée à l'écran (owner, 2026-11-21). */
.overlay:has(> .wa-dialog) { align-items: center; }
.overlay > .wa-dialog { margin-top: 0; margin-bottom: 0; }

/* Progression : noms des étapes en gras, pas la ligne en dessous (home.js), owner 2026-11-21. */
html body .stage-steps li > span { font-weight: 700; }
html body .stage-steps li > .st-note:not(.ok):not(.cash) { font-weight: 400; }

/* Progression : noms des étapes au-dessus des points, notes et heures dessous (home.js, team.js), owner 2026-11-21. */
html body .stage-steps li { padding-top: calc(2.5em + 26px); }
html body .stage-steps li > span { position: absolute; top: 0; left: 0; right: 0; height: 2.5em; display: flex; align-items: flex-end; justify-content: center; text-align: center; }
html body .stage-steps li i { top: calc(2.5em + 6px); }
html body .stage-steps li::before, html body .stage-steps li::after { top: calc(2.5em + 12px); }

/* Progression : « Prévient le client » masqué, « Client prévenu » seulement après l'étape (home.js), owner 2026-11-21. */
html body .stage-steps .st-note:not(.ok):not(.cash) { visibility: hidden; }

/* Progression : pas d'espace vide sous les points (home.js), owner 2026-11-21. */
html body .stage-steps .st-note:not(.ok):not(.cash), html body .stage-steps time[style*="hidden"] { display: none; }
html body .stage-steps li { padding-bottom: 0; }
html body .stage-steps { margin-bottom: 0; }

/* Accueil chauffeur : pas de titre « Progression » (home.js hm-steps-h), owner 2026-11-21. */
html body .hm-steps-h > span { display: none; }
html body .hm-steps-h { justify-content: flex-end; }
html body .hm-steps-h:not(:has(button)) { display: none; }

/* Progression : place des noms ajustée au nom le plus long (home.js stFit), owner 2026-11-21. */
html body .stage-steps li { padding-top: calc(var(--stn, 2.5em) + 26px); }
html body .stage-steps li > span { height: var(--stn, 2.5em); }
html body .stage-steps li i { top: calc(var(--stn, 2.5em) + 6px); }
html body .stage-steps li::before, html body .stage-steps li::after { top: calc(var(--stn, 2.5em) + 12px); }
html body .stage-steps li { padding-top: calc(var(--stn, 2.5em) + 20px); }
html body .stage-steps li > span + :is(.st-note.ok, .st-note.cash, time:not([style*="hidden"])), html body .stage-steps li > span + .st-note:not(.ok):not(.cash) + time:not([style*="hidden"]) { margin-top: 6px; }

/* Bouton à glisser : flèche qui bouge doucement (owner, 2026-11-21). */
@keyframes knob-wiggle { 0%, 100% { transform: translateX(-2px); } 50% { transform: translateX(3px); } }
.slide-btn .slide-knob svg { animation: knob-wiggle 2.2s ease-in-out infinite; }
.slide-btn.drag .slide-knob svg, .slide-btn[disabled] .slide-knob svg { animation: none; }
@media (prefers-reduced-motion: reduce) { .slide-btn .slide-knob svg { animation: none; } }

/* Repères en direct : âge de la position au-dessus de la photo (home.js hmLivePin), owner 2026-11-21. */
.hml-wrap { position: relative; display: block; }
.hml-age { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); padding: 2px 7px; border-radius: 99px; background: var(--panel, #fff); color: var(--text, #111); box-shadow: 0 1px 4px rgba(0,0,0,.25); font-size: 11px; font-weight: 600; line-height: 1.4; white-space: nowrap; pointer-events: none; }

/* Étiquette d'âge des repères : plus petite, normale (owner, 2026-11-21). */
.hml-age { font-size: 9px; font-weight: 400; padding: 1px 6px; }

/* Liste des transferts : course en cours, design 3 (app.js tk-live), owner 2026-11-21. */
html body .tcard.tk.tk-live { background: color-mix(in srgb, #1f9d55 11%, var(--panel)); border: 1px solid color-mix(in srgb, #1f9d55 32%, var(--panel)); border-radius: 14px; padding: 0 16px 14px; overflow: hidden; }
.tk-live-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 -16px 12px; padding: 6px 16px; background: #1f9d55; color: #fff; font-size: 13px; font-weight: 600; }
.tk-live-h > span:first-child { display: inline-flex; align-items: center; gap: 7px; }
.tk-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; display: inline-block; animation: tk-live-pulse 1.8s ease-in-out infinite; }
@keyframes tk-live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .tk-live-dot { animation: none; } }

/* Liste des transferts : toutes les cartes en boîte, fond transparent, bord gris clair (owner, 2026-11-21). */
html body .list > .tcard.tk, html body .tsplit-list .list > .tcard.tk { background: transparent; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; overflow: hidden; }
html body .list > .tcard.tk.tk-live, html body .tsplit-list .list > .tcard.tk.tk-live { background: transparent; border-color: var(--line); padding-top: 0; }

/* Liste des transferts (admin et client, même carte) : fond vert très clair dès qu'une étape de course existe (owner, 2026-11-21) */
html body .list .tcard.tk.staged { background: color-mix(in srgb, #1f9d55 7%, var(--panel)) !important; }
html[data-theme="dark"] body .list .tcard.tk.staged, html:not([data-theme="light"]) body .list .tcard.tk.staged { background: color-mix(in srgb, #1f9d55 12%, var(--panel)) !important; }
html[data-theme="light"] body .list .tcard.tk.staged { background: color-mix(in srgb, #1f9d55 7%, #fff) !important; }

/* Liste des transferts (admin et client) : 12 px entre deux cartes du même jour (owner, 2026-11-21) */
html body .list .tcard.tk + .tcard.tk { margin-top: 12px; }

/* Fiche transfert : en-tête fixe seulement sur un écran assez haut (téléphone ou tablette à l'horizontale : il cachait la page), owner 2026-11-21 */
@media (max-height: 760px) { html body .tp-stick { position: static !important; margin-top: 0; padding-top: 0; } }

/* Carte du chauffeur : n° du transfert sous le bon de commande (owner, 2026-11-21) */
.hm-ref { margin: 12px 0 0; text-align: center; color: var(--muted); font-size: 13px; letter-spacing: .02em; font-variant-numeric: tabular-nums; }

/* Calendrier du chauffeur : « 2 courses · 315 € total » à droite (owner, 2026-11-21) */
.cal-dh .cal-dr { display: inline-flex; align-items: baseline; gap: 6px; margin-inline-start: auto; white-space: nowrap; }
.cal-dh .cal-dr em { font-style: normal; font-weight: 400; font-size: 13px; color: var(--muted); }
.cal-dh .cal-dr .cal-dn::after { content: "·"; margin-inline-start: 6px; }
.cal-dh .cal-dr .cal-dn:last-child::after { content: none; }

/* Calendrier du chauffeur : rémunération à droite de chaque course (owner, 2026-11-21) */
.cal-row .cal-rt .cal-rp { float: right; margin-inline-start: 10px; color: var(--gold); font-weight: 700; font-size: 15px; white-space: nowrap; }
@media (hover: hover) { .cal-row:hover .cal-rt .cal-rp { color: var(--bg); } }

/* Calendrier : voiture sur sa propre ligne (home.js), owner 2026-11-21. */
.cal-rt em.cal-car { display: block; }

/* Fiche client : WhatsApp / SMS / Appeler dans la carte du chauffeur, design 1 (team.js clientDriverHtml), owner 2026-11-21. */
.cdc-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.cdc-b { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; height: 44px; padding: 0 8px; border: 1px solid var(--line); border-radius: 99px; background: var(--panel); color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color .3s, color .3s, border-color .3s; }
.cdc-b > span { overflow: hidden; text-overflow: ellipsis; }
.cdc-b svg { flex: none; width: 18px; height: 18px; }
.cdc-b.wa { background: #25D366; border-color: #25D366; color: #fff; }
.cdc-b.wa svg.wa-logo, .cdc-b.wa svg.wa-logo path { fill: #fff; stroke: none; }
@media (hover: hover) { .cdc-b:hover { background: var(--text); color: var(--bg); border-color: var(--text); } .cdc-b.wa:hover { background: #000; border-color: #000; color: #fff; } }
.cdc-row { grid-template-columns: 1.25fr 1fr 1fr; gap: 6px; } .cdc-b { gap: 5px; padding: 0 4px; font-size: 13px; } .cdc-b svg { width: 17px; height: 17px; }

/* Courses terminées : nouvelle ligne (home.js hmDoneRow), owner 2026-11-21. */
.hm-drow2 .hm-row-t small { display: block; margin: 0 0 2px; }
.hm-drow2 .hm-row-m > small { display: block; }
.hm-drow2 .hm-row-pr { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.hm-drow2 .hm-row-pr small { font-size: 11px; color: var(--muted); margin-top: 1px; white-space: nowrap; }

/* Fiche client : étapes sous l'en-tête (home.js clStagesTop), owner 2026-11-21. */
.tp-stages-top { margin: 18px 0 6px; }
.tp-stages-top .stage-steps { margin: 0; }

/* Fiche client : étapes en flèches, design E (home.js clChevHtml), owner 2026-11-21. */
.tp-chev { display: flex; gap: 4px; }
.tp-chev > div { flex: 1; min-width: 0; height: 46px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; font-size: 12px; font-weight: 700; line-height: 1.15; padding: 0 6px 0 16px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 12px 50%); }
.tp-chev > div:first-child { padding-left: 8px; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%); }
.tp-chev > div:last-child { padding-right: 8px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 12px 50%); }
.tp-chev > div > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.tp-chev .ok { background: #2a2a2a; color: #fff; }
.tp-chev .ok i { font-style: normal; font-size: 13px; color: #E2CC85; margin-bottom: 1px; }
.tp-chev .cur { background: #cda55b; color: #fff; animation: chev-flash 1.8s ease-in-out infinite; }
.tp-chev .no { background: #f3efe4; color: #bfb08a; }
@keyframes chev-flash { 0%, 100% { background: #cda55b; } 50% { background: #D2BD74; } }
@media (prefers-reduced-motion: reduce) { .tp-chev .cur { animation: none; } }
html body .tp-stages-top { margin: 18px 0 20px; }
.tp-chev { gap: 3px; } .tp-chev > div { font-size: 11px; padding: 0 3px 0 13px; } .tp-chev > div:first-child { padding-left: 5px; } .tp-chev > div:last-child { padding-right: 4px; }
.tp-chev > div { height: 52px; }
.tp-chev > div > span { white-space: normal; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.2; overflow-wrap: anywhere; }

/* Flèches du client : étape en cours fixe, avec ✓ (owner, 2026-11-21). */
.tp-chev .cur { animation: none; }
.tp-chev .cur i { font-style: normal; font-size: 13px; color: #fff; margin-bottom: 1px; }

/* Liste du client : « - Votre chauffeur », mode de paiement au-dessus du prix (owner, 2026-11-21). */
.cl-yd { font-style: normal; font-weight: 400; color: var(--muted); }
.tk-r .tk-pay { display: block; font-size: 11px; color: var(--muted); text-align: right; margin-bottom: 1px; white-space: nowrap; }

/* Flèches du client : coins arrondis aux deux bouts (owner, 2026-11-21). */
.tp-chev { border-radius: 12px; overflow: hidden; }

/* Utilisateurs : épingle, et les 3 icônes serrées (owner, 2026-11-21). */
.uc-top .uc-pin { align-self: flex-start; margin-inline-start: auto; flex: none; }
.uc-top .uc-pin svg { width: 17px; height: 17px; }
.uc-top .uc-pin + .uc-web, .uc-top .uc-pin + .uc-la, .uc-top .uc-web + .uc-la { margin-inline-start: -8px; }
.uc-top .uc-pin.on { background: var(--gold); border-color: var(--gold); color: #fff; }
@media (hover: hover) { .uc-top .uc-pin:hover, .uc-top .uc-pin.on:hover { background: var(--text); color: var(--bg); border-color: var(--text); } }

/* « Modifier le transfert » : sélecteurs date / heure de la réservation (team.js tePick), owner 2026-11-21. */
.tp-e-pick { display: block; position: relative; }
.tp-e-pick .bk-pick-btn { width: 100%; }

/* Cartes utilisateurs : icônes (épingler, site, se connecter en tant que) l'une sous l'autre à droite, le nom a toute la largeur (owner, 2026-11-21) */
.ucard .uc-top:has(> .odb-ib) { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 12px; row-gap: 6px; align-items: start; }
.ucard .uc-top:has(> .odb-ib) > :not(.odb-ib) { grid-row: 1 / span 4; }
.ucard .uc-top:has(> .odb-ib) > .drv-ava, .ucard .uc-top:has(> .odb-ib) > .uc-ava { grid-column: 1; }
.ucard .uc-top:has(> .odb-ib) > .grow { grid-column: 2; }
.ucard .uc-top > .odb-ib { grid-column: 3; margin: 0; }
.ucard .uc-top > .drv-ava.lg { width: 72px; height: 72px; font-size: 22px; }   /* fiche Utilisateurs : photo plus grande (owner, 2026-11-28) */

/* Liste : course terminée en gris, moins d'espace sous le mode de paiement (owner, 2026-11-21). */
html body .tcard.tk.tk-live.tk-done, html body .list > .tcard.tk.tk-live.tk-done, html body .tsplit-list .list > .tcard.tk.tk-live.tk-done { background: color-mix(in srgb, #6b6b6b 9%, var(--panel)); border-color: color-mix(in srgb, #6b6b6b 24%, var(--panel)); }
.tk-done .tk-live-h { background: #5f5f5f; }
.tk-done .tk-live-dot { display: none; }
.tk-r .tk-pay { margin-bottom: 0; line-height: 1.15; }
.tk-r .tk-pay + .tk-price { line-height: 1.1; }
html body .tcard.tk.tk-done.dropped { border-color: color-mix(in srgb, #6b6b6b 24%, var(--panel)) !important; background: color-mix(in srgb, #6b6b6b 11%, var(--panel)) !important; }
html:not(#vpz) body .tcard.tk.tk-done.dropped { background: color-mix(in srgb, #6b6b6b 11%, var(--panel)) !important; }

/* Liste des transferts du client : « Bonjour, Prénom » au-dessus de la recherche (owner, 2026-11-21), ridechat.js clHiHtml */
.cl-hi { padding: 4px 0 2px; }
.tlist-wrap > .cl-hi { padding-inline: 16px; }

/* Factures (téléphone) : la bulle de discussion au-dessus de la barre « Créer la facture » (owner, 2026-11-21) */
@media (max-width: 999px) { body:has(.inv-bar) .rc-fab-all { bottom: calc(var(--tabbar-h, 64px) + 92px); } }
/* Liste des transferts du client : plus de ligne Statut / tri / affichage (owner, 2026-11-21 : « remove this row for clients transfer list ») */
html.cl-area .list > .filters { display: none; }

/* Admin : bouton « Étape suivante » sous les étapes (owner, 2026-11-21) */
.dpanel .stage-next { display: block; width: 100%; margin: 10px 0 6px; background: var(--gold); border-color: var(--gold); color: #fff; font-weight: 600; transition: background-color .3s, color .3s, border-color .3s; }
@media (hover: hover) { .dpanel .stage-next:hover { background: var(--text); border-color: var(--text); color: var(--bg); } }

/* Fiche du client : plus de « Partager ma position », « Voir mon chauffeur sur la carte » ni ligne « Position du chauffeur en direct » (owner, 2026-11-21 : « those three can be removed ») ; la carte du haut montre le chauffeur, le bandeau du haut partage la position. */
html.cl-area .tp .rc-share, html.cl-area .tp #tpSee, html.cl-area .tp #tpLive { display: none !important; }

/* Admin : dispatcher (doré, deux personnes) et m'attribuer (noir, une personne) — ronds sur la carte de la liste, boutons avec
   texte dans la carte « Chauffeur » de la fiche (owner, 2026-11-21, design 1). */
.tk-acts.tk-ci { justify-content: flex-end; gap: 8px; margin-top: 8px; }
.tk-who + .tk-acts.tk-ci { margin-top: -30px; pointer-events: none; }
.tk-cib { pointer-events: auto; flex: none; width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 1px solid var(--gold); background: var(--gold); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.tk-cib.tk-me { background: #101010; border-color: #101010; margin: 0; }
.tk-cib svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tp-asg { display: flex; gap: 8px; margin-top: 12px; }
.tp-asg .btn { flex: 1; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 99px; font-weight: 600; color: #fff; transition: background-color .3s, color .3s, border-color .3s; }
.tp-asg .btn svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tp-asg-d { background: var(--gold); border-color: var(--gold); }
.tp-asg-m { background: #101010; border-color: #101010; }
.tp-top-r #tpDisp, .tp-top-r #tpMe { display: none; }
@media (hover: hover) {
  .tk-cib.tk-offer:hover, .tp-asg-d:hover { background: #101010; border-color: #101010; color: #fff; }
  .tk-cib.tk-me:hover, .tp-asg-m:hover { background: #fff; border-color: #101010; color: #101010; }
}
[data-theme="dark"] .tk-cib.tk-me, [data-theme="dark"] .tp-asg-m { background: #fff; border-color: #fff; color: #101010; }
/* Admin, course attribuée à moi : lien rouge « Retirer » dans le coin en haut à droite de la carte « Chauffeur » (owner, 2026-11-21, design 3) */
.tp > section.tp-sec:has(.tp-unme) { position: relative; }
.tp-unme { position: absolute; top: 14px; inset-inline-end: 14px; color: var(--red, #c0392b); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 2px 0; cursor: pointer; transition: opacity .3s; }
@media (hover: hover) { .tp-unme:hover { opacity: .65; } }

/* Admin : étapes de la course à toucher, étape en cours en pastille dorée (owner, 2026-11-21, design 4) */
.stage-steps.tap li { cursor: pointer; }
.stage-steps.tap li span { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); transition: color .3s, background-color .3s; }
/* Étape en cours : pastille dorée centrée sur son point, posée sur la même ligne que les autres noms (owner, 2026-11-23). */
.stage-steps.tap li.cur span { text-decoration: none; }
.stage-steps.tap .st-lb { font: inherit; font-weight: 700; }
.stage-steps.tap li.cur .st-lb { display: inline-flex; align-items: center; justify-content: center; min-height: 22px; padding: 0 11px; margin-bottom: -3px; border-radius: 99px; background: var(--gold); color: #fff; line-height: 1; white-space: nowrap; transition: background-color .3s, color .3s; }
@media (hover: hover) { .stage-steps.tap li:not(.cur):hover span { color: var(--gold); text-decoration-color: var(--gold); } .stage-steps.tap li.cur:hover .st-lb { background: var(--text); color: var(--bg); } }

/* Accueil du chauffeur, carte « Prochaine course » : « Qui conduit ? », véhicule, étapes et bouton à glisser dans UN seul
   cadre, séparés par un filet (owner, 2026-11-21, design 1 : « make it one widget, no separation »). */
.hm2 .hm-body > .hm-xtra:has(> .hm-steps) { display: block; }
.hm2 .hm-body > .hm-xtra:has(> .hm-steps) > .dp-note { margin-bottom: 10px; }
.hm2 .hm-body > .hm-xtra:has(> .hm-steps) > .hm-picks { display: block; margin: 0; }
.hm2 .hm-body > .hm-xtra:has(> .hm-steps) > .hm-picks > .dpanel { margin: 0; border-radius: 0; border-bottom: 0; box-shadow: none; }
.hm2 .hm-body > .hm-xtra:has(> .hm-steps) > .hm-picks > .dpanel:first-child { border-radius: 14px 14px 0 0; }
.hm2 .hm-body > .hm-xtra > .hm-picks + .hm-steps { margin: 0; border-radius: 0 0 14px 14px; box-shadow: none; }
.hm2 .hm-body > .hm-xtra:has(+ .hm-slrow) > .hm-steps { margin-bottom: 0; border-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; box-shadow: none; }
.hm2 .hm-body > .hm-xtra:has(> .hm-steps) + .hm-slrow { margin-top: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 0 0 14px 14px; background: var(--bg); }
.hm2 .hm-body > .hm-xtra:has(> .hm-steps):has(+ .hm-slrow) { margin-bottom: 0; }

/* « Qui conduit ? » : nom sur une ligne avec « … » (fleet.js fleetPickHtml), owner 2026-11-21. */
.fl-pick .sel-btn { min-width: 0; width: 100%; }
.fl-pick .sel-btn > span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Croix « Annuler » dans la ligne du bon de commande (home.js hmCancelToBon), owner 2026-11-21. */
.hm-bonrow .hm-xcancel { flex: none; align-self: center; min-height: 0; padding: 0; display: grid; place-items: center; }
.hm-bonrow .hm-xcancel svg { width: 22px; height: 22px; }

/* ---------- Choix de la langue : même fenêtre que le calendrier, pas plein écran (owner, 2026-11-22) ----------
   Panneau sous le drapeau : bord fin, coins 16 px, ombre douce, titre + croix ronde, ouverture dtm-drop 0,18 s depuis le coin
   du drapeau (haut gauche ; haut droit en arabe), fond transparent qu'un toucher referme. Construit par openLangPicker (app.js). */
.lang-pop-bg { position: fixed; inset: 0; z-index: 1150; background: transparent; }
.lang-list.lang-pop { position: fixed; max-height: calc(100dvh - 120px); overflow: auto; overscroll-behavior: contain; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 14px 40px rgba(0, 0, 0, .18); padding: 14px 10px 10px; }
.lang-pop .lang-head { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 10px; }
.lang-pop .lang-head b { font-size: 18px; font-weight: 700; }
.lang-pop .lang-x { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--text); display: grid; place-items: center; padding: 0; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.lang-pop .lang-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (hover: hover) { .lang-pop .lang-x:hover { background: var(--text); color: var(--bg); border-color: var(--text); } }
.lang-pop .lang-opt { padding: 10px 10px; font-size: 15px; }
html.dtm .lang-list.lang-pop { transform-origin: top left; animation: dtm-drop .18s var(--ease-out) both; }
html.dtm[dir="rtl"] .lang-list.lang-pop { transform-origin: top right; }
@media (prefers-reduced-motion: reduce) { html.dtm .lang-list.lang-pop { animation-name: dtm-fade !important; } }

/* ---------- Jamais de surbrillance bleue au toucher ni de cadre bleu au clic, nulle part (owner, 2026-11-22 : « a little squared
   blue highlight show up … make sure that never happened in any of the gui ») ----------
   1) Téléphones : le navigateur colore en bleu tout ce qu'on touche (-webkit-tap-highlight-color) : coupé partout.
   2) Souris / doigt : aucun contour de focus (le bouton garde son propre état, ex. survol).
   3) Clavier seulement : un contour doré à la place du contour bleu du navigateur (accessibilité). :where() = priorité nulle,
      les contours déjà dessinés par l'app (champs, calendrier…) restent ceux-là. */
html, *, *::before, *::after { -webkit-tap-highlight-color: transparent; }
:focus:not(:focus-visible) { outline: none; }
:where(:focus-visible) { outline: 2px solid var(--gold, #cda55b); outline-offset: 2px; }

/* Recadrer la photo, design 5 (owner, 2026-11-22) : « Retirer l'arrière-plan » en interrupteur, « Remplacer » à gauche d'Enregistrer,
   écarts resserrés (14 / 18 px) ; sur téléphone la fenêtre monte du bas en gardant 10 px de marge à gauche, à droite et en bas. */
.avc-sw { display: flex; align-items: center; gap: 12px; width: min(320px, calc(100vw - 72px)); margin: 14px auto 0; padding: 8px 12px 8px 8px; border-radius: 14px; background: var(--panel-2); cursor: pointer; }
.avc-swi { width: 32px; height: 32px; border-radius: 10px; background: var(--bg); display: grid; place-items: center; flex: none; color: var(--text); }
.avc-swi svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.avc-swl { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; }
.avc-sw.busy { cursor: progress; }
.avc-sw.busy .avc-swi svg { display: none; }
.avc-sw.busy .avc-swi::before { content: ''; width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--gold); border-right-color: transparent; animation: avcSpin .8s linear infinite; }
.avc-dialog .msg { text-align: center; }
.avc-dialog .msg:empty { display: none; }
.avc-dialog .btns.avc-btns { display: flex; gap: 10px; width: min(320px, calc(100vw - 72px)); margin: 18px auto 0; }
.avc-dialog .avc-btns .btn { flex: 1 1 0; min-width: 0; margin: 0; }
.avc-rep svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
@media (max-width: 640px) {
  .overlay.avc-ov { align-items: flex-end; }
  .avc-ov > .avc-dialog { width: calc(100% - 20px); margin: 0 0 10px; max-height: calc(100% - 20px); border-radius: 22px; padding: 10px 16px 22px; }
  .avc-ov > .avc-dialog::before { content: ''; display: block; width: 38px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto 12px; }
  html.dtm .overlay.avc-ov > .dialog { animation: avcSheet .28s cubic-bezier(.22, 1, .36, 1) both; }
}
@keyframes avcSheet { from { opacity: 0; transform: translateY(40px); } }
@media (prefers-reduced-motion: reduce) { html.dtm .overlay.avc-ov > .dialog { animation: none; } }
/* Retrait de l'arrière-plan : pourcentage sous le texte (owner, 2026-11-22) */
.avc-swp { display: block; margin-top: 1px; font-size: 12.5px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
/* Bouton clair/sombre : plus de cercle autour de l'icône en mode sombre, comme le drapeau (owner, 2026-11-22) */
html:not([data-theme="light"]) .tool-btn[data-act="theme"], html:not([data-theme="light"]) .tool-btn[data-act="theme"]:hover { background: transparent; border-color: transparent; }
/* « Modifier le transfert » : Enregistrer en haut à droite, à côté de la croix, toujours visible (en-tête collant), owner 2026-11-22 */
.tp-edit-dlg > h2 { gap: 12px; }
.tp-edit-dlg > h2 .te-title { flex: 1; min-width: 0; }
.tp-edit-dlg > h2 .te-acts { display: flex; align-items: center; gap: 10px; flex: none; margin-left: auto; }
.tp-edit-dlg > h2 .te-acts button { margin-left: 0; }
/* Dossier chauffeur (admin) : Recadrer et Remplacer côte à côte (owner, 2026-11-22) */
.dos-acts { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 4px; }
.dos-acts .dos-crop { flex: 1 1 0; min-width: 120px; margin: 0; justify-content: center; }
.dos-rep.busy { opacity: .6; cursor: progress; }
/* Fiche utilisateur (admin) : Enregistrer en haut à côté de la croix, en-tête collant comme « Modifier le transfert » (owner, 2026-11-22) */
.dialog.uf > h2 { position: sticky; top: -20px; z-index: 6; margin: -20px -16px 4px; padding: 20px 16px 12px; background: inherit; border-radius: 20px 20px 0 0; gap: 12px; }
.dialog.uf > h2 .te-title { flex: 1; min-width: 0; }
.dialog.uf > h2 .te-acts { display: flex; align-items: center; gap: 10px; flex: none; margin-left: auto; }
.dialog.uf > h2 .te-acts button { margin-left: 0; }
.dialog.uf .uf-foot:empty { display: none; }
/* Fiche utilisateur : Désactiver et Supprimer aussi en haut (owner, 2026-11-22) ; sur téléphone les boutons passent sous le titre */
.dialog.uf > h2 { flex-wrap: wrap; row-gap: 10px; }
.dialog.uf > h2 .te-acts { flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
@media (max-width: 560px) { .dialog.uf > h2 .te-title { flex-basis: calc(100% - 52px); } .dialog.uf > h2 .te-acts { flex-basis: 100%; } .dialog.uf > h2 .te-acts #closeU { position: absolute; top: 16px; right: 16px; } }
/* Fiche utilisateur sur téléphone : Désactiver, Supprimer, Enregistrer en icônes seules, sur la ligne du titre (owner, 2026-11-22) */
.dialog.uf > h2 .te-acts .uf-i { display: none; }
@media (max-width: 560px) {
  .dialog.uf > h2 { flex-wrap: nowrap; }
  .dialog.uf > h2 .te-title { flex: 1 1 auto; flex-basis: auto; }
  .dialog.uf > h2 .te-acts { flex-basis: auto; flex-wrap: nowrap; gap: 6px; }
  .dialog.uf > h2 .te-acts #closeU { position: static; }
  .dialog.uf > h2 .te-acts .btn.small { width: 40px; height: 40px; min-height: 40px; padding: 0; border-radius: 50%; }
  .dialog.uf > h2 .te-acts .btn.small > span { display: none; }
  .dialog.uf > h2 .te-acts .uf-i { display: block; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
}
/* Fiche utilisateur (admin) : dossier VTC modifiable (owner, 2026-11-22) */
.dialog.uf .u-legal[hidden] { display: none; }
.dialog.uf .uf-lg-g + .uf-lg-g { margin-top: 14px; }
.dialog.uf .uf-lg-h { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.dialog.uf .uf-lg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
.dialog.uf .uf-lg-grid > .f, .dialog.uf .uf-lg-grid > .bk-field { margin: 0; min-width: 0; }
.dialog.uf .uf-lbl, .dialog.uf .uf-lg-grid .mf-pick > span { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
@media (max-width: 640px) { .dialog.uf .uf-lg-grid { grid-template-columns: 1fr; } }
.dialog.uf .uf-lg-grid .bk-field.mf-pick > span:first-child { font-size: 12.5px; font-weight: 400; color: var(--muted); margin: 0 0 4px; }
/* Photo : Recadrer et Retirer en icônes rondes, les boutons tiennent sur la ligne du téléphone (owner, 2026-11-22) */
.av-btns .btn.av-ic { width: 38px; height: 38px; min-height: 38px; padding: 0; border-radius: 50%; display: inline-grid; place-items: center; }
.av-btns .btn.av-ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.av-btns .btns.tight { align-items: center; }
/* Bouton à glisser : le remplissage suit les coins du bouton (20 px), plus de coins clairs à gauche (owner, 2026-11-22) */
.slide-btn .slide-fill { border-radius: inherit; }
/* Message traduit : « Traduit » à gauche, « Voir l'original » à droite (owner, 2026-11-23). */
.msg-trl { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 4px 0 0; font-size: 11px; }
.msg-trl > span { opacity: .6; }
.msg-trl .msg-trb { display: inline; margin: 0; text-align: end; }
/* Barre d'émojis au-dessus de la fenêtre de chat (bulle, z-index 1100), sinon cachée derrière (owner, 2026-11-23). */
.msg-rx-bar { z-index: 1300; }

/* Users › Partenaires, téléphone : site, e-mail, appel et WhatsApp regroupés dans un seul bouton « ⋯ » (owner, 2026-11-23) */
.odb-more { display: none; flex: none; }
.odb-more .odb-ib { cursor: pointer; font: inherit; padding: 0; }
.odb-more .odb-ib svg { stroke-width: 2.6; }
@media (max-width: 640px) {
  .odb-top > .odb-ib { display: none; }
  .odb-more { display: block; }
}

/* ---------- Réglages › Santé de l'app (health.js), owner 2026-11-23, design 5 « Limites et réglages » ----------
   Deux colonnes quand la carte est assez large (jauges à gauche ; écrans lents, ménage, à regarder à droite), une seule sinon. */
.hl { container-type: inline-size; }
.hl-checked { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; }
.hl-checked .btn { display: inline-flex; align-items: center; gap: 8px; }
.hl-checked .btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.hl-two { display: grid; grid-template-columns: minmax(0, 1fr); }
@container (min-width: 700px) { .hl-two { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 40px; } }
.hl-sec { margin-top: 32px; }
.hl-sec > h3 { font-size: 18px; font-weight: 700; margin: 0 0 4px; padding-bottom: 8px; border-bottom: 1px solid var(--line); text-transform: none; letter-spacing: 0; color: var(--text); }
.hl-num { font-variant-numeric: tabular-nums; }
.hl-muted { color: var(--muted); font-weight: 500 !important; }
.hl-lim { padding: 12px 0; }
.hl-lim-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.hl-lim-h b { font-weight: 600; }
.hl-lim-h span { font-weight: 700; white-space: nowrap; }
.hl-lim small { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; }
.hl-meter { position: relative; height: 8px; margin-top: 8px; border-radius: 99px; background: color-mix(in srgb, var(--text) 9%, transparent); }
.hl-meter i { display: block; height: 100%; border-radius: 99px; background: var(--gold); min-width: 2px; }
.hl-meter i.ok { background: var(--green, #1f8a4c); }
.hl-meter i.warn { background: #d68c14; }
.hl-meter i.bad { background: var(--red, #d64545); }
.hl-meter em { position: absolute; top: -3px; width: 2px; height: 14px; border-radius: 2px; background: var(--text); opacity: .55; }
.hl-slow { display: grid; grid-template-columns: minmax(0, 1fr) 90px 56px; gap: 10px 12px; align-items: center; font-size: 14px; padding-top: 12px; }
.hl-slow i { display: block; height: 8px; border-radius: 99px; background: var(--gold); }
.hl-slow span:nth-child(3n) { text-align: end; font-weight: 700; }
.hl-tune, .hl-look { list-style: none; margin: 0; padding: 0; }
.hl-tune li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; align-items: center; padding: 12px 0; }
.hl-tune b, .hl-look b { font-weight: 600; }
.hl-tune p, .hl-look p { grid-column: 1; margin: 0; color: var(--muted); font-size: 13px; }
.hl-tune .btn, .hl-tune .hl-tag { grid-row: 1 / span 2; grid-column: 2; }
.hl-tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 99px; background: color-mix(in srgb, var(--green, #1f8a4c) 13%, transparent); color: var(--green, #1f8a4c); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.hl-look li { display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 12px 0; }
.hl-look .hl-dot { width: 9px; height: 9px; border-radius: 50%; background: #d68c14; }
.hl-look p { grid-column: 2; overflow-wrap: anywhere; }
.hl-look .btn { grid-row: 1 / span 2; grid-column: 3; text-decoration: none; }
.hl-empty { margin: 0; padding: 12px 0; color: var(--muted); font-size: 14px; }
.hl-fine { display: flex; align-items: center; gap: 8px; color: var(--green, #1f8a4c); font-weight: 600; }
.hl-fine svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 560px) {
  .hl-tune .btn, .hl-look .btn { grid-row: auto; grid-column: 1; justify-self: start; margin-top: 8px; }
  .hl-look .btn { grid-column: 2; }
}

/* Super admin, liste des transferts : étiquette clignotante « N à attribuer » qui filtre la liste (owner, 2026-11-23) */
/* Rangée en retrait comme le bouton des transferts passés ; la ligne pointillée du fil passe derrière toute la rangée (téléphone : l'étiquette passe à la ligne, alignée). */
.t-unrow { position: relative; display: flex; align-items: flex-start; flex-wrap: wrap; column-gap: 10px; padding-inline-start: 36px; }
.t-unrow::before { content: ""; position: absolute; inset-inline-start: 51px; top: 0; bottom: 0; border-inline-start: 1px dashed var(--muted); opacity: .6; }
.t-unrow > .ctl-past { flex: 0 1 auto; padding-inline-start: 0; }
.t-unrow > .ctl-past::before { display: none; }
.t-unrow > .t-past { flex: 0 1 auto; }
.t-unrow > .t-unas { position: relative; z-index: 1; margin-top: 6px; }
.list .t-unas { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid #e0a33a; background: linear-gradient(rgba(224, 163, 58, .12), rgba(224, 163, 58, .12)) var(--bg); color: #b5761a; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; margin-bottom: 10px; transition: background .3s, color .3s, border-color .3s; }
.list .t-unas:not(.on) > i, .list .t-unas:not(.on) > span { animation: tUnasBlink 1.4s ease-in-out infinite; }   /* le contenu clignote, le fond reste plein (le fil ne se voit pas au travers) */
.list .t-unas i { width: 8px; height: 8px; border-radius: 50%; background: #e0a33a; flex: none; }
.list .t-unas svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.list .t-unas.on { background: #e0a33a; color: #fff; }
html:not([data-theme="light"]) .list .t-unas:not(.on):not(:hover) { color: #f0b85a; }   /* thème sombre : orange plus clair, lisible */
.list .t-unas.on i { background: #fff; }
@keyframes tUnasBlink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .list .t-unas > i, .list .t-unas > span { animation: none !important; } }
@media (hover: hover) { .list .t-unas:hover { background: var(--text); color: var(--bg); border-color: var(--text); } .list .t-unas:hover > i, .list .t-unas:hover > span { animation: none; } .list .t-unas:hover i { background: var(--bg); } }

/* ---------- Réglages › Réservations du site › Suppléments (pricing.js xmMount, owner 2026-11-23) ---------- */
.xm-list { display: grid; gap: 10px; margin: 14px 0; }
.xm-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--panel-2); }
.xm-row.is-off .xm-img, .xm-row.is-off .xm-main { opacity: .5; }
.xm-img { width: 56px; height: 56px; border-radius: 12px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.xm-img img { width: 100%; height: 100%; object-fit: contain; }
.xm-img svg { width: 26px; height: 26px; fill: none; stroke: #9a9a9a; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.xm-main { min-width: 0; }
.xm-main > b { display: block; overflow-wrap: anywhere; }
.xm-main small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.xm-main .xm-meta b { color: var(--gold); font-weight: 650; }
.xm-row .check.xm-on { margin: 0; font-size: 14px; align-items: center; }
.xm-acts { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; justify-content: flex-end; }
.xm-acts .icon-btn { width: 34px; height: 34px; color: var(--text); cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.xm-acts .icon-btn:disabled { opacity: .35; cursor: default; }
.xm-acts .icon-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.xm-acts .xm-del { color: var(--red); }
.xm-ask { margin-right: 4px; font-size: 14px; font-weight: 600; }
.xm-addbtn svg { width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.xm-form .xm-ages[hidden] { display: none; }
.xm-form .two .f { margin-top: 0; }
.xm-form .two { margin-top: 12px; }
.xm-photo > span { display: block; }
.xm-form .xm-drop { margin: 6px 0 0; }
.xm-prev { flex: none; display: grid; place-items: center; }
.xm-prev img { display: block; width: 56px; height: 56px; object-fit: contain; border-radius: 10px; background: #fff; }
.xm-form .xm-pdel { margin-top: 10px; }
.bk-seat-sub { font-size: 13px; }
@media (hover: hover) {
  .xm-acts .icon-btn:not(:disabled):hover { background: var(--text); border-color: var(--text); color: var(--bg); }
  .xm-acts .xm-del:not(:disabled):hover { background: var(--red); border-color: var(--red); color: #fff; }
}
@media (max-width: 999px) {
  .xm-row { grid-template-columns: 56px minmax(0, 1fr); }
  .xm-row .check.xm-on, .xm-acts { grid-column: 1 / -1; }
}

/* ---------- Santé de l'app › rapport de stockage (health.js, hlStorageOpen), owner 2026-11-23, design 4 « tableau détaillé » ---------- */
.hl-lim-btn { cursor: pointer; margin-inline: -10px; padding-inline: 10px; border-radius: 12px; transition: background-color .3s; }
.hl-lim-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (hover: hover) { .hl-lim-btn:hover { background: var(--panel-2); } }
.hl-chev { width: 15px; height: 15px; margin-inline-start: 4px; vertical-align: -2px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .hl-chev { transform: scaleX(-1); }
.dialog.hs-dlg { width: min(940px, calc(100vw - 24px)); max-width: none; }
.hs-dlg > h2 { align-items: flex-start; }
.hs-dlg .hs-t { display: block; }
.hs-dlg .hs-sub { display: block; margin-top: 2px; font-size: 13.5px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.hs-total { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.hs-total b { font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.hs-total span { color: var(--muted); }
.hs-stack { display: flex; gap: 2px; height: 14px; margin-top: 12px; border-radius: 99px; overflow: hidden; }
.hs-stack i { display: block; height: 100%; min-width: 3px; }
.hs-wrap { overflow-x: auto; }
.hs-tbl { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: 14px; }
.hs-tbl th { padding: 10px 0 8px 14px; border-bottom: 1px solid var(--line); text-align: end; font-size: 12.5px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.hs-tbl td { padding: 10px 0 10px 14px; text-align: end; white-space: nowrap; vertical-align: middle; }
.hs-tbl th:first-child, .hs-tbl td:first-child { text-align: start; padding-inline-start: 0; }
.hs-tbl td:first-child { white-space: normal; min-width: 150px; }
.hs-tbl tr.g td { font-weight: 700; border-top: 1px solid var(--line); }
.hs-tbl tbody tr.g:first-child td { border-top: 0; }
.hs-tbl tr.c td:first-child { padding-inline-start: 22px; color: var(--muted); }
.hs-sw { display: inline-block; width: 10px; height: 10px; margin-inline-end: 8px; border-radius: 3px; }
.hs-share { display: inline-block; width: 70px; height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--text) 9%, transparent); overflow: hidden; vertical-align: middle; }
.hs-share i { display: block; height: 100%; border-radius: 99px; background: var(--gold); }
.hs-chg { font-weight: 700; font-variant-numeric: tabular-nums; }
.hs-chg.up { color: #9a5b06; } .hs-chg.down { color: var(--green, #1c7a44); }
html[data-theme="dark"] .hs-chg.up { color: #e6b052; }
.hs-chg.flat, .hs-chg.none { color: var(--muted); font-weight: 500; }
.hs-note { margin: 10px 0 0; color: var(--muted); font-size: 13px; max-width: 72ch; }
.hs-free { list-style: none; margin: 0; padding: 0; }
.hs-free li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; align-items: center; padding: 12px 0; }
.hs-free b { font-weight: 600; }
.hs-free p { grid-column: 1; margin: 0; color: var(--muted); font-size: 13px; }
.hs-free span { grid-row: 1 / span 2; grid-column: 2; font-weight: 700; color: var(--green, #1c7a44); white-space: nowrap; }
.hs-server { margin-top: 28px; padding: 14px 16px; border-radius: 14px; background: var(--panel-2); color: var(--muted); font-size: 13.5px; }
.hs-server b { color: var(--text); }

/* Rapport de stockage : graphique des 30 derniers jours, une barre par jour découpée par partie (design 2, owner 2026-11-23). */
.hs-graph { margin-top: 14px; }
.hs-chart { display: block; width: 100%; height: auto; overflow: visible; }
.hs-chart text { font-family: inherit; font-size: 11.5px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.hs-chart .hs-grid { stroke: var(--line); stroke-width: 1; }
.hs-key { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.hs-key span { display: inline-flex; align-items: center; gap: 6px; }
.hs-key i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.hs-graph + .hs-stack { margin-top: 22px; }

/* ---------- Réglages › Sauvegarde › Google Drive (gdrive.js), owner 2026-11-23 ---------- */
.gd-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.gd-logo { width: 34px; height: 30px; flex: none; }
.gd-head b { display: block; font-size: 16px; font-weight: 700; }
.gd-head small { display: block; color: var(--muted); font-size: 13px; }
.gd-head small.gd-ok { color: var(--green, #1f8a4c); font-weight: 600; }
.gd .gd-intro { margin: 0 0 14px; max-width: 70ch; }
.gd .gd-btns { margin: 0 0 14px; flex-wrap: wrap; }
.gd .gd-meta { margin: 0 0 14px; }
.gd-steps { margin: 0 0 14px; padding-inline-start: 20px; display: grid; gap: 10px; font-size: 14px; line-height: 1.5; max-width: 72ch; }
.gd-steps li::marker { color: var(--gold); font-weight: 700; }
.gd-uri { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 8px 8px 8px 12px; border-radius: 10px; background: var(--panel-2); }
.gd-uri code { flex: 1; min-width: 0; font-size: 13px; overflow-wrap: anywhere; user-select: all; }
.gd .f { margin-top: 14px; }
.gd .f + .gd-btns { margin-top: 14px; }

/* ---------- Après « Refuser » : pourquoi ? (owner, 2026-11-23, design 1 de design-lab/decline-feedback-4.html) ---------- */
.overlay.dfb { align-items: flex-end; background: rgba(0, 0, 0, 0); transition: background .25s; }
.overlay.dfb.in { background: rgba(0, 0, 0, .4); }
.dfb-sheet { width: 100%; max-width: 520px; background: var(--panel); color: var(--text); border-radius: 24px 24px 0 0; padding: 10px 20px 20px; box-shadow: 0 -10px 30px rgba(0, 0, 0, .18); transform: translateY(100%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); max-height: 100%; overflow-y: auto; }
.overlay.dfb.in .dfb-sheet { transform: none; }
.dfb-grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 16px; }
.dfb-sheet h2 { font-size: 20px; margin: 0 0 4px; line-height: 1.25; }
.dfb-sub { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.dfb-ride { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--panel-2); margin-bottom: 16px; }
.dfb-tm { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.dfb-rt { min-width: 0; font-size: 14px; font-weight: 700; }
.dfb-rt small { display: block; font-weight: 500; font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.dfb-x { margin-inline-start: auto; flex: none; font-size: 12px; font-weight: 700; color: var(--red, #c0392b); background: rgba(192, 57, 43, .1); border-radius: 99px; padding: 4px 10px; }
.dfb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.dfb-chip { font: inherit; font-size: 14px; font-weight: 600; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 99px; padding: 9px 14px; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.dfb-chip.on { background: var(--gold); border-color: var(--gold); color: #fff; }
.dfb-note { display: block; width: 100%; resize: none; font: inherit; font-size: 15px; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; caret-color: var(--gold); }
.dfb-note:focus { outline: none; border-color: var(--gold); }
.dfb-note::placeholder { color: var(--muted); }
.dfb-foot { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; margin-top: 16px; }
.dfb-skip { font: inherit; font-size: 15px; font-weight: 700; color: var(--muted); background: none; border: 0; padding: 12px 8px; cursor: pointer; transition: color .3s; }
.dfb .btn.primary.dfb-send { width: 100%; min-height: 50px; border-radius: 99px; font-size: 15.5px; color: #fff; }
.dfb .btn.primary.dfb-send:disabled { opacity: .4; cursor: default; }
.dfb-ok { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 28px 8px 20px; }
.dfb-ok[hidden] { display: none; }
.dfb-okc { width: 56px; height: 56px; border-radius: 50%; background: rgba(31, 138, 76, .12); display: grid; place-items: center; }
.dfb-okc svg { width: 28px; height: 28px; fill: none; stroke: var(--green, #1f8a4c); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.dfb-ok b { font-size: 19px; } .dfb-ok small { color: var(--muted); font-size: 14px; max-width: 32ch; line-height: 1.45; }
@media (min-width: 1000px) {
  .overlay.dfb { align-items: center; }
  .dfb-sheet { border-radius: 24px; padding: 24px; transform: translateY(16px); opacity: 0; transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .25s; }
  .overlay.dfb.in .dfb-sheet { opacity: 1; }
  .dfb-grab { display: none; }
}

/* Proposition prise par un autre : court message (owner, 2026-11-23, design C de design-lab/offer-taken-3.html) */
html body .tcard.offer.oft { display: block; opacity: 1; padding: 18px 16px 16px; border: 0; border-radius: 18px; background: var(--panel-2); cursor: default; }
.oft-ic { width: 44px; height: 44px; border-radius: 50%; background: var(--panel); display: grid; place-items: center; margin-bottom: 12px; }
.oft-ic svg { width: 22px; height: 22px; fill: none; stroke: var(--text); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tcard.oft h4 { margin: 0 0 6px; font-size: 18px; line-height: 1.3; }
.oft-ride { margin: 0; font-size: 14px; font-weight: 600; color: var(--text); }
.oft-rule { margin: 4px 0 14px; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.tcard.oft .of-tl { border-top: 1px solid var(--line); padding-top: 10px; }
.tcard.oft .btn.oft-ok { display: block; width: 100%; margin-top: 14px; min-height: 46px; border-radius: 99px; background: var(--panel); border: 1px solid var(--line); color: var(--text); font-weight: 800; }
@media (hover: hover) {
  .dfb-chip:not(.on):hover { background: var(--text); color: var(--bg); border-color: var(--text); }
  .dfb-skip:hover { color: var(--text); }
  html .dfb .btn.primary.dfb-send:not(:disabled):hover { background: var(--text); border-color: var(--text); color: var(--bg); }
  html body .tcard.oft .btn.oft-ok:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
}
@media (prefers-reduced-motion: reduce) { .dfb-sheet, .overlay.dfb { transition: none; } }

/* ---------- Réglages › Sauvegarde › Google Drive (gdrive.js), owner 2026-11-23 ---------- */
.gd-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.gd-logo { width: 34px; height: 30px; flex: none; }
.gd-head b { display: block; font-size: 16px; font-weight: 700; }
.gd-head small { display: block; color: var(--muted); font-size: 13px; }
.gd-head small.gd-ok { color: var(--green, #1f8a4c); font-weight: 600; }
.gd .gd-intro { margin: 0 0 14px; max-width: 70ch; }
.gd .gd-btns { margin: 0 0 14px; flex-wrap: wrap; }
.gd .gd-meta { margin: 0 0 14px; }
.gd-steps { margin: 0 0 14px; padding-inline-start: 20px; display: grid; gap: 10px; font-size: 14px; line-height: 1.5; max-width: 72ch; }
.gd-steps li::marker { color: var(--gold); font-weight: 700; }
.gd-uri { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 8px 8px 8px 12px; border-radius: 10px; background: var(--panel-2); }
.gd-uri code { flex: 1; min-width: 0; font-size: 13px; overflow-wrap: anywhere; user-select: all; }
.gd .f { margin-top: 14px; }
.gd .f + .gd-btns { margin-top: 14px; }

/* Santé de l'app : graphique du stockage sur 30 jours en haut de la page, toute la largeur (owner, 2026-11-23). */
.hl-usage > h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.hl-usage .hs-total { margin-top: 12px; }
.hl-more { display: inline-flex; align-items: center; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: color .3s; }
@media (hover: hover) { .hl-more:hover { color: var(--text); } .hl-more:hover .hl-chev { stroke: var(--text); } }

/* ---------- Réglages › Journal › Refus (health.js, dcDraw), owner 2026-11-23 ---------- */
.dc-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.dc-f { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--bg); color: var(--text); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.dc-f span { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; transition: color .3s; }
.dc-f.on { background: var(--gold); border-color: var(--gold); color: #fff; }
.dc-f.on span { color: #fff; }
@media (hover: hover) { .dc-f:hover { background: var(--text); border-color: var(--text); color: var(--bg); } .dc-f:hover span { color: var(--bg); } }
.dc-list { display: flex; flex-direction: column; }
.dc-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 4px 16px; padding: 12px 10px; margin-inline: -10px; border-radius: 12px; color: var(--text); text-decoration: none; transition: background-color .3s; }
@media (hover: hover) { .dc-row:hover { background: var(--panel-2); } }
.dc-row time { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; padding-top: 2px; }
.dc-top { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.dc-top b { font-weight: 600; }
.dc-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--panel-2); color: var(--muted); }
.dc-tag.cancelled, .dc-tag.late { background: color-mix(in srgb, var(--red, #d64545) 13%, transparent); color: var(--red, #d64545); }
.dc-main small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.dc-fb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 6px; }
.dc-why { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.dc-why i { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 99px; background: var(--gold-soft, rgba(205, 165, 91,.13)); color: var(--text); font-style: normal; font-size: 12.5px; font-weight: 600; }
.dc-note { font-size: 13.5px; quotes: "«\00a0" "\00a0»"; }
html[lang="en"] .dc-note { quotes: "\201C" "\201D"; }
.dc-nofb { color: var(--muted); font-size: 13px; }
@media (max-width: 640px) { .dc-row { grid-template-columns: minmax(0, 1fr); } .dc-row time { padding-top: 0; } }

/* Accueil chauffeur : bandeaux macaron aéroport et Monaco, avec « Ignorer » (owner, 2026-11-23) */
.hm-stk:not([hidden]) { display: grid; gap: 10px; }
.hm-stk .hm-apt { flex-wrap: wrap; row-gap: 10px; }
.hm-stk-acts { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; flex: none; }
.hm-stk-ign { font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); background: none; border: 0; border-radius: 99px; padding: 8px 12px; cursor: pointer; transition: background-color .3s, color .3s; }
@media (max-width: 480px) { .hm-stk-acts { width: 100%; justify-content: flex-end; } }
@media (hover: hover) { .hm-stk-ign:hover { background: var(--text); color: var(--bg); } }

/* ---------- Réglages › Journal : recherche à droite des onglets Serveur | Refus (health.js, dcSearchMount), owner 2026-11-23 ---------- */
.dc-search { display: inline-flex; align-items: center; box-sizing: border-box; height: 48px; border: 1px solid var(--line); border-radius: 99px; background: var(--bg); transition: border-color .3s; }
.dc-search-b { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--text); cursor: pointer; flex: none; transition: background-color .3s, color .3s; }
.dc-search-b svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.dc-search input { width: 0; min-width: 0; padding: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 14px; outline: none; transition: width .3s cubic-bezier(.16, 1, .3, 1), padding .3s; }
.dc-search input::-webkit-search-cancel-button { display: none; }
.dc-search.open, .dc-search.has, .dc-search:focus-within { border-color: var(--gold); }
.dc-search.open input, .dc-search.has input { width: 230px; padding-inline-end: 16px; }
@media (hover: hover) { .dc-search:not(.open):not(.has) .dc-search-b:hover { background: var(--text); color: var(--bg); } }
.dc-search.top { vertical-align: top; margin: 20px 0 4px 10px; }
.dc-search.in { display: none; }
@media (max-width: 999px) {
  .dc-search.top { display: none; }
  .dc-search.in { display: flex; width: 100%; margin-bottom: 14px; }
  .dc-search.in input { flex: 1; width: auto; padding-inline-end: 16px; }
}
@media (prefers-reduced-motion: reduce) { .dc-search input { transition: none; } }

/* ---------- Réglages › Journal › Refus, design 3 « les raisons d'abord, puis par chauffeur » (health.js, dcDraw), owner 2026-11-23 ---------- */
.dc3-sec + .dc3-sec { margin-top: 28px; }
.dc3-sec > h3 { margin: 0; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 700; color: var(--text); text-transform: none; letter-spacing: 0; }
.dc3-rz { display: grid; grid-template-columns: minmax(0, 170px) minmax(0, 1fr) 28px; gap: 10px; align-items: center; padding: 8px 0; font-size: 14px; }
.dc3-rz i { display: block; height: 8px; border-radius: 99px; background: var(--gold); }
.dc3-rz i.none { background: color-mix(in srgb, var(--text) 18%, transparent); }
.dc3-rz span:last-child { text-align: end; font-weight: 700; }
.dc3-mute { color: var(--muted); }
.dc3-p { border-bottom: 1px solid var(--line); }
.dc3-p > summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 16px; gap: 10px; align-items: center; padding: 12px 0; cursor: pointer; list-style: none; }
.dc3-p > summary::-webkit-details-marker { display: none; }
.dc3-who b { display: block; font-weight: 600; }
.dc3-who small { display: block; color: var(--muted); font-size: 12.5px; }
.dc3-counts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.dc3-chev { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.dc3-p[open] .dc3-chev { transform: rotate(90deg); }
.dc3-p ul { list-style: none; margin: 0; padding: 0 0 8px 44px; }
.dc3-p li + li { border-top: 1px solid var(--line); }
.dc3-p li a { display: block; padding: 9px 8px; margin-inline: -8px; border-radius: 10px; color: var(--text); font-size: 13.5px; text-decoration: none; transition: background-color .3s; }
.dc3-p li b { font-weight: 700; }
.dc3-p li b.c { color: var(--red, #d64545); }
@media (hover: hover) { .dc3-p li a:hover { background: var(--panel-2); } }
.dc3-fb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 5px; }
.dc3-fb i { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 99px; background: var(--gold-soft, rgba(205, 165, 91,.13)); font-style: normal; font-size: 12.5px; font-weight: 600; }
@media (max-width: 560px) { .dc3-p ul { padding-inline-start: 0; } .dc3-rz { grid-template-columns: minmax(0, 130px) minmax(0, 1fr) 24px; } }
@media (prefers-reduced-motion: reduce) { .dc3-chev { transition: none; } }

/* Recherche du Journal : croix pour effacer, champ jamais teinté par le remplissage automatique du navigateur (owner, 2026-11-23). */
.dc-search-x { display: none; place-items: center; width: 30px; height: 30px; margin-inline-end: 8px; padding: 0; border: 0; border-radius: 50%; background: var(--panel-2); color: var(--text); cursor: pointer; flex: none; transition: background-color .3s, color .3s; }
.dc-search-x svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.dc-search.has .dc-search-x { display: grid; }
.dc-search.has input { padding-inline-end: 8px; }
@media (hover: hover) { .dc-search-x:hover { background: var(--text); color: var(--bg); } }
.dc-search.top:not(.open):not(.has) input { display: none; }
.dc-search input:-webkit-autofill { -webkit-text-fill-color: var(--text); box-shadow: 0 0 0 100px var(--bg) inset; }
.dc-nomatch { padding: 4px 0 0; }

/* Journal › onglet Chauffeur : acceptations en vert ; l'onglet Chauffeur passe en premier dans la barre (owner, 2026-11-23). */
.dc-tag.accepted { background: color-mix(in srgb, var(--green, #1f8a4c) 13%, transparent); color: var(--green, #1f8a4c); }
.dc3-p li b.a { color: var(--green, #1f8a4c); }
.set-tabs [data-tab="secDeclined"] { order: -1; }

/* ---------- Onglet Véhicules : validation des véhicules de société (owner, 2026-11-23, design A ; vehrev.js) ---------- */
.vr-list { display: grid; gap: 18px; margin-top: 18px; }
.vr-veh { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: var(--panel); }
.vr-veh.pending { border: 1.5px solid var(--gold); }
.vr-veh.rejected { border-color: color-mix(in srgb, var(--red) 55%, var(--line)); }
.vr-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.vr-h .grow { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vr-h .grow > b { font-size: 16px; }
.vr-g { display: grid; grid-template-columns: 1fr; gap: 16px; }
.vr-kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 14px; }
.vr-kv dt { color: var(--muted); } .vr-kv dd { margin: 0; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.vr-doc-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; font-size: 14px; }
.vr-doc-h a { color: var(--gold); font-weight: 700; font-size: 13px; }
.vr-doc .dr-view { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); }
.vr-doc .dr-view img { display: block; width: 100%; max-height: 300px; object-fit: contain; }
.vr-doc .dr-view iframe { display: block; width: 100%; height: 300px; border: 0; }
.vr-miss { margin: 0; color: var(--red); font-weight: 600; font-size: 13.5px; }
.vr-phs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.vr-stk { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 13px; }   /* macarons du véhicule (owner, 2026-11-24) */
.vr-stk a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.vr-stk .vr-miss { color: var(--red); }
.vr-ph { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--panel-2); border: 1px solid var(--line); text-decoration: none; }
.vr-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vr-ph small { position: absolute; left: 8px; top: 6px; font-size: 11.5px; font-weight: 700; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.vr-ph.none { display: grid; place-items: center; text-align: center; padding: 8px; }
.vr-ph.none small { color: var(--muted); text-shadow: none; }
.vr-ph.none em { font-style: normal; font-size: 12px; color: var(--red); font-weight: 600; }
.vr-by { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.vr-veh .dr-act { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.vr-veh .dr-act .btn { min-width: 150px; }
.vr-veh .dr-act:empty { display: none; }
.vr-veh .dr-rej { margin-top: 12px; display: grid; gap: 8px; }
.mfg-chip.vr-wait { color: var(--gold); background: var(--gold-soft); }
@media (min-width: 1000px) { .vr-g { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); } }

/* Liste des transferts à côté de la fiche (ordinateur) : la ligne des filtres reste visible sous la recherche au lieu de
   disparaître derrière elle quand la liste se place sur la course du jour (owner, 2026-11-23 : « the filter row is hidden under search »). */
.tsplit-list > .list > .filters:first-child { position: sticky; top: var(--tl-split-top, 65px); z-index: 5; background: var(--bg); }
/* Les deux barres sont plus étroites que la colonne : leur fond se prolonge à droite, pour que les cartes ne dépassent plus à côté. */
.tsplit-list > .tsearch-wrap, .tsplit-list > .list > .filters:first-child { box-shadow: 260px 0 0 var(--bg); }

/* Réglages › Facturation électronique › Comptabilité (Pennylane) : explication, étapes, bon à savoir (invoices.js), owner 2026-11-23. */
.pn { max-width: 760px; }
.pn .pn-head { margin-bottom: 10px; }
.pn .pn-lead { margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: var(--text); }
.pn .bk-h { margin: 22px 0 10px; }
.pn .pn-steps { margin-bottom: 10px; max-width: none; }
.pn .pn-steps label.f { display: block; margin: 8px 0 0; }
.pn .pn-to { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.pn .pn-guide { margin: 0; }
.pn a { color: var(--gold); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.pn .pn-know { margin: 0; padding-inline-start: 20px; display: grid; gap: 8px; font-size: 14px; line-height: 1.5; }
.pn .pn-know li::marker { color: var(--gold); }
.pn .pn-ex { margin: 0 0 12px; }
/* Logo officiel de Pennylane devant le titre, et de l'air au-dessus (owner, 2026-11-23). Thème sombre : pastille blanche, le vert foncé du logo ne se verrait pas. */
.pn .pn-head { margin-top: 20px; }
.pn-logo { width: 34px; height: 34px; flex: none; border-radius: 50%; }
html:not([data-theme="light"]) .pn-logo { background: #fff; box-shadow: 0 0 0 3px #fff; }
/* Comptabilité : « Ce qui est envoyé », une ligne par adresse (owner, 2026-11-23). */
.pn .pn-what { margin: 0; display: grid; gap: 10px; font-size: 14px; line-height: 1.5; }
.pn .pn-what > div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.pn .pn-what dt { font-weight: 700; margin-bottom: 2px; }
.pn .pn-what dd { margin: 0; color: var(--muted); }
.pn .pn-what .pn-model { display: block; margin-top: 6px; color: var(--text); font-weight: 600; }
/* Réglages › Réservations du site › Synchronisation, sur le modèle de Pennylane (owner, 2026-11-23) : logo WordPress, état, pause. */
.ws-logo { width: 34px; height: 34px; flex: none; border-radius: 50%; }
html:not([data-theme="light"]) .ws-logo { background: #fff; box-shadow: 0 0 0 3px #fff; }
.gd-head small.ws-off { color: var(--gold); font-weight: 600; }
.pn.ws > .check { margin: 0 0 14px; font-weight: 600; }
.pn.ws .ws-paused { margin: 0 0 14px; background: var(--gold-soft); color: var(--text); font-size: 14px; line-height: 1.5; }
.pn.ws .ws-last { margin: 0; }
.pn.ws .ws-tok-st { margin: 0 0 12px; font-size: 14px; line-height: 1.5; }
.pn.ws .ws-tok-st .ws-ok { color: var(--green, #1f8a4c); }
.pn.ws .ws-tok-st .ws-miss { color: var(--red); }
.pn.ws #tokBox label.f { margin-top: 0; }
@media (hover: hover) { .pn.ws #syncNow:disabled:hover { background: transparent; color: var(--text); border-color: var(--line); } }

/* Chauffeur › Factures (drvinvoices.js) : trois onglets Vue d'ensemble | Factures | Mandat, owner 2026-11-23 (design 2 de
   design-lab/chauffeur-invoices-3-designs.html). */
.di-page { max-width: 940px; }
.di-tabs { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 99px; margin: 0 0 16px; max-width: 100%; }
.di-tabs button { position: relative; height: 36px; padding: 0 16px; border: 0; border-radius: 99px; background: none; color: var(--muted); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; transition: background-color .3s, color .3s; }
.di-tabs button.on { background: var(--gold); color: #fff; }
.di-tabs button i { position: absolute; top: 5px; inset-inline-end: 6px; width: 8px; height: 8px; border-radius: 50%; background: #d64545; }
@media (hover: hover) { .di-tabs button:not(.on):hover { background: var(--text); color: var(--bg); } }
@media (max-width: 480px) { .di-tabs button { padding: 0 12px; font-size: 13.5px; } }
.di-h { font-size: 18px; font-weight: 700; margin: 34px 0 12px; text-wrap: balance; }
.di-body > .di-h:first-child, .di-split > div > .di-h:first-child, .di-side > .di-h { margin-top: 0; }
.di-lead { max-width: 62ch; margin: 0 0 14px; font-size: 14px; line-height: 1.5; }
.di-sub { margin: -8px 0 12px; }
.di-notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; background: color-mix(in srgb, var(--gold) 13%, transparent); border-radius: 14px; padding: 12px 16px; margin-bottom: 14px; font-size: 14px; }
.di-notice b { font-weight: 700; }
/* Solde : le chiffre à gauche, de quoi il est fait à droite */
.di-over .ea-bal { align-items: end; justify-content: space-between; gap: 6px 24px; }
.di-over .ea-bal b { flex: 0 1 auto; }
.di-over .di-fade { animation: di-fade .25s ease-out; }   /* comptage des montants, version « mouvement réduit » (drvinvoices.js diTally) */
@keyframes di-fade { from { opacity: 0; } }
.di-over .ea-bal p { margin: 0 0 4px; flex: 1 1 260px; max-width: 46ch; color: var(--muted); font-size: 13px; line-height: 1.45; }
@media (min-width: 1000px) { .di-over .ea-bal p { text-align: end; margin-inline-start: auto; } }
/* Factures */
.di-next { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding: 14px 0; border-block: 1px solid var(--line); font-size: 14px; }
.di-next b { font-weight: 700; } .di-next span { color: var(--muted); }
.di-inv { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: 14px; font-variant-numeric: tabular-nums; }
.di-inv th { text-align: start; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 10px 10px 8px 0; border-bottom: 1px solid var(--line); }
.di-inv td { padding: 13px 10px 13px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.di-inv .r { text-align: end; } .di-inv td small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.di-inv td b { font-weight: 700; } .di-inv .di-amt { font-weight: 700; white-space: nowrap; }
.di-inv .di-only { display: none; }
.di-inv .btns { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; margin: 0; }
.di-page .btn > svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-inline-end: 6px; vertical-align: -3px; }
@media (max-width: 999px) {
  .di-inv thead { display: none; }
  .di-inv tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .di-inv td { padding: 0; border: 0; } .di-inv td.di-hide { display: none; } .di-inv td.di-full { grid-column: 1 / -1; margin-top: 6px; }
  .di-inv .di-only { display: block; } .di-inv .btns { justify-content: flex-start; margin-top: 4px; }
}
/* Comment ça marche */
.di-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: dis; }
.di-flow li { counter-increment: dis; position: relative; padding: 0 14px 0 0; }
.di-flow li::before { content: counter(dis); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: #fff; font-weight: 800; font-size: 13px; margin-bottom: 8px; position: relative; z-index: 1; }
.di-flow li::after { content: ""; position: absolute; top: 14px; left: 28px; right: 0; height: 1px; background: var(--line); }
.di-flow li:last-child::after { display: none; }
.di-flow b { display: block; font-weight: 700; font-size: 14.5px; } .di-flow span { display: block; color: var(--muted); font-size: 13px; line-height: 1.45; }
@media (max-width: 999px) {
  .di-flow { grid-template-columns: 1fr; gap: 14px; } .di-flow li { padding: 0 0 0 40px; min-height: 28px; }
  .di-flow li::before { position: absolute; left: 0; top: 0; margin: 0; } .di-flow li::after { top: 28px; bottom: -14px; left: 14px; right: auto; width: 1px; height: auto; }
}
/* Mandat */
.di-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.di-side { position: sticky; top: 24px; }
.di-side ol { list-style: none; margin: 0; padding: 0; counter-reset: diw; display: grid; gap: 12px; }
.di-side li { counter-increment: diw; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 0 8px; font-size: 14px; line-height: 1.45; }
.di-side li::before { content: counter(diw) "."; color: var(--gold); font-weight: 800; }
.di-side li b { font-weight: 700; } .di-side li span { grid-column: 2; color: var(--muted); font-size: 13px; }
@media (max-width: 999px) { .di-split { grid-template-columns: 1fr; } .di-side { position: static; order: -1; } }
.di-state { margin: 0 0 14px; font-size: 14px; }
.di-doc { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.di-doc-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; min-height: 54px; padding: 10px 16px; background: var(--panel); font-weight: 700; }
.di-doc-body { max-height: 420px; overflow: auto; padding: 4px 18px 16px; font-size: 14px; line-height: 1.5; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.di-doc-body h4 { font-size: 14px; font-weight: 700; margin: 14px 0 0; } .di-doc-body p { margin: 0; color: var(--muted); }
.di-co { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; font-size: 14px; }
.di-co div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.di-co dt { color: var(--muted); } .di-co dd { margin: 0; font-weight: 600; text-align: end; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .di-co { grid-template-columns: 1fr; } }
.di-sign { display: grid; gap: 14px; margin-top: 4px; }
.di-sign .di-h { margin: 30px 0 0; } .di-sign .two, .di-sign .f, .di-sign .nav-opts, .di-sign .btns, .di-sign .hint { margin: 0; }
.di-sw { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; font-size: 14.5px; position: relative; }
.di-sw input { position: absolute; opacity: 0; pointer-events: none; }
.di-sw i { width: 46px; height: 28px; border-radius: 99px; background: var(--line); position: relative; flex: none; transition: background-color .3s; }
.di-sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.di-sw input:checked + i { background: var(--gold); } .di-sw input:checked + i::after { transform: translateX(18px); }
.di-sw input:focus-visible + i { outline: 2px solid var(--gold); outline-offset: 2px; }
.di-page .btn.di-text { border-color: transparent; background: none; color: var(--muted); padding-inline: 8px; text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) { .di-page .btn.di-text:hover { background: none; border-color: transparent; color: var(--text); } }
.di-signed-btns { margin: 16px 0 8px; }
.di-ex { margin-top: 26px; background: var(--panel); border-radius: 16px; padding: 16px 18px; }
.di-ex h3 { margin: 0; font-size: 15px; font-weight: 700; } .di-ex p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; max-width: 70ch; }
.di-ex table { width: 100%; border-collapse: collapse; margin: 10px 0 8px; font-size: 14px; font-variant-numeric: tabular-nums; }
.di-ex th { text-align: start; font-weight: 600; color: var(--muted); font-size: 12.5px; padding: 6px 0; } .di-ex td { padding: 8px 0; border-top: 1px solid var(--line); }
.di-ex th:not(:first-child), .di-ex td:not(:first-child) { text-align: end; padding-inline-start: 12px; white-space: nowrap; }
.di-ex tr.best td { font-weight: 700; } .di-ex td.pos { color: var(--green, #1f8a4c); }

/* Mode test (testmode.js / private/lib/testmode.php, owner 2026-11-23) : badge TEST, interrupteurs, Réglages › Mode test, filigrane des factures de test. */
.tm-badge { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 99px; background: #e8590c; color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; line-height: 1; vertical-align: 1px; white-space: nowrap; }
.tp-meta .tm-badge, .uc-pills .tm-badge, .ctl-chips .tm-badge { height: 22px; font-size: 11px; }
.tm-sw small { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; font-weight: 400; line-height: 1.4; }
.tm-users { display: grid; gap: 6px; margin-bottom: 6px; }
.tm-u { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--panel-2); }
.tm-ic { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: color-mix(in srgb, #e8590c 15%, transparent); color: #e8590c; }
.tm-ic svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tm-who { display: flex; flex-direction: column; min-width: 0; }
.tm-who small { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.tm-counts { margin: 0 0 10px; font-size: 14px; }
.voucher.inv-test { position: relative; }
.voucher.inv-test::before { content: "TEST"; position: absolute; top: 38%; left: 50%; z-index: 0; transform: translate(-50%, -50%) rotate(-24deg); font-size: 120px; font-weight: 800; letter-spacing: .1em; color: rgba(232, 89, 12, .14); pointer-events: none; }
/* Réglages › Facturation électronique › Remise à zéro (invreset.js) : liste de ce qui sera effacé, owner 2026-11-23. */
.ir-rows { max-height: 420px; overflow: auto; scrollbar-width: thin; margin-bottom: 12px; }
/* Réserver avec « Transfert de test » : page teintée d'or clair (tmWashSync, testmode.js). Calque derrière le contenu ; la colonne
   de gauche et la barre du bas gardent leur fond blanc ; l'en-tête collant prend la même teinte. */
#tmWash { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: color-mix(in srgb, var(--gold) 13%, var(--bg)); }
html.tm-washed body { background: transparent !important; }
.ab-wrap > .top { transition: background-color .55s cubic-bezier(.4, 0, .2, 1); }
html.tm-washed:not(.tm-washing-out) .ab-wrap > .top { background: color-mix(in srgb, var(--gold) 13%, var(--bg)); }
/* Comptabilité : numéro copiable et icône « copier » à côté (finance.js), owner 2026-11-23. */
.fn-refrow { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.fn-ref { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-align: start; border-radius: 6px; transition: color .3s; }
.fn-copy { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; flex: none; transition: background-color .3s, color .3s; }
.fn-copy svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .fn-ref:hover { color: var(--gold); } .fn-copy:hover { background: var(--text); color: var(--bg); } }
@media (hover: none) { .fn-copy { width: 36px; height: 36px; } }

/* ---------- Finance › À traiter, design B (owner, 2026-11-23) : plus de panneau à droite, détail sous la ligne, boutons CSV / PDF ---------- */
.fn-work { grid-template-columns: minmax(0, 1fr); }
.fn-item { border-radius: 14px; transition: background-color .3s; }
.fn-item.open { background: var(--panel-2); }
.fn-item.open > .fn-row { background: none; }
.fn-item.open .fn-ri { background: var(--bg); }
.fn-re { display: flex; align-items: center; gap: 8px; }
.fn-chev { width: 16px; height: 16px; color: var(--muted); transition: transform .3s; }
.fn-item.open .fn-chev { transform: rotate(180deg); }
.fn-pm { display: none; }
.fn-det { padding: 0 12px 16px 58px; }
.fn-dh { margin: 0 0 2px; font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; } .fn-dh b { color: var(--text); }
.fn-dgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.fn-dgrid .fn-route { margin-top: 12px; }
.fn-det .fn-quote { margin-top: 0; }
.fn-det .fn-acts { align-items: center; }
.fn-calc-s { max-width: 420px; margin-top: 0; }
.fn-pack { cursor: default; }
.fn-dlb { display: flex; gap: 8px; }
.fn-dlb .btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-weight: 700; }
.fn-dlb .fn-ic { width: 16px; height: 16px; color: var(--gold); transition: color .3s; }
@media (hover: hover) {
  .fn-item.open > .fn-row:not(.sel):hover, .fn-row.fn-pack:not(.sel):hover { background: none; }
  .fn-dlb .btn:hover .fn-ic { color: inherit; }
}
@media (max-width: 999px) { .fn-dgrid { grid-template-columns: minmax(0, 1fr); gap: 12px; } .fn-det { padding-inline-start: 12px; } }
@media (max-width: 600px) {
  .fn-item .fn-re .pill { display: none; }
  .fn-pm { display: inline-flex; align-self: flex-start; margin-top: 6px; }
  .fn-item .fn-row { align-items: start; } .fn-re { align-self: center; }
  .fn-pack { grid-template-columns: 34px minmax(0, 1fr); align-items: start; }
  .fn-pack .fn-dlb { grid-column: 2 / -1; } .fn-dlb .btn { flex: 1; }
  .fn-det .fn-acts .btn { flex: 1 1 100%; justify-content: center; }
}

/* Barre Finances sur téléphone (owner, 2026-11-23) : Factures / Règlements / Autofactures / Comptabilité ne dépassent plus l'écran ;
   la barre défile dans sa largeur, sans barre de défilement visible (orderinv.js centre l'onglet ouvert). */
.oi-head .oi-seg { position: relative; max-width: 100%; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.oi-head .oi-seg::-webkit-scrollbar { display: none; }
.oi-head .oi-seg button { flex: none; }

/* Finance › À venir (owner, 2026-11-23) : dossier du mois en cours, pas encore téléchargeable. */
.fn-soon .fn-ri { color: var(--muted); }
.fn-soon > .pill { justify-self: end; }
@media (max-width: 600px) { .fn-soon > .pill { grid-column: 2 / -1; justify-self: start; } }

/* Finance › Documents, dossier de la période (owner, 2026-11-23) : même ligne que « À traiter », sur fond gris. */
.fn-docs-top { max-width: 820px; margin-bottom: 8px; }
.fn-docs-top .fn-row { background: var(--panel-2); }
.fn-docs-top .fn-ri { background: var(--bg); }
@media (hover: hover) { .fn-docs-top .fn-row.fn-pack:not(.sel):hover { background: var(--panel-2); } }
/* Tarifs : onglet Grille sans la carte Véhicules, onglet Véhicules avec elle seule (pricing.js prRender), owner 2026-11-23. */
#prTab.pr-only-grid > section.pr-card:nth-of-type(2) { display: none; }
#prTab.pr-only-veh > :not(section.pr-card:nth-of-type(2)) { display: none; }
/* Tarifs, téléphone : six onglets ne tiennent plus, la rangée défile de côté (pricing.js), owner 2026-11-23. */
@media (max-width: 640px) { .pr-seg.pr-seg-main { display: flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; justify-content: flex-start; } .pr-seg.pr-seg-main::-webkit-scrollbar { display: none; } .pr-seg.pr-seg-main > button { flex: none; white-space: nowrap; } }
/* Tarifs : bouton rond « + » à droite des onglets (pricing.js PR_NEW), boutons « Nouveau… » de chaque onglet cachés, owner 2026-11-23. */
.pr-tabs-row { display: flex; align-items: center; gap: 12px; }
.pr-tabs-row > .pr-seg { min-width: 0; flex: 1 1 680px; max-width: 680px; margin-block: 0; }
.pr-tabs-row { margin: 14px 0 16px; }
.pr-plus { width: 44px; height: 44px; min-height: 0; padding: 0; border-radius: 50%; display: inline-grid; place-items: center; flex: none; color: #fff; }
.pr-plus svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; display: block; }
@media (hover: hover) { .pr-plus:hover { color: var(--bg); } }
#prAddRule, #prAddVeh, #prAddZone, #prTab .xm-addbtn { display: none; }

/* ---------- Admin › Nouveau transfert, version E (owner, 2026-11-23) : une colonne de blocs gris + barre du bas.
   Tout est sous .abe : le formulaire de réservation des clients (mêmes bkStep1 / bkStep2) ne change pas. ---------- */
.abe { max-width: 820px; margin-inline: auto; }
.abe .bk-title { margin-bottom: 14px; }
.abe .ab-main { display: flex; flex-direction: column; gap: 12px; }
.abe .abe-blk { background: var(--panel-2); border-radius: 16px; padding: 16px; min-width: 0; container-type: inline-size; }
.abe .abe-h { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 15px; font-weight: 800; line-height: 1.3; }
.abe .abe-ic { width: 17px; height: 17px; flex: none; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.abe .abe-new { margin-inline-start: auto; border: 0; background: none; padding: 4px 0; font: inherit; font-size: 13px; font-weight: 700; color: var(--gold); cursor: pointer; transition: color .3s; }
.abe .abe-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.abe .abe-blk .f { margin: 0 0 12px; }
.abe .abe-blk .f:last-child, .abe .abe-blk > :last-child { margin-bottom: 0; }
.abe .abe-blk :is(input[type="text"], input[type="email"], input[type="tel"], textarea, .co-box) { background: var(--bg); }
.abe .abe-blk textarea { display: block; }
.abe .abe-hint { margin: 8px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--muted); }

/* Trajet : bkStep1 remis en grille (titre | Transfert / À l'heure, puis adresses, date-heure, aller-retour | calcul) */
.abe .abe-trip .bk-trip { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.abe .abe-trip .bk-trip > * { grid-column: 1 / -1; margin: 0; }
.abe .abe-trip .bk-trip > .abe-h { grid-column: 1; grid-row: 1; }
.abe .abe-trip .bk-trip > .bk-mode { grid-column: 2; grid-row: 1; display: inline-flex; gap: 2px; padding: 3px; border-radius: 99px; background: var(--bg); }
.abe .abe-trip .bk-trip > .bk-mode button { min-height: 34px; padding: 0 14px; border-radius: 99px; font-size: 13.5px; font-weight: 700; box-shadow: none; }
.abe .abe-trip .bk-trip > .bk-mode button svg { width: 16px; height: 16px; }
.abe .abe-trip .bk-trip > .bk-dt { margin: 0; }
.abe .abe-trip .bk-trip > .bk-rt { grid-column: 1; order: 3; width: fit-content; padding: 2px 0; border: 0; background: none; }
.abe .abe-trip .bk-trip > .bk-go { grid-column: 2; order: 4; width: auto; min-height: 42px; margin: 0; padding: 0 18px; font-size: 14px; }
.abe .abe-trip .bk-trip > .bk-go svg { display: none; }
.abe .abe-trip .bk-trip > .bk-return { order: 5; }
.abe .abe-trip .bk-return .bk-dt { margin-top: 0; }

/* Véhicules : petites tuiles (nom, places, prix) */
.abe .abe-vehs { margin-top: 14px; }
.abe .abe-vehs .bk-sec { margin: 0; }
.abe .abe-vehs .bk-sec > .bk-h { display: none; }
.abe .abe-vehs .bk-seats-sec > .bk-h { display: block; margin: 14px 0 8px; font-size: 14px; }
.abe .abe-vehs .bk-vehs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.abe .abe-vehs .bk-veh { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--bg); box-shadow: none; }
.abe .abe-vehs .bk-veh.on { background: color-mix(in srgb, var(--gold) 10%, var(--bg)); box-shadow: inset 0 0 0 1px var(--gold); }
.abe .abe-vehs .bk-veh-img, .abe .abe-vehs .bk-radio { display: none; }
.abe .abe-vehs .bk-veh-body { width: 100%; }
.abe .abe-vehs .bk-veh-name { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.abe .abe-vehs .bk-veh-meta { gap: 10px; margin-top: 2px; font-size: 12.5px; }
.abe .abe-vehs .bk-veh-meta svg { width: 14px; height: 14px; }
.abe .abe-vehs .bk-veh-price b { font-size: 15px; }
.abe .abe-manual { margin-top: 14px; }
.abe .abe-trip .ab-route { margin: 14px 0 0; }
.abe .abe-trip .ab-route .ab-rmap { height: 130px; }

/* Passagers et grands bagages : − / + */
.abe .abe-steps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin: 0 0 12px; }
@container (max-width: 380px) { .abe .abe-steps { grid-template-columns: minmax(0, 1fr); } }
.abe .abe-step { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 46px; padding: 0 5px 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); min-width: 0; }
.abe .abe-step > span:first-child { min-width: 0; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.abe .abe-n { display: flex; align-items: center; flex: none; }
.abe .abe-n b { min-width: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.abe .abe-n button { width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--text); display: grid; place-items: center; cursor: pointer; transition: background-color .3s, color .3s; }
.abe .abe-n button .abe-ic { stroke: currentColor; width: 15px; height: 15px; stroke-width: 2.2; }
.abe .abe-n button:disabled { opacity: .3; cursor: default; }

/* Paiement : moyens en pastilles, service du lien, prix client à côté de « Déjà payé » */
.abe .abe-pays { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.abe .abe-pays .ab-pay { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 15px; border-radius: 99px; font-size: 14px; font-weight: 700; background: var(--bg); }
.abe .abe-pays .ab-pay .abe-ic { stroke: currentColor; width: 16px; height: 16px; }
.abe .abe-prov { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg); }
.abe .abe-prov small { margin-inline-end: 4px; color: var(--muted); font-size: 13px; font-weight: 600; }
.abe .abe-pv { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 13px; border: 1px solid var(--line); border-radius: 99px; background: var(--bg); color: var(--text); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.abe .abe-pv.on { background: var(--text); border-color: var(--text); color: var(--bg); }
.abe .abe-pv .abe-ic { stroke: currentColor; width: 14px; height: 14px; stroke-width: 2.4; }
.abe .abe-pr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; margin-top: 14px; }
.abe .abe-pr .f { margin: 0; }
.abe .abe-paidc { padding-top: 26px; }
.abe .abe-paidc .ab-paid { margin: 0; }
.abe .abe-paidc .ab-paidat { margin-top: 12px; max-width: none; }
.abe .abe-opts { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.abe .abe-opts .check { margin: 0; }

/* Barre du bas : trajet, total, marge, Enregistrer (au-dessus de la barre d'onglets sur téléphone) */
.abe .abe-dock { position: sticky; bottom: calc(var(--tabbar-h, 0px) + 12px); z-index: 30; display: flex; align-items: center; gap: 14px; margin: 16px 0 0; padding: 10px 10px 10px 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg); box-shadow: 0 14px 36px rgba(0, 0, 0, .14), 0 2px 6px rgba(0, 0, 0, .06); }
.abe .abe-rt { flex: 1; min-width: 0; }
.abe .abe-rt b, .abe .abe-rt small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.abe .abe-rt small { color: var(--muted); font-size: 12.5px; }
.abe .abe-ml { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.abe .abe-ml .abe-ic { stroke: currentColor; width: 16px; height: 16px; }
.abe .abe-ml.off { text-decoration: line-through; }
.abe .abe-tot { text-align: end; white-space: nowrap; }
.abe .abe-tot b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.abe .abe-tot small { font-size: 12px; font-weight: 700; }
.abe .abe-tot .g { color: var(--green, #1f8a4c); } .abe .abe-tot .r { color: var(--red, #c93b3b); }
.abe .abe-dock .btn { flex: none; width: auto; min-height: 46px; margin: 0; padding: 0 22px; }
@media (hover: hover) {
  .abe .abe-new:hover { color: var(--text); }
  .abe .abe-n button:not(:disabled):hover, .abe .abe-pv:not(.on):hover { background: var(--text); border-color: var(--text); color: var(--bg); }
  .abe .abe-vehs .bk-veh:not(.on):hover { border-color: var(--text); }
}
@media (max-width: 999px) {
  .abe .abe-split, .abe .abe-pr { grid-template-columns: minmax(0, 1fr); }
  .abe .abe-paidc { padding-top: 0; }
  .abe .abe-vehs .bk-vehs { gap: 6px; }
  .abe .abe-vehs .bk-veh { padding: 9px 10px; }
  .abe .abe-vehs .bk-veh-meta { flex-wrap: wrap; gap: 2px 8px; }
  .abe .abe-trip .bk-trip > .bk-go { grid-column: 1 / -1; width: 100%; }
  .abe .abe-dock { flex-wrap: wrap; gap: 10px; padding: 12px; border-radius: 18px; }
  .abe .abe-rt { flex-basis: 100%; }
  .abe .abe-tot { order: 1; text-align: start; }
  .abe .abe-ml { order: 2; margin-inline-start: auto; }
  .abe .abe-dock .btn { order: 3; flex: 1 1 100%; }
}
@media (max-width: 400px) {
  .abe .abe-trip .bk-trip > .bk-mode { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
}
/* Version E : sièges enfant et véhicule du chauffeur en compact (admin seulement) */
.abe .abe-vehs .bk-seats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.abe .abe-vehs .bk-seat { align-items: stretch; padding: 10px 12px; border-radius: 12px; background: var(--bg); box-shadow: none; }
.abe .abe-vehs .bk-seat.on { box-shadow: inset 0 0 0 1px var(--gold); border-color: var(--gold); }
.abe .abe-vehs .bk-seat-img, .abe .abe-vehs .bk-seat-sel { display: none; }
.abe .abe-vehs .bk-seat-name { font-size: 14px; }
.abe .abe-vehs .bk-seat-qty { margin-top: 8px; padding-top: 8px; }
.abe .abe-vehs .bk-seats-sec .bk-ages { margin-top: 8px; padding: 12px; background: var(--bg); }
.abe .abv1 { max-width: none; display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; align-items: center; margin: 0 0 12px; padding: 8px; }
.abe .abv1-pic { aspect-ratio: auto; height: 66px; }
.abe .abv1-arr { width: 24px; height: 24px; font-size: 16px; } .abe .abv1-arr.prev { left: 4px; } .abe .abv1-arr.next { right: 4px; }
.abe .abv1-ava { left: auto; right: -8px; bottom: -8px; border-width: 2px; } .abe .abv1-ava .drv-ava { width: 30px; height: 30px; font-size: 11px; }
.abe .abv1-t { padding: 0; align-items: center; min-width: 0; } .abe .abv1-t b, .abe .abv1-t small { overflow-wrap: anywhere; }
@media (max-width: 999px) { .abe .abe-vehs .bk-seats { grid-template-columns: minmax(0, 1fr); } }
.abe .abe-pays .ab-pay.on { background: var(--gold); border-color: var(--gold); color: #fff; }
@media (hover: hover) { .abe .abe-pays .ab-pay:hover, .abe .abe-pays .ab-pay.on:hover { background: var(--text); border-color: var(--text); color: var(--bg); } }
.abe { width: 100%; min-width: 0; box-sizing: border-box; } .abe .ab-main { min-width: 0; }   /* .wrap est en flex : sans cela la page prend 820 px même dans une colonne plus étroite */
/* Version E sur téléphone : sièges enfant sur une ligne, barre du bas sur deux lignes, bulle de chat au-dessus de la barre */
@media (max-width: 999px) {
  .abe .abe-vehs .bk-seat { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "head qty"; column-gap: 12px; align-items: center; padding: 10px 12px; text-align: start; }
  .abe .abe-vehs .bk-seat-head { grid-area: head; gap: 10px; }
  .abe .abe-vehs .bk-seat-qty { grid-area: qty; width: auto; margin: 0; padding: 0; border: 0; }
  .abe .abe-vehs .bk-seat-qty > span { display: none; }
  .abe .abe-vehs .bk-seat-price { font-size: 16px; }
  .abe .abe-dock { gap: 8px 12px; }
  .abe .abe-rt { flex: 1 1 0; flex-basis: 0; order: 0; }
  .abe .abe-ml { order: 1; margin-inline-start: 0; }
  .abe .abe-ml > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .abe .abe-ml.off .abe-ic { opacity: .35; }
  .abe .abe-tot { order: 2; flex: 1 1 auto; text-align: start; }
  .abe .abe-tot b { font-size: 19px; }
  .abe .abe-dock .btn { order: 3; flex: none; min-height: 44px; padding: 0 20px; }
}
/* Téléphone : plus de barre flottante sur « Nouveau transfert » : le résumé et « Enregistrer » sont à la fin de la page (owner, 2026-11-23). */
@media (max-width: 999px) { .abe .abe-dock { position: static; box-shadow: none; } }
@media (max-width: 999px) { .abe .abe-rt { flex: 1 1 calc(100% - 44px); } }
/* Finances : même haut de page que Tarifs (orderinv.js oinvTopHtml), owner 2026-11-23. */
.fnc-head { align-items: center; }
.fnc-head .oi-sp { flex: 1; }
.fnc-head h1 { margin: 6px 0 0; font-size: 26px; letter-spacing: -.015em; }
.fnc-tabs .oi-seg { width: auto; }
.oi-newbtn { display: none; }
/* Finances › Règlements : liste des chauffeurs à gauche, relevé du chauffeur choisi à côté (earnings.js viewEarningsAdmin), owner 2026-11-23. */
.ea-page.ea-adm { max-width: none; }
.ea-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 28px; align-items: start; }
.ea-list-col { display: grid; gap: 10px; margin-top: 10px; }
.ea-adm .ea-card.on { outline: 1.5px solid var(--gold); outline-offset: -1.5px; }
.ea-col-side .ea-who h2 { margin: 0; font-size: 20px; }
.ea-col-side .ea-pick { margin-top: 40px; }
.ea-adm:not(.has-sel) .ea-col-side, .ea-adm.has-sel .ea-col-list { display: none; }   /* une colonne : la liste, ou le relevé seul */
@media (min-width: 1000px) {
  .ea-split { grid-template-columns: 340px minmax(0, 1fr); }
  .ea-adm:not(.has-sel) .ea-col-side, .ea-adm.has-sel .ea-col-list { display: block; }
  .ea-col-side { max-width: 780px; }
  .ea-col-side .ea-back { display: none; }
  .ea-col-side .ea-who { margin-top: 22px; }
  .ea-col-list .hint { font-size: 12.5px; }
}
/* Nouveau transfert (admin) : « Transfert de test » en haut à droite, à côté du titre (book.js), owner 2026-11-23.
   Son explication n'apparaît que lorsqu'il est allumé (ou imposé par un client de test), pour ne pas charger le coin. */
.ab-titlerow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin: 6px 0 14px; }
.ab-titlerow .bk-title { margin: 0; }
.ab-titlerow .tm-sw { margin: 0; align-items: center; font-size: 14.5px; font-weight: 600; max-width: 320px; }
.ab-titlerow .tm-sw small { display: none; }
.ab-titlerow .tm-sw:has(input:checked) { align-items: flex-start; }
.ab-titlerow .tm-sw:has(input:checked) small { display: block; }
/* « Nouveau transfert » du super admin en fenêtre (abpop.js), owner 2026-11-23. Ordinateur : fenêtre centrée sur la page d'avant,
   figée (#abBack) et assombrie (#abDim, au-dessus du menu de gauche). Téléphone : plein écran, avec la croix. */
.ab-titlerow .ab-x { flex: none; margin-inline-start: 4px; }
.ab-titlerow .tm-sw { margin-inline-start: auto; }
@media (max-width: 640px) { .ab-titlerow { flex-wrap: nowrap; gap: 8px; } .ab-titlerow .bk-title { font-size: 21px; white-space: nowrap; } .ab-titlerow .tm-sw { white-space: nowrap; font-size: 13.5px; gap: 8px; } .ab-titlerow .tm-sw:has(input:checked) small { display: none; } .ab-titlerow .ab-x { margin-inline-start: 0; } }
#abBack { position: fixed; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; background: var(--bg); }
#abBack .ab-back-in { position: absolute; box-sizing: border-box; }
#abDim { position: fixed; inset: 0; z-index: 650; background: rgba(0, 0, 0, .45); }
@media (min-width: 1000px) {
  html.ab-pop .ab-wrap { position: relative; z-index: 660; max-width: 900px; min-height: 0; margin: 20px auto 40px 20px !important; padding: 14px 28px 22px; background: var(--bg); border-radius: 22px; box-shadow: 0 24px 80px rgba(0, 0, 0, .28); }
  html.ab-pop .ab-wrap > .top { display: none; }
  html.ab-pop .ab-wrap .bk-page { padding-inline: 0; max-width: none; }
  html.ab-pop .ab-wrap .abe-dock { bottom: 16px; }
  html.ab-pop #tmWash { display: none; }
  html.ab-pop.tm-washed .ab-wrap { background: color-mix(in srgb, var(--gold) 13%, var(--bg)); }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 1000px) {
  html.ab-pop #abDim { animation: abp-fade .2s ease-out both; }
  @keyframes abp-fade { from { opacity: 0; } }
}
/* ==================== Nouvelle tarification (pricing2.js, owner 2026-11-23 : design 3 « Carte d'abord ») ==================== */
.p2-mode { max-width: none; flex: none; margin: 0; }
.p2-mode .tm-badge { margin-inline-start: 4px; }
.p2-mode .on .tm-badge { background: #fff; color: #e8590c; }
.pr-head .p2-mode { order: 1; align-self: center; margin: 6px 0 0; }   /* la bascule juste à droite du titre (owner, 2026-11-23) */
.pr-head .p2-br { order: 2; flex-basis: 100%; height: 0; }
.pr-head .pr-ver { order: 3; }
.pr-head .pr-hist { order: 4; }
.pr-head .p2-ver > .pr-ver, .pr-head .p2-ver > .pr-hist { order: 0; }
.p2-bar .p2-sub > button, .p2-mode > button { white-space: nowrap; }
.p2-ver { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0; order: 3; flex: 1 1 100%; min-width: 0; }
.pr-place { position: relative; }   /* la liste des adresses s'ouvre sous son champ (elle partait en haut de la page) */
.pr-place > .bk-sugg { inset-inline: 0; }
.p2-ver .pr-hist { margin-inline-start: auto; }
.p2-ver .pr-hist svg, .p2-card .btn svg, .p2-side .btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.p2-dirty { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gold); font-weight: 600; }
.p2-dirty[hidden] { display: none; }
.p2-dirty i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
/* Carte + panneau */
.p2-mapwrap { display: grid; grid-template-columns: minmax(0, 1fr) 350px; height: 620px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--panel); margin-bottom: 24px; }
.p2-map { position: relative; border-inline-end: 1px solid var(--line); min-height: 0; }
.p2-leaf { position: absolute; inset: 0; background: var(--panel-2); }
.p2-legend { position: absolute; left: 12px; top: 12px; right: 56px; z-index: 500; display: flex; gap: 6px; flex-wrap: wrap; pointer-events: none; }
.p2-lg { pointer-events: auto; border: 0; border-radius: 99px; padding: 6px 12px; font: inherit; font-size: 12.5px; background: #fff; color: #6b6b6b; box-shadow: 0 1px 4px rgba(0, 0, 0, .14); cursor: pointer; transition: background .3s, color .3s; }
.p2-lg.on { background: #f5efdc; color: #7a6420; font-weight: 600; }
.leaflet-tooltip.p2-zlbl { background: none; border: 0; box-shadow: none; padding: 0; font: 700 12px/1.2 Manrope, system-ui, sans-serif; color: #1b1b1b; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 2px #fff; }
.leaflet-tooltip.p2-zlbl::before { display: none; }
.p2-chipm { background: none; border: 0; }
.p2-chip { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; background: #fff; color: #000; border: 1px solid #e4e4e4; border-radius: 99px; padding: 3px 10px; font: 700 12px/1.35 Manrope, system-ui, sans-serif; font-variant-numeric: tabular-nums; box-shadow: 0 2px 6px rgba(0, 0, 0, .14); cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.p2-chip.on { background: #000; color: #fff; border-color: #000; }
.p2-chip.p2-chip-none { color: var(--muted, #6b6b6b); font-weight: 600; opacity: .85; }
.p2-chip.p2-chip-none.on { color: #fff; opacity: 1; }
/* « Modifier la zone » en bas à droite de la carte, modification du contour sur place (owner, 2026-11-23) */
.p2-zedit { position: absolute; right: 12px; bottom: 30px; z-index: 600; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 24px); }
.p2-zedit > .btn { box-shadow: 0 2px 10px rgba(0,0,0,.14); }
.p2-zedit .btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.p2-zedit.on { left: 12px; background: var(--panel, #fff); border-radius: 16px; padding: 10px 12px; box-shadow: 0 4px 20px rgba(0,0,0,.16); flex-wrap: wrap; }
.p2-zedit-h { flex: 1 1 200px; font-size: 13px; color: var(--muted); line-height: 1.4; }
.p2-zedit-b { display: flex; gap: 8px; margin-inline-start: auto; }
@media (max-width: 640px) { .p2-zedit.on { padding: 8px; bottom: 24px; } .p2-zedit.on .p2-zedit-h { display: none; } .p2-zedit-b { width: 100%; } .p2-zedit-b .btn { flex: 1; } }
/* Onglets véhicules au-dessus de la carte (owner, 2026-11-23, design 1) */
.p2-vbar { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; min-width: 0; }
.p2-vfor { flex: none; font-size: 13px; font-weight: 600; color: var(--muted); }
.p2-vbar .p2-vseg { margin: 0; max-width: 100%; min-width: 0; flex: 0 1 auto; overflow-x: auto; scrollbar-width: none; }
.p2-vbar .p2-vseg::-webkit-scrollbar { display: none; }
.p2-vbar .p2-vseg > button { flex: none; white-space: nowrap; }
@media (max-width: 640px) { .p2-vbar { flex-wrap: wrap; gap: 6px; } .p2-vbar .p2-vseg { display: flex; width: 100%; justify-content: flex-start; } }
.p2-side { padding: 18px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; min-height: 0; }
.p2-side .hint { margin: 0; }
.p2-sh { margin: 0; font-size: 18px; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.p2-sh svg { width: 19px; height: 19px; flex: none; stroke: var(--gold); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.p2-side .p2-sub { font-size: 12.5px; font-weight: 700; color: var(--muted); display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0 -6px; }
.p2-grp { display: flex; flex-direction: column; }
.p2-kv { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.p2-grp > .p2-kv:last-child { border-bottom: 0; }
.p2-kv small { color: var(--muted); font-size: 12px; }
.p2-in { width: 86px; text-align: end; border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; font: inherit; font-weight: 600; font-size: 14px; background: var(--panel); color: var(--text); font-variant-numeric: tabular-nums; transition: border-color .2s; }
.p2-in.sm { width: 66px; }
.p2-in:focus { border-color: var(--gold); outline: none; }
.p2-eff { display: inline-flex; align-items: center; gap: 6px; }
.p2-unit { display: inline-flex; padding: 2px; border-radius: 99px; border: 1px solid var(--line); }
.p2-unit button { border: 0; background: none; border-radius: 99px; padding: 4px 9px; font: inherit; font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; transition: background .3s, color .3s; }
.p2-unit button.on { background: var(--gold); color: #fff; }
.p2-u { font-size: 12px; color: var(--muted); font-weight: 600; }
.p2-list { list-style: none; margin: 0; padding: 0; }
.p2-list button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 6px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: start; color: inherit; font: inherit; cursor: pointer; border-radius: 8px; transition: background .3s; }
.p2-list li:last-child button { border-bottom: 0; }
.p2-list button > span { flex: 1; min-width: 0; }
.p2-list b { display: block; font-size: 14px; }
.p2-list small { display: block; color: var(--muted); font-size: 12.5px; }
.p2-list svg { width: 16px; height: 16px; flex: none; stroke: var(--muted); fill: none; stroke-width: 2; }
.p2-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); flex: none; }
.p2-dot.on { background: var(--gold); }
.p2-dot.dash { background: none; border: 1.5px dashed #8f8f8f; }
.p2-backl { align-self: flex-start; display: inline-flex; gap: 4px; align-items: center; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; padding: 2px 0; transition: color .3s; }
.p2-backl svg, .p2-rm svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.p2-rm { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 3px; border-radius: 8px; display: inline-grid; place-items: center; transition: background .3s, color .3s; }
.p2-chips { display: flex; flex-wrap: wrap; gap: 6px; }
/* Panneau d'une zone, réécrit pour être simple (owner, 2026-11-23) : une question par section, cartes sans bord, Enregistrer toujours visible */
.p2z { display: flex; flex-direction: column; gap: 26px; }
.p2z-sec { display: flex; flex-direction: column; gap: 10px; }
.p2z-h { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 15.5px; font-weight: 700; line-height: 1.3; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.p2z-h svg { width: 18px; height: 18px; flex: none; stroke: var(--gold); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.p2z-hint { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.p2z-empty { margin: 0; font-size: 13.5px; color: var(--muted); }
.p2z-card { background: var(--panel-2); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.p2z-ch { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.p2z-ch b { font-size: 14.5px; line-height: 1.35; }
.p2z-rm { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; transition: background .3s, color .3s; }
.p2z-rm svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .p2z-rm:hover { background: #c62828; color: #fff; } }
.p2z-dir { display: flex; align-items: center; gap: 10px; margin: 0; }
.p2z-dir > span:first-child { flex: none; font-size: 13px; font-weight: 600; color: var(--muted); }
.p2z-dir > select, .p2z-dir > .sel-btn { flex: 1; min-width: 0; }
.p2z-rows { display: flex; flex-direction: column; gap: 8px; }
.p2z-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; margin: 0; }
.p2z-money { position: relative; display: inline-flex; flex: none; }
#p2Tab .p2z .p2z-money input.p2-in { width: 104px; padding-inline-end: 28px; background: var(--bg); }   /* #p2Tab : plus fort que « #p2Tab input.p2-in » plus bas */
.p2z-money .p2-in::placeholder { font-weight: 500; color: var(--muted); font-size: 12.5px; }
.p2z-money b { position: absolute; inset-inline-end: 10px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--muted); pointer-events: none; }
.p2z-add { margin: 0; }
.p2z-xrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; }
.p2z-xl { font-size: 14px; }
.p2z-xrow .p2-in { background: var(--bg); }
.p2z-ex { grid-column: 1 / -1; font-size: 12px; color: var(--gold); font-weight: 600; }
.p2z-xrow + .p2z-xrow { padding-top: 10px; border-top: 1px solid var(--line); }
.p2z .p2-vpk { gap: 12px; }
.p2z-rmc { align-self: flex-start; }
.p2z-save { position: sticky; bottom: -18px; margin: 8px -18px -18px; padding: 12px 18px; background: var(--panel, var(--bg)); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: flex-end; gap: 12px; z-index: 2; }
.p2z-dirty { font-size: 13px; font-weight: 600; color: var(--gold); margin-inline-end: auto; }
/* Véhicules au départ d'une zone, modifiables (owner, 2026-11-23) */
.p2-vpk { display: grid; gap: 12px; }
.p2-vpr { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.p2-vpn { font-size: 13.5px; font-weight: 600; min-width: 0; flex: 1 1 120px; }
.p2-vpn small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; margin-top: 1px; }
.p2-vps { margin: 0; max-width: none; flex: none; padding: 3px; }
.p2-vps > button { padding: 5px 10px; font-size: 12.5px; white-space: nowrap; }
.chip-g, .chip-n { display: inline-flex; align-items: center; border-radius: 99px; padding: 3px 10px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.chip-g { background: var(--gold-soft); color: var(--gold); }
.chip-n { background: var(--panel-2); color: var(--muted); }
.p2-side .p2-h { margin: -4px 0 0; font-size: 12px; }
.p2-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.p2-acts .spacer { flex: 1; }
.p2-evl { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: none; font: inherit; color: inherit; cursor: pointer; text-align: start; }
.p2-side .f { margin: 0; }
/* Compteur, Heures et dates, Essai */
.p2-card h2 { margin: 0 0 4px; font-size: 17px; }
.p2-card > .hint { margin: 0 0 4px; }
.p2-breaks { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 12px 0; font-size: 13px; color: var(--muted); }
.p2-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.p2-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.p2-table th { font-size: 12px; color: var(--muted); font-weight: 600; text-align: end; padding: 6px 8px; white-space: nowrap; }
.p2-table td { padding: 8px; border-top: 1px solid var(--line); white-space: nowrap; text-align: end; vertical-align: middle; }
.p2-table th:first-child, .p2-table td:first-child { text-align: start; }
.p2-table td small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.p2-table td .p2-u { margin-inline-start: 5px; }
.p2-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.p2-two .pr-card { margin: 0; }
.p2-form2, .p2-form3 { display: grid; gap: 12px; margin-top: 12px; }
.p2-form2 .f, .p2-form3 .f { margin: 0; }
.p2-foot { margin: 0 0 28px; }
.p2-day { display: flex; height: 50px; border-radius: 12px; overflow: hidden; margin: 14px 0 4px; background: var(--panel-2); }
.p2-day > div { display: flex; flex-direction: column; justify-content: center; padding: 0 10px; min-width: 0; overflow: hidden; font-size: 12px; color: var(--muted); border-inline-end: 2px solid var(--panel); }
.p2-day > div:last-child { border-inline-end: 0; }
.p2-day .up { background: var(--gold); color: #fff; }
.p2-day .dn { background: var(--text); color: var(--bg); }
.p2-day b { font-size: 13px; }
.p2-day small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p2-hours { position: relative; height: 16px; font-size: 11px; color: var(--muted); margin-bottom: 14px; }
.p2-hours span { position: absolute; top: 0; transform: translateX(-50%); }
.p2-hours span:first-child { transform: none; }
.p2-rows { display: flex; flex-direction: column; gap: 12px; margin: 12px 0; }
.p2-row { display: grid; gap: 10px; align-items: end; padding: 12px; border: 1px solid var(--line); border-radius: 14px; }
.p2-trow { grid-template-columns: minmax(120px, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) 120px 36px; }
.p2-erow { grid-template-columns: minmax(140px, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) 120px minmax(130px, 1.2fr) 36px; }
.p2-row .f, .p2-row .bk-field { margin: 0; min-width: 0; }
.p2-row .p2-in { width: 100%; }
.p2-rmrow { align-self: end; margin-bottom: 4px; }
.p2-rmrow svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.p2-none { margin: 0; text-align: start; padding: 4px 0; }
.p2-late { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; margin: 10px 0 6px; }
.p2-tryf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr) auto; gap: 12px; align-items: end; margin-top: 12px; }
.p2-tryf .f, .p2-tryf .bk-field { margin: 0; }
.p2-dt { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.p2-tickets { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-top: 10px; }
.p2-ticket { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.p2-ticket.off { opacity: .6; }
.p2-ticket h3 { margin: 0 0 6px; font-size: 15px; }
.p2-tl { list-style: none; margin: 0; padding: 0; }
.p2-tl li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.p2-tl li small { display: block; color: var(--muted); font-size: 11.5px; }
.p2-tl li b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.p2-tl li b.up { color: var(--gold); }
.p2-tot { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; }
.p2-tot span { color: var(--muted); font-size: 13px; }
.p2-tot b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.p2-vs { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.p2-jr { margin-top: 12px; }
.p2-jr td b { display: block; font-variant-numeric: tabular-nums; }
.p2-jr td small i { font-style: normal; font-weight: 700; }
.p2-jr td small i.up { color: var(--gold); }
.p2-jr td small i.dn { color: var(--green); }
.p2-jr .trip { white-space: normal; min-width: 200px; }
/* Réserver : les deux interrupteurs ensemble, prix actuel barré à côté du nouveau */
.ab-sws { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 22px; margin-inline-start: auto; }
.ab-titlerow .ab-sws .tm-sw { margin-inline-start: 0; }
.bk-veh-price s.p2-old { font-size: 13px; color: var(--muted); font-weight: 500; white-space: nowrap; }
@media (hover: hover) {
  .p2-lg:hover, .p2-chip:hover { background: #000; color: #fff; border-color: #000; }
  .p2-list button:hover { background: var(--panel-2); }
  .p2-backl:hover { color: var(--text); }
  .p2-rm:hover { background: var(--red-soft); color: var(--red); }
}
@media (max-width: 1000px) {
  .p2-mapwrap { grid-template-columns: minmax(0, 1fr); height: auto; }
  .p2-map { height: 360px; border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .p2-side { overflow: visible; }
  .p2-tryf { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .p2-trow, .p2-erow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .p2-row > .f:first-child { grid-column: 1 / -1; }
  .p2-rmrow { grid-column: -2; justify-self: end; }
}
@media (max-width: 640px) {
  .pr-head .p2-mode { width: 100%; display: flex; }
  .pr-head .p2-mode > button { flex: 1; }
  .p2-map { height: 300px; }
  .p2-two { grid-template-columns: minmax(0, 1fr); }
  .p2-tryf { grid-template-columns: minmax(0, 1fr); }
  .ab-titlerow { flex-wrap: wrap; }
  .ab-titlerow .bk-title { flex: 1; }
  .ab-titlerow .ab-x { order: 1; }
  .ab-sws { order: 2; width: 100%; margin-inline-start: 0; gap: 4px 18px; }
}
#p2Tab input.p2-in { width: 88px; min-width: 0; flex: none; padding: 7px 10px; height: auto; border-radius: 10px; }
#p2Tab input.p2-in.sm { width: 66px; }
#p2Tab .p2-row input.p2-in { width: 100%; }
#p2Tab .p2-row .p2-eff { display: flex; } #p2Tab .p2-row .p2-eff input.p2-in { flex: 1; width: auto; }
#p2Tab .p2-row input.p2-in { padding: 11px 12px; }
/* ==================== Nouvelle tarification, 2e partie (owner 2026-11-23) : annuler/rétablir, versions, points à vérifier, scénarios ==================== */
.ud-dialog p { white-space: pre-line; }   /* listes de changements dans la confirmation (une ligne par changement) */
.p2-ur { display: inline-flex; gap: 2px; }
.p2-ur .icon-btn svg, .p2-scacts .icon-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.p2-ur .icon-btn:disabled { opacity: .35; cursor: default; }
.p2-chk { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 99px; padding: 5px 12px; font: inherit; font-size: 12.5px; font-weight: 600; background: rgba(232, 89, 12, .12); color: #c2410c; cursor: pointer; transition: background .3s, color .3s; }
.p2-chk svg, .p2-checks svg { width: 15px; height: 15px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.p2-checks { list-style: none; margin: 0; padding: 0; }
.p2-checks li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.p2-checks li:last-child { border-bottom: 0; }
.p2-checks li > span { display: flex; gap: 8px; align-items: flex-start; color: var(--text); }
.p2-checks li > span svg { color: #c2410c; margin-top: 2px; }
.p2-vprev { margin: 4px 0 14px; }
.p2-vprev svg, .p2-adjb svg, .p2-ch .btn svg, .p2-ow .btn svg, .p2-sctools .btn svg, .p2-simtools .btn svg, .p2-simf .btn svg, .p2-scacts .btn svg, .p2-acts .btn svg, .p2-evbar .btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.p2-simtools .btn.primary svg { fill: currentColor; stroke: none; }
.p2-vlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.p2-vlist > li { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.p2-vlist > li.cur { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.p2-vh { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.p2-vh small { flex-basis: 100%; color: var(--muted); font-size: 12.5px; }
.p2-vd { margin: 8px 0 10px; padding-inline-start: 18px; font-size: 13px; }
.p2-vd li { margin: 2px 0; }
.p2-vacts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.p2-vin { flex: 1; min-width: 160px; border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; font: inherit; font-size: 14px; background: var(--panel); color: var(--text); }
.p2-vin:focus { border-color: var(--gold); outline: none; }
.pr-dlg.p2-vdlg { max-width: 720px; }
.p2-zq { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; background: var(--panel); }
.p2-zq svg { width: 16px; height: 16px; flex: none; stroke: var(--muted); fill: none; stroke-width: 2; stroke-linecap: round; }
#p2Tab .p2-zq input { border: 0; padding: 9px 0; background: none; font: inherit; font-size: 14px; flex: 1; min-width: 0; outline: none; box-shadow: none; color: var(--text); }
.p2-list li[hidden] { display: none; }
.p2-adjb { align-self: flex-start; }
.p2-ow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; font-size: 13px; }
.p2-ow .check { margin: 0; }
.p2-ch { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; }
.p2-ch h2 { margin: 0; }
.p2-days { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.p2-days > span { font-weight: 600; margin-inline-end: 4px; }
.p2-days button, .p2-pchip { border: 1px solid var(--line); background: var(--panel); color: var(--muted); border-radius: 99px; padding: 4px 11px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: background .3s, color .3s, border-color .3s; display: inline-flex; align-items: center; gap: 4px; }
.p2-days button.on, .p2-pchip.on { background: var(--gold); border-color: var(--gold); color: #fff; }
.p2-pchip svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; }
.p2-evbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.p2-sugg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.p2-sugg small { color: var(--muted); font-size: 12.5px; }
/* Simulation */
.p2-simtools { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.p2-cmpf { margin: 0; min-width: 210px; }
.p2-sctools { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.p2-simsum { margin: 14px 0 4px; padding: 12px 14px; border-radius: 14px; background: var(--panel-2); }
.p2-simsum p { margin: 0 0 8px; font-size: 14px; }
.p2-warn { color: #c2410c; }
.p2-simf { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.p2-simf .btn { margin-inline-start: auto; }
.p2-scs { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.p2-sc { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.p2-sch { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.p2-scn { min-width: 0; }
.p2-scn > b { display: block; font-size: 15px; }
.p2-scn > small { display: block; color: var(--muted); font-size: 12.5px; }
.p2-scn .p2-chips { margin-top: 6px; }
.p2-scacts { display: flex; align-items: center; gap: 2px; flex: none; }
.p2-scacts .btn { margin-inline-end: 6px; }
.p2-simt { margin-top: 10px; }
.p2-simt td b { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.p2-simt td small em { font-style: normal; font-weight: 700; }
.p2-simt td small em.up { color: var(--gold); }
.p2-simt td small em.dn { color: var(--green); }
.p2-simr { cursor: pointer; transition: background .2s; }
.p2-simr.open > td { background: var(--panel-2); }
.p2-st { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; font-size: 10.5px; font-style: normal; font-weight: 800; }
.p2-st.ok { background: var(--green-soft); color: var(--green); }
.p2-st.chg { background: rgba(232, 89, 12, .15); color: #c2410c; }
.p2-det > td { background: var(--panel-2); white-space: normal; text-align: start; }
.p2-dets { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.p2-dets > div > b { display: block; margin-bottom: 4px; }
.p2-scerr { margin: 8px 0 0; color: var(--red); font-size: 13.5px; }
/* Fenêtre d'un scénario */
.p2-scf { display: flex; flex-direction: column; gap: 14px; }
.p2-scf .f { margin: 0; }
.p2-two2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.p2-fld { display: flex; flex-direction: column; gap: 8px; }
.p2-lbl { font-size: 13px; font-weight: 600; color: var(--muted); }
.p2-chipl { display: flex; flex-wrap: wrap; gap: 6px; }
.p2-chipl:empty { display: none; }
.p2-chipl .chip-g { gap: 4px; padding-inline-end: 4px; }
.p2-chipl .chip-g button { border: 0; background: none; color: inherit; cursor: pointer; display: inline-grid; place-items: center; padding: 2px; border-radius: 50%; }
.p2-chipl .chip-g svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; }
.p2-qt { display: flex; flex-wrap: wrap; gap: 6px; }
.p2-addpick { max-width: 260px; }
.p2-addpick .bk-field { margin: 0; }
.p2-xs { display: flex; flex-direction: column; gap: 6px; }
.p2-x { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.p2-x:last-child { border-bottom: 0; }
.p2-x small { display: block; color: var(--muted); font-size: 12px; }
.p2-adjf { display: flex; flex-direction: column; gap: 12px; }
.p2-adjf .f, .p2-adjf .check { margin: 0; }
@media (hover: hover) {
  .p2-chk:hover { background: #c2410c; color: #fff; }
  .p2-days button:hover, .p2-pchip:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
  .p2-simr:hover > td { background: var(--panel-2); }
  .p2-chipl .chip-g button:hover { background: var(--gold); color: #fff; }
}
@media (max-width: 640px) {
  .p2-two2 { grid-template-columns: minmax(0, 1fr); }
  .p2-simtools { width: 100%; }
  .p2-cmpf { flex: 1; min-width: 0; }
  .p2-sch { flex-direction: column; }
  .p2-scacts { align-self: flex-end; }
  .p2-simf .btn { margin-inline-start: 0; }
}
.p2-x .abe-n { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 99px; padding: 3px; }
.p2-x .abe-n button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--panel-2); color: var(--text); display: grid; place-items: center; cursor: pointer; transition: background .3s, color .3s; }
.p2-x .abe-n button svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; }
.p2-x .abe-n b { min-width: 22px; text-align: center; font-variant-numeric: tabular-nums; border: 0; padding: 0; background: none; }
@media (hover: hover) { .p2-x .abe-n button:hover { background: var(--text); color: var(--bg); } }
.p2-foot .spacer { display: none; }   /* Enregistrer à gauche : la bulle de discussion occupe le coin en bas à droite */
/* ==================== Nouvelle tarification : saisons (owner 2026-11-23), année à peindre par demi-mois ==================== */
.p2-brush { max-width: none; flex: none; margin: 0; }
/* Saisons : menu ouvert par un appui sur un mois (tFilterMenu + p2BindSeason), owner 2026-11-23. */
.tf-menu.p2-semenu { min-width: 210px !important; }
.p2-semenu .p2-semh { padding: 6px 12px 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.p2-semenu .tf-opt > span { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.p2-semenu .tf-opt .tf-sub { margin-inline-start: 6px; }
.p2-brush button { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.p2-swc { width: 12px; height: 12px; border-radius: 4px; flex: none; display: inline-block; }
.p2-swc.high { background: var(--gold); }
.p2-swc.low { background: #5b7083; }
.p2-swc.none { background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
.p2-brush .on .p2-swc { box-shadow: 0 0 0 2px #fff; }
.p2-year { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; margin: 14px 0 12px; touch-action: none; user-select: none; -webkit-user-select: none; }
.p2-mo { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.p2-mon { border: 0; background: none; padding: 2px 0; font: inherit; font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; border-radius: 6px; text-transform: capitalize; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s, background .3s; }
.p2-hv { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.p2-half { height: 38px; border: 0; padding: 0; cursor: pointer; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); transition: background .15s; }
.p2-hv .p2-half:first-child { border-radius: 8px 0 0 8px; }
.p2-hv .p2-half:last-child { border-radius: 0 8px 8px 0; }
.p2-half.hi { background: var(--gold); box-shadow: none; }
.p2-half.lo { background: #5b7083; box-shadow: none; }
.p2-serows { display: flex; flex-direction: column; }
.p2-ser { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
/* Haute / basse saison en haut à droite, à côté du titre et du texte (owner, 2026-11-23) */
.p2-seh { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px 32px; }
.p2-seh-l { flex: 1 1 320px; min-width: 0; }
.p2-seh .p2-serows { flex: 0 1 340px; min-width: 260px; gap: 8px; }
.p2-seh .p2-ser { border-top: 0; padding: 0; }
@media (max-width: 999px) { .p2-seh { flex-direction: column; } .p2-seh-l { flex: none; width: 100%; } .p2-seh .p2-serows { flex-basis: auto; width: 100%; min-width: 0; } }
.p2-ser .p2-swc { width: 14px; height: 14px; }
.p2-sen { flex: 1; min-width: 0; }
.p2-sen b { display: block; font-size: 14px; }
.p2-sen small { display: block; color: var(--muted); font-size: 12.5px; }
.p2-seexr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 6px; }
.p2-seexr small { color: var(--muted); font-size: 12.5px; }
@media (hover: hover) {
  .p2-mon:hover { color: var(--text); background: var(--panel-2); }
  .p2-half:not(.hi):not(.lo):hover { background: color-mix(in srgb, var(--gold) 25%, var(--panel-2)); }
}
@media (max-width: 640px) {
  .p2-year { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 10px; }
  .p2-brush { width: 100%; display: flex; }
  .p2-brush button { flex: 1; justify-content: center; padding-inline: 6px; }
}
@media (max-width: 640px) { .p2-season .p2-brush { width: 100%; min-width: 0; box-sizing: border-box; } .p2-season .p2-brush button { flex: 1 1 0; min-width: 0; padding: 7px 4px; font-size: 12.5px; gap: 5px; } }

/* ---------- « Trop tôt pour partir » : « Je suis en route » plus d'1 h avant la prise en charge (team.js ewOpen, owner 2026-11-23, design 5) ---------- */
.ew-ov { position: fixed; inset: 0; z-index: 1200; }
.ew-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); opacity: 0; transition: opacity .25s ease; }
.ew-ov.in .ew-scrim { opacity: 1; }
.ew-sheet { position: absolute; left: 50%; bottom: 0; width: min(100%, 480px); max-height: 92dvh; overflow: auto; transform: translate(-50%, 100%); background: var(--bg); border-radius: 26px 26px 0 0; padding: 10px 20px calc(22px + env(safe-area-inset-bottom)); box-shadow: 0 -12px 40px rgba(0, 0, 0, .18); transition: transform .38s cubic-bezier(.16, 1, .3, 1); }
.ew-ov.in .ew-sheet { transform: translate(-50%, 0); }
.ew-ov.out .ew-sheet { transition-duration: .22s; transition-timing-function: ease-in; }
.ew-grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 16px; }
.ew-sheet h2 { margin: 0 0 10px; font-size: 21px; font-weight: 800; letter-spacing: -.015em; line-height: 1.2; }
.ew-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 99px; background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold); font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; margin: 0 0 14px; }
.ew-chip svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ew-sched { margin: 0 0 14px; border-radius: 16px; background: var(--panel-2); padding: 2px 14px; }
.ew-sched div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; font-size: 14.5px; }
.ew-sched div + div { border-top: 1px solid var(--line); }
.ew-sched span { color: var(--muted); }
.ew-sched b { font-weight: 700; font-variant-numeric: tabular-nums; }
.ew-sched .hl span, .ew-sched .hl b { color: var(--gold); }
.ew-why { margin: 0 0 16px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.ew-rem { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; cursor: pointer; font-size: 14.5px; font-weight: 600; }
.ew-rem small { display: block; margin-top: 1px; color: var(--muted); font-weight: 400; font-size: 12.5px; }
.ew-rem .grow { flex: 1; min-width: 0; }
.ew-ok { flex: none; color: var(--green); font-size: 13px; font-weight: 700; }
.ew-ok[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .ew-sheet, .ew-scrim { transition-duration: .01s; } }

/* ---------- Charte : règle des étapes non négociable + essai obligatoire (home.js chrStagesHtml / chrPracOpen, owner 2026-11-23, design 5) ---------- */
.chr-r:has(.chr-prac-btn) { align-items: flex-start; }
.chr-r small.chr-why { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--text); }
.chr-prac-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 48px; margin-top: 12px; border: 0; border-radius: 14px; background: var(--gold); color: #fff; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.chr-prac-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.chr-prac-btn.done { background: none; border: 1px solid var(--line); color: var(--text); }
@media (hover: hover) { .chr-prac-btn:hover, .chr-prac-btn.done:hover { background: var(--text); color: var(--bg); border-color: var(--text); } }
.chr-r small.chr-prac-st { margin-top: 8px; color: var(--red); font-weight: 600; }
.chr-r small.chr-prac-st.ok { color: var(--green); }
.chp-ov { position: fixed; inset: 0; z-index: 1200; }
.chp-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); opacity: 0; transition: opacity .25s ease; }
.chp-ov.in .chp-scrim { opacity: 1; }
.chp-sheet { position: absolute; left: 50%; bottom: 0; width: min(100%, 480px); max-height: 94dvh; overflow: auto; transform: translate(-50%, 100%); background: var(--bg); border-radius: 26px 26px 0 0; padding: 10px 16px calc(20px + env(safe-area-inset-bottom)); box-shadow: 0 -12px 40px rgba(0, 0, 0, .18); transition: transform .38s cubic-bezier(.16, 1, .3, 1); }
.chp-ov.in .chp-sheet { transform: translate(-50%, 0); }
.chp-ov.out .chp-sheet { transition-duration: .22s; transition-timing-function: ease-in; }
.chp-grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 14px; }
.chp-sheet h2 { margin: 0 0 4px; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.chp-d { margin: 0 0 16px; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.chp-top { display: flex; justify-content: flex-end; margin: 0 0 8px; }
.chp-card { margin: 0; }
.chp-ride { padding: 14px 16px 2px; }
.chp-ride > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.chp-ride > div b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.chp-ride > div span { color: var(--muted); font-size: 13px; }
.chp-ride p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }
.chp-ride p b { color: var(--text); }
.chp-done { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 68px; padding: 8px 14px; border-radius: 20px; background: color-mix(in srgb, var(--green) 12%, var(--bg)); color: var(--green); font-weight: 700; font-size: 15px; text-align: center; }
.chp-done svg { flex: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.chp-close { margin-top: 14px; }
@media (prefers-reduced-motion: reduce) { .chp-sheet, .chp-scrim { transition-duration: .01s; } }

/* Fiche chauffeur (super admin) : charte signée et « Retirer la signature » (home.js ufCharterMount, owner 2026-11-23) */
.dialog.uf .uf-chr[hidden] { display: none; }
.dialog.uf .ufc-st { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.45; }
.dialog.uf .ufc-st.ok { color: var(--green); }
.dialog.uf .ufc-st.no { color: var(--red); }
.dialog.uf .ufc-n { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.dialog.uf .ufc-btns { margin-top: 12px; }
.dialog.uf .uf-chr .uf-h .ufc-done { margin-left: auto; font-style: normal; font-size: 13px; font-weight: 700; color: var(--green); white-space: nowrap; animation: ufc-done 3.5s ease forwards; }
@keyframes ufc-done { 0% { opacity: 0; } 8%, 80% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .dialog.uf .uf-chr .uf-h .ufc-done { animation: none; } }
/* « Signer la charte » sans l'essai : la règle des étapes est mise en avant (home.js chrPracFocus, owner 2026-11-23) */
.chr-r.chr-hl { animation: chr-hl 1.3s ease-out 3; border-color: var(--gold); }
.chr-r.chr-hl .chr-prac-btn { animation: chr-hl-btn 1.3s ease-in-out 3; }
@keyframes chr-hl { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 70%, transparent); } 100% { box-shadow: 0 0 0 16px color-mix(in srgb, var(--gold) 0%, transparent); } }
@keyframes chr-hl-btn { 0%, 100% { transform: none; } 45% { transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .chr-r.chr-hl, .chr-r.chr-hl .chr-prac-btn { animation: none; } .chr-r.chr-hl { box-shadow: 0 0 0 3px var(--gold); } }
/* Charte signée (home.js viewCharter, .chr.chr-ok) : l'encadré de signature passe au vert et les règles sur fond vert clair,
   sauf la règle rouge du haut (owner, 2026-11-23). */
.chr.chr-ok .chr-sign { background: var(--green); }
.chr.chr-ok .chr-r:not(.chr-red) { background: color-mix(in srgb, var(--green) 7%, var(--panel)); border-color: color-mix(in srgb, var(--green) 28%, var(--line)); }
.chr.chr-ok .chr-name input[readonly] { background: rgba(255, 255, 255, .92); border-color: rgba(255, 255, 255, .92); }
/* Flèche de la liste « Vous ne recevrez pas… » centrée en hauteur sur le texte (owner, 2026-11-23). */
.ready-head { align-items: center; margin-bottom: 10px; }
.ready-head .ready-msg { margin: 0; }
.ready.fold .ready-head { margin-bottom: 0; }
.ready .ready-tg { margin: 0 -2px 0 0; }
/* ---------- Toutes les fenêtres (owner, 2026-11-23) : téléphone = tiroir qui monte du bas (comme « Trop tôt pour partir »),
   ordinateur = fenêtre posée juste au-dessus de l'endroit cliqué (app.js popPlace). Le calendrier déroulant (dt-drop), la feuille
   d'avis (dfb) et le recadrage de photo (avc-ov) gardent leur présentation. ---------- */
@keyframes pop-scrim { from { background: rgba(0, 0, 0, 0); } }
@keyframes pop-up { from { transform: translateY(100%); } }
@keyframes pop-in { from { opacity: 0; transform: scale(.96); } }
@media (max-width: 999px) {   /* tiroir sous 1000 px : deux modes seulement (owner, 2026-11-30) */
  html body .overlay:not(.dt-drop):not(.dfb):not(.avc-ov) { inset: 0; padding: 0; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, .45); animation: pop-scrim .25s ease both; }
  html body .overlay:not(.dt-drop):not(.dfb):not(.avc-ov) > .dialog { width: 100%; max-width: none; margin: 0; max-height: 92dvh; overflow: auto; overscroll-behavior: contain;
    border-radius: 26px 26px 0 0; border-width: 1px 0 0; padding-bottom: calc(24px + env(safe-area-inset-bottom)); box-shadow: 0 -12px 40px rgba(0, 0, 0, .18);
    animation: pop-up .38s cubic-bezier(.16, 1, .3, 1) both; }
  html body .overlay:not(.dt-drop):not(.dfb):not(.avc-ov) > .dialog::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: -8px auto 14px; }
  html body .overlay.pop-drag > .dialog { animation: none; transition: none; }
}
/* Ordinateur : fenêtre au-dessus du bouton cliqué */
html body .overlay.pop-at { display: block; background: rgba(0, 0, 0, .28); }
html body .overlay.pop-at > .dialog, html body .pop-at > .ew-sheet, html body .pop-at > .chp-sheet { position: fixed; margin: 0; bottom: auto; right: auto; max-width: min(620px, calc(100vw - 24px));
  overflow: auto; border-radius: 20px; box-shadow: 0 18px 50px rgba(0, 0, 0, .28); animation: pop-in .22s cubic-bezier(.16, 1, .3, 1) both; }
html body .pop-at > .ew-sheet, html body .pop-at > .chp-sheet { transform: none !important; transition: none; width: min(440px, calc(100vw - 24px)); }
html body .pop-at > .ew-sheet .ew-grab, html body .pop-at > .chp-sheet .chp-grab { display: none; }
@media (prefers-reduced-motion: reduce) {
  html body .overlay > .dialog, html body .overlay.pop-at > .dialog, html body .pop-at > .ew-sheet, html body .pop-at > .chp-sheet, html body .overlay { animation: none !important; }
}
/* Bulle de discussion un peu plus petite (owner, 2026-11-23) : 56 → 48 px, icône 26 → 22 px. */
.rc-fab-b { width: 48px; height: 48px; }
.rc-fab-b svg { width: 22px; height: 22px; }

/* Fenêtre de confirmation de l'app, design C « Conséquences » (app.js appAsk, owner 2026-11-23) */
.cf-dialog .cf-q { display: block; margin: 0 0 6px; font-size: 19px; font-weight: 800; letter-spacing: -.015em; line-height: 1.25; text-wrap: balance; }
.cf-dialog .cf-d { margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.cf-dialog .cf-why { display: block; width: 100%; min-height: 84px; resize: none; margin: 4px 0 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); font: inherit; font-size: 15px; color: var(--text); }
.cf-dialog .cf-why:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 18%, transparent); }
.cf-dialog .cf-cons { list-style: none; margin: 10px 0 18px; padding: 12px 14px; border-radius: 14px; background: var(--panel-2); display: grid; gap: 9px; }
.cf-dialog .cf-cons li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.4; }
.cf-dialog .cf-cons svg { flex: none; width: 18px; height: 18px; margin-top: 1px; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cf-dialog .cf-cons .ok svg { stroke: var(--green); }
.cf-dialog .cf-cons .no svg { stroke: var(--red); }
.cf-dialog .cf-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; margin-top: 4px; }
.cf-dialog .cf-b { height: 50px; padding: 0 18px; border-radius: 14px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: 15.5px; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.cf-dialog .cf-no { background: none; color: var(--muted); }
.cf-dialog .cf-go.red { background: var(--red); border-color: var(--red); color: #fff; }
.cf-dialog .cf-go.gold { background: var(--gold); border-color: var(--gold); color: #fff; }
@media (hover: hover) {
  .cf-dialog .cf-no:hover { background: var(--text); color: var(--bg); }
  .cf-dialog .cf-go.red:hover { background: #b83434; border-color: #b83434; }
  .cf-dialog .cf-go.gold:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
}
@media (min-width: 1000px) { .overlay.cf-ov > .dialog.cf-dialog { width: 400px; max-width: calc(100vw - 24px); padding: 20px; } }

/* Adresse où habite le chauffeur, design 2 « Carte d'adresse » (team.js homeAddrBind, owner 2026-11-24) */
.f.ha { min-width: 0; }
.ha-box { min-width: 0; }
.ha-f { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); transition: border-color .2s, box-shadow .2s; }
.ha-f:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 16%, transparent); }
.ha-f.pf-miss { border-color: var(--red); }
.ha-f input { flex: 1; min-width: 0; height: 46px; border: 0 !important; background: none !important; padding: 0 !important; box-shadow: none !important; font: inherit; font-size: 15px; color: var(--text); outline: none; }
.ha-ic { flex: none; width: 19px; height: 19px; color: var(--muted); }
.ha-ic svg, .ha-si svg, .ha-map svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ha-old { display: block; margin-top: 6px; color: var(--muted); font-size: 12.5px; }
.ha-res { margin-top: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); overflow: hidden; box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .3); }
.ha-res[hidden] { display: none; }
.ha-sg { display: flex; gap: 12px; align-items: flex-start; width: 100%; min-height: 0; padding: 11px 14px; border: 0; border-radius: 0; background: none; color: var(--text); text-align: left; font: inherit; cursor: pointer; transition: background-color .15s; }
.ha-sg + .ha-sg { border-top: 1px solid var(--line); }
.ha-sg.on { background: var(--panel-2); }
@media (hover: hover) { .ha-sg:hover { background: var(--panel-2); } }
.ha-si { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--muted); }
.ha-st { min-width: 0; }
.ha-st b { display: block; font-size: 14.5px; font-weight: 600; }
.ha-st small { display: block; font-size: 12.5px; color: var(--muted); }
.ha-empty { margin: 0; padding: 14px; color: var(--muted); font-size: 13.5px; }
.ha-gby { margin: 0; display: flex; justify-content: flex-end; gap: 4px; padding: 6px 12px; border-top: 1px solid var(--line); font-size: 11px; color: #9a9a9a; }
.ha-gby b { color: #7a7a7a; }
.ha-card { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 8px 8px 10px; border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line)); border-radius: 14px; background: color-mix(in srgb, var(--gold) 5%, var(--bg)); min-width: 0; }
.ha-map { flex: none; width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--gold) 14%, transparent); color: var(--gold); display: grid; place-items: center; padding: 9px; transition: background-color .3s, color .3s; }
@media (hover: hover) { .ha-map:hover { background: var(--text); color: var(--bg); } }
.ha-t { flex: 1; min-width: 0; }
.ha-t b { display: block; font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ha-t span { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ha-edit { flex: none; height: 34px; min-height: 0; padding: 0 10px; border: 0; border-radius: 99px; background: none; color: var(--gold); font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; transition: background-color .3s, color .3s; }
@media (hover: hover) { .ha-edit:hover { background: var(--text); color: var(--bg); } }
.ha-box:empty { height: 48px; border-radius: 12px; background: var(--panel-2); }   /* pendant le chargement de l'adresse : même hauteur, rien ne saute */
.ha .ha-ok { margin-left: 8px; font-style: normal; font-weight: 700; color: var(--green); white-space: nowrap; animation: ha-ok 3.5s ease forwards; }
@keyframes ha-ok { 0% { opacity: 0; } 8%, 80% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ha .ha-ok { animation: none; } }
.ha-f input[type="search"]::-webkit-search-cancel-button, .ha-f input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }   /* champ « recherche » (pas de mots de passe proposés) sans la croix du navigateur */

/* ---------- Champ date de l'app chauffeur, design 1 « Tiroir mois » (owner, 2026-11-24, mfDateHtml/mfcOpen dans team.js) ----------
   Tout le champ ouvre le calendrier ; libellé dans le champ, date en toutes lettres, « dans 4 mois » à droite. */
.mf-pick.mfc > span:first-child { display: block; margin: 0 0 6px; font-size: 13px; color: var(--muted); }   /* libellé au-dessus du champ date (owner, 2026-11-24 : design « Trait fin ») */
.mf-pick.mfc { position: relative; }
.mfc-f { width: 100%; min-height: 46px; display: flex; align-items: center; gap: 12px; padding: 4px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); font: inherit; text-align: start; cursor: pointer; transition: border-color .3s, box-shadow .3s; }
#sbody .mfc-f { min-height: 44px; }
.mfc-f .mfc-ic { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mfc-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.mfc-tx em { font-style: normal; color: var(--muted); font-size: 15px; line-height: 1.25; }
.mfc-tx small { font-size: 11.5px; line-height: 1.2; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mfc-tx b { font-size: 15px; line-height: 1.3; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mfc-rel { flex: 0 1 auto; max-width: 74px; font-size: 12px; line-height: 1.25; color: var(--muted); font-weight: 500; text-align: end; }   /* « dans 13 mois » passe sur 2 lignes plutôt que de couper la date */
.mfc-rel.bad { color: var(--red, #d64545); font-weight: 700; }
.mfc-rel:empty { display: none; }
.mf-pick.mfc.mf-miss .mfc-f { border-color: var(--red, #d64545); }
.mfc-f[aria-expanded="true"], .mfc-f:focus-visible { border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 16%, transparent); }
@media (hover: hover) { .mfc-f:hover { border-color: var(--gold); } }

.overlay.mfc-ov > .dialog.mfc-dialog { width: min(380px, 100%); padding: 18px 16px 18px; }
.mfc-t { margin: 0 0 2px; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.mfc-sub { margin: 0 0 14px; color: var(--muted); font-size: 13.5px; }
.mfc-yrs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 0 12px; padding: 1px; scroll-behavior: smooth; }
.mfc-yrs::-webkit-scrollbar { display: none; }
.mfc-yrs button { flex: none; height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.mfc-yrs button.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.mfc-mh { display: flex; align-items: center; justify-content: space-between; margin: 0 0 10px; }
.mfc-mh b { font-size: 16px; font-weight: 700; }
.mfc-nav { display: flex; gap: 6px; }
.mfc-rb { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--text); display: grid; place-items: center; cursor: pointer; padding: 0; transition: background-color .3s, color .3s, border-color .3s; }
.mfc-rb svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mfc-rb:disabled { opacity: .3; cursor: default; }
.mfc-wd, .mfc-days { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.mfc-wd span { font-size: 11.5px; color: var(--muted); font-weight: 600; padding: 4px 0 6px; text-transform: uppercase; }
.mfc-days button { width: 40px; height: 40px; margin: 1px auto; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--text); font: inherit; font-size: 14.5px; font-weight: 500; cursor: pointer; display: grid; place-items: center; transition: background-color .3s, color .3s; }
.mfc-days button.tod { box-shadow: inset 0 0 0 1px var(--gold); }
.mfc-days button.sel { background: var(--gold); color: #fff; font-weight: 700; box-shadow: none; }
.mfc-days button:disabled { color: var(--muted); opacity: .4; cursor: default; }
.mfc-acts { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 14px; }
.mfc-b { height: 48px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.mfc-b.mfc-go { background: var(--gold); border-color: var(--gold); color: #fff; }
.mfc-b:disabled { opacity: .45; cursor: default; }
@media (max-width: 360px) { .mfc-days button { width: 36px; height: 36px; } }
@media (hover: hover) {
  .mfc-yrs button:not(.on):hover, .mfc-rb:not(:disabled):hover, .mfc-b:not(:disabled):hover { background: var(--text); color: var(--bg); border-color: var(--text); }
  .mfc-days button:not(:disabled):not(.sel):hover { background: var(--text); color: var(--bg); }
}

/* ---------- Pièces du dossier VTC, design 3 « Liste groupée » (owner, 2026-11-24, docRow/mfdOpen dans team.js) ----------
   Un bloc par sujet, une ligne par pièce : pastille d'état, nom, état écrit, vignettes ; jamais le nom du fichier. */
.mfd-list { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.mfd-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; transition: background-color .3s; }
.mfd-row + .mfd-row { border-top: 1px solid var(--line); }
.mfd-row.open { cursor: pointer; }
@media (hover: hover) { .mfd-row.open:hover { background: var(--panel-2); } }
.mfd-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.mfd-dot svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.mfd-dot.ok { background: var(--green, #1f9d55); }
.mfd-dot.wait, .mfd-dot.part { background: #c08a2b; }
.mfd-dot.rej { background: var(--red, #d64545); }
.mfd-dot.todo { box-shadow: inset 0 0 0 1.5px var(--line); }
.mfd-tx { flex: 1; min-width: 0; }
.mfd-tx b { display: block; font-size: 15px; line-height: 1.25; font-weight: 700; }
.mfd-tx small { display: block; font-size: 12.5px; line-height: 1.35; color: var(--muted); margin-top: 1px; overflow-wrap: anywhere; }
.mfd-tx small.ok { color: var(--green, #1f9d55); font-weight: 600; }
.mfd-tx small.wait { color: #b07a1f; font-weight: 600; }
.mfd-tx small.rej { color: var(--red, #d64545); font-weight: 600; }
.mfd-stack { display: flex; flex: none; }
.mfd-th { position: relative; width: 34px; height: 42px; border-radius: 7px; overflow: hidden; background: #fff; box-shadow: 0 0 0 2px var(--panel), 0 0 0 3px var(--line); display: grid; place-items: center; }
.mfd-th + .mfd-th { margin-inline-start: -12px; transform: rotate(6deg); }
.mfd-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mfd-th.pdf > span { font-size: 9px; font-weight: 800; color: var(--red, #d64545); letter-spacing: .04em; }
.mfd-th canvas { position: absolute; inset: 0; width: 100%; height: auto; background: #fff; opacity: 0; }
.mfd-th.ok canvas, .mfd-big.ok canvas { opacity: 1; }
.mfd-chev { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: .6; }
.mfd-pill { flex: none; height: 34px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--gold); background: var(--gold); color: #fff; font-size: 13.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.mfd-pill svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.mfd-pill.busy { opacity: .7; pointer-events: none; }
@media (hover: hover) { .mfd-pill:hover { background: var(--text); border-color: var(--text); color: var(--bg); } }

.overlay.mfd-ov > .dialog.mfd-dialog { width: min(420px, 100%); padding: 18px 16px; }
.mfd-t { margin: 0 0 4px; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.mfd-st { display: flex; align-items: flex-start; gap: 6px; margin: 0 0 14px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.mfd-st svg { width: 15px; height: 15px; margin-top: 2px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.mfd-st.ok { color: var(--green, #1f9d55); } .mfd-st.wait { color: #b07a1f; } .mfd-st.rej { color: var(--red, #d64545); }
.mfd-pvs { display: grid; gap: 10px; margin: 0 0 14px; }
.mfd-pvs.two { grid-template-columns: 1fr 1fr; }
.mfd-pv { margin: 0; min-width: 0; }
.mfd-big { position: relative; display: grid; place-items: center; width: 100%; height: 230px; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--panel-2); cursor: zoom-in; }
.mfd-pvs.two .mfd-big { height: 150px; }
.mfd-big img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mfd-big.pdf > span { font-size: 13px; font-weight: 800; color: var(--red, #d64545); }
.mfd-big canvas { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); width: 78%; height: auto; background: #fff; border-radius: 6px; box-shadow: 0 8px 22px -10px rgba(0,0,0,.4); opacity: 0; }
.mfd-big.mfd-add { cursor: pointer; border: 1.5px dashed var(--gold); background: color-mix(in srgb, var(--gold) 10%, transparent); color: var(--gold); font-size: 13px; font-weight: 700; gap: 6px; align-content: center; text-align: center; padding: 8px; }
.mfd-big.mfd-add svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.mfd-pv figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; margin-top: 6px; font-size: 13px; }
.mfd-mini { display: flex; gap: 10px; }
.mfd-lk { border: 0; background: none; padding: 0; font: inherit; font-size: 13px; font-weight: 700; color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); cursor: pointer; transition: color .3s; }
.mfd-lk.red { color: var(--red, #d64545); text-decoration-color: currentColor; }
@media (hover: hover) { .mfd-lk:hover { color: var(--gold); } .mfd-lk.red:hover { color: var(--text); } }
.mfd-rejs { list-style: none; margin: 0 0 14px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--red, #d64545) 9%, transparent); color: var(--red, #d64545); font-size: 13px; font-weight: 600; display: grid; gap: 6px; }
.mfd-rejs li { display: flex; justify-content: space-between; gap: 10px; }
.mfd-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mfd-b { height: 46px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; font-weight: 700; font-size: 14.5px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.mfd-b svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mfd-b.red { color: var(--red, #d64545); border-color: color-mix(in srgb, var(--red, #d64545) 40%, var(--line)); }
@media (hover: hover) { .mfd-b:hover { background: var(--text); color: var(--bg); border-color: var(--text); } .mfd-b.red:hover { background: var(--red, #d64545); color: #fff; border-color: var(--red, #d64545); } }

/* Liste « prêt à recevoir des courses » : titre « ⚠ Courses en pause » (owner, 2026-11-24, readyRender dans team.js).
   La phrase d'explication se montre sous le titre seulement quand la liste est ouverte. */
.ready-pause { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; line-height: 1.25; }
.ready-warn { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--red, #d64545); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ready-why { display: block; margin: 6px 0 0; font-size: 13.5px; font-weight: 500; line-height: 1.4; color: var(--muted); }
.ready.fold .ready-why { display: none; }

/* ---------- Réglages des chauffeurs, design « Trait fin » (owner, 2026-11-24, design-lab/settings-fields-4-designs.html n° 4) ----------
   #sbody.uf-thin = page Réglages d'un chauffeur (setPlaceholdersAll dans home.js). Une colonne ; petit libellé gris au-dessus,
   valeur en plus grand, trait fin dessous qui devient doré pendant la saisie ; menus avec leur flèche ; pas de cases. */
#sbody.uf-thin .two, #sbody.uf-thin .pw-two, #sbody.uf-thin .co-details { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; column-gap: 0 !important; }
#sbody:is(.uf-thin, .uf-out) label.f, #sbody:is(.uf-thin, .uf-out) .mf-pick.mfc, #sbody:is(.uf-thin, .uf-out) .f.ha { display: flex !important; flex-direction: column; align-items: stretch; gap: 2px; min-width: 0; margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; }
#sbody:is(.uf-thin, .uf-out) label.f > span:first-child, #sbody:is(.uf-thin, .uf-out) .mf-pick.mfc > span:first-child, #sbody:is(.uf-thin, .uf-out) .f.ha > span:first-child,
#sbody:is(.uf-thin, .uf-out) label.f > span.reg-lbl-h {
  position: static !important; width: auto !important; height: auto !important; clip: auto !important; overflow: visible !important; white-space: normal !important;
  display: block !important; margin: 0 !important; padding: 0 !important; font-size: 12.5px !important; line-height: 1.3 !important; font-weight: 600 !important; letter-spacing: .01em; color: var(--muted) !important; text-transform: none !important;
}
/* Le champ : texte plus grand, trait fin dessous */
#sbody:is(.uf-thin, .uf-out) :where(label.f > input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), label.f > textarea,
  .ph-box, label.f > .sel-btn, .mfc-f, .qr-row input, .qr-row textarea, .co-box) {   /* :where = poids faible : rouge, doré et pointillé passent devant */
  width: 100%; min-height: 0 !important; height: auto !important; margin: 0 !important; padding: 4px 0 9px !important;
  border: 0 !important; border-bottom: 1px solid color-mix(in srgb, var(--text) 16%, transparent) !important; border-radius: 0 !important;
  background: transparent !important; box-shadow: none !important; outline: none;
  font-size: 17px !important; line-height: 1.35 !important; font-weight: 500 !important; color: var(--text) !important;
  transition: border-color .3s, box-shadow .3s;
}
#sbody:is(.uf-thin, .uf-out) label.f > input::placeholder, #sbody:is(.uf-thin, .uf-out) label.f > textarea::placeholder, #sbody:is(.uf-thin, .uf-out) .ph-box input::placeholder, #sbody:is(.uf-thin, .uf-out) .qr-row input::placeholder, #sbody:is(.uf-thin, .uf-out) .qr-row textarea::placeholder, #sbody:is(.uf-thin, .uf-out) .co-box input::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent) !important; font-weight: 500; }
#sbody:is(.uf-thin, .uf-out) textarea { resize: none !important; }
/* Doré pendant la saisie (2 px : le trait + une ombre dessous) */
#sbody:is(.uf-thin, .uf-out) label.f > input:not([readonly]):focus, #sbody:is(.uf-thin, .uf-out) label.f > textarea:focus, #sbody:is(.uf-thin, .uf-out) .ph-box:focus-within, #sbody:is(.uf-thin, .uf-out) .qr-row input:focus, #sbody:is(.uf-thin, .uf-out) .qr-row textarea:focus, #sbody:is(.uf-thin, .uf-out) .co-box:focus-within,
#sbody:is(.uf-thin, .uf-out) label.f > .sel-btn[aria-expanded="true"], #sbody:is(.uf-thin, .uf-out) .mfc-f:focus-visible, #sbody:is(.uf-thin, .uf-out) .mfc-f[aria-expanded="true"] { border-bottom-color: var(--gold) !important; box-shadow: 0 1px 0 var(--gold) !important; }
@media (hover: hover) { #sbody:is(.uf-thin, .uf-out) label.f > .sel-btn:hover, #sbody:is(.uf-thin, .uf-out) .mfc-f:hover { border-bottom-color: var(--gold) !important; } }
/* Champ obligatoire vide : trait et libellé en rouge */
#sbody:is(.uf-thin, .uf-out) label.f > input.mf-miss, #sbody:is(.uf-thin, .uf-out) label.f > input.pf-miss, #sbody:is(.uf-thin, .uf-out) .mf-pick.mf-miss .mfc-f { border-bottom-color: var(--red) !important; animation: none !important; }
#sbody:is(.uf-thin, .uf-out) label.f:has(> input.mf-miss) > span:first-child, #sbody:is(.uf-thin, .uf-out) label.f:has(> input.pf-miss) > span:first-child, #sbody:is(.uf-thin, .uf-out) .mf-pick.mf-miss > span:first-child { color: var(--red) !important; }
/* Infos de l'annuaire (lecture seule) : texte simple, trait pointillé, jamais doré */
#sbody:is(.uf-thin, .uf-out) label.f > input.co-ro, #sbody:is(.uf-thin, .uf-out) label.f > input[readonly] { border-bottom-style: dashed !important; cursor: default; }
/* Téléphone : indicatif et numéro sur la même ligne */
#sbody:is(.uf-thin, .uf-out) .ph-box { display: flex !important; align-items: center; gap: 10px; }
#sbody:is(.uf-thin, .uf-out) .ph-box > * { border: 0 !important; background: none !important; box-shadow: none !important; border-radius: 0 !important; min-height: 0 !important; height: auto !important; }
#sbody:is(.uf-thin, .uf-out) .ph-box input { flex: 1; min-width: 0; padding: 0 !important; font-size: 17px !important; font-weight: 500 !important; }
#sbody:is(.uf-thin, .uf-out) .ph-box .ph-btn { flex: none; padding: 0 10px 0 0 !important; border-inline-end: 1px solid var(--line) !important; font-size: 15px; font-weight: 700; }
/* Menus : la valeur à gauche, la flèche à droite */
#sbody:is(.uf-thin, .uf-out) label.f > .sel-btn { display: flex !important; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; text-align: start; }
#sbody:is(.uf-thin, .uf-out) label.f > .sel-btn svg { color: var(--muted); opacity: .8; }
/* Date : la date, « dans 4 mois », puis le calendrier à droite */
#sbody:is(.uf-thin, .uf-out) .mfc-f { display: flex !important; align-items: center; gap: 10px; cursor: pointer; }
#sbody:is(.uf-thin, .uf-out) .mfc-f .mfc-ic { order: 3; width: 19px; height: 19px; }
#sbody:is(.uf-thin, .uf-out) .mfc-tx b, #sbody:is(.uf-thin, .uf-out) .mfc-tx em { font-size: 17px; font-weight: 500; }
#sbody:is(.uf-thin, .uf-out) .mfc-tx em { color: color-mix(in srgb, var(--muted) 75%, transparent); }
/* Recherche d'entreprise : loupe et texte sur le trait */
#sbody:is(.uf-thin, .uf-out) .co-box { display: flex !important; align-items: center; gap: 10px; }
#sbody:is(.uf-thin, .uf-out) .co-box input { flex: 1; min-width: 0; border: 0 !important; background: none !important; box-shadow: none !important; padding: 0 !important; height: auto !important; font-size: 17px !important; }
/* Ville : la ville choisie posée sur le trait, comme un champ */
#sbody:is(.uf-thin, .uf-out) .ha-card { border: 0 !important; border-bottom: 1px solid color-mix(in srgb, var(--text) 16%, transparent) !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; padding: 4px 0 9px !important; }
#sbody:is(.uf-thin, .uf-out) .ha-card .ha-t b, #sbody:is(.uf-thin, .uf-out) .ha-card .ha-t strong { font-size: 17px; font-weight: 500; }
#sbody:is(.uf-thin, .uf-out) .ha-f { border: 0 !important; border-bottom: 1px solid color-mix(in srgb, var(--text) 16%, transparent) !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; }
/* Réponses rapides : titre en gras, message dessous */
#sbody:is(.uf-thin, .uf-out) .qr-row input { font-weight: 700 !important; }
/* Écart régulier entre les champs : 16 px du trait au libellé suivant, quel que soit le bloc qui les contient */
#sbody.uf-thin .two, #sbody.uf-thin .pw-two, #sbody.uf-thin .co-details, #sbody.uf-thin .mfg-fields { row-gap: 16px !important; gap: 16px 0 !important; }
#sbody:is(.uf-thin, .uf-out) :is(label.f, .mf-pick.mfc, .f.ha, .two, .pw-two) + :is(label.f, .mf-pick.mfc, .f.ha, .two, .pw-two) { margin-top: 16px !important; }
#sbody:is(.uf-thin, .uf-out) .ha-card .ha-map { background: none !important; box-shadow: none !important; border: 0 !important; width: 22px !important; height: 22px !important; padding: 0 !important; color: var(--gold) !important; }
#sbody:is(.uf-thin, .uf-out) .ha-card .ha-t { color: var(--text) !important; }
/* Une seule colonne partout (les blocs du dossier ont leur propre grille) ; dans une grille, l'écart vient de la grille seule */
#sbody.uf-thin :is(.two, .pw-two, .co-details, .mfg-fields) { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; }
#sbody#sbody:is(.uf-thin, .uf-out) :is(.two, .pw-two, .co-details, .mfg-fields) > :is(label.f, .mf-pick.mfc, .f.ha, .two, .pw-two) { margin-top: 0 !important; grid-column: auto !important; }   /* double #sbody : passe devant la marge entre champs */
/* Pièces : sur téléphone, « Ajouter » passe sous le nom plutôt que de l'écraser */
@media (max-width: 520px) {
  .mfd-row:has(> .mfd-pill) { flex-wrap: wrap; row-gap: 8px; }
  .mfd-row:has(> .mfd-pill) > .mfd-tx { flex-basis: calc(100% - 40px); }
  .mfd-row > .mfd-pill { margin-inline-start: 40px; }
}
#sbody:is(.uf-thin, .uf-out) .co-details { margin-bottom: 6px !important; }   /* infos de l'entreprise puis le champ suivant : 16 px comme entre deux champs (10 du bloc + 6) */
/* Formulaires véhicule et chauffeur salarié : même écart de 16 px, sans marge en plus */
#sbody:is(.uf-thin, .uf-out) .fv-form { row-gap: 16px !important; }
#sbody#sbody:is(.uf-thin, .uf-out) .fv-form > :is(label.f, .mf-pick.mfc, .f.ha, .two, .pw-two) { margin-top: 0 !important; }
#sbody:is(.uf-thin, .uf-out) .qr-row textarea, #sbody:is(.uf-thin, .uf-out) label.f > textarea { overflow: hidden !important; min-height: 0 !important; }

/* ---------- Mes chauffeurs, design 1 « Pastilles » (owner, 2026-11-24, design-lab/my-chauffeurs-3-designs.html) ----------
   E-mail et téléphone sur une ligne chacun (… si trop long), puis ce qui manque en pastilles rouges qui passent à la ligne. */
.fl-t { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.fl-t > b { max-width: 100%; overflow-wrap: anywhere; }
.fl-sub { display: block; max-width: 100%; font-size: 13px; line-height: 1.35; color: var(--muted); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-todo { display: block; margin-top: 8px; font-size: 12px; line-height: 1.3; font-weight: 700; color: var(--red, #d64545); }
.fl-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.fl-tag { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 99px; font-size: 12.5px; font-weight: 700; white-space: nowrap;
  background: color-mix(in srgb, var(--red, #d64545) 11%, transparent); color: var(--red, #d64545); }
.fl-tag svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fl-tag.ok { background: color-mix(in srgb, var(--green, #1f9d55) 12%, transparent); color: var(--green, #1f9d55); }
.fl-tag.ok svg { stroke-width: 2.6; }
/* Pastille du nombre sur « Mes chauffeurs » : un peu plus large qu'un « ! » pour 2 chiffres */
.set-warn.fl-warn { width: auto; min-width: 20px; padding: 0 6px; border-radius: 99px; }
/* Nombre rouge d'une ligne (sujet du dossier VTC, véhicule), juste après sa pastille ou sa date de fin (home.js todoRowsPaint, owner 2026-12-04) */
summary .set-warn.row-n { margin-left: 6px; flex: none; vertical-align: middle; }
/* Titres de section avec une phrase (« Navigation », « Réponses rapides ») : la phrase sous le titre, pas à côté */
#sbody details.sec > summary:has(> small:not(#flCount):not(#fvCount)) { display: grid !important; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 10px; row-gap: 1px; align-items: center; }   /* 10 px + 2 px de l’icône : titre aligné sur les autres sections */
#sbody details.sec > summary:has(> small:not(#flCount):not(#fvCount)) > .set-ico { grid-column: 1; grid-row: 1 / span 2; }
#sbody details.sec > summary:has(> small:not(#flCount):not(#fvCount)) > small { grid-column: 2; grid-row: 2; margin: 0 !important; line-height: 1.3; }
#sbody details.sec > summary:has(> small:not(#flCount):not(#fvCount))::after { grid-column: 3; grid-row: 1 / span 2; }
/* Ligne d'un chauffeur : photo en haut à côté du nom, flèche à droite, pastilles sur toute la largeur dessous */
#fleetSec .fvb > .mfg-head:has(.fl-t) { grid-template-columns: 46px minmax(0, 1fr) 20px !important; column-gap: 12px !important; row-gap: 0 !important; align-items: start !important; }
#fleetSec .fvb > .mfg-head:has(.fl-t) > .fl-th { grid-column: 1; grid-row: 1; }
#fleetSec .fvb > .mfg-head:has(.fl-t) > .fl-t { grid-column: 2; grid-row: 1; }
#fleetSec .fvb > .mfg-head:has(.fl-t) > .mfg-chev { grid-column: 3; grid-row: 1; align-self: center; justify-self: end; }
#fleetSec .fvb > .mfg-head:has(.fl-t) > .fl-tagrow { grid-column: 1 / -1; grid-row: 2; min-width: 0; }
.fl-tagrow .fl-todo { margin-top: 10px; }

/* ---------- Champs des chauffeurs, design 2 « Contour arrondi » (owner, 2026-11-24, design-lab/invite-fields-5-designs.html) ----------
   Remplace le « Trait fin » : contour fin tout autour, coins arrondis, le nom du champ posé dans le trait en haut ; doré pendant
   la saisie, rouge s'il manque, pointillé en lecture seule. Réglages des chauffeurs (#sbody.uf-thin) ; client et admin ensuite. */
#sbody#sbody:is(.uf-thin, .uf-out) { --ufb-bg: var(--panel, var(--bg)); }
#sbody#sbody:is(.uf-thin, .uf-out) :is(label.f, .mf-pick.mfc, .f.ha) { position: relative; gap: 0 !important; }
#sbody#sbody:is(.uf-thin, .uf-out) :is(label.f > span:first-child, .mf-pick.mfc > span:first-child, .f.ha > span:first-child, label.f > span.reg-lbl-h) {
  position: absolute !important; top: -8px; left: 12px; z-index: 2; max-width: calc(100% - 24px); padding: 0 6px !important; background: var(--ufb-bg);
  font-size: 12px !important; line-height: 16px !important; font-weight: 700 !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis; transition: color .3s; pointer-events: none;
}
#sbody#sbody:is(.uf-thin, .uf-out) :is(label.f > input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), label.f > textarea, .ph-box, label.f > .sel-btn, .mfc-f, .qr-row input, .qr-row textarea, .co-box, .ha-card, .ha-f) {
  border: 1.5px solid var(--line) !important; border-radius: 14px !important; padding: 15px 16px 13px !important; font-size: 16px !important; background: transparent !important; box-shadow: none !important;
}
#sbody#sbody:is(.uf-thin, .uf-out) :is(.ph-box, .co-box) { padding: 0 16px !important; min-height: 52px !important; }
#sbody#sbody:is(.uf-thin, .uf-out) .ph-box input, #sbody#sbody:is(.uf-thin, .uf-out) .co-box input { border: 0 !important; padding: 14px 0 12px !important; font-size: 16px !important; }
#sbody#sbody:is(.uf-thin, .uf-out) .ph-box .ph-btn { border: 0 !important; border-inline-end: 1px solid var(--line) !important; border-radius: 0 !important; padding: 0 10px 0 0 !important; }
#sbody#sbody:is(.uf-thin, .uf-out) .mfc-tx b, #sbody#sbody:is(.uf-thin, .uf-out) .mfc-tx em, #sbody#sbody:is(.uf-thin, .uf-out) .ha-card .ha-t b, #sbody#sbody:is(.uf-thin, .uf-out) .ha-card .ha-t strong { font-size: 16px; }
/* doré pendant la saisie */
#sbody#sbody#sbody:is(.uf-thin, .uf-out) :is(label.f > input:not([readonly]):focus, label.f > textarea:focus, .ph-box:focus-within, .qr-row input:focus, .qr-row textarea:focus, .co-box:focus-within, label.f > .sel-btn[aria-expanded="true"], .mfc-f:focus-visible, .mfc-f[aria-expanded="true"]) {
  border-color: var(--gold) !important; box-shadow: none !important;
}
#sbody#sbody:is(.uf-thin, .uf-out) :is(label.f, .mf-pick.mfc):focus-within > span:first-child, #sbody#sbody:is(.uf-thin, .uf-out) label.f:has(> .sel-btn[aria-expanded="true"]) > span:first-child { color: var(--gold) !important; }
@media (hover: hover) { #sbody#sbody#sbody:is(.uf-thin, .uf-out) :is(label.f > .sel-btn, .mfc-f):hover { border-color: var(--gold) !important; } }
/* manquant : rouge ; lecture seule : pointillé */
#sbody#sbody#sbody:is(.uf-thin, .uf-out) :is(label.f > input.mf-miss, label.f > input.pf-miss, .mf-pick.mf-miss .mfc-f) { border-color: var(--red) !important; }
#sbody#sbody#sbody:is(.uf-thin, .uf-out) :is(label.f > input.co-ro, label.f > input[readonly]) { border-style: dashed !important; }
/* écart entre champs : 20 px (le nom posé sur le trait prend sa place) */
#sbody#sbody.uf-thin :is(.two, .pw-two, .co-details, .mfg-fields) { row-gap: 20px !important; gap: 20px 0 !important; }
#sbody#sbody:is(.uf-thin, .uf-out) :is(label.f, .mf-pick.mfc, .f.ha, .two, .pw-two) + :is(label.f, .mf-pick.mfc, .f.ha, .two, .pw-two) { margin-top: 20px !important; }
#sbody#sbody#sbody:is(.uf-thin, .uf-out) :is(.two, .pw-two, .co-details, .mfg-fields, .fv-form) > :is(label.f, .mf-pick.mfc, .f.ha, .two, .pw-two) { margin-top: 0 !important; }
#sbody#sbody:is(.uf-thin, .uf-out) .fv-form { row-gap: 20px !important; }
#sbody#sbody:is(.uf-thin, .uf-out) :is(.sec > div, .mfg-fields, .fv-form) > :is(label.f, .mf-pick.mfc, .f.ha):first-child { margin-top: 8px !important; }
#sbody#sbody:is(.uf-thin, .uf-out) .mfg { --ufb-bg: var(--panel-2); }   /* groupes du dossier VTC (fond gris) : le nom du champ prend le même fond */
#sbody#sbody#sbody:is(.uf-thin, .uf-out) .two:has(> label.f > #pfFirst) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; column-gap: 10px !important; }   /* Prénom et Nom sur la même ligne (owner, 2026-11-24) */
#sbody#sbody:is(.uf-thin, .uf-out) .pw-h:has(+ .pw-two) { display: none !important; }   /* « Mot de passe » au-dessus : déjà dit par le nom de chaque champ (owner, 2026-11-24) */
#sbody#sbody#sbody:is(.uf-thin, .uf-out) label.f > input:-webkit-autofill, #sbody#sbody#sbody:is(.uf-thin, .uf-out) label.f > input:-webkit-autofill:focus {   /* remplissage auto du navigateur : pas de fond bleu-gris dans le contour */
  -webkit-box-shadow: 0 0 0 100px var(--ufb-bg) inset !important; box-shadow: 0 0 0 100px var(--ufb-bg) inset !important; -webkit-text-fill-color: var(--text) !important; caret-color: var(--text);
}
#sbody#sbody#sbody:is(.uf-thin, .uf-out) .pw-h + .pw-two { margin-top: 24px !important; }   /* sous « Changer d'adresse e-mail » : le nom du champ ne touche pas le bouton */
/* Admin, admin abonné et client (#sbody.uf-out, owner 2026-12-02) : mêmes champs, mais les lignes de deux champs restent côte à côte
   sur ordinateur ; 20 px entre deux lignes. Couleur (Logo et couleurs) : la pastille, le code et « Par défaut » dans le contour. */
#sbody#sbody.uf-out :is(.two, .pw-two, .co-details, .mfg-fields) { row-gap: 20px !important; }
/* … et 20 px aussi après une aide, un interrupteur ou un bouton (le nom posé sur le trait ne touche plus le texte du dessus) ;
   dans les blocs qui ont déjà leur propre écart (Société et numérotation 10 px, Calendrier 14 px), juste le complément. */
#sbody#sbody.uf-out :not(input, [hidden]) + :is(label.f, .two) { margin-top: 20px !important; }
#sbody#sbody#sbody.uf-out .bon-co > :not(input, [hidden]) + :is(label.f, .two) { margin-top: 10px !important; }
#sbody#sbody#sbody.uf-out .bon-co > .co-look { margin-bottom: 0 !important; }
/* Modèles d'e-mail › « Langue principale » (dans l'encadré doré) : même champ, nom posé sur le trait, fond de l'encadré derrière le nom */
#sbody#sbody.uf-out .mt-main { position: relative; display: block; max-width: 320px; margin-top: 8px; }
#sbody#sbody.uf-out .mt-main > span:first-child { position: absolute; top: -8px; left: 12px; z-index: 2; padding: 0 6px; background: color-mix(in srgb, var(--gold) 7%, var(--panel)); font-size: 12px; line-height: 16px; font-weight: 700; color: var(--muted); pointer-events: none; transition: color .3s; }
#sbody#sbody.uf-out .mt-main > .sel-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-width: 0; border: 1.5px solid var(--line) !important; border-radius: 14px !important; padding: 15px 16px 13px !important; font-size: 16px !important; font-weight: 500; background: transparent !important; box-shadow: none !important; transition: border-color .3s; }
#sbody#sbody.uf-out .mt-main > .sel-btn[aria-expanded="true"] { border-color: var(--gold) !important; }
#sbody#sbody.uf-out .mt-main:has(> .sel-btn[aria-expanded="true"]) > span:first-child { color: var(--gold); }
@media (hover: hover) { #sbody#sbody.uf-out .mt-main > .sel-btn:hover { border-color: var(--gold) !important; } }
#sbody#sbody#sbody.uf-out .cal-box > :not(input, [hidden]) + :is(label.f, .two) { margin-top: 6px !important; }
#sbody#sbody.uf-out label.f > .bd-row { position: relative !important; border: 1.5px solid var(--line); border-radius: 14px; padding: 0 8px 0 10px !important; min-height: 52px; transition: border-color .3s; }
#sbody#sbody.uf-out label.f > .bd-row > .bd-sw { width: 32px; height: 32px; border-radius: 9px; }
#sbody#sbody.uf-out label.f > .bd-row:focus-within { border-color: var(--gold); }
#sbody#sbody.uf-out label.f > .bd-row input[type="text"] { border: 0 !important; background: transparent !important; box-shadow: none !important; font-size: 16px; }

/* ---------- Plus de fond gris dans les Réglages des chauffeurs : contours titrés, design 1 (owner, 2026-11-24,
   design-lab/my-chauffeur-card-outline-2-designs.html). Fiches (Mes chauffeurs, Mes véhicules, dossier VTC) : chaque bloc
   (« Chauffeur », « Documents »…) dans un cadre fin et arrondi, son titre posé dans le trait ; les pièces séparées par un trait fin. */
#sbody#sbody.uf-thin :is(.mfg, .mfg-body) { background: transparent !important; box-shadow: none !important; }
#sbody#sbody.uf-thin .mfg { --ufb-bg: var(--panel, var(--bg)); }
#sbody#sbody.uf-thin .fvb-col { position: relative; border: 1.5px solid var(--line); border-radius: 14px; padding: 18px 14px 12px; margin-top: 0; background: transparent; }
#sbody#sbody.uf-thin .fvb-col:first-child { margin-top: 10px; }   /* le titre du premier cadre ne touche pas l en-tête ; entre deux cadres : l écart de la grille (22 px) */
#sbody#sbody.uf-thin .fvb-col > h4 { position: absolute; top: -9px; left: 12px; margin: 0 !important; padding: 0 6px; background: var(--ufb-bg); font-size: 12px !important; line-height: 16px; font-weight: 700; color: var(--muted); text-transform: none; letter-spacing: 0; }
#sbody#sbody.uf-thin .fvb-docs { gap: 0 !important; }
#sbody#sbody.uf-thin .fvb-doc { background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; padding: 11px 0 !important; }
#sbody#sbody.uf-thin .fvb-doc + .fvb-doc { border-top: 1px solid var(--line) !important; }
#sbody#sbody.uf-thin .fvb-doc:first-child { padding-top: 2px !important; }
#sbody#sbody.uf-thin .fvb-doc:last-child { padding-bottom: 0 !important; }
/* Colonne « expire » (owner, 2026-11-24) : la ligne entière (.fvb-xr) porte le trait et l'espace ; survol = nom en doré,
   jamais le texte couleur du fond sur un fond transparent (ligne vide au survol). */
#sbody#sbody.uf-thin .fvb-xr .fvb-doc { padding: 11px 0 !important; border-top: 0 !important; }
#sbody#sbody.uf-thin .fvb-xr + .fvb-xr { border-top: 1px solid var(--line); }
#sbody#sbody.uf-thin .fvb-xr:first-child .fvb-doc { padding-top: 2px !important; }
#sbody#sbody.uf-thin .fvb-xr:last-child .fvb-doc { padding-bottom: 0 !important; }
#sbody#sbody.uf-thin .fvb-x { padding-right: 0; }
@media (hover: hover) {
  #sbody#sbody.uf-thin .fvb-doc:hover { color: var(--gold) !important; }
  #sbody#sbody.uf-thin .fvb-doc:hover .fvb-ds.ok { color: #1f8a4c; }
  html:not([data-theme="light"]) #sbody#sbody.uf-thin .fvb-doc:hover .fvb-ds.ok { color: #4cc282; }
  #sbody#sbody.uf-thin .fvb-doc:hover .fvb-ds.wait { color: var(--gold); }
  #sbody#sbody.uf-thin .fvb-doc:hover .fvb-ds.bad { color: var(--red); }
  #sbody#sbody.uf-thin .fvb-doc:hover .fvb-ds.muted, #sbody#sbody.uf-thin .fvb-doc:hover .fvb-dn small:not(.fvb-ds) { color: var(--muted); }
}
/* Fiches (véhicules, chauffeurs de la société) : chacune dans un cadre fin et arrondi comme les champs, 12 px entre deux (owner, 2026-11-24) */
#sbody#sbody.uf-thin .fvb-list { display: grid; gap: 12px; }
#sbody#sbody.uf-thin .mfg.fvb { border: 1.5px solid var(--line) !important; border-radius: 14px !important; padding: 0 8px !important; }
#sbody#sbody.uf-thin .mfg.fvb[open] { padding-bottom: 14px !important; }
@media (hover: hover) { #sbody#sbody.uf-thin .mfg-head:hover { background: var(--gold-soft, rgba(205, 165, 91, .12)) !important; } }   /* en-tête de groupe ou de fiche survolé : doré clair au lieu de gris (owner, 2026-11-24) */
/* Mes véhicules : texte d'intro aligné sur le reste de la rubrique (16 px) ; véhicule du dossier VTC encadré comme les autres fiches (owner, 2026-11-24) */
#sbody#sbody.uf-thin #fvSec > .fvb-hint { padding: 0 16px !important; margin: 4px 0 8px !important; }
#sbody#sbody.uf-thin #vehBody > .mfg-list { display: grid; gap: 12px; margin-bottom: -6px !important; }   /* + les 18 px déjà sous le bloc = 12 px avant la fiche suivante */
#sbody#sbody.uf-thin #vehBody > .mfg-list > .mfg { border: 1.5px solid var(--line) !important; border-radius: 14px !important; padding: 0 8px !important; }
#sbody#sbody.uf-thin #vehBody > .mfg-list > .mfg[open] { padding-bottom: 14px !important; }
/* Rubrique ouverte (téléphone) : plus de cadre autour, le contenu prend toute la largeur (owner, 2026-11-24) */
@media (max-width: 999px) {
  #sbody#sbody.uf-thin details.sec[open] { border-color: transparent !important; box-shadow: none !important; background: transparent !important; }
  #sbody#sbody.uf-thin details.sec[open] > summary, #sbody#sbody.uf-thin details.sec[open] > :not(summary) { padding-left: 0 !important; padding-right: 0 !important; }
}
/* … mais l'en-tête de la rubrique ouverte garde son cadre, comme fermée (owner, 2026-11-24) */
@media (max-width: 999px) {
  #sbody#sbody.uf-thin details.sec[open] > summary { padding: 14px 15px !important; border: 1px solid var(--line); border-radius: 14px; background: var(--panel, var(--bg)); margin-bottom: 14px; }
}
/* Fiches ouvertes (véhicules, chauffeurs) : même règle que les rubriques — l'en-tête garde son cadre, le contenu dessous est sans cadre et pleine largeur (owner, 2026-11-24) */
#sbody#sbody.uf-thin :is(.mfg.fvb, #vehBody > .mfg-list > .mfg)[open] { border-color: transparent !important; padding: 0 !important; }
#sbody#sbody.uf-thin :is(.mfg.fvb, #vehBody > .mfg-list > .mfg)[open] > summary { border: 1.5px solid var(--line); border-radius: 14px; padding: 14px !important; margin-bottom: 14px; }
#sbody#sbody.uf-thin :is(.mfg.fvb, #vehBody > .mfg-list > .mfg)[open] > .mfg-body { padding-left: 0 !important; padding-right: 0 !important; }
/* Toutes les fiches et groupes repliables des Réglages (dossier VTC compris) : cadre fin arrondi fermé ; ouverts, l'en-tête garde son cadre
   et le contenu dessous est sans cadre, pleine largeur (owner, 2026-11-24 : « do everything the same in all tabs of the settings screen ») */
#sbody#sbody.uf-thin .mfg-list { display: grid; gap: 12px; }
#sbody#sbody.uf-thin .mfg { border: 1.5px solid var(--line) !important; border-radius: 14px !important; padding: 0 8px !important; margin: 0 !important; }
#sbody#sbody.uf-thin .mfg[open] { border-color: transparent !important; padding: 0 !important; }
#sbody#sbody.uf-thin .mfg[open] > summary { border: 1.5px solid var(--line); border-radius: 14px; padding: 14px !important; margin-bottom: 14px; }
#sbody#sbody.uf-thin .mfg[open] > .mfg-body { padding-left: 0 !important; padding-right: 0 !important; padding-bottom: 8px !important; }   /* puis 12 px avant la fiche suivante : 20 px comme entre deux champs */
/* Fiches et groupes : le fond doré clair va jusqu'au cadre (plus de bande blanche à gauche et à droite), il reste quand la fiche est ouverte,
   et l'en-tête ne bouge pas d'un pixel en s'ouvrant : même bord, même marge intérieure fermé et ouvert (owner, 2026-11-24) */
#sbody#sbody#sbody.uf-thin .mfg { padding: 0 !important; }   /* triple id : passe devant les règles .mfg.fvb plus haut */
#sbody#sbody#sbody.uf-thin .mfg > summary { padding: 14px !important; border-radius: 12.5px; }
#sbody#sbody#sbody.uf-thin .mfg[open] { border-width: 0 !important; }
#sbody#sbody.uf-thin .mfg[open] > summary { border-radius: 14px; background: var(--gold-soft, rgba(205, 165, 91, .12)) !important; }
@media (max-width: 999px) {
  #sbody#sbody.uf-thin details.sec[open] { border-width: 0 !important; }
  #sbody#sbody.uf-thin details.sec[open] > summary { padding: 15px 16px !important; }
}
#sbody#sbody.uf-thin #vehBody > .mfg-list > .mfg.mfg { padding: 0 !important; }   /* véhicule du dossier : même marge que les autres fiches, rien ne bouge à l ouverture */
@media (max-width: 999px) { #sbody#sbody.uf-thin details.sec[open] > summary { background: var(--gold-soft, rgba(205, 165, 91, .12)) !important; } }   /* rubrique ouverte : en-tête doré clair, comme les fiches ouvertes (owner, 2026-11-24) */
/* Fiche ouverte : e-mail, téléphone et courses à venir ne sont plus répétés dans l'en-tête (ils sont dessous) ; le bloc d'infos n'a plus
   de cadre, comme le contenu des autres rubriques — titre en petites capitales au-dessus (owner, 2026-11-24) */
#sbody#sbody.uf-thin .mfg > summary .fl-sub { display: none !important; }   /* jamais dans l en-tête (comme les autres fiches) : la hauteur ne change pas à l ouverture */
#sbody#sbody.uf-thin .fvb-col:has(> .fvb-kv) { border: 0 !important; padding: 0 !important; margin-top: 0 !important; }
#sbody#sbody.uf-thin .fvb-col:has(> .fvb-kv) > h4 { position: static !important; padding: 0 !important; margin: 0 0 8px !important; background: none !important; text-transform: uppercase; letter-spacing: .06em; }
/* Mes chauffeurs : flèche au milieu de la fiche, en hauteur (owner, 2026-11-24) */
#fleetSec .fvb > .mfg-head:has(.fl-t) > .mfg-chev { grid-row: 1 / span 2 !important; align-self: center !important; }
#fleetSec .fvb > .mfg-head:has(.fl-t) > .fl-tagrow { grid-column: 1 / 3 !important; }
/* Mes chauffeurs, fiche fermée version 3 « Pastille sur la photo » (owner, 2026-11-24, design-lab/chauffeur-card-3-designs.html) */
#fleetSec .fvb > .mfg-head:has(.fl-t) > .mfg-chev { grid-row: 1 !important; }
#fleetSec .fl-th { position: relative; overflow: visible !important; }
#fleetSec .fl-th > img { border-radius: inherit; }
#fleetSec .fl-badge { position: absolute; right: -4px; top: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--red, #d64545); color: #fff; font: 800 11px/20px Inter, system-ui, sans-serif; text-align: center; box-shadow: 0 0 0 2px var(--panel, var(--bg)); }
#fleetSec .fl-badge.ok { background: var(--green, #1f9d55); }
#fleetSec .fl-t { display: grid; gap: 2px; min-width: 0; }
#fleetSec .fl-stl { font-size: 13px; line-height: 1.35; font-weight: 700; color: var(--muted); }
#fleetSec .fl-stl.bad { color: var(--red, #d64545); } #fleetSec .fl-stl.ok { color: var(--green, #1f9d55); }
#fleetSec .fl-tagrow.fl-in .fl-todo { display: none; }   /* déjà dit dans l en-tête */
#fleetSec .fl-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; margin-top: 6px; max-width: 200px; }
#fleetSec .fl-bar i { height: 5px; border-radius: 5px; background: color-mix(in srgb, var(--red, #d64545) 18%, transparent); }
#fleetSec .fl-bar i.g { background: var(--green, #1f9d55); }
#fleetSec .fl-tagrow.fl-in { display: grid; gap: 8px; margin: 0 0 16px; }
#sbody#sbody.uf-thin details.sec > summary > small:not(#flCount):not(#fvCount) { display: none !important; }   /* en-têtes de rubrique : pas de sous-titre (Navigation, Réponses rapides…), owner 2026-11-24 */
/* Mes véhicules, fiche fermée version 1 « Deux lignes, interrupteur gardé » (owner, 2026-11-24, design-lab/vehicle-card-compact-3-designs.html) :
   pas de photo dans l'en-tête (elle est dans la fiche ouverte) ; le modèle, puis plaque · couleur · état ; l'interrupteur « Par défaut » et la flèche à droite */
#sbody#sbody.uf-thin #fvSec .mfg > .mfg-head { grid-template-columns: minmax(0, 1fr) auto 24px !important; grid-template-areas: "t d c" !important; align-items: center !important; column-gap: 10px !important; }
#sbody#sbody.uf-thin #fvSec .mfg > .mfg-head > .fvb-th { display: none !important; }
#sbody#sbody.uf-thin #fvSec .mfg > .mfg-head > .fvb-def { grid-area: d !important; justify-self: end; margin: 0 !important; }
#sbody#sbody.uf-thin #fvSec .mfg > .mfg-head > .fvb-def > span { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }   /* « Par défaut » lu par les lecteurs d'écran, pas affiché */
#sbody#sbody.uf-thin #fvSec .mfg > .mfg-head > .mfg-chev { grid-area: c !important; align-self: center !important; }
#sbody#sbody.uf-thin #fvSec .mfg > .mfg-head > .fvb-t { grid-area: t !important; }

/* Accueil chauffeur : 20 px sous le logo, trait doré de 1 px, puis 20 px jusqu'au premier bloc (owner, 2026-11-24) */
.hm.hm-home { padding-top: 16px; }
@media (max-width: 999px) {
  /* En-tête de l'Accueil = celui des autres pages (Factures…) : plus de bande plus fine ici, le logo ne saute plus
     en passant d'un onglet du bas à l'autre, et le premier bloc commence au même endroit (owner, 2026-12-02) */
  .hm.hm-home { padding-top: 0; }
}

/* Bas des Réglages : version de l'app Android installée (owner, 2026-11-25) */
.set-ver { margin: 20px 0 8px; text-align: center; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }

/* Mes chauffeurs : fiche modifiable sur place (owner, 2026-11-25), champs posés sur la page comme les autres Réglages, sans fond gris */
#sbody .fv-form.fl-live { padding: 0; background: transparent; border-radius: 0; margin-bottom: 24px; }

/* Mon compte : e-mail sur une ligne + menu « ⋯ » (design 4, owner 2026-11-25 ; chauffeur et admin) */
.em-one { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 16px 0 0; }
.em-one .em-ic { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.em-one .em-tx { flex: 1; min-width: 0; }
.em-one .em-tx b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.em-one .em-tx small { display: block; font-size: 12px; color: var(--muted); }
.em-more { width: 34px; height: 34px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--text); display: grid; place-items: center; cursor: pointer; padding: 0; transition: background .3s, color .3s, border-color .3s; }
.em-more svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
@media (hover: hover) { .em-more:hover { background: var(--text); color: var(--bg); border-color: var(--text); } }
.pw-block { margin-top: 20px; }

/* Mon compte : e-mail sous la photo (owner, 2026-11-25), même écart que les champs (20 px) */
.em-under-photo { margin-bottom: 20px; }   /* marges qui se chevauchent : 20 px, pas 8 + 12 */
.em-under-photo > .check.mail-alert { margin-top: 20px; }   /* e-mails d'alerte sous la carte e-mail : 20 px comme les autres blocs (owner, 2026-11-28) */

/* Téléphone (indicatif + numéro) : même hauteur que les autres champs (owner, 2026-11-25) ; le numéro ne reprend pas le rembourrage du champ */
#sbody#sbody#sbody .ph-box input:not([type=hidden]) { padding-top: 0 !important; padding-bottom: 0 !important; height: auto !important; min-height: 0 !important; line-height: 22px; }

/* Mon compte › Apparence (design 1, owner 2026-11-25) : champ contour arrondi, nom dans la ligne, menu de l'app avec icônes */
.thm-fld { position: relative; width: 100%; display: flex; align-items: center; gap: 10px; margin-top: 20px; padding: 15px 12px 12px; border: 1px solid var(--line); border-radius: 12px; background: none; color: var(--text); font: inherit; text-align: start; cursor: pointer; transition: border-color .3s; }
.thm-fld[aria-expanded="true"], .thm-fld:focus-visible { outline: none; border-color: var(--gold); }
.thm-fld[aria-expanded="true"] .thm-lb { color: var(--gold); }
.thm-lb { position: absolute; top: -9px; left: 10px; padding: 0 5px; background: var(--bg); font-size: 12px; font-weight: 700; color: var(--muted); line-height: 1.4; }
.thm-ic, .tf-ic { display: inline-grid; place-items: center; flex: none; }
.thm-ic svg, .tf-opt .tf-ic svg { visibility: visible; width: 18px; height: 18px; stroke: var(--gold); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.thm-v { flex: 1; font-weight: 500; }
.thm-chev { width: 16px; height: 16px; flex: none; stroke: var(--muted); fill: none; stroke-width: 2; transition: transform .3s; }
.thm-fld[aria-expanded="true"] .thm-chev { transform: rotate(180deg); }
.thm-menu .tf-opt { justify-content: flex-start; gap: 12px; }
.thm-menu .tf-opt > span { flex: 1; text-align: start; }
@media (hover: hover) { .thm-menu .tf-opt:hover .tf-ic svg { stroke: var(--bg); } }

/* Plus aucune confirmation d'enregistrement (« ✓ Enregistré », coche verte flottante) dans toute l'app (owner, 2026-11-25) */
.saved-tick, .ok-float { display: none !important; }

/* Factures du chauffeur › Vue d'ensemble, design 2 « Mon mois en un coup d'œil » (owner, 2026-11-25 ; drvinvoices.js dmHtml) */
.dm { max-width: 620px; }
.dm-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.dm-head small { display: block; color: var(--muted); font-size: 13.5px; margin-bottom: 6px; }
.dm-big { display: block; font-size: 38px; line-height: 1; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dm-cmp { font-size: 13px; font-weight: 700; border-radius: 99px; padding: 4px 10px; white-space: nowrap; margin-bottom: 2px; }
.dm-cmp.up { color: var(--green); background: var(--green-soft); }
.dm-cmp.down { color: var(--red); background: var(--red-soft); }
.dm-chart { margin: 22px 0 0; height: 124px; display: flex; align-items: stretch; gap: 3px; border-bottom: 1px solid var(--line); touch-action: pan-y; user-select: none; -webkit-user-select: none; outline: none; }
.dm-chart:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }
.dm-bar { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 3px 3px 0 0; }
.dm-bar i { display: block; width: 100%; background: var(--gold); border-radius: 3px 3px 0 0; transition: opacity .3s; }
.dm-bar i + i { border-radius: 0; }
.dm-bar i.f { background: transparent; border: 1px dashed var(--gold); border-bottom: 0; }
.dm-bar i.z { height: 2px; background: var(--line); }
.dm-bar.today i.z { background: var(--gold); }
.dm-chart:has(.sel) .dm-bar:not(.sel) i { opacity: .35; }
@media (hover: hover) { .dm-bar:hover i:not(.z) { opacity: .75; } }
.dm-axis { position: relative; height: 18px; margin-top: 4px; color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.dm-axis span { position: absolute; top: 0; transform: translateX(-50%); }
.dm-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; min-height: 20px; margin: 8px 0 0; color: var(--muted); font-size: 12.5px; }
.dm-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--gold); margin-inline-end: 6px; vertical-align: -1px; }
.dm-legend span.f::before { background: transparent; border: 1px dashed var(--gold); }
.dm-legend.day { color: var(--text); font-weight: 600; }
.dm-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 24px; }
.dm-stats > div { padding: 0 12px; border-inline-start: 1px solid var(--line); min-width: 0; }
.dm-stats > div:first-child { padding-inline-start: 0; border-inline-start: 0; }
.dm-stats small { display: block; color: var(--muted); font-size: 12.5px; }
.dm-stats b { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dm-bal { margin-top: 26px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--panel-2); }
.dm-bal small { display: block; color: var(--muted); font-size: 13px; }
.dm-bal b { font-size: 21px; font-weight: 800; font-variant-numeric: tabular-nums; }
.dm-bal.pos b { color: var(--green); }
.dm-bal.neg b { color: var(--gold); }
/* Ligne d'état de la facturation sous le solde, design 3 (owner, 2026-12-02 ; diStateHtml dans drvinvoices.js) */
.di-st { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); color: var(--text); font: inherit; text-align: start; cursor: pointer; transition: background-color .3s, border-color .3s, color .3s; }
.di-st-ic { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--panel-2); color: var(--gold-ink); transition: background-color .3s, color .3s; }
.di-st-ic svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.di-st-t { flex: 1; min-width: 0; }
.di-st-t b { display: block; font-size: 14.5px; font-weight: 800; line-height: 1.3; }
.di-st-t small { display: block; margin-top: 3px; color: var(--muted); font-size: 12.5px; line-height: 1.35; transition: color .3s; }
.di-st-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.di-st-chip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.di-st-chip.ok { background: color-mix(in srgb, var(--green) 12%, transparent); color: #12703f; }   /* « Vert direct » du guide visuel */
html[data-theme="dark"] .di-st-chip.ok { color: var(--green); }
.di-st-chip.gold { background: var(--gold-soft); color: var(--gold-ink); }
.di-st-chip.late { background: color-mix(in srgb, #c2571f 14%, transparent); color: #9c4318; }
html[data-theme="dark"] .di-st-chip.late { color: #f0a070; }
@media (hover: hover) {
  .di-st:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
  .di-st:hover .di-st-t small { color: var(--bg); }
  .di-st:hover .di-st-ic { background: color-mix(in srgb, var(--bg) 14%, transparent); color: var(--bg); }
}
.di-inv-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; scroll-margin-top: 80px; }
.di-invsec { scroll-margin-top: 80px; }
.dm-h { font-size: 18px; font-weight: 700; margin: 34px 0 6px; padding-bottom: 8px; border-bottom: 1px solid var(--line); text-transform: none; }
.dm-h::first-letter { text-transform: uppercase; }
/* Historique (owner, 2026-11-25) : design 1 « la ligne s'ouvre » + calendrier du design 2 (design-lab/historique-calendrier-3-designs.html). */
.dm-months { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.dm-m { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto 18px; gap: 10px; align-items: center; padding: 11px 8px; margin: 0 -8px; border: 0; background: none; color: var(--text); font: inherit; text-align: start; cursor: pointer; border-radius: 14px; transition: background-color .3s, color .3s; }
.dm-md { text-align: center; line-height: 1.1; }
.dm-md small, .dm-mt small { display: block; font-size: 11.5px; color: var(--muted); }
.dm-md b { font-size: 17px; text-transform: capitalize; }
.dm-mt { min-width: 0; }
.dm-mt b { display: block; font-size: 14.5px; font-weight: 600; }
.dm-mt b em { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--gold); margin-inline-start: 6px; }
.dm-mt small { font-size: 12.5px; }
.dm-mt small.dm-yc { font-weight: 700; }
.dm-mt small.dm-yc.up { color: var(--green); }
.dm-mt small.dm-yc.down { color: var(--red); }
.dm-mp { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dm-m svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s; }
.dm-m.on { background: var(--gold); color: #fff; }
.dm-m.on small, .dm-m.on .dm-mt small.dm-yc, .dm-m.on .dm-mt b em { color: #fff; }
.dm-m.on .dm-md small, .dm-m.on .dm-mt small:not(.dm-yc) { opacity: .85; }
.dm-m.on svg { stroke: #fff; transform: rotate(180deg); }
@media (hover: hover) { .dm-m:not(.on):hover { background: var(--text); color: var(--bg); } .dm-m:not(.on):hover small, .dm-m:not(.on):hover b em { color: var(--bg); opacity: .75; } .dm-m:not(.on):hover svg { stroke: var(--bg); } .dm-m.on:hover { background: var(--text); color: var(--bg); } .dm-m.on:hover small, .dm-m.on:hover b em { color: var(--bg); } .dm-m.on:hover svg { stroke: var(--bg); } }
.dm-cal { padding: 8px 0 18px; }
.dm-cal-g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.dm-dow { text-align: center; font-size: 11px; color: var(--muted); padding-bottom: 2px; text-transform: uppercase; }
.dm-cd { min-height: 50px; border-radius: 10px; padding: 5px 1px 4px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); min-width: 0; }
.dm-cd b { font-weight: 600; font-size: 12px; }
.dm-cd i { font-style: normal; font-size: 11px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.dm-cd.has { background: rgba(205, 165, 91, var(--a, 1)); color: #fff; }
.dm-cd.has b { color: #fff; }
.dm-cd.has.lo, .dm-cd.has.lo b { color: var(--text); }   /* case pâle : texte foncé en thème clair, clair en thème sombre */
.dm-cd.today { box-shadow: inset 0 0 0 1.5px var(--gold); }
.dm-cd.has.today { box-shadow: inset 0 0 0 1.5px var(--text); }
.dm-cd.out { visibility: hidden; }
/* Courses acceptées à venir : gris clair (owner, 2026-11-25) ; mélangé au texte pour rester clair en thème clair et sombre */
.dm-cd.fut { background: color-mix(in srgb, var(--text) 9%, transparent); }
.dm-cd.fut b { color: var(--muted); }
.dm-cd.fut i { color: var(--muted); font-weight: 600; }
.dm-cd i.dm-cd-up { font-size: 10px; font-weight: 600; opacity: .8; }
.dm-cd.has.today { padding-bottom: 3px; }
/* Jour touché : vert, ses courses sous sa semaine (owner, 2026-11-25, design 2 de design-lab/historique-jour-courses-5-designs.html) */
button.dm-cd { border: 0; font: inherit; cursor: pointer; transition: background-color .3s, color .3s; }
.dm-cd.sel, .dm-cd.sel.fut, .dm-cd.has.sel.today { background: var(--green); color: #fff; box-shadow: none; }
.dm-cd.sel b, .dm-cd.sel i { color: #fff; opacity: 1; }
@media (hover: hover) { button.dm-cd:not(.sel):hover { background: var(--text); color: var(--bg); } button.dm-cd:not(.sel):hover b, button.dm-cd:not(.sel):hover i { color: var(--bg); } }
.dm-day { grid-column: 1 / -1; margin: 2px 0 6px; padding: 4px 12px; border-radius: 12px; background: color-mix(in srgb, var(--green) 14%, transparent); animation: dmDayIn .35s cubic-bezier(.16, 1, .3, 1); }
@keyframes dmDayIn { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .dm-day { animation: none; } }
.dm-dr { width: 100%; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 0; border: 0; background: none; color: var(--text); font: inherit; text-align: start; cursor: pointer; transition: color .3s; }
.dm-dr + .dm-dr { border-top: 1px solid color-mix(in srgb, var(--green) 28%, transparent); }
.dm-dr-t { font-weight: 700; font-variant-numeric: tabular-nums; }
.dm-dr-m { min-width: 0; }
.dm-dr-m b { display: block; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-dr-m small { display: block; font-size: 12px; color: var(--muted); }
.dm-dr-m small.board { color: #c48a1c; }
.dm-dr-a { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dm-dr.fut .dm-dr-a, .dm-dr.fut .dm-dr-t { color: var(--muted); }
@media (hover: hover) { .dm-dr:hover, .dm-dr:hover .dm-dr-a, .dm-dr:hover .dm-dr-t { color: var(--green); } }
/* « Exporter » à droite du titre Historique, fenêtre d'export, rapport PDF (owner, 2026-11-25) */
.dm-hx { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.dm-hx { align-items: center; }
.dm-exp { display: grid; place-items: center; width: 36px; height: 36px; border: 0; background: none; color: var(--gold); padding: 0; margin-inline-end: -8px; border-radius: 50%; cursor: pointer; transition: background-color .3s, color .3s; }   /* icône de téléchargement dorée (owner, 2026-11-25) */
.dm-exp svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .dm-exp:hover { background: var(--text); color: var(--bg); } }
.dm-xd .sub { margin-top: 0; }
.dm-xp { display: flex; flex-direction: column; margin-top: 8px; }
.dm-xo { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; cursor: pointer; }
.dm-xo b { display: block; font-weight: 600; } .dm-xo b::first-letter { text-transform: uppercase; }
.dm-xo small { display: block; color: var(--muted); font-size: 12.5px; }
.dm-xb { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.dm-xb .btn { width: 100%; justify-content: center; }
.dm-pdf-hold { position: fixed; left: -10000px; top: 0; }   /* hors écran : sur l'enveloppe, jamais sur .dm-pdf (html2pdf copie .dm-pdf ; avec la position, la page sortait blanche) */
.dm-pdf { position: static; width: 720px; padding: 4px 2px; background: #fff; color: #111; font: 12px/1.45 Manrope, system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.dm-pdf header { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 12px; border-bottom: 2px solid #cda55b; }
.dm-pdf-logo { font: 800 26px/1 Manrope, Arial, sans-serif; color: #0e1b3d; } .dm-pdf-logo b { color: #cda55b; font-weight: 800; }
.dm-pdf-r { text-align: end; } .dm-pdf-r b { display: block; font-size: 16px; } .dm-pdf-r span { color: #555; font-size: 13px; } .dm-pdf-r span::first-letter { text-transform: uppercase; }
.dm-pdf-who { margin: 14px 0 0; font-weight: 600; } .dm-pdf-who small { color: #666; font-weight: 400; }
.dm-pdf-tot { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 16px 0 18px; }
.dm-pdf-tot div { background: #f4f2ec; border-radius: 8px; padding: 9px 10px; } .dm-pdf-tot small { display: block; color: #666; font-size: 10.5px; } .dm-pdf-tot b { font-size: 15px; }
.dm-pdf table { width: 100%; border-collapse: collapse; }
.dm-pdf th { text-align: start; font-size: 10.5px; color: #666; font-weight: 600; padding: 6px 6px; border-bottom: 1px solid #ccc; }
.dm-pdf td { padding: 7px 6px; border-bottom: 1px solid #eee; vertical-align: top; } .dm-pdf td small { display: block; color: #777; font-size: 10.5px; }
.dm-pdf .r { text-align: end; white-space: nowrap; font-weight: 700; }
.dm-pdf tr.fut td { color: #999; } .dm-pdf tr { page-break-inside: avoid; }
.dm-pdf-n { margin-top: 12px; color: #666; font-size: 11px; }
.dm-pdf-cont { padding-bottom: 8px; margin-bottom: 6px; border-bottom: 2px solid #cda55b; color: #555; font-size: 11.5px; } .dm-pdf-cont b { color: #cda55b; font-weight: 700; }
.dm-pdf-pg { margin: 10px 0 0; text-align: end; color: #999; font-size: 10px; }
/* Course déjà faite (owner, 2026-11-25) : jours passés vides en pointillé (toucher = ajouter), bouton sous les courses du jour, tiroir */
.dm-cd.emp { background: none; border: 1px dashed color-mix(in srgb, var(--text) 30%, transparent); border-radius: 10px; color: var(--muted); }
.dm-cd.emp.today { border: 1.5px solid var(--gold); box-shadow: none; }
.dm-dadd { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 6px; padding: 8px 14px; border: 0; border-radius: 99px; background: var(--gold); color: #fff; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: background-color .3s, color .3s; }
.dm-dadd svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
@media (hover: hover) { .dm-dadd:hover { background: var(--text); color: var(--bg); } }
.pq-mi.pq-mi-done .pq-ic { background: var(--gold) !important; color: #fff !important; }
.pq-mi.pq-mi-done .pq-ic svg { stroke: #fff !important; }
.mr-d { --mr-bg: var(--panel, var(--bg)); }
.mr-d .sub { margin: 0 0 4px; }
.mr-d label.f { position: relative; display: block; margin-top: 20px; }
.mr-d label.f > span:first-child { position: absolute; top: -8px; left: 12px; z-index: 2; padding: 0 6px; background: var(--mr-bg); font-size: 12px; line-height: 16px; font-weight: 700; color: var(--muted); transition: color .3s; pointer-events: none; white-space: nowrap; }
.mr-d label.f > span:first-child em { font-style: normal; font-weight: 500; opacity: .8; }
.mr-d label.f > :is(input, textarea) { width: 100%; border: 1.5px solid var(--line); border-radius: 14px; padding: 15px 16px 13px; font-size: 16px; background: transparent; box-shadow: none; color: var(--text); }
.mr-d label.f > textarea { resize: vertical; min-height: 84px; display: block; }
.mr-d label.f > :is(input, textarea):focus { border-color: var(--gold); outline: 0; }
.mr-d label.f:focus-within > span:first-child { color: var(--gold); }
.mr-d .mf-pick.mfc { position: relative; margin-top: 20px; gap: 0; }
.mr-d .mf-pick.mfc > span:first-child { position: absolute; top: -8px; left: 12px; z-index: 2; padding: 0 6px; background: var(--mr-bg); font-size: 12px; line-height: 16px; font-weight: 700; color: var(--muted); pointer-events: none; }
.mr-d .mf-pick.mfc .mfc-f { width: 100%; border: 1.5px solid var(--line); border-radius: 14px; padding: 15px 16px 13px; background: transparent; box-shadow: none; font-size: 16px; }
.mr-d .mf-pick.mfc .mfc-f[aria-expanded="true"] { border-color: var(--gold); }
@media (hover: hover) { .mr-d .mf-pick.mfc .mfc-f:hover { border-color: var(--gold); } }
.mr-qd { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.mr-chip { border: 0; padding: 7px 12px; border-radius: 99px; background: var(--panel-2); color: var(--text); font: inherit; font-size: 13.5px; cursor: pointer; transition: background-color .3s, color .3s; }
.mr-chip.on { background: var(--gold); color: #fff; }
@media (hover: hover) { .mr-chip:not(.on):hover { background: var(--text); color: var(--bg); } }
.mr-pl { margin: 22px 0 8px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.mr-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mr-tile { display: grid; gap: 4px; align-content: start; padding: 12px; border: 0; border-radius: 14px; background: var(--panel-2); color: var(--text); font: inherit; text-align: start; cursor: pointer; transition: background-color .3s, color .3s; }
.mr-tile svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 2px; }
.mr-tile b { font-size: 14.5px; } .mr-tile small { font-size: 12px; color: var(--muted); line-height: 1.3; }
.mr-tile[aria-checked="true"] { background: var(--gold); color: #fff; } .mr-tile[aria-checked="true"] small { color: #fff; opacity: .9; }
@media (hover: hover) { .mr-tile:not([aria-checked="true"]):hover { background: var(--text); color: var(--bg); } .mr-tile:not([aria-checked="true"]):hover small { color: var(--bg); } }
.mr-btns { display: flex; gap: 10px; margin-top: 24px; }
.mr-btns .btn { flex: 1 1 0; justify-content: center; }
.mr-btns .btn.danger { flex: 0 0 auto; }
.dm-cal-l i.fut { background: color-mix(in srgb, var(--text) 9%, transparent); margin-inline-start: 10px; }
.dm-mf .dm-mt b, .dm-mf .dm-mp { color: var(--muted); }
.dm-m.dm-mf.on .dm-mt b, .dm-m.dm-mf.on .dm-mp { color: #fff; }
@media (hover: hover) { .dm-m.dm-mf:hover .dm-mt b, .dm-m.dm-mf:hover .dm-mp { color: inherit; } }
.dm-cal-f { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.dm-cal-f b { color: var(--text); font-variant-numeric: tabular-nums; }
.dm-cal-l { display: inline-flex; align-items: center; gap: 5px; }
.dm-cal-l i { width: 16px; height: 10px; border-radius: 3px; background: rgba(205, 165, 91, var(--a)); }
#dmStmt { scroll-margin-top: 70px; }
@media (max-width: 380px) { .dm-big { font-size: 34px; } .dm-stats b { font-size: 16px; } }

/* Onglet Charte : bouclier rempli de vert, coche blanche, signée ou non, sur téléphone et ordinateur (owner, 2026-11-25 : « colorié à l'intérieur »). */
html .tabs.mode-tabs.mode-tabs > button[data-hash="charte"][data-hash] svg path:first-child { fill: #23944a !important; stroke: #23944a; }   /* plus fort que prio.css (html.ctl-bar … > button svg) ; trait sans !important pour que la pulsation puisse l'animer */
html .tabs.mode-tabs.mode-tabs > button[data-hash="charte"][data-hash] svg path + path { stroke: #fff !important; }

/* Page Charte : même bouclier vert que l'onglet (rempli de vert, coche blanche), sans pavé doré derrière (owner, 2026-11-25). */
.chr-head .chr-hico { width: auto; height: auto; background: none; border-radius: 0; }
.chr-head .chr-hico svg { width: 34px; height: 34px; }
.chr-head .chr-hico svg path:first-child { fill: #23944a; stroke: #23944a; }
.chr-head .chr-hico svg path + path { stroke: #fff; }

/* Onglet Charte, barre du bas (téléphone) : design 1 « Contour qui s'étend » — le trait du bouclier s'élargit vers l'extérieur et s'efface, depuis le bord du bouclier (owner, 2026-11-25). */
@keyframes chrPulse { 0% { stroke-width: 1.8; stroke: rgba(35, 148, 74, .45); } 100% { stroke-width: 8; stroke: rgba(35, 148, 74, 0); } }
@media (max-width: 999px) and (prefers-reduced-motion: no-preference) {
  html .tabs.mode-tabs.mode-tabs > button[data-hash="charte"][data-hash] svg { overflow: visible; } html .tabs.mode-tabs.mode-tabs > button[data-hash="charte"][data-hash] svg path:first-child { paint-order: stroke fill; animation: chrPulse 2s ease-out infinite; }
}

/* Charte, règle « course acceptée » : design 2 « Ordre des solutions » (home.js chrAcceptedHtml, owner 2026-11-25). */
.chr-r.chr-acc { display: block; padding: 18px; border-radius: 16px; }
.chr-acc h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.3; }
.chr-acc .chr-acc-lead { margin: 0 0 16px; font-size: 14px; color: var(--muted); }
.chr-acc-steps { list-style: none; margin: 0; padding: 0; }
.chr-acc-s { position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding-bottom: 18px; }
.chr-acc-s:last-child { padding-bottom: 0; }
.chr-acc-s:not(:last-child)::after { content: ''; position: absolute; left: 14px; top: 34px; bottom: 4px; width: 2px; background: var(--line); }
.chr-acc-dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.chr-acc-s.s1 .chr-acc-dot { background: #d32f2f; color: #fff; }
.chr-acc-s.s2 .chr-acc-dot { background: var(--gold); color: #fff; }
.chr-acc-s.s3 .chr-acc-dot { border: 1.5px dashed var(--muted); color: var(--muted); }
.chr-acc-s b { display: block; font-size: 15px; font-weight: 600; line-height: 1.35; padding-top: 4px; }
.chr-acc-s.s3 b { color: var(--muted); }
.chr-acc-s small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.chr-acc-inv { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 10px 16px; border: 0; border-radius: 99px; background: var(--gold); color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: background-color .3s, color .3s; }
.chr-acc-inv svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .chr-acc-inv:hover { background: var(--text); color: var(--bg); } }

/* Charte, règle des étapes : design 1 « Étapes numérotées » (home.js chrStagesCardHtml, owner 2026-11-25). Mêmes étapes que la règle « course acceptée ». */
.chr-stg .chr-acc-s .chr-acc-dot { background: var(--gold); color: #fff; border: 0; }
.chr-stg h3 { margin-bottom: 16px; }
.chr-stg .chr-acc-s b { color: var(--text); }
.chr-stg .chr-acc-s { padding-bottom: 16px; }
.chr-stg .chr-acc-s:last-child { padding-bottom: 0; }
.chr-stg-why { margin: 16px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.chr-stg-why b { display: block; margin-top: 4px; color: var(--text); font-weight: 700; }
.chr-stg .chr-prac-btn { margin-top: 16px; }
.chr-stg-st { margin: 8px 0 0; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--red); }
.chr-stg-st.ok { color: var(--green); }

/* Charte, « Pas de sous-traitance » : design 2 « Qui peut conduire ✓ / ✕ » (home.js chrSubHtml, owner 2026-11-25). */
.chr-r.chr-sub { display: block; padding: 18px; border-radius: 16px; }
.chr-sub-h { display: flex; align-items: center; gap: 12px; }
.chr-sub-h h3 { margin: 0; font-size: 18px; line-height: 1.3; }
.chr-sub-q { margin: 16px 0 6px; font-size: 14px; color: var(--muted); }
.chr-sub-l { list-style: none; margin: 0; padding: 0; }
.chr-sub-l li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.4; }
.chr-sub-l li svg { width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chr-sub-l li.ok svg { color: var(--green); }
.chr-sub-l li.no svg { color: var(--red); }
.chr-sub-l li.no span { font-weight: 700; }
.chr-sub-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--gold); text-decoration: none; transition: color .3s; }
.chr-sub-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .chr-sub-link:hover { color: var(--text); } }

/* Accueil sans course prévue : design 4 « Place réservée » (home.js hmWaitHtml, owner 2026-11-25). Reflet vert de gauche à droite = en ligne. */
.hmw-ghost { position: relative; overflow: hidden; border: 1.5px dashed var(--line); border-radius: 16px; padding: 16px; }
.hmw-bars { display: grid; gap: 8px; }
.hmw-bars i { display: block; height: 10px; border-radius: 6px; background: var(--panel-2); }
.hmw-bars i:nth-child(1) { width: 40%; } .hmw-bars i:nth-child(2) { width: 85%; } .hmw-bars i:nth-child(3) { width: 60%; }
.hmw-ghost::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--green) 22%, transparent) 50%, transparent 70%); transform: translateX(-100%); animation: hmw-sh 2.8s ease-in-out infinite; }
@keyframes hmw-sh { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .hmw-ghost::after { animation: none; opacity: 0; } }
.hmw-ghost p { position: relative; margin: 14px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.hmw-ghost p b { color: var(--text); }
.hmw-inv { margin-top: 24px; border: 1px solid var(--line); border-radius: 16px; padding: 18px 16px 16px; }
.hmw-inv-t { margin: 0; font-size: 16px; font-weight: 800; line-height: 1.3; }
.hmw-ben { display: grid; gap: 12px; margin-top: 14px; }
.hmw-ben > div { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; font-size: 13.5px; line-height: 1.45; }
.hmw-ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--gold-soft, color-mix(in srgb, var(--gold) 14%, transparent)); color: var(--gold); }
.hmw-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.hmw-ben b { display: block; font-size: 14px; }
.hmw-ben span span { color: var(--muted); }
.hmw-cta { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 46px; margin-top: 16px; border: 0; border-radius: 99px; background: var(--gold); color: #fff; font: inherit; font-size: 14.5px; font-weight: 800; cursor: pointer; transition: background-color .3s, color .3s; }
.hmw-cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .hmw-cta:hover { background: var(--text); color: var(--bg); } }
/* Couleurs du guide visuel de chauffapp.com (owner, 2026-12-02) : bloc gris panneau sans bordure, icônes en « Texte or »
   (jamais l'or du logo sur or clair), bouton principal marine qui s'inverse (blanc, texte marine) au survol. */
.hmw-inv { border: 0; background: var(--panel-2); }
.hmw-ic { background: var(--bg); color: var(--gold-ink); }
.hmw-ben span span { color: var(--muted); }
.hmw-cta { background: var(--text); color: var(--bg); border: 1px solid var(--text); }
@media (hover: hover) { .hmw-cta:hover { background: var(--bg); color: var(--text); } }
.hm-tl.hm-last { padding-bottom: 0 !important; margin-bottom: 0 !important; }   /* pas l'espace du bas du fil : 20 px jusqu'à « Prochaine course » (owner, 2026-11-25) */
.hm-last + .hm-h { margin-top: 8px !important; }   /* + 12 px d'écart de l'Accueil (flex gap) = 20 px */

/* « Prochaine course » : contour vert et « En ligne » avec un point qui pulse (owner, 2026-11-25, design 3 sur la carte du design 4). */
.hmw-ghost { border: 1.5px solid color-mix(in srgb, var(--green) 40%, transparent); }
.hmw-live { position: relative; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 4px 10px 4px 8px; border-radius: 99px; background: color-mix(in srgb, var(--green) 10%, transparent); color: var(--green); font-size: 12.5px; font-weight: 800; }
.hmw-live i { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.hmw-live i::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--green); animation: hmw-ping 2.2s cubic-bezier(.2, .7, .3, 1) infinite; }
@keyframes hmw-ping { 0% { transform: scale(1); opacity: .55; } 80%, 100% { transform: scale(2.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hmw-live i::after { animation: none; opacity: 0; } }

/* Réglages : léger fond doré au survol de chaque en-tête de rubrique et des fiches dedans, et du menu de gauche sur ordinateur
   (owner, 2026-11-25). Souris seulement : pas de couleur qui reste après un toucher sur téléphone. */
#sbody details.sec > summary, #sbody .mfg > summary, .set-nav [data-sec] { transition: background-color .3s; }
@media (hover: hover) {
  #sbody#sbody#sbody details.sec > summary:hover, #sbody#sbody#sbody .mfg > summary:hover, .set-nav [data-sec]:not(.on):hover { background: color-mix(in srgb, var(--gold) 10%, transparent) !important; color: var(--text) !important; }
  .set-nav [data-sec]:not(.on):hover svg { stroke: var(--text) !important; color: var(--text) !important; }
  #sbody#sbody#sbody details.sec[open] > summary:hover, #sbody#sbody#sbody .mfg[open] > summary:hover { background: color-mix(in srgb, var(--gold) 18%, transparent) !important; }
}

/* Factures › Vue d'ensemble, design 1 « Montant entre les flèches » (owner, 2026-11-25) : montant centré entre deux flèches
   rondes, le mois et les courses dessous (le jour touché les remplace), graphique deux fois moins haut. */
.dm-head.dm-head1 { display: block; text-align: center; }
.dm-head1 .dm-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dm-head1 #dmRead { display: block; margin: 10px 0 0; min-height: 20px; color: var(--muted); font-size: 13.5px; }
.dm-head1 #dmRead.day { color: var(--text); font-weight: 600; }
.dm-arw { flex: none; display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: none; color: var(--text); cursor: pointer; transition: background-color .3s, color .3s, border-color .3s, opacity .3s; }
.dm-arw svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dm-arw:disabled { opacity: .3; cursor: default; }
@media (hover: hover) { .dm-arw:not(:disabled):hover { background: var(--text); color: var(--bg); border-color: var(--text); } }
.dm .dm-chart { height: 62px; }
.mf-top.mf-bottom { margin: 20px 0 0; }   /* « Tout télécharger (.zip) » sous les fiches du dossier VTC (owner, 2026-11-25) */

/* Dossier VTC › Entreprise, design 1 « Comme l'e-mail » (owner, 2026-11-25) */
.co1-one { margin-top: 0; }
.co1-ok { display: inline-flex; align-items: center; gap: 3px; color: var(--green); font-weight: 700; }
.co1-ok svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.co1-wait { color: var(--gold); font-weight: 700; }
.mfg-body .co1-one + .co-details { margin-top: 14px; }
.co1-pend { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 12px 14px; border: 1px dashed var(--gold); border-radius: 14px; font-size: 13px; }
.co1-pend.bad { border-color: var(--red); }
.co1-pend > svg { width: 18px; height: 18px; flex: none; margin-top: 1px; fill: none; stroke: var(--gold); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.co1-pend.bad > svg { stroke: var(--red); }
.co1-pt { flex: 1; min-width: 0; } .co1-pt b { display: block; } .co1-pt small { display: block; color: var(--muted); }
.co1-pend.bad .co1-pt small { color: var(--red); }
.co1-pa { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; }
.co1-drw h2 { margin: 0 0 4px; }
.co1-lead { margin: 0 0 12px; color: var(--muted); font-size: 13.5px; }
.co1-drw .co-head, .co1-drw .co-hint { display: none; }
.co1-pick { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--gold); border-radius: 12px; background: var(--gold-soft); }
.co1-pick > svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.co1-pick > span { flex: 1; min-width: 0; } .co1-pick b { display: block; } .co1-pick small { display: block; color: var(--muted); font-size: 12.5px; }
.co1-drop { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 14px; border: 1.5px dashed var(--line); border-radius: 12px; cursor: pointer; transition: border-color .3s, background-color .3s; }
.co1-drop > svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--gold); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.co1-drop b { display: block; font-size: 14px; } .co1-drop small { display: block; color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.co1-drop.over { border-color: var(--gold); background: var(--gold-soft); }
.co1-drop.has { border-style: solid; border-color: var(--green); }
.co1-drop.has small { color: var(--green); font-weight: 600; }
@media (hover: hover) { .co1-drop:hover { border-color: var(--gold); } }
.co1-note { margin: 12px 0 0; color: var(--muted); font-size: 12.5px; }
.co1-act { margin-top: 16px; }

/* ---------- Abonnés de la plateforme (tenants.js, owner 2026-11-26) ---------- */
.tn-page { max-width: 1100px; }
.tn-head { display: flex; align-items: flex-start; gap: 16px; margin: 8px 0 24px; }
.tn-head h1 { margin: 0 0 6px; }
.tn-head .hint { margin: 0; max-width: 640px; }
.tn-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.tn-card { background: var(--panel-2); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.tn-card.suspended { opacity: .72; }
.tn-top { display: flex; gap: 12px; align-items: flex-start; }
.tn-top h3 { margin: 0 0 4px; font-size: 18px; }
.tn-url { color: var(--gold); text-decoration: none; font-size: 14px; word-break: break-all; }
.tn-pill { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; background: var(--gold-soft); color: var(--text); }
.tn-pill.active { background: rgba(31, 157, 85, .14); color: #1f9d55; }
.tn-pill.suspended { background: rgba(214, 69, 69, .12); color: #d64545; }
.tn-meta { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--muted); }
.tn-nums { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; color: var(--muted); }
.tn-nums b { color: var(--text); font-size: 16px; }
.tn-note { margin: 0; font-size: 14px; color: var(--muted); white-space: pre-line; }
.tn-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.tn-sub { display: flex; align-items: center; gap: 6px; }
.tn-sub input { flex: 1; min-width: 0; }
.tn-sub b { color: var(--muted); font-weight: 600; white-space: nowrap; }
.tn-dlg .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) {
  .tn-head { flex-direction: column; }
  .tn-head .btn { width: 100%; }
  .tn-grid { grid-template-columns: 1fr; }
  .tn-dlg .two { grid-template-columns: 1fr; }
}
/* Téléphone et tablette : 16 px de chaque côté (la page n'a pas de marge à elle ; owner 2026-11-27, barre complète sur la plateforme) */
@media (max-width: 999px) { .tn-page > .tn-head, .tn-page > #tnList, .tn-page > #tnShare { margin-left: 16px; margin-right: 16px; } }
/* Abonnés › Comptes à vérifier (sharecheck.php, owner 2026-11-29) : au-dessus des abonnés, mêmes cartes. */
.tn-share { margin: 0 0 32px; }
.tn-share h2 { margin: 0 0 6px; font-size: 20px; }
.tn-share > .hint { margin: 0 0 16px; max-width: 640px; }
.tn-sh-what { color: var(--text); }
/* Chauffeurs de ma société : déclaration du gérant avant l'ajout (fleet.js, owner 2026-11-29) */
.fl-form .fl-decl { align-items: flex-start; font-weight: 500; line-height: 1.45; margin: 20px 0 16px; }   /* même écart que les champs (20 px) */
.fl-form .fl-decl i { margin-top: 1px; }
/* Adresse de l'abonné : « .chauffapp.com » sur la même ligne que le champ (la règle générale .f span le mettait dessous). */
.tn-dlg label.f > span.tn-sub { display: flex; flex-direction: row; align-items: center; gap: 8px; margin: 0; font-size: inherit; }
.tn-dlg label.f > span.tn-sub > input { flex: 1 1 auto; width: auto; min-width: 0; }
.tn-dlg label.f > span.tn-sub > b { flex: none; color: var(--muted); font-weight: 600; }

/* ---------- Création du compte administrateur, design 4 (tenants.js viewSetupAdmin, owner 2026-11-26) ----------
   Accueil à gauche, formulaire à droite (ordinateur) ; champs « Contour arrondi » des Réglages. */
.su4-page { max-width: 1040px; }
/* Owner, 2026-11-27 : contenu centré dans la hauteur de l'écran sur ordinateur (le bas compense l'en-tête) ; un peu d'air
   entre le logo et le drapeau, et le bouton clair / sombre juste à côté du drapeau (au lieu de tout à droite). */
@media (min-width: 1000px) {
  .su4-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
  .su4-page > .su4 { margin-block: auto; padding-bottom: 64px; }
}
.su4-page > .top > button.tool-btn[data-act="lang"] { margin-left: -8px; }
.su4-page > .top > .spacer { order: 1; }
.su4-page > .top > [data-act="theme"] { margin-inline-start: -20px; }
.su4 { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 56px; align-items: start; margin: 24px 0 48px; }
.su4-welcome h1 { margin: 0 0 10px; font-size: 26px; line-height: 1.2; font-weight: 800; letter-spacing: -.015em; text-wrap: balance; color: var(--text); }
.su4-welcome > p { margin: 0 0 24px; color: var(--muted); }
.su4-welcome ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.su4-welcome li { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; color: var(--text); }
.su4-welcome li svg { flex: none; width: 22px; height: 22px; stroke: var(--gold); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.su4-welcome li small { display: block; font-weight: 400; color: var(--muted); font-size: 14px; }
.su4-form { display: flex; flex-direction: column; gap: 20px; padding-top: 8px; }
.su4-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.su4-f { position: relative; display: block; margin: 0; }
.su4-f[hidden], .su4-res[hidden] { display: none; }
/* Langue principale des e-mails (owner, 2026-11-28) : même champ que les autres, phrase d'aide dessous */
.su4-sel > .sel-btn { width: 100%; min-height: 52px; margin: 0; border: 1.5px solid var(--line); border-radius: 14px; padding: 15px 16px 13px; font-size: 16px; font-weight: 500; color: var(--text); background: transparent; box-shadow: none; transition: border-color .3s; }
.su4-sel > .sel-btn[aria-expanded="true"] { border-color: var(--gold); }
.su4-h { margin: 6px 6px 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.su4-l { position: absolute; top: -8px; left: 12px; z-index: 2; max-width: calc(100% - 24px); padding: 0 6px; background: var(--bg);
  font-size: 12px; line-height: 16px; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s; pointer-events: none; }
.su4-f > input, .su4-box { width: 100%; border: 1.5px solid var(--line); border-radius: 14px; padding: 15px 16px 13px; font-size: 16px; font-weight: 500; color: var(--text); background: transparent; box-shadow: none; transition: border-color .3s; margin: 0; }
.su4-box { display: flex; align-items: center; gap: 10px; padding: 0 10px 0 16px; min-height: 52px; }
.su4-box input { flex: 1; min-width: 0; border: 0; background: none; box-shadow: none; padding: 14px 0 12px; margin: 0; font-size: 16px; font-weight: 500; color: var(--text); }
.su4-box input::-webkit-search-cancel-button { display: none; }
.su4-box > svg { flex: none; width: 20px; height: 20px; stroke: var(--muted); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.su4-f > input:focus, .su4-box:focus-within { border-color: var(--gold); outline: none; }
.su4-box input:focus { outline: none; }
.su4-f:focus-within > .su4-l { color: var(--gold); }
.su4-f.miss > input, .su4-f.miss .su4-box { border-color: var(--red); }
.su4-f.miss > .su4-l { color: var(--red); }
.su4-f > input:-webkit-autofill, .su4-box input:-webkit-autofill { -webkit-box-shadow: 0 0 0 100px var(--bg) inset; -webkit-text-fill-color: var(--text); }
.su4-eye { flex: none; width: 36px; height: 36px; border: 0; background: none; border-radius: 10px; display: grid; place-items: center; cursor: pointer; padding: 0; }
.su4-eye svg { width: 20px; height: 20px; stroke: var(--muted); fill: none; stroke-width: 1.8; }
.su4-picked { padding: 10px 12px 10px 14px; }
.su4-ok { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--green); display: grid; place-items: center; }
.su4-ok svg { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 2.6; }
.su4-t { flex: 1; min-width: 0; }
.su4-t b { display: block; font-size: 16px; color: var(--text); }
.su4-t small { display: block; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.su4-link { flex: none; border: 0; background: none; padding: 6px 4px; color: var(--gold); font-weight: 700; font-size: 14px; cursor: pointer; }
/* Résultats de la recherche de société : liste flottante au-dessus des champs suivants (owner, 2026-11-27) */
.su4-co { position: relative; }
.su4-res { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40; background: var(--bg); box-shadow: 0 18px 40px -16px rgba(15, 31, 61, .35);
  border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; max-height: 320px; overflow-y: auto; overscroll-behavior: contain; }
.su4-res button { display: block; width: 100%; text-align: start; border: 0; background: none; padding: 12px 16px; cursor: pointer; color: var(--text); transition: background .2s; }
.su4-res button + button { border-top: 1px solid var(--line); }
.su4-res button[disabled] { opacity: .5; cursor: default; }
.su4-res b { display: block; font-size: 15px; } .su4-res small { color: var(--muted); font-size: 13px; }
.su4-msg { padding: 12px 16px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
@media (hover: hover) { .su4-res button:not([disabled]):hover { background: var(--panel-2); } .su4-link:hover { color: var(--text); } }
.su4-go { margin-top: 8px; }
@media (max-width: 999px) { .su4 { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 8px; } }

/* ---------- Réglages › Design (brand.js, owner 2026-11-26) ---------- */
.bd { display: flex; flex-direction: column; gap: 24px; }
.bd > .hint { margin: 0; }
.bd-color { display: flex; flex-direction: column; gap: 10px; }
.bd-color .hint { margin: 0; }
.bd-row { display: flex; align-items: center; gap: 10px; }
.bd-row > input[type="text"] { flex: 1; min-width: 0; font-variant-numeric: tabular-nums; text-transform: lowercase; }
.bd-sw { position: relative; flex: none; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--c, #cda55b); cursor: pointer; padding: 0; overflow: hidden; transition: transform .2s; }
.bd-sw input[type="color"] { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer; pointer-events: none; }
.bd-def { flex: none; border: 0; background: none; color: var(--muted); font-weight: 700; font-size: 14px; cursor: pointer; padding: 8px 4px; transition: color .3s; }
.bd-presets { display: flex; flex-wrap: wrap; gap: 10px; }
.bd-p { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--c); cursor: pointer; padding: 0; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); transition: transform .2s, box-shadow .2s; }
.bd-p.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text); }
.bd-low { font-size: 13px; font-weight: 600; color: var(--red); }
.bd-logo, .bd-prev { display: flex; flex-direction: column; gap: 10px; }
.bd-logo .hint { margin: 0; }
/* Icône de l'appli des clients (brand.js, owner 2026-11-27) : 4 choix dessinés en direct */
.bd-icon { display: flex; flex-direction: column; gap: 10px; }
.bd-icon .hint { margin: 0; }
.bd-icon > .btn { align-self: flex-start; }
.bd-icons { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }   /* 5 choix depuis le favicon (2026-11-28), une seule ligne aussi sur téléphone */
@media (max-width: 520px) { .bd-icons { gap: 4px; } .bd-icons .bd-ic { padding: 8px 2px; font-size: 11.5px; } .bd-icons .bd-ic canvas { width: 50px; height: 50px; } }
.bd-ic { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border: 0; border-radius: 14px; background: none; color: var(--text); font: inherit; font-size: 12.5px; font-weight: 600; text-align: center; cursor: pointer; transition: background-color .3s, color .3s; }
.bd-ic canvas { width: 56px; height: 56px; border-radius: 26%; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.bd-ic canvas.bd-noimg { box-shadow: none; border: 1.5px dashed var(--line); background: var(--panel-2); }
.bd-ic[aria-checked="true"] { background: var(--gold-soft); }
.bd-ic[aria-checked="true"] canvas { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (hover: hover) { .bd-ic:hover { background: var(--text); color: var(--bg); } }
/* Client connecté dans l'appli Android des chauffeurs (team.js nappClientBlock, owner 2026-11-27) */
body.napp-cl-on .mode-tabs, body.napp-cl-on .push-bar, body.napp-cl-on .install-bar, body.napp-cl-on .rc-fab { display: none !important; }
.napp-cl { min-height: 70vh; display: grid; place-items: center; padding: 24px 16px; }
.napp-cl-in { max-width: 420px; text-align: center; }
.napp-cl-in h1 { margin: 0 0 10px; font-size: 24px; line-height: 1.2; text-wrap: balance; }
.napp-cl-in p { margin: 0 0 24px; color: var(--muted); }
.bd-logo-h { font-weight: 700; font-size: 15px; }
.bd-logo-prev { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bd-logo-prev span { display: grid; place-items: center; height: 72px; border-radius: 14px; padding: 12px; }
.bd-on-light { background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.bd-on-dark { background: #0d1529; }
.bd-logo-prev img { max-height: 40px; max-width: 100%; width: auto; object-fit: contain; }
.bd-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 96px; border: 1.5px dashed var(--line); border-radius: 14px; cursor: pointer; text-align: center; padding: 14px; transition: border-color .3s, background .3s; }
.bd-drop svg { width: 24px; height: 24px; stroke: var(--gold); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bd-drop small { color: var(--muted); }
.bd-drop.over { border-color: var(--gold); background: var(--gold-soft); }
.bd-logo .btn { align-self: flex-start; }
/* Deux logos, fond clair et fond sombre, chacun son envoi (owner, 2026-11-27) */
/* Les deux colonnes partagent leurs rangées (subgrid) : titres, aperçus et zones restent alignés même si un titre passe sur 2 lignes */
.bd-lgs { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, auto); column-gap: 12px; row-gap: 8px; }
.bd-lg { display: grid; grid-row: span 4; grid-template-rows: subgrid; align-content: start; min-width: 0; }
.bd-lg > .btn { justify-self: start; }
.bd-drop-s b { font-size: 14px; }
.bd-drop-s small { font-size: 12.5px; }
.bd-lg-h { display: flex; flex-direction: column; }
.bd-lg-h b { font-size: 14px; font-weight: 700; }
.bd-lg-h small { font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.bd-lg-prev { display: grid; place-items: center; height: 72px; border-radius: 14px; padding: 12px; }
.bd-lg-prev img { max-height: 40px; max-width: 100%; width: auto; object-fit: contain; }
.bd-drop-s { min-height: 76px; padding: 10px 8px; }
/* Icône d'onglet (favicon) : aperçu dans un onglet clair et un onglet sombre (owner, 2026-11-27) */
.bd-fav { display: flex; flex-direction: column; gap: 10px; }
.bd-fav .hint { margin: 0; }
.bd-fav > .btn { align-self: flex-start; }
.bd-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bd-tabbar { display: flex; align-items: flex-end; height: 52px; padding: 0 10px; border-radius: 14px; overflow: hidden; }
.bd-tab-l { background: #dfe3ea; }
.bd-tab-d { background: #1f2228; }
.bd-tab { display: flex; align-items: center; gap: 8px; width: 100%; max-width: 220px; height: 36px; padding: 0 10px; border-radius: 10px 10px 0 0; font: 600 12.5px/1 system-ui, -apple-system, "Segoe UI", sans-serif; }
.bd-tab-l .bd-tab { background: #fff; color: #1f2937; }
.bd-tab-d .bd-tab { background: #35373d; color: #e8eaed; }
.bd-tab img { width: 16px; height: 16px; flex: none; object-fit: contain; }
.bd-tab-n { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bd-tab svg { width: 14px; height: 14px; flex: none; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; opacity: .7; }
/* Atelier logo avec ChatGPT (design D choisi par l'owner, 2026-11-27, design-lab/logo-chatgpt-popup-5-designs.html) */
.bd-gpt { align-self: flex-start; gap: 8px; }
.bdg-ico { width: 20px; height: 20px; border-radius: 5px; flex: none; display: block; }
.dialog.bdg { max-width: 460px; }
.bdg h2 { font-family: var(--display, inherit); font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.bdg-lead { margin: 0; color: var(--muted); font-size: 15px; }
.bdg-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: var(--s-panel, var(--panel-2)); border-radius: 14px; margin: 16px 0 12px; }
.bdg-tabs button { border: 0; background: none; border-radius: 10px; padding: 8px 6px; font: inherit; font-size: 13px; font-weight: 700; line-height: 1.25; color: var(--muted); cursor: pointer; transition: background-color .3s, color .3s; }
.bdg-tabs button[aria-pressed="true"] { background: var(--bg); color: var(--text); box-shadow: 0 1px 4px rgba(15, 31, 61, .12); }
.bdg-styles { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.bdg-chip { border: 1.5px solid var(--line); background: var(--bg); border-radius: 99px; padding: 7px 12px; font: inherit; font-size: 13px; font-weight: 700; color: var(--text); cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.bdg-chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.bdg-img { position: relative; aspect-ratio: 16 / 7; border-radius: 14px; overflow: hidden; background: linear-gradient(110deg, var(--s-panel, var(--panel-2)) 30%, var(--bg) 50%, var(--s-panel, var(--panel-2)) 70%); background-size: 220% 100%; animation: bdg-shim 1.4s linear infinite; }
.bdg-img.done { animation: none; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.bdg-img.dark.done { background: #0b1424; box-shadow: none; }
@keyframes bdg-shim { to { background-position: -220% 0; } }
.bdg-pic { position: absolute; inset: 0; display: grid; place-items: center; padding: 12%; clip-path: inset(0 0 100% 0); filter: blur(14px); transition: clip-path 2.6s cubic-bezier(.45, 0, .2, 1), filter 2.6s ease-out; }
.bdg-pic.on { clip-path: inset(0); filter: blur(0); }
.bdg-img.sq .bdg-pic { padding: 9% 38%; }
.bdg-pic svg { width: 100%; height: auto; display: block; }
.bdg-reset, .bdg-reset * { transition: none !important; }
.bdg-prompt { margin-top: 12px; background: var(--s-panel, var(--panel-2)); border-radius: 14px; padding: 12px 14px; font-size: 14px; line-height: 1.5; }
.bdg-prompt p { margin: 0; user-select: text; -webkit-user-select: text; }
.bdg-foot { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.bdg-foot .btn { width: 100%; gap: 8px; }
.bdg-foot .btn svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; flex: none; }
@media (hover: hover) { .bdg-tabs button:not([aria-pressed="true"]):hover, .bdg-chip:not([aria-pressed="true"]):hover { background: var(--text); color: var(--bg); border-color: var(--text); } }
@media (prefers-reduced-motion: reduce) { .bdg-img { animation: none; } .bdg-pic { transition: none; } }
@media (max-width: 420px) {
  .bdg-tabs button { padding: 8px 4px; font-size: 12.5px; text-wrap: balance; }
  .bdg-foot .btn { padding-inline: 10px; font-size: 14px; white-space: nowrap; }
}
.bd-prev-in { border: 1.5px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.bd-prev-in p { margin: 0; }
.bd-prev-in a { color: var(--gold); font-weight: 700; }
.bd-prev-row { display: flex; align-items: center; gap: 16px; }
@media (hover: hover) { .bd-sw:hover, .bd-p:hover { transform: scale(1.08); } .bd-def:hover { color: var(--text); } .bd-drop:hover { border-color: var(--gold); } }
/* La règle générale « .f > span » des Réglages mettait la pastille, le champ et « Par défaut » l'un sous l'autre. */
.bd label.f > span.bd-row { display: flex !important; flex-direction: row !important; align-items: center; gap: 10px; margin: 0 !important; padding: 0 !important; font-size: inherit !important; font-weight: inherit !important; color: inherit !important; position: static !important; background: none !important; }
.bd label.f > span.bd-row > input[type="text"] { flex: 1 1 auto; width: auto; min-width: 0; }

/* Macarons du monde (stickers.php, owner 2026-11-27) : le lieu sous le nom, puis la ligne « Voir les autres macarons (n) ». */
#sbody .fvb-dn .fvb-where { display: block; margin-top: 1px; font-size: 12px; font-weight: 600; color: var(--muted); }
#sbody .fvb-more { display: flex; align-items: center; gap: 6px; width: 100%; margin: 0; padding: 12px 0 2px; border: 0; border-top: 1px solid var(--line); border-radius: 0;
  background: transparent; color: var(--gold); font: inherit; font-size: 14px; font-weight: 700; text-align: left; cursor: pointer; transition: color .3s; }
#sbody .fvb-more svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s; }
#sbody .fvb-more[aria-expanded="true"] svg { transform: rotate(180deg); }
#sbody .fvb-stk-home { margin: 12px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
@media (hover: hover) { #sbody .fvb-more:hover { color: var(--text); background: transparent; } }
.tm-more .tf-opt .drv-ava { width: 22px; height: 22px; font-size: 9px; flex: none; }   /* Réglages : la photo du compte dans le menu Plus (owner, 2026-11-28) */
/* Mon compte › Téléphone : même champ que « Apparence » et le guide visuel (owner, 2026-11-28) : un contour arrondi,
   le libellé dans la ligne du haut, l'indicatif et le numéro dedans, contour doré pendant la saisie. */
.em-row.ac-phone { position: relative; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 0; margin-top: 20px; padding: 6px 6px 6px 4px; border: 1px solid var(--line); border-radius: 12px; transition: border-color .3s; }
.em-row.ac-phone:focus-within, .em-row.ac-phone:has(.ph-box.open) { border-color: var(--gold); }
.em-row.ac-phone > .em-k { position: absolute; top: -9px; left: 10px; padding: 0 5px; background: var(--bg); font-size: 12px; font-weight: 700; color: var(--muted); line-height: 1.4; transition: color .3s; }
.em-row.ac-phone:focus-within > .em-k { color: var(--gold); }
.em-row.ac-phone .ph-box { flex: 1; gap: 0; align-items: center; }
.em-row.ac-phone .ph-btn { height: 40px; border: 0; border-radius: 10px; background: transparent; padding: 0 10px 0 8px; }
.em-row.ac-phone .ph-btn::after { content: ''; width: 1px; height: 22px; margin-inline-start: 8px; background: var(--line); }
.em-row.ac-phone input { max-width: none; height: 40px; padding: 0 10px; border: 0; border-radius: 0; background: transparent; font-size: 16px; }
.em-row.ac-phone input:focus { border: 0; }
.em-row.ac-phone input.ph-bad { color: var(--red); }
/* … même hauteur (52 px) et même placement du texte que « Apparence » : 14 px au-dessus, 12 px dessous (owner, 2026-11-28) */
html .em-row.ac-phone.ac-phone, html.dt details.sec:has(#myMail) > div > .em-row.ac-phone.ac-phone { padding: 14px 10px 11px 4px; min-height: 52px; }   /* plus fort que « * + * { padding-top: 0 } » de design-thread.css */
/* Ligne du haut du cadre Téléphone : « * + * { border-top: 0 } » de design-thread.css l'effaçait (owner, 2026-11-28 : « why this line is missing? »). */
html .em-row.ac-phone.ac-phone, html.dt details.sec:has(#myMail) > div > .em-row.ac-phone.ac-phone { border-top: 1px solid var(--line); }
html .em-row.ac-phone.ac-phone:is(:focus-within, :has(.ph-box.open)), html.dt details.sec:has(#myMail) > div > .em-row.ac-phone.ac-phone:is(:focus-within, :has(.ph-box.open)) { border-top-color: var(--gold); }
.em-row.ac-phone .ph-btn { height: 26px; padding: 0 10px 0 8px; }
.em-row.ac-phone input, .em-row.ac-phone input[name="phone_local"] { height: 26px !important; line-height: 26px; padding: 0 10px; }

/* ---------- Réglages : groupes titrés, design C « Deux colonnes » (owner, 2026-11-28 ; settingsGroups dans team.js) ----------
   Ordinateur (rubrique ≥ 600 px de large) : titre + explication du groupe à gauche (200 px), réglages à droite.
   Téléphone et rubrique étroite : titre puis réglages, l'un sous l'autre. Groupes séparés par un filet fin.
   Dans un groupe : 20 px entre les blocs ; une aide sous un champ 8 px ; interrupteurs en lignes, l'interrupteur à droite. */
.sg-wrap { container-type: inline-size; }
.sg-wrap > .sg-lead { margin: 0 0 20px; font-size: 14px; color: var(--muted); }
.sg-wrap > .sg-lead + .sg-lead { margin-top: 8px; }
.sg-wrap > .sg-off { display: none !important; }
.sg { padding: 24px 0; border-top: 1px solid var(--line); }
.sg-wrap > .sg:first-child { border-top: 0; padding-top: 12px; }
.sg-wrap > .sg:last-of-type { padding-bottom: 4px; }
.sg-hd { min-width: 0; }
.sg-h { margin: 0; font-size: 15px; font-weight: 800; line-height: 1.35; color: var(--text); letter-spacing: 0; }
.sg-hd .sg-d { margin: 4px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.sg-b { margin-top: 16px; min-width: 0; }
.sg-b > * { margin-top: 0 !important; }
.sg-b > * + * { margin-top: 20px !important; }
.sg-b > :is(label.f, .two, .pblock, .bon-co, .smtp-test, .bk-drop) + .hint, .sg-b > .btns + .smtp-res, .sg-b > .hint + .btns { margin-top: 8px !important; }
.sg-b > .smtp-res:empty { display: none; }
.sg-b > label.check { flex-direction: row-reverse; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; font-weight: 600; }
.sg-b > label.check > span { flex: 1; min-width: 0; }
.sg-b > label.check > input { flex: none; }
.sg-b > label.check:first-child { padding-top: 0; }
.sg-b > label.check + label.check { margin-top: 0 !important; border-top: 1px solid var(--line); }
.sg-b > label.check:has(+ :not(label.check)) { padding-bottom: 0; }
.sg-b > label.check .sg-sd { display: block; margin-top: 3px; font-weight: 400; }
.sg-b > .btns { justify-content: flex-start; }
.sg-b #bonCo > .pw-h, .sg-b #apHost > .pay-sub { display: none; }   /* titre déjà donné par le groupe */
.sg-b #bonCo > :nth-child(2) { margin-top: 0; }
.sg-b #bonCo > :nth-child(n+3) { margin-top: 20px; }   /* champs de la société : même écart que le reste du groupe */
.sg-b #bonCo > :is(label.f, .two) + .hint { margin-top: 8px; }
@container (min-width: 600px) {
  .sg { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; }
  .sg-b { margin-top: 0; }
}

/* Écrans de 1500 px au plus, colonne de gauche comprise (owner, 2026-11-28) : sur un grand écran, les boutons flottants de droite (bulle des
   messages et son panneau, ampoule qui suit la bulle) et le message d'erreur restent au bord des 1500 px, pas au bord de la fenêtre. */
@media (min-width: 1000px) {
  :root { --edge-r: max(28px, calc(100vw - 1500px + 28px)); }
  html body .rc-fab, html body .rc-fab.clw-fab, html body .rc-sup-panel, html body .rc-sup-panel.clw { right: var(--edge-r); }
  html[dir="rtl"] body .rc-fab, html[dir="rtl"] body .rc-fab.clw-fab, html[dir="rtl"] body .rc-sup-panel, html[dir="rtl"] body .rc-sup-panel.clw { right: auto; left: var(--edge-r); }
  html body #toast, html body #toast.err { max-width: calc(1500px - var(--side-w) - 80px); }
}

/* ==================== Réglages du super admin : rubrique « Administration » repliée (owner, 2026-11-28) ====================
   Mêmes rubriques qu'un chauffeur, puis « Administration » : un clic l'ouvre et montre les réglages de l'admin
   (rubriques data-adm, settingsLayout dans team.js). Ordinateur : entrée de la liste + sous-liste ; téléphone : titre encadré. */
.set-nav .set-adm-list { display: none; }
.set-nav .set-adm-list.open { display: flex; flex-direction: column; gap: 4px; }   /* chaque groupe (« Global », « Back-Office ») s'ouvre seul, owner 2026-11-30 */
.set-nav .set-adm-tog { position: relative; margin-top: 10px; }
.set-nav .set-adm-tog::before { content: ''; position: absolute; left: 14px; right: 14px; top: -6px; border-top: 1px solid var(--line); }
.set-adm-chev { flex: none; margin-inline-start: auto; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .3s; opacity: .7; }
.set-adm-tog[aria-expanded="true"] .set-adm-chev { transform: rotate(225deg) translate(-2px, -2px); }
@media (min-width: 1000px) { .set-nav .set-adm-tog { padding-inline-end: 16px !important; } }
@media (max-width: 999px) {
  #sbody.set-layout .set-main [data-adm]:not(.adm-on) { display: none !important; }
  #sbody .set-adm-sec[open] > summary { border-bottom-left-radius: inherit; border-bottom-right-radius: inherit; }
}
@media (min-width: 1000px) { .set-nav .set-adm-list.open { padding-inline-start: 12px; } }
/* Une rubrique de l'admin à compléter (« ! », home.js) pendant que son groupe est replié : point rouge sur le groupe */
#sbody .set-adm-tog[aria-expanded="false"]:has(+ .set-adm-list .set-warn)::after { content: ''; position: absolute; right: 34px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--red, #d33); }

/* ==================== Survol de la colonne de gauche et de la liste des Réglages : bleu marine (owner, 2026-11-28) ====================
   Règle des boutons : un bouton clair ou doré passe aux couleurs inverses au survol (fond var(--text), texte var(--bg)), fondu 0,3 s,
   seulement avec une vraie souris. Remplace le survol doré (design-thread.css, sitelook.css) pour tous les rôles.
   Restent à part : l'onglet choisi (.on), « Se déconnecter » (rouge) et le « + » (prio.css). */
.tabs.mode-tabs > button, .set-nav button { transition: background-color .3s, color .3s; }
@media (hover: hover) {
  html body .tabs.mode-tabs button:not(.on):not(.tab-signout):not(.tab-plus):hover,
  html body #sbody .set-nav button:not(.on):hover { background: var(--text) !important; color: var(--bg) !important; }
  html body .tabs.mode-tabs button:not(.on):not(.tab-signout):not(.tab-plus):hover :is(svg, .tab-lbl, .tab-mail, .tab-role),
  html body #sbody .set-nav button:not(.on):hover :is(svg, .set-ico, small) { color: var(--bg) !important; stroke: var(--bg) !important; }
}
/* Barre du bas (moins de 1000 px) : pas de carré bleu marine au survol, seuls l'icône et le texte foncent (owner, 2026-12-02).
   Le survol bleu marine ci-dessus reste pour la colonne de gauche sur ordinateur. */
@media (max-width: 999px) and (hover: hover) {
  html body .tabs.mode-tabs > button:not(.on):not(.tab-signout):not(.tab-plus):hover { background: none !important; color: var(--text) !important; }
  html body .tabs.mode-tabs > button:not(.on):not(.tab-signout):not(.tab-plus):hover :is(svg, .tab-lbl, .tab-mail, .tab-role) { color: var(--text) !important; stroke: currentColor !important; }
}
/* Icônes de la liste des Réglages (et des titres de rubrique sur téléphone) : couleur du texte, comme la colonne de gauche,
   plus dorées (owner, 2026-11-28). Au survol : blanches avec le texte (règle ci-dessus). */
html body #sbody .set-nav button .set-ico, html body #sbody details.sec > summary .set-ico { color: currentColor !important; }
html body #sbody .set-nav button .set-ico svg, html body #sbody details.sec > summary .set-ico svg { color: inherit !important; stroke: currentColor !important; }
/* Partout (owner, 2026-11-28) : l'icône de l'entrée choisie dans la colonne de gauche suit aussi la couleur du texte, plus de doré. */
html body .tabs.mode-tabs > button.on:not(.tab-plus) svg { color: currentColor !important; stroke: currentColor !important; }
/* Utilisateurs › TEST (testtab.js, owner 2026-11-28) : deux sections, titre + « Tout ouvrir », puis les cartes. */
.ts-sec { margin: 0 0 28px; }
.ts-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.ts-head h2 { margin: 0 0 4px; font-size: 18px; }
.ts-head .hint { margin: 0; }
.ts-head .btn { flex: none; }
.ts-card .uc-lines span { color: var(--muted); overflow-wrap: anywhere; }
/* Code promo à la dernière étape de la réservation (book.js, bkPromoCard ; promo.php, owner 2026-11-29) */
.bk-promo-row { display: flex; align-items: flex-end; gap: 10px; }
.bk-promo-row label.f { flex: 1; min-width: 0; margin: 0; }
.bk-promo-row .btn { flex: none; height: 48px; padding: 0 18px; transition: background .3s, color .3s, border-color .3s; }
@media (hover: hover) { .bk-promo-row .btn:hover { background: var(--text); color: var(--bg); border-color: var(--text); } }
.bk-promo-on { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--green-soft); }
.bk-promo-ic { width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--bg); color: var(--green); display: grid; place-items: center; }
.bk-promo-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bk-promo-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bk-promo-tx b { font-weight: 800; letter-spacing: .04em; overflow-wrap: anywhere; }
.bk-promo-tx small { color: var(--green); font-weight: 700; font-size: 13px; }
.bk-line.bk-line-promo b { color: var(--green); }

/* ---------- Ligne du titre, la même sur toutes les pages (phHtml / phIb, app.js ; design-lab/haut-des-pages-boutons-maquette.html, owner 2026-11-29) ----------
   Titre, choix de la vue, puis au bout les actions de la page en boutons carrés de 40 px (outils, partage, « + » toujours le dernier).
   Ordinateur : la page commence à 20 px du haut (la barre du haut est vide et cachée, la recherche est sous le logo). */
.ph { display: flex; align-items: center; gap: 20px; min-height: 40px; margin: 4px 0 20px; }
.ph h1 { margin: 0; font-size: 24px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ph-acts { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.ph-acts:empty { display: none; }
@media (min-width: 1000px) { .ph { margin-top: 20px; } }
.ph-ib, .ph-acts > .t-date, .ph-acts > .t-new, html .ph-acts > .wl-listbtn { position: relative; flex: none; width: 40px; height: 40px; padding: 0; margin: 0; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--panel); color: var(--text); cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.ph-ib svg, .ph-acts > .t-date svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ph-ib.pri, .ph-acts > .t-new { background: var(--text); border-color: var(--text); color: var(--bg); }
.ph-ib.pri svg, .ph-acts > .t-new svg { width: 20px; height: 20px; stroke-width: 2.4; }
.ph-ib.on, .ph-acts > .t-date.on { border-color: var(--gold); background: var(--gold); color: #fff; }
html .ph-acts > .wl-listbtn span { display: none; }
html .ph-acts > .wl-listbtn .wl-wa-ic { width: 24px; height: 24px; }
.ph-ib .ph-bdg { position: absolute; top: -6px; inset-inline-end: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad, #c0392b); color: #fff; font: 700 11px/18px Manrope, system-ui, sans-serif; text-align: center; }
.ph-ib .ph-bdg[hidden] { display: none; }
@media (hover: hover) {
  .ph-ib:hover, .ph-acts > .t-date:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
  .ph-ib.pri:hover, .ph-acts > .t-new:hover { background: var(--bg); color: var(--text); border-color: var(--text); }
  html .ph-acts > .wl-listbtn:hover { background: #000; border-color: #000; }   /* WhatsApp : noir au survol */
}
/* Info-bulle au survol (souris seulement) */
.ph-acts [data-tip]::after { content: attr(data-tip); position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, -4px); white-space: nowrap; background: var(--text); color: var(--bg);
  font: 600 12.5px/1 Manrope, system-ui, sans-serif; padding: 7px 9px; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s cubic-bezier(.2,.8,.2,1); z-index: 50; }
.ph-acts > :last-child[data-tip]::after { left: auto; right: 0; transform: translateY(-4px); }
@media (hover: hover) { .ph-acts [data-tip]:hover::after { opacity: 1; transform: translate(-50%, 0); } .ph-acts > :last-child[data-tip]:hover::after { transform: none; } }
/* Choix de la vue en pilule, à droite du titre */
.ph-seg { display: inline-flex; height: 40px; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 99px; background: var(--panel); flex: none; }
.ph-seg > button { border: 0; background: none; padding: 0 14px; border-radius: 99px; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; transition: background-color .3s, color .3s; }
.ph-seg > button.on, .ph-seg > button[aria-selected="true"] { background: var(--text); color: var(--bg); }
@media (hover: hover) { .ph-seg > button:not(.on):not([aria-selected="true"]):hover { background: var(--text); color: var(--bg); } }
@media (max-width: 640px) { .ph { gap: 10px; } .ph h1 { flex: 1; } .ph-acts { margin-inline-start: 0; } }
.tsearch-wrap > .ph { margin-bottom: 8px; }   /* + 4 px du bas de la recherche + 4 px du haut des filtres + 4 px = 20 px jusqu'à la barre Statut */
/* Ligne 2 de toutes les pages : filtres de la liste en pastilles, puis tri / filtre / affichage en icônes au bout (owner, 2026-11-29) */
.ph-row { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; min-height: 40px; }
.ph-row > .filters { flex: 1 1 auto; min-width: 0; padding: 0; margin: 0; }
.ph-row .chip-filter { height: 40px; }
.ph-end { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.ph-end:empty { display: none; }
.ph-end [data-tip]::after { content: attr(data-tip); position: absolute; top: calc(100% + 8px); right: 0; white-space: nowrap; background: var(--text); color: var(--bg);
  font: 600 12.5px/1 Manrope, system-ui, sans-serif; padding: 7px 9px; border-radius: 8px; opacity: 0; pointer-events: none; transform: translateY(-4px); transition: opacity .2s, transform .2s cubic-bezier(.2,.8,.2,1); z-index: 50; }
@media (hover: hover) { .ph-end [data-tip]:hover::after { opacity: 1; transform: none; } }
.ph-end .ph-ib.on { background: var(--panel); color: var(--gold); border-color: var(--gold); }
.us-qchip { display: inline-flex; align-items: center; gap: 6px; height: 40px; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.us-qchip svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; flex: none; }
.ph .us-alldb { margin: 0; }
.users-ph .ph { margin-bottom: 20px; }
@media (max-width: 640px) { .users-ph .ph { flex-wrap: wrap; row-gap: 10px; } .ph .us-alldb { order: 3; flex-basis: 100%; } }   /* téléphone : « Toutes les bases » passe sous le titre */
/* Haut de page commun, suite (owner, 2026-11-29) : la ligne passe à la ligne si elle manque de place (fenêtre étroite) ;
   onglets en pilule à la largeur de leur texte ; boutons texte (Enregistrer, Publier…) à 40 px de haut */
.ph { flex-wrap: wrap; row-gap: 14px; }
.ph > .seg { width: auto; margin: 0; flex: none; height: 40px; max-width: 100%; }
.ph > .seg > button { flex: none; width: auto; padding-inline: 14px; white-space: nowrap; }
.ph-acts > .btn, .ph-acts > a.btn { height: 40px; min-height: 40px; margin: 0; padding: 0 16px; border-radius: 12px; display: inline-flex; align-items: center; gap: 8px; }
.ph-acts > .oi-saved:empty { display: none; }
@media (max-width: 640px) { .ph > .seg { order: 3; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; } .ph > .seg::-webkit-scrollbar { display: none; } }
html .ph-acts > .btn, html .ph-acts > a.btn { height: 40px !important; min-height: 40px !important; padding-block: 0 !important; }
.chx-apage .ph + .chx-ed > .chx-ed-d:first-child { margin-top: 0; }
.chx-apage > .ph { margin-bottom: 4px; }   /* + 16 px d'écart de la page = 20 px */
/* Ordinateur : les titres des pages sans ligne d'actions tombent au même endroit que la ligne du titre (centre à 40 px du haut) */
@media (min-width: 1000px) {
  .wrap:has(> .top.top-gs) > .settings > h1:first-child, .wrap:has(> .top.top-gs) .hp > h1.hp-h:first-child { margin-top: 22px; }
  .wrap:has(> .top.top-gs) .bm > .bm-top:first-child { margin-top: 18px; }
  .wrap:has(> .top.top-gs) .chx-apage > .ph:first-child { margin-top: 16px; }
}
@media (max-width: 999px) { .chx-apage > .ph { padding-inline: 16px; } }   /* téléphone : titre de la Charte à 16 px du bord, comme le reste */

/* Étiquette rouge « Backoffice » sous le logo : super admin de la plateforme seulement (boBadge(), app.js, owner 2026-11-29).
   Même rouge en thème clair et sombre, texte blanc. Colonne de gauche sur ordinateur, en-tête sur téléphone. */
.top > a.bo-logo { position: relative; display: block; text-decoration: none; }   /* téléphone : l'étiquette sous le logo ne change pas la ligne du drapeau et des boutons */
.top > a.bo-logo .bo-badge { position: absolute; left: 0; top: calc(100% + 6px); }
@media (max-width: 999px) { .top:has(> a.bo-logo) { padding-bottom: 38px; } }   /* 10 px habituels + étiquette (22 px) et son écart (6 px) */
.bo-badge { display: inline-block; padding: 3px 9px; border-radius: 6px; background: #c0352b; color: #fff; font-size: 12px; font-weight: 800; line-height: 1.35; letter-spacing: .02em; white-space: nowrap; }
@media (min-width: 1000px) {
  #app:has(> .tabs.mode-tabs) .top > a:first-child .bo-badge { display: none; }   /* l'en-tête n'a pas de logo sur ordinateur : l'étiquette est dans la colonne de gauche */
  .tabs.mode-tabs .side-top .side-logo.bo-logo { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-decoration: none; }
  .tabs.mode-tabs .side-top:has(.bo-logo) > :not(.side-logo) { align-self: flex-start; margin-top: -2px; }   /* drapeau et lune à hauteur du logo, pas de l'étiquette */
}

/* Onglet Charte : documents à signer = nombre rouge (ping « charter », owner 2026-11-29) ; jamais le ✓ vert en même temps. */
.tabs button.chr-signed:has(> .tab-badge:not([hidden]))::after { content: none; display: none; }

/* Pastille TEST des cartes Utilisateurs et Utilisateurs › TEST : centrée. `.uc-top b { display: block }` (nom de la carte) la passait en bloc
   et le mot restait collé en haut (owner, 2026-11-29 : « test is not centered »). */
.uc-top b.tm-badge { display: inline-flex; align-items: center; justify-content: center; overflow: visible; }

/* Onglets d'une page sur téléphone, design 9 (phVMenus dans app.js, owner 2026-11-30) : titre « Onglet ▾ » à la place de la barre */
.ph-vt { display: none; }
@media (max-width: 999px) {
  .ph-vseg, .seg.ph-vseg.pr-seg-main { display: none !important; }
  .ph-vt-h { display: none !important; }
  .ph-vt { display: block; flex: 1; min-width: 0; border: 0; background: none; color: var(--text); padding: 0; margin: 0; text-align: start; cursor: pointer; }
  .ph-vt h1 { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; margin: 0; }
  .ph-vt h1 span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ph-vt h1 svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--gold); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s; }
  .ph-vt[aria-expanded="true"] h1 svg { transform: rotate(180deg); }
  .tf-menu.ph-vmenu .tf-opt > span { flex: 1; text-align: start; }
  .ph-vt.dot h1::after { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #d64545; align-self: flex-start; margin-top: 4px; }
  .ph-vdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #d64545; margin-inline-start: 8px; vertical-align: middle; }
}

/* Ordinateur, design 4 (phVSide dans app.js, owner 2026-11-30) : onglets de la page en tuiles 2 × 2 sous l'entrée allumée de la
   colonne de gauche ; la barre d'onglets du haut disparaît et le titre devient le nom de l'onglet ouvert */
.side-sub { display: none; }
@media (min-width: 1000px) {
  .tabs.mode-tabs .side-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 4px 0 8px; flex: none; }
  .tabs.mode-tabs .side-sub button { position: relative; min-height: 54px; padding: 6px 4px; border: 1px solid var(--line); border-radius: 12px; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: var(--muted); font-size: 12.5px; font-weight: 700; line-height: 1.2; text-align: center; transition: background .3s, color .3s, border-color .3s; }
  .tabs.mode-tabs .side-sub button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tabs.mode-tabs .side-sub button span { overflow-wrap: anywhere; }
  html .tabs.mode-tabs .side-sub button.on { border-color: var(--gold); background: var(--gold-soft); color: var(--gold); }
  .tabs.mode-tabs .side-sub .ph-vdot { position: absolute; top: 6px; inset-inline-end: 6px; width: 8px; height: 8px; border-radius: 50%; background: #d64545; margin: 0; }
  html.ph-vside .tabs.mode-tabs { overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain; }   /* beaucoup de tuiles (Utilisateurs) : la colonne défile, Réglages reste atteignable */
  html.ph-vside .tabs.mode-tabs::-webkit-scrollbar { display: none; }
  html.ph-vside .ph-vseg, html.ph-vside .seg.ph-vseg.pr-seg-main { display: none !important; }
  html.ph-vside .ph-vt-h { display: none !important; }
  html.ph-vside .ph-vt { display: block; flex: none; min-width: 0; border: 0; background: none; color: var(--text); padding: 0; margin: 0; text-align: start; pointer-events: none; }
  html.ph-vside .ph-vt h1 { margin: 0; }
  html.ph-vside .ph-vt h1 svg { display: none; }
}
@media (min-width: 1000px) and (hover: hover) {
  html .tabs.mode-tabs .side-sub button:not(.on):hover, html.dt .tabs.mode-tabs .side-sub button:not(.on):not(.tab-signout):hover { background: var(--text); border-color: var(--text); color: var(--bg); }
  html.dt .tabs.mode-tabs .side-sub button:not(.on):not(.tab-signout):hover svg { color: var(--bg); stroke: var(--bg); }
}

/* Astuce « projecteur » sur le menu des onglets, design 1 (phTipShow dans app.js, owner 2026-11-30) : rond clair, reste assombri */
.ph-tip { position: fixed; inset: 0; z-index: 3000; }
@property --phr { syntax: "<length>"; inherits: false; initial-value: 2000px; }
.ph-tip-spot { position: fixed; inset: 0; pointer-events: none; --phr: 2000px; background: radial-gradient(circle at var(--phx) var(--phy), transparent var(--phr), rgba(2, 4, 9, .74) calc(var(--phr) + 1px)); transition: --phr .9s cubic-bezier(.2,.8,.2,1); }
.ph-tip .ph-tip-menu { position: fixed; z-index: 1; pointer-events: none; }
.ph-tip-txt { position: fixed; left: 20px; right: 20px; z-index: 2; color: #fff; opacity: 0; transform: translateY(10px); transition: opacity .4s .55s, transform .4s .55s; }
.ph-tip.on .ph-tip-txt { opacity: 1; transform: none; }
.ph-tip-txt h3 { margin: 0 0 6px; font-size: 19px; font-weight: 800; color: #fff; }
.ph-tip-txt p { margin: 0 0 16px; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .86); }
.ph-tip-txt p b { color: var(--gold); }
.ph-tip-txt .ph-tip-ok { width: auto; min-width: 150px; }
.ph-tip.out { opacity: 0; transition: opacity .35s; }
html .ph-tip .btn.primary.ph-tip-ok, html.dt .ph-tip .btn.primary.ph-tip-ok { background: var(--gold); border-color: var(--gold); color: #fff; transition: background .3s, color .3s, border-color .3s; }
@media (hover: hover) {
  html .ph-tip .btn.primary.ph-tip-ok:hover, html.dt .ph-tip .btn.primary.ph-tip-ok:hover { background: #000; border-color: #000; color: #fff; }
  html:not([data-theme="light"]) .ph-tip .btn.primary.ph-tip-ok:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
}

/* Icône du menu devant le titre de la page, copiée de la colonne de gauche (phIconPaint, app.js ; owner 2026-11-30) */
.ph-ic { display: inline-flex; align-items: center; justify-content: center; width: 1.05em; height: 1.05em; margin-inline-end: .42em; vertical-align: -.16em; color: var(--gold); flex: none; }
.ph-ic svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ph-ic-chr svg path:first-child { fill: #23944a; stroke: #23944a; }
.ph-ic-chr svg path + path { stroke: #fff; }

/* Onglet Vols : écran « bientôt activé », design 1 « Rideau flouté » (viewVolsSoon, app.js ; owner 2026-11-30) */
.vs-stage { position: relative; min-height: 560px; }
.vs-behind { filter: blur(5px) saturate(.6); opacity: .5; pointer-events: none; user-select: none; }
.vs-fake { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-top: 1px solid var(--line); }
.vs-fake b { font-size: 16px; width: 56px; } .vs-fake span { font-weight: 650; } .vs-fake i { margin-inline-start: auto; width: 70px; height: 22px; border-radius: 99px; background: var(--live-soft, #e3f4ea); }
.vs-veil { position: absolute; inset: 0; display: flex; justify-content: center; align-items: flex-start; padding-top: 40px; background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 35%, transparent), color-mix(in srgb, var(--bg) 92%, transparent) 60%); }
.vs-card { width: min(460px, 100%); background: var(--bg); border: 1px solid var(--line); border-radius: 22px; padding: 26px 26px 22px; box-shadow: 0 30px 60px -30px rgba(15, 31, 61, .45); }
.vs-ic { width: 52px; height: 52px; border-radius: 16px; background: color-mix(in srgb, var(--gold) 16%, var(--bg)); color: var(--gold); display: grid; place-items: center; margin-bottom: 14px; }
.vs-ic svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.vs-chip { display: inline-flex; border-radius: 99px; padding: 4px 10px; font-size: 11.5px; font-weight: 700; background: color-mix(in srgb, var(--gold) 16%, var(--bg)); color: color-mix(in srgb, var(--gold) 55%, var(--text)); }
.vs-card h2 { font-size: 22px; line-height: 1.15; letter-spacing: -.02em; margin: 10px 0 8px; }
.vs-card p { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.vs-card ul { list-style: none; display: grid; gap: 9px; margin: 0 0 20px; padding: 0; }
.vs-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; }
.vs-card li svg { width: 18px; height: 18px; flex: none; margin-top: 1px; stroke: #12703f; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 999px) { .vs-veil { padding: 20px 16px 0; } .vs-card { padding: 22px 20px 20px; } .vs-card h2 { font-size: 20px; } .vs-card .btn { width: 100%; } }

/* Compte ChauffApp unique (owner, 2026-12-02) : fiche d'un chauffeur ou d'un comptable relié à son compte ChauffApp, vue par une
   société : identité en lecture seule, en pointillés comme les autres champs non modifiables (openUser, app.js). */
.uf.ac-lock input[readonly]:not([type=hidden]), .uf.ac-lock .ph-box > button, .uf.ac-lock .co-box { border-style: dashed; }
.uf.ac-lock .ph-box, .uf.ac-lock .co-box { pointer-events: none; }
/* Téléphone : 30 px vides sous le logo avant le contenu, sur toutes les pages et tous les rôles (owner, 2026-12-02 : 50 → 30 px).
   15 px déjà là (bas de l'en-tête) + 15 px sous l'en-tête, qui reste collé en haut en défilant. */
@media (max-width: 999px) { html body #app .wrap > .top { margin-bottom: 15px; } }

/* Facturation du chauffeur (owner, 2026-12-02) : nombre rouge des choses à traiter sur l'onglet du bas et sur la pilule Factures,
   qui clignote doucement (le rond respire, sans disparaître). */
/* Owner, 2026-12-04 : « don't like the fading part », « make all other red bubble the same pulse » : l'anneau rouge seul, sans fondu,
   sur tous les nombres rouges (onglets, menu Plus, bulles de discussion et d'avis, listes) ; pas sur les pastilles dorées. */
@keyframes di-badge-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(211, 47, 47, .45); } 50% { box-shadow: 0 0 0 5px rgba(211, 47, 47, 0); } }
.tabs.mode-tabs .tab-badge:not([hidden]):not(.vt-cnt):not([data-badge="unas"]), .di-pill .di-pill-n, .tm-more-n, .dos-count, .rc-badge, .ufb-n, .hp-row-n,
.rc-fab[data-n]::after, .ufb-fab[data-n]::after { animation: di-badge-glow 2.2s ease-in-out infinite; }
.di-pill .di-pill-n { background: var(--red); }
@media (prefers-reduced-motion: reduce) { .tabs.mode-tabs .tab-badge, .di-pill .di-pill-n, .tm-more-n, .dos-count, .rc-badge, .ufb-n, .hp-row-n, .rc-fab[data-n]::after, .ufb-fab[data-n]::after { animation: none; } }

/* Fenêtre de confirmation (appAsk) : un titre avec un long mot sans espace (numéro de facture) passe à la ligne au lieu de déborder, et le
   champ du motif a le même écart au-dessus et au-dessous (14 px), owner 2026-12-02 : « make sure its responsive ». */
.cf-dialog .cf-q { overflow-wrap: anywhere; }
.cf-dialog .cf-why { margin: 14px 0; }
.dvw h2, .dvb-row .dvb-r-main b, .dvb-arow .oi-r-main b { overflow-wrap: anywhere; }   /* même chose pour les numéros des factures chauffeurs (listes, fenêtre « Remplacer ») */

/* Voir le PDF d'une facture chauffeur (dvView, drvbill.js ; owner 2026-12-02) : grande fenêtre sur ordinateur, tiroir sur téléphone. */
html body .overlay > .dialog.dvv, html body .overlay.pop-at > .dialog.dvv { width: min(880px, calc(100vw - 40px)); max-width: min(880px, calc(100vw - 40px)); }
.dvv h2 { overflow-wrap: anywhere; }
.dvv .dvv-frame { margin: 14px 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.dvv iframe { display: block; width: 100%; height: min(72vh, 900px); border: 0; }
.dv-eye svg, .dvv .btns a.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 999px) { html body .overlay > .dialog.dvv { width: 100%; max-width: 100%; } .dvv iframe { height: 66vh; } }
/* Fenêtre de confirmation un peu plus large sur ordinateur (owner, 2026-12-02 : « un peu plus large pour éviter de retourner à la ligne ») */
@media (min-width: 1000px) { .overlay.cf-ov > .dialog.cf-dialog { width: 540px; } }
/* Fenêtre du PDF côté société : « Refuser » et « Marquer payée » à droite, Fermer et Télécharger à gauche (owner, 2026-12-02). Téléphone : les deux actions sur leur propre ligne, pleine largeur. */
.dvv .btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dvv .dvv-acts { display: flex; gap: 10px; margin-inline-start: auto; }
@media (max-width: 999px) { .dvv .dvv-acts { width: 100%; margin: 0; } .dvv .dvv-acts .btn { flex: 1; } .dvv:has(.dvv-acts) iframe { height: 54vh; } }
/* Journal des e-mails, bouton « Global » (Back-Office : toutes les sociétés, owner 2026-12-02) : à droite des filtres ; nom de la société en gras sur chaque ligne. */
.ml-bar .ml-glob { margin: 0 0 0 auto; }
.ml-row .ml-co { font-weight: 700; color: var(--text); }
/* Inscription : champ bien rempli = coche verte à droite et fond vert clair (owner, 2026-12-04 ; team.js viewPartnerRegister, okMark). */
#preg .f-ok { position: relative; }
#preg label.f.f-ok > input, #preg .ph-f.f-ok input[name="phone_local"] { background-color: var(--green-soft) !important; padding-right: 40px; }
#preg .f-ok::after { content: ""; position: absolute; right: 12px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; pointer-events: none;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
/* Inscription : sécurité du mot de passe sous le champ (owner, 2026-12-04 ; team.js pwMeterHtml / pwMeterSet). 4 traits remplis selon le niveau
   (rouge Faible, or Moyenne et Bonne, vert Élevée), le niveau en mots, puis les 4 critères qui passent au vert une fois remplis. */
#preg .pw-meter { margin-top: 8px; }
#preg .pw-top { display: flex; align-items: center; gap: 10px; min-height: 18px; }
#preg .pw-bar { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
#preg .pw-bar i { height: 4px; border-radius: 4px; background: var(--line); transition: background .3s; }
#preg .pw-lvl { font-size: 12.5px; font-weight: 600; white-space: nowrap; color: var(--muted); }
#preg .pw-meter[data-l="0"] .pw-bar i:nth-child(-n+1) { background: var(--red); }
#preg .pw-meter[data-l="1"] .pw-bar i:nth-child(-n+2), #preg .pw-meter[data-l="2"] .pw-bar i:nth-child(-n+3) { background: var(--gold); }
#preg .pw-meter[data-l="3"] .pw-bar i { background: var(--green); }
#preg .pw-meter[data-l="0"] .pw-lvl { color: var(--red); }
#preg .pw-meter[data-l="3"] .pw-lvl { color: var(--green); }
#preg .pw-crit { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
#preg .pw-crit li { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); transition: color .3s; }
#preg .pw-crit li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line); flex: none; transition: background .3s, box-shadow .3s; }
#preg .pw-crit li.on { color: var(--text); }
#preg .pw-crit li.on::before { box-shadow: none; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 10px no-repeat; }
/* Œil « Afficher le mot de passe » à la connexion (owner, 2026-12-04, pwEyes dans app.js) */
.pw-wrap { position: relative; display: block; }
.pw-wrap > input { padding-inline-end: 48px !important; }
.pw-eye { position: absolute; top: 50%; inset-inline-end: 6px; transform: translateY(-50%); width: 36px; height: 36px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; transition: background-color .3s, color .3s; }
.pw-eye svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .pw-eye:hover { background: var(--text); color: var(--bg); } }

/* Création du compte et de la société (viewSetupAdmin, tenants.js) : même jauge de sécurité du mot de passe que l'inscription chauffeur (owner, 2026-12-05) */
.su4-form .pw-meter { margin-top: 8px; }
.su4-form .pw-top { display: flex; align-items: center; gap: 10px; min-height: 18px; }
.su4-form .pw-bar { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.su4-form .pw-bar i { height: 4px; border-radius: 4px; background: var(--line); transition: background .3s; }
.su4-form .pw-lvl { font-size: 12.5px; font-weight: 600; white-space: nowrap; color: var(--muted); }
.su4-form .pw-meter[data-l="0"] .pw-bar i:nth-child(-n+1) { background: var(--red); }
.su4-form .pw-meter[data-l="1"] .pw-bar i:nth-child(-n+2), .su4-form .pw-meter[data-l="2"] .pw-bar i:nth-child(-n+3) { background: var(--gold); }
.su4-form .pw-meter[data-l="3"] .pw-bar i { background: var(--green); }
.su4-form .pw-meter[data-l="0"] .pw-lvl { color: var(--red); }
.su4-form .pw-meter[data-l="3"] .pw-lvl { color: var(--green); }
.su4-form .pw-crit { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.su4-form .pw-crit li { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); transition: color .3s; }
.su4-form .pw-crit li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line); flex: none; transition: background .3s, box-shadow .3s; }
.su4-form .pw-crit li.on { color: var(--text); }
.su4-form .pw-crit li.on::before { box-shadow: none; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 10px no-repeat; }
.su4-form .pw-meter { margin: -4px 0 6px; }
