/* Écrans de département de config.js (interface 2.0, lot E) : Journal d'audit et Clôture des périodes. Chargé par
   index.html après grille.css. Uniquement les jetons de app.css (docs/INTERFACE.md, points 8 et 9) : aucune couleur en
   dur, aucun attribut style dans le HTML produit. Densité : texte 12 px, lignes 24 px. */

/* ===================== Journal d'audit et Clôture des périodes ===================== */
/* Hôtes data-ecran="journal" et data-ecran="clotures" : en-tête .cfg-tete, bandeau .cfg-bandeau, grille dans .cfg-corps. */

/* En-tête : .panneau-tete commun (24 px, titre en var(--fs-s)), comme les autres volets. Ici plusieurs notes se
   suivent : elles restent après .espace (pas de marge automatique propre à chacune) et se tronquent les premières. */
.cfg-tete { overflow: hidden; }
.cfg-tete h2 { flex: 0 1 auto; }
.cfg-tete .puce { flex: none; }
.panneau-tete.cfg-tete .note { flex: 0 1 auto; margin-left: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cfg-tete .sep { width: 1px; height: 12px; flex: none; background: var(--line); }
.cfg-tete .note .ic { vertical-align: -2px; }
.cfg-bandeau { flex: none; padding: var(--e2) var(--e4); background: var(--bg-1); border-bottom: 1px solid var(--line); }
.cfg-corps { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; }
.cfg-corps > * { flex: 1 1 0; min-height: 0; }

.metier-hote[data-ecran="journal"], .metier-hote[data-ecran="clotures"] { overflow: hidden; }
.cfg-ecran { flex: 1 1 0; min-height: 0; min-width: 0; display: flex; flex-direction: column; background: var(--grid-bg); }
.cfg-bandeau[hidden] { display: none; }
.cfg-w-auteur { width: 120px; }

/* Panneau du dock « Filtres du journal ». */
.cfg-jrf { display: grid; gap: var(--e3); padding: var(--e3) var(--e4); }
.cfg-jrf .form-grille .champ { width: 100%; }
.cfg-jrf .champ[aria-invalid="true"], .rb-champ .champ[aria-invalid="true"] { border-color: var(--bad); box-shadow: inset 0 -2px 0 var(--bad); }

/* Colonne de statut de la grille : nature du changement (journal) ou état de la période (clôtures). La grille ne connaît
   que les statuts du circuit : la lettre « ? » qu'elle pose est remplacée par un symbole propre, le libellé suit toujours. */
.metier-hote[data-ecran="journal"] .grl-pastille,
.metier-hote[data-ecran="clotures"] .grl-pastille { font-size: 0; }
.metier-hote[data-ecran="journal"] .grl-pastille::before,
.metier-hote[data-ecran="clotures"] .grl-pastille::before { font-size: var(--fs-xxs); }
.metier-hote[data-ecran="journal"] .grl-pastille[data-st="creation"] { color: var(--ok); }
.metier-hote[data-ecran="journal"] .grl-pastille[data-st="creation"]::before { content: "+"; }
.metier-hote[data-ecran="journal"] .grl-pastille[data-st="modification"] { color: var(--info); }
.metier-hote[data-ecran="journal"] .grl-pastille[data-st="modification"]::before { content: "M"; }
.metier-hote[data-ecran="journal"] .grl-pastille[data-st="statut"] { color: var(--ink-2); border-radius: 50%; }
.metier-hote[data-ecran="journal"] .grl-pastille[data-st="statut"]::before { content: "S"; }
.metier-hote[data-ecran="journal"] .grl-pastille[data-st="suppression"] { color: var(--bad); border-width: 2px; border-radius: 0; }
.metier-hote[data-ecran="journal"] .grl-pastille[data-st="suppression"]::before { content: "X"; }
.metier-hote[data-ecran="journal"] .grl-pastille[data-st="commentaire"] { color: var(--info); border-style: dotted; }
.metier-hote[data-ecran="journal"] .grl-pastille[data-st="commentaire"]::before { content: "C"; }
.metier-hote[data-ecran="clotures"] .grl-pastille[data-st="cloture"] { color: var(--warn); border-width: 2px; border-radius: 0; }
.metier-hote[data-ecran="clotures"] .grl-pastille[data-st="cloture"]::before { content: "C"; }
.metier-hote[data-ecran="clotures"] .grl-pastille[data-st="rouvert"] { color: var(--info); border-style: dashed; }
.metier-hote[data-ecran="clotures"] .grl-pastille[data-st="rouvert"]::before { content: "R"; }
.metier-hote[data-ecran="clotures"] .grl-pastille[data-st="ouvert"] { color: var(--ink-2); border-radius: 50%; }
.metier-hote[data-ecran="clotures"] .grl-pastille[data-st="ouvert"]::before { content: "O"; }

/* Même symbole dans le panneau Détail (classe .statut de app.css). */
.statut.cfg-nat-creation { color: var(--ok); } .statut.cfg-nat-creation::before { content: "+"; }
.statut.cfg-nat-modification { color: var(--info); } .statut.cfg-nat-modification::before { content: "M"; }
.statut.cfg-nat-statut { color: var(--ink-2); } .statut.cfg-nat-statut::before { content: "S"; border-radius: 50%; }
.statut.cfg-nat-suppression { color: var(--bad); } .statut.cfg-nat-suppression::before { content: "X"; border-width: 2px; border-radius: 0; }
.statut.cfg-nat-commentaire { color: var(--info); } .statut.cfg-nat-commentaire::before { content: "C"; border-style: dotted; }
.statut.cfg-per-cloture { color: var(--warn); } .statut.cfg-per-cloture::before { content: "C"; border-width: 2px; border-radius: 0; }
.statut.cfg-per-rouvert { color: var(--info); } .statut.cfg-per-rouvert::before { content: "R"; border-style: dashed; }
.statut.cfg-per-ouvert { color: var(--ink-2); } .statut.cfg-per-ouvert::before { content: "O"; border-radius: 50%; }
