:root {
  --turquoise: #00BFE1;
  --turquoise-fonce: #006B80;   /* liens et textes turquoise : 6,2:1 sur blanc, 5,6:1 sur turquoise pâle (audit UX 31/10/2026 ; avant #007C94, 4,45:1 sur pâle) */
  --turquoise-pale: #E6F8FC;
  --action: #00728A;          /* boutons et pastilles avec texte blanc : contraste 5,5:1 (le turquoise de marque reste pour les accents) */
  --action-fonce: #005A6D;
  --encre: #13243A;
  --texte: #2B3A4E;
  --gris: #5B697D;            /* texte secondaire : 5,6:1 sur blanc, 5,25:1 sur le fond (audit UX 31/10/2026 ; avant #6B7A8F, 4,37:1) */
  --ligne: #E3E8EF;
  --fond: #F6F8FB;
  --blanc: #fff;
  --vert: #0F7550; --vert-pale: #E5F5EE;   /* 5,1:1 sur vert pâle (avant #14865A, 4,06:1) */
  --orange: #B4610B; --orange-pale: #FDF1E3;
  --rouge: #B42318; --rouge-pale: #FDECEA;
  --rayon: 10px;
  --ombre: 0 1px 2px rgba(19,36,58,.06), 0 4px 16px rgba(19,36,58,.06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fond); color: var(--texte);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--turquoise-fonce); }
h1, h2, h3 { color: var(--encre); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 1.75rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }

