/* Récapitulatif Géologie (public/recap_geologie.js, réorganisation 2.12.0, spécification section 3.1.7) : panneaux
   Grade Control, minerai et alimentation, stériles, stock ROM, écart mine/usine, réconciliation, Usine du jour. Jetons et
   classes de app.css seulement ; aucune couleur en dur. La page ne défile jamais : grille de 12 colonnes dont les rangées
   sont ajustées à la zone (places par le CSSOM, disposition personnelle de public/disposition.js), chaque panneau fait
   défiler son seul corps. Un écart porte une flèche et un texte en plus de sa couleur. */

.rg-ecran { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.rg-barre { gap: var(--e3); }
.rg-onglets { display: inline-flex; align-items: stretch; height: 22px; gap: 1px; }
.rg-onglets [role="tab"] { padding: 0 var(--e4); border: 1px solid var(--line); border-radius: var(--r2) var(--r2) 0 0; background: var(--bg-2); color: var(--ink-2); font-size: var(--fs-s); }
.rg-onglets [role="tab"][aria-selected="true"] { background: var(--grid-bg); color: var(--ink); box-shadow: inset 0 2px 0 var(--accent); font-weight: 600; }
.rg-cols { display: inline-flex; gap: var(--e1); }
.rg-m { flex: none; display: flex; flex-direction: column; gap: var(--e2); max-height: 72px; overflow: auto; padding: 0 var(--e2); scrollbar-width: thin; }
.rg-m:empty { display: none; }
.rg-vue { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: var(--e2); }
.rg-vue[hidden] { display: none; }
/* Zone de la grille : seule elle défile si les panneaux dépassent (rangées de 24 px au moins). Le moteur de disposition
   pose la classe disp-grille (12 colonnes, rangées --disp-rang ajustées à cette zone) ; repli sans moteur : 12 colonnes. */
.rg-zone { overflow: auto; scrollbar-width: thin; scrollbar-color: var(--line-fort) transparent; }
.rg-grille { flex: none; gap: var(--e2); }
.rg-grille:not(.disp-grille) { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 24px; }
.rg-p { min-height: 0; }
.rg-p .panneau-corps { scrollbar-width: thin; }

.rg-tab { width: 100%; table-layout: auto; }
.rg-tab + .rg-tab { margin-top: var(--e3); }
.rg-tab caption { padding: var(--e2) 0; color: var(--ink-2); font-size: var(--fs-s); font-weight: 600; text-align: left; }
.rg-tab th, .rg-tab td { height: 20px; padding: 0 var(--e2); font-size: var(--fs-s); }
.rg-tab thead th small, .rg-tab td small { margin-left: var(--e1); color: var(--ink-2); font-weight: 400; }
.rg-tab .rg-mes { min-width: 150px; max-width: 280px; text-align: left; }
.rg-tab .rg-reel { font-weight: 600; }
.rg-tab td.rg-t { white-space: normal; height: auto; padding: var(--e1) var(--e2); }
.rg-tab td .aide { font-weight: 400; }
.rg-tab td:has(.aide) { height: auto; white-space: normal; }
.rg-tab tr.rg-controle > * { color: var(--ink-2); font-style: italic; }
.rg-tab-jpj { width: max-content; min-width: 100%; }
.rg-tab-jpj .rg-mes { position: sticky; left: 0; z-index: 1; min-width: 96px; border-right: 1px solid var(--line-fort); }
.rg-tab-jpj thead .rg-mes { z-index: 3; }
.rg-texte { white-space: pre-wrap; overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .rg-grille, .rg-grille.disp-grille { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-rows: minmax(200px, auto); }
  .rg-grille > .rg-p, .rg-grille.disp-grille > .rg-p { grid-column: 1 / -1 !important; grid-row: auto !important; }
}

/* ------------------------------------------------------------------ Tableaux de bord standard (02/11/2026, 1.13, 2.9) */
/* Panneaux graphiques jour par jour (mètres GC, stock ROM) : le moteur remplit le corps (12 rangées à l'origine). */
.rg-p .panneau-corps.rg-corps-graphe { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.rg-graphe { flex: 1; min-height: 0; position: relative; }
.rg-graphe .gg-titre { display: none; }
.rg-corps-graphe > .vide-centre, .rg-corps-graphe > .chargement { flex: 1; }
/* Usine du jour : colonnes réparties sur la largeur du panneau (plus de tableau plus large que son cadre), en-têtes
   « libellé (unité) » sur deux lignes au besoin. */
.rg-tab-usine { table-layout: fixed; width: 100%; }
.rg-tab-usine thead th { height: auto; min-height: 20px; padding: var(--e1) var(--e2); white-space: normal; overflow-wrap: anywhere; line-height: 1.25; vertical-align: bottom; }
/* Raisons des n.d. : chaque raison une fois, dans la bulle (i) du panneau (bulles.js, 04/11/2026), plus sous le tableau. */
.rg-tab .nd { white-space: nowrap; }
