/* Page « Cellule » du Bureau : dossiers de réparation rapide, trame « Confier à Gérald » (28/10/2026). */
.cellule-root{max-width:1180px;margin:0 auto;padding:0 0 40px}
.cellule-hero{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;padding:4px 0 14px}
.cellule-hero h1{margin:.2rem 0 .5rem;font-size:clamp(2rem,4vw,3.2rem);line-height:1;letter-spacing:-.04em}
.cellule-lead{margin:0;max-width:62ch}
.cellule-hero button{width:auto;flex:0 0 auto}
.cellule-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:8px 0 14px}
.cellule-kpi{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:auto;min-height:0;padding:14px 16px;border:1px solid var(--line);border-radius:18px;background:var(--surface);color:var(--ink);box-shadow:var(--shadow);text-align:left;cursor:pointer}
.cellule-kpi strong{font-size:1.9rem;line-height:1.05;font-variant-numeric:tabular-nums;letter-spacing:-.02em}
.cellule-kpi span{color:var(--muted);font-size:13.5px;font-weight:500}
.cellule-kpi.actif{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent),var(--shadow)}
.cellule-kpi.a-faire strong{color:#b35c00}
:root[data-theme=dark] .cellule-kpi.a-faire strong{color:#ffc56b}
.cellule-bandeau{margin:0 0 12px;padding:10px 14px;border-radius:14px;background:#ff3b3018;border:1px solid #ff3b3050;color:#b3261e;font-weight:600;font-size:14px}
:root[data-theme=dark] .cellule-bandeau{color:#ff8a80}
.cellule-liste{display:flex;flex-direction:column;gap:10px}
.cellule-ligne{display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,340px);gap:16px;padding:16px 18px;border:1px solid var(--line);border-radius:20px;background:var(--surface);box-shadow:var(--shadow);border-left:5px solid var(--line)}
.cellule-ligne.etat-a_confier,.cellule-ligne.etat-echec,.cellule-ligne.etat-rendue{border-left-color:#ff9f0a}
.cellule-ligne.etat-a_caler,.cellule-ligne.etat-a_valider{border-left-color:#7a8a99}
.cellule-ligne.etat-calee,.cellule-ligne.etat-en_cours{border-left-color:#34c759}
.cellule-ligne.etat-faite{border-left-color:#34c75966;opacity:.92}
.cellule-ligne-texte{display:flex;flex-direction:column;gap:3px;min-width:0}
.cellule-nom{font-size:16px;letter-spacing:-.01em;overflow-wrap:anywhere}
.cellule-a-faire{margin:4px 0 2px;font-size:14.5px;line-height:1.4;overflow-wrap:anywhere}
.cellule-meta{color:var(--muted);font-size:12.5px;font-variant-numeric:tabular-nums}
.cellule-ligne-etat{display:flex;flex-direction:column;align-items:flex-end;gap:6px;text-align:right}
.cellule-puce{display:inline-block;padding:5px 11px;border-radius:999px;font-size:13px;font-weight:600;border:1px solid var(--line);background:var(--soft);line-height:1.3}
.cellule-puce.ok{background:#34c75920;border-color:#34c75960;color:#1f7a37}
.cellule-puce.attention{background:#ff9f0a22;border-color:#ff9f0a66;color:#9a5b00}
.cellule-puce.alerte{background:#ff3b3020;border-color:#ff3b3060;color:#c4271d}
.cellule-puce.discret{font-weight:500;font-size:12px;padding:3px 9px}
:root[data-theme=dark] .cellule-puce.ok{color:#7ee2a0}:root[data-theme=dark] .cellule-puce.attention{color:#ffc56b}:root[data-theme=dark] .cellule-puce.alerte{color:#ff8a80}
.cellule-remu{font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums}
.cellule-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:2px}
.cellule-root button,.cellule-dialog button{width:auto;flex:0 0 auto}
.cellule-ligne-etat button.link,.cellule-actions button.link{padding:0 2px;min-height:32px;border:0;background:none;color:var(--accent);text-decoration:underline;font-size:13.5px}
.cellule-dialog{width:min(640px,calc(100vw - 24px))}
.cellule-dialog-corps{display:flex;flex-direction:column;gap:10px}
.cellule-form{display:flex;flex-direction:column;gap:12px}
.cellule-dossier{margin:0;font-weight:600}
.cellule-champ{display:flex;flex-direction:column;gap:4px;font-size:14px;min-width:0}
.cellule-champ>span{font-weight:600}
.cellule-champ small{font-size:12.5px}
.cellule-champ :is(input,select,textarea),.cellule-materiel textarea{width:100%;min-width:0;max-width:100%;box-sizing:border-box;font:inherit;font-weight:400;padding:10px 12px;border-radius:12px;border:1px solid var(--line);background:var(--surface);color:inherit}
.cellule-champ textarea,.cellule-materiel textarea{resize:vertical;line-height:1.4}
.cellule-champ select{min-height:44px}
.cellule-rangee{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.cellule-materiel{margin:0;padding:10px 12px 12px;border:1px solid var(--line);border-radius:14px;display:flex;flex-direction:column;gap:8px}
.cellule-materiel legend{font-weight:600;font-size:14px;padding:0 4px}
.cellule-radios{display:flex;gap:18px}
.cellule-radios label{display:inline-flex;align-items:center;gap:6px;font-size:14px}
.cellule-radios input{width:auto;margin:0}
.cellule-agenda{padding:10px 12px;border-radius:14px;background:#ffd60a1c;border:1px solid #e0b40055;display:flex;flex-direction:column;gap:8px}
.cellule-agenda-texte{margin:0;font-size:13.5px;line-height:1.4}
.cellule-garde{margin:0;padding:10px 12px;border-radius:12px;background:var(--soft);font-size:13px;line-height:1.4}
.cellule-confirmation{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.cellule-coche{margin:0;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:#34c75922;color:#1f7a37;font-size:22px;font-weight:700}
.cellule-confirmation-titre{margin:0;font-size:16px;font-weight:600}
.cellule-confirmation dl{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:6px 14px;margin:0;font-size:14px}
.cellule-confirmation dt{color:var(--muted)}.cellule-confirmation dd{margin:0;overflow-wrap:anywhere}
@media (max-width:860px){.cellule-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.cellule-ligne{grid-template-columns:1fr}.cellule-ligne-etat{align-items:flex-start;text-align:left}.cellule-actions{justify-content:flex-start}}
@media (max-width:600px){.cellule-hero{flex-direction:column;align-items:stretch}.cellule-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.cellule-kpi:first-child{grid-column:1 / -1}.cellule-rangee{grid-template-columns:1fr}.cellule-ligne{padding:14px}}
/* Sous-onglet de la page de l'intervenant (28/10/2026, 22 h 06) : frise, retour de l'intervenant, validation */
.gerald-cellule .cellule-root{padding-top:0}
.cellule-hero h2{margin:.1rem 0 .4rem;font-size:1.45rem;letter-spacing:-.02em}
.cellule-frise{display:flex;flex-wrap:wrap;gap:0;margin:8px 0 2px;padding:0;list-style:none;counter-reset:etape}
.cellule-etape{position:relative;display:flex;flex-direction:column;gap:1px;flex:1 1 140px;min-width:0;padding:6px 10px 6px 22px;font-size:12.5px;line-height:1.3;color:var(--muted)}
.cellule-etape::before{content:'';position:absolute;left:4px;top:11px;width:10px;height:10px;border-radius:50%;border:2px solid var(--line);background:var(--surface);box-sizing:border-box}
.cellule-etape::after{content:'';position:absolute;left:14px;right:0;top:15px;height:2px;background:var(--line)}
.cellule-etape:last-child::after{display:none}
.cellule-etape.faite{color:var(--ink)}
.cellule-etape.faite::before{background:#34c759;border-color:#34c759}
.cellule-etape.faite::after{background:#34c75980}
.cellule-etape.alerte::before{background:#ff9f0a;border-color:#ff9f0a}
.cellule-etape-nom{font-weight:700}
.cellule-etape-detail{overflow-wrap:anywhere}
.cellule-retour{margin:6px 0 2px;padding:10px 12px;border-radius:14px;background:var(--soft);border:1px solid var(--line);font-size:14px;display:flex;flex-direction:column;gap:4px}
.cellule-retour strong{font-size:13.5px}.cellule-retour p{margin:0;overflow-wrap:anywhere}
.cellule-photos{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}
.cellule-photos figure{margin:0;width:120px}.cellule-photos img{width:120px;height:90px;object-fit:cover;border-radius:10px;border:1px solid var(--line)}
.cellule-photos figcaption{font-size:12px;color:var(--muted);text-align:center}
.cellule-citation{margin:0;padding:8px 12px;border-left:3px solid var(--line);color:var(--muted);font-style:italic}
.cellule-ligne.etat-validee{border-left-color:#34c759}
@media (max-width:600px){.cellule-etape{flex:1 1 100%;padding-left:22px}.cellule-etape::after{left:8px;right:auto;top:22px;width:2px;height:calc(100% - 10px)}}
/* Espace agence (09/11/2026) : demande déposée par l'agence, comptes agences */
.cellule-espace-agence{margin-left:8px;font-size:11px;vertical-align:middle}
.cellule-comptes-agences{margin-left:auto;align-self:flex-start}
.cellule-comptes-liste{display:flex;flex-direction:column;gap:8px;margin:14px 0 20px}
.cellule-compte{display:flex;gap:10px;align-items:center;flex-wrap:wrap;border:1px solid var(--line);border-radius:14px;padding:12px 14px}
.cellule-compte>div{display:flex;flex-direction:column;gap:3px;flex:1;min-width:200px}
.cellule-compte.inactif{opacity:.65}
.cellule-compte .muted{overflow-wrap:anywhere}
/* Compte rendu pour l'agence (09/11/2026, 15 h 54) */
.cellule-cr-etat{margin:0 0 14px}
.cellule-cr-brut{margin:6px 0 20px;padding:12px 14px;border-left:3px solid var(--line);border-radius:10px;background:var(--inset);color:var(--ink);white-space:pre-line;font-size:14px}
.cellule-cr-agence-fenetre h3{margin:0}
.cellule-nouvelle-agence{margin-top:24px;padding-top:18px;border-top:1px solid var(--line,rgba(0,0,0,.12))}
.cellule-note{margin:0 0 12px;padding:12px 14px;border-radius:14px;background:color-mix(in srgb,var(--ink,#111) 5%,transparent);border:1px solid var(--line,rgba(0,0,0,.12));font-size:14px;display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.cellule-note p{margin:0}
.cellule-invitation-date{display:block;font-size:13px}
.cellule-invitation-apercu{margin:0 0 12px;display:grid;gap:6px}
.cellule-invitation-apercu div{display:grid;grid-template-columns:64px minmax(0,1fr);gap:8px}
.cellule-invitation-apercu dt{font-weight:600;color:var(--muted,#666)}
.cellule-invitation-apercu dd{margin:0;overflow-wrap:anywhere}
.cellule-invitation-texte{margin:0 0 14px;padding:14px;border-radius:14px;background:var(--surface,#fff);box-shadow:inset 0 0 0 1px var(--line,rgba(0,0,0,.12));white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:14px;line-height:1.5;max-height:46vh;overflow:auto}
.cellule-invitation-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}

/* « Agence voit » (note de Grok du 30/11/2026) : l'étape que l'agence lit en ce moment dans son espace */
.cellule-agence-voit{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:8px}
.cellule-av-titre{font-size:12.5px;color:var(--muted)}
.cellule-root .cellule-av-pastille,.cellule-av-pastille{display:inline-flex;align-items:center;gap:7px;min-height:30px;padding:4px 12px;border:0;border-radius:999px;background:color-mix(in srgb,var(--accent) 12%,transparent);color:var(--accent);font-size:13px;font-weight:600;box-shadow:none;cursor:pointer;text-align:left}
.cellule-av-pastille::before{content:"";flex:none;width:7px;height:7px;border-radius:50%;background:currentColor}
.cellule-agence-voit.decalage .cellule-av-pastille{background:#ff9f0a26;color:#9a5b00}
:root[data-theme=dark] .cellule-agence-voit.decalage .cellule-av-pastille{color:#ffc56b}
.cellule-av-phrase{flex-basis:100%;margin:2px 0 0;font-size:14px;color:var(--ink)}