/* En-tête */
.entete { background: var(--blanc); border-bottom: 1px solid var(--ligne); }
.entete-in { max-width: 1200px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--encre); font-weight: 800; letter-spacing: .06em; }
.logo img { height: 34px; }
.logo img.logo-cabinet { height: 36px; width: auto; display: block; }
.logo .sous-logo { padding-left: 12px; margin-left: 2px; border-left: 1px solid var(--ligne); line-height: 1.2; }
.logo-page { display: block; width: 260px; max-width: 70%; height: auto; margin: 4px auto 22px; }
.logo-hero { margin: 0 0 22px; width: 300px; }
.apercu-entete .marque-cabinet img { height: 22px; width: auto; display: block; }
.logo .marque { font-size: 1.15rem; }
.logo .marque b { color: var(--turquoise); }
.logo .sous { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .12em; color: var(--gris); text-transform: uppercase; }
.entete nav { margin-left: auto; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.entete nav a { text-decoration: none; color: var(--texte); padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: .95rem; }
.entete nav a:hover, .entete nav a.actif { background: var(--turquoise-pale); color: var(--turquoise-fonce); }
.entete nav form { margin: 0; }
.badge-nb { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--action); color: #fff; font-size: .75rem; font-weight: 700; text-align: center; margin-left: 4px; }

main { max-width: 1200px; margin: 0 auto; padding: 32px 20px 64px; }
.etroit { max-width: 480px; margin: 0 auto; }
.code-connexion { font-size: 1.6rem; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; }
.moyen { max-width: 760px; margin: 0 auto; }

.pied { border-top: 1px solid var(--ligne); color: var(--gris); font-size: .85rem; }
.pied-in { max-width: 1200px; margin: 0 auto; padding: 20px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
.pied a { color: var(--gris); }

/* Cartes */
.carte { background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 24px; margin-bottom: 20px; }
.carte > h2:first-child, .carte > h3:first-child { margin-top: 0; }
.grille { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stat { background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 18px 20px; text-decoration: none; color: inherit; display: block; box-shadow: var(--ombre); }
.stat .n { font-size: 2rem; font-weight: 800; color: var(--encre); line-height: 1.1; }
.stat .l { color: var(--gris); font-size: .9rem; }
.stat.accent { border-left: 4px solid var(--turquoise); }

/* Accueil */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 24px 0 8px; }
.hero h1 { font-size: 2.3rem; }
.hero h1 span { color: var(--turquoise); }
.hero .lead { font-size: 1.1rem; color: var(--gris); max-width: 34em; }
.etapes { list-style: none; padding: 0; margin: 0; counter-reset: e; }
.etapes li { counter-increment: e; position: relative; padding: 4px 0 18px 48px; }
.etapes li::before { content: counter(e); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--turquoise-pale); color: var(--turquoise-fonce); font-weight: 800; display: grid; place-items: center; }
.etapes b { color: var(--encre); display: block; }
.atouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.atouts .carte { margin: 0; }
@media (max-width: 820px) { .hero, .atouts { grid-template-columns: 1fr; } .hero h1 { font-size: 1.8rem; } }

/* Formulaires */
label { display: block; font-weight: 600; color: var(--encre); font-size: .92rem; margin-bottom: 6px; }
.champ { margin-bottom: 16px; }
.aide { color: var(--gris); font-size: .85rem; font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], input[type=time], select, textarea {
  width: 100%; padding: 11px 12px; border: 1px solid #CBD3DE; border-radius: 8px; font: inherit; color: var(--encre); background: #fff;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--turquoise); box-shadow: 0 0 0 3px rgba(0,191,225,.2); }
textarea { min-height: 80px; resize: vertical; }
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .deux { grid-template-columns: 1fr; } }
.case { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--texte); }
.case input { margin-top: 4px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 8px; border: 1px solid transparent; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; background: var(--action); color: #fff; }
.btn:hover { background: var(--action-fonce); }
.btn.second { background: #fff; color: var(--encre); border-color: #CBD3DE; }
.btn.second:hover { border-color: var(--turquoise); color: var(--turquoise-fonce); }
.btn.danger { background: #fff; color: var(--rouge); border-color: #F3C2BD; }
.btn.lien { background: none; color: var(--texte); padding: 8px 12px; font-weight: 500; }
.btn.lien:hover { background: var(--turquoise-pale); color: var(--turquoise-fonce); }
.btn.petit { padding: 6px 12px; font-size: .88rem; }
.btn.plein { width: 100%; }

.alerte { padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; border: 1px solid; }
.alerte.ok { background: var(--vert-pale); border-color: #B5E2CC; color: #0D5C3E; }
.alerte.erreur { background: var(--rouge-pale); border-color: #F3C2BD; color: #8A1C12; }
.alerte.info { background: var(--turquoise-pale); border-color: #B3EAF5; color: #075E70; }
.alerte ul { margin: 0; padding-left: 18px; }

/* Zone de dépôt */
.depot-zone { border: 2px dashed #9FDDEA; border-radius: 12px; background: var(--turquoise-pale); padding: 28px; text-align: center; cursor: pointer; transition: .15s; }
.depot-zone.survol { border-color: var(--turquoise); background: #D5F3FA; }
.depot-zone .icone { width: 44px; height: 44px; margin: 0 auto 8px; color: var(--turquoise-fonce); }
.depot-zone strong { color: var(--encre); display: block; font-size: 1.05rem; }
.depot-zone input[type=file] { display: none; }
.liste-fichiers { list-style: none; padding: 0; margin: 12px 0 0; text-align: left; }
.liste-fichiers li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; background: #fff; border: 1px solid var(--ligne); border-radius: 8px; margin-bottom: 6px; font-size: .92rem; }
.liste-fichiers .t { color: var(--gris); white-space: nowrap; }

/* Tableaux */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--gris); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--ligne); white-space: nowrap; }
td { padding: 12px; border-bottom: 1px solid var(--ligne); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.num { text-align: right; font-variant-numeric: tabular-nums; }
.vide { color: var(--gris); text-align: center; padding: 32px; }

.statut { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.statut.nouveau { background: var(--turquoise-pale); color: #075E70; }
.statut.en_cours { background: #EEF0FF; color: #3B44A8; }
.statut.traite { background: var(--vert-pale); color: var(--vert); }
.statut.a_completer { background: var(--orange-pale); color: var(--orange); }
.statut.en_attente { background: var(--orange-pale); color: var(--orange); }
.statut.actif { background: var(--vert-pale); color: var(--vert); }
.statut.refuse, .statut.desactive { background: #F1F3F6; color: var(--gris); }

.fichiers-mini { list-style: none; padding: 0; margin: 6px 0 0; font-size: .86rem; }
.fichiers-mini li { margin: 2px 0; }
.note { background: var(--orange-pale); border-left: 3px solid var(--orange); padding: 8px 12px; border-radius: 6px; font-size: .9rem; margin-top: 8px; }
.meta { color: var(--gris); font-size: .86rem; }
.barre { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; margin-bottom: 16px; }
.barre .champ { margin: 0; min-width: 180px; }
.titre-ligne { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.titre-ligne h1 { margin: 0; }
details.edition summary { cursor: pointer; color: var(--turquoise-fonce); font-weight: 600; }
details.edition[open] { background: var(--fond); padding: 12px; border-radius: 8px; }
.inline { display: inline; }
code { background: #F1F3F6; padding: 2px 6px; border-radius: 4px; font-size: .88em; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* Mobile : tableaux empilés en cartes, en-tête compact */
@media (max-width: 640px) {
  main { padding: 20px 14px 48px; }
  .carte { padding: 18px; }
  .entete-in { padding: 10px 14px; gap: 10px; }
  .logo .sous { display: none; }
  .logo img.logo-cabinet { height: 23px; }
  .entete nav { flex-wrap: nowrap; }
  .entete nav a, .entete nav .btn { white-space: nowrap; }
  .entete nav .btn.petit { padding: 7px 10px; font-size: .85rem; }
  .entete nav { gap: 0; min-width: 0; }
  .logo-hero { width: 220px; }
  .entete nav a, .entete nav .btn.lien { padding: 6px 8px; font-size: .9rem; }
  table.empile thead { display: none; }
  table.empile, table.empile tbody, table.empile tr, table.empile td { display: block; width: 100%; }
  table.empile tr { border: 1px solid var(--ligne); border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; }
  table.empile td { border: 0; padding: 4px 0; }
  table.empile td[data-l]::before { content: attr(data-l); display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--gris); font-weight: 700; }
  table.empile td.vide { text-align: center; }
}
.entete nav a.btn, .entete nav a.btn:hover { color: #fff; background: var(--action); } .entete nav a.btn:hover { background: var(--action-fonce); }

/* ---------- GED ---------- */
.trois { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 14px; }
@media (max-width: 760px) { .trois { grid-template-columns: 1fr; } }
.ged { display: grid; grid-template-columns: 230px 1fr; gap: 24px; align-items: start; }
.ged-exercices { background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 8px; box-shadow: var(--ombre); position: sticky; top: 16px; }
.ged-exercices a { display: flex; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--texte); font-weight: 500; font-size: .93rem; }
.ged-exercices a:hover { background: var(--fond); }
.ged-exercices a.actif { background: var(--turquoise-pale); color: var(--turquoise-fonce); font-weight: 700; }
.nb { display: inline-block; min-width: 24px; padding: 0 7px; border-radius: 10px; background: #EEF1F5; color: var(--gris); font-size: .78rem; font-weight: 700; text-align: center; line-height: 20px; }
.actif .nb { background: var(--action); color: #fff; }
.onglets { display: flex; gap: 4px; border-bottom: 1px solid var(--ligne); margin-bottom: 16px; }
.onglets a { padding: 10px 14px; text-decoration: none; color: var(--gris); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.onglets a.actif { color: var(--encre); border-color: var(--turquoise); }
.ged-actions { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--ligne); flex-wrap: wrap; }
.ged-actions .case { margin: 0; font-size: .9rem; }
.ged-actions #zip { margin-left: auto; }
.ged-actions #zip[aria-disabled] { opacity: .45; pointer-events: none; }
.ged-table td.sel, .ged-table th:first-child { width: 36px; padding-left: 16px; }
.ged-table td.actions { white-space: nowrap; text-align: right; padding-right: 16px; }
.ged-table td.actions form { margin-left: 6px; }
.doc { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--encre); font-weight: 600; word-break: break-word; }
.doc:hover span:last-child { color: var(--turquoise-fonce); text-decoration: underline; }
.ext { flex: none; width: 38px; height: 26px; border-radius: 5px; background: var(--turquoise-pale); color: var(--turquoise-fonce); font-size: .66rem; font-weight: 800; display: grid; place-items: center; letter-spacing: .03em; }
.pagination { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 8px; }
@media (max-width: 860px) {
  .ged { grid-template-columns: 1fr; gap: 12px; }
  .ged-exercices { position: static; display: flex; overflow-x: auto; gap: 6px; padding: 6px; }
  .ged-exercices a { white-space: nowrap; flex: none; }
}
@media (max-width: 640px) {
  .ged-table tr { position: relative; }
  .ged-table td.sel { position: absolute; right: 8px; top: 10px; width: auto; padding: 0; }
  .ged-table td.actions { text-align: left; padding-top: 8px; }
  .ged-table td[data-l=""]:empty, .ged-table td[data-l=""]::before { display: none; }
}
details.publier > summary { cursor: pointer; list-style: none; }
details.publier > summary::-webkit-details-marker { display: none; }
details.publier > summary h2::before { content: "+ "; color: var(--turquoise); }
details.publier[open] > summary h2::before { content: "– "; }
.ged-table td[data-l="Document"] { min-width: 240px; }
.doc { word-break: normal; overflow-wrap: anywhere; }
.onglets a { white-space: nowrap; }
@media (max-width: 640px) { .ged-table td[data-l="Document"] { min-width: 0; padding-right: 28px; } .onglets a { padding: 10px 8px; font-size: .92rem; } }
@media (min-width: 641px) {
  .ged-table td.actions { width: 1%; }
  .ged-table td.actions .btn { display: flex; width: 100%; }
  .ged-table td.actions form { display: block; margin: 6px 0 0; }
  .ged-table td[data-l="Statut"] { min-width: 170px; }
}
.ged { grid-template-columns: 230px minmax(0, 1fr); }
.ged > section { min-width: 0; }
.ged-table td[data-l="Document"] { min-width: 200px; }
@media (max-width: 860px) { .ged { grid-template-columns: minmax(0, 1fr); } }
.ged { grid-template-columns: 200px minmax(0, 1fr); gap: 20px; }
@media (min-width: 641px) { .ged-table td[data-l="Statut"] { min-width: 150px; } .ged-table th, .ged-table td { padding-left: 10px; padding-right: 10px; } }
@media (max-width: 860px) { .ged { grid-template-columns: minmax(0, 1fr); } }
.ged-exercices a { align-items: center; } .ged-exercices .nb { flex: none; }

/* ---------- Écritures / Génération Experts ---------- */
.statut.ec-proposee { background: var(--orange-pale); color: var(--orange); }
.statut.ec-envoyee { background: #EEF0FF; color: #3B44A8; }
.statut.ec-integree { background: var(--vert-pale); color: var(--vert); }
.statut.ec-exportee { background: var(--vert-pale); color: var(--vert); }
.statut.ec-partielle, .statut.ec-rejetee, .statut.ec-erreur { background: var(--rouge-pale); color: var(--rouge); }
.statut.ec-refusee { background: #F1F3F6; color: var(--gris); }
.ecriture-grille { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .ecriture-grille { grid-template-columns: minmax(0, 1fr); } }
table.lignes td, table.lignes th { padding: 10px 14px; }
table.lignes tfoot td { border-top: 2px solid var(--ligne); background: var(--fond); }
.piece iframe { width: 100%; height: 560px; border: 1px solid var(--ligne); border-radius: 8px; background: #fff; }
.piece img { max-width: 100%; border: 1px solid var(--ligne); border-radius: 8px; }
.actions-ecriture { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.actions-ecriture .refus { display: flex; gap: 8px; flex: 1; min-width: 260px; margin: 0; }
pre.rapport { white-space: pre-wrap; font-size: .8rem; margin: 8px 0 0; }
.logo { white-space: nowrap; } .entete nav { gap: 2px; } .entete nav a { padding: 8px 10px; }

/* ---------- Portée (mes dossiers / tous), fiche dossier, nouveau dossier ---------- */
.portee { display: inline-flex; border: 1px solid #CBD3DE; border-radius: 8px; overflow: hidden; background: #fff; }
.portee a { padding: 7px 14px; font-size: .88rem; font-weight: 600; color: var(--gris); text-decoration: none; }
.portee a + a { border-left: 1px solid #CBD3DE; }
.portee a.actif { background: var(--turquoise-pale); color: var(--turquoise-fonce); }
.identite { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 24px; margin: 0; }
.identite dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--gris); margin: 0; }
.identite dd { margin: 2px 0 0; font-weight: 500; }
.fiche-grille { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .fiche-grille { grid-template-columns: 1fr; } }
.cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 16px; margin-bottom: 14px; }
.liste-clients { list-style: none; padding: 0; margin: 0 0 16px; }
.liste-clients li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ligne); flex-wrap: wrap; }
.etape { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.etape .champ { margin: 0; min-width: 220px; flex: 0 1 280px; }
.annuaire { border-left: 3px solid var(--turquoise); }
.boite-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.boite-actions .btn { gap: 8px; }
.boite-actions input[type=text] { flex: 1 1 260px; }
.liste-fichiers .retirer { margin-left: 8px; border: 0; background: none; color: var(--gris); font-size: 1.2rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.liste-fichiers .retirer:hover { color: var(--rouge); }
@media (min-width: 900px) { label[for=photo] { display: none; } }
.classement { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.classement select, .classement input[type=date] { width: auto; padding: 6px 8px; font-size: .88rem; }
.depot-zone .ecran-mobile { display: none; }
@media (max-width: 899px) { .depot-zone .ecran-mobile { display: block; } .depot-zone .ecran-large { display: none; } }
/* ---------- Informations de saisie (FEC / questionnaire) ---------- */
.etapes { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding: 14px 20px; font-weight: 600; color: var(--gris); }
.etapes .fait { color: var(--vert); }
.etapes .encours { color: var(--encre); border-bottom: 2px solid var(--turquoise); }
fieldset { border: 0; border-top: 1px solid var(--ligne); padding: 16px 0 6px; margin: 0 0 6px; }
legend { font-weight: 700; color: var(--encre); padding-right: 10px; }
.cinq { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
@media (max-width: 760px) { .cinq { grid-template-columns: repeat(2, 1fr); } }
table.saisie { min-width: 520px; }
table.saisie th { font-size: .78rem; }
table.saisie td { padding: 4px 6px 4px 0; border: 0; }
table.saisie input { padding: 8px 10px; }
h3 { font-size: 1.02rem; margin: 0 0 10px; }
.profil-etat { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
table.saisie input::placeholder { color: #C2C9D3; }
/* ---------- Gestion interne ---------- */
.kpi { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.kpi .stat .n { font-size: 1.5rem; }
td.negatif, td.negatif .meta { color: var(--rouge); font-weight: 600; }
td.faible { color: var(--orange); }
td.bon { color: var(--vert); }
.barre-part { display: inline-block; width: 90px; height: 8px; background: #EEF2F6; border-radius: 4px; overflow: hidden; vertical-align: middle; margin-right: 6px; }
.barre-part span { display: block; height: 100%; background: var(--turquoise); }
.tris a { color: var(--gris); }
.tris a.actif { color: var(--turquoise-fonce); font-weight: 700; text-decoration: none; }
.honoraires-grille { display: grid; grid-template-columns: 1.3fr 1.2fr .8fr .8fr; gap: 8px 12px; align-items: center; }
.honoraires-grille .num { text-align: right; white-space: nowrap; }
.honoraires-grille .titre { font-weight: 600; align-self: center; }
@media (max-width: 700px) { .honoraires-grille { grid-template-columns: 1.4fr 1fr 1fr; } .honoraires-grille .titre { grid-column: 1 / -1; margin-top: 8px; } .honoraires-grille > .meta:first-child { display: none; } }
.resultat-honoraires { display: flex; gap: 22px; flex-wrap: wrap; padding: 12px 16px; background: var(--turquoise-pale); border-radius: 10px; margin: 14px 0; }
.resultat-honoraires div b { display: block; font-size: 1.1rem; color: var(--encre); }
td.num, th.num { white-space: nowrap; }
td[data-l="Part"] { white-space: nowrap; }
/* ---------- Demandes et tâches ---------- */
.statut.dem-nouveau { background: var(--orange-pale); color: var(--orange); }
.statut.dem-en_cours { background: #EEF0FF; color: #3B44A8; }
.statut.dem-attente_client { background: var(--turquoise-pale); color: var(--turquoise-fonce); }
.statut.dem-resolu { background: var(--vert-pale); color: var(--vert); }
.statut.quad-faire { background: var(--rouge-pale); color: var(--rouge); }
.statut.quad-planifier { background: #EEF0FF; color: #3B44A8; }
.statut.quad-deleguer { background: var(--orange-pale); color: var(--orange); }
.statut.quad-plus_tard { background: #F1F3F6; color: var(--gris); }
.fil { display: flex; flex-direction: column; gap: 12px; }
.msg { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--ligne); max-width: 92%; }
.msg.client { background: #fff; align-self: flex-start; }
.msg.cabinet { background: var(--turquoise-pale); border-color: #BDE9F3; align-self: flex-end; }
.msg.interne { background: #FFF8EC; border: 1px dashed #F0C27A; }
.msg-tete { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 4px; }
.msg-texte { white-space: pre-wrap; }
.qualif { display: grid; grid-template-columns: 1fr repeat(3, auto) 150px auto; gap: 8px; align-items: center; padding: 12px 0; border-top: 1px solid var(--ligne); }
.qualif select, .qualif input { width: auto; padding: 6px 8px; font-size: .88rem; }
@media (max-width: 900px) { .qualif { grid-template-columns: 1fr 1fr; } .qualif .q-sujet { grid-column: 1 / -1; } }
.matrice { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.matrice .axe-haut { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--gris); font-weight: 700; text-align: center; }
.quadrant { background: #fff; border: 1px solid var(--ligne); border-top: 4px solid; border-radius: var(--rayon); padding: 14px; min-height: 140px; display: flex; flex-direction: column; gap: 8px; }
.quadrant header { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.quadrant.q1 { border-top-color: var(--rouge); } .quadrant.q2 { border-top-color: #3B44A8; } .quadrant.q3 { border-top-color: var(--orange); } .quadrant.q4 { border-top-color: #9AA5B4; }
.demande-carte { display: flex; flex-direction: column; gap: 2px; padding: 9px 11px; border: 1px solid var(--ligne); border-radius: 8px; text-decoration: none; color: inherit; }
.demande-carte:hover { border-color: var(--turquoise); }
.demande-carte .d-sujet { font-weight: 600; color: var(--encre); }
.demande-carte.retard { border-left: 3px solid var(--rouge); }
.demande-carte.retard .meta:last-child { color: var(--rouge); }
.vide-q { margin: 6px 0 0; }
@media (max-width: 760px) { .matrice, .matrice .axe-haut { grid-template-columns: 1fr; } .matrice .axe-haut { display: none; } }
.suggestion { border-left: 4px solid var(--turquoise); background: linear-gradient(0deg, #fff, #F4FCFE); }
.brouillon { background: #fff; border: 1px solid var(--ligne); border-radius: 8px; padding: 12px 14px; }
.suggestion-mini { font-size: .85rem; color: var(--turquoise-fonce); margin-top: 2px; }
.attestation-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 14px; }
@media (max-width: 760px) { .attestation-grille { grid-template-columns: 1fr; } }
.meta-liste { padding-left: 20px; margin: 0 0 10px; }
.meta-liste li { margin-bottom: 4px; }
/* ---------- Embauches ---------- */
.grille-champs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 14px; }
.statut.emb-a_verifier { background: var(--orange-pale); color: var(--orange); }
.statut.emb-validee { background: #EEF0FF; color: #3B44A8; }
.statut.emb-transmise { background: var(--vert-pale); color: var(--vert); }
.statut.emb-envoyee { background: #EEF0FF; color: #3B44A8; }
.statut.emb-rejetee { background: #FDECEC; color: var(--rouge); }
.statut.emb-annulee { background: #F1F3F6; color: var(--gris); }
.retard-txt { color: var(--rouge); font-weight: 600; font-size: .85rem; }
.urgent-txt { color: var(--orange); font-weight: 600; font-size: .85rem; }
body.recap { background: #fff; padding: 24px 16px; }
.recap-table { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
.recap-table th { text-align: left; width: 40%; font-weight: 600; color: var(--gris); padding: 6px 8px; border-bottom: 1px solid var(--ligne); }
.recap-table td { padding: 6px 8px; border-bottom: 1px solid var(--ligne); }
@media print { .meta { color: #555; } }
/* ---------- Tableau de bord ---------- */
.evol { display: block; font-size: .8rem; font-weight: 600; margin-top: 2px; }
.evol.hausse { color: var(--vert); } .evol.baisse { color: var(--rouge); }
.svg-graphe { width: 100%; height: auto; display: block; }
.svg-graphe .grille-ligne { stroke: #EEF2F6; } .svg-graphe .zero { stroke: #9AA5B4; stroke-dasharray: 4 3; }
.svg-graphe .axe { font-size: 11px; fill: #7A8699; }
.svg-graphe .b-n { fill: var(--turquoise); } .svg-graphe .b-n1 { fill: #C9D3DF; }
.svg-graphe rect:hover { opacity: .8; }
.svg-graphe .ligne-treso { fill: none; stroke: #3B44A8; stroke-width: 2.5; }
.svg-graphe .pt { fill: #3B44A8; } .svg-graphe .pt-neg { fill: var(--rouge); }
.legende { display: flex; gap: 16px; font-size: .82rem; color: var(--gris); margin-top: 6px; }
.legende span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.legende .l-n::before { background: var(--turquoise); } .legende .l-n1::before { background: #C9D3DF; }
.h-barre { display: grid; grid-template-columns: minmax(120px, 1.3fr) 2fr 92px; gap: 10px; align-items: center; margin-bottom: 8px; font-size: .9rem; }
.h-lib { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-piste { height: 10px; background: #EEF2F6; border-radius: 5px; overflow: hidden; }
.h-piste span { display: block; height: 100%; background: var(--orange); opacity: .8; }
.h-val { white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.tableau-mois th, .tableau-mois td { white-space: nowrap; font-size: .85rem; }
.tableau-mois tr.sous-total th, .tableau-mois tr.sous-total td { font-weight: 700; background: #F7FAFC; }
.mot-cabinet { border-left: 4px solid var(--turquoise); }
/* Onglets d'un dossier (cabinet) */
.onglets-dossier { overflow-x: auto; scrollbar-width: thin; margin-bottom: 20px; }
.onglets-dossier a { display: inline-flex; align-items: center; gap: 6px; }
.onglets-dossier .badge-nb { margin-left: 0; }
.sous-onglets { border-bottom: 0; gap: 6px; flex-wrap: wrap; }
.sous-onglets a { border: 1px solid var(--ligne); border-radius: 999px; padding: 6px 12px; margin-bottom: 0; font-size: .9rem; }
.sous-onglets a.actif { background: var(--encre); color: #fff; border-color: var(--encre); }
.champ.captcha { margin: 6px 0 14px; }
.frc-captcha { max-width: 320px; }
/* Aperçu de l'espace client par un administrateur */
.bandeau-apercu { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; padding: 10px 16px; background: #FFF4D6; border-bottom: 1px solid #F0D58A; color: #5A4300; font-size: .92rem; text-align: center; }
/* Menu cabinet : tient sur une ligne avec « Espace utilisateur » */
@media (min-width: 1000px) { .entete-in { max-width: 1300px; } .entete nav a, .entete nav .btn.lien { padding: 8px 9px; font-size: .93rem; } }
/* GED : arborescence exercice → type → fournisseur / client / mois / salarié → nature */
.ged { grid-template-columns: 290px minmax(0, 1fr); }
.ged-arbre { background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 8px; box-shadow: var(--ombre); position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; font-size: .92rem; }
.ged-arbre a { display: flex; justify-content: space-between; gap: 8px; text-decoration: none; color: var(--texte); min-width: 0; flex: 1; }
.ged-arbre a span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ged-arbre .nb { color: var(--gris); font-variant-numeric: tabular-nums; flex: none; }
.ged-arbre .noeud, .ged-arbre summary { display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 8px; }
.ged-arbre summary { cursor: pointer; list-style: none; font-weight: 600; }
.ged-arbre summary::-webkit-details-marker { display: none; }
.ged-arbre summary::before { content: ""; flex: none; width: 7px; height: 7px; border-right: 1.5px solid var(--gris); border-bottom: 1.5px solid var(--gris); transform: rotate(-45deg); transition: transform .15s; margin-right: 2px; }
.ged-arbre details[open] > summary::before { transform: rotate(45deg); }
.ged-arbre .noeud:hover, .ged-arbre summary:hover { background: var(--fond); }
.ged-arbre .actif, .ged-arbre .actif a { background: var(--turquoise-pale); color: var(--turquoise-fonce); }
.ged-arbre .actif .nb { color: var(--turquoise-fonce); }
.ged-arbre .n2 { margin-left: 12px; } .ged-arbre details.n2 > summary { font-weight: 600; }
.ged-arbre .n3 { margin-left: 24px; font-weight: 500; } .ged-arbre details.n3 { margin-left: 24px; } .ged-arbre details.n3 > summary { font-weight: 500; }
.ged-arbre .n4 { margin-left: 26px; font-weight: 400; color: var(--gris); }
.ged-arbre a.noeud.n2:not(.actif) { font-weight: 600; }
.ged-fil { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 12px; font-size: .92rem; color: var(--gris); }
.ged-fil b { color: var(--texte); }
@media (max-width: 860px) { .ged { grid-template-columns: 1fr; } .ged-arbre { position: static; max-height: 360px; } }
.grille-cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 16px; }
/* Menu déroulant « Paramètres » (administrateurs) */
.menu-deroulant { position: relative; }
.menu-deroulant > summary { list-style: none; cursor: pointer; padding: 8px 9px; border-radius: 8px; font-weight: 500; font-size: .93rem; color: var(--texte); }
.menu-deroulant > summary::-webkit-details-marker { display: none; }
.menu-deroulant > summary::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.menu-deroulant > summary:hover, .menu-deroulant > summary.actif { background: var(--turquoise-pale); color: var(--turquoise-fonce); }
.menu-deroulant > div { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 210px; display: flex; flex-direction: column; padding: 6px; background: var(--blanc); border: 1px solid var(--ligne); border-radius: 10px; box-shadow: var(--ombre); }
.menu-deroulant > div a { white-space: nowrap; }
.filtre-entite { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.filtre-entite select { width: auto; min-height: 38px; }
.fiche-grille > * { min-width: 0; }
/* Prévisionnel */
.svg-graphe .seuil { stroke: var(--rouge); stroke-width: 1.5; stroke-dasharray: 5 4; }
.legende .l-seuil::before { background: none; border-top: 2px dashed var(--rouge); height: 0; width: 14px; vertical-align: 3px; border-radius: 0; }
.stat.alerte-stat { border-left: 4px solid var(--rouge); } .stat.alerte-stat .n { color: var(--rouge); }
.form-previsionnel .groupe-hyp { border: 1px solid #E1E6ED; border-radius: 10px; padding: 12px 14px 14px; margin: 0 0 14px; min-width: 0; }
.form-previsionnel legend { font-weight: 700; padding: 0 6px; }
.ligne-hyp { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.ligne-hyp label { margin: 0; flex: 1; font-weight: 500; }
.saisie-unite { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.saisie-unite input { width: 110px; text-align: right; }
.saisie-unite .unite { min-width: 56px; font-size: .85rem; color: var(--gris); }
.lignes-hyp { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.lignes-hyp th { text-align: left; font-size: .8rem; color: var(--gris); font-weight: 600; padding: 4px 6px; white-space: nowrap; }
.lignes-hyp td { padding: 3px 6px 3px 0; }
.lignes-hyp input, .lignes-hyp select { width: 100%; min-width: 90px; }
.lignes-hyp input.num { text-align: right; }
.liste-hyp { margin: 0; padding-left: 18px; } .liste-hyp li { margin: 2px 0; }
.methode summary { cursor: pointer; } .methode ul { margin: 10px 0 0; padding-left: 18px; color: var(--gris); font-size: .9rem; } .methode li { margin: 4px 0; }
@media (max-width: 640px) { .ligne-hyp { flex-direction: column; align-items: stretch; gap: 4px; } .saisie-unite input { width: 100%; } }
.legende .l-treso::before { background: #3B44A8; }
.lignes-hyp input, .lignes-hyp select, .saisie-unite input { box-sizing: border-box; height: 36px; padding: 6px 8px; margin: 0; }
@media (max-width: 720px) {
  .lignes-hyp thead { display: none; }
  .lignes-hyp, .lignes-hyp tbody, .lignes-hyp tr, .lignes-hyp td { display: block; width: 100%; }
  .lignes-hyp tr { border: 1px solid #E1E6ED; border-radius: 8px; padding: 8px 10px; margin-bottom: 10px; }
  .lignes-hyp td { padding: 3px 0; }
  .lignes-hyp td::before { content: attr(data-label); display: block; font-size: .78rem; color: var(--gris); font-weight: 600; margin-bottom: 2px; }
  .form-previsionnel .table-wrap { overflow: visible; }
}
.lignes-hyp input[type=month] { min-width: 150px; }
/* ---------- Espace client : piliers, accueil (cockpit), barre mobile ---------- */
.pilier-tete { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: -6px 0 14px; }
.pilier-nom { font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--turquoise-fonce); }
.pilier-onglets { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.pilier-onglets a { padding: 6px 12px; border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--gris); text-decoration: none; border: 1px solid var(--ligne); background: #fff; }
.pilier-onglets a.actif, .pilier-onglets a:hover { background: var(--turquoise-pale); color: var(--turquoise-fonce); border-color: transparent; }
.cockpit { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; margin-bottom: 16px; align-items: start; }
.cockpit .carte { margin: 0; min-width: 0; }
.cockpit h2 { margin-top: 0; }
.a-faire ul, .echeances ul { list-style: none; margin: 0; padding: 0; }
.a-faire li a { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--ligne); text-decoration: none; color: var(--texte); }
.a-faire li:last-child a { border-bottom: 0; }
.a-faire li a:hover { color: var(--turquoise-fonce); }
.af-ico { flex: 0 0 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .8rem; background: var(--turquoise-pale); color: var(--turquoise-fonce); }
.af-action .af-ico { background: #FFF1DE; color: var(--orange); } .af-alerte .af-ico { background: var(--rouge-pale); color: var(--rouge); }
.af-fleche { margin-left: auto; color: var(--gris); }
.tout-ok { margin: 0; color: var(--vert); font-weight: 600; }
.chiffres-cles { margin: 0 0 8px; display: grid; gap: 8px; }
.chiffres-cles div { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; border-bottom: 1px dashed var(--ligne); padding-bottom: 6px; }
.chiffres-cles dt { color: var(--gris); font-size: .88rem; } .chiffres-cles dd { margin: 0; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.chiffres-cles dd.negatif { color: var(--rouge); }
.evol-inline { font-size: .78rem; } .evol-inline.hausse { color: var(--vert); } .evol-inline.baisse { color: var(--rouge); }
.echeances li { display: flex; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--ligne); font-size: .92rem; }
.echeances li:last-child { border-bottom: 0; }
.ech-date { flex: 0 0 104px; font-weight: 700; color: var(--turquoise-fonce); }
.raccourcis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 16px 0; }
.raccourcis .carte { margin: 0; text-decoration: none; color: var(--texte); display: flex; flex-direction: column; gap: 4px; }
.raccourcis .carte:hover { box-shadow: 0 0 0 2px var(--turquoise-pale); }
.ancre { display: block; position: relative; top: -80px; }
.piloter-offre .carte { margin: 0; } .piloter-offre { margin-bottom: 16px; }
.barre-mobile { display: none; }
@media (max-width: 1000px) { .cockpit { grid-template-columns: 1fr 1fr; } .cockpit .a-faire { grid-column: 1 / -1; } }
@media (max-width: 720px) {
  .cockpit, .raccourcis { grid-template-columns: 1fr; }
  body.espace-client .entete nav a.pilier { display: none; }
  body.espace-client main { padding-bottom: 96px; }
  .barre-mobile { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #fff; border-top: 1px solid var(--ligne);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 16px rgba(10, 30, 60, .06); }
  .barre-mobile a { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--gris); font-size: .68rem; font-weight: 600; padding: 4px 0; border-radius: 10px; }
  .barre-mobile a svg { width: 23px; height: 23px; }
  .barre-mobile a.actif { color: var(--turquoise-fonce); background: var(--turquoise-pale); }
  .barre-mobile .pastille { position: absolute; top: 0; left: 55%; min-width: 17px; height: 17px; border-radius: 9px; background: var(--orange); color: #fff; font-size: .66rem; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
  .pied { padding-bottom: 80px; }
}
/* Application installable */
.app-mobile { border-left: 4px solid var(--turquoise); }
.app-mobile p { margin: 0 0 10px; }
.app-mobile [data-bloc]:not([hidden]) ~ [data-bloc]:not([hidden]) { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--ligne); }
.app-mobile .titre-ligne { flex-wrap: nowrap; align-items: flex-start; }
.app-mobile [data-plus-tard] { white-space: nowrap; color: var(--gris); }
.ico-partage { display: inline-block; border: 1.5px solid currentColor; border-radius: 4px; padding: 0 4px; font-size: .8em; }
html.app-installee .entete { padding-top: env(safe-area-inset-top); }

[hidden] { display: none !important; }
/* Scanner de documents */
@media (min-width: 900px) { .scan-btn { display: none; } }
.scanner { display: none; position: fixed; inset: 0; z-index: 100; background: #fff; flex-direction: column; overflow: auto; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
.scanner.ouvert { display: flex; }
html.scan-ouvert, html.scan-ouvert body { overflow: hidden; }
.scan-tete { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--ligne); position: sticky; top: 0; background: #fff; z-index: 2; }
.scan-pages, .scan-recadrage { padding: 14px 16px 24px; }
.scan-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; margin-bottom: 12px; }
.scan-vignette { position: relative; margin: 0; text-align: center; }
.scan-vignette canvas { width: 100%; height: auto; border: 1px solid var(--ligne); border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,.08); background: #fff; }
.scan-vignette figcaption { font-size: .78rem; color: var(--gris); margin-top: 4px; }
.scan-sup { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--rouge); color: #fff; font-size: 1rem; line-height: 1; cursor: pointer; }
.scan-aide { margin: 0 0 12px; }
.scan-zone { width: 100%; display: flex; justify-content: center; margin-bottom: 12px; }
.scan-canvas { max-width: 100%; touch-action: none; border-radius: 6px; background: #222; }
.scan-modes { margin-bottom: 14px; }
.scan-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.scan-actions .btn { flex: 1 1 auto; justify-content: center; }
.scan-attente { position: fixed; inset: 0; background: rgba(255,255,255,.85); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; z-index: 3; }
.scan-attente[hidden] { display: none; }
/* ---------- Logo de l'entreprise cliente ---------- */
.hero-client { display: flex; align-items: center; gap: 18px; padding: 20px 22px; margin-bottom: 18px; border-radius: 16px;
  color: var(--marque-texte, #fff); background: linear-gradient(120deg, var(--marque, #0b1f3a) 0%, color-mix(in srgb, var(--marque, #0b1f3a) 78%, #000) 100%);
  box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--marque, #0b1f3a) 60%, transparent); position: relative; overflow: hidden; }
.hero-client::after { content: ''; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: color-mix(in srgb, var(--marque-texte, #fff) 10%, transparent); pointer-events: none; }
.hero-client h1, .hero-client b { margin: 0; color: inherit; font-size: 1.6rem; display: block; line-height: 1.2; }
.hero-client .hero-sous { display: block; opacity: .85; font-size: .95rem; margin-top: 2px; }
.hero-logo { flex: 0 0 auto; min-width: 76px; max-width: 210px; height: 76px; border-radius: 18px; background: #fff; display: flex; align-items: center; justify-content: center; padding: 10px; box-sizing: border-box; box-shadow: 0 4px 14px rgba(0,0,0,.15); z-index: 1; }
.hero-logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.hero-client > span { z-index: 1; min-width: 0; }
.hero-mini { padding: 14px 16px; margin: 0; } .hero-mini .hero-logo { min-width: 56px; max-width: 150px; height: 56px; border-radius: 14px; padding: 7px; } .hero-mini b { font-size: 1.15rem; }
.invite-logo { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--texte); border: 1.5px dashed #9FDDEA; background: linear-gradient(90deg, #fff, var(--turquoise-pale)); }
.invite-logo:hover { border-color: var(--turquoise); }
.invite-logo > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.invite-icones { display: grid; grid-template-columns: repeat(3, 18px); gap: 5px; flex: 0 0 auto; }
.invite-icones span { width: 18px; height: 18px; border-radius: 5px; background: #D9E1EA; }
.invite-icones .vous { background: var(--action); color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; animation: pulse-logo 2.4s ease-in-out infinite; }
@keyframes pulse-logo { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
@media (prefers-reduced-motion: reduce) { .invite-icones .vous { animation: none; } }
.puce-entreprise { display: inline-flex !important; align-items: center; padding: 3px 6px !important; border: 1px solid var(--ligne); border-radius: 10px; background: #fff; height: 36px; box-sizing: border-box; }
.puce-entreprise img { max-height: 28px; max-width: 90px; object-fit: contain; display: block; }
.titre-logo { display: flex; align-items: center; gap: 14px; } .logo-titre { height: 44px; max-width: 120px; object-fit: contain; }
.logo-liste { height: 22px; max-width: 54px; object-fit: contain; vertical-align: middle; margin-right: 8px; border-radius: 4px; }
body.espace-client .pilier-nom { color: var(--marque, var(--turquoise-fonce)); }
@media (max-width: 720px) { body.espace-client .barre-mobile a.actif { color: var(--marque, var(--turquoise-fonce)); background: color-mix(in srgb, var(--marque, var(--turquoise)) 12%, #fff); } }
/* Formulaire et aperçu */
.logo-zone { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px; border: 2px dashed #9FDDEA; border-radius: 14px; background: var(--turquoise-pale); cursor: pointer; text-align: center; }
.logo-zone.survol { border-color: var(--turquoise); background: #D5F3FA; }
.logo-zone-ico { font-size: 1.6rem; color: var(--turquoise-fonce); }
.logo-form.logo-pret .logo-zone { padding: 12px; flex-direction: row; justify-content: center; gap: 10px; }
.logo-form.logo-pret .logo-zone .meta { display: none; }
.logo-apercu { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; margin: 18px 0; align-items: start; }
.apercu-titre { font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gris); margin-bottom: 8px; }
.couleur-marque { margin-top: 12px; display: flex; align-items: center; gap: 12px; } .couleur-marque label { margin: 0; flex: 1; }
.couleur-marque input[type=color] { width: 54px; height: 36px; padding: 2px; border-radius: 8px; border: 1px solid var(--ligne); background: #fff; }
.telephone { width: 236px; margin: 0 auto 12px; border-radius: 30px; padding: 9px; background: #10151c; box-shadow: 0 14px 34px -14px rgba(0,0,0,.5); }
.tel-ecran { border-radius: 22px; padding: 14px 14px 22px; background: linear-gradient(160deg, #6E8BB8, #2B3E63 55%, #1A2440); color: #fff; }
.tel-heure { text-align: center; font-weight: 700; font-size: .8rem; margin-bottom: 14px; }
.tel-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 8px; }
.tel-app { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.tel-app i { width: 40px; height: 40px; border-radius: 9px; background: rgba(255,255,255,.22); display: block; }
.tel-app em { font-style: normal; font-size: .56rem; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40px; min-height: 8px; }
.tel-app em:empty { width: 26px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.3); min-height: 0; margin-top: 3px; }
.tel-app-client img { width: 40px; height: 40px; border-radius: 9px; display: block; box-shadow: 0 0 0 2px rgba(255,255,255,.9), 0 4px 10px rgba(0,0,0,.35); animation: arrivee-app .6s cubic-bezier(.2,1.4,.4,1); }
@keyframes arrivee-app { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.logo-fonds { display: flex; width: fit-content; margin: 0 auto 8px; }
.logo-boutons { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
@media (max-width: 720px) { .logo-apercu { grid-template-columns: 1fr; } .hero-client { padding: 16px; gap: 14px; } .hero-logo { min-width: 60px; max-width: 140px; height: 60px; border-radius: 14px; } .hero-client h1 { font-size: 1.3rem; } }
.apercu-entete { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 1px solid var(--ligne); border-radius: 12px; background: #fff; margin-bottom: 8px; }
.apercu-entete .marque-cabinet { font-weight: 800; letter-spacing: .06em; } .apercu-entete .marque-cabinet b { color: var(--turquoise); }
.scan-recadrage .scan-actions, .scan-pages .scan-actions { position: sticky; bottom: 0; background: #fff; padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); z-index: 2; }
/* Dépôt par e-mail */
.adresse-depot { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 8px 0 12px; }
.adresse-depot code { font-size: 1.02rem; padding: 9px 12px; background: var(--turquoise-pale); color: var(--turquoise-fonce); border-radius: 8px; word-break: break-all; font-weight: 700; }
.courriel-depot .sous-titre { font-size: 1rem; margin: 16px 0 4px; }
.liste-mails { list-style: none; margin: 8px 0 0; padding: 0; }
.liste-mails li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--ligne); flex-wrap: wrap; }
.liste-mails li > div { min-width: 0; flex: 1 1 260px; } .liste-mails .meta { word-break: break-word; }
.liste-mails.compacte li { padding: 6px 0; font-size: .9rem; }
.actions-mail { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; }
.mode-emploi, .expediteurs, .derniers-mails { margin-top: 10px; } .mode-emploi summary, .expediteurs summary, .derniers-mails summary { cursor: pointer; font-weight: 600; }
.mode-emploi ul { margin: 8px 0 0; padding-left: 18px; color: var(--gris); font-size: .92rem; } .mode-emploi li { margin: 4px 0; }
.etapes-installation { padding-left: 20px; } .etapes-installation li { margin: 10px 0; } .etapes-installation li.fait > b::after { content: ' ✓'; color: var(--vert); }
.ligne-adresse { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 12px; } .ligne-adresse label { margin: 0; font-weight: 600; } .ligne-adresse .saisie-unite input { width: 170px; text-align: left; } .ligne-adresse .unite { min-width: 0; }

/* ---------- Banque : trésorerie, rapprochement, pièces manquantes ---------- */
.banque-haut { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 16px; }
.banque-haut .carte { margin: 0; }
.treso-total { font-size: 1.8rem; font-weight: 700; color: var(--encre); }
.liste-comptes { list-style: none; padding: 0; margin: 10px 0 0; }
.liste-comptes li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-top: 1px solid var(--ligne); font-size: .92rem; }
.sparkline { display: block; width: 100%; height: 60px; margin-top: 10px; color: var(--turquoise-fonce); }
.ligne-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ligne-form select, .ligne-form input[type=text] { max-width: 260px; }
td.num, th.num { text-align: right; white-space: nowrap; }
.positif { color: var(--vert, #1E7D4F); }
.negatif { color: var(--rouge); }
.banque-table td { vertical-align: top; }
.fichier-btn { position: relative; overflow: hidden; }
.fichier-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.manquantes { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.manquante { margin: 0; }
.manquante-op { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: baseline; margin-bottom: 10px; }
.manquante-date { color: var(--gris, #5b6573); font-size: .9rem; white-space: nowrap; }
.manquante-lib { font-weight: 600; word-break: break-word; }
.manquante-mt { font-weight: 700; white-space: nowrap; }
.sans-facture { margin-top: 8px; }
.sans-facture summary { cursor: pointer; color: var(--gris, #5b6573); font-size: .92rem; margin-bottom: 8px; }
@media (max-width: 600px) {
  .manquante-op { grid-template-columns: 1fr auto; }
  .manquante-date { grid-column: 1 / -1; }
  .ligne-form select, .ligne-form input[type=text] { max-width: 100%; flex: 1 1 100%; }
}
.colonne-droite { display: grid; gap: 16px; align-content: start; }
.colonne-droite .carte { margin: 0; }
.liste-ecritures { list-style: none; padding: 0; margin: 0; }
.liste-ecritures li { padding: 10px 0; border-top: 1px solid var(--ligne); }
.liste-ecritures li:first-child { border-top: 0; padding-top: 0; }
.ec-resume { text-decoration: none; display: inline-flex; flex-wrap: wrap; gap: 4px; }

/* ---------- Révision : suggestions de réaffectation ---------- */
.rv-titre { display: flex; align-items: center; gap: 8px; margin: 22px 0 10px; }
.rv-liste { display: grid; gap: 14px; }
.rv { margin: 0; }
.rv-tete { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.rv-type { background: #EEF0FF; color: #3B44A8; }
.rv-comptes { margin: 0 0 2px; font-size: 1.1rem; }
.rv-comptes code { font-size: .95em; }
.rv-motif { margin: 10px 0; }
.rv-ecritures { list-style: none; padding: 0; margin: 0 0 12px; font-size: .9rem; color: var(--texte); }
.rv-ecritures li { padding: 3px 0; border-top: 1px dashed var(--ligne); }
.rv-boutons { display: flex; gap: 10px; }
.rv-boutons .btn { min-width: 96px; }
.rv-historique { list-style: none; padding: 0; margin: 10px 0 0; }
.rv-historique li { padding: 6px 0; border-top: 1px solid var(--ligne); }

/* ---------- Visionneuse des pièces ---------- */
.apercu-corps { margin: 0; background: #2B3138; min-height: 100vh; }
.apercu-barre { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 10px; padding: 10px 12px; padding-top: max(10px, env(safe-area-inset-top)); background: var(--encre); color: #fff; }
.apercu-fermer, .apercu-dl { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); color: #fff; font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; }
.apercu-fermer:active, .apercu-dl:active { background: rgba(255,255,255,.2); }
.apercu-nom { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; opacity: .9; text-align: center; }
.apercu-zone { padding: 12px; padding-bottom: max(16px, env(safe-area-inset-bottom)); display: flex; justify-content: center; }
.apercu-image { max-width: 100%; height: auto; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.35); }
.apercu-pages { width: 100%; max-width: 1100px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.apercu-page { max-width: 100%; height: auto; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.35); }
.apercu-attente { color: #fff; opacity: .8; margin-top: 30vh; }
.apercu-iframe { width: 100%; height: calc(100vh - 90px); border: 0; background: #fff; }
.apercu-autre { color: #fff; text-align: center; margin-top: 25vh; }
@media (max-width: 480px) { .apercu-dl span { display: none; } .apercu-dl { padding: 0 12px; font-size: 1.1rem; } }

/* Lettres de mission */
.lm-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.lm-actions form { margin: 0; }
.lm-signee { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 10px; border: 1px dashed var(--bord, #d7dde5); border-radius: 8px; }
.lm-signee input[type=file] { max-width: 240px; }
.lm-note { flex-basis: 100%; margin: 4px 0 0; }
.lm-versions { margin: 0; padding-left: 18px; }
.lm-versions li { margin: 4px 0; }
.lm-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 14px; }
.lm-grille .large { grid-column: span 2; }
.lm-cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 6px 14px; margin-bottom: 12px; }
.lm-honoraires input { width: 100%; }
.lm-honoraires td:first-child { min-width: 260px; }
.lm-repartition td:first-child { font-size: .88rem; }
.lm-repartition .lm-section td, .lm-table .lm-section td { background: #E8EEF5; }
.lm-repartition .lm-sous td, .lm-table .lm-sous td { background: #F3F5F8; font-weight: 600; font-size: .85rem; }
.lm-enregistrer { position: sticky; bottom: 0; padding: 12px 0; background: var(--fond, #f6f8fb); z-index: 2; }
.lm-feuille { background: #fff; color: #1f2937; max-width: 820px; margin: 0 auto 30px; padding: 48px 56px; border-radius: 6px; box-shadow: 0 2px 14px rgba(11, 31, 58, .12); font-size: .93rem; line-height: 1.5; text-align: justify; }
.lm-feuille .lm-dest { text-align: right; margin-bottom: 24px; }
.lm-feuille .lm-titre { text-align: center; color: #0B1F3A; border-bottom: 2px solid #0B1F3A; padding-bottom: 6px; margin: 18px 0 4px; font-size: 1.25rem; }
.lm-feuille .lm-meta { text-align: center; color: #6b7280; font-style: italic; font-size: .8rem; margin-top: 0; }
.lm-feuille .lm-h1 { color: #0B1F3A; text-transform: uppercase; font-size: 1rem; margin: 22px 0 8px; }
.lm-feuille .lm-h2 { color: #0B1F3A; font-size: .95rem; margin: 16px 0 6px; }
.lm-feuille .lm-h3 { color: #0B1F3A; text-transform: uppercase; font-size: .78rem; margin: 12px 0 4px; }
.lm-feuille .lm-petit { font-size: .78rem; }
.lm-feuille .lm-table { width: 100%; border-collapse: collapse; margin: 8px 0 14px; text-align: left; }
.lm-feuille .lm-table th, .lm-feuille .lm-table td { border: 1px solid #cfd6df; padding: 4px 6px; vertical-align: top; }
.lm-feuille .lm-table th { background: #E8EEF5; }
.lm-feuille .lm-table .c { text-align: center; width: 54px; }
.lm-feuille .lm-signatures { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 22px 0 70px; text-align: left; }
.lm-feuille .lm-saut { border: 0; border-top: 2px dashed #cfd6df; margin: 36px -56px; }
@media (max-width: 700px) {
  .lm-feuille { padding: 22px 16px; }
  .lm-feuille .lm-saut { margin: 26px -16px; }
  .lm-grille .large { grid-column: auto; }
  .lm-feuille .lm-signatures { grid-template-columns: 1fr; }
}
.lm-dossier { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; padding: 10px 12px; background: var(--fond); border-radius: 8px; }
/* Cabinet sur téléphone : le menu passe à la ligne au lieu d'élargir la page */
@media (max-width: 640px) {
  .entete.staff .entete-in { flex-wrap: wrap; }
  .entete.staff nav { flex-wrap: wrap; width: 100%; row-gap: 2px; }
}
@media (max-width: 640px) {
  .onglets { overflow-x: auto; scrollbar-width: none; }
  .onglets a { white-space: nowrap; }
  .lm-feuille .lm-table { table-layout: fixed; }
  .lm-feuille .lm-table th:not(:first-child), .lm-feuille .lm-table td.c { width: 13%; font-size: .62rem; overflow-wrap: anywhere; padding: 3px 2px; }
}
.lm-repartition tbody + tbody { border-top: 6px solid transparent; }
.lm-repartition .lm-na td:first-child { color: var(--gris); text-decoration: line-through; }
.lm-repartition .lm-ajout input::placeholder { color: var(--turquoise-fonce, #0e7490); }
.lm-repartition td:first-child input { width: 100%; }
.lm-modele { min-width: 1000px; }
.lm-modele td:nth-child(2) { min-width: 320px; }
.lm-modele td:nth-child(2) input { width: 100%; }
.lm-bascule { white-space: nowrap; }
.lm-bascule select { width: auto; display: inline-block; }
.lm-modele { min-width: 1180px; }
.lm-modele td:nth-child(1) select { min-width: 190px; }
.lm-modele td:nth-child(3) select { min-width: 170px; }
.lm-modele td:nth-child(4) select { min-width: 110px; }
.lm-modele td:nth-child(6) select { min-width: 72px; }
.lm-modele .lm-bascule select { min-width: 0; width: 150px; }
.lm-modele .lm-bascule select + select { width: 120px; }
.lm-repartition td:nth-child(2) select { min-width: 140px; }
.lm-repartition td:nth-child(3) select { min-width: 72px; }
.lm-signature { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 10px 12px; border-radius: 8px; background: var(--turquoise-pale, #e6f7fb); }
.lm-signature-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lm-signature-form input { width: auto; min-width: 200px; }
.lm-jse { background: #f1f5fb; border: 1px solid #d5dfea; }
.jse-etat { flex-basis: 100%; }
.jse-etat .statut { margin-right: 6px; }
.jse-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.jse-rattacher { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.jse-rattacher select { width: auto; }

/* Nouveaux clients */
.ob-colonnes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.ob-colonne { background: #EEF2F7; border-radius: 10px; padding: 10px; min-height: 120px; }
.ob-colonne h3 { margin: 2px 4px 10px; font-size: .95rem; }
.ob-carte { display: flex; flex-direction: column; gap: 3px; background: #fff; border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; text-decoration: none; color: var(--texte); box-shadow: 0 1px 3px rgba(11,31,58,.08); }
.ob-carte:hover { box-shadow: 0 2px 8px rgba(11,31,58,.16); }
.ob-carte .statut { align-self: flex-start; }
@media (max-width: 900px) { .ob-colonnes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ob-colonnes { grid-template-columns: 1fr; } }
.ob-phase { margin: 22px 0 10px; }
.ob-etapes { display: flex; flex-direction: column; gap: 10px; }
.ob-etape { padding: 14px 16px; border-left: 4px solid var(--turquoise); }
.ob-etape.fait { border-left-color: var(--vert); }
.ob-etape.sans_objet { border-left-color: #cfd6df; opacity: .8; }
.ob-etape.retard { border-left-color: var(--orange); }
.ob-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ob-tete h3 { margin: 0; font-size: 1rem; flex: 1 1 260px; }
.ob-trombone { font-size: .85rem; color: var(--gris); white-space: nowrap; }
.ob-aide { margin: 6px 0 0; }
.ob-actions, .ob-ligne, .ob-statut, .ob-perdu { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.ob-ligne textarea { flex: 1 1 320px; }
.ob-ligne input[type=date], .ob-ligne select, .ob-perdu select, .ob-perdu input { width: auto; }
.ob-pieces, .ob-notes { list-style: none; padding: 0; margin: 10px 0 0; }
.ob-pieces li { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 3px 0; }
.ob-inline { display: inline; margin: 0; }
.ob-notes li { border-left: 2px solid var(--ligne); padding: 2px 0 6px 10px; margin-bottom: 4px; white-space: pre-line; font-size: .92rem; }
.ob-documenter { margin-top: 8px; }
.ob-documenter summary { cursor: pointer; color: var(--turquoise-fonce, #0e7490); font-size: .9rem; }
.ob-acceptation, .ob-email { margin-top: 10px; }
.ob-modele { min-width: 1400px; }
.ob-modele td:nth-child(1) select { min-width: 130px; }
.ob-modele td:nth-child(2) { min-width: 300px; }
.ob-modele td:nth-child(4) input { width: 60px; }
.ob-modele td:nth-child(8) { min-width: 260px; }
.ob-modele td:nth-child(8) input, .ob-modele td:nth-child(2) input { width: 100%; }
.ob-accueil { list-style: none; padding: 0; margin: 8px 0 0; } .ob-accueil li { padding: 6px 0; border-bottom: 1px solid var(--ligne); } .en-retard { color: var(--orange); font-weight: 600; }
.ob-detail > summary { cursor: pointer; color: var(--gris); font-size: .88rem; margin-top: 6px; } .ob-etape.fait, .ob-etape.sans_objet { padding-top: 10px; padding-bottom: 10px; }
.compte-journal input[name=compte_gl] { width: 90px; } .compte-journal select { width: auto; max-width: 200px; } .journaux-saisie td:first-child input { width: 90px; }
.note-ia { color: var(--turquoise-fonce, #0e7490); }

/* Fiche d'un dépôt : aperçu de la pièce à côté du classement */
.depot-grille { display: grid; gap: 16px; align-items: start; grid-template-columns: 2fr 1fr; }
.depot-grille.avec-apercu { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.depot-gauche { display: grid; gap: 16px; align-content: start; min-width: 0; }
.depot-gauche > .carte, .depot-gauche > .colonne-droite { margin: 0; min-width: 0; }
.depot-grille:not(.avec-apercu) .depot-gauche { display: contents; }
.depot-grille.avec-apercu .depot-gauche .table-wrap { overflow-x: auto; }
.depot-apercu { margin: 0; position: sticky; top: 12px; display: flex; flex-direction: column; height: calc(100vh - 24px); padding: 12px; }
.depot-apercu-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.depot-apercu-tete b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.depot-apercu-tete a { white-space: nowrap; }
.depot-apercu iframe { flex: 1; width: 100%; border: 1px solid var(--ligne); border-radius: var(--rayon, 8px); background: #f4f4f4; }
a.apercu-actif { font-weight: 700; }
.apercu-cadre .apercu-zone { padding-top: 0; }
@media (max-width: 1000px) {
  .depot-grille, .depot-grille.avec-apercu { grid-template-columns: 1fr; }
  .depot-apercu { position: static; height: 75vh; order: -1; }
}
main:has(.depot-grille.avec-apercu) { max-width: 1640px; }

/* Visionneuse à part (fenêtre sur un 2e écran) */
.visionneuse-corps { margin: 0; height: 100vh; display: flex; flex-direction: column; background: #2B3138; color: #fff; }
.visionneuse-barre { padding: 8px 14px; padding-top: max(8px, env(safe-area-inset-top)); display: flex; gap: 10px; align-items: center; color: #fff; font-size: .95rem; background: #1f2429; }
.visionneuse-barre span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .9; }
.visionneuse-barre a { color: #9fe3e3; white-space: nowrap; }
.visionneuse-corps iframe { flex: 1; width: 100%; border: 0; }
.visionneuse-attente { margin: auto; max-width: 460px; text-align: center; line-height: 1.5; opacity: .85; padding: 20px; }
.depot-apercu-actions { display: flex; gap: 10px; align-items: baseline; white-space: nowrap; }
.depot-apercu-detache { display: none; }
.visionneuse-a-part .depot-apercu-detache { display: block; }
.visionneuse-a-part .depot-apercu iframe { display: none; }
.visionneuse-a-part .depot-apercu { height: auto; position: static; }
.visionneuse-a-part .depot-grille.avec-apercu { grid-template-columns: 2fr 1fr; }
.depot-nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
tr.apercu-actif td { background: var(--turquoise-pale); }
.voir-piece { text-decoration: none; padding: 0 4px; }
.nom-piece { word-break: break-word; }

/* Écran de vérification d'une écriture */
.verif-grille.avec-apercu { grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); }
.visionneuse-a-part .verif-grille.avec-apercu { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); }
.verif-form { margin: 0; }
.verif-entete { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.verif-entete .champ { margin: 0; }
.verif-entete .champ.large { flex: 1 1 260px; }
.verif-entete input.court { width: 100px; }
.verif-lignes input { width: 100%; min-width: 0; padding: 6px 8px; font-size: .92rem; }
.verif-lignes input[name=l_libelle] { min-width: 140px; }
.verif-lignes input.compte.tiers { width: 118px; }
.verif-lignes input.compte { width: 96px; font-family: ui-monospace, monospace; }
.verif-lignes input.montant { width: 90px; text-align: right; }
.verif-lignes input[type=date] { width: 132px; padding: 6px 4px; }
.verif-lignes td { padding: 4px; }
.verif-lignes input.modifie { background: var(--orange-pale); }
.ecart-verif { margin-left: 10px; font-weight: 600; }
.ecart-verif.ok { color: var(--vert); }
.ecart-verif.ko { color: var(--rouge); }
.habitude { background: var(--turquoise-pale); border-radius: var(--rayon, 8px); padding: 8px 12px; margin: 12px 0; }
.habitude.ecart { background: var(--orange-pale); }
.verif-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.verif-actions .raccourcis { margin-left: auto; }
.verif-grille .refus { display: flex; gap: 10px; margin: 0; }
.verif-grille .refus input { flex: 1; }

/* Découpage d'un PDF */
.decoupe-pages { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.decoupe-page { margin: 0; text-align: center; }
.decoupe-page canvas { width: 180px; height: auto; border: 1px solid var(--ligne); border-radius: 6px; background: #fff; display: block; }
.decoupe-page figcaption { font-size: .82rem; color: var(--gris); margin-top: 4px; }
.decoupe-ciseaux { align-self: stretch; width: 34px; border: 2px dashed transparent; background: none; cursor: pointer; font-size: 1.2rem; color: var(--gris); border-radius: 6px; }
.decoupe-ciseaux:hover { border-color: var(--ligne); color: var(--texte); }
.decoupe-ciseaux.active { border-color: var(--rouge); color: var(--rouge); background: var(--rouge-pale); }
.non-comptable { margin-top: 4px; font-size: .88rem; color: var(--gris); }
.non-comptable b { color: var(--texte); }
.non-comptable-form { margin-top: 4px; }
.non-comptable-form select { font-size: .85rem; padding: 3px 6px; }
.statut.doublon { background: var(--rouge-pale); color: var(--rouge); font-weight: 700; }
.alerte-doublon .inline { display: inline; margin-left: 6px; }
.remarque-depot { font-size: .85rem; color: var(--gris); max-width: 260px; }

/* Saisie manuelle (fenêtre ouverte depuis la liste des dépôts) */
.saisie-corps { margin: 0; background: var(--fond, #f6f7f9); }
.saisie-grille { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); height: 100vh; }
.saisie-piece iframe { width: 100%; height: 100vh; border: 0; display: block; background: #2B3138; }
.saisie-form { padding: 16px 20px; overflow-y: auto; min-width: 0; }
.saisie-form .table-wrap { overflow-x: auto; }
.saisie-form .verif-entete .champ.large { flex: 1 1 200px; min-width: 0; }
.saisie-form .verif-entete input { max-width: 100%; }
@media (max-width: 900px) { .saisie-grille { grid-template-columns: 1fr; height: auto; } .saisie-piece iframe { height: 60vh; } }
.actions-depot { white-space: nowrap; }
.actions-depot form { display: inline; }
.saisie-form .verif-entete .champ.large input { width: 100%; box-sizing: border-box; }
.barre-selection { position: sticky; top: 8px; z-index: 5; display: flex; gap: 12px; align-items: center; background: var(--blanc, #fff); border: 1px solid var(--ligne); border-radius: var(--rayon, 8px); padding: 8px 14px; margin-bottom: 8px; box-shadow: var(--ombre, 0 2px 8px rgba(0,0,0,.08)); }
.barre-selection[hidden] { display: none; }
td.sel, th.sel { width: 28px; }

/* Points en suspens (analyse du FEC) */
.sp-synthese { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.sp-bloc h3 { margin: 0 0 8px; font-size: 1rem; }
.sp-types { list-style: none; margin: 0; padding: 0; }
.sp-types li { display: grid; grid-template-columns: 1fr auto 110px; gap: 10px; padding: 4px 0; border-bottom: 1px solid var(--bord, #e6e8ec); align-items: baseline; }
.sp-types li .meta { text-align: right; }
.sp-pour { display: inline-block; font-size: .72rem; font-weight: 600; padding: 1px 6px; border-radius: 8px; white-space: nowrap; }
.sp-client { background: #fdf0e1; color: #8a4b08; }
.sp-cabinet { background: #e8f0fb; color: #1d4f91; }
.sp-alerte td { background: #fdecec; }
.sp-lot { display: flex; gap: 10px; align-items: center; }
.actions-ligne { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }
.sp-explication { margin: 6px 0 8px; }
.sp-titre-client { font-size: 1.1rem; margin: 18px 0 4px; }
.sp-table .ligne-form { flex-wrap: nowrap; gap: 6px; }
.sp-question { margin-top: 4px; font-size: .86rem; color: #8a4b08; }
.sp-avis { margin-top: 4px; font-size: .86rem; color: var(--gris, #5b6573); font-style: italic; }
.sp-claude { display: inline-block; font-size: .7rem; font-weight: 600; padding: 0 6px; border-radius: 8px; background: #efe8fb; color: #5b2ea6; }
.sp-prio { display: inline-block; width: 16px; height: 16px; line-height: 16px; text-align: center; border-radius: 50%; background: #c62828; color: #fff; font-size: .7rem; font-weight: 700; }
.sp-revue { margin-bottom: 14px; }
.sp-revue h3 { margin: 0 0 6px; font-size: 1rem; }
.sp-revue-texte { white-space: pre-line; margin: 0; }

/* ---------- Espace cabinet : navigation latérale (refonte, étape 1) ---------- */
.cabinet { display: flex; min-height: 100vh; }
.menu-cabinet { position: sticky; top: 0; align-self: flex-start; height: 100vh; width: 248px; flex: 0 0 248px; background: var(--blanc); border-right: 1px solid var(--ligne);
  display: flex; flex-direction: column; gap: 14px; padding: 18px 12px; overflow-y: auto; }
.cabinet-corps { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.cabinet-corps main { width: 100%; max-width: 1320px; padding: 28px 32px 64px; flex: 1 0 auto; }
.cabinet-corps .pied-in { max-width: 1320px; }
.menu-logo { display: flex; flex-direction: column; gap: 2px; padding: 4px 10px 6px; text-decoration: none; }
.menu-logo img { height: 30px; width: auto; align-self: flex-start; }
.menu-logo .marque { font-weight: 800; font-size: 1.2rem; color: var(--encre); }
.menu-logo .sous { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gris); }
.menu-recherche { display: flex; align-items: center; gap: 8px; border: 1px solid var(--ligne); border-radius: 8px; padding: 0 10px; background: var(--fond); }
.menu-recherche svg { width: 16px; height: 16px; color: var(--gris); flex: none; }
.menu-recherche input { border: 0; background: transparent; padding: 8px 0; font: inherit; font-size: .9rem; width: 100%; outline: none; color: var(--encre); }
.menu-recherche:focus-within { border-color: var(--turquoise); box-shadow: 0 0 0 3px var(--turquoise-pale); }
.menu-liens { display: flex; flex-direction: column; gap: 2px; }
.menu-liens a, .menu-parametres summary { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--texte); text-decoration: none; font-size: .93rem; font-weight: 500; cursor: pointer; }
.menu-liens a > span:first-of-type { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.menu-liens svg, .menu-parametres summary svg { width: 18px; height: 18px; flex: none; color: var(--gris); }
.menu-liens a:hover, .menu-parametres summary:hover { background: var(--fond); color: var(--encre); }
.menu-liens a.actif { background: var(--turquoise-pale); color: #075E70; font-weight: 600; }
.menu-liens a.actif svg { color: var(--turquoise-fonce); }
.menu-bas { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.menu-parametres summary { list-style: none; }
.menu-parametres summary::-webkit-details-marker { display: none; }
.menu-parametres > div { display: flex; flex-direction: column; padding: 2px 0 6px 38px; }
.menu-parametres > div a { padding: 6px 8px; border-radius: 6px; font-size: .88rem; color: var(--texte); text-decoration: none; }
.menu-parametres > div a:hover { background: var(--fond); }
.menu-utilisateur { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 2px 10px; align-items: center; padding: 10px; border-top: 1px solid var(--ligne); }
.menu-utilisateur .avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--encre); color: #fff; display: grid; place-items: center; font-size: .78rem; font-weight: 700; text-transform: uppercase; grid-row: span 2; }
.menu-utilisateur .qui { display: flex; flex-direction: column; font-size: .85rem; line-height: 1.3; min-width: 0; }
.menu-utilisateur .qui b { color: var(--encre); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-utilisateur .qui span { color: var(--gris); }
.menu-utilisateur form { margin: 0; grid-column: 2; }
.menu-utilisateur .btn.lien { padding: 0; font-size: .82rem; }
@media (max-width: 900px) {
  .cabinet { flex-direction: column; }
  .menu-cabinet { position: static; height: auto; width: 100%; flex: none; border-right: 0; border-bottom: 1px solid var(--ligne); padding: 10px 12px; gap: 8px; }
  .menu-logo { flex-direction: row; align-items: center; gap: 10px; }
  .menu-liens { flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 2px; }
  .menu-liens a { white-space: nowrap; flex: none; }
  .menu-liens a > span:first-of-type { flex: none; }
  .menu-bas { flex-direction: row; align-items: center; justify-content: space-between; }
  .menu-utilisateur { border-top: 0; padding: 4px 0; }
  .cabinet-corps main { padding: 20px 16px 48px; }
}

/* En-tête de page commun */
.page-tete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 16px; margin-bottom: 18px; }
.page-tete h1 { margin: 0 0 4px; }
.page-tete p { margin: 0; }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.page-actions .portee, .page-actions .filtre-entite { margin: 0; }

/* Ma journée */
.vue-bascule { display: flex; gap: 4px; border-bottom: 1px solid var(--ligne); margin-bottom: 14px; }
.vue-bascule a { padding: 10px 14px; text-decoration: none; color: var(--gris); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.vue-bascule a b { font-weight: 700; color: var(--encre); margin-left: 4px; }
.vue-bascule a.actif { color: var(--encre); border-bottom-color: var(--turquoise); }
.puces { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.puce { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--ligne); background: var(--blanc); color: var(--texte); text-decoration: none; font-size: .88rem; }
.puce b { font-weight: 700; }
.puce:hover { border-color: #C9D2DC; }
.puce.actif { background: var(--encre); border-color: var(--encre); color: #fff; }
.carte.travail { padding: 0; overflow: hidden; }
.carte.travail .tout-ok { padding: 22px; margin: 0; }
.travail-tete, .travail-ligne { display: grid; grid-template-columns: 12px minmax(0, 2.6fr) minmax(0, 1.2fr) 120px 90px 16px; gap: 14px; align-items: center; padding: 12px 18px; }
.travail-tete { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); background: #FAFBFC; border-bottom: 1px solid var(--ligne); }
.travail-liste { list-style: none; margin: 0; padding: 0; }
.travail-liste li + li { border-top: 1px solid var(--ligne); }
.travail-ligne { text-decoration: none; color: var(--texte); }
.travail-ligne:hover { background: #F7FAFC; }
.travail-titre { display: flex; flex-direction: column; min-width: 0; }
.travail-titre b { color: var(--encre); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.travail-titre .meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.travail-dossier { color: var(--turquoise-fonce); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.travail-fleche { color: var(--gris); font-size: 1.2rem; }
.prio { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.prio-1 { background: var(--rouge); } .prio-2 { background: var(--turquoise); } .prio-3 { background: #B8C2CC; }
.statut.st-traiter { background: var(--turquoise-pale); color: #075E70; }
.statut.st-client { background: var(--orange-pale); color: var(--orange); }
@media (max-width: 760px) {
  .travail-tete { display: none; }
  .travail-ligne { grid-template-columns: 12px minmax(0, 1fr) auto; grid-template-areas: "p t f" "p d f" "p n f"; row-gap: 4px; }
  .travail-ligne .prio { grid-area: p; align-self: start; margin-top: 6px; }
  .travail-titre { grid-area: t; } .travail-dossier { grid-area: d; } .travail-nature { grid-area: n; }
  .travail-ligne > .meta { display: none; } .travail-fleche { grid-area: f; }
}

/* Statuts unifiés (refonte, étape 2) : À traiter · En attente du client · Fait · Écarté */
.statut.st-traiter { background: var(--turquoise-pale); color: #075E70; }
.statut.st-client { background: var(--orange-pale); color: #8A4B08; }
.statut.st-fait { background: var(--vert-pale); color: #0D5C3E; }
.statut.st-ecarte { background: #F1F3F6; color: #5B6573; }
.statut-detail { font-size: .8rem; color: var(--gris); }

/* Dossier : en-tête, onglets, sous-onglets (refonte, étape 2) */
.fil-ariane { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .85rem; color: var(--gris); margin-bottom: 6px; }
.fil-ariane a { color: var(--gris); }
.dossier-tete { margin-bottom: 10px; }
.dossier-tete .btn.actif { background: var(--turquoise-pale); border-color: var(--turquoise); color: #075E70; }
.onglets.onglets-dossier { flex-wrap: wrap; overflow: visible; }
.sous-onglets { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 18px; }
.sous-onglets a { padding: 6px 12px; border-radius: 8px; text-decoration: none; color: var(--gris); font-size: .9rem; font-weight: 600; }
.sous-onglets a b { color: var(--encre); margin-left: 2px; }
.sous-onglets a:hover { background: var(--blanc); color: var(--encre); }
.sous-onglets a.actif { background: var(--blanc); color: var(--encre); box-shadow: 0 0 0 1px var(--ligne); }
.a-faire-dossier { padding-bottom: 6px; }
.a-faire-dossier h2 { margin-bottom: 8px; }
.a-faire-dossier .travail-liste { border-top: 1px solid var(--ligne); margin: 0 -24px; }
.travail-ligne.compacte { grid-template-columns: 12px minmax(0, 1fr) auto 16px; padding: 11px 24px; }

/* Panneau latéral (refonte, étape 3) */
dialog.panneau { margin: 0 0 0 auto; height: 100vh; max-height: 100vh; width: min(1180px, 92vw); max-width: none; padding: 0; border: 0; border-left: 1px solid var(--ligne);
  box-shadow: -12px 0 40px rgba(19,36,58,.18); display: flex; flex-direction: column; background: var(--fond); }
dialog.panneau:not([open]) { display: none; }
dialog.panneau::backdrop { background: rgba(19,36,58,.32); }
.panneau-tete { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--blanc); border-bottom: 1px solid var(--ligne); }
.panneau-titre { flex: 1; font-weight: 700; color: var(--encre); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panneau-cadre { flex: 1; width: 100%; border: 0; background: var(--fond); }
.panneau-page main { max-width: none; padding: 18px 22px 40px; }
.panneau-page .fil-ariane { display: none; }

/* Tableaux : texte long tronqué, menu d'actions de ligne */
.tronque-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.remarque-depot { min-width: 180px; max-width: 280px; font-size: .88rem; }
.date-depot { white-space: nowrap; }
.menu-actions { position: relative; }
.menu-actions > summary { list-style: none; cursor: pointer; min-width: 36px; text-align: center; }
.menu-actions > summary::-webkit-details-marker { display: none; }
.menu-actions > div { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; background: var(--blanc); border: 1px solid var(--ligne); border-radius: 8px;
  box-shadow: var(--ombre); padding: 6px; display: flex; flex-direction: column; align-items: stretch; min-width: 150px; }
.menu-actions > div form { margin: 0; }
.menu-actions > div .btn { width: 100%; text-align: left; padding: 8px 10px; border-radius: 6px; }
.menu-actions > div .btn:hover { background: var(--fond); }
.table-wrap thead th { position: sticky; top: 0; z-index: 1; background: #FAFBFC; }
.dans-cadre .menu-cabinet, .dans-cadre .pied, .dans-cadre .fil-ariane, .dans-cadre .app-mobile { display: none !important; }
.dans-cadre .cabinet-corps main { max-width: none; padding: 18px 22px 40px; }
.dans-cadre .dossier-tete, .dans-cadre .onglets-dossier, .dans-cadre .sous-onglets { display: none !important; }

/* Échéances fiscales */
table.echeances tr.groupe td { background: var(--fond, #F6F8F9); padding-top: 10px; padding-bottom: 6px; }
table.echeances tr.ligne-retard td:first-child { box-shadow: inset 3px 0 0 var(--rouge); }
form.pointage { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
form.pointage input[type=text] { width: 160px; padding: 5px 8px; font-size: .85rem; }
.echeances-dossier li { display: grid; grid-template-columns: 92px 1fr auto; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--ligne); align-items: baseline; }
.echeances-dossier li:last-child { border-bottom: 0; }
.echeances-dossier { list-style: none; margin: 8px 0 0; padding: 0; }
@media (max-width: 640px) { .echeances-dossier li { grid-template-columns: 80px 1fr; } .echeances-dossier li > :last-child { grid-column: 2; } }
table.echeances td:first-child { white-space: nowrap; }
/* Échéances fiscales : tableau dossiers × mois */
.ech-barre { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.ech-nav { display: flex; gap: 6px; }
.ech-wrap { overflow-x: auto; }
table.ech-tableau { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 760px; }
table.ech-tableau th, table.ech-tableau td { vertical-align: top; padding: 10px 10px; border-bottom: 1px solid var(--ligne); text-align: left; }
table.ech-tableau thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--gris); }
table.ech-tableau .ech-dossier { position: sticky; left: 0; background: #fff; z-index: 1; min-width: 190px; max-width: 240px; border-right: 1px solid var(--ligne); }
table.ech-tableau tbody .ech-dossier a:first-child { font-weight: 700; color: var(--encre); text-decoration: none; display: block; }
table.ech-tableau .ech-dossier .meta { display: block; font-weight: 400; font-size: .8rem; }
.ech-sans-contact { color: var(--orange) !important; }
table.ech-tableau td.ech-col-retard, table.ech-tableau th.ech-col-retard { background: #FDF3F2; }
button.ech { display: flex; align-items: center; gap: 8px; width: 100%; min-width: 128px; margin: 0 0 6px; padding: 6px 8px; border: 1px solid var(--ligne); border-radius: 8px; background: #fff; cursor: pointer; text-align: left; font: inherit; color: var(--encre); }
button.ech:hover:not([disabled]) { border-color: var(--turquoise); }
button.ech[disabled] { cursor: default; opacity: .75; }
.ech-txt { display: flex; flex-direction: column; line-height: 1.2; font-size: .85rem; }
.ech-txt span { color: var(--gris); font-size: .78rem; }
.ech-case { flex: 0 0 18px; height: 18px; border: 2px solid #9AA7B0; border-radius: 4px; position: relative; }
.ech-fait { background: #EEF8F1; border-color: #BFE3CB; }
.ech-fait .ech-case { background: #1E8E4E; border-color: #1E8E4E; }
.ech-fait .ech-case::after { content: ''; position: absolute; left: 4px; top: 0; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ech-fait .ech-txt span { color: #1E6B3E; font-weight: 600; }
.ech-retard { border-color: #F0B8B2; background: #FFF6F5; }
.ech-retard .ech-case { border-color: var(--rouge); }
.ech-retard .ech-txt span { color: var(--rouge); font-weight: 600; }
.ech-so { background: #F3F4F5; }
.ech-so .ech-case { border-color: #C5CCD1; background: repeating-linear-gradient(45deg, #C5CCD1 0 2px, transparent 2px 5px); }
.ech-so .ech-txt b { text-decoration: line-through; color: var(--gris); }
dialog.ech-dialogue { border: 0; border-radius: 14px; padding: 22px 24px; width: min(460px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
dialog.ech-dialogue::backdrop { background: rgba(15, 30, 40, .45); }
dialog.ech-dialogue h2 { margin: 0 0 4px; font-size: 1.1rem; }
.ech-montant { border: 0; padding: 0; margin: 14px 0 10px; }
.ech-montant legend { font-weight: 600; margin-bottom: 6px; }
.ech-types { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; font-size: .9rem; }
.ech-types label { display: flex; gap: 6px; align-items: center; font-weight: 400; }
.ech-montant .saisie-unite input { width: 160px; font-size: 1.05rem; }
.ech-mail { background: var(--turquoise-pale); border-radius: 8px; padding: 8px 10px; font-size: .88rem; margin: 10px 0 0; }
.ech-mail.alerte { background: #FFF4E5; color: #8A4B00; }

/* ==========================================================================
   Espace cabinet sur téléphone (maquette validée le 19/10/2026)
   Barre d'onglets en bas, en-tête réduit, filtres en panneau, listes compactes
   ========================================================================== */
.entete-mobile, .onglets-mobile { display: none; }
.bascule { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.filtres-ouvrir, .filtres-voile, .filtres-titre, .dt-retour, .dt-menu { display: none; }
.filtres-bloc, .filtres-panneau { display: contents; }
.plus-titre { margin-bottom: 14px; }
.plus-qui { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.plus-qui .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--encre); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; text-transform: uppercase; }
.plus-qui b { display: block; color: var(--encre); }
.plus-groupe { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gris); margin: 18px 0 8px; }
.plus-liste { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.plus-ligne { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 0 16px; color: var(--encre); text-decoration: none; }
.plus-ligne + .plus-ligne { border-top: 1px solid var(--ligne); }
.plus-ligne:hover { background: var(--fond); }
.plus-droite { display: flex; align-items: center; gap: 8px; color: var(--gris); font-size: 1.2rem; }
.plus-sortie { margin-top: 18px; }
.plus-sortie .btn { width: 100%; color: var(--rouge); }
.actions-rapides { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin: 0 0 16px; }
.actions-rapides a, .actions-rapides button { width: 100%; height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: var(--blanc); border: 1px solid var(--ligne); border-radius: 12px; color: var(--encre); font: inherit; font-size: .8rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.actions-rapides svg { color: var(--turquoise-fonce); }
.actions-rapides form { margin: 0; }
.segments { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); background: #E9EEF4; border-radius: 12px; padding: 4px; margin-bottom: 14px; }
.segments a { min-height: 40px; display: flex; align-items: center; justify-content: center; gap: 5px; border-radius: 9px; text-decoration: none; color: var(--gris); font-weight: 600; font-size: .9rem; }
.segments a.actif { background: var(--blanc); color: var(--encre); box-shadow: 0 1px 2px rgba(19,36,58,.12); font-weight: 700; }
.segments a.alerte { color: var(--rouge); }
.ech-liste { list-style: none; margin: 0; padding: 0; overflow: hidden; }
.ech-liste li + li { border-top: 1px solid var(--ligne); }
button.ech.ech-ligne { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; min-height: 64px; margin: 0; padding: 8px 14px; border: 0; border-radius: 0; text-align: left; }
.ech-ligne .ech-case { width: 24px; height: 24px; flex: none; }
.ech-ligne.ech-fait .ech-case::after { left: 6px; top: 2px; width: 6px; height: 12px; }
.ech-corps { display: flex; flex-direction: column; min-width: 0; }
.ech-corps b { color: var(--encre); font-weight: 600; }
.ech-corps span, .ech-quand span { font-size: .82rem; color: var(--gris); }
.ech-fait .ech-corps span { color: #1E6B3E; font-weight: 600; }
.ech-quand { display: flex; flex-direction: column; align-items: flex-end; font-size: .88rem; }
.ech-quand b { color: var(--encre); }
.ech-retard .ech-quand b, .ech-retard .ech-quand span { color: var(--rouge); }

@media (min-width: 761px) { .seul-mobile { display: none !important; } }
@media (max-width: 760px) {
  .seul-ordi { display: none !important; }
  /* Navigation : le menu latéral laisse place à l'en-tête réduit et à la barre du bas */
  .menu-cabinet { display: none; }
  .entete-mobile { display: flex; position: sticky; top: 0; z-index: 40; height: 56px; align-items: center; justify-content: space-between; padding: 0 6px 0 16px; background: var(--blanc); border-bottom: 1px solid var(--ligne); }
  .em-logo img { height: 24px; width: auto; display: block; }
  .em-logo .marque { font-weight: 800; font-size: 1.15rem; color: var(--encre); }
  .em-cherche > summary { list-style: none; }
  .em-cherche > summary::-webkit-details-marker { display: none; }
  .em-bouton { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 22px; color: var(--encre); cursor: pointer; }
  .em-bouton svg { width: 22px; height: 22px; }
  .em-cherche[open] .em-bouton { background: var(--turquoise-pale); }
  .em-recherche { position: absolute; left: 0; right: 0; top: 56px; display: flex; gap: 8px; padding: 10px 16px; background: var(--blanc); border-bottom: 1px solid var(--ligne); box-shadow: var(--ombre); }
  .em-recherche input { flex: 1; min-width: 0; height: 44px; font-size: 16px; padding: 0 12px; border: 1px solid var(--ligne); border-radius: 10px; }
  .em-recherche .btn { min-height: 44px; }
  .onglets-mobile { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--blanc); border-top: 1px solid var(--ligne); padding-bottom: env(safe-area-inset-bottom); }
  .onglets-mobile a { position: relative; height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--gris); text-decoration: none; font-size: .68rem; font-weight: 600; }
  .onglets-mobile svg { width: 24px; height: 24px; }
  .onglets-mobile a.actif { color: var(--turquoise-fonce); font-weight: 700; }
  .om-nb { position: absolute; top: 5px; left: 50%; margin-left: 5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--action); color: var(--encre); font-size: .68rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
  .om-nb.om-alerte { background: var(--rouge); color: #fff; }
  .cabinet-corps main { padding: 16px 16px calc(96px + env(safe-area-inset-bottom)); }
  .cabinet-corps .pied { display: none; }
  .dans-cadre .entete-mobile, .dans-cadre .onglets-mobile { display: none !important; }
  .dans-cadre .cabinet-corps main { padding: 14px 14px 40px; }

  /* Filtres : bouton unique, panneau qui monte du bas */
  .filtres-bloc { display: block; }
  .filtres-ouvrir { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
  .filtres-panneau { display: none; }
  .bascule:checked ~ .filtres-voile { display: block; position: fixed; inset: 0; z-index: 60; background: rgba(19, 36, 58, .45); }
  .bascule:checked ~ .filtres-panneau { display: flex; flex-direction: column; gap: 14px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; background: var(--blanc); border-radius: 20px 20px 0 0; padding: 16px 20px calc(24px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 30px rgba(19,36,58,.2); }
  .filtres-titre { display: flex; align-items: center; justify-content: space-between; font-size: 1.1rem; color: var(--encre); }
  .filtres-panneau .filtre-entite { display: flex; gap: 8px; }
  .filtres-panneau .filtre-entite select { flex: 1; min-height: 46px; font-size: 16px; }
  .filtres-panneau .portee { display: grid; grid-template-columns: 1fr 1fr; }
  .filtres-panneau .portee a { min-height: 46px; display: flex; align-items: center; justify-content: center; }
  .bascule:focus-visible + .filtres-ouvrir, .bascule:focus-visible + .dt-menu { outline: 2px solid var(--turquoise); outline-offset: 2px; }

  /* Pages : titres et en-têtes plus compacts */
  .page-tete, .titre-ligne { align-items: center; margin-bottom: 12px; }
  .page-tete h1, .titre-ligne h1 { font-size: 1.45rem; }
  .page-tete > div > p.meta { font-size: .82rem; }
  .vue-bascule { overflow-x: auto; }
  .vue-bascule a { white-space: nowrap; padding: 10px; }
  .puces { flex-wrap: nowrap; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 0 16px 2px; scrollbar-width: none; }
  .puce { flex: none; min-height: 44px; }

  /* En-tête de dossier : une ligne (retour, nom, ⋯), onglets sur une ligne qui défile */
  .fil-ariane { display: none; }
  .dossier-tete { position: relative; flex-wrap: nowrap; align-items: center; gap: 4px; margin: -6px -8px 4px; }
  .dt-retour, .dt-menu { display: flex; width: 44px; height: 44px; flex: none; align-items: center; justify-content: center; color: var(--encre); border-radius: 22px; cursor: pointer; }
  .dt-titre { flex: 1; min-width: 0; }
  .dossier-tete h1 { font-size: 1.15rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dossier-tete p.meta { font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dossier-tete .page-actions { display: none; }
  .dossier-tete .bascule:checked ~ .page-actions { display: flex; flex-direction: column; align-items: stretch; position: absolute; right: 8px; top: 48px; z-index: 30; min-width: 230px; padding: 8px; background: var(--blanc); border: 1px solid var(--ligne); border-radius: 12px; box-shadow: var(--ombre); }
  .dossier-tete .page-actions .btn { width: 100%; min-height: 44px; justify-content: flex-start; }
  .onglets.onglets-dossier { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 14px; padding: 0 12px; }
  .onglets.onglets-dossier::-webkit-scrollbar, .puces::-webkit-scrollbar { display: none; }
  .onglets.onglets-dossier a { flex: none; min-height: 44px; }
  .sous-onglets { flex-wrap: nowrap; overflow-x: auto; margin-top: -4px; }
  .sous-onglets a { flex: none; white-space: nowrap; min-height: 44px; display: flex; align-items: center; }

  /* Listes compactes : 2 lignes par élément, état à droite */
  table.empile.compact tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; align-items: center; padding: 10px 12px; margin-bottom: 8px; }
  table.empile.compact td { padding: 0; min-width: 0; }
  table.empile.compact td[data-l]::before { display: none; }
  table.empile.compact td[data-m="cache"], table.empile.compact td.sel { display: none; }
  table.empile.compact td[data-m="titre"] { grid-column: 1; grid-row: 1; }
  table.empile.compact td[data-m="titre"] .meta, table.empile.compact td[data-m="titre"] .nom-piece { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  table.empile.compact td[data-m="sous"] { grid-column: 1; font-size: .82rem; color: var(--gris); }
  table.empile.compact td[data-m="etat"] { grid-column: 2; grid-row: 1; text-align: right; }
  table.empile.compact td[data-m="etat2"] { grid-column: 2; grid-row: 2; text-align: right; }
  table.empile.compact td[data-m="etat"]:empty, table.empile.compact td[data-m="etat2"]:empty { display: none; }
  table.empile.compact td.vide { grid-column: 1 / -1; }
  table.empile.compact .logo-liste { display: none; }

  /* Ma journée : titre, détail, puis dossier et nature sur une même ligne */
  .travail-ligne { grid-template-columns: 12px minmax(0, 1fr) auto 14px; grid-template-areas: "p t t f" "p d n f"; column-gap: 10px; padding: 10px 14px; }
  .travail-dossier { font-size: .82rem; }
  .travail-nature .statut { font-size: .72rem; padding: 2px 8px; }
  .travail-nature .statut-detail { display: none; }

  /* Zones tactiles d'au moins 40-44 px */
  .btn.petit { min-height: 44px; }
  .portee a { min-height: 44px; display: inline-flex; align-items: center; }
  input[type=checkbox], input[type=radio] { width: 20px; height: 20px; }
  .menu-actions > summary { min-width: 44px; min-height: 44px; }

  /* Débordements */
  fieldset { min-width: 0; }
  .portee { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .portee a { white-space: nowrap; flex: none; }
  .table-wrap { max-width: 100%; }

  /* Échéances : fenêtre de pointage en panneau bas */
  dialog.ech-dialogue { margin: auto 0 0; width: 100%; max-width: 100%; border-radius: 20px 20px 0 0; padding: 18px 20px calc(24px + env(safe-area-inset-bottom)); }
  dialog.ech-dialogue .actions-ligne { display: grid; grid-template-columns: 1fr 1fr; }
  dialog.ech-dialogue #ech-ok, dialog.ech-dialogue #ech-reset { grid-column: 1 / -1; min-height: 52px; font-size: 1.05rem; }
  dialog.ech-dialogue .btn { min-height: 46px; justify-content: center; }
  .ech-montant .saisie-unite { width: 100%; display: flex; }
  .ech-montant .saisie-unite .unite { min-width: 0; font-size: 1.2rem; }
  .ech-montant .saisie-unite input { flex: 1; width: auto; min-width: 0; height: 56px; font-size: 1.5rem; font-weight: 700; }
  .ech-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .ech-types label { justify-content: center; min-height: 44px; border: 1px solid var(--ligne); border-radius: 10px; }
  .ech-types label:has(input:checked) { border-color: var(--turquoise); background: var(--turquoise-pale); font-weight: 700; }
  .ech-types input { position: absolute; opacity: 0; }
}

/* « Demander à Claude » (conversation du dossier) */
.btn-claude { background: var(--encre); border-color: var(--encre); color: #fff; }
.btn-claude:hover, .btn-claude.actif { background: #0B1A2C; color: #fff; }
.claude-chat { max-width: 860px; }
.claude-intro { font-size: .92rem; background: var(--turquoise-pale); border: 0; color: #0B4F5E; }
.claude-fil { display: flex; flex-direction: column; gap: 14px; margin: 16px 0; }
.claude-exemples { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.claude-exemples p { margin: 0; width: 100%; }
.claude-ex { background: var(--blanc); border: 1px solid var(--ligne); border-radius: 999px; padding: 7px 12px; font-size: .88rem; cursor: pointer; }
.claude-ex:hover { border-color: var(--turquoise); }
.claude-msg { display: flex; flex-direction: column; gap: 6px; max-width: 88%; }
.claude-msg.de-cabinet { align-self: flex-end; align-items: flex-end; }
.claude-qui { font-size: .75rem; color: var(--gris); }
.claude-bulle { white-space: pre-line; padding: 12px 14px; border-radius: 14px; line-height: 1.5; }
.de-cabinet .claude-bulle { background: var(--encre); color: #fff; border-bottom-right-radius: 4px; }
.de-claude .claude-bulle { background: var(--blanc); border: 1px solid var(--ligne); border-bottom-left-radius: 4px; }
.claude-reflechit { color: var(--gris, #5b6472); display: flex; align-items: center; gap: 10px; white-space: normal; }
.claude-points { display: inline-flex; gap: 4px; flex: none; }
.claude-points i { width: 7px; height: 7px; border-radius: 50%; background: var(--turquoise); opacity: .35; animation: claude-point 1.2s infinite ease-in-out; }
.claude-points i:nth-child(2) { animation-delay: .2s; } .claude-points i:nth-child(3) { animation-delay: .4s; }
@keyframes claude-point { 0%, 80%, 100% { opacity: .35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .claude-points i { animation: none; opacity: .7; } }
.claude-sans-reponse { white-space: normal; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; color: var(--gris, #5b6472); }
.claude-prop { background: var(--blanc); border: 1px solid var(--turquoise); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; width: 100%; }
.claude-prop p { margin: 0; }
.claude-prop-tete { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.claude-saisie { position: sticky; bottom: 12px; display: flex; flex-direction: column; gap: 8px; padding: 12px; box-shadow: var(--ombre); }
.claude-saisie textarea { width: 100%; resize: vertical; font: inherit; font-size: 16px; border: 1px solid var(--ligne); border-radius: 10px; padding: 10px 12px; box-sizing: border-box; }
.claude-envoi { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
@media (max-width: 760px) { .claude-msg { max-width: 100%; } .claude-saisie { bottom: calc(68px + env(safe-area-inset-bottom)); } }
.menu-utilisateur a.qui { text-decoration: none; } .menu-utilisateur a.qui:hover b { color: var(--turquoise-fonce); }

/* Onglet Pièces (cabinet) : zone de glisser-déposer */
.zone-glisser { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; min-height: 150px; padding: 22px; margin-bottom: 14px; border: 2px dashed #9FDDEB; border-radius: 14px; background: var(--turquoise-pale); color: #075E70; cursor: pointer; transition: background .15s, border-color .15s; }
.zone-glisser input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.zone-glisser b { color: var(--encre); font-size: 1.05rem; }
.zone-glisser:hover, .zone-glisser.survol, body.glisse-en-cours .zone-glisser { background: #D3F3FA; border-color: var(--turquoise); }
.zone-glisser.survol { box-shadow: 0 0 0 4px rgba(0, 191, 225, .18); }
.zone-glisser.pleine { border-style: solid; border-color: var(--turquoise); background: #fff; }
.zone-glisser:focus-within { outline: 2px solid var(--turquoise); outline-offset: 2px; }
/* « Demander à Claude » : pièces jointes */
.claude-saisie { position: sticky; }
.claude-glisser { display: none; }
.claude-survol .claude-glisser { display: flex; position: absolute; inset: 0; z-index: 2; align-items: center; justify-content: center; border: 2px dashed var(--turquoise); border-radius: inherit; background: rgba(230, 248, 252, .95); color: #075E70; font-weight: 700; pointer-events: none; }
.claude-survol .claude-saisie { box-shadow: 0 0 0 4px rgba(0, 191, 225, .25); }
.claude-envoi .claude-trombone { margin-right: auto; display: inline-flex; align-items: center; gap: 6px; position: relative; cursor: pointer; }
.claude-trombone input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.claude-trombone:focus-within { outline: 2px solid var(--turquoise); outline-offset: 2px; }
.claude-pj-liste { display: flex; flex-wrap: wrap; gap: 6px; }
.claude-puce { display: inline-flex; align-items: center; gap: 6px; padding: 4px 4px 4px 10px; border-radius: 999px; background: var(--turquoise-pale); color: #075E70; font-size: .85rem; max-width: 100%; }
.claude-puce button { border: 0; background: transparent; color: inherit; font-size: 1.1rem; line-height: 1; width: 26px; height: 26px; border-radius: 13px; cursor: pointer; }
.claude-puce button:hover { background: rgba(0,0,0,.06); }
.claude-pj { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.claude-pj a { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: .82rem; text-decoration: none; }
.de-cabinet .claude-pj a { background: rgba(255,255,255,.14); color: #fff; }
.de-claude .claude-pj a { background: var(--turquoise-pale); color: #075E70; }
/* Banque : règle créée depuis un libellé surligné */
.lib-op { cursor: text; }
.lib-op::selection, .lib-op *::selection { background: #BFEFF8; }
dialog.regle-dialogue { width: min(620px, calc(100vw - 32px)); }
dialog.regle-dialogue .alerte { margin-bottom: 0; }
.regle-flottant { position: absolute; z-index: 50; box-shadow: 0 6px 20px rgba(19,36,58,.25); max-width: 260px; white-space: normal; text-align: left; }
.regle-flottant[hidden] { display: none; }
@media (max-width: 760px) { dialog.regle-dialogue { width: 100%; max-height: 92vh; overflow-y: auto; } }
@media (max-width: 760px) {
  dialog.regle-dialogue .ligne-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  dialog.regle-dialogue .ligne-form .champ { min-width: 0; }
  dialog.regle-dialogue .ligne-form input, dialog.regle-dialogue .ligne-form select { width: 100%; }
}

/* ===== Vue « comptable » (Banque › Opérations, Pièces › Dépôts) : pleine largeur, une ligne par élément ===== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cabinet-corps main.pleine-largeur { max-width: none; padding: 18px 24px 40px; }
.kpi-bande { display: flex; flex-wrap: wrap; align-items: stretch; background: var(--blanc, #fff); border: 1px solid var(--ligne); border-radius: 10px; margin: 0 0 10px; }
.kpi { display: flex; flex-direction: column; justify-content: center; padding: 8px 12px; border-right: 1px solid #EEF2F6; min-width: 0; }
.kpi > span { font-size: .72rem; color: var(--gris); white-space: nowrap; }
.kpi > b { font-size: 1rem; color: var(--encre); font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi > b a { color: var(--turquoise-fonce, #0B6A7D); text-decoration: none; }
.kpi .kpi-alerte { color: var(--rouge); }
.kpi-actions { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 10px; }
.kpi-actions form { display: flex; gap: 8px; margin: 0; }
.bandeau-fin { margin: 0 0 10px; }
.reglages-banque { margin: 0 0 10px; padding: 10px 16px; }
.reglages-banque > summary { cursor: pointer; }
.journal-outils { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 8px; }
.journal-outils .portee { margin: 0; }
.journal-outils select, .journal-outils input[type=search] { height: 32px; padding: 0 10px; border: 1px solid #D5DCE5; border-radius: 8px; font: inherit; font-size: .88rem; background: #fff; }
.journal-outils input[type=search] { width: 260px; }
.journal-astuce { margin-left: auto; }
.cpt { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8rem; padding: 2px 6px; border-radius: 5px; background: #F1F4F8; color: var(--encre); border: 0; line-height: 1.4; }
button.cpt { cursor: text; }
button.cpt:hover, button.cpt:focus-visible { outline: 1px solid var(--turquoise); }
.cpt-attente { background: #FFE7CC; color: #8A4300; }
.cpt-sug { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .75rem; color: #9AA7B6; }
.cpt-frais { display: block; margin-top: 2px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .72rem; white-space: nowrap; }
/* Libellé de l'écriture (30 caractères, Génération Expert) sous le libellé du relevé */
.lib-ecr-ligne { display: block; margin-top: 2px; }
.lib-ecr { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .72rem; color: #5B6B7E; background: transparent; border: 0; padding: 0; text-align: left; }
button.lib-ecr { cursor: text; }
button.lib-ecr:hover, button.lib-ecr:focus-visible { color: var(--encre); text-decoration: underline dotted; }
.lib-saisie { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .75rem; width: 100%; max-width: 32ch; margin-top: 2px; }
.lib-compteur { display: block; font-size: .7rem; }
.orig { display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; border-radius: 5px; font-size: .7rem; font-weight: 700; background: #EDF1F6; color: #3B4C63; }
.orig-R { background: #E6F8FC; color: #0B6A7D; } .orig-C { background: #EEEBFB; color: #4B3BA6; } .orig-P { background: #E7F6EE; color: #0F6B47; }
.orig-A { background: #FFE7CC; color: #8A4300; } .orig-M { background: #13243A; color: #fff; }
.j-deplier { border: 0; background: none; color: var(--gris); cursor: pointer; padding: 0 4px 0 0; font-size: .8rem; }
.j-deplier[aria-expanded="true"] { transform: rotate(90deg); }
.jd-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.jd-titre { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--gris); margin-bottom: 2px; }
.jd-claude { color: #4B3BA6; } .jd-question { color: #8A4300; }
.jd-ecr { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8rem; }
.cpt-saisie { width: 92px; height: 24px; box-sizing: border-box; border: 2px solid var(--turquoise); border-radius: 6px; padding: 0 6px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8rem; }
.cpt-aide td { background: #FFFFFF !important; padding: 6px 12px !important; font-size: .85rem; }
.cpt-aide label { display: inline-flex; gap: 6px; align-items: center; margin-left: 14px; font-weight: 500; color: var(--encre); }
.cpt-aide .erreur { color: var(--rouge); margin-left: 14px; }
@media (min-width: 761px) {
  .journal-cadre { background: #fff; border: 1px solid var(--ligne); border-radius: 10px; overflow: auto; max-height: calc(100vh - 150px); }
  table.journal { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .84rem; table-layout: fixed; }
  table.journal thead th { position: sticky; top: 0; z-index: 2; background: #F1F4F8; border-bottom: 1px solid var(--ligne); height: 32px; padding: 0 8px; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #4A5A70; text-align: left; white-space: nowrap; }
  table.journal td { height: 32px; padding: 0 8px; border-bottom: 1px solid #EEF2F6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; font-variant-numeric: tabular-nums; }
  table.journal tbody tr:nth-child(even of :not(.journal-detail)) td { background: #FAFBFD; }
  table.journal tbody tr:hover td { background: #F3FAFC; }
  table.journal tr.ligne-attente td { background: #FFF8EE; }
  table.journal .num { text-align: right; }
  table.journal th.sel, table.journal td.sel { width: 34px; padding-left: 12px; }
  table.journal td.act { overflow: visible; text-align: center; }
  table.journal .menu-actions > div { min-width: 260px; white-space: normal; }
  table.journal tr.journal-detail td { height: auto; white-space: normal; background: #F7FCFD; border-bottom: 1px solid #DCEFF4; padding: 10px 12px 12px 48px; }
  table.journal tfoot td { position: sticky; bottom: 0; background: #F1F4F8; border-top: 1px solid #D5DCE5; font-weight: 700; color: var(--encre); height: 34px; }
  table.journal tfoot td.meta { font-weight: 500; }
  table.journal .statut { font-size: .7rem; padding: 2px 7px; }
  table.journal td .j-cpt { font-size: .75rem; }
  /* Banque : largeurs des colonnes */
  table.journal[data-journal] th:nth-child(2) { width: 96px; }
  table.journal[data-journal] th:nth-child(4), table.journal[data-journal] th:nth-child(5) { width: 96px; }
  table.journal[data-journal] th:nth-child(6) { width: 118px; }
  table.journal[data-journal] th:nth-child(7) { width: 88px; }
  table.journal[data-journal] th:nth-child(8) { width: 54px; }
  table.journal[data-journal] th:nth-child(9) { width: 48px; }
  table.journal[data-journal] th:nth-child(10) { width: 19%; }
  table.journal[data-journal] th:nth-child(11) { width: 112px; }
}
@media (max-width: 760px) {
  .kpi { flex: 1 1 45%; border-right: 0; border-bottom: 1px solid #EEF2F6; }
  .kpi-actions { margin: 0; width: 100%; }
  .journal-astuce { display: none; }
  .journal-outils input[type=search] { width: 100%; }
  table.journal tr.journal-detail { display: none !important; }
  table.journal tfoot { display: none; }
  table.journal .j-justif .meta, table.journal .j-cpt { display: none; }
  table.journal .j-lib .lib-op { white-space: normal; }
  .j-deplier { display: none; }
}
table.journal tr[hidden] { display: none; }
/* Onglet Banque simplifié (02/11/2026) : justificatif, validation, opérations grisées dans « Toutes » */
.statut.jus-recue { background: var(--vert-pale); color: #0D5C3E; }
.statut.jus-usage { background: #F1F3F6; color: #4A5563; }
.statut.jus-reponse { background: var(--turquoise-pale); color: #075E70; }
.statut.jus-demandee { background: var(--orange-pale); color: #8A4B08; }
.statut.jus-attendue { background: #FFF; color: #5B697D; box-shadow: inset 0 0 0 1px #D5DCE5; }
.statut.jus-saisie { background: var(--vert-pale); color: #0D5C3E; text-decoration: none; font-size: .7rem; padding: 2px 7px; }
table.journal td.act { white-space: nowrap; }
table.journal td.act form.inline { display: inline; }
table.journal td.act details.menu-actions { display: inline-block; vertical-align: middle; }
table.journal .j-valider { padding: 3px 10px; min-height: 0; font-size: .75rem; }
table.journal tr.ligne-grisee td { color: #8A96A6; }
table.journal tr.ligne-grisee td .cpt { opacity: .6; }
.portee .portee-nb { font-weight: 700; margin-left: 2px; }
.statut.jus-exportee { background: #EEF1F5; color: #5B697D; text-decoration: none; font-size: .7rem; padding: 2px 7px; }
.bouton-historique { margin-left: auto; }
.hist-dates { display: inline-flex; align-items: center; gap: 6px; }
.ged-table tr.ligne-grisee td, .ged-table tr.ligne-grisee td a { color: #8A96A6; }
/* Dépôts en vue comptable */
.j-alerte { color: var(--rouge); font-size: .75rem; font-weight: 600; }
.j-ecr { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .78rem; }
.j-ecr a { color: #4A5A70; text-decoration: none; }
.j-ecr .ecr-av { display: block; font-family: system-ui, -apple-system, sans-serif; font-size: .74rem; color: var(--orange); margin-top: 2px; white-space: normal; line-height: 1.25; }
.j-actions { display: inline-flex; align-items: center; gap: 6px; }
.j-actions .voir-piece { color: #4A5A70; display: inline-flex; }
.barre-selection-bas { position: sticky; bottom: 0; top: auto; background: var(--encre); color: #fff; border: 0; border-radius: 0 0 10px 10px; margin: 0; }
.barre-selection-bas .meta { color: rgba(255,255,255,.75); }
.barre-selection-bas .btn.lien { color: #fff; }
@media (min-width: 761px) {
  /* Largeurs par colonne nommée (13/11/2026, alignement : par position, la colonne Pièce héritait de 84 px sur Activité
     et s'écrasait) ; la pièce prend la place restante, jamais moins de 200 px */
  table.journal-depots th.sel { width: 34px; }
  table.journal-depots th.c-num { width: 108px; }
  table.journal-depots th.c-recu { width: 70px; }
  table.journal-depots th.c-deposant { width: 96px; }
  table.journal-depots th.c-dossier { width: 13%; }
  table.journal-depots th.c-piece { width: 20%; }
  table.journal-depots th.c-type { width: 84px; }
  table.journal-depots th.c-date { width: 88px; }
  table.journal-depots th.c-tiers { width: 12%; }
  table.journal-depots th.c-montant { width: 96px; }
  table.journal-depots th.c-statut { width: 128px; }
  table.journal-depots th.c-ecr { width: 84px; }
  table.journal-depots th.act { width: 64px; }
  table.journal-depots.avec-piste th.c-statut { width: 150px; }
  table.journal-depots .statut-detail { display: none; }
  /* Pièce : nom sur une ligne, message de Claude sur une ligne coupée (détail au survol et dans la fiche) */
  table.journal-depots td[data-l="Pièce"], table.journal-depots td[data-l="Pièce"] .nom-piece { white-space: nowrap !important; word-break: normal; hyphens: none; }
  table.journal-depots td[data-l="Pièce"] .nom-piece, table.journal-depots td[data-l="Pièce"] .meta { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

.journal-outils select { width: auto; min-width: 0; }
.journal-outils .champ { margin: 0; }
@media (max-width: 760px) {
  table.journal[data-journal] td[data-l="Crédit"]:not(:empty)::before { content: '+ '; display: inline; font-size: inherit; color: #0F6B47; text-transform: none; letter-spacing: 0; font-weight: 600; }
  table.journal[data-journal] td[data-l="Crédit"]:not(:empty) { color: #0F6B47; font-weight: 600; }
}
.liste-ibans { list-style: none; margin: 0; padding: 0; }
.liste-ibans li { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--ligne); }
.liste-ibans li .ligne-form form { margin: 0; }
.suggestion-dossier { background: var(--turquoise-pale); border-radius: 8px; padding: 6px 10px; }
.apercu-sobank { white-space: pre-wrap; font-size: .75rem; background: #F6F8FB; border: 1px solid var(--ligne); border-radius: 6px; padding: 8px; margin: 4px 0 0; max-width: 100%; overflow-x: auto; }

/* ---------- Accueil cabinet : dossiers + échéances fiscales (24/10/2026) ---------- */
.accueil-grille { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .accueil-grille { grid-template-columns: 1fr; } }
.accueil-cabinet { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; }
.accueil-liens { font-size: .88rem; }
.accueil-liens a { color: var(--gris); }
.accueil-dossiers .tout-ok { margin: 14px 0 4px; }
.dossiers-liste { list-style: none; margin: 12px -24px -8px; padding: 0; }
.dossiers-liste li { display: grid; grid-template-columns: 14px minmax(140px, 220px) 1fr auto; gap: 12px; align-items: center; padding: 11px 24px; border-top: 1px solid var(--ligne); }
.dossiers-liste li:hover { background: var(--fond); }
.dl-nom { font-weight: 700; color: var(--encre); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-nom:hover { text-decoration: underline; }
.dl-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge-tache { display: inline-flex; gap: 4px; align-items: baseline; padding: 3px 10px; border-radius: 14px; background: var(--turquoise-pale); color: var(--turquoise-fonce); font-size: .84rem; text-decoration: none; white-space: nowrap; }
.badge-tache b { color: var(--encre); }
.badge-tache.urgent { background: var(--rouge-pale); color: var(--rouge); }
.badge-tache.urgent b { color: var(--rouge); }
.badge-tache:hover { filter: brightness(.95); }
.dl-depuis { white-space: nowrap; font-size: .82rem; }
@media (max-width: 600px) {
  .dossiers-liste { margin: 10px -16px -6px; }
  .dossiers-liste li { grid-template-columns: 12px 1fr auto; padding: 10px 16px; }
  .dl-badges { grid-column: 2 / 4; }
  .dl-depuis { grid-row: 1; grid-column: 3; }
}
.echeances-liste { list-style: none; margin: 12px 0 0; padding: 0; }
.echeances-liste li { display: grid; grid-template-columns: 46px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--ligne); }
.echeances-liste li:first-child { border-top: 0; }
.ech-date { display: flex; flex-direction: column; align-items: center; line-height: 1.05; font-size: .72rem; color: var(--gris); text-transform: uppercase; background: var(--fond); border-radius: 8px; padding: 5px 0; }
.ech-date b { font-size: 1.15rem; color: var(--encre); }
.ech-quoi { display: flex; flex-direction: column; min-width: 0; }
.ech-quoi b { font-size: .92rem; color: var(--encre); }
.ech-quoi .meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; }
.ech-quand { font-size: .8rem; font-weight: 600; color: var(--gris); white-space: nowrap; }
.echeances-liste li.proche .ech-quand { color: var(--orange); }
.echeances-liste li.retard .ech-quand { color: var(--rouge); }
.echeances-liste li.retard .ech-date { background: var(--rouge-pale); }
/* Rôle d'un FEC : à réviser / référence */
.pastille-role { border: 0; cursor: pointer; padding: 4px 12px; border-radius: 14px; font: inherit; font-size: .84rem; font-weight: 600; }
.pastille-role.reviser { background: var(--turquoise-pale); color: var(--turquoise-fonce); }
.pastille-role.reference { background: var(--fond); color: var(--gris); border: 1px solid var(--ligne); }
.pastille-role:hover { filter: brightness(.95); }
/* Tableau de bord : récapitulatif mensuel par exercice */
.exercice-recap { border-top: 1px solid var(--ligne); }
.exercice-recap > summary { cursor: pointer; padding: 12px 20px; list-style: none; display: flex; gap: 10px; align-items: baseline; }
.exercice-recap > summary::before { content: '▸'; color: var(--gris); }
.exercice-recap[open] > summary::before { content: '▾'; }
.exercice-recap .tableau-mois td .ecart, .exercice-recap .tableau-mois td .meta { font-size: .72rem; font-weight: 500; }
.ecart.hausse { color: var(--vert); } .ecart.baisse { color: var(--rouge); }
.note-marge { padding: 8px 20px 14px; margin: 0; }
/* Profils client : principal / collaborateur */
.profil-client { margin-top: 6px; }
.profil-client > summary { display: inline-block; cursor: pointer; list-style: none; font-size: .8rem; }
.form-profil-client { margin-top: 10px; padding: 12px 14px; background: var(--fond); border-radius: 10px; }
.profil-choix { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 12px; }
.droits-cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 14px; margin: 2px 0 0 26px; font-size: .9rem; }
/* Détail mensuel : « + », comptes, part variable, seuil, écritures */
.tableau-mois .plus { width: 20px; height: 20px; padding: 0; border: 1px solid var(--ligne); border-radius: 5px; background: #fff; color: var(--turquoise-fonce); font-weight: 700; line-height: 1; cursor: pointer; margin-right: 4px; }
.tableau-mois tr.detail-compte th { font-weight: 400; padding-left: 34px; font-size: .8rem; color: var(--texte); white-space: normal; min-width: 220px; }
.tableau-mois tr.detail-compte td { font-size: .78rem; color: var(--texte); background: #FBFCFE; }
.tableau-mois tr.detail-compte a { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--gris); }
.tableau-mois tr.detail-compte a:hover { color: var(--turquoise-fonce); }
.tableau-mois tr.ajustement th, .tableau-mois tr.ajustement td { font-style: italic; color: var(--gris); }
.part-variable { display: inline-block; margin-left: 6px; }
.part-variable select { font-size: .72rem; padding: 1px 4px; height: auto; width: auto; border-radius: 6px; }
.src-ms { font-size: .62rem; color: var(--turquoise-fonce); margin-left: 1px; }
.seuil { margin: 0 20px 18px; padding: 14px 16px; border-radius: 12px; background: var(--fond); }
.seuil-verdict { margin-bottom: 10px; font-size: .98rem; }
.seuil-verdict.oui b { color: var(--vert); } .seuil-verdict.non b { color: var(--rouge); } .seuil-verdict.attente b { color: var(--orange); }
.seuil-chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px 18px; margin: 0; }
.seuil-chiffres dt { font-size: .76rem; color: var(--gris); } .seuil-chiffres dd { margin: 2px 0 0; font-weight: 700; color: var(--encre); }
.lignes-fec { width: min(720px, 96vw); max-height: 86vh; border: 0; border-radius: 14px; padding: 0; box-shadow: 0 20px 60px rgba(19,36,58,.25); }
.lignes-fec::backdrop { background: rgba(19,36,58,.35); }
.lf-tete { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--ligne); }
.lf-fermer { border: 0; background: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--gris); }
#lf-filtre { margin: 10px 18px 0; width: calc(100% - 36px); }
.lf-corps { overflow: auto; max-height: calc(86vh - 130px); padding: 6px 18px 14px; }
.lf-corps table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.lf-corps th, .lf-corps td { padding: 6px 4px; border-bottom: 1px solid var(--ligne); text-align: left; }
.lf-corps .num { text-align: right; white-space: nowrap; } .lf-corps td.negatif { color: var(--rouge); }
.lf-corps tfoot th { border-bottom: 0; font-weight: 700; }
@media (max-width: 600px) { .lignes-fec { width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0; margin: 0; } .lf-corps { max-height: calc(100vh - 130px); } }
/* Tableau de bord : choix de l'exercice */
.choix-exercice { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 14px; }
.choix-exercice label { font-weight: 600; color: var(--texte); }
.choix-exercice select { min-width: 220px; padding: 8px 12px; border: 1px solid var(--ligne); border-radius: 8px; background: #fff; font: inherit; font-weight: 600; }
.js .choix-exercice button { display: none; }
/* Prévisionnel : seuil prévu, demande de mission complémentaire */
.seuil-prevu { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: var(--fond); }
.seuil-prevu.oui b { color: var(--vert); } .seuil-prevu.attente b { color: var(--turquoise-fonce); } .seuil-prevu.non b { color: var(--orange); }
.cta-mission { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; border-left: 4px solid var(--turquoise); }
.cta-mission > div { display: flex; flex-direction: column; gap: 4px; flex: 1 1 320px; }

/* Actions groupées (24/10/2026) : barre flottante en bas de l'écran dès qu'une ligne est cochée — public/selection.js */
.barre-actions { position: fixed; z-index: 60; left: calc(248px + 24px); right: 24px; bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
  background: var(--encre); color: #fff; border-radius: 12px; padding: 10px 14px; box-shadow: 0 10px 30px rgba(10, 30, 60, .28); }
.barre-actions[hidden] { display: none; }
.barre-actions [data-sel-n] { margin-right: 6px; white-space: nowrap; }
.barre-actions .btn { white-space: nowrap; }
.barre-actions .btn.second { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.barre-actions .btn.lien { color: #fff; }
.barre-actions .btn.danger { background: #D64545; border-color: #D64545; color: #fff; }
.barre-actions .meta { color: rgba(255,255,255,.75); }
.barre-actions .fin { margin-left: auto; }
.barre-actions details.sel-plus { position: relative; }
.barre-actions details.sel-plus > summary { list-style: none; cursor: pointer; }
.barre-actions details.sel-plus > summary::-webkit-details-marker { display: none; }
.barre-actions details.sel-plus > div { position: absolute; bottom: calc(100% + 10px); left: 0; min-width: 260px; background: #fff; color: var(--texte); border-radius: 10px;
  padding: 12px; box-shadow: 0 10px 30px rgba(10, 30, 60, .25); display: flex; flex-direction: column; gap: 8px; }
.barre-actions details.sel-plus > div .btn.lien { color: var(--turquoise-fonce); }
.barre-actions details.sel-plus select, .barre-actions details.sel-plus input, .barre-actions details.sel-plus textarea { width: 100%; box-sizing: border-box; }
body.avec-barre-actions main { padding-bottom: 96px; }
th.sel, td.sel { width: 30px; text-align: center; }
input.sel, input[data-sel-tout] { width: 17px; height: 17px; accent-color: var(--turquoise-fonce); cursor: pointer; }
tr:has(input.sel:checked) > td { background: var(--turquoise-pale); }
/* Filtres de liste : rangée de puces et listes déroulantes */
.filtres { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 12px; }
.filtres select, .filtres input[type=search], .filtres input[type=date], .filtres input[type=number] { padding: 6px 10px; border: 1px solid var(--ligne); border-radius: 8px; background: #fff; font: inherit; font-size: .9rem; }
.filtres .meta { font-size: .85rem; }
.filtres .effacer { font-size: .85rem; }
@media (max-width: 900px) { .barre-actions { left: 12px; right: 12px; } }
@media (max-width: 760px) {
  .barre-actions { left: 8px; right: 8px; bottom: calc(68px + env(safe-area-inset-bottom)); padding: 8px 10px; }
  .barre-actions .fin { margin-left: 0; }
  .barre-actions details.sel-plus > div { position: fixed; left: 8px; right: 8px; bottom: calc(140px + env(safe-area-inset-bottom)); min-width: 0; }
  body.avec-barre-actions main { padding-bottom: 170px; }
}
.dans-cadre .barre-actions { left: 12px; right: 12px; }
.rv-tete { align-items: center; }
.rv:has(input.sel:checked) { outline: 2px solid var(--turquoise); outline-offset: -2px; }

/* Échéances : sélection multiple */
.ech-cel { display: flex; align-items: center; gap: 6px; }
.ech-cel .ech { flex: 1; min-width: 0; }
.ech-sel { display: none; flex: 0 0 auto; }
body.ech-mode-sel .ech-sel { display: inline-block; }
body.ech-mode-sel .ech-cel:has(input.ech-sel:checked) .ech { outline: 2px solid var(--turquoise); outline-offset: 1px; }
.ech-liste li.ech-cel .ech-sel { margin-left: 12px; }
/* Filtres : champs à leur taille naturelle (les styles de formulaire généraux les étirent) */
.filtres label, .journal-outils label { display: inline; margin: 0; }
.filtres select, .filtres input:not([type=checkbox]), .journal-outils input[type=date], .journal-outils input[type=number] { width: auto; flex: 0 0 auto; max-width: 100%; margin: 0; }
.filtres input[type=search] { min-width: 220px; }
.journal-outils input[type=date] { padding: 6px 8px; border: 1px solid var(--ligne); border-radius: 8px; font: inherit; font-size: .9rem; }
.barre-actions details.sel-plus > div label.case { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.barre-actions details.sel-plus > div label.case input { width: auto; }
.barre-actions details.sel-plus > div input[type=text], .barre-actions details.sel-plus > div input:not([type]), .barre-actions details.sel-plus > div select, .barre-actions details.sel-plus > div textarea { padding: 8px 10px; border: 1px solid var(--ligne); border-radius: 8px; font: inherit; }
/* Échéances en sélection multiple : la case de l'échéance elle-même se coche */
body.ech-mode-sel .ech-sel { display: none; }
body.ech-mode-sel .ech-cel:has(input.ech-sel:checked) .ech-case { background: var(--turquoise-fonce); border-color: var(--turquoise-fonce); box-shadow: inset 0 0 0 3px #fff; }
body.ech-mode-sel .ech:not(:disabled) { cursor: copy; }
@media (max-width: 760px) {
  table.empile.compact tr:has(td.sel input.sel) { grid-template-columns: 30px minmax(0, 1fr) auto; }
  table.empile.compact tr:has(td.sel input.sel) td.sel { display: block; grid-column: 1; grid-row: 1 / span 2; position: static; align-self: center; padding: 0; }
  table.empile.compact tr:has(td.sel input.sel) td[data-m="titre"], table.empile.compact tr:has(td.sel input.sel) td[data-m="sous"] { grid-column: 2; }
  table.empile.compact tr:has(td.sel input.sel) td[data-m="etat"], table.empile.compact tr:has(td.sel input.sel) td[data-m="etat2"] { grid-column: 3; }
  table.empile.compact th.sel { display: none; }
  .filtres input[type=search] { min-width: 0; flex: 1 1 100%; }
}
.barre-actions details.sel-plus > div .meta { color: var(--gris); }

/* Espace client : pas de menu latéral */
body.espace-client .barre-actions { left: 24px; right: 24px; max-width: 1120px; margin: 0 auto; }
@media (max-width: 760px) { body.espace-client .barre-actions { left: 8px; right: 8px; } }

/* Lettre de mission : en-tête (logo du groupe, logo de l'Ordre de Paris Île-de-France, filet souligné de turquoise) */
.lm-entete { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 14px; margin-bottom: 22px; border-bottom: 1px solid #D5DCE4; position: relative; }
.lm-entete-g { position: relative; }
.lm-entete-g img { height: 46px; width: auto; display: block; }
.lm-entete-g b { font-size: 1.2rem; color: #0B1F3A; }
.lm-entete-g::after { content: ''; position: absolute; left: 0; right: 0; bottom: -15px; height: 3px; background: #55BDDD; }
.lm-entete-oec { height: 36px; width: auto; display: block; }
@media (max-width: 600px) { .lm-entete-g img { height: 32px; } .lm-entete-oec { height: 24px; } }

/* « Tout sélectionner » sur téléphone (l'en-tête du tableau est masqué) */
.sel-tout-mobile { display: none; }
@media (max-width: 760px) {
  .sel-tout-mobile { display: flex; align-items: center; gap: 10px; margin: 4px 0 8px; padding: 10px 12px; background: #fff; border: 1px solid var(--ligne); border-radius: 10px; font-weight: 600; }
  .sel-tout-mobile input { width: 20px; height: 20px; }
}

/* Charges annuelles réparties sur 12 mois */
.badge-reparti { display: inline-block; font-size: .68rem; font-weight: 700; color: var(--turquoise-fonce); background: var(--turquoise-pale); border-radius: 6px; padding: 0 5px; margin-left: 4px; vertical-align: middle; }
.annuels { margin-top: 16px; }
.annuels summary { cursor: pointer; }
.annuels-table { width: 100%; }
.annuels-table td, .annuels-table th { padding: 6px 8px; border-bottom: 1px solid var(--ligne); }

.retard-avancement { color: var(--rouge); font-weight: 600; }

/* Validation express */
.badge-sure { display: inline-block; font-size: .72rem; font-weight: 700; color: #1F7A4D; background: #E3F5EC; border-radius: 6px; padding: 1px 6px; }
.alerte.express { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.alerte.express .btn { margin-left: auto; }
td .raisons { font-size: .75rem; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge-nb.manquantes { background: #F2A33A; }
td a .badge-nb.manquantes { display: inline-block; width: auto; min-width: 24px; padding: 1px 8px; }

/* Sélecteur de comptes (plan comptable du dossier) */
.plan-liste { position: fixed; z-index: 200; width: min(460px, calc(100vw - 16px)); max-height: 300px; overflow-y: auto; background: #fff; border: 1px solid var(--ligne); border-radius: 10px; box-shadow: 0 12px 32px rgba(10, 30, 60, .2); padding: 4px; font-size: .88rem; }
.plan-item { display: flex; gap: 10px; align-items: baseline; padding: 6px 8px; border-radius: 6px; cursor: pointer; }
.plan-item b { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; min-width: 84px; color: var(--encre); }
.plan-item span { flex: 1; color: var(--texte); }
.plan-item:hover, .plan-item.actif { background: var(--turquoise-pale); }
.plan-tag { font-style: normal; font-size: .7rem; color: var(--gris); background: #F1F3F6; border-radius: 4px; padding: 0 5px; white-space: nowrap; }
.plan-groupe { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--gris); padding: 8px 8px 4px; border-top: 1px solid var(--ligne); margin-top: 4px; }
.plan-vide { padding: 8px; color: var(--gris); }
.plan-creer { color: var(--turquoise-fonce); font-weight: 600; border-top: 1px solid var(--ligne); margin-top: 4px; }
.plan-form { display: flex; flex-direction: column; gap: 6px; padding: 8px; }
.plan-form input, .plan-form select { padding: 6px 8px; border: 1px solid var(--ligne); border-radius: 6px; font: inherit; }
.plan-actions { display: flex; gap: 8px; }
.plan-erreur { color: var(--rouge); font-size: .82rem; }
input.compte-inconnu { border-color: #F2A33A !important; background: #FFF8EC; }
/* Qualification du compte dans la fenêtre des écritures du tableau de bord */
.lf-qualif { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 8px 0 10px; border-bottom: 1px solid var(--ligne); margin-bottom: 8px; }
.lf-qualif label { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; font-size: .88rem; }
.lf-qualif select { padding: 4px 8px; border: 1px solid var(--ligne); border-radius: 6px; font: inherit; font-weight: 400; }
.lignes-fec .lf-qualif { padding-left: 18px; padding-right: 18px; }

/* Pastille rouge (badge-urgent) */
.badge-nb.badge-urgent { background: var(--rouge, #D9483B); }

/* Dépôt par le cabinet : choix d'un dossier, fichiers illisibles (27/10/2026) */
.zone-dossier { margin: 6px 0 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.erreur-texte { color: var(--rouge); }

/* Page d'un dépôt (27/10/2026, retours Kévin) : une pièce par bloc, sans défilement horizontal */
table.pieces-depot thead { display: none; }
table.pieces-depot tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 12px 0; border-bottom: 1px solid var(--ligne); }
table.pieces-depot td { display: block; padding: 0; border: 0; min-width: 0; text-align: left; }
table.pieces-depot td:nth-child(1) { grid-column: 1; grid-row: 1; overflow-wrap: anywhere; }
table.pieces-depot td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
table.pieces-depot td:nth-child(3) { grid-column: 2; grid-row: 1; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: flex-start; }
table.pieces-depot td:nth-child(3) > * { margin: 0 !important; }
.depot-grille .depot-gauche .table-wrap:has(table.pieces-depot) { overflow-x: visible; }
.note-ia, .non-comptable { overflow-wrap: anywhere; }
@media (min-width: 761px) and (max-width: 1440px) {
  /* Écran moyen : le déposant (souvent le client lui-même) laisse sa place au tiers */
  table.journal-depots:not(.avec-dossier) th:nth-child(4), table.journal-depots:not(.avec-dossier) td:nth-child(4) { display: none; }
}
@media (min-width: 761px) and (max-width: 1320px) {
  table.journal-depots:not(.avec-dossier) th:nth-child(3), table.journal-depots:not(.avec-dossier) td:nth-child(3) { display: none; }
}
/* Fiabilité des écritures proposées (27/10/2026) */
.fiab { display: inline-block; font-size: .7rem; font-weight: 700; border-radius: 999px; padding: 1px 8px; }
.fiab::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; background: currentColor; }
.fiab-haute { color: #14653F; background: #E3F5EC; }
.fiab-moyenne { color: #8A4B05; background: #FDF1E3; }
.fiab-basse { color: #A11D14; background: #FDECEA; }
.recalcul-ecritures { display: flex; justify-content: flex-end; margin: -4px 0 8px; }
/* Fiche du fournisseur / client sur la page d'une pièce (27/10/2026) */
.fiche-tiers { margin-top: 10px; border: 1px solid var(--ligne); border-radius: 8px; padding: 8px 12px; background: #FBFCFE; }
.fiche-tiers > summary { cursor: pointer; }
.fiche-tiers-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 12px; margin-top: 10px; }
.fiche-tiers-form .champ { margin: 0; }
.fiche-tiers-form .champ input { width: 100%; box-sizing: border-box; }
.fiche-tiers-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
/* Bulle « Claude » sur les pages d'un dossier (27/10/2026, retours Kévin) : l'assistant s'ouvre dans le panneau, sans quitter la page */
.bulle-claude { position: fixed; right: 22px; bottom: 22px; z-index: 40; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 18px 0 14px; border-radius: 999px;
  background: var(--encre); color: #fff; text-decoration: none; font-weight: 600; box-shadow: 0 6px 20px rgba(19,36,58,.25); }
.bulle-claude:hover { background: #0E1B2C; color: #fff; }
.bulle-claude:focus-visible { outline: 3px solid var(--turquoise); outline-offset: 2px; }
@media (max-width: 760px) { .bulle-claude { right: 14px; bottom: 76px; padding: 0 14px; } .bulle-claude span { display: none; } }
@media print { .bulle-claude { display: none; } }
/* Onglet Banque traité compte par compte (27/10/2026) */
.comptes-banque { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.compte-carte { flex: 1 1 200px; max-width: 280px; display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border: 1px solid var(--ligne); border-radius: 10px; background: var(--blanc); color: var(--texte); text-decoration: none; }
.compte-carte:hover { border-color: var(--turquoise); }
.compte-carte.actif { border: 2px solid var(--turquoise); padding: 11px 13px; background: var(--turquoise-pale); }
.compte-carte.tous { background: var(--fond); }
.compte-carte .cc-nom { font-weight: 700; color: var(--encre); }
.compte-carte .cc-cpt { font-size: .8rem; color: var(--gris); font-family: ui-monospace, Menlo, Consolas, monospace; }
.compte-carte .cc-solde { font-variant-numeric: tabular-nums; font-weight: 600; }
.compte-carte .cc-etat { font-size: .82rem; }
.cc-a-traiter { color: var(--orange); }
.cc-ok { color: var(--vert); font-weight: 600; }
.cc-ecart { color: var(--rouge); font-weight: 600; font-size: .78rem; display: block; }
.compte-carte .cc-ecart { display: inline; }
/* Champs « fichier » (FEC, RIB, relevés, logo…) : bouton aux couleurs du portail au lieu du bouton du navigateur (27/10/2026) */
input[type=file] { font: inherit; font-size: .88rem; color: var(--gris); max-width: 100%; }
input[type=file]::file-selector-button { font: inherit; font-weight: 600; font-size: .88rem; margin-right: 10px; padding: 7px 14px; border-radius: 8px;
  border: 1px solid #CBD3DE; background: #fff; color: var(--encre); cursor: pointer; }
input[type=file]::file-selector-button:hover { border-color: var(--turquoise); color: var(--turquoise-fonce); }
/* Téléphone : les onglets du dossier défilent ; un fondu à droite l'indique (27/10/2026) */
@media (max-width: 760px) {
  .onglets-dossier { -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); padding-right: 28px; }
}
/* Liste des dossiers condensée et triable (27/10/2026) */
table.liste-dossiers td.d-nom a { text-decoration: none; color: var(--encre); }
table.liste-dossiers td.d-nom a:hover b { color: var(--turquoise-fonce); text-decoration: underline; }
table.liste-dossiers td.d-nom b { font-weight: 700; }
table.liste-dossiers .d-infos { margin-top: 2px; }
.d-sans-client { color: var(--orange); }
.d-vide { color: var(--gris); font-size: .82rem; }
.retard-avancement .d-vide { color: var(--rouge); }
.d-afaire { display: inline-flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.d-pastille { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--turquoise-pale); color: var(--turquoise-fonce); text-decoration: none; white-space: nowrap; }
.d-pastille:hover { background: #CDEFF7; }
@media (min-width: 761px) { table.liste-dossiers th:nth-child(2) { width: 34%; } table.liste-dossiers th:nth-child(n+4) { white-space: nowrap; } }
.th-tri { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font: inherit; text-transform: inherit; letter-spacing: inherit; color: inherit; }
.th-tri::after { content: '⇅'; opacity: .5; font-size: 1.15em; line-height: 1; font-weight: 700; margin-left: 2px; }
.th-tri:hover::after { opacity: .9; color: var(--turquoise-fonce); }
.th-tri:focus-visible { outline: 2px solid var(--turquoise); outline-offset: 2px; border-radius: 4px; }
th.tri-asc .th-tri::after { content: '▲'; opacity: 1; color: var(--turquoise-fonce); font-size: .95em; }
th.tri-desc .th-tri::after { content: '▼'; opacity: 1; color: var(--turquoise-fonce); font-size: .95em; }
.th-tri:focus-visible { outline: 2px solid var(--turquoise); outline-offset: 2px; border-radius: 3px; }
/* Banque : filtres avancés repliés (sens, origine, pièce, période) — la liste remonte d'une ligne (27/10/2026) */
.filtres-avances { position: relative; }
.filtres-avances > summary { list-style: none; cursor: pointer; }
.filtres-avances > summary::-webkit-details-marker { display: none; }
.filtres-avances-corps { position: absolute; z-index: 30; top: calc(100% + 6px); right: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 10px; align-items: center;
  background: var(--blanc); border: 1px solid var(--ligne); border-radius: 10px; box-shadow: var(--ombre); padding: 14px 16px; min-width: 340px; }
.filtres-avances-corps .meta { text-align: right; }
@media (max-width: 760px) { .filtres-avances-corps { position: static; box-shadow: none; min-width: 0; margin-top: 8px; } }
/* Synthèse du dossier (27/10/2026) : quotidien d'abord ; réglages (banque, paie, collaborateurs) repliés en une ligne chacun */
.reglages-titre { margin: 18px 0 8px; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gris); }
.reglage-bloc { margin: 0 0 10px; }
.reglage-tete { list-style: none; cursor: pointer; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 12px 16px; }
.reglage-tete::-webkit-details-marker { display: none; }
.reglage-tete::before { content: '▸'; color: var(--gris); }
.reglage-bloc[open] > .reglage-tete { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom-color: transparent; }
.reglage-bloc[open] > .reglage-tete::before { content: '▾'; }
.reglage-bloc > .carte { border-top-left-radius: 0; border-top-right-radius: 0; margin-top: 0; }
.reglage-bloc > .carte .profil-etat h2, .reglage-bloc > .carte > h2 { display: none; }
.inviter-bloc { margin-top: 12px; }
.inviter-bloc > summary { list-style: none; display: inline-flex; }
.inviter-bloc > summary::-webkit-details-marker { display: none; }
.inviter-bloc[open] > summary { margin-bottom: 12px; }
/* Accueil client sur téléphone : l'invitation au logo passe sur deux lignes au lieu d'écraser le texte (27/10/2026) */
@media (max-width: 760px) { .invite-logo { flex-wrap: wrap; } .invite-logo > span:nth-child(2) { flex: 1 1 calc(100% - 80px); } .invite-logo > .btn { margin-left: auto; } }
/* Accueil client sans « Mes chiffres » : deux colonnes au lieu d'un trou (27/10/2026) */
@media (min-width: 1001px) { .cockpit:not(:has(.chiffres)) { grid-template-columns: 1.3fr 1fr; } }
/* Pièces manquantes du client (27/10/2026) : progression, dépôt groupé rapproché automatiquement */
.progression-client { display: flex; align-items: center; gap: 12px; margin: 4px 0 14px; font-size: .92rem; }
.pc-barre { flex: 0 1 220px; height: 8px; border-radius: 999px; background: var(--ligne); overflow: hidden; }
.pc-barre span { display: block; height: 100%; background: var(--vert); }
.depot-vrac-manquantes { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; border: 1.5px dashed #9FDDEA; background: var(--turquoise-pale); }
.depot-vrac-manquantes > div { flex: 1 1 280px; display: flex; flex-direction: column; gap: 2px; }
.sp-operation { display: block; margin-top: 2px; }
/* UX lot C (27/10/2026) : travail de Claude en cours, écran de vérification (relevé, libellés, points à vérifier) */
.claude-fond { display: flex; align-items: center; gap: 10px; margin: -4px 0 14px; padding: 8px 14px; border-radius: 8px; background: var(--turquoise-pale); color: var(--turquoise-fonce); font-size: .9rem; }
.claude-fond::before { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: cf-tourne .9s linear infinite; flex: none; }
.claude-fond.fini { background: var(--vert-pale); color: var(--vert); }
.claude-fond.fini::before { animation: none; border: 0; width: auto; height: auto; content: '✓'; font-weight: 700; }
.claude-fond a { color: inherit; font-weight: 600; }
@keyframes cf-tourne { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .claude-fond::before { animation: none; } }
.verif-releve { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; padding: 12px 18px; margin-bottom: 12px; border-left: 4px solid var(--turquoise); }
.vr-titre { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gris); flex-basis: 100%; }
.vr-date { color: var(--gris); font-variant-numeric: tabular-nums; }
.vr-lib { flex: 1 1 240px; font-weight: 600; color: var(--encre); }
.vr-mt { font-weight: 700; font-variant-numeric: tabular-nums; }
.vr-mt.neg { color: var(--rouge); } .vr-mt.pos { color: var(--vert); }
.verif-alertes { border: 1px solid #F1D48A; background: #FFF8E6; border-radius: 10px; padding: 12px 16px; margin: 0 0 16px; }
.va-titre { display: block; margin-bottom: 6px; color: #7A5500; }
.verif-alertes ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.va-item.grave { color: var(--rouge); }
.va-item.grave .meta { color: inherit; opacity: .8; }
.va-item.regle { color: var(--vert); text-decoration: line-through; text-decoration-thickness: 1px; }
.verif-rien { margin: 0 0 14px; color: var(--vert); font-size: .9rem; }
.verif-lignes td { vertical-align: top; }
.compte-lib { display: block; margin-top: 3px; font-size: .74rem; line-height: 1.25; color: var(--gris); max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compte-lib.inconnu { color: #A0690A; font-style: italic; }
.verif-grille:not(.avec-apercu) .verif-releve { grid-column: 1 / -1; }
/* Annuler (27/10/2026, UX lot D) */
.alerte.avec-annuler { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.form-annuler { margin: 0; }
/* Recherche globale (27/10/2026, UX lot D) */
.recherche-grande { display: flex; gap: 10px; padding: 14px 16px; }
.recherche-grande input { flex: 1; min-width: 0; }
.resultats h2 { margin: 0 0 8px; font-size: 1.05rem; }
.resultats ul { list-style: none; margin: 0; padding: 0; }
.resultats li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; padding: 9px 0; border-top: 1px solid var(--ligne); }
.resultats li:first-child { border-top: 0; }
.resultats li > a { grid-column: 1; }
.resultats li > .meta { grid-column: 1; font-size: .84rem; }
.res-mt { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.res-mt.neg { color: var(--rouge); }
.acces-restreint > span > .meta { display: block; margin-top: 2px; }
.cadenas { font-size: .85em; }
/* Liste des dossiers sur une seule ligne (28/10/2026, demande de M. MECHIN) : une colonne par information */
@media (min-width: 761px) {
  table.liste-dossiers th:nth-child(2) { width: auto; }
  table.liste-dossiers th, table.liste-dossiers td { white-space: nowrap; }
  table.liste-dossiers td.d-nom b { display: inline-block; max-width: 230px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
  table.liste-dossiers .d-sec { font-size: .86rem; color: var(--texte); }
  table.liste-dossiers .d-code { max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
  table.liste-dossiers .d-afaire { flex-wrap: nowrap; }
  table.liste-dossiers .d-sans-client { font-size: .74rem; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: var(--orange-pale); margin-left: 4px; }
  table.liste-dossiers .d-ademander { font-size: .78rem; }
}
@media (min-width: 761px) and (max-width: 1440px) { table.liste-dossiers .col-forme { display: none; } }
@media (min-width: 761px) and (max-width: 1440px) { table.liste-dossiers .col-ent { display: none; } table.liste-dossiers td.d-nom b { max-width: 170px; } table.liste-dossiers .d-code { max-width: 96px; } table.liste-dossiers.compact th, table.liste-dossiers.compact td { padding-left: 5px; padding-right: 5px; } table.liste-dossiers .d-ademander { display: none; } }
@media (min-width: 761px) {
  table.liste-dossiers th, table.liste-dossiers td { padding-left: 7px; padding-right: 7px; }
  table.liste-dossiers th { letter-spacing: .03em; }
  table.liste-dossiers td.sel, table.liste-dossiers th.sel { padding-left: 14px; }
}
@media (min-width: 761px) {
  table.liste-dossiers .d-sans-client { background: none; padding: 0; margin-left: 6px; color: var(--orange); vertical-align: -2px; display: inline-flex; }
  table.liste-dossiers thead th { font-size: .72rem; }
}
.d-sans-client-texte { color: var(--orange); }
/* Liste des dossiers : une ligne sur deux grisée, survol et sélection surlignés (28/10/2026, variante A choisie par M. MECHIN) */
@media (min-width: 761px) {
  table.liste-dossiers tbody tr:nth-child(even) td { background: #F4F7FA; }
  table.liste-dossiers tbody td { border-bottom: 1px solid var(--ligne); }
  table.liste-dossiers tbody tr:hover td { background: var(--turquoise-pale); }
  table.liste-dossiers tbody tr:has(input.sel:checked) td { background: #D3F1F8; }
}
/* Campagne de bilans (28/10/2026) */
.cb-kpis { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 16px; }
.cb-kpi { flex: 1 1 150px; background: #fff; border: 1px solid var(--ligne); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--texte); }
.cb-kpi b { font-size: 1.5rem; color: var(--encre); line-height: 1.1; }
.cb-kpi span { font-size: .82rem; color: var(--gris); }
.cb-kpi.actif { border: 2px solid var(--turquoise); background: var(--turquoise-pale); padding: 11px 13px; }
.cb-filtres { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.cb-seg { display: inline-flex; border: 1px solid #CBD3DE; border-radius: 8px; overflow: hidden; }
.cb-seg a { padding: 7px 12px; font-size: .88rem; color: var(--texte); text-decoration: none; border-right: 1px solid #CBD3DE; }
.cb-seg a:last-child { border-right: 0; }
.cb-seg a.on { background: var(--turquoise-pale); color: var(--turquoise-fonce); font-weight: 600; }
table.cb { width: 100%; border-collapse: collapse; }
table.cb th { text-align: left; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--gris); padding: 10px 10px; border-bottom: 1px solid var(--ligne); background: #F8FAFC; }
table.cb td { padding: 10px 10px; border-bottom: 1px solid var(--ligne); font-size: .9rem; white-space: nowrap; vertical-align: middle; }
table.cb tbody tr:nth-child(even) td { background: #F4F7FA; }
.chez { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.chez.collab { background: #EEF0FF; color: #3B44A8; }
.chez.revue { background: #FFF1DC; color: #9A5B00; }
.chez.client { background: #F1F3F6; color: #4A5568; }
.chez.fini { background: var(--vert-pale); color: var(--vert); }
.phases { display: inline-flex; gap: 3px; }
.phases i { width: 34px; height: 8px; border-radius: 4px; background: #E3E8EF; position: relative; overflow: hidden; }
.phases i b { position: absolute; inset: 0 auto 0 0; background: var(--vert); }
.phases i.encours b { background: var(--turquoise); }
.etape-suiv { color: var(--encre); font-weight: 500; }
.depuis-r { color: var(--rouge); font-weight: 600; }
.al { color: #A0690A; font-size: .8rem; font-weight: 600; }
.d-nom-cb { font-weight: 700; color: var(--encre); }
/* fiche */
.cb-fiche { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.cb-phase { margin-bottom: 14px; }
.cb-phase h3 { margin: 0 0 6px; font-size: .95rem; display: flex; justify-content: space-between; align-items: baseline; }
.cb-phase h3 span { font-size: .8rem; color: var(--gris); font-weight: 500; }
.cb-et { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; padding: 7px 4px; border-bottom: 1px dashed var(--ligne); font-size: .9rem; }
.cb-et:last-child { border-bottom: 0; }
.cb-et .ok { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid #A9B4C2; display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; }
.cb-et .ok.fait { background: var(--vert); border-color: var(--vert); color: #fff; }
.cb-et .meta-d { font-size: .78rem; color: var(--gris); text-align: right; }
.auto { font-size: .68rem; font-weight: 700; letter-spacing: .03em; color: var(--turquoise-fonce); background: var(--turquoise-pale); border-radius: 4px; padding: 1px 5px; margin-left: 6px; }
.na { color: #A9B4C2; text-decoration: line-through; }
.cb-action { border: 2px solid #F1C27A; background: #FFF8EC; border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; }
.cb-action p { margin: 0 0 10px; }
.cb-action textarea { width: 100%; min-height: 64px; margin-bottom: 10px; }
.cb-fil { list-style: none; margin: 0; padding: 0; }
.cb-fil li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--ligne); font-size: .88rem; }
.cb-fil li:first-child { border-top: 0; }
.av { width: 28px; height: 28px; border-radius: 50%; background: var(--encre); color: #fff; font-size: .72rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.av.j { background: #3B44A8; } .av.p { background: var(--turquoise); }
.cb-fil .q { color: var(--gris); font-size: .78rem; }
.alerte-cp { background: #FFF4E5; border: 1px solid #F3C27A; color: #7A4B00; border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-size: .9rem; }
.cb-filtres select, .cb-filtres input { width: auto; min-width: 0; padding: 7px 10px; font-size: .88rem; }
.cb-filtres input { width: 180px; }
table.cb td, table.cb th { padding-left: 8px; padding-right: 8px; }
.phases i { width: 26px; }
table.cb tbody tr:hover td { background: var(--turquoise-pale); }
table.cb td.sel, table.cb th.sel { width: 36px; padding-left: 14px; }
a.d-nom-cb { text-decoration: none; }
a.d-nom-cb:hover { color: var(--turquoise-fonce); text-decoration: underline; }
.phases i.ph-na { background: repeating-linear-gradient(45deg, #E3E8EF 0 3px, transparent 3px 6px); }
.cb-et input[type=checkbox] { width: 18px; height: 18px; margin: 0; accent-color: var(--vert); }
.cb-et.est-na { opacity: .7; }
.cb-na { display: inline-flex; align-items: center; gap: 3px; margin-left: 10px; font-size: .72rem; color: var(--gris); cursor: pointer; }
.cb-na input { width: 13px; height: 13px; margin: 0; }
.cb-champ { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; font-size: .86rem; }
.cb-champ input { width: 110px; padding: 4px 8px; }
.cb-champ.large { margin-left: 0; flex: 1; } .cb-champ.large input { width: auto; flex: 1; }
.cb-reglages { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; border-top: 1px solid var(--ligne); padding-top: 12px; margin-top: 6px; }
.cb-reglages label { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; color: var(--gris); }
.cb-reglages select { width: auto; }
.cb-action.calme { border-color: var(--ligne); background: #fff; }
.cb-action label select { margin: 4px 0 10px; width: auto; }
.cb-note { display: flex; gap: 8px; margin-bottom: 8px; } .cb-note input { flex: 1; }
.h-texte { white-space: pre-wrap; }
.form-annee select { width: auto; }
@media (max-width: 900px) { .cb-fiche { grid-template-columns: 1fr; } }
/* Paramètres du dossier (28/10/2026) : activité d'après le code NAF, mois sans déclaration de TVA */
.activite-naf { display: flex; flex-direction: column; gap: 2px; margin: 0 0 10px; }
.tva-manque { color: #A0690A; font-size: .88rem; }
/* Liste des dépôts triable (28/10/2026) : flèche de tri à droite des montants */
th.num .th-tri { justify-content: flex-end; white-space: nowrap; }
/* Barre d'avancement du travail en cours (import de FEC, analyses de fond) — 28/10/2026 */
.claude-fond .cf-texte { flex: 0 1 auto; }
.claude-fond .cf-barre { flex: 1 1 160px; max-width: 320px; height: 8px; border-radius: 999px; background: rgba(0, 0, 0, .08); overflow: hidden; }
.claude-fond .cf-barre i { display: block; height: 100%; background: currentColor; border-radius: inherit; transition: width .6s ease; }
.claude-fond .cf-pct { font-variant-numeric: tabular-nums; min-width: 3.2em; text-align: right; }
.claude-fond .cf-restant { flex: 0 0 auto; font-size: .92em; opacity: .8; white-space: nowrap; }
/* Téléphone (12/11/2026) : texte sur toute la largeur, puis barre et %, puis temps restant — au lieu d'une colonne étroite */
@media (max-width: 640px) {
  .claude-fond { flex-wrap: wrap; row-gap: 6px; }
  .claude-fond .cf-texte { flex: 1 1 calc(100% - 30px); }
  .claude-fond .cf-barre { flex: 1 1 auto; max-width: none; margin-left: 24px; }
  .claude-fond .cf-restant { flex-basis: 100%; padding-left: 24px; }
}

/* Menu latéral du cabinet en bleu nuit (28/10/2026, variante A choisie par M. MECHIN) : logo recoloré pour fond sombre
   (public/marque/expertym-clair.png, menu seulement), lien actif surligné de turquoise avec un trait à gauche */
.menu-cabinet { background: var(--encre); border-right: 0; color: #DCE6F0; }
.menu-logo .marque { color: #fff; }
.menu-logo .sous { color: #9FB0C3; }
.menu-recherche { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); }
.menu-recherche input { color: #fff; }
.menu-recherche input::placeholder { color: #9FB0C3; }
.menu-recherche svg { color: #9FB0C3; }
.menu-recherche:focus-within { border-color: var(--turquoise); box-shadow: 0 0 0 3px rgba(0,191,225,.25); }
.menu-liens a, .menu-parametres summary { color: #DCE6F0; }
.menu-liens svg, .menu-parametres summary svg { color: #9FB0C3; }
.menu-liens a:hover, .menu-parametres summary:hover { background: rgba(255,255,255,.08); color: #fff; }
.menu-liens a.actif { background: rgba(0,191,225,.18); color: #fff; box-shadow: inset 3px 0 0 var(--turquoise); }
.menu-liens a.actif svg { color: var(--turquoise); }
.menu-liens a:focus-visible, .menu-parametres summary:focus-visible { outline: 2px solid var(--turquoise); outline-offset: 1px; }
.menu-parametres > div a { color: #C9D5E2; }
.menu-parametres > div a:hover { background: rgba(255,255,255,.08); color: #fff; }
.menu-utilisateur { border-color: rgba(255,255,255,.12) !important; }
.menu-utilisateur .avatar { background: var(--turquoise); color: var(--encre); }
.menu-utilisateur .qui, .menu-utilisateur .qui b { color: #fff; }
.menu-utilisateur .qui span { color: #9FB0C3; }
.menu-utilisateur .btn.lien { color: #C9D5E2; }
.menu-utilisateur .btn.lien:hover { color: #fff; }

/* Téléphone, espace cabinet (28/10/2026, version 1) : en-tête et barre d'onglets en bleu nuit, comme le menu latéral */
@media (max-width: 760px) {
  .entete-mobile { background: var(--encre); border-bottom: 0; }
  .em-logo .marque { color: #fff; }
  .em-bouton { color: #fff; }
  .em-cherche[open] .em-bouton { background: rgba(255,255,255,.12); }
  .onglets-mobile { background: var(--encre); border-top: 0; }
  .onglets-mobile a { color: #9FB0C3; }
  .onglets-mobile a.actif { color: #fff; }
  .onglets-mobile a.actif svg { color: var(--turquoise); }
  .onglets-mobile a.actif::before { content: ''; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--turquoise); }
  .om-nb { color: #fff; }
}

/* Lettres de mission : relecture (29/10/2026) */
.lm-relecture { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.lm-relecture > b { margin-right: 4px; }
.lm-relecture-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lm-relecture-form textarea { min-width: 260px; flex: 1; }

/* ---------- Audit UX 31/10/2026 : glisser-déposer partout, focus clavier, débordements ---------- */
.glisser { position: relative; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 8px 10px; border: 2px dashed #9FDDEB; border-radius: 10px; background: var(--turquoise-pale); max-width: 100%; transition: background .15s, border-color .15s, box-shadow .15s; }
.glisser input[type=file] { max-width: 100%; }
.glisser-aide { font-size: .85rem; color: var(--turquoise-fonce); }
.glisser-survol { background: #D3F3FA; border-color: var(--turquoise); box-shadow: 0 0 0 4px rgba(0, 191, 225, .18); }
.glisser-plein { border-style: solid; border-color: var(--turquoise); }
.champ .glisser, form > .glisser { display: flex; }
a:focus-visible, button:focus-visible, summary:focus-visible, [role=button]:focus-visible, .btn:focus-visible { outline: 2px solid var(--turquoise); outline-offset: 2px; }
.menu-cabinet a:focus-visible, .menu-cabinet summary:focus-visible, .onglets-mobile a:focus-visible { outline-color: #7FE3F5; }
details > summary, .unite { overflow-wrap: anywhere; }
.saisie-unite { flex-wrap: wrap; max-width: 100%; }
/* Liste des dépôts : plus de valeurs coupées (audit UX K2) — tiers, pièce et écriture sur deux lignes au besoin ; colonne Type
   masquée dans un onglet d'une seule nature (Achats, Ventes…), où elle répétait la même valeur */
@media (min-width: 761px) {
  table.journal-depots td.j-tiers, table.journal-depots td.j-ecr, table.journal-depots td.j-piece { white-space: normal; overflow-wrap: anywhere; height: auto; padding-top: 5px; padding-bottom: 5px; line-height: 1.25; }
  table.journal-depots td.j-piece .nom-piece { white-space: normal; }
  table.journal-depots.une-nature:not(.avec-dossier) th:nth-child(6), table.journal-depots.une-nature:not(.avec-dossier) td:nth-child(6) { display: none; }
  table.liste-dossiers td.d-nom b { max-width: 340px; }
  table.liste-dossiers td.d-nom { white-space: normal; }
  table.liste-dossiers td.d-nom b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; text-overflow: clip; }
}
@media (min-width: 761px) and (max-width: 1440px) { table.liste-dossiers td.d-nom b { max-width: 260px; } }
.dl-nom { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; text-overflow: clip; line-height: 1.25; }
/* Vérification d'une écriture (audit UX K1) : débit et crédit toujours visibles à 1 366 px sans défilement latéral */
.verif-grille.avec-apercu { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); }
.verif-entete input.court#v-piece { width: 160px; }
.verif-lignes input[name=l_libelle] { min-width: 0; }
.verif-lignes input.compte { width: 84px; }
.verif-lignes input.compte.tiers { width: 104px; }
.verif-lignes input.montant { width: 86px; }
.verif-lignes input[type=date] { width: 122px; }
.verif-lignes th:nth-child(2), .verif-lignes td:nth-child(2) { width: 100%; }   /* libellé (colonne Tiers retirée le 10/11/2026) */
/* Bulle « Claude » (audit UX K7) : une marge sous le contenu pour qu'elle ne recouvre jamais la dernière ligne */
body:has(.bulle-claude) main { padding-bottom: 84px; }
@media (max-width: 760px) { body:has(.bulle-claude) main { padding-bottom: 132px; } .bulle-claude { width: 48px; justify-content: center; padding: 0; } }
p.plus-lignes { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; }
/* Cibles d'au moins 24 px (WCAG 2.2, 2.5.8 — audit UX T2) */
.voir-piece { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; min-height: 28px; }
.ged-arbre a { min-height: 28px; align-items: center; }
.af-detail { display: block; font-size: .88rem; color: var(--gris); margin-top: 2px; }
/* Pièces manquantes du client (audit UX C3) : points de même nature regroupés */
.groupe-points { padding: 0; margin: 0 0 12px; }
.groupe-points > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; font-weight: 700; color: var(--encre); min-height: 52px; }
.groupe-points > summary .gp-total { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--texte); font-weight: 600; }
.groupe-points .gp-explication { margin: 0 18px 10px; }
.groupe-points > .manquantes { padding: 0 12px 12px; }
.groupe-points .manquante { box-shadow: none; }
.glisser-form.glisser-survol { background: #D3F3FA; border-color: var(--turquoise); }
.glisser-form .glisser-aide { flex-basis: 100%; }
/* Mes documents du client sur téléphone (audit UX C5) : une ligne compacte par document au lieu d'une carte de 350 px */
@media (max-width: 760px) {
  table.ged-client tr { grid-template-columns: auto minmax(0, 1fr) auto; }
  table.ged-client td.sel { display: block !important; position: static; grid-column: 1; grid-row: 1 / span 2; align-self: center; padding: 0 4px 0 0; }
  table.ged-client td[data-m="titre"], table.ged-client td[data-m="sous"] { grid-column: 2; }
  table.ged-client td[data-m="etat"] { grid-column: 3; }
  table.ged-client td[data-m="actions"] { grid-column: 2 / -1; display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
  table.ged-client td[data-m="actions"] .btn { min-height: 44px; }
}
/* Audit UX 31/10/2026 — lettre de mission et gestion interne */
/* Lettre de mission : sommaire collant (bandeau défilant en haut, colonne à gauche sur grand écran) */
.lm-sommaire { position: sticky; top: 0; z-index: 5; display: flex; gap: 6px; overflow-x: auto; margin: 0 0 14px; padding: 8px 0; background: var(--fond); border-bottom: 1px solid var(--ligne); scrollbar-width: thin; }
.lm-sommaire a { flex: none; display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--ligne); border-radius: 99px; background: var(--blanc); color: var(--encre); font-size: .88rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.lm-sommaire a:hover, .lm-sommaire a:focus-visible { border-color: var(--action); color: var(--action); }
.lm-corps > .carte[id], .lm-corps #apercu { scroll-margin-top: 64px; }
@media (max-width: 760px) {
  .lm-sommaire { top: 56px; margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  .lm-sommaire a { min-height: 44px; }
  .lm-corps > .carte[id], .lm-corps #apercu { scroll-margin-top: 120px; }
}
@media (min-width: 1100px) {
  .lm-page { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 24px; align-items: start; }
  .lm-sommaire { top: 16px; flex-direction: column; gap: 2px; overflow: visible; margin: 0; padding: 4px 0; background: none; border-bottom: 0; border-left: 2px solid var(--ligne); }
  .lm-sommaire a { min-height: 34px; padding: 0 12px; border: 0; border-radius: 0 8px 8px 0; margin-left: -2px; border-left: 2px solid transparent; background: none; color: var(--texte); font-weight: 500; white-space: normal; line-height: 1.25; }
  .lm-sommaire a:hover, .lm-sommaire a:focus-visible { background: var(--turquoise-pale); border-left-color: var(--action); color: var(--encre); }
  .lm-corps > .carte[id], .lm-corps #apercu { scroll-margin-top: 16px; }
}
/* Tuiles d'indicateurs (« grille kpi ») : la règle .kpi de la bande d'indicateurs les empilait en une colonne pleine largeur */
.grille.kpi { display: grid; flex-direction: initial; padding: 0; border-right: 0; }
.grille.kpi-5 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grille.kpi-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grille.kpi-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
/* Utilisateurs : la liste d'abord, l'invitation repliée derrière un bouton en haut à droite */
.util-haut { position: relative; }
.util-haut .util-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.util-haut .titre-ligne:has(.util-actions) { padding-right: 220px; }
.util-invitation > summary { position: absolute; top: 0; right: 0; list-style: none; cursor: pointer; }
.util-invitation > summary::-webkit-details-marker { display: none; }
.util-invitation[open] > summary { background: var(--action-fonce); }
.util-invitation > form { margin-top: 4px; }
@media (max-width: 760px) {
  .util-haut .titre-ligne:has(.util-actions) { padding-right: 0; }
  .util-invitation > summary { position: static; display: inline-flex; margin: 0 0 12px; }
}
/* Déclaration d'embauche côté client (audit UX C2) : date et documents d'abord, saisie détaillée repliée */
.emb-date { max-width: 260px; }
details.emb-detail { margin: 6px 0 16px; border: 1px solid var(--ligne); border-radius: 10px; padding: 0 14px; }
details.emb-detail > summary { cursor: pointer; padding: 12px 0; font-weight: 600; color: var(--turquoise-fonce); min-height: 44px; }
details.emb-detail[open] > summary { border-bottom: 1px solid var(--ligne); margin-bottom: 8px; }
/* Téléphone et tablette tactile : pas de glisser-déposer, donc ni consigne ni cadre pointillé */
@media (hover: none) { .glisser-aide { display: none; } div.glisser, label.glisser { border: 0; background: none; padding: 0; } }
/* Navigation par métier (31/10/2026) : titres de groupe du menu latéral, onglets d'une rubrique (Fiscal) */
.menu-groupe { margin: 12px 10px 2px; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8FA3B8; }
.menu-liens .menu-groupe:first-child { margin-top: 0; }
.menu-liens a { padding-top: 7px; padding-bottom: 7px; }
.onglets-metier { margin: 4px 0 16px; }
@media (max-width: 760px) { .menu-groupe { display: none; } }
.retour-discret { text-decoration: none; color: var(--gris); margin-right: 4px; }
.bilan-tete { margin-top: 4px; } .bilan-annees { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pointage-fiscal input[name=montant] { width: 110px; }
.pointage-fiscal select { width: auto; } .pointage-fiscal { flex-wrap: wrap; gap: 6px; }
/* Revue mensuelle de l'associé (31/10/2026) */
.revue-mois { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.revue-titre { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--turquoise-fonce); margin: 26px 0 10px; }
.revue-tuiles { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 12px; }
.revue-tuiles .stat { text-decoration: none; color: inherit; }
.revue-tuiles .stat:hover { border-color: var(--turquoise); }
.revue-tuiles .stat.alerte-stat { box-shadow: inset 3px 0 0 var(--orange); }
.revue-tuiles .stat.alerte-stat .n { color: var(--orange); }
.revue-liste ul { margin: 6px 0 0; padding-left: 18px; columns: 2 280px; }
.revue-liste li { margin: 2px 0; break-inside: avoid; }
.deux-colonnes { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 0 20px; }
.revue-barre { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--ligne); margin-bottom: 12px; }
.rb-fini { background: var(--vert); } .rb-revue { background: var(--turquoise); } .rb-client { background: var(--orange); } .rb-collab { background: #7C93AE; } .rb-rien { background: var(--ligne); }
.revue-legende { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .9rem; }
.revue-legende li { display: flex; align-items: center; gap: 6px; }
.revue-legende li > span { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.charge-barre { display: inline-block; vertical-align: middle; width: 60px; height: 6px; border-radius: 3px; background: var(--ligne); margin-right: 8px; overflow: hidden; }
.charge-barre > span { display: block; height: 100%; background: var(--turquoise); }
/* Menu latéral : groupes par métier repliés, sous-menu en volet (02/11/2026). Le volet est en position fixe sans « top » :
   il s'affiche à la hauteur de son groupe, hors de la zone défilante du menu ; une marge transparente à gauche fait le pont
   avec le titre pour que le survol ne se perde pas. Le groupe de la page courante est déplié dans le menu. */
.menu-section { position: relative; }
.menu-titre .menu-chevron { display: flex; margin-left: auto; opacity: .55; }
.menu-titre .menu-chevron svg { width: 14px; height: 14px; }
.menu-sous { display: none; }
.menu-sous-titre { display: none; }
.menu-section:not(.ouvert):hover > .menu-sous, .menu-section:not(.ouvert):focus-within > .menu-sous {
  display: block; position: fixed; left: 236px; z-index: 60; margin-top: -40px; padding-left: 12px; width: 268px; }
.menu-section:not(.ouvert) > .menu-sous > .menu-sous-in { background: var(--encre); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 8px; box-shadow: 0 12px 32px rgba(0,0,0,.28); display: flex; flex-direction: column; gap: 2px; }
.menu-section:not(.ouvert) .menu-sous-titre { display: block; padding: 4px 10px 6px; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8FA3B8; }
.menu-section:not(.ouvert):hover > .menu-titre, .menu-section:not(.ouvert):focus-within > .menu-titre { background: rgba(255,255,255,.08); color: #fff; }
.menu-section.ouvert > .menu-sous { display: block; }
.menu-section.ouvert > .menu-sous > .menu-sous-in { display: flex; flex-direction: column; gap: 2px; padding: 2px 0 4px 18px; margin-left: 9px; border-left: 1px solid rgba(255,255,255,.14); }
.menu-section.ouvert .menu-chevron { transform: rotate(90deg); }
.menu-titre.actif-groupe { color: #fff; font-weight: 600; }
.menu-titre.actif-groupe svg { color: var(--turquoise); }
@media (max-width: 760px) { .menu-section > .menu-sous { display: none !important; } }
@media (min-width: 761px) { .menu-cabinet { z-index: 40; } }   /* le volet du menu passe au-dessus du contenu (tableaux à en-têtes collants) */
/* Vérification d'une écriture (02/11/2026) : le libellé du compte sous le numéro élargissait la colonne Compte et repoussait
   Crédit hors de l'écran à 1 366 px */
.verif-lignes .compte-lib { max-width: 92px; }
.verif-lignes input.compte { width: 80px; }
.verif-lignes input.compte.tiers { width: 100px; }
.verif-lignes input.montant { width: 82px; }
.verif-lignes input[type=date] { width: 112px; padding: 6px 2px; }
.verif-grille table.verif-lignes td, .verif-grille table.verif-lignes th { padding-left: 3px; padding-right: 3px; }
.verif-lignes td:last-child .btn { padding: 4px 6px; }
/* Imputation dans la ligne : compte + tiers (02/11/2026) */
table.journal tr.cpt-aide td { white-space: normal; overflow: visible; height: auto; padding: 6px 8px; }
table.journal tr.cpt-aide td > * { margin-right: 12px; }
.cpt-tiers { display: inline-flex; align-items: center; gap: 6px; }
.cpt-tiers input { width: 130px; padding: 4px 8px; font-size: .84rem; }
/* Onglet Juridique (registre INPI), mise en page du 02/11/2026 */
.reg-tete { margin-bottom: 12px; }
.reg-ecarts { padding: 10px 14px; }
.reg-ecarts ul { margin: 4px 0 0; padding-left: 18px; }
.reg-identite { display: grid; grid-template-columns: 1.3fr .7fr 1.4fr 1.4fr .6fr; gap: 6px 22px; padding: 14px 18px; }
.reg-identite > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.reg-lib { font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--gris); }
.reg-dir { display: block; }
.reg-statuts { padding: 0; }
.reg-statuts > summary { list-style: none; cursor: pointer; padding: 14px 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.reg-statuts > summary::-webkit-details-marker { display: none; }
.reg-statuts > summary::before { content: '▸'; color: var(--gris); }
.reg-statuts[open] > summary::before { content: '▾'; }
.reg-statuts[open] > summary { border-bottom: 1px solid #EEF2F6; }
.reg-statuts > :not(summary) { margin-left: 18px; margin-right: 18px; }
.reg-statuts > :last-child { margin-bottom: 16px; }
.reg-attention { background: var(--orange-pale); color: #6B3A06; border-radius: 8px; padding: 10px 14px; margin-top: 14px; }
.reg-attention ul { margin: 4px 0 0; padding-left: 18px; }
.reg-dl { display: grid; grid-template-columns: 130px minmax(0, 1fr) 130px minmax(0, 1fr); gap: 10px 18px; margin: 14px 18px 0; }
.reg-dl dt { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--gris); padding-top: 2px; }
.reg-dl dd { margin: 0; }
.reg-date { white-space: nowrap; }
.reg-act { white-space: nowrap; }
.reg-act form.inline { display: inline; }
.statut.reg-cabinet { background: #EEF1F5; color: #4A5563; font-size: .72rem; }
@media (max-width: 900px) {
  .reg-identite { grid-template-columns: 1fr 1fr; }
  .reg-dl { grid-template-columns: 110px minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .reg-identite { grid-template-columns: 1fr; }
  .reg-dl { grid-template-columns: 1fr; gap: 2px; }
  .reg-dl dd { margin-bottom: 8px; }
  .reg-act { white-space: normal; text-align: left; }
}
.reg-statuts .reg-lu { margin-top: 10px; }
.reg-actes td[data-l="Disponibilité"] { white-space: nowrap; }
@media (max-width: 760px) {
  .reg-actes table.empile thead { display: none; }
  .reg-actes table.empile, .reg-actes table.empile tbody { display: block; }
  .reg-actes table.empile tr { display: block !important; padding: 10px 14px; border-bottom: 1px solid #EEF2F6; }
  .reg-actes table.empile td { display: block !important; padding: 1px 0 !important; border: 0 !important; text-align: left !important; white-space: normal !important; grid-area: auto !important; }
  .reg-actes table.empile td::before { content: none !important; display: none !important; }
  .reg-actes td.reg-date { font-size: .78rem; color: var(--gris); }
  .reg-actes td.reg-act { margin-top: 4px; margin-left: -8px; }
}
table.journal tr.hist-sep td { background: #EEF1F5 !important; color: #4A5563; font-size: .8rem; height: 34px; scroll-margin-top: 80px; }
/* Accueil client : bouton « Voir les pièces manquantes » à la place du bloc « À faire » (02/11/2026, demande de Y. HACCOUN) */
.a-faire .bouton-manquantes { display: flex; justify-content: center; align-items: center; gap: 10px; width: 100%; padding: 14px 18px; font-size: 1.02rem; box-sizing: border-box; }
.a-faire .bouton-manquantes .badge-nb { background: #fff; color: var(--turquoise-fonce); }
.a-faire .bouton-manquantes + ul, .a-faire .tout-ok + ul { margin-top: 12px; }
/* Dépôt client : facture réglée personnellement par un associé (02/11/2026) */
.paye-perso { margin-top: 12px; }
.paye-perso > summary { cursor: pointer; color: var(--turquoise-fonce); font-weight: 600; font-size: .92rem; }
.paye-perso-corps { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; }
.paye-perso-corps select { min-width: 240px; }
/* Changement rapide de dossier (en-tête du dossier, 02/11/2026) */
.dossier-barre { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.dossier-barre .fil-ariane { margin-bottom: 0; min-width: 0; }
.dossier-rapide { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.dossier-rapide form { position: relative; margin: 0; }
.dossier-rapide input[type=search] { width: 220px; padding: 5px 10px; font-size: .85rem; }
.dr-fleche { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 6px; border: 1px solid #D5DCE5; background: #fff; color: var(--encre); text-decoration: none; font-size: 1.1rem; line-height: 1; }
.dr-fleche:hover { background: var(--turquoise-pale); }
.dr-liste { position: absolute; right: 0; top: calc(100% + 4px); z-index: 50; width: 320px; max-height: 340px; overflow: auto; margin: 0; padding: 4px; list-style: none; background: #fff; border: 1px solid #D5DCE5; border-radius: 8px; box-shadow: 0 8px 24px rgba(19, 36, 58, .14); }
.dr-liste li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: 6px; cursor: pointer; font-size: .88rem; }
.dr-liste li.actif, .dr-liste li:hover { background: var(--turquoise-pale); }
.dr-liste li.dr-vide { cursor: default; color: var(--gris); }
@media (max-width: 760px) { .dossier-rapide { display: none; } }
.paye-perso-corps label { margin: 0; }
.paye-perso-corps select { width: auto; max-width: 360px; }
/* Fiscal › Contrôle de TVA (02/11/2026) */
.tva-avert { margin: 12px 0; }
.tva-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tva-grille > .carte { margin-bottom: 0; }
.tva-grille + .carte, .carte + .tva-grille { margin-top: 14px; }
.tva-titre { margin: 0 0 10px; font-size: 1rem; }
.tva-calc, .tva-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tva-calc td, .tva-table td { padding: 7px 8px; border-bottom: 1px solid #EEF2F6; }
.tva-table th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: #4A5A70; background: #F1F4F8; padding: 6px 8px; }
.tva-calc .tva-total td { font-weight: 700; border-top: 2px solid var(--encre); border-bottom: 0; }
.tva-ecart td { background: #FFF8EE; }
.tva-ok-txt { color: var(--vert); font-weight: 600; } .tva-ko-txt { color: var(--rouge); font-weight: 600; }
.statut.tva-ok { background: var(--vert-pale); color: #0D5C3E; font-size: .72rem; } .statut.tva-ko { background: #FDECEC; color: #B42318; font-size: .72rem; }
.tva-points { margin: 0 0 8px; padding-left: 18px; }
.tva-tiers { max-height: 360px; overflow: auto; }
@media (max-width: 900px) { .tva-grille { grid-template-columns: 1fr; } }
/* Bilan › Approbation des comptes (02/11/2026) */
.ap-montant { width: 130px; text-align: right; padding: 4px 8px; }
.ap-champs { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; margin-bottom: 10px; }
.ap-champs .champ { margin: 0; }
.ap-associes input[type=text], .ap-associes select { width: 100%; padding: 4px 8px; }
.ap-associes .ap-court { width: 90px; text-align: right; }
.ap-doc { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #EEF2F6; }
.ap-doc:last-child { border-bottom: 0; }
.ap-doc .btn, .ap-depot { white-space: nowrap; flex-shrink: 0; }
.ap-etapes { margin: 14px 0 0; padding-left: 20px; } .ap-etapes li { margin-bottom: 6px; }
.ap-associes td[data-l="Associé"] { min-width: 230px; }
.ap-associes td[data-l="Mandataire"] { min-width: 180px; }

/* Téléphone (03/11/2026) : évolutions du 02/11 (Banque, Contrôle de TVA, Approbation des comptes) */
.j-mobile { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; font-size: .78rem; }
.j-mobile form { margin: 0; }
@media (max-width: 760px) {
  .tva-bande .kpi { flex: 1 1 100%; }
  .tva-bande .kpi b { white-space: normal; }
  .tva-defile { overflow-x: auto; }
  .tva-defile table { min-width: 520px; }
  .ap-defile { overflow-x: auto; }
  .ap-defile table { min-width: 640px; }
  .tva-mois td, .tva-mois th { padding: 6px 8px; font-size: .82rem; }
}
@media (max-width: 760px) {
  table.journal td.j-lib { white-space: normal; }
  .j-mobile { flex-wrap: wrap; }
  .j-mobile .meta { white-space: normal; overflow-wrap: anywhere; }
}

/* Pièces : circuit en 4 étapes (03/11/2026) */
.circuit { display: flex; align-items: stretch; gap: 6px; flex-wrap: wrap; width: 100%; margin-bottom: 4px; }
.circuit-etape { flex: 1 1 140px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 10px 14px; border: 2px solid #E3E8EF; border-radius: 12px; background: #fff; color: var(--texte, #1f2a37); text-decoration: none; transition: border-color .15s, transform .15s; }
.circuit-etape:hover { border-color: var(--turquoise); transform: translateY(-1px); }
.circuit-ic { grid-row: 1 / 3; font-size: 1.6rem; line-height: 1; }
.circuit-nb { font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.circuit-nb { grid-column: 2; grid-row: 1; }
.circuit-l { grid-column: 2; grid-row: 2; font-weight: 700; font-size: .88rem; }
.circuit-s { display: none; }
.circuit-etape.vide { opacity: .55; }
.circuit-etape.actif { border-color: var(--turquoise); background: var(--turquoise-pale); }
.circuit-etape.e-a_completer.actif { border-color: #E8892B; background: #FFF4E8; }
.circuit-etape.e-traite.actif { border-color: #2E9E5B; background: #EAF7EF; }
.circuit-fleche { align-self: center; color: #A9B4C2; font-weight: 700; }
.circuit-tout { align-self: center; margin-left: 4px; font-size: .85rem; color: var(--gris); white-space: nowrap; }
.circuit-tout.actif { font-weight: 700; color: var(--turquoise-fonce); }
.piste { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: .82rem; font-weight: 600; }
.piste-pts { display: inline-flex; gap: 3px; }
.piste-pts i { width: 9px; height: 9px; border-radius: 50%; background: #DDE3EA; display: block; }
.p-nouveau .piste-pts i:nth-child(1) { background: var(--turquoise); box-shadow: 0 0 0 3px var(--turquoise-pale); }
.p-en_cours .piste-pts i:nth-child(1) { background: var(--turquoise); }
.p-en_cours .piste-pts i:nth-child(2) { background: var(--turquoise); box-shadow: 0 0 0 3px var(--turquoise-pale); }
.p-a_completer .piste-pts i:nth-child(1) { background: #E8892B; box-shadow: 0 0 0 3px #FFE6CC; }
.p-a_completer { color: #B8641A; }
.p-traite .piste-pts i { background: #2E9E5B; }
.p-traite { color: #2E7D4F; }
.p-nouveau, .p-en_cours { color: var(--turquoise-fonce); }
.piste-btn { padding: 2px 10px; border-radius: 999px; background: var(--turquoise); color: #fff !important; text-decoration: none; font-weight: 700; font-size: .8rem; }
.piste-btn:hover { background: var(--turquoise-fonce); }
@media (max-width: 700px) {
  .circuit { display: grid; grid-template-columns: 1fr 1fr; }
  .circuit-fleche { display: none; }
  .circuit-tout { grid-column: 1 / -1; text-align: center; }
  .circuit-etape { padding: 8px 10px; }
}
.piste-pts i[data-bulle] { cursor: help; width: 11px; height: 11px; }
.piste-pts i[data-bulle]:focus-visible { outline: 2px solid var(--turquoise-fonce); outline-offset: 2px; }
.bulle-piste { position: fixed; z-index: 1000; background: #13243A; color: #fff; border-radius: 10px; padding: 11px 13px; font-size: .8rem; line-height: 1.45; box-shadow: 0 8px 24px rgba(0,0,0,.25); pointer-events: auto; }
.bulle-piste::before { content: ""; position: absolute; top: -6px; left: var(--x, 20px); border: 6px solid transparent; border-top: 0; border-bottom-color: #13243A; }
.bulle-piste.dessus::before { top: auto; bottom: -6px; border-bottom: 0; border-top: 6px solid #13243A; }
.bulle-piste b { display: block; font-size: .84rem; margin-bottom: 4px; }
.bulle-piste .ok { color: #7EE2A8; } .bulle-piste .att { color: #7FD8E6; } .bulle-piste .or { color: #FFC48A; }
.bulle-piste .bl { display: flex; gap: 6px; } .bulle-piste .bl > span:first-child { flex: none; width: 16px; }
.bulle-piste .bl.al { color: #FF9C9C; font-weight: 600; }

/* Visionneuse : zoom sur la pièce seule (03/11/2026) */
.apercu-zoom { position: fixed; right: 10px; top: 10px; z-index: 20; display: flex; align-items: center; gap: 2px; background: rgba(19,36,58,.92); border-radius: 999px; padding: 4px; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.apercu-zoom button { background: transparent; border: 0; color: #fff; font: 700 1rem/1 inherit; min-width: 34px; height: 30px; border-radius: 999px; cursor: pointer; }
.apercu-zoom button:hover { background: rgba(255,255,255,.15); }
.apercu-zoom .apercu-zoom-ajuster { font-size: .78rem; padding: 0 10px; }
.apercu-zoom [data-z-taux] { color: #fff; font-size: .78rem; min-width: 44px; text-align: center; }
.apercu-zone.zoome { justify-content: flex-start; width: max-content; min-width: 100%; box-sizing: border-box; cursor: grab; }
.apercu-zone.zoome > * { margin-left: auto; margin-right: auto; }
.apercu-zone.zoome .apercu-page { max-width: none; }
.apercu-zone.glisse { cursor: grabbing; user-select: none; }
body:not(.apercu-cadre) .apercu-zoom { top: auto; bottom: max(12px, env(safe-area-inset-bottom)); }
.regle-source { cursor: text; background: rgba(255,255,255,.6); padding: 1px 4px; border-radius: 4px; }
#r-c1.rempli { box-shadow: 0 0 0 3px var(--turquoise-pale); border-color: var(--turquoise); transition: box-shadow .2s; }
.statut.jus-saisie-hors { background: #EEF1F5; color: #44546A; font-size: .7rem; padding: 2px 7px; }
.statut.jus-hors { background: #EEF1F5; color: #44546A; }
.tiers-edit { background: transparent; border: 0; padding: 2px 4px; margin: -2px -4px; border-radius: 5px; font: inherit; color: inherit; cursor: text; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.tiers-edit:hover, .tiers-edit:focus-visible { outline: 1px solid var(--turquoise); }
/* Saisie : colonne Motif (03/11/2026) */
td.motifs ul { margin: 0; padding: 0; list-style: none; font-size: .78rem; color: var(--gris); line-height: 1.35; }
td.motifs li + li { margin-top: 2px; }
td.motifs li::before { content: "· "; }
td.motifs li.motif-doublon { color: #8A1C12; font-weight: 700; }
td.motifs li.motif-doublon a { color: inherit; }
td.motifs { min-width: 220px; max-width: 340px; }
td.motifs li.motif-refus { color: var(--encre); font-weight: 600; }
.motifs .reaff { padding: 0 4px; font-weight: 700; color: var(--turquoise-fonce); white-space: nowrap; }
.validation-auto { margin: 0 0 10px; }
.validation-auto .btn.lien { padding: 0 2px; vertical-align: baseline; }
td.motifs li.motif-auto { color: #0D5C3E; font-weight: 600; }

/* Onglets du dossier façon classeur (03/11/2026, demande de M. MECHIN : « comme Silae », plus marqué) — bande bleu nuit,
   onglet ouvert clair relié à la page, liseré turquoise ; une seule ligne, défilement horizontal si besoin */
nav.onglets.onglets-dossier { display: flex; flex-wrap: nowrap; align-items: flex-end; gap: 0; background: linear-gradient(180deg, #1E3656 0%, #13243A 100%);
  border-radius: 14px 14px 0 0; padding: 9px 10px 0; margin: 0 0 18px; border: 0; box-shadow: 0 8px 20px -10px rgba(19,36,58,.45);
  overflow-x: auto; scrollbar-width: none; -webkit-mask-image: none; mask-image: none; }
nav.onglets.onglets-dossier::-webkit-scrollbar { display: none; }
nav.onglets.onglets-dossier > a { flex: none; position: relative; border: 0; border-radius: 12px 12px 0 0; padding: 11px 15px 13px; margin: 0;
  color: #B8C6D8; font-weight: 600; background: transparent; box-shadow: none; white-space: nowrap; min-height: 0; transition: color .15s; }
nav.onglets.onglets-dossier > a + a::before { content: ""; position: absolute; left: 0; top: 13px; bottom: 13px; border-left: 1px solid rgba(255,255,255,.16); }
nav.onglets.onglets-dossier > a:hover { background: rgba(255,255,255,.09); color: #fff; }
nav.onglets.onglets-dossier > a:focus-visible { outline: 2px solid #3BD1E6; outline-offset: -3px; }
nav.onglets.onglets-dossier > a .badge-nb { background: rgba(59,209,230,.22); color: #8EEBF7; }
nav.onglets.onglets-dossier > a.actif { background: var(--fond); color: var(--encre); z-index: 2; padding-top: 12px; }
nav.onglets.onglets-dossier > a.actif::after { content: ""; display: block; position: absolute; left: 12px; right: 12px; top: 0; height: 3px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, #00A6C0, #3BD1E6); }
nav.onglets.onglets-dossier > a.actif .badge-nb { background: var(--turquoise-fonce); color: #fff; }
nav.onglets.onglets-dossier > a.actif::before, nav.onglets.onglets-dossier > a.actif + a::before { display: none; }
nav.onglets.onglets-dossier > a.actif:hover { background: var(--fond); }
@media (max-width: 700px) {
  nav.onglets.onglets-dossier { margin: 0 0 14px; padding: 7px 6px 0; border-radius: 12px 12px 0 0; }
  nav.onglets.onglets-dossier > a { padding: 10px 13px 12px; min-height: 44px; display: inline-flex; align-items: center; }
}
@media (max-width: 1280px) {
  nav.onglets.onglets-dossier { -webkit-mask-image: linear-gradient(to right, #000 88%, rgba(0,0,0,.35)); mask-image: linear-gradient(to right, #000 88%, rgba(0,0,0,.35)); padding-right: 30px; }
}

/* Filtre rapide au-dessus d'un tableau (03/11/2026) */
.filtre-rapide { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
.filtre-rapide input { width: 100%; max-width: 340px; padding: 8px 12px; border: 1px solid #CBD3DE; border-radius: 8px; font: inherit; background: #fff; }
.filtre-rapide input:focus { outline: none; border-color: var(--turquoise); box-shadow: 0 0 0 3px var(--turquoise-pale); }
/* Points en suspens groupés par compte (03/11/2026) : séparation marquée entre comptes */
table.sp-table tr.sp-groupe td { background: linear-gradient(90deg, #13243A, #1E3656); color: #fff; padding: 9px 14px; border-top: 3px solid var(--turquoise); font-size: .88rem; }
table.sp-table tr.sp-groupe:first-child td { border-top: 0; }
table.sp-table tr.sp-groupe .sp-g-compte { font-weight: 800; letter-spacing: .02em; font-family: ui-monospace, Menlo, Consolas, monospace; }
table.sp-table tr.sp-groupe code { background: rgba(255,255,255,.14); color: #CFE8F0; margin-left: 4px; }
table.sp-table tr.sp-groupe .sp-g-nom { margin-left: 8px; font-weight: 600; color: #B8E6F1; }
table.sp-table tr.sp-groupe .sp-g-meta { float: right; color: #B8C6D8; font-weight: 600; }
@media (max-width: 760px) { table.sp-table tr.sp-groupe { display: block; border-radius: 10px; overflow: hidden; margin: 14px 0 6px; } table.sp-table tr.sp-groupe td { display: block; } table.sp-table tr.sp-groupe .sp-g-meta { float: none; display: block; } }
.fusion-comptes { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; } .fusion-comptes > div { flex: 1 1 380px; }
.sp-corriger { margin-top: 4px; } .sp-corriger summary { list-style: none; cursor: pointer; } .sp-corriger summary::-webkit-details-marker { display: none; }
.sp-corriger form { margin-top: 6px; gap: 6px; flex-wrap: wrap; align-items: center; }
@media print { .menu-lateral, nav, .onglets-dossier, .actions-ligne, form, .filtre-rapide { display: none !important; } .table-wrap { overflow: visible !important; } }

/* Espace client aligné sur l'espace cabinet (03/11/2026, demande de M. MECHIN) : bandeau bleu nuit, logo clair,
   entrée active soulignée turquoise, sous-onglets en bande « classeur » comme les onglets du dossier, barre du bas bleu nuit */
body.espace-client .entete { background: linear-gradient(180deg, #1E3656 0%, #13243A 100%); border-bottom: 0; box-shadow: 0 8px 20px -12px rgba(19,36,58,.5); }
body.espace-client .entete-in { padding: 12px 20px; }
body.espace-client .logo { flex-direction: column; align-items: flex-start; gap: 3px; }
body.espace-client .logo .sous-logo { padding-left: 0; margin-left: 1px; border-left: 0; color: #9FB0C3; font-size: .66rem; }
body.espace-client .logo img.logo-cabinet { height: 32px; }
body.espace-client .entete nav a { color: #C9D5E2; position: relative; }
body.espace-client .entete nav a:hover { background: rgba(255,255,255,.09); color: #fff; }
body.espace-client .entete nav a.actif { background: rgba(255,255,255,.1); color: #fff; }
body.espace-client .entete nav a.pilier.actif::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -12px; height: 3px; border-radius: 3px 3px 0 0; background: linear-gradient(90deg, #00A6C0, #3BD1E6); }
body.espace-client .entete nav .badge-nb { background: rgba(59,209,230,.22); color: #8EEBF7; }
body.espace-client .entete nav a.actif .badge-nb { background: var(--turquoise-fonce); color: #fff; }
body.espace-client .entete .btn.lien { color: #C9D5E2; display: inline-flex; align-items: center; gap: 6px; }
body.espace-client .entete .btn.lien:hover { color: #fff; }
body.espace-client .entete .form-deconnexion svg { width: 18px; height: 18px; }
body.espace-client .puce-entreprise { border-color: rgba(255,255,255,.2); }
nav.onglets.onglets-pilier { margin-top: -6px; }
@media (max-width: 720px) {
  body.espace-client .entete-in { padding: 10px 14px; }
  body.espace-client .logo .sous-logo { display: none; }
  body.espace-client .logo img.logo-cabinet { height: 24px; }
  body.espace-client .form-deconnexion span { font-size: .8rem; }
  body.espace-client .barre-mobile { background: var(--encre); border-top: 0; box-shadow: 0 -6px 18px rgba(10,30,60,.25); }
  body.espace-client .barre-mobile a { color: #9FB0C3; background: transparent; }
  body.espace-client .barre-mobile a.actif { color: #fff; background: transparent; }
  body.espace-client .barre-mobile a.actif svg { color: var(--turquoise); }
  body.espace-client .barre-mobile a.actif::before { content: ''; position: absolute; top: -6px; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--turquoise); }
  nav.onglets.onglets-pilier { margin: -6px -16px 14px; border-radius: 0; }
}
/* Pièces manquantes du client classées par tiers (03/11/2026) : famille (fournisseurs, clients…), puis un bloc par tiers */
.mq-famille { font-size: 1rem; margin: 18px 0 8px; color: var(--encre); display: flex; align-items: baseline; gap: 8px; }
.mq-tiers { margin: 0 0 14px; }
.mq-tiers-tete { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 14px; margin-bottom: 8px; border-radius: 10px;
  background: linear-gradient(180deg, #1E3656 0%, #13243A 100%); color: #fff; }
.mq-tiers-tete b { letter-spacing: .01em; } .mq-tiers-tete span { color: #B8C6D8; font-size: .9rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
details.mq-tiers > summary.mq-tiers-tete { cursor: pointer; list-style: none; }
details.mq-tiers > summary.mq-tiers-tete::-webkit-details-marker { display: none; }
details.mq-tiers > summary.mq-tiers-tete b::before { content: "▸"; display: inline-block; margin-right: 8px; color: #3BD1E6; transition: transform .15s; }
details.mq-tiers[open] > summary.mq-tiers-tete b::before { transform: rotate(90deg); }
/* Liste des dossiers (03/11/2026, M. MECHIN) : nom sur une seule ligne (points de suspension, nom complet au survol),
   pictogrammes juste à côté du nom ; colonne Manquantes centrée, en-tête et pastille alignés */
@media (min-width: 761px) {
  table.liste-dossiers td.d-nom { white-space: nowrap; }
  table.liste-dossiers td.d-nom b { display: inline-block; -webkit-line-clamp: unset; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; max-width: 460px; }
  table.liste-dossiers td.d-nom .d-sans-client, table.liste-dossiers td.d-nom .cadenas, table.liste-dossiers td.d-nom .statut { display: inline-flex; vertical-align: middle; margin-left: 6px; }
  table.liste-dossiers th.col-mq, table.liste-dossiers td.col-mq { text-align: center; }
  table.liste-dossiers th.col-mq .th-tri { justify-content: center; }
}
@media (min-width: 761px) and (max-width: 1440px) { table.liste-dossiers td.d-nom b { max-width: 340px; } }
@media (min-width: 761px) { table.liste-dossiers td .d-afaire { flex-wrap: wrap; white-space: normal; } table.liste-dossiers td.d-nom, table.liste-dossiers td { vertical-align: middle; } }
/* Contrôle › Avant export : familles d'opérations à harmoniser (03/11/2026) */
.harmos { display: grid; gap: 12px; margin-bottom: 18px; }
.harmo { padding: 14px 18px; margin: 0; }
.harmo-tete { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.harmo-comptes { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 10px; }
.harmo-c { border: 1px solid var(--ligne); border-radius: 999px; padding: 2px 10px; font-size: .88rem; background: #fff; }
.harmo-c b { margin-left: 4px; color: var(--turquoise-fonce); }
.harmo-c.attente { border-color: #F3C27A; background: #FFF4E5; }
.harmo-action { gap: 8px; flex-wrap: wrap; align-items: center; }
.liste-ibans li:has(.iban-journal) { flex-wrap: wrap; }
.liste-ibans li > div:first-child { flex: 1 1 0; min-width: 0; }
.iban-journal { order: 3; flex: 1 0 100%; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 2px 0 0; }
.iban-journal input, .iban-journal select { padding: 4px 8px; font-size: .85rem; min-height: 0; }
.iban-journal select { max-width: 170px; }

.iban-etat { flex: 1 0 100%; }
.iban-etat.ok { color: var(--vert, #1a7f4b); }

.sp-table tr.sp-famille td { background: var(--fond, #f4f6f9); font-weight: 700; font-size: .95rem; padding-top: 14px; color: var(--marine, #14213d); }
.ctl-segments { flex-wrap: wrap; }

.qonto-bloc { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--ligne); }
.qonto-titre { margin: 0 0 6px; font-size: 1rem; }
.qonto-etat { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.bascule-kpi { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; margin-top: 12px; }
.bascule-kpi .kpi { background: #fff; border: 1px solid var(--ligne); border-radius: 10px; padding: 10px 16px; min-width: 150px; }
.bascule-kpi .kpi span { display: block; font-size: .8rem; color: var(--gris, #5b6475); }
.bascule-kpi .kpi b { font-size: 1.35rem; }
.bascule-kpi .kpi-alerte { color: var(--orange, #c2410c); }
.bascule-barre { flex: 1 1 220px; align-self: center; height: 10px; background: var(--ligne, #e3e7ee); border-radius: 6px; overflow: hidden; }
.bascule-barre span { display: block; height: 100%; background: var(--turquoise, #0e8a9a); }
table.bq-table .bq-ok { color: #1a7f4b; font-weight: 700; margin-right: 6px; }
table.bq-table .bq-ko { color: var(--orange, #c2410c); font-weight: 700; margin-right: 6px; }
table.bq-table .bq-ko-txt { color: var(--orange, #c2410c); font-size: .8rem; }
table.bq-table .bq-compte { font-size: .85rem; margin-top: 2px; }
table.bq-table tr.bq-bascule td { background: #f1faf5; }

.ged-table td.imput { font-size: .82rem; line-height: 1.35; white-space: nowrap; }
.ged-table td.imput code { font-size: .8rem; }

.msg-texte { overflow-wrap: anywhere; }
.msg-texte .lien-portail { display: inline-block; margin-top: 8px; white-space: normal; }

.compte-journal .gc-case { flex-basis: 100%; font-size: .82rem; margin-top: 2px; }
.compte-journal .gc-date { font-size: .82rem; }
.statut.jus-gc { background: #e7f1fb; color: #1d4f7a; }
/* Numérotation des ventes, mois par mois (06/11/2026) */
.num-mois td { vertical-align: top; }
.num-mois .nm-badge { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: .78rem; font-weight: 600; }
.num-mois .nm-ok { background: #E6F4EA; color: #1E7B3C; }
.num-mois .nm-vide { background: var(--orange-pale); color: var(--orange); }
.num-mois .nm-pb { background: #FDECEA; color: #B3261E; }
.num-mois .nm-demande { background: #E8F0FB; color: #2B5BA8; font-weight: 500; }
.num-mois tr.nm-futur td { color: #9AA5B4; }
.num-mois .nm-pbs { list-style: none; margin: 6px 0 0; padding: 0; }
.num-mois .nm-pbs li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 5px 0; border-top: 1px dashed #E3E8EF; }
.num-mois .nm-pbs li.nm-regle .nm-quoi { color: #6B7785; text-decoration: line-through; text-decoration-color: #C3CBD5; }
.num-mois .nm-actions { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.num-mois .nm-num input { width: 140px; }
.num-mois .nm-justif > div form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.num-mois .nm-groupe { margin-top: 8px; }
/* Détail d'un compte du tableau de bord : aperçu de la pièce à côté des lignes (06/11/2026) */
.lignes-fec.avec-apercu { width: min(1280px, 98vw); }
.lf-zone { display: block; }
.lignes-fec.avec-apercu .lf-zone { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.lf-apercu { border-left: 1px solid var(--ligne); display: flex; flex-direction: column; min-height: 0; }
.lf-apercu-tete { display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-bottom: 1px solid var(--ligne); }
.lf-apercu-tete #lf-apercu-nom { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lf-apercu iframe { flex: 1; width: 100%; height: calc(86vh - 150px); border: 0; background: #F4F6F9; }
.lf-corps a.lf-voir { color: inherit; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; cursor: pointer; }
.lf-corps tr.lf-actif td { background: #EAF6F8; }
.lf-aide { margin: 6px 0 0; }
@media (max-width: 800px) { .lignes-fec.avec-apercu .lf-zone { grid-template-columns: 1fr; } .lf-apercu { border-left: 0; border-top: 1px solid var(--ligne); } .lf-apercu iframe { height: 60vh; } }
/* Aide en ligne (06/11/2026) */
.menu-aide { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: #DCE6F0; text-decoration: none; font-size: .93rem; font-weight: 500; border: 1px solid rgba(127,227,245,.35); }
.menu-aide svg { color: #7FE3F5; flex: none; }
.menu-aide:hover { background: rgba(255,255,255,.08); color: #fff; }
.aide-page { max-width: 820px; }
.aide-fil { display: flex; flex-direction: column; gap: 12px; margin: 12px 0; }
.aide-q, .aide-r { padding: 10px 14px; border-radius: 12px; white-space: pre-wrap; line-height: 1.5; font-size: .93rem; }
.aide-q { align-self: flex-end; max-width: 85%; background: var(--encre); color: #fff; border-bottom-right-radius: 4px; }
.aide-r { align-self: flex-start; max-width: 92%; background: var(--blanc, #fff); border: 1px solid var(--ligne); border-bottom-left-radius: 4px; }
.aide-r.aide-transmis { border-color: #F3C98B; background: #FFF8EE; }
.aide-meta { font-size: .76rem; color: var(--gris); margin-top: 4px; }
.aide-note { margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: #E6F4EA; color: #1E5B32; font-size: .88rem; }
.aide-form { position: sticky; bottom: 0; background: var(--fond, #F4F6F9); padding: 10px 0; display: flex; gap: 8px; align-items: flex-end; }
.aide-form textarea { flex: 1; min-height: 58px; max-height: 200px; resize: vertical; font: inherit; padding: 9px 11px; border: 1px solid var(--ligne); border-radius: 10px; }
.aide-exemples { display: flex; flex-wrap: wrap; gap: 6px; }
.aide-exemples button { border: 1px solid var(--ligne); background: var(--blanc, #fff); border-radius: 999px; padding: 5px 11px; font: inherit; font-size: .84rem; cursor: pointer; color: var(--texte); }
.aide-exemples button:hover { border-color: var(--turquoise); }
.aide-attente { color: var(--gris); font-style: italic; }
/* Avancement de la saisie (08/11/2026) */
.av-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .84rem; font-weight: 600; white-space: nowrap; }
.av-ok { background: #E6F4EA; color: #1E7B3C; }
.av-un { background: #FFF1DD; color: #9A5B00; }
.av-retard { background: #FDECEA; color: #B3261E; }
.av-na { background: #EEF1F5; color: #6B7785; }
.av-vieux { color: #B3261E; font-weight: 600; }
.av-grille { border-collapse: collapse; width: 100%; font-size: .86rem; }
.av-grille th, .av-grille td { border: 1px solid #E3E8EF; padding: 6px 8px; vertical-align: top; text-align: left; }
.av-grille thead th { background: #F4F7FA; min-width: 130px; }
.av-grille tbody th { white-space: nowrap; background: #FAFBFC; }
.av-ajour { display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.av-case.av-ok { background: #F1FAF3; }
.av-case.av-partiel { background: #FFF7EB; }
.av-case.av-vide { background: #FDF1EF; }
.av-case.av-sans, .av-case.av-futur, .av-case.av-en_cours, tr.av-futur td { background: #FAFBFC; color: #8A96A5; }
.av-case .av-icone { font-weight: 700; }
.av-case.av-ok .av-icone { color: #1E7B3C; } .av-case.av-partiel .av-icone { color: #9A5B00; } .av-case.av-vide .av-icone { color: #B3261E; }
.av-inactif { opacity: .55; }
.av-alerte { color: #9A5B00; font-weight: 600; }
.av-legende .av-c { padding: 1px 6px; border-radius: 6px; }
.av-legende .av-partiel { background: #FFF7EB; color: #9A5B00; } .av-legende .av-vide { background: #FDF1EF; color: #B3261E; } .av-legende .av-sans { background: #F1F3F6; }
/* Avancement : une ligne par dossier, toujours (08/11/2026, M. MECHIN) */
@media (min-width: 801px) {
  .av-table td, .av-table th { white-space: nowrap; vertical-align: middle; }
  .av-table td.av-nom { max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
  .av-table td.av-collab { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
}

/* Téléphone en paysage, espace cabinet (08/11/2026, demande de M. MECHIN) : plus d'en-tête ni de barre du bas, une barre
   latérale étroite à gauche ; toute la hauteur pour le contenu ; les listes restent des tableaux, première colonne fixe */
.onglets-mobile a.om-paysage { display: none; }
.indice-paysage { display: none; }
@media (orientation: landscape) and (max-height: 500px) and (pointer: coarse) {
  .menu-cabinet, .entete-mobile { display: none !important; }
  .onglets-mobile { display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; right: auto; z-index: 50;
    width: calc(64px + env(safe-area-inset-left)); padding: 4px 0 calc(4px + env(safe-area-inset-bottom)) env(safe-area-inset-left);
    background: var(--encre); border: 0; overflow-y: auto; scrollbar-width: none; }
  .onglets-mobile a, .onglets-mobile a.om-paysage { position: relative; display: flex; flex: 1 1 0; min-height: 38px; height: auto; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    color: #9FB0C3; text-decoration: none; font-size: .6rem; font-weight: 600; }
  .onglets-mobile svg { width: 21px; height: 21px; }
  .onglets-mobile a.actif { color: #fff; font-weight: 700; }
  .onglets-mobile a.actif svg { color: var(--turquoise); }
  .onglets-mobile a.actif::before { content: ''; position: absolute; left: 0; top: 22%; bottom: 22%; right: auto; width: 3px; height: auto; border-radius: 0 3px 3px 0; background: var(--turquoise); }
  .onglets-mobile a.om-paysage { border-top: 1px solid rgba(255,255,255,.08); }
  .onglets-mobile a.om-paysage ~ a.om-paysage { border-top: 0; }
  .om-nb { position: absolute; top: 2px; left: 50%; margin-left: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--action); color: #fff; font-size: .62rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
  .om-nb.om-alerte { background: var(--rouge); }
  .cabinet { flex-direction: row; }
  .cabinet-corps { padding-left: calc(64px + env(safe-area-inset-left)); }
  .cabinet-corps main, .cabinet-corps main.pleine-largeur { max-width: none; padding: 12px max(16px, env(safe-area-inset-right)) 28px 16px; }
  body:has(.bulle-claude) .cabinet-corps main { padding-bottom: 72px; }
  .bulle-claude { bottom: 12px; right: max(12px, env(safe-area-inset-right)); }
  .cabinet-corps .pied { display: none; }
  .dans-cadre .onglets-mobile { display: none !important; }
  .dans-cadre .cabinet-corps { padding-left: 0; }
  .page-tete h1, .titre-ligne h1 { font-size: 1.3rem; }
  .kpi-bande { margin-bottom: 8px; }

  /* Listes : de vrais tableaux (pas de cartes), police un peu plus petite */
  table.empile thead { display: table-header-group; }
  table.empile { display: table; width: 100%; } table.empile tbody { display: table-row-group; }
  table.empile tr, table.empile.compact tr { display: table-row; border: 0; padding: 0; margin: 0; }
  table.empile td, table.empile.compact td, table.empile.compact td[data-m="cache"], table.empile.compact td.sel { display: table-cell; width: auto; padding: 7px 8px; border-bottom: 1px solid var(--ligne); }
  table.empile td[data-l]::before { display: none; }
  .table-wrap table { font-size: .84rem; }
  .table-wrap th, .table-wrap td { padding: 7px 8px; }
  /* Avancement : une ligne par dossier, comme sur ordinateur */
  .av-table td, .av-table th { white-space: nowrap; vertical-align: middle; }
  .av-table td.av-nom { max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
  .av-table td.av-collab { max-width: 100px; overflow: hidden; text-overflow: ellipsis; }
  /* Première colonne fixe pendant le défilement horizontal */
  .table-wrap.defile > table > thead > tr > :first-child, .table-wrap.defile > table > tbody > tr > :first-child { position: sticky; left: 0; z-index: 2; background: var(--blanc); box-shadow: 1px 0 0 var(--ligne); }
  .table-wrap.defile > table > thead > tr > :first-child { z-index: 3; background: #FAFBFC; }
  .table-wrap.defile > table > tbody > tr > td:first-child { max-width: 42vw; overflow: hidden; text-overflow: ellipsis; }
}
/* Ombre sur le bord droit quand il reste des colonnes à voir (calculée par app.js) */
.table-wrap.defile { position: relative; }
.table-wrap.defile:not(.defile-fin) { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), rgba(0,0,0,.35)); mask-image: linear-gradient(to right, #000 calc(100% - 28px), rgba(0,0,0,.35)); }
/* Portrait : tableau plus large que l'écran → invitation à tourner le téléphone */
@media (orientation: portrait) and (max-width: 760px) {
  .indice-paysage { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 8px 12px; border-radius: 10px; background: var(--turquoise-pale); color: var(--turquoise-fonce); font-size: .82rem; font-weight: 600; }
  .indice-paysage svg { width: 18px; height: 18px; flex: none; }
}

.etapes-installation code { overflow-wrap: anywhere; word-break: break-all; }   /* adresses longues : pas de débordement sur téléphone */

/* JeSignExpert : réglages de signature (08/11/2026) */
.jse-options { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 14px; margin: 10px 0; }
.jse-options label { display: flex; flex-direction: column; gap: 4px; }
.jse-options select { min-height: 38px; }
form.jse-options { padding: 10px 0; border-top: 1px solid var(--ligne); }
form.jse-options > b { flex-basis: 100%; }
/* Contresignature (08/11/2026) : case à cocher collée à son libellé */
.lm-contresigner label { display: inline-flex; align-items: center; gap: 8px; width: auto; }
.lm-contresigner .lm-signature-form label input[type=checkbox] { width: auto; min-width: 0; margin: 0; flex: none; }

/* Base des personnes (08/11/2026) */
.personne-suggestions { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; margin: 2px 0 0; padding: 4px; list-style: none; background: var(--blanc); border: 1px solid var(--ligne); border-radius: 10px; box-shadow: var(--ombre); max-height: 280px; overflow-y: auto; }
.personne-suggestions li { display: flex; flex-direction: column; gap: 1px; padding: 7px 10px; border-radius: 8px; cursor: pointer; }
.personne-suggestions li:hover, .personne-suggestions li.actif { background: var(--turquoise-pale); }
.personne-suggestions li .meta { font-size: .78rem; }
.liste-personnes { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.liste-personnes li .meta { margin-left: 6px; }
.liste-personnes li div.meta { margin-left: 0; }
.filtres-personnes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; }
.filtres-personnes input[type=search] { flex: 1 1 260px; width: auto; min-height: 40px; padding: 0 12px; border: 1px solid var(--ligne); border-radius: 10px; font-size: 1rem; }
.filtres-personnes select { width: auto; flex: 0 0 auto; min-height: 40px; }
@media (min-width: 761px) { td.nowrap-ordi { white-space: nowrap; } }
/* Téléchargement sur téléphone (08/11/2026) : fichier en cours de récupération / prêt à enregistrer */
a.dl-encours { opacity: .6; pointer-events: none; }
a.dl-encours::after { content: ' …'; }

/* MAQUETTE facturation de l'espace client (09/11/2026) */
.alerte.maquette { font-size: .85rem; padding: 8px 12px; }
.filtres-fact { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.filtres-fact a { padding: 6px 12px; border-radius: 16px; border: 1px solid var(--ligne); background: var(--blanc); color: var(--encre); text-decoration: none; font-size: .88rem; }
.filtres-fact a.actif { background: var(--encre); color: #fff; border-color: var(--encre); }
.statut-fact { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.statut-fact.info { background: var(--turquoise-pale); color: var(--turquoise-fonce); }
.statut-fact.ok { background: #E3F4EA; color: #1E6B3D; }
.statut-fact.alerte { background: #FBE9E7; color: #A3302A; }
.statut-fact.neutre { background: #EEF1F4; color: #4A5868; }
tr.ligne-retard td:first-child { box-shadow: inset 3px 0 0 #C0392B; }
.fact-entete { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 16px; }
.fact-entete .champ.large { grid-column: span 2; }
.fact-entete .champ { margin: 0; }
.fact-lignes { width: 100%; border-collapse: collapse; }
.fact-lignes th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--gris); padding: 10px 8px; border-bottom: 1px solid var(--ligne); }
.fact-lignes td { padding: 8px; border-bottom: 1px solid var(--ligne); vertical-align: top; }
.fact-lignes input, .fact-lignes select { width: 100%; min-height: 36px; }
.fact-lignes .fact-detail { margin-top: 4px; font-size: .85rem; min-height: 30px; }
.fact-lignes td.num input { text-align: right; }
.fact-lignes td.tot { white-space: nowrap; font-weight: 600; padding-top: 16px; }
.fact-ajout { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
.fact-bas { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.fact-totaux > div, .fact-totaux #t-tva > div { display: flex; justify-content: space-between; padding: 6px 0; }
.fact-totaux .t-ttc { border-top: 2px solid var(--encre); margin-top: 6px; padding-top: 10px; font-size: 1.15rem; }
.fact-actions { margin: 14px 0 24px; align-items: center; }
.fact-feuille { background: #fff; max-width: 820px; margin: 12px 0 18px; padding: 40px 44px; border: 1px solid var(--ligne); border-radius: 6px; box-shadow: 0 8px 24px rgba(19, 36, 58, .08); font-size: .9rem; color: #1E2A38; }
.ff-tete { display: flex; justify-content: space-between; gap: 20px; border-bottom: 2px solid #1E2A38; padding-bottom: 16px; }
.ff-logo { font-family: 'Space Grotesk', Arial, sans-serif; font-size: 1.5rem; letter-spacing: .08em; font-weight: 400; }
.ff-logo b { font-weight: 700; margin-left: 6px; color: #B8862F; }
.ff-vendeur { font-size: .8rem; color: #5B697D; margin-top: 6px; line-height: 1.5; }
.ff-titre { text-align: right; line-height: 1.6; }
.ff-titre h2 { margin: 0 0 4px; font-size: 1.4rem; letter-spacing: .12em; }
.ff-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 20px 0; line-height: 1.55; }
.ff-lib { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: #8593A3; margin-top: 4px; }
.ff-lignes { width: 100%; border-collapse: collapse; margin: 8px 0 16px; }
.ff-lignes th { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: #5B697D; text-align: left; border-bottom: 1px solid #1E2A38; padding: 8px 6px; }
.ff-lignes td { padding: 9px 6px; border-bottom: 1px solid #E4E8EE; vertical-align: top; }
.ff-lignes .num, .fact-lignes .num { text-align: right; }
.ff-totaux { margin-left: auto; width: min(340px, 100%); }
.ff-totaux > div { display: flex; justify-content: space-between; padding: 4px 0; }
.ff-ttc { border-top: 1px solid #1E2A38; margin-top: 4px; padding-top: 8px !important; font-size: 1.05rem; }
.ff-net { background: #1E2A38; color: #fff; padding: 8px 10px !important; margin-top: 6px; border-radius: 4px; }
.ff-paiement { margin: 18px 0 10px; font-size: .85rem; }
.ff-mentions { border-top: 1px solid #E4E8EE; padding-top: 10px; font-size: .72rem; color: #6B7888; line-height: 1.55; }
.fact-etapes { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.fact-etapes li { border-top: 3px solid var(--ligne); padding-top: 8px; display: flex; flex-direction: column; gap: 2px; font-size: .88rem; }
.fact-etapes li span { color: var(--gris); font-size: .8rem; }
.fact-etapes li.fait { border-top-color: var(--turquoise); }
@media (max-width: 760px) {
  .fact-entete { grid-template-columns: 1fr; } .fact-entete .champ.large { grid-column: auto; }
  .fact-bas { grid-template-columns: 1fr; }
  .fact-lignes thead { display: none; } .fact-lignes tr { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; padding: 10px; border-bottom: 1px solid var(--ligne); }
  .fact-lignes td { border: 0; padding: 0; } .fact-lignes td:first-child { grid-column: 1 / -1; } .fact-lignes td.tot { padding-top: 8px; }
  .fact-feuille { padding: 20px 16px; } .ff-tete, .ff-parties { display: block; } .ff-titre { text-align: left; margin-top: 12px; }
  .fact-etapes { grid-template-columns: 1fr 1fr; }
}
.fact-totaux > #t-tva { display: block; padding: 0; }
.fact-lignes th:nth-child(2), .fact-lignes td:nth-child(2) { width: 90px; }
.fact-lignes th:nth-child(3), .fact-lignes td:nth-child(3) { width: 120px; }
.fact-lignes th:nth-child(4), .fact-lignes td:nth-child(4) { width: 140px; }
.fact-lignes th:nth-child(5), .fact-lignes td:nth-child(5) { width: 110px; }
.fact-lignes th:nth-child(6), .fact-lignes td:nth-child(6) { width: 120px; }
/* Maquette facturation : prélèvements, abonnements, fiche client */
.fact-2col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; align-items: start; }
.fact-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 10px 0 14px; }
.fact-dl dt { color: var(--gris); font-size: .85rem; }
.fact-dl dd { margin: 0; font-weight: 600; }
.fact-sous-form { border-top: 1px solid var(--ligne); margin-top: 16px; padding-top: 12px; }
.fact-sous-form h3 { margin: 0 0 8px; }
.carte ol.fact-etapes-simple { display: block; list-style: decimal; margin: 0 0 14px; padding-left: 20px; line-height: 1.7; }
.carte ol.fact-etapes-simple li { display: list-item; border: 0; padding: 0; margin: 0 0 4px; background: none; }
.carte ol.fact-etapes-simple li::before { content: none; }
.fact-total-ligne td { border-top: 2px solid var(--encre); }
.choix { display: block; font-weight: 400; margin: 4px 0; }
.alerte-action { background: #FFF4E5; border-color: #F3C27A; color: #7A4B00; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 800px) { .fact-2col { grid-template-columns: 1fr; } .fact-dl { grid-template-columns: 1fr; gap: 2px; } .fact-dl dd { margin-bottom: 8px; } }
/* Maquette facturation : mise en page */
.mp-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 18px; align-items: start; }
.mp-bloc { margin-bottom: 12px; }
.mp-bloc summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
.mp-bloc[open] summary { margin-bottom: 12px; }
.mp-logo { display: flex; align-items: center; gap: 14px; }
.mp-logo .ff-logo { font-size: 1.15rem; }
.mp-couleurs { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.mp-couleurs label { cursor: pointer; }
.mp-couleurs input[type=radio] { position: absolute; opacity: 0; }
.mp-couleurs span { display: block; width: 30px; height: 30px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--ligne); }
.mp-couleurs input:checked + span { box-shadow: 0 0 0 2px var(--encre); }
.mp-couleurs input[type=color] { width: 34px; height: 34px; border: 0; padding: 0; background: none; }
.mp-conf { list-style: none; padding: 0; margin: 0; line-height: 1.9; }
.mp-conf li::before { content: '✓'; color: #0D7A50; font-weight: 700; margin-right: 8px; }
.mp-conf li.neutre::before { content: '–'; color: var(--gris); }
.mp-apercu { position: sticky; top: 16px; }
.mp-feuille { margin-top: 0; font-size: .82rem; padding: 32px 34px; }
.mp-feuille .ff-tete { border-bottom-color: var(--mp); }
.mp-feuille .ff-titre h2, .mp-feuille .ff-logo b { color: var(--mp); }
.mp-feuille .ff-lignes th { border-bottom-color: var(--mp); color: var(--mp); }
.mp-feuille .ff-ttc { border-top-color: var(--mp) !important; color: var(--mp); }
.mp-note { font-style: italic; color: #5B697D; margin: 10px 0; }
@media (max-width: 900px) { .mp-grille { grid-template-columns: 1fr; } .mp-apercu { position: static; } .mp-feuille { padding: 18px; } }
/* Facturation (lot 1, 09/11/2026) : fiche document, suivi, clients, mandats */
.fact-voir { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.fact-cote .carte { margin-bottom: 12px; }
.fact-cote form { margin: 0 0 8px; }
.fact-suivi-liste { list-style: none; margin: 0; padding: 0; }
.fact-suivi-liste li { padding: 6px 0 6px 22px; position: relative; font-size: .9rem; border-bottom: 1px solid var(--ligne); }
.fact-suivi-liste li:last-child { border-bottom: 0; }
.fact-suivi-liste li::before { content: ''; position: absolute; left: 2px; top: 11px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ligne); }
.fact-suivi-liste li.fait::before { background: #1E6B3D; border-color: #1E6B3D; }
.fact-texte { white-space: pre-wrap; font-family: inherit; background: var(--fond, #F5F7FA); border-radius: 6px; padding: 10px 12px; font-size: .9rem; margin: 8px 0 12px; }
.fact-paye { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fact-paye input, .fact-paye select { width: auto; }
.fact-acompte { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0; }
.fact-acompte input { width: 70px; }
.fact-etape-envoi { border-left: 4px solid var(--turquoise, #55BDDD); }
.ff-logo-img { max-height: 54px; max-width: 200px; display: block; margin-bottom: 6px; }
.ff-signature { margin: 18px 0 0 auto; width: min(260px, 100%); border: 1px solid #E4E8EE; border-radius: 4px; padding: 10px 12px 48px; font-weight: 600; }
.fact-entete-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fact-entete-3 { grid-template-columns: 1fr 2fr 70px; }
.ligne-siren { display: flex; gap: 8px; }
.lien-copie { display: flex; gap: 8px; margin: 8px 0; }
.lien-copie input { flex: 1; font-size: .85rem; }
.vide-fact { text-align: center; padding: 28px 18px; }
tr.ligne-archivee td { opacity: .55; }
.mp-logo-img { max-height: 40px; max-width: 160px; }
.mp-manques { margin: 0 0 12px; padding-left: 20px; color: #A3302A; }
.mp-jours { width: 64px; display: inline-block; min-height: 30px; padding: 2px 6px; }
.mp-relance textarea { margin-top: 6px; }
.mandat-texte { font-size: .9rem; line-height: 1.6; margin: 0; }
.fact-rejet summary { list-style: none; cursor: pointer; }
.fact-rejet form { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; min-width: 220px; }
@media (max-width: 900px) { .fact-voir { grid-template-columns: 1fr; } .fact-entete-2, .fact-entete-3 { grid-template-columns: 1fr; } }
.module-client { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; border-top: 1px solid var(--ligne); margin-top: 14px; padding-top: 12px; }
/* Facturation : lignes de facture sur téléphone (une carte par ligne) */
@media (max-width: 700px) {
  .fact-lignes thead { display: none; }
  .fact-lignes, .fact-lignes tbody { display: block; width: 100%; }
  .fact-lignes tr.fact-ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; padding: 12px; border-bottom: 1px solid var(--ligne); position: relative; }
  .fact-lignes tr.fact-ligne td { display: block; padding: 0; border: 0; min-width: 0; }
  .fact-lignes tr.fact-ligne td:first-child { grid-column: 1 / -1; padding-right: 34px; }
  .fact-lignes tr.fact-ligne td[data-l]::before { content: attr(data-l); display: block; font-size: .72rem; color: var(--gris); margin-bottom: 2px; text-align: left; }
  .fact-lignes tr.fact-ligne td.tot { padding-top: 0; align-self: end; font-size: 1rem; }
  .fact-lignes tr.fact-ligne td:last-child { position: absolute; top: 8px; right: 6px; }
  .fact-lignes input, .fact-lignes select { width: 100%; }
  .fact-entete { grid-template-columns: 1fr; }
  .fact-entete .champ.large { grid-column: auto; }
  .fact-ajout { flex-wrap: wrap; }
  .fact-bas { grid-template-columns: 1fr; }
}
.fact-form input[type=number], .fact-acompte input[type=number], .mp-jours, .fact-article-form input[type=number], .fact-lignes input[type=number] { padding: 9px 10px; border: 1px solid #CBD3DE; border-radius: 8px; font: inherit; color: var(--encre); background: #fff; }
.fact-article-form input[type=number] { width: 100%; }
/* ---------- Dossier de révision par cycles (09/11/2026) ---------- */
.alerte.attention { background: var(--orange-pale); border-color: #F3C27A; color: #7A4B00; }
.dr-barre { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 8px; }
.dr-fil { font-size: .92rem; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.dr-fil span[aria-hidden] { color: var(--gris); }
.dr-annees { display: flex; gap: 6px; flex-wrap: wrap; }
.dr-cycles { display: flex; gap: 4px; flex-wrap: wrap; margin: 0 0 16px; }
.dr-cycles a { font-size: .78rem; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: var(--blanc); border: 1px solid var(--ligne); color: var(--texte); text-decoration: none; }
.dr-cycles a:hover { border-color: var(--turquoise); }
.dr-cycles a.actif { background: var(--action); border-color: var(--action); color: #fff; }
.dr-resume { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 12px 0; }
.dr-kpi { background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.dr-kpi span { font-size: .8rem; color: var(--gris); }
.dr-kpi b { font-size: 1.25rem; color: var(--encre); }
.dr-kpi.alerte-kpi b { color: var(--rouge); }
.dr-jauge { display: block; height: 6px; background: var(--ligne); border-radius: 3px; overflow: hidden; margin-top: 4px; }
.dr-jauge i { display: block; height: 100%; background: var(--vert); }
.dr-jauge.petite { display: inline-block; width: 60px; vertical-align: middle; margin: 0 4px 0 0; }
.carte.sans-pad { padding: 0; }
.dr-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.dr-table th, .dr-table td { padding: 6px 8px; border-bottom: 1px solid var(--ligne); text-align: left; vertical-align: top; }
.dr-table thead th { background: var(--fond); color: var(--encre); font-weight: 600; font-size: .8rem; position: sticky; top: 0; z-index: 1; }
.dr-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dr-table .centre { text-align: center; }
.dr-table tfoot td { font-weight: 700; background: var(--fond); }
.dr-table td.calc { background: #F9FBFD; }
.dr-table caption { text-align: left; font-weight: 600; padding: 8px 0 4px; color: var(--encre); }
.dr-table.compact th, .dr-table.compact td { padding: 4px 6px; font-size: .82rem; }
.dr-table input[type=text], .dr-table input[type=date], .dr-table select, .dr-table textarea { width: 100%; min-width: 70px; font: inherit; font-size: .86rem; padding: 4px 6px; border: 1px solid var(--ligne); border-radius: 6px; background: #fff; }
.dr-table textarea { resize: vertical; min-height: 30px; }
.dr-table input.dr-montant { text-align: right; min-width: 95px; }
.dr-table input.dr-compte { min-width: 85px; max-width: 120px; }
.dr-table input.dr-ref, input.dr-ref { max-width: 100px; min-width: 70px; }
.dr-table th.l-large, .dr-table td .l-large { min-width: 200px; }
.dr-table tr.dr-section td { background: var(--turquoise-pale); color: var(--turquoise-fonce); font-weight: 600; font-size: .82rem; }
.dr-table tr.inactif td { color: var(--gris); }
.dr-table tr.dr-signif td { background: #FFFBF3; }
.dr-table tr.dr-ligne-alerte td:first-child { box-shadow: inset 3px 0 0 var(--orange); }
.dr-table tr.dr-vide td { background: #FCFDFE; }
.dr-texte { white-space: pre-line; min-width: 260px; }
.dr-prog td:nth-child(n+3):nth-child(-n+5) { width: 58px; }
.dr-auto { margin-top: 4px; font-size: .8rem; color: var(--gris); }
.dr-auto.ko { color: var(--orange); }
.dr-auto .auto { font-size: .68rem; font-weight: 700; background: var(--turquoise-pale); color: var(--turquoise-fonce); padding: 1px 5px; border-radius: 4px; }
.dr-rouge { color: var(--rouge); font-weight: 600; }
.dr-vert { color: var(--vert); }
.dr-pastille { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; font-size: .74rem; font-weight: 700; color: #fff; text-align: center; background: var(--gris); }
.dr-pastille.rouge { background: var(--rouge); } .dr-pastille.orange { background: var(--orange); }
.dr-feuilles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin-bottom: 16px; }
.dr-feuille-carte { display: flex; flex-direction: column; gap: 2px; background: var(--blanc); border: 1px solid var(--ligne); border-left: 4px solid var(--turquoise); border-radius: 8px; padding: 8px 12px; text-decoration: none; color: var(--texte); font-size: .9rem; }
.dr-feuille-carte:hover { border-color: var(--turquoise); }
.dr-feuille-carte.terminee { border-left-color: var(--vert); }
.dr-feuille-carte.absente { border-left-color: var(--ligne); opacity: .7; }
.dr-soeurs { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 14px; }
.dr-soeurs a { font-size: .8rem; padding: 3px 9px; border-radius: 14px; border: 1px solid var(--ligne); background: var(--blanc); text-decoration: none; color: var(--texte); }
.dr-soeurs a.actif { background: var(--turquoise-pale); border-color: var(--turquoise); color: var(--turquoise-fonce); font-weight: 600; }
.dr-aide { background: var(--blanc); border-left: 3px solid var(--turquoise); padding: 8px 12px; border-radius: 0 8px 8px 0; font-size: .9rem; }
.dr-statut { font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 10px; vertical-align: middle; background: var(--fond); color: var(--gris); border: 1px solid var(--ligne); }
.dr-statut.termine { background: var(--vert-pale); color: var(--vert); border-color: #B5E2CC; }
.dr-statut.en_cours { background: var(--turquoise-pale); color: var(--turquoise-fonce); border-color: #B3EAF5; }
.dr-statuts { display: flex; gap: 6px; flex-wrap: wrap; }
.dr-params { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 16px; }
.dr-params .champ { margin-bottom: 8px; }
.dr-kv { width: 100%; border-collapse: collapse; font-size: .9rem; }
.dr-kv th { text-align: left; font-weight: 400; text-transform: none; letter-spacing: normal; font-size: .9rem; color: var(--texte); padding: 5px 0; border-bottom: 1px solid var(--ligne); }
.dr-kv td { padding: 5px 0; border-bottom: 1px solid var(--ligne); font-weight: 600; }
.dr-od { margin-bottom: 12px; }
.dr-od p { margin-bottom: 4px; }
.dr-od-liste { margin: 0 0 6px; padding-left: 18px; font-size: .88rem; }
.dr-actions { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--fond) 30%); padding: 14px 0 10px; display: flex; gap: 8px; flex-wrap: wrap; z-index: 2; }
.dr-deux { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin: 16px 0; }
.dr-eval .dr-heures { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.dr-eval textarea { width: 100%; }
.dr-pieces { list-style: none; padding: 0; margin: 0 0 10px; font-size: .9rem; }
.dr-pieces li { padding: 3px 0; }
.dr-upload { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: .88rem; }
.dr-pre { white-space: pre-line; }
form.inline { display: inline; }
.dr-prog .dr-etat span { display: none; }   /* écran large : cases à cocher seules, intitulés en colonnes */
@media (max-width: 760px) {
  .dr-table.dr-saisie thead, .dr-table.dr-prog thead, .dr-table.dr-comptes thead { display: none; }
  .dr-table.dr-saisie tr, .dr-table.dr-comptes tr { display: block; border-bottom: 2px solid var(--ligne); padding: 6px 0; }
  .dr-table.dr-saisie td, .dr-table.dr-comptes td { display: flex; gap: 8px; border: 0; padding: 3px 8px; }
  .dr-table.dr-saisie td::before, .dr-table.dr-comptes td::before { content: attr(data-l); flex: 0 0 40%; color: var(--gris); font-size: .78rem; }
  .dr-texte { min-width: 0; }
  .dr-table.dr-saisie td.num, .dr-table.dr-comptes td.num, .dr-table.dr-saisie td.centre, .dr-table.dr-comptes td.centre { text-align: left; justify-content: flex-start; white-space: normal; }
  .dr-table.dr-saisie td::before, .dr-table.dr-comptes td::before { text-align: left; }
  /* Programme de travail sur mobile (09/11/2026, M. MECHIN : illisible) : une carte par contrôle, texte pleine largeur,
     Fait / Non fait / Non applicable en trois boutons côte à côte, feuille et observations en dessous */
  .dr-table.dr-prog, .dr-table.dr-prog tbody { display: block; }
  .dr-table.dr-prog tr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 12px; border-bottom: 2px solid var(--ligne); }
  .dr-table.dr-prog tr.dr-section { display: block; padding: 0; border: 0; }
  .dr-table.dr-prog tr.dr-section td { display: block; padding: 8px 12px; font-size: .85rem; }
  .dr-table.dr-prog td { display: block; border: 0; padding: 0; width: auto !important; min-width: 0; }
  .dr-table.dr-prog td.dr-n { grid-column: 1 / -1; color: var(--gris); font-size: .78rem; }
  .dr-table.dr-prog td.dr-n::before { content: 'Contrôle n° '; }
  .dr-table.dr-prog td.dr-texte { grid-column: 1 / -1; font-size: .95rem; line-height: 1.4; color: var(--encre); margin-bottom: 4px; }
  .dr-table.dr-prog td[data-l="Feuille"], .dr-table.dr-prog td[data-l="Observations"] { grid-column: 1 / -1; }
  .dr-table.dr-prog td[data-l="Feuille"]::before, .dr-table.dr-prog td[data-l="Observations"]::before { content: attr(data-l); display: block; color: var(--gris); font-size: .78rem; margin: 4px 0 2px; }
  .dr-table.dr-prog td[data-l="Feuille"] br { display: none; }
  .dr-table.dr-prog td[data-l="Feuille"] a { display: inline-block; margin: 4px 10px 0 0; }
  .dr-table.dr-prog input.dr-ref { max-width: 140px; }
  .dr-table.dr-prog textarea { font-size: 16px; }
  .dr-prog .dr-etat { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 4px; border: 1px solid var(--ligne); border-radius: 8px; background: #fff; font-size: .82rem; line-height: 1.15; text-align: center; cursor: pointer; }
  .dr-prog .dr-etat input { position: absolute; opacity: 0; width: 1px; height: 1px; }
  .dr-prog .dr-etat span { display: inline; }
  .dr-prog .dr-etat:has(input:focus-visible) { outline: 2px solid var(--turquoise); outline-offset: 2px; }
  .dr-prog .dr-etat-fait:has(input:checked) { background: #E6F6EE; border-color: #2E9E6B; color: #1F6E4A; font-weight: 600; }
  .dr-prog .dr-etat-non_fait:has(input:checked) { background: #FDECEC; border-color: #C9473F; color: #9B2C25; font-weight: 600; }
  .dr-prog .dr-etat-na:has(input:checked) { background: #EEF1F4; border-color: #8A96A3; color: var(--encre); font-weight: 600; }
}
/* Édition imprimable */
body.dr-impression { background: #fff; padding: 24px; max-width: 1200px; margin: 0 auto; }
.dr-imp-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-bottom: 2px solid var(--encre); margin-bottom: 16px; }
.dr-imp-tete h1 { font-size: 1.4rem; margin-bottom: 4px; }
.dr-imp-cycle { margin-top: 24px; }
.dr-imp-cycle h2 { border-bottom: 1px solid var(--ligne); padding-bottom: 4px; }
.dr-imp-feuille { margin: 10px 0 18px; }
@media print {
  .dr-imp-btn { display: none; }
  body.dr-impression { padding: 0; }
  .dr-imp-cycle { break-before: page; }
  .dr-table thead th { position: static; }
  .dr-table tr { break-inside: avoid; }
}
.fact-feuille.ff-brouillon { position: relative; overflow: hidden; }
.fact-feuille.ff-brouillon::before { content: 'BROUILLON'; position: absolute; top: 42%; left: 50%; transform: translate(-50%, -50%) rotate(-30deg); font-size: clamp(3rem, 12vw, 7rem); font-weight: 800; letter-spacing: .1em; color: rgba(30, 42, 56, .06); pointer-events: none; white-space: nowrap; }
/* Dossier de révision : choix des cycles (création, ajout) */
.dr-choix-outils { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.dr-choix-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 8px; }
.dr-choix { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--ligne); border-radius: 8px; cursor: pointer; font-weight: 400; }
.dr-choix:has(input:checked) { border-color: var(--turquoise); background: var(--turquoise-pale); }
.dr-choix input { margin-top: 3px; }
.dr-choix .meta { display: block; font-size: .82rem; }
.dr-ajout summary { cursor: pointer; }
.dr-ajout[open] summary { margin-bottom: 12px; }
.dr-etapes { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 4px 0 16px; counter-reset: etape; }
.dr-etapes li { counter-increment: etape; padding: 6px 14px 6px 10px; border-radius: 18px; background: #EEF1F4; color: var(--gris); font-size: .9rem; }
.dr-etapes li::before { content: counter(etape); display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; margin-right: 8px; background: #fff; font-weight: 700; font-size: .78rem; }
.dr-etapes li.fait { background: #E3F4EA; color: #1E6B3D; }
.dr-etapes li.en-cours { background: var(--encre); color: #fff; }
.dr-etapes li.en-cours::before { color: var(--encre); }
.dr-choix.indispo { opacity: .55; cursor: not-allowed; }
/* Dossier de révision : justificatifs par compte */
.dr-pj { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; min-width: 140px; }
.dr-pj-liste { display: contents; }
.dr-pj-liste a { font-size: .8rem; white-space: nowrap; text-decoration: none; background: var(--turquoise-pale); color: var(--turquoise-fonce); padding: 2px 8px; border-radius: 10px; }
.dr-pj-btn { font-size: .8rem; font-weight: 600; color: var(--turquoise-fonce); cursor: pointer; white-space: nowrap; border: 1px dashed var(--turquoise); border-radius: 10px; padding: 2px 8px; }
.dr-pj-btn:hover { background: var(--turquoise-pale); }
.dr-pj-etat { flex-basis: 100%; font-size: .78rem; }
td .dr-pj { margin-top: 4px; }
.dr-comptes select[name$="[statut]"] { min-width: 118px; }
/* Dossier de révision : comptes auxiliaires dépliables */
.dr-deplier { border: 0; background: none; cursor: pointer; font-size: .95rem; color: var(--turquoise-fonce); padding: 0 6px 0 0; line-height: 1; }
.dr-table tr.dr-aux td { background: #F7F9FB; font-size: .88rem; }
.dr-table tr.dr-aux td:first-child { padding-left: 28px; }
/* Dossier de révision : calculs dans les cases */
input.dr-formule { background-image: linear-gradient(135deg, var(--turquoise) 0 6px, transparent 6px); background-repeat: no-repeat; }
input.dr-formule-erreur { border-color: #C0392B !important; background: #FBE9E7; }
.dr-astuce code { background: #EEF1F4; padding: 1px 5px; border-radius: 4px; }
/* Dossier de révision : régularisations repérées dans les pièces */
.dr-regul-resume ul { margin: 8px 0; padding-left: 20px; line-height: 1.8; }
.dr-regul { border-left: 4px solid var(--turquoise); }
.dr-table tr.dr-estimee td { background: #FFF8EC; }

/* Facture électronique (jefacture.com, lot 2, 09/11/2026) */
.jef-etapes { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.jef-etapes li { color: var(--gris); }
.jef-etapes li.encours, .jef-etapes li.fait { color: var(--encre); }
.jef-etapes li.fait::marker { color: #2E9E6B; }
.jef-texte { white-space: pre-wrap; font-family: inherit; font-size: .9rem; background: var(--fond); border: 1px solid var(--ligne); border-radius: 8px; padding: 12px 14px; margin: 0 0 12px; }
.jef-fiche { margin-top: 10px; }
.jef-fiche .statut-fact { margin-left: 6px; vertical-align: middle; }
.fact-suivi-liste li.alerte { color: #A3302A; }
.erreur-texte { color: #A3302A; }
/* Facture reprise d'un ancien logiciel (09/11/2026) */
.rp-infos { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 4px; }
.rp-colonnes .champ { min-width: 160px; }

/* Fiscal › TVA (09/11/2026) : CA3 officielle, montants superposés et cliquables */
.ca3-page { container-type: inline-size; }
.ca3-montant, .ca3-texte { position: absolute; height: 1.45%; line-height: 1; font: 700 clamp(7px, 1.35cqw, 12.5px)/1 Helvetica, Arial, sans-serif; color: #0d2673; white-space: nowrap; }
.ca3-montant { background: #fff; border: 0; padding: 0 1px; text-align: right; cursor: pointer; border-radius: 2px; }
.ca3-montant:hover, .ca3-montant:focus-visible { background: #fff3b0; outline: 2px solid #e0b100; }
.ca3-montant.vide { color: #8a94a6; font-weight: 400; }
.ca3-texte { pointer-events: none; }
dialog.dlg-large { width: min(900px, 96vw); }

/* Envoi des pièces avec barre d'avancement (09/11/2026) */
.envoi-progres { margin: 12px 0; display: grid; gap: 6px; }
.envoi-progres-fond { height: 10px; border-radius: 6px; background: var(--fond-2, #e9eef5); overflow: hidden; }
.envoi-progres-fond i { display: block; height: 100%; width: 0; background: var(--accent, #1f7a8c); transition: width .2s; }
.envoi-progres-texte { font-size: .92em; color: var(--texte-2, #4a5568); }
.envoi-progres.erreur .envoi-progres-fond i { background: #c0392b; }
.releve-glisser { margin: 0 0 12px; }
.zone-glisser.zone-compacte { flex-direction: row; justify-content: flex-start; gap: 10px; padding: 12px 16px; min-height: 0; flex-wrap: wrap; }
.btn-valider-ecr { font: 600 .85rem/1.2 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; margin-top: 4px; }
/* Écriture à un seul champ « Compte » (10/11/2026, M. MECHIN) : la place de l'ancienne colonne Tiers revient au compte, dont le
   libellé (nom du tiers · collectif) tient sur deux lignes */
.verif-lignes input.compte { width: 124px; }
.verif-lignes .compte-lib { max-width: 150px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
/* Banque, « Solde au … » (10/11/2026) */
.kpi-solde-au > label { font-size: .72rem; color: var(--gris); white-space: nowrap; }
.kpi-solde-au input[type=date] { padding: 2px 4px; font-size: .8rem; margin: 2px 0; width: 132px; }
.kpi .meta { font-size: .7rem; }
/* Confirmation du dossier : autre nom du client à retenir (10/11/2026) */
form.alerte-ok { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
form.alerte-ok .case { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
form.alerte-ok input.autre-nom { width: 220px; padding: 3px 6px; font-size: .85rem; }

/* Conditions générales d'utilisation (11/11/2026) */
.texte-juridique h2 { font-size: 1.02rem; margin: 1.2em 0 .4em; }
.texte-juridique p, .texte-juridique li { line-height: 1.55; }
.cgu-intro { font-size: 1.02rem; }
.cgu-cadre { max-height: 52vh; overflow-y: auto; border: 1px solid var(--ligne); border-radius: 10px; padding: 4px 18px 14px; background: var(--fond); margin: 14px 0; -webkit-overflow-scrolling: touch; }
.cgu-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 6px 0 10px; }
.cgu-actions .btn.plein { min-width: 180px; }
@media (max-width: 640px) { .cgu-intro { font-size: .95rem; } .cgu-cadre { max-height: 40vh; padding: 2px 12px 10px; } .cgu-actions { flex-direction: column; align-items: stretch; } .cgu-actions .btn { text-align: center; } }
/* Fiche pièce : pourquoi l'écriture reste à valider (12/11/2026) */
.alerte-a-valider .motifs { margin: 6px 0 0; padding-left: 18px; }
.alerte-a-valider .motifs li { margin: 2px 0; }
/* Règles de saisie du cabinet (12/11/2026) */
.regles-saisie .regle { margin-bottom: 12px; }
.regles-saisie .regle-tete { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.regles-saisie .regle-titre { flex: 1 1 260px; font-weight: 600; }
.regles-saisie textarea { width: 100%; }
.regles-saisie input[readonly], .regles-saisie textarea[readonly] { background: transparent; border-color: transparent; }

/* Message de confirmation quand la position de la page est conservée (12/11/2026) */
.alerte.flash-flottant { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; max-width: min(640px, calc(100vw - 32px)); box-shadow: 0 8px 24px rgba(16, 24, 40, .18); cursor: pointer; transition: opacity .6s; }
.alerte.flash-flottant.flash-fondu { opacity: 0; pointer-events: none; }
@media (max-width: 640px) { .alerte.flash-flottant { bottom: calc(80px + env(safe-area-inset-bottom)); } }

.aide-champ { display: block; flex-basis: 100%; margin-top: 4px; font-size: .85em; }

.actions-emprunt { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.actions-emprunt form { margin: 0; }
.emprunts-banque .tableau-compact td { vertical-align: top; }

/* ---------- Alignement ordinateur / téléphone, lot 1 (13/11/2026) ----------
   Cartes complètes : sur téléphone, les colonnes de travail ne sont plus masquées (data-m="info" : ligne compacte
   « Libellé valeur »), le menu ⋯ et l'aperçu de chaque ligne restent visibles (data-m="act"). */
@media (max-width: 760px) {
  table.empile.compact tr:has(> td[data-m="info"]), table.empile.compact tr:has(> td[data-m="act"]) { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; row-gap: 3px; }
  table.empile.compact tr:has(> td[data-m="info"]) > td, table.empile.compact tr:has(> td[data-m="act"]) > td { width: auto; }
  table.empile.compact tr:has(> td[data-m="info"]) > td[data-m="titre"], table.empile.compact tr:has(> td[data-m="act"]) > td[data-m="titre"] { order: 1; flex: 1 1 calc(100% - 130px); min-width: 0; }
  table.empile.compact tr:has(> td[data-m="info"]) > td[data-m="etat"], table.empile.compact tr:has(> td[data-m="act"]) > td[data-m="etat"] { order: 2; flex: 0 0 auto; margin-left: auto; text-align: right; }
  table.empile.compact tr:has(> td[data-m="info"]) > td[data-m="sous"], table.empile.compact tr:has(> td[data-m="act"]) > td[data-m="sous"] { order: 3; flex: 0 1 auto; }
  table.empile.compact tr:has(> td[data-m="info"]) > td[data-m="etat2"], table.empile.compact tr:has(> td[data-m="act"]) > td[data-m="etat2"] { order: 4; flex: 0 0 auto; margin-left: auto; text-align: right; }
  table.empile.compact tr:has(> td[data-m="info"])::after { content: ""; order: 5; flex-basis: 100%; height: 0; }
  table.empile.compact td[data-m="info"] { order: 6; flex: 0 1 auto; max-width: 100%; font-size: .8rem; color: var(--encre); white-space: normal; overflow: visible; height: auto; line-height: 1.35; }
  table.empile.compact td[data-m="info"]::before { content: attr(data-l) " "; display: inline !important; font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; color: var(--gris); font-weight: 700; }
  table.empile.compact td[data-m="info"]:empty, table.empile.compact td[data-m="info"].vide-info { display: none; }
  table.empile.compact td[data-m="act"] { order: 7; flex: 0 0 auto; margin-left: auto; display: flex; align-items: center; gap: 4px; overflow: visible; height: auto; }
  table.empile.compact td[data-m="act"] .j-actions { display: inline-flex; align-items: center; gap: 4px; }
  table.empile.compact td[data-m="act"] .voir-piece, table.empile.compact td[data-m="act"] .menu-actions > summary { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  table.empile.compact td[data-m="act"] .menu-actions > div { right: 0; max-width: calc(100vw - 32px); }
  table.empile.compact tr:has(> td[data-m="act"]) td[data-m="titre"] .j-mobile form { display: none; }   /* « Valider » : une seule fois, dans les actions de la ligne */
  /* Haut de page compacté : indicateurs sur une bande qui défile, la liste arrive dans le premier écran */
  .kpi-bande-mobile { display: flex !important; flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; gap: 8px; }
  .kpi-bande-mobile::-webkit-scrollbar { display: none; }
  .kpi-bande-mobile > * { flex: 0 0 auto; min-width: 116px; }
  .depot-compact-mobile { padding: 10px 14px !important; }
  .depot-compact-mobile .masque-mobile { display: none; }
  /* Circuit des pièces (À traiter → Chez le client → Terminées) : une bande compacte */
  nav.circuit { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 6px; align-items: stretch; }
  nav.circuit::-webkit-scrollbar { display: none; }
  nav.circuit .circuit-etape { flex: 0 0 auto; min-height: 44px; padding: 6px 12px; display: inline-flex; align-items: center; gap: 6px; }
  nav.circuit .circuit-s, nav.circuit .circuit-ic, nav.circuit .circuit-fleche { display: none; }
  nav.circuit .circuit-nb { font-size: 1.05rem; }
  nav.circuit .circuit-tout { flex: 0 0 auto; align-self: center; min-height: 44px; display: inline-flex; align-items: center; padding: 0 8px; }
  /* Fiche écriture : une carte par ligne d'écriture (compte, libellé, débit, crédit, échéance), sans défilement */
  table.verif-lignes, table.verif-lignes tbody, table.verif-lignes tfoot { display: block; width: 100%; }
  table.verif-lignes thead { display: none; }
  table.verif-lignes tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; padding: 10px 0 12px; border-bottom: 1px solid var(--ligne); }
  table.verif-lignes tbody td { display: block; padding: 0; min-width: 0; }
  table.verif-lignes tbody td[data-l]::before { content: attr(data-l); display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; color: var(--gris); font-weight: 700; margin-bottom: 2px; }
  table.verif-lignes td[data-l="Compte"], table.verif-lignes td[data-l="Libellé"] { grid-column: 1 / -1; }
  table.verif-lignes input, table.verif-lignes input.compte, table.verif-lignes input.compte.tiers, table.verif-lignes input.montant, table.verif-lignes input[type=date] { width: 100%; min-height: 44px; font-size: 16px; }
  table.verif-lignes td.suppr { align-self: end; text-align: right; }
  table.verif-lignes td.suppr .btn { min-height: 44px; min-width: 44px; }
  table.verif-lignes tfoot tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; padding: 10px 0; }
  table.verif-lignes tfoot td { display: block; padding: 0; border: 0; background: none; }
  table.verif-lignes tfoot td:first-child { flex-basis: 100%; }
  table.verif-lignes tfoot td[data-l]::before { content: attr(data-l) " "; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--gris); font-weight: 700; }
  table.verif-lignes tfoot td:empty { display: none; }
  .table-wrap:has(> table.verif-lignes) { overflow: visible; border: 0; }
  /* Trier par (tableaux en cartes) */
  .tri-mobile { display: flex; align-items: center; gap: 8px; margin: 6px 0 8px; font-size: .88rem; }
  .tri-mobile label { white-space: nowrap; font-weight: 600; color: var(--gris); }
  .tri-mobile select { flex: 1 1 auto; min-height: 44px; width: auto; }
}
@media (min-width: 761px) { .tri-mobile { display: none; } }

/* ---------- Alignement, lot 2 (13/11/2026) ---------- */
@media (max-width: 760px) {
  .dossier-tete .page-actions .dr-mobile { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--ligne); margin-top: 4px; padding-top: 8px; }
  .dr-mobile form { position: relative; margin: 0; }
  .dr-mobile input[type=search] { width: 100%; min-height: 44px; font-size: 16px; }
  .dr-mobile .dr-liste { position: absolute; left: 0; right: 0; width: auto; top: calc(100% + 4px); z-index: 35; }
  .dr-mobile-fleches { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .dr-mobile-fleches .btn { justify-content: center !important; font-size: .85rem; }
  .actions-rapides button, .actions-rapides a { font-size: .78rem; }
}
/* Bouton Claude flottant : s'efface pendant le défilement vers le bas, revient en remontant (il ne couvre plus les ⋯) */
.bulle-claude { transition: transform .2s ease, opacity .2s ease; }
.bulle-claude.bulle-effacee { transform: translateY(140%); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .bulle-claude { transition: none; } }

/* ---------- Alignement, lot 3 : Fiscal (13/11/2026) ---------- */
.segments a.seg-alerte { color: var(--rouge); }
.segments.ech-vues a { white-space: nowrap; }
.segments.ech-vues a.actif-ordi { background: var(--blanc); color: var(--encre); box-shadow: 0 1px 2px rgba(19,36,58,.12); font-weight: 700; }
.ech-vue-liste .ech-liste { margin-bottom: 4px; }
@media (min-width: 761px) { .segments.ech-vues { max-width: 620px; } }
@media (max-width: 760px) {
  .segments a.seg-alerte { color: var(--rouge); }
.segments.ech-vues a { white-space: nowrap; }
.segments.ech-vues a.actif-ordi { background: none; box-shadow: none; font-weight: 400; color: var(--gris); }
  .segments.ech-vues a.actif-tel { background: var(--blanc); color: var(--encre); box-shadow: 0 1px 2px rgba(19,36,58,.12); font-weight: 700; }
  .ech-stats { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px !important; }
  .ech-stats .stat { padding: 10px; } .ech-stats .stat .n { font-size: 1.3rem; } .ech-stats .stat .l { font-size: .75rem; line-height: 1.25; }
  .ech-barre { flex-wrap: nowrap; flex-direction: column; align-items: stretch; gap: 8px; }
  .ech-barre .puces { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .ech-barre .puces::-webkit-scrollbar { display: none; }
  .ech-barre .puce { flex: none; min-height: 44px; display: inline-flex; align-items: center; }
  .ech-nav .btn { min-height: 44px; min-width: 44px; }
  .ech-filtres { flex-wrap: wrap; }
  .ech-filtres input[type=search] { min-width: 0; flex: 1 1 160px; min-height: 44px; font-size: 16px; }
  .ech-filtres select { min-height: 44px; }
  .ech-filtres [data-ech-selection] { margin-left: 0 !important; min-height: 44px; }
  /* Tableau par dossier en cartes : un dossier par carte, ses échéances par mois */
  .ech-vue-tableau .ech-wrap { overflow: visible; }
  table.ech-tableau { min-width: 0; display: block; border-spacing: 0; }
  table.ech-tableau thead { display: none; }
  table.ech-tableau tbody { display: flex; flex-direction: column; gap: 10px; padding: 10px; }
  table.ech-tableau tbody tr { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--ligne); border-radius: 10px; padding: 10px 12px; background: var(--blanc); }
  table.ech-tableau tbody th.ech-dossier { position: static; border: 0; padding: 0; max-width: none; min-width: 0; }
  table.ech-tableau tbody td { display: block; border: 0; padding: 0; background: none !important; }
  table.ech-tableau tbody td.ech-vide { display: none; }
  table.ech-tableau tbody td[data-l]::before { content: attr(data-l); display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: var(--gris); font-weight: 700; margin-bottom: 4px; }
  table.ech-tableau tbody td.ech-col-retard::before { color: var(--rouge); }
  table.ech-tableau tbody td .ech-cel + .ech-cel { margin-top: 6px; }
  table.ech-tableau tbody td .ech { min-height: 44px; }
  table.ech-tableau td.vide { padding: 12px; }
}

/* ---------- Alignement, lot 4 (13/11/2026) : tableaux secondaires en cartes sur téléphone ---------- */
@media (max-width: 640px) {
  table.empile tbody th { display: block; width: 100%; border: 0; padding: 4px 0; text-align: left; position: static; }
  table.empile tbody th[data-l]::before { content: attr(data-l); display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--gris); font-weight: 700; }
  table.empile td[data-l=""]::before, table.empile th[data-l=""]::before { display: none; }
  table.empile { min-width: 0 !important; table-layout: auto !important; }
  .table-wrap:has(> table.empile) { overflow-x: visible; }
  table.empile.saisie td input, table.empile.saisie td select { width: 100%; min-height: 44px; font-size: 16px; }
  table.empile td:empty { display: none; }
}

/* Activité (tous les dossiers) sur un écran de largeur moyenne : douze colonnes ne tiennent pas ; Date pièce et Écriture
   (visibles dans la fiche de la pièce et dans les pièces du dossier) laissent la place à la pièce et au tiers */
@media (min-width: 761px) and (max-width: 1500px) {
  table.journal-depots.avec-dossier:has(th.c-dossier) th.c-date, table.journal-depots.avec-dossier:has(th.c-dossier) td[data-l="Date pièce"],
  table.journal-depots.avec-dossier:has(th.c-dossier) th.c-ecr, table.journal-depots.avec-dossier:has(th.c-dossier) td[data-l="Écriture"] { display: none; }
}

/* Alignement ordinateur / téléphone, lot 5 (13/11/2026) : zones à toucher de 44 px au moins sur téléphone.
   Boutons, champs, onglets et menus : hauteur minimale. Liens des cartes et des listes (et pastilles « 244 pièces ») : zone de
   toucher invisible de 44 px (pseudo-élément), sans rien changer à leur apparence ni à la mise en page (correctif 14/11/2026 :
   le retrait vertical gonflait les pastilles à fond coloré, qui se chevauchaient dans Ma journée). */
@media (max-width: 640px) {
  main .btn, main button:not(.sans-cible), main select, main textarea,
  main input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]):not([type=color]) { min-height: 44px; }
  main input[type=file] { padding-block: 10px; }
  main .btn.icone, main td.act .btn, main td.act a, main td.act summary { min-width: 44px; }
  nav.onglets > a, .sous-onglets a, .segments > a, .segments > button, nav.circuit a { min-height: 44px; }
  main details > summary { min-height: 44px; align-content: center; }
  main details > summary.btn { align-content: normal; }
  table.empile td a:not(.btn):not(.puce), .liste-cartes a:not(.btn), ul.liste a:not(.btn), .ged-arbre a:not(.btn), .fil a,
  .dossiers-liste a.dl-nom, .kpi a, main p a:not(.btn), .accueil-liens a, main .meta a:not(.btn), .dl-badges a.badge-tache,
  .titre-ligne > a:not(.btn), a[data-apercu-grand], a[data-v-grand], .etapes-installation a, .q-sujet a { position: relative; }
  table.empile td a:not(.btn):not(.puce)::after, .liste-cartes a:not(.btn)::after, ul.liste a:not(.btn)::after, .ged-arbre a:not(.btn)::after, .fil a::after,
  .dossiers-liste a.dl-nom::after, .kpi a::after, main p a:not(.btn)::after, .accueil-liens a::after, main .meta a:not(.btn)::after, .dl-badges a.badge-tache::after,
  .titre-ligne > a:not(.btn)::after, a[data-apercu-grand]::after, a[data-v-grand]::after, .etapes-installation a::after, .q-sujet a::after {
    content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }
  .cb-seg a, .puces a.puce { min-height: 44px; display: inline-flex; align-items: center; }
}

/* Attestation d'immatriculation au RNE (15/11/2026) */
.attestation-rne { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.attestation-rne h2 { margin: 0 0 6px; font-size: 1.05rem; }
.attestation-rne .rne-texte { flex: 1 1 380px; }
.attestation-rne .rne-texte p { margin: 4px 0; }
.attestation-rne form { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.attestation-rne .rne-secours { margin: 0; font-size: .8rem; }
.reg-rne { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 16px; }
@media (max-width: 640px) { .attestation-rne form, .attestation-rne form .btn { width: 100%; } .attestation-rne form .btn { justify-content: center; } }

/* Sauvegarde externe : état et « Sauvegarder maintenant » (Activité de Claude, 16/11/2026) */
.sauvegarde-etat { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 20px; }
.sauvegarde-etat .sv-texte { flex: 1 1 420px; }
.sauvegarde-etat h2 { margin: 0 0 4px; }
.sauvegarde-etat p { margin: 4px 0; }
.sauvegarde-etat .erreur-texte { color: var(--rouge, #b42318); }

/* Circuit des pièces : « À exporter » et Archives (16/11/2026) */
.circuit-liens { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; margin-left: 4px; }
.circuit-etape.e-a_exporter .circuit-nb { color: #b54708; }
.bandeau-export { flex-basis: 100%; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 10px; padding: 10px 14px; margin: 8px 0 12px; }
@media (max-width: 760px) { .circuit-liens { grid-column: 1 / -1; flex-direction: row; justify-content: center; gap: 16px; } }

/* Fiche d'un dépôt épurée (16/11/2026) : l'écriture et la visionneuse, le reste dans « Détails » */
.depot-grille.depot-epure.avec-apercu { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.depot-ecriture-principale { padding-bottom: 14px; }
.depot-ecriture-principale .dep-tete { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.depot-ecriture-principale .dep-tete h2 { margin: 0; }
.depot-ecriture-principale .verif-form { box-shadow: none; border: 0; padding: 0; margin: 8px 0 0; }
.depot-ecriture-principale .refus { box-shadow: none; border: 0; padding: 0; margin: 10px 0 0; display: flex; gap: 8px; }
.depot-ecriture-principale .refus input { flex: 1; }
.dep-raisons { margin: 2px 0 6px; }
.depot-ecriture-principale .verif-lignes th:nth-child(5), .depot-ecriture-principale .verif-lignes td[data-l="Échéance"] { display: none; }
.depot-ecriture-principale .verif-lignes { table-layout: fixed; width: 100%; }
.depot-ecriture-principale .verif-lignes th:nth-child(2), .depot-ecriture-principale .verif-lignes td:nth-child(2) { width: auto; }
.depot-ecriture-principale .verif-lignes th:nth-child(1) { width: 27%; }
.depot-ecriture-principale .verif-lignes .compte-lib { max-width: none; }
.depot-ecriture-principale .verif-lignes th:nth-child(3), .depot-ecriture-principale .verif-lignes th:nth-child(4) { width: 16%; }
.depot-ecriture-principale .verif-lignes th:nth-child(6) { width: 30px; }
.depot-ecriture-principale .verif-lignes th, .depot-ecriture-principale .verif-lignes td { padding-left: 4px; padding-right: 4px; }
.depot-ecriture-principale .verif-lignes input { width: 100%; min-width: 0; box-sizing: border-box; }
.depot-ecriture-principale .table-wrap { overflow-x: visible; }
.depot-ecriture-principale .raccourcis { display: none; }
.depot-ecriture-principale .verif-actions { display: flex; gap: 8px; align-items: center; }
.depot-ecriture-principale .verif-actions .btn.plein { flex: 1; }
@media (min-width: 1101px) { .depot-epure .depot-apercu { position: sticky; top: 12px; } }
.avis-claude { margin: 6px 0; font-size: .88rem; color: var(--texte, #13243a); }
details.avis-claude summary { cursor: pointer; list-style: none; }
details.avis-claude summary::-webkit-details-marker { display: none; }
details.avis-claude .lire { color: var(--turquoise-fonce, #0e7490); text-decoration: underline; white-space: nowrap; }
details.avis-claude[open] summary { display: none; }
details.avis-claude p { margin: 0; }
.demande-client { margin-top: 10px; }
.demande-client[open] summary { margin-bottom: 8px; }
.demande-client form { display: grid; gap: 6px; }
.depot-details { margin-top: 12px; }
.depot-details > summary { list-style: none; cursor: pointer; display: inline-flex; }
.depot-details > summary::-webkit-details-marker { display: none; }
.depot-details[open] > summary { margin-bottom: 12px; }
.depot-details > .colonne-droite { margin-top: 16px; }
@media (max-width: 1100px) { .depot-grille.depot-epure.avec-apercu { grid-template-columns: 1fr; } }

.piste-l.a-exporter { color: #b54708; font-weight: 600; }
.piste.p-traite:has(.piste-l.a-exporter) .piste-pts i:last-child { background: #E8892B; box-shadow: 0 0 0 3px #FFE6CC; }

/* Barres d'actions groupées : code couleur et ordre logique (16/11/2026, M. MECHIN) — vert : fait avancer (valider,
   exporter, traité) ; orange : retour en arrière ou attente du client ; rouge : refuser, supprimer, toujours en dernier */
.barre-actions .btn.act-ok { background: #16a34a; border-color: #16a34a; color: #fff; }
.barre-actions .btn.act-ok:hover { background: #15803d; border-color: #15803d; }
.barre-actions .btn.act-ok.act-ok-second { background: transparent; color: #86efac; border-color: #22c55e; }
.barre-actions .btn.act-ok.act-ok-second:hover { background: rgba(34, 197, 94, .15); }
.barre-actions .btn.act-retour { background: transparent; color: #fdba74; border-color: #f59e0b; }
.barre-actions .btn.act-retour:hover { background: rgba(245, 158, 11, .15); }
.barre-actions .btn.act-danger { background: transparent; color: #fca5a5; border-color: #ef4444; }
.barre-actions .btn.danger.act-danger, .barre-actions .btn.act-danger:hover { background: #dc2626; border-color: #dc2626; color: #fff; }

.d-pastille-export { background: #FFF1D6; color: #8A5A00; }
.d-pastille-export:hover { background: #FFE3AD; }
/* FEC modèle (16/11/2026) : société d'activité équivalente, clairement distinguée du FEC du dossier */
.carte-modele { border-left: 4px solid #b7791f; }
.pastille-modele { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 2px 10px; border-radius: 999px; background: #fdf3e1; color: #8a5a12; font-size: .78rem; font-weight: 600; }
.modele-identite { background: #fdf8ef; border: 1px solid #f1e2c4; border-radius: 8px; padding: 10px 12px; margin: 12px 0; }
.modele-ou { text-align: center; margin: 4px 0 10px; }
.fec-autre { margin-top: 6px; text-align: left; }
.fec-autre summary { cursor: pointer; }
.fec-autre-form { display: grid; gap: 6px; margin-top: 6px; min-width: 220px; }
/* Identité propre d'une entité (17/11/2026) */
.couleurs-entite { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 14px; }
.couleur-saisie { display: flex; gap: 6px; align-items: center; }
.couleur-saisie input[type=color] { width: 44px; height: 40px; padding: 2px; border: 1px solid var(--ligne); border-radius: 8px; background: #fff; flex: none; }
.apercu-marque { background: var(--fond); border: 1px solid var(--ligne); border-radius: 8px; padding: 12px; margin-bottom: 10px; display: inline-block; }
.apercu-marque img { max-height: 60px; max-width: 260px; display: block; }
.apercu-marque.icone img { width: 64px; height: 64px; border-radius: 14px; }
.ligne-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.logo img.logo-entite { height: 34px; width: auto; display: block; }
.logo-page.logo-entite { width: auto; max-width: 70%; max-height: 90px; }
