/* Atelia · console · page « Gestes de l'équipe » (screens/gestes-equipe.js, gestes-tiroirs-*.js, gestes-reglages.js).
   Tiroir plus large que l'ordinaire (l'aperçu avant → après se lit en entier) ; tout tient à 390 px sans défilement de côté. */
.ge-corps { display: flex; flex-direction: column; gap: 14px; }
.ge-onglets { display: flex; gap: 6px; border-bottom: 1px solid var(--line); }
.ge-onglet { background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 14px; font: inherit; font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer; }
.ge-onglet.on { color: var(--navy); border-bottom-color: var(--accent); }
.ge-nouveau { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; align-items: end; }
.ge-ouvrir { display: flex; align-items: flex-end; }
.ge-champ { display: flex; flex-direction: column; gap: 6px; min-width: 0; border: 0; margin: 0; padding: 0; }
.ge-lib { font-size: 13px; font-weight: 700; color: var(--navy); padding: 0; }
.ge-aide { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.ge-mention { font-size: 12px; color: var(--blue); }
.ge-in { width: 100%; min-width: 0; box-sizing: border-box; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 14px; color: var(--navy); background: var(--surface); }
.ge-in:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.ge-zone { resize: vertical; min-height: 96px; }
.ge-num { max-width: 140px; }
.ge-heure { width: auto; max-width: 130px; }
.ge-heure-texte { width: 6.5em; }   /* heure saisie HH:mm (24:00 admis) */
.ge-ligne { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; min-width: 0; }
.ge-sous { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.ge-sous .ge-in { width: auto; }
.ge-unite { font-size: 13px; color: var(--muted); }
.ge-compteur { align-self: flex-end; font-size: 12px; color: var(--muted); }
.ge-compteur.trop { color: var(--rouge); font-weight: 700; }
.ge-stepper { display: inline-flex; align-items: center; gap: 6px; }
.ge-stepper .ge-in { max-width: 90px; text-align: center; }
.ge-seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; max-width: 100%; }
.ge-seg-b { background: var(--surface); border: 0; border-right: 1px solid var(--line); padding: 8px 12px; font: inherit; font-size: 13px; font-weight: 600; color: var(--navy); cursor: pointer; }
.ge-seg-b:last-child { border-right: 0; }
.ge-seg-b.on { background: var(--navy); color: #fff; }
.ge-seg-b:disabled { color: var(--muted); cursor: not-allowed; background: var(--surface-2); }
.ge-bascule { position: relative; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--navy); cursor: pointer; }
.ge-bascule input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ge-glissiere { width: 40px; height: 22px; border-radius: 11px; background: var(--line); position: relative; flex: none; transition: background .15s; }
.ge-glissiere::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.ge-bascule input:checked + .ge-glissiere { background: var(--accent); }
.ge-bascule input:checked + .ge-glissiere::after { left: 21px; }
.ge-bascule input:focus-visible + .ge-glissiere { outline: 2px solid var(--blue); outline-offset: 2px; }
.ge-case { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: var(--navy); cursor: pointer; }
.ge-case input { margin-top: 3px; flex: none; }
.ge-radios { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.ge-puce-date { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12px; color: var(--navy); white-space: nowrap; }
.ge-ul { margin: 0; padding-left: 18px; }
.ge-table-zone { position: relative; overflow-x: auto; width: 0; min-width: 100%; max-width: 100%; }   /* width 0 : le tableau ne pousse pas la colonne de la page (il défile dans sa zone) */
.ge-table td { vertical-align: top; }
.ge-etat { white-space: nowrap; }
.ge-sr { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Tiroir d'un geste */
.drawer:has(.ge-tiroir) { width: min(640px, 100vw); max-width: 100vw; }
.ge-tiroir { display: flex; flex-direction: column; gap: 14px; font-size: 13.5px; color: var(--ink-2); min-width: 0; }
.ge-tete { display: flex; flex-direction: column; gap: 6px; }
.ge-meta { font-size: 13px; color: var(--muted); }
.ge-etiquettes { display: flex; flex-wrap: wrap; gap: 6px; }
.ge-etiquettes .st { white-space: normal; }
.ge-captures { font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ge-form { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ge-erreurs:empty { display: none; }
.ge-erreurs { padding: 10px 12px; border-radius: 10px; background: var(--rouge-bg); border: 1px solid var(--rouge-bd); color: var(--rouge); font-size: 13px; }
.ge-pied { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.ge-lu { font-size: 13px; }
.ge-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.ge-carte { position: relative; border: 1px solid var(--line); border-radius: var(--r-sm, 12px); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ge-carte.exclue { opacity: .6; }
.ge-carte-l { font-size: 12.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.ge-menu { position: absolute; top: 6px; right: 8px; }
.ge-menu summary { cursor: pointer; list-style: none; font-weight: 800; color: var(--navy); padding: 0 6px; }
.ge-menu summary::-webkit-details-marker { display: none; }
.ge-menu-l { position: absolute; right: 0; z-index: 2; display: flex; flex-direction: column; gap: 4px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.ge-articles, .ge-conges { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow: auto; }
.ge-conge { justify-content: space-between; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.ge-plages { display: flex; flex-direction: column; gap: 10px; }
.ge-plage-l { border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.ge-plage-l > .btn { align-self: flex-start; }
.ge-semaine { display: flex; flex-direction: column; gap: 8px; }
.ge-jour { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.ge-jour-t { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.ge-creneaux { display: flex; flex-direction: column; gap: 6px; }
.ge-etapes { margin: 0; padding-left: 20px; display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 12.5px; color: var(--muted); }
.ge-argent { border: 1px solid var(--orange-bd); background: var(--orange-bg); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.ge-argent-l { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.ge-dropzone { border: 2px dashed var(--line); border-radius: 10px; padding: 14px; }
.ge-suivi-tete { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-weight: 700; color: var(--navy); }
.ge-apercu { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: start; }
.ge-col { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-width: 0; overflow-wrap: anywhere; }
.ge-col-t { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); margin-bottom: 6px; }
.ge-fleche { align-self: center; font-size: 20px; color: var(--muted); }
.ge-dl { display: grid; grid-template-columns: minmax(90px, 40%) 1fr; gap: 4px 10px; margin: 0; }
.ge-dl > div { display: contents; }
.ge-dl dt { font-size: 12px; color: var(--muted); }
.ge-dl dd { margin: 0; color: var(--navy); }
.ge-empreinte code, .ge-code { font-size: 11.5px; word-break: break-all; }
.ge-visa-p { margin: 8px 0 0; font-size: 13px; overflow-wrap: anywhere; }
.ge-visa-cible { margin-top: 10px; font-size: 13px; }
.ge-visa-cible dd { overflow-wrap: anywhere; }
.ge-reg-tete { font-size: 15px; color: var(--navy); }
.ge-reg-plafond { font-size: 13.5px; color: var(--ink-2); margin-bottom: 8px; }
.ge-reg-form { align-items: flex-end; }
.ge-reg-form .ge-champ { flex: 0 1 200px; }
.ge-pj { max-width: 80px; }
.ge-zone-reglages { display: flex; flex-direction: column; gap: 14px; }
.ge-reg-etab { max-width: 420px; }
/* Envois réels du 28/10 : avant / après, bon ou avoir, publicité Deliveroo, envoi à vérifier et geste inverse. */
.ge-avap { margin-top: 8px; }
.ge-retirees, .ge-main, .ge-pub, .ge-ligne-plus, .ge-issue { margin-top: 8px; font-size: 13px; overflow-wrap: anywhere; }
.ge-ecart { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.ge-bandeau-rouge { color: var(--rouge); background: var(--rouge-bg); border: 1px solid var(--rouge-bd); font-weight: 700; }
.ge-trois { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: start; }
.ge-ecart-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.ge-inverse { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.ge-inverse li { overflow-wrap: anywhere; }
/* Puce d'état longue (« Envoyé, mais pas vu tel quel chez la plateforme : à vérifier ») : elle passe à la ligne sur un téléphone. */
.ge-etat { white-space: normal; max-width: 100%; }
/* 30/10 (nouvelle console, tiroirs F01 à F05) : titre des garde-fous d'argent (Callout title), premier envoi (Warning callout),
   puce « Sans budget chez Deliveroo » (Chip) au-dessus de la dépense prévue, avant / après dans la fenêtre de confirmation
   (Comparison table), relevé de page qui manque (Inline message). Couleurs : jetons de tokens.css. */
.ge-argent-t { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; color: var(--orange); }
.ge-premier { border: 1px solid var(--orange-bd); background: var(--orange-bg); color: var(--ink-2, var(--navy)); border-radius: 10px; padding: 9px 12px; font-size: 13px; overflow-wrap: anywhere; }
.ge-sans-budget { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: -4px; }
.ge-sans-budget .st, .ge-etiquettes .st, .ge-captures .st { white-space: normal; }
.ge-visa-avap { margin-top: 10px; }
.ge-visa-avap .ge-apercu, .ge-visa-avap .ge-recap { font-size: 13px; }
#modal .ge-visa-avap .ge-col { padding: 8px 10px; }
#modal .ge-argent { margin-top: 10px; }
#modal .ge-premier { margin-top: 10px; }
/* Jusqu'à 900 px, le corps du tiroir ne réserve plus la hauteur de la barre d'actions posée en bas (responsive.css) : le tiroir
   d'une action la réserve lui-même, pour que son dernier bouton (« Remettre l'état d'avant »…) ne passe pas sous « Fermer ». */
@media (max-width: 900px) {
  .drawer .db .ge-tiroir { padding-bottom: 96px; }
}

@media (max-width: 640px) {
  .ge-apercu { grid-template-columns: 1fr; }
  .ge-fleche { transform: rotate(90deg); justify-self: center; }
  .ge-trois { grid-template-columns: 1fr; }
  .ge-ecart-actions .btn { flex: 1 1 auto; }
  .ge-pied { justify-content: stretch; }
  .ge-pied .btn { flex: 1 1 auto; }
  .ge-num { max-width: none; }
  .ge-seg { display: flex; }
  .ge-seg-b { flex: 1 1 auto; }
  /* Tableaux de la page (suivi, ouverture du réel) : une carte par ligne, « libellé : valeur » (data-label). */
  .ge-table-zone { width: auto; min-width: 0; overflow-x: visible; }
  .ge-table thead { display: none; }
  .ge-table, .ge-table tbody, .ge-table tr, .ge-table td { display: block; width: 100%; box-sizing: border-box; }
  .ge-table tr { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin-bottom: 10px; }
  .ge-table td { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 5px 0; border: 0; min-width: 0; }
  .ge-table td[data-label]:not([data-label=""])::before { content: attr(data-label); font-size: 12px; font-weight: 700; color: var(--muted); }
  .ge-table td .ge-seg { width: 100%; }
}
/* 02/11/2026 (compte rendu 33, point (r3)) : « Moins » à la plus petite valeur permise, « Plus » à la plus grande : un bouton qui ne peut plus rien changer est désactivé et le paraît
   (atténué, pointillé, curseur « interdit », sans survol), comme les autres boutons désactivés (.btn:disabled) ; couleurs de la charte, claires comme sombres. */
.ge-stepper .btn[data-step]:disabled, .ge-stepper .btn[data-step][aria-disabled="true"] { opacity: .45; cursor: not-allowed; color: var(--muted); background: var(--surface-2); border-style: dashed; }
.ge-stepper .btn[data-step]:disabled:hover { background: var(--surface-2); }
