/* Onglet « Gérald » du Bureau : page de l'intervenant externe (direction et admin). */
.gerald-root{max-width:1280px;margin:0 auto;padding:0 0 40px}
.gerald-hero{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;padding:24px 0 18px}
.gerald-hero h1{margin:.2rem 0 .7rem;font-size:clamp(2rem,4vw,3.4rem);line-height:1;letter-spacing:-.04em}
.gerald-hero-actions{display:flex;align-items:flex-end;gap:10px}
.gerald-puces{display:flex;flex-wrap:wrap;gap:8px}
.gerald-puce{display:inline-flex;align-items:center;padding:5px 12px;border-radius:999px;font-size:13px;font-weight:600;border:1px solid var(--line);background:var(--soft)}
.gerald-puce.ok{background:#34c75920;border-color:#34c75960;color:#1f7a37}
.gerald-puce.attention{background:#ff9f0a22;border-color:#ff9f0a66;color:#9a5b00}
.gerald-puce.alerte{background:#ff3b3020;border-color:#ff3b3060;color:#c4271d}
:root[data-theme=dark] .gerald-puce.ok{color:#7ee2a0}:root[data-theme=dark] .gerald-puce.attention{color:#ffc56b}:root[data-theme=dark] .gerald-puce.alerte{color:#ff8a80}
.gerald-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:12px 0 4px}
.gerald-kpi{padding:18px 20px;border:1px solid var(--line);border-radius:20px;background:var(--surface);box-shadow:var(--shadow);display:flex;flex-direction:column;gap:4px}
.gerald-kpi strong{font-size:2rem;line-height:1.1;font-variant-numeric:tabular-nums;letter-spacing:-.02em}.gerald-kpi span{color:var(--muted);font-size:14px}
.gerald-section{padding:24px;margin:18px 0;border:1px solid var(--line);border-radius:24px;background:var(--surface);box-shadow:var(--shadow)}
.gerald-section-tete{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px 20px;margin-bottom:16px}
.gerald-section-tete h2{margin:0;font-size:1.5rem;letter-spacing:-.02em}.gerald-section-tete>p{margin:0;flex:1 1 380px}
.gerald-semaine-nav{display:flex;align-items:center;gap:8px;flex-wrap:wrap;width:100%}.gerald-semaine-titre{margin:0 auto 0 0;font-size:15px}
.gerald-semaine{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}
.gerald-jour{min-height:150px;padding:10px;border-radius:16px;background:var(--soft);border:1px solid var(--line)}
.gerald-jour.aujourdhui{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
.gerald-jour h3{margin:0 0 8px;font-size:13px;text-transform:capitalize;color:var(--muted);font-weight:600}
.gerald-creneau{display:flex;flex-direction:column;gap:2px;padding:9px 10px;margin-bottom:8px;border-radius:12px;background:var(--surface);border-left:4px solid #8E24AA;font-size:13px;line-height:1.35}
.gerald-creneau.rdv{border-left-color:#7a8a99}.gerald-creneau strong{font-size:13.5px}.gerald-heure{font-weight:700;font-variant-numeric:tabular-nums}
.gerald-creneau button.link{align-self:flex-start;padding:0;min-height:0;border:0;background:none;color:var(--accent);font-size:12.5px;text-decoration:underline}
.gerald-vide{margin:4px 0}
.gerald-segments{display:flex;flex-wrap:wrap;gap:6px;padding:5px;border-radius:14px;background:var(--soft);border:1px solid var(--line);width:max-content;max-width:100%;margin-bottom:12px}
.gerald-segments button{border:0;background:transparent;border-radius:10px;padding:8px 14px;font-weight:600}
.gerald-segments button[aria-selected=true]{background:var(--surface);box-shadow:0 1px 3px rgb(0 0 0 / .12)}
.gerald-liste{display:flex;flex-direction:column}
.gerald-ligne{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(160px,.6fr) auto;gap:16px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line)}
.gerald-ligne:last-child{border-bottom:0}.gerald-ligne>div:first-child{display:flex;flex-direction:column;gap:3px}
.gerald-quand{font-variant-numeric:tabular-nums;font-weight:600}
.gerald-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center;justify-content:flex-end}
.gerald-confier{margin-top:18px;padding-top:16px;border-top:1px solid var(--line);display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px}.gerald-confier h3{width:100%;margin:0}
.gerald-confier .gerald-field{flex:1 1 420px}
.gerald-field{display:flex;flex-direction:column;gap:6px;font-weight:600;font-size:14px;margin:8px 0}
.gerald-field :is(input,select,textarea){font:inherit;font-weight:400;padding:10px 12px;border-radius:12px;border:1px solid var(--line);background:var(--surface);color:inherit}
.gerald-retours{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:14px}
.gerald-retour{padding:16px;border-radius:18px;border:1px solid var(--line);background:var(--soft)}
.gerald-retour-non-transmis{border-color:var(--error);background:var(--error-bg)}
.gerald-retour-tete{display:flex;justify-content:space-between;gap:10px;align-items:baseline}.gerald-retour p{margin:6px 0}
.gerald-cr{white-space:pre-wrap;line-height:1.5}
.gerald-photos{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.gerald-photos figure{margin:0;width:110px}
.gerald-photos img{width:110px;height:110px;object-fit:cover;border-radius:12px;display:block;background:var(--line)}.gerald-photos figcaption{font-size:12px;color:var(--muted)}
.gerald-calages{margin-top:18px}.gerald-calages h3{margin:0 0 6px}.gerald-calages p{margin:4px 0;color:var(--muted)}
.gerald-table{overflow-x:auto}
.gerald-factures{width:100%;border-collapse:collapse;font-size:14px}
.gerald-factures th{text-align:left;font-size:12.5px;font-weight:600;color:var(--muted);padding:8px 10px;border-bottom:1px solid var(--line)}
.gerald-factures td{padding:12px 10px;border-bottom:1px solid var(--line);vertical-align:top}
.gerald-factures td:nth-child(3),.gerald-factures td:nth-child(4){font-variant-numeric:tabular-nums;white-space:nowrap}
.gerald-factures td>span.muted{display:block;font-size:12.5px;margin-top:4px}
.gerald-factures tr.statut-annulee{opacity:.6}
.gerald-factures .gerald-actions{justify-content:flex-start}
.gerald-dialog form{min-width:min(460px,80vw)}.gerald-dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}
@media(max-width:900px){.gerald-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.gerald-semaine{grid-template-columns:repeat(2,minmax(0,1fr))}.gerald-ligne{grid-template-columns:1fr}.gerald-actions{justify-content:flex-start}.gerald-hero{flex-direction:column;align-items:flex-start}}
.gerald-root button,.gerald-dialog button{width:auto;flex:0 0 auto}.gerald-confier button{align-self:flex-end;margin-bottom:8px}.gerald-actions .primary{min-height:36px}
.gerald-attendu strong{display:block;font-variant-numeric:tabular-nums}.gerald-attendu span{display:block;font-size:12.5px;margin-top:3px}
.gerald-ok{color:#1f7a37}.gerald-ecart{color:#b25e00;font-weight:600}:root[data-theme=dark] .gerald-ok{color:#7ee2a0}:root[data-theme=dark] .gerald-ecart{color:#ffc56b}
/* Interventions passées (12 mois) : missions closes et RDV d'agenda passés */
.gerald-passees-compteur{margin:0;font-weight:700;font-variant-numeric:tabular-nums;color:var(--accent)}
.gerald-passees-outils{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px 16px;margin-bottom:6px}
.gerald-passees-outils .gerald-segments{margin-bottom:8px}
.gerald-passees-recherche{flex:1 1 320px;margin:0 0 8px}
.gerald-passees-etat{margin:4px 0 8px;min-height:1.2em}
.gerald-passees-liste{display:flex;flex-direction:column}
.gerald-passee{display:grid;grid-template-columns:88px minmax(0,1fr) minmax(190px,.42fr);gap:16px;padding:14px 0;border-bottom:1px solid var(--line);align-items:start}
.gerald-passee:last-child{border-bottom:0}
.gerald-passee-date{display:flex;flex-direction:column;gap:2px;font-variant-numeric:tabular-nums}.gerald-passee-date strong{font-size:1.05rem}
.gerald-passee-corps{display:flex;flex-direction:column;gap:4px;min-width:0}
.gerald-passee-tete{display:flex;flex-wrap:wrap;gap:6px}
.gerald-passee-tete .gerald-puce{font-size:12px;padding:3px 10px}
.gerald-passee-libelle{font-size:15px}
.gerald-passee-cr,.gerald-passee-motif{margin:4px 0 0;line-height:1.5;white-space:pre-wrap}
.gerald-passee-motif{color:var(--muted)}
.gerald-passee-description{margin-top:4px}.gerald-passee-description summary{cursor:pointer;color:var(--accent);font-size:13.5px}
.gerald-passee-description .texte-lisible{margin-top:6px;padding:10px 12px;border-radius:12px;background:var(--soft);font-size:13.5px;line-height:1.5}
.gerald-passee-cote{display:flex;flex-direction:column;align-items:flex-end;gap:6px;text-align:right}
.gerald-passee-facture{font-size:13px;font-variant-numeric:tabular-nums}
.gerald-passees .gerald-repliable-corps>button{margin-top:12px}
@media(max-width:900px){.gerald-passee{grid-template-columns:1fr;gap:8px}.gerald-passee-date{flex-direction:row;gap:8px}.gerald-passee-cote{align-items:flex-start;text-align:left}}
/* Téléphone : factures en cartes (une par facture, libellé devant chaque valeur) ; la page ne défile jamais en largeur */
.gerald-root,.gerald-section,.gerald-table{min-width:0;max-width:100%}
.gerald-table{overflow-x:auto;overscroll-behavior-x:contain}
@media(max-width:700px){
  .gerald-factures,.gerald-factures tbody,.gerald-factures tr,.gerald-factures td{display:block;width:100%}
  .gerald-factures thead{display:none}
  .gerald-factures tr{padding:12px 14px;margin-bottom:10px;border:1px solid var(--line);border-radius:16px;background:var(--soft)}
  .gerald-factures td{display:grid;grid-template-columns:minmax(84px,34%) minmax(0,1fr);gap:8px;padding:6px 0;border-bottom:0;overflow-wrap:anywhere}
  .gerald-factures td::before{content:attr(data-libelle);color:var(--muted);font-size:12.5px}
  .gerald-factures td>*{min-width:0}
  .gerald-factures .gerald-actions{justify-content:flex-start}
  .gerald-section{padding:16px}
}
.gerald-field{min-width:0;max-width:100%}.gerald-field :is(input,select,textarea){min-width:0;max-width:100%;width:100%;box-sizing:border-box}
@media(max-width:700px){.gerald-confier .gerald-field{flex:1 1 100%}.gerald-hero-actions{flex-wrap:wrap;max-width:100%}}
.gerald-kpi{min-width:0}.gerald-kpi strong{overflow-wrap:anywhere}
@media(max-width:700px){.gerald-kpis{gap:10px}.gerald-kpi{padding:14px}.gerald-kpi strong{font-size:1.35rem}}
.gerald-retours{grid-template-columns:repeat(auto-fill,minmax(min(320px,100%),1fr))}.gerald-retour{min-width:0;overflow-wrap:anywhere}
@media(max-width:420px){.gerald-semaine{grid-template-columns:minmax(0,1fr)}.gerald-jour{min-height:0}.gerald-kpis{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
/* Relier un RDV d'agenda à un dossier (Kenji, 26/10/2026) */
.gerald-case{flex-direction:row;align-items:flex-start;gap:10px;font-weight:400}.gerald-case input{width:22px;height:22px;margin-top:1px;flex:none}
.gerald-passee-cote .gerald-relier{width:auto;min-height:40px;padding:8px 14px}
/* Factures et règlements (décisions de Kenji du 27/10/2026) : situation, règlements constatés, rapprochement */
.gerald-debut{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:6px 0}
.gerald-bandeau{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;padding:12px 16px;margin:10px 0;border-radius:16px;border:1px solid #ff9f0a66;background:#ff9f0a18}
.gerald-bandeau strong{color:#9a5b00}:root[data-theme=dark] .gerald-bandeau strong{color:#ffc56b}
.gerald-kpis.gerald-situation-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
.gerald-kpi.alerte strong{color:#c4271d}:root[data-theme=dark] .gerald-kpi.alerte strong{color:#ff8a80}
.gerald-situation-actions{justify-content:flex-end}
.gerald-reglements{margin-top:16px}.gerald-reglements h3{margin:0 0 6px}
.gerald-reglement{padding:12px 14px;margin:8px 0;border:1px solid var(--line);border-radius:14px;background:var(--soft);overflow-wrap:anywhere}
.gerald-reglement p{margin:4px 0}.gerald-reglement.annule{opacity:.6}
.gerald-reglement-tete{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 12px}.gerald-reglement-tete strong{font-variant-numeric:tabular-nums}
.gerald-date-inconnue{font-weight:600;color:#9a5b00}:root[data-theme=dark] .gerald-date-inconnue{color:#ffc56b}
.gerald-factures td>span:not(.gerald-puce){display:block;font-size:12.5px;margin-top:4px}
.gerald-factures td>.gerald-puce{margin:4px 4px 0 0}
.gerald-a-verifier{color:#9a5b00;font-weight:600}:root[data-theme=dark] .gerald-a-verifier{color:#ffc56b}
.gerald-reglement-factures{border:1px solid var(--line);border-radius:14px;padding:8px 12px;margin:8px 0;min-width:0}
.gerald-reglement-ligne,.gerald-proposition{padding:6px 0;border-bottom:1px solid var(--line)}
.gerald-reglement-ligne:last-child,.gerald-proposition:last-child{border-bottom:0}
.gerald-proposition .hint{margin:0 0 4px 32px}
.gerald-dialog h3{margin:14px 0 4px;font-size:15px}
@media(max-width:700px){
  .gerald-kpis.gerald-situation-kpis{grid-template-columns:minmax(0,1fr)}
  .gerald-factures td>*{grid-column:2}
  .gerald-situation-actions{justify-content:flex-start}
  .gerald-proposition .hint{margin-left:0}
}
/* Blocs repliables (demande de Kenji du 28/10/2026, 18 h 43) : titre-bouton, résumé sur la même ligne, chevron */
.gerald-repliable{padding-top:14px;padding-bottom:14px}
.gerald-repliable .gerald-section-tete{margin-bottom:0}
.gerald-repliable.ouvert{padding-bottom:24px}.gerald-repliable.ouvert .gerald-section-tete{margin-bottom:12px}
.gerald-repliable h2{flex:1 1 100%;min-width:0}
.gerald-replier{display:flex;align-items:center;gap:10px;width:100%;min-height:48px;padding:6px 4px;margin:0;border:0;border-radius:12px;background:none;color:inherit;font:inherit;font-size:inherit;font-weight:inherit;letter-spacing:inherit;text-align:left}
.gerald-replier:hover{background:var(--soft)}
.gerald-replier-titre{flex:0 1 auto;min-width:0;overflow-wrap:anywhere}
.gerald-replier-resume{min-width:0;color:var(--muted);font-size:1rem;font-weight:600;letter-spacing:0;font-variant-numeric:tabular-nums;white-space:pre-wrap}
.gerald-chevron{flex:none;width:10px;height:10px;margin:0 4px 0 2px;border-right:2.5px solid currentColor;border-bottom:2.5px solid currentColor;transform:rotate(-45deg);transition:transform var(--duree-courte) var(--courbe);opacity:.6}
.gerald-repliable.ouvert .gerald-chevron{transform:rotate(45deg)}
.gerald-repliable-aide{margin:0 0 12px}
.gerald-repliable-corps>.link{margin:0 0 8px}
.gerald-mails-plus{margin-top:12px}
@media(max-width:700px){
  .gerald-repliable{padding-top:10px;padding-bottom:10px}
  .gerald-replier{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:10px;row-gap:2px;align-items:center;font-size:1.25rem}
  .gerald-chevron{grid-row:1}
  .gerald-replier-resume{grid-column:2;font-size:.9rem}
}
@media(prefers-reduced-motion:reduce){.gerald-chevron{transition:none}}

/* ------------------------------------------------------------------------------------------------
   Page épurée en sous-onglets (demande de Kenji du 04/11/2026) : Activité · Missions · Factures · Cellule.
   Sections sans ombre, explications derrière un « ? », avancement des missions en quatre étapes.
   ------------------------------------------------------------------------------------------------ */
.gerald-root{--etape-0:#dbe6de;--etape-1:#a8c1b1;--etape-2:#6e917d;--etape-3:#486354;--attention-fond:#fff4e0;--attention-texte:#8a5200}
:root[data-theme=dark] .gerald-root{--etape-0:#3a4840;--etape-1:#557162;--etape-2:#86a693;--etape-3:#bbd1c2;--attention-fond:#3d3020;--attention-texte:#ffc56b}
.gerald-hero{align-items:flex-end;padding:20px 0 14px}
.gerald-hero h1{font-size:clamp(1.9rem,3.2vw,2.6rem);margin:0 0 10px;letter-spacing:-.035em}
.gerald-hero .gerald-puces{gap:6px;align-items:center}
.gerald-hero .gerald-puce{font-size:12.5px;padding:3px 10px;font-weight:500}
.gerald-role{font-size:14px;color:var(--muted);margin-right:6px}
.gerald-hero-actions .gerald-field{margin:0}
.gerald-hero-actions .gerald-field :is(select){padding:8px 12px}
/* Sous-onglets */
.gerald-onglets{display:flex;gap:28px;border-bottom:1px solid var(--line);margin:4px 0 24px;padding:0 2px}
.gerald-root .gerald-onglet{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:10px 2px;margin:0 0 -1px;border:0;border-radius:0;background:none;color:var(--muted);font:inherit;font-size:15.5px;font-weight:600;box-shadow:none;cursor:pointer}
.gerald-root .gerald-onglet:hover{color:var(--ink)}
.gerald-root .gerald-onglet.actif{color:var(--ink);box-shadow:inset 0 -2.5px 0 var(--accent)}
.gerald-root .gerald-onglet:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:6px}
.gerald-pastille{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:var(--attention-fond);color:var(--attention-texte);font-size:12px;font-weight:700;font-variant-numeric:tabular-nums;box-sizing:border-box}
.gerald-panneau:focus{outline:none}
.gerald-panneau[hidden]{display:none}
/* Sections : plus d'air, moins de bordures */
.gerald-panneau>.gerald-section{box-shadow:none;padding:24px 28px;margin:0 0 20px;border-radius:22px}
.gerald-section-tete{align-items:center;margin-bottom:14px}
.gerald-titre-groupe{display:flex;align-items:center;gap:10px;min-width:0}
.gerald-section-tete h2{font-size:1.28rem;display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 12px}
.gerald-resume{font-size:.92rem;font-weight:500;letter-spacing:0;color:var(--muted);font-variant-numeric:tabular-nums}
.gerald-resume:empty{display:none}
.gerald-root .gerald-aide{display:inline-grid;place-items:center;width:24px;height:24px;min-height:0;padding:0;border-radius:50%;border:1px solid var(--line);background:none;color:var(--muted);font-size:12.5px;font-weight:700;line-height:1;cursor:pointer}
.gerald-root .gerald-aide[aria-expanded=true],.gerald-root .gerald-aide:hover{color:var(--ink);border-color:var(--muted)}
.gerald-aide-texte{max-width:72ch;margin:-4px 0 16px;padding:10px 14px;border-radius:12px;background:var(--inset);color:var(--muted);font-size:14px;line-height:1.5}
/* Avancement : quatre étapes, du plus clair au plus soutenu */
.gerald-etapes{list-style:none;margin:6px 0 0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.gerald-etape{display:flex;flex-direction:column;gap:2px;padding-top:14px;border-top:7px solid var(--etape-0)}
.gerald-etape:first-child{border-top-left-radius:4px}.gerald-etape:last-child{border-top-right-radius:4px}
.gerald-etape.e1{border-top-color:var(--etape-1)}.gerald-etape.e2{border-top-color:var(--etape-2)}.gerald-etape.e3{border-top-color:var(--etape-3)}
.gerald-etape strong{font-size:2.5rem;line-height:1.05;font-weight:650;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.gerald-etape span{font-size:14px;color:var(--muted)}
.gerald-etape.vide strong{color:var(--muted);opacity:.55}
.gerald-a-regarder{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0 0}
.gerald-root .gerald-signal{min-height:34px;padding:6px 14px;border-radius:999px;border:0;background:var(--attention-fond);color:var(--attention-texte);font-size:13.5px;font-weight:600}
.gerald-root .gerald-signal:hover{filter:brightness(.97)}
.gerald-suivi{list-style:none;margin:20px 0 0;padding:0;border-top:1px solid var(--line)}
.gerald-suivi-ligne{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 24px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}
.gerald-suivi-ligne:last-child{border-bottom:0}
.gerald-suivi-texte{display:flex;flex-direction:column;gap:2px;min-width:0}
.gerald-suivi-texte .muted{font-size:13.5px}
.gerald-root .gerald-suivi-titre{align-self:flex-start;min-height:0;padding:0;border:0;background:none;color:inherit;font:inherit;font-weight:600;text-align:left;overflow-wrap:anywhere;cursor:pointer}
.gerald-root .gerald-suivi-titre:hover{text-decoration:underline}
.gerald-suivi-etat{display:flex;align-items:center;gap:12px;min-width:220px}
.gerald-suivi-libelle{font-size:13.5px;font-weight:600}.gerald-suivi-libelle.alerte{color:#c4271d}:root[data-theme=dark] .gerald-suivi-libelle.alerte{color:#ff8a80}
.gerald-piste{display:inline-flex;gap:3px;flex:none}
.gerald-piste-point{width:20px;height:6px;border-radius:3px;background:var(--line)}
.gerald-piste-point.passe{background:var(--etape-1)}
.gerald-piste-point.actuel{background:var(--etape-3)}
.gerald-suivi-vide{margin:18px 0 0}
/* Planning */
.gerald-planning .gerald-semaine-nav{width:auto;gap:6px}
.gerald-planning .gerald-semaine-titre{margin:0 10px 0 0;font-weight:600;color:var(--muted);font-size:14px}
.gerald-root .gerald-fleche{min-width:36px;min-height:36px;padding:0 10px;font-size:18px;line-height:1}
.gerald-root .gerald-cette-semaine{min-height:36px;padding:6px 12px}
.gerald-jour{min-height:120px;background:var(--inset);border-color:transparent}
.gerald-jour.aujourdhui{background:var(--soft)}
.gerald-creneau{border-left-width:3px;box-shadow:none}
/* Calages : journal compact */
.gerald-journal{list-style:none;margin:0;padding:0}
.gerald-journal li{display:grid;grid-template-columns:110px minmax(0,1fr);gap:12px;padding:8px 0;border-bottom:1px solid var(--line);font-size:14px}
.gerald-journal li:last-child{border-bottom:0}
.gerald-journal-date{color:var(--muted);font-variant-numeric:tabular-nums}
.gerald-root .gerald-voir-tout{margin-top:8px}
/* Retours non transmis : en tête, en évidence */
.gerald-retours-section .gerald-retours{margin-bottom:8px}
/* Situation : trois chiffres alignés, sans cartes */
.gerald-chiffres{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:4px 0 14px}
.gerald-chiffres-4{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:12px}
.gerald-chiffre{display:flex;flex-direction:column;gap:4px;padding:2px 20px;border-left:1px solid var(--line);min-width:0}
.gerald-chiffre:first-child{padding-left:0;border-left:0}
.gerald-chiffre strong{font-size:1.65rem;line-height:1.15;font-weight:650;letter-spacing:-.02em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.gerald-chiffre span{font-size:13px;color:var(--muted)}
.gerald-chiffre.alerte strong{color:#c4271d}:root[data-theme=dark] .gerald-chiffre.alerte strong{color:#ff8a80}
.gerald-situation .gerald-debut{font-size:14px;color:var(--muted)}
.gerald-situation .gerald-bandeau{padding:10px 14px;font-size:14px}
.gerald-reglements h3{font-size:15px}
/* Factures : actions secondaires sous « Plus » */
.gerald-plus-actions{display:inline-block}
.gerald-plus-actions summary{list-style:none;display:inline-flex;align-items:center;min-height:36px;padding:6px 14px;border-radius:12px;border:1px solid var(--line);font-weight:600;font-size:14px;cursor:pointer;user-select:none}
.gerald-plus-actions summary::-webkit-details-marker{display:none}
.gerald-plus-actions summary::after{content:'';width:6px;height:6px;margin-left:8px;border-right:1.8px solid currentColor;border-bottom:1.8px solid currentColor;transform:rotate(45deg) translateY(-2px);opacity:.6}
.gerald-plus-actions[open] summary{background:var(--inset)}
.gerald-plus-menu{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.gerald-factures tbody tr:hover{background:color-mix(in srgb,var(--inset) 60%,transparent)}
/* Dépendance : discrète en bas de l'onglet Factures */
.gerald-dependance .gerald-chiffre strong{font-size:1.25rem}
@media(max-width:900px){
  .gerald-chiffres-4{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:14px}
  .gerald-chiffres-4 .gerald-chiffre:nth-child(3){padding-left:0;border-left:0}
}
@media(max-width:700px){
  .gerald-onglets{display:grid;grid-template-columns:repeat(4,minmax(0,auto));justify-content:space-between;gap:4px;margin-bottom:16px}
  .gerald-root .gerald-onglet{font-size:14.5px;gap:5px;padding:10px 0}
  .gerald-pastille{min-width:18px;height:18px;font-size:11px;padding:0 5px}
  .gerald-panneau>.gerald-section{padding:18px 16px;margin-bottom:14px;border-radius:18px}
  .gerald-etapes{gap:4px}
  .gerald-etape{padding-top:10px;border-top-width:6px}
  .gerald-etape strong{font-size:1.7rem}
  .gerald-etape span{font-size:12px;line-height:1.3}
  .gerald-suivi-ligne{grid-template-columns:minmax(0,1fr)}
  .gerald-suivi-etat{min-width:0}
  .gerald-chiffres{grid-template-columns:minmax(0,1fr);gap:12px}
  .gerald-chiffre{padding:0;border-left:0}
  .gerald-journal li{grid-template-columns:minmax(0,1fr);gap:2px}
  .gerald-planning .gerald-semaine-nav{width:100%}
  .gerald-planning .gerald-semaine-titre{flex:1 1 100%;margin:0 0 4px}
  .gerald-hero{padding-top:12px}
}
@media(max-width:360px){.gerald-onglets{gap:2px}.gerald-root .gerald-onglet{font-size:13.5px}}
.gerald-factures td.gerald-actions-cellule{min-width:200px}
.gerald-factures .gerald-actions-cellule .gerald-actions{justify-content:flex-start}
.gerald-factures td.gerald-date-facture{white-space:nowrap}
.gerald-factures td:first-child strong{white-space:nowrap}
.gerald-root button.link{min-height:0;padding:2px 0;border:0;background:none;color:var(--accent);font-weight:600;font-size:inherit;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.gerald-situation .gerald-reglement{background:none;padding:12px 16px}
.gerald-panneau>.gerald-repliable{box-shadow:none;border-radius:22px;margin:0 0 20px;padding-left:24px;padding-right:24px}
.gerald-panneau>.gerald-repliable h2{font-size:1.28rem}
.gerald-panneau>.gerald-repliable .gerald-replier-resume{font-size:.92rem;font-weight:500}
.gerald-retours-section .gerald-retours{grid-template-columns:minmax(0,1fr)}
.gerald-retours-section .gerald-retour-non-transmis{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 20px;align-items:start}
.gerald-retours-section .gerald-retour-non-transmis>*{grid-column:1}
.gerald-retours-section .gerald-retour-non-transmis>button{grid-column:2;grid-row:1 / span 3;align-self:center}
@media(max-width:700px){.gerald-retours-section .gerald-retour-non-transmis{grid-template-columns:minmax(0,1fr)}.gerald-retours-section .gerald-retour-non-transmis>button{grid-column:1;grid-row:auto;justify-self:start}.gerald-factures td.gerald-actions-cellule{min-width:0}.gerald-factures td:first-child strong{white-space:normal}}
@media(max-width:700px){.gerald-hero{align-items:stretch;gap:14px}.gerald-hero-actions{justify-content:flex-start;align-items:flex-end}.gerald-hero-actions .gerald-field{flex:1 1 auto}.gerald-root .gerald-signal{font-size:13px;padding:5px 12px;min-height:32px}}
@media(max-width:700px){.gerald-situation-actions{width:100%;flex-wrap:wrap}.gerald-chiffre strong{font-size:1.4rem}}
/* « C'est bon, je valide » (09/11/2026) : réponse de l'intervenant sur un chantier à venir du planning */
.gerald-validation{align-self:flex-start;margin-top:3px;padding:2px 8px;border-radius:999px;font-size:11.5px;font-weight:650;line-height:1.35;overflow-wrap:anywhere;background:var(--inset);color:var(--muted)}
.gerald-validation.est-validee{background:var(--succes-doux,#ecf7f0);color:var(--succes-encre,#135a37)}
.gerald-validation.est-pas_possible{background:var(--attention-doux,#fdf2e6);color:var(--attention-encre,#8f4a07)}
