/* FOOTPASS · Coffre-fort · Labo · styles v3 (modèle entité×catégorie, arrivée refuge)
   Complète coffre-lab.css. Or #C9A24B jamais en aplat · vert #00A37E = signal. */

/* ── LOT 5 · pré-filtre structure (chip dorée retirable) ── */
.cf3-structbar{margin:0 0 12px}
.cf3-structchip{display:flex;align-items:center;gap:10px;width:100%;box-sizing:border-box;padding:11px 13px;border-radius:16px;cursor:pointer;text-align:left;border:1px solid rgba(201,162,75,.4);background:rgba(201,162,75,.09)}
.cf3-structgm{width:30px;height:30px;border-radius:9px;flex:none;display:flex;align-items:center;justify-content:center;font:800 11px/1 'Inter',sans-serif;background:rgba(201,162,75,.18);color:#C9A24B}
.cf3-structtx{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.cf3-structtx b{font:750 13px/1.2 'Inter',sans-serif;color:#C9A24B}
.cf3-structtx em{font:450 10.5px/1.3 'Inter',sans-serif;font-style:normal;color:#B9A16A}
.cf3-structx{flex:none;width:24px;height:24px;border-radius:99px;display:flex;align-items:center;justify-content:center;font:400 17px/1 'Inter',sans-serif;color:#C9A24B;background:rgba(201,162,75,.14)}
.cf3-structnote{margin:8px 4px 0;font:400 10.5px/1.5 'Inter',sans-serif;color:#8E8E96}
.cf3-structnote b{font-weight:650;color:#B9A16A}
.cf.light .cf3-structchip{border-color:rgba(143,107,37,.42);background:rgba(201,162,75,.1)}
.cf.light .cf3-structgm{background:rgba(143,107,37,.16);color:#8F6B25}
.cf.light .cf3-structtx b{color:#8F6B25}
.cf.light .cf3-structtx em{color:#9A804C}
.cf.light .cf3-structx{color:#8F6B25;background:rgba(143,107,37,.13)}
.cf.light .cf3-structnote{color:#6B6B73}
.cf.light .cf3-structnote b{color:#8F6B25}

/* ── Sceau : lueur or douce ── */
.cf .cf2-glow { position: relative; box-shadow: 0 0 0 1px rgba(201, 162, 75, 0.25), 0 0 34px rgba(201, 162, 75, 0.13); }

/* ── Garanties (2×2) ── */
.cf2-gua { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 4px; }
.cf2-gua > span { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 10px 11px; border-radius: 12px; font-size: 11px; font-weight: 650; line-height: 1.25; letter-spacing: 0.01em; }
.cf.dark .cf2-gua > span { background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.07); color: #EAEAEA; }
.cf.light .cf2-gua > span { background: rgba(15, 15, 16, 0.035); border: 1px solid rgba(15, 15, 16, 0.08); color: #1A1A1B; }
.cf2-gua > span > i { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 99px; color: #C9A24B; border: 1px solid rgba(201, 162, 75, 0.35); background: rgba(201, 162, 75, 0.08); margin-bottom: 2px; }
.cf2-gua > span > em { font-style: normal; font-size: 10px; font-weight: 500; }
.cf.dark .cf2-gua > span > em { color: rgba(234, 234, 234, 0.55); }
.cf.light .cf2-gua > span > em { color: rgba(26, 26, 27, 0.55); }

/* ── Ligne contrôle · délégations ── */
.cf2-ctrl { text-align: center; font-size: 11.5px; font-weight: 500; margin: 12px 0 2px; }
.cf.dark .cf2-ctrl { color: rgba(234, 234, 234, 0.62); }
.cf.light .cf2-ctrl { color: rgba(26, 26, 27, 0.62); }
.cf2-ctrl b { font-weight: 700; color: #C9A24B; }

/* ── Inventaire scellé ── */
.cf2-inv { display: grid; gap: 8px; }
.cf2-sealcard { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 11px 12px; border-radius: 16px; cursor: pointer; font: inherit; }
.cf.dark .cf2-sealcard { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.065); color: #EAEAEA; }
.cf.light .cf2-sealcard { background: #FFFFFF; border: 1px solid rgba(15, 15, 16, 0.08); color: #1A1A1B; }
.cf2-sealcard:active { transform: scale(0.99); }
.cf2-sealic { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 99px; color: #C9A24B; border: 1px solid rgba(201, 162, 75, 0.32); background: rgba(201, 162, 75, 0.07); }
.cf2-seal-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cf2-seal-t b { font-size: 12.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf2-seal-t em { font-style: normal; font-size: 10.5px; font-weight: 500; }
.cf.dark .cf2-seal-t em { color: rgba(234, 234, 234, 0.52); }
.cf.light .cf2-seal-t em { color: rgba(26, 26, 27, 0.52); }
.cf2-sealbar { display: block; height: 5px; width: 72%; border-radius: 99px; margin-top: 3px; filter: blur(1.6px); }
.cf.dark .cf2-sealbar { background: linear-gradient(90deg, rgba(234, 234, 234, 0.16), rgba(234, 234, 234, 0.05)); }
.cf.light .cf2-sealbar { background: linear-gradient(90deg, rgba(26, 26, 27, 0.16), rgba(26, 26, 27, 0.05)); }
.cf2-sealcard:nth-child(2n) .cf2-sealbar { width: 54%; }
.cf2-sealcard:nth-child(3n) .cf2-sealbar { width: 63%; }

/* ── Pastille Expiré ── */
.cf.dark .cf-pill.exp { color: rgba(234, 234, 234, 0.55); border-color: rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.04); }
.cf.light .cf-pill.exp { color: rgba(26, 26, 27, 0.55); border-color: rgba(15, 15, 16, 0.14); background: rgba(15, 15, 16, 0.03); }

/* ── Bandeau compteurs (esprit Autorisations) ── */
.cf2-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1px; border-radius: 14px; overflow: hidden; margin: 2px 0 12px; }
.cf.dark .cf2-stats { border: 1px solid rgba(255, 255, 255, 0.07); background: rgba(255, 255, 255, 0.07); }
.cf.light .cf2-stats { border: 1px solid rgba(15, 15, 16, 0.09); background: rgba(15, 15, 16, 0.09); }
.cf2-stat { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 11px; font: inherit; cursor: pointer; text-align: left; border: 0; }
.cf.dark .cf2-stat { background: #141415; color: #EAEAEA; }
.cf.light .cf2-stat { background: #FFFFFF; color: #1A1A1B; }
.cf2-stat b { font-size: 19px; font-weight: 800; line-height: 1; }
.cf2-stat.ok b { color: #00A37E; }
.cf2-stat.warn b { color: #E2B248; }
.cf2-stat span { font-size: 10px; font-weight: 550; line-height: 1.2; }
.cf.dark .cf2-stat span { color: rgba(234, 234, 234, 0.6); }
.cf.light .cf2-stat span { color: rgba(26, 26, 27, 0.6); }
.cf.dark .cf2-stat.on { background: #1D1D1F; box-shadow: inset 0 0 0 1px rgba(234, 234, 234, 0.22); }
.cf.light .cf2-stat.on { background: #F3F3F1; box-shadow: inset 0 0 0 1px rgba(26, 26, 27, 0.22); }

/* ── Onglets ── */
.cf2-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 0 8px; padding-bottom: 2px; }
.cf2-tabs::-webkit-scrollbar { display: none; }
.cf2-tab { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 99px; font: inherit; font-size: 12.5px; font-weight: 650; cursor: pointer; }
.cf.dark .cf2-tab { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.07); color: rgba(234, 234, 234, 0.75); }
.cf.light .cf2-tab { background: rgba(15, 15, 16, 0.04); border: 1px solid rgba(15, 15, 16, 0.08); color: rgba(26, 26, 27, 0.72); }
.cf.dark .cf2-tab.on { background: #EAEAEA; border-color: #EAEAEA; color: #0F0F10; }
.cf.light .cf2-tab.on { background: #141414; border-color: #141414; color: #F5F5F4; }
.cf2-tab i { display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; font-style: normal; font-size: 9.5px; font-weight: 700; }
.cf.dark .cf2-tab i { background: rgba(255, 255, 255, 0.1); }
.cf.light .cf2-tab i { background: rgba(15, 15, 16, 0.08); }
.cf.dark .cf2-tab.on i { background: rgba(15, 15, 16, 0.12); color: #0F0F10; }
.cf.light .cf2-tab.on i { background: rgba(245, 245, 244, 0.22); color: #F5F5F4; }

/* ── Puces catégories (ultra-compactes) ── */
.cf2-fams { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 12px; }
.cf2-fam { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 99px; font: inherit; font-size: 10.5px; font-weight: 600; cursor: pointer; }
.cf.dark .cf2-fam { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.06); color: rgba(234, 234, 234, 0.66); }
.cf.light .cf2-fam { background: rgba(15, 15, 16, 0.03); border: 1px solid rgba(15, 15, 16, 0.07); color: rgba(26, 26, 27, 0.66); }
.cf.dark .cf2-fam.on { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); color: #EAEAEA; }
.cf.light .cf2-fam.on { background: rgba(15, 15, 16, 0.07); border-color: rgba(15, 15, 16, 0.2); color: #1A1A1B; }
.cf2-fam i { width: 7px; height: 7px; border-radius: 99px; flex: none; }

/* ── Jeton de filtre actif (dossier · échéances) ── */
.cf2-token { display: flex; align-items: center; gap: 8px; padding: 9px 8px 9px 13px; border-radius: 12px; margin: 0 0 10px; }
.cf.dark .cf2-token { background: rgba(201, 162, 75, 0.07); border: 1px solid rgba(201, 162, 75, 0.22); }
.cf.light .cf2-token { background: rgba(201, 162, 75, 0.09); border: 1px solid rgba(201, 162, 75, 0.3); }
.cf2-token b { flex: 1; font-size: 12.5px; font-weight: 700; }
.cf2-token button { flex: none; width: 26px; height: 26px; border-radius: 99px; border: 0; cursor: pointer; font-size: 15px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; font-family: inherit; }
.cf.dark .cf2-token button { background: rgba(255, 255, 255, 0.08); color: #EAEAEA; }
.cf.light .cf2-token button { background: rgba(15, 15, 16, 0.07); color: #1A1A1B; }

/* ── Entête de dossier (entité) ── */
.cf2-group { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; padding: 10px 4px 8px; margin-top: 8px; background: none; border: 0; cursor: pointer; font: inherit; }
.cf2-group:first-of-type { margin-top: 0; }
.cf.dark .cf2-group { color: #EAEAEA; }
.cf.light .cf2-group { color: #1A1A1B; }
.cf2-group b { font-size: 13px; font-weight: 700; }
.cf2-group em { flex: 1; min-width: 0; font-style: normal; font-size: 10.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf.dark .cf2-group em { color: rgba(234, 234, 234, 0.5); }
.cf.light .cf2-group em { color: rgba(26, 26, 27, 0.5); }
.cf2-gn { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; font-size: 10px; font-weight: 700; }
.cf.dark .cf2-gn { background: rgba(255, 255, 255, 0.08); }
.cf.light .cf2-gn { background: rgba(15, 15, 16, 0.07); }
.cf2-orgav { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 99px; font-size: 9.5px; font-weight: 800; letter-spacing: 0.04em; color: #C9A24B; border: 1px solid rgba(201, 162, 75, 0.35); background: rgba(201, 162, 75, 0.08); }

/* ── Échéance ── */
.cf2-alert { display: block; width: 100%; text-align: left; padding: 10px 13px; border-radius: 12px; margin: 0 0 10px; font: inherit; font-size: 12px; font-weight: 550; line-height: 1.35; cursor: pointer; }
.cf.dark .cf2-alert { background: rgba(226, 178, 72, 0.07); border: 1px solid rgba(226, 178, 72, 0.28); color: #EAEAEA; }
.cf.light .cf2-alert { background: rgba(226, 178, 72, 0.1); border: 1px solid rgba(226, 178, 72, 0.4); color: #1A1A1B; }
.cf2-alert b { color: #E2B248; font-weight: 750; margin-right: 5px; }
.cf2-soon { color: #E2B248; font-weight: 650; }

/* ── Confidentialité sur carte ── */
.cf2-priv { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 600; white-space: nowrap; }
.cf.dark .cf2-priv { color: rgba(234, 234, 234, 0.5); }
.cf.light .cf2-priv { color: rgba(26, 26, 27, 0.5); }

/* ── Mini-icônes de droits ── */
.cf2-ricons { display: inline-flex; gap: 3px; flex: none; }
.cf2-ricons i { display: inline-flex; align-items: center; justify-content: center; width: 19px; height: 19px; border-radius: 99px; }
.cf.dark .cf2-ricons i { background: rgba(255, 255, 255, 0.06); color: rgba(234, 234, 234, 0.72); }
.cf.light .cf2-ricons i { background: rgba(15, 15, 16, 0.05); color: rgba(26, 26, 27, 0.68); }

/* ── Journal ── */
.cf2-acts { display: grid; gap: 4px; }
.cf2-act { display: flex; align-items: center; gap: 8px; padding: 7px 4px; font-size: 11.5px; line-height: 1.3; }
.cf2-act > span { flex: 1; min-width: 0; }
.cf.dark .cf2-act > span { color: rgba(234, 234, 234, 0.72); }
.cf.light .cf2-act > span { color: rgba(26, 26, 27, 0.72); }
.cf2-act b { font-weight: 650; }
.cf.dark .cf2-act b { color: #EAEAEA; }
.cf.light .cf2-act b { color: #1A1A1B; }
.cf2-act em { flex: none; font-style: normal; font-size: 10px; font-weight: 500; }
.cf.dark .cf2-act em { color: rgba(234, 234, 234, 0.42); }
.cf.light .cf2-act em { color: rgba(26, 26, 27, 0.42); }

/* ── Traitées ── */
.cf2-done { display: grid; gap: 6px; }
.cf2-donerow { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 12px; }
.cf.dark .cf2-donerow { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.05); }
.cf.light .cf2-donerow { background: rgba(15, 15, 16, 0.025); border: 1px solid rgba(15, 15, 16, 0.06); }
.cf2-donerow i { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 99px; }
.cf2-donerow i.ok { color: #00A37E; background: rgba(0, 163, 126, 0.1); }
.cf.dark .cf2-donerow i.no { color: rgba(234, 234, 234, 0.5); background: rgba(255, 255, 255, 0.06); }
.cf.light .cf2-donerow i.no { color: rgba(26, 26, 27, 0.5); background: rgba(15, 15, 16, 0.05); }
.cf2-donerow span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cf2-donerow b { font-size: 12px; font-weight: 650; }
.cf2-donerow em { font-style: normal; font-size: 10.5px; font-weight: 500; }
.cf.dark .cf2-donerow em { color: rgba(234, 234, 234, 0.5); }
.cf.light .cf2-donerow em { color: rgba(26, 26, 27, 0.5); }

/* ── Lignes personnes / documents (Accès) ── */
.cf2-list-pad { display: grid; gap: 8px; }
.cf2-prow { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; min-height: 48px; padding: 9px 11px; border-radius: 14px; cursor: pointer; font: inherit; }
.cf.dark .cf2-prow { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.065); color: #EAEAEA; }
.cf.light .cf2-prow { background: #FFFFFF; border: 1px solid rgba(15, 15, 16, 0.08); color: #1A1A1B; }
.cf2-prow.doc { min-height: 42px; padding: 7px 9px; border-radius: 11px; }
.cf2-prow-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cf2-prow-t b { font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf2-prow-t em { font-style: normal; font-size: 10.5px; font-weight: 500; }
.cf.dark .cf2-prow-t em { color: rgba(234, 234, 234, 0.52); }
.cf.light .cf2-prow-t em { color: rgba(26, 26, 27, 0.52); }

/* ── Feuille personne · groupes catégorie ── */
.cf2-pgrp { margin-top: 12px; }
.cf2-pgrp-h { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 750; letter-spacing: 0.09em; text-transform: uppercase; margin: 0 2px 7px; }
.cf.dark .cf2-pgrp-h { color: rgba(234, 234, 234, 0.55); }
.cf.light .cf2-pgrp-h { color: rgba(26, 26, 27, 0.55); }
.cf2-pgrp-h i { width: 7px; height: 7px; border-radius: 99px; }
.cf2-pgrp .cf2-prow + .cf2-prow { margin-top: 6px; }

/* ── Divers ── */
.cf2-hint { font-size: 11.5px; font-weight: 500; margin: 2px 2px 10px; line-height: 1.4; }
.cf.dark .cf2-hint { color: rgba(234, 234, 234, 0.55); }
.cf.light .cf2-hint { color: rgba(26, 26, 27, 0.55); }
.cf2-empty { text-align: center; font-size: 12px; margin: 16px 0; }
.cf.dark .cf2-empty { color: rgba(234, 234, 234, 0.5); }
.cf.light .cf2-empty { color: rgba(26, 26, 27, 0.5); }
.cf-btn.danger { color: #E08A3C; border-color: rgba(224, 138, 60, 0.4); }
.cf.dark .cf-hbtn.on { background: rgba(255, 255, 255, 0.14); }
.cf.light .cf-hbtn.on { background: rgba(15, 15, 16, 0.1); }

/* Header : 4 boutons ronds · titre sur une ligne, boutons compacts */
.cf-head .cf-h1 { white-space: nowrap; flex: 1 0 auto; min-width: 0; }
.cf-head { gap: 7px; }
.cf-head .cf-hbtn { flex: none; width: 31px; height: 31px; min-width: 31px; }

/* ── Découverte · 4 principes ── */
.cf2-intro { display: flex; flex-direction: column; gap: 8px; padding-top: 6px; }
.cf2-intro .cf-seal { align-self: center; }
.cf2-intro h2 { text-align: center; font-size: 20px; font-weight: 800; letter-spacing: -0.01em; margin: 10px 0 0; }
.cf2-intro-sub { text-align: center; font-size: 12.5px; font-weight: 500; line-height: 1.45; margin: 2px 18px 10px; }
.cf.dark .cf2-intro-sub { color: rgba(234, 234, 234, 0.6); }
.cf.light .cf2-intro-sub { color: rgba(26, 26, 27, 0.6); }
.cf2-prin { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 16px; }
.cf.dark .cf2-prin { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.065); }
.cf.light .cf2-prin { background: #FFFFFF; border: 1px solid rgba(15, 15, 16, 0.08); }
.cf2-prin > i { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 99px; font-style: normal; font-size: 11px; font-weight: 800; color: #C9A24B; border: 1px solid rgba(201, 162, 75, 0.35); background: rgba(201, 162, 75, 0.08); }
.cf2-prin > span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cf2-prin b { font-size: 13px; font-weight: 700; line-height: 1.3; }
.cf2-prin em { font-style: normal; font-size: 11.5px; font-weight: 500; line-height: 1.45; }
.cf.dark .cf2-prin em { color: rgba(234, 234, 234, 0.6); }
.cf.light .cf2-prin em { color: rgba(26, 26, 27, 0.6); }
.cf2-prin-cats { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.cf2-intro .cf-unlockbtn { margin-top: 10px; }

@media (prefers-reduced-motion: reduce) {
  .cf2-sealcard:active { transform: none; }
}
