/* Les dirigeants d'une société : onglet Propriétaires, fiche parcelle, onglet Permis (src/dirigeants.js) */
.dg { margin: 0 0 6px; padding: 8px 10px 10px; border-radius: var(--r-bouton); box-shadow: inset 0 0 0 1px var(--filet); font-size: var(--t-13); }
.dg .dg { margin: 6px 0 0; }
.dg-titre { margin: 0 0 4px; font-size: var(--t-12); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--encre-3); }
.dg-titre .dg-reserve { display: inline-flex; align-items: center; min-height: 20px; margin-left: 6px; padding: 0 8px; border-radius: var(--r-rond); background: var(--survol); font-size: var(--t-11); letter-spacing: 0; text-transform: none; color: var(--encre-2); vertical-align: 1px; }
.dg-liste { list-style: none; margin: 0; padding: 0; }
.dg-liste > li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 6px 0; }
.dg-liste > li + li { border-top: 1px solid var(--filet); }
.dg-nom { font-weight: 600; color: var(--encre); }
.dg-nom a { color: inherit; text-decoration: none; }
.dg-nom a:hover { text-decoration: underline; }
.dg-meta, .dg-note { color: var(--encre-3); }
.dg-note { margin: 4px 0 0; font-size: var(--t-12); }
.dg-chiffres { font-variant-numeric: tabular-nums; color: var(--encre-2); }
.dg-suite { flex-basis: 100%; padding: 0 0 0 12px; border-left: 2px solid var(--filet); }
.dg-societes > li { padding: 4px 0; }
.dg .pm-lien { min-height: 32px; }
/* Dans les fenêtres (Propriétaires, Permis), le tableau défile seul sous le bloc : une longue liste
   de dirigeants l'écrasait jusqu'à ne laisser que ses en-têtes (capture d'Henri, 09/10/2026).
   Le bloc garde une hauteur bornée et défile lui-même. */
.pg .dg:not(.dg .dg) { flex: none; max-height: min(28vh, 240px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
/* et le tableau garde de quoi montrer quelques lignes : c'est le panneau entier qui défile */
@media (min-width: 900px) {
  .pg .fc-resultats:has(.dg) { overflow-y: auto; }
  .pg .fc-resultats:has(.dg) > .fc-table-cadre { flex: none; min-height: 240px; max-height: 70vh; }
}
@supports selector(::-webkit-scrollbar) {
  .pg .dg:not(.dg .dg) { scrollbar-width: auto; }
  .pg .dg::-webkit-scrollbar { width: 12px; }
  .pg .dg::-webkit-scrollbar-track { background: transparent; margin: 8px 0; }
  .pg .dg::-webkit-scrollbar-thumb { border: 4px solid transparent; border-radius: var(--r-pastille); background: var(--filet-2, rgba(128, 128, 128, 0.4)) padding-box; }
}
/* Les deux actions d'un dirigeant personne, la liste repliée, le patrimoine de toutes ses sociétés
   (Henri, 12/10/2026). Un `li` porte display: flex : sans cette règle, [hidden] ne le cacherait pas. */
.dg-actions { display: inline-flex; flex-wrap: wrap; gap: 2px 14px; }
.dg-liste > li[hidden] { display: none; }
.dg .dg-deplier { margin: 2px 0 0; }
.dg-patrimoine { position: relative; flex-basis: 100%; margin: 4px 0 2px; padding: 8px 36px 8px 10px; border-radius: var(--r-bouton); background: var(--survol); color: var(--encre-2); }
.dg-patrimoine p { margin: 0; }
.dg-patrimoine b { color: var(--encre); font-weight: 600; }
.dg-fermer { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; padding: 0; border: 0; border-radius: var(--r-bouton); background: none; color: var(--attenue); font: inherit; font-size: var(--t-17); line-height: 1; cursor: pointer; }
.dg-fermer:hover { background: var(--actif); color: var(--encre); }
.dg [data-dg-patrimoine][aria-pressed="true"] { font-weight: 600; }
@media (max-width: 899px) { .dg-fermer { width: 44px; height: 44px; top: 0; right: 0; } .dg-patrimoine { padding-right: 48px; } }
