/* Récapitulatif Mine (public/recap_mine.js, réorganisation 2.12.0, spécification section 3.1.7) : panneaux par flotte,
   colonnes Toutes flottes et Autres, engins, forage, contrôle Géologie, bloc Drill & Blast du jour. Jetons et classes de
   app.css seulement ; aucune couleur en dur. La page ne défile jamais : les panneaux occupent une grille de 12 colonnes
   dont les rangées sont ajustées à la zone (places posées par le CSSOM, disposition personnelle de public/disposition.js) ;
   chacun fait défiler son seul corps. Un écart porte une flèche et un texte en plus de sa couleur. */

.rm-ecran { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.rm-barre { gap: var(--e3); }
.rm-onglets { display: inline-flex; align-items: stretch; height: 22px; gap: 1px; }
.rm-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); }
.rm-onglets [role="tab"][aria-selected="true"] { background: var(--grid-bg); color: var(--ink); box-shadow: inset 0 2px 0 var(--accent); font-weight: 600; }
.rm-cols { display: inline-flex; gap: var(--e1); }
.rm-mes { display: inline-flex; align-items: center; gap: var(--e3); color: var(--ink-2); font-size: var(--fs-s); }
.rm-mes .champ { height: 20px; color: var(--ink); }
.rm-m { flex: none; display: flex; flex-direction: column; gap: var(--e2); max-height: 72px; overflow: auto; padding: 0 var(--e2); scrollbar-width: thin; }
.rm-m:empty { display: none; }
.rm-vue { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: var(--e2); }
.rm-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. */
.rm-zone { overflow: auto; scrollbar-width: thin; scrollbar-color: var(--line-fort) transparent; }
.rm-grille { flex: none; gap: var(--e2); }
.rm-grille:not(.disp-grille) { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 24px; }
.rm-p { min-height: 0; }
.rm-p .panneau-corps { scrollbar-width: thin; }
.rm-p .panneau-corps.plein { display: flex; flex-direction: column; }
.rm-outils { flex: none; display: flex; align-items: center; gap: var(--e3); padding: var(--e1) var(--e4); border-bottom: 1px solid var(--grid-line); color: var(--ink-2); font-size: var(--fs-s); }
.rm-sel { height: 18px; max-width: 200px; font-size: var(--fs-s); }

/* Tableaux denses : colonnes groupées par flotte, défilement dans le panneau. */
.rm-tab { width: max-content; min-width: 100%; table-layout: auto; }
.rm-tab th, .rm-tab td { height: 20px; padding: 0 var(--e2); font-size: var(--fs-s); }
.rm-tab thead th { text-align: center; }
.rm-tab thead th.n { text-align: right; }
.rm-tab thead tr.rm-h2 th { top: var(--h-tete); color: var(--ink-2); font-weight: 400; }
/* display: table-cell : la classe rm-mes sert aussi au choix de la mesure (inline-flex ci-dessus) ; une cellule en flex
   perd son rowspan et décale toute la seconde ligne d'en-tête d'une colonne. */
.rm-tab .rm-mes { display: table-cell; position: sticky; left: 0; z-index: 1; min-width: 150px; max-width: 240px; text-align: left; border-right: 1px solid var(--line-fort); }
.rm-tab thead .rm-mes { z-index: 3; }
.rm-tab .rm-mes small { margin-left: var(--e2); color: var(--ink-2); font-weight: 400; }
.rm-tab .rm-deb { border-left: 1px solid var(--line-fort); }
.rm-tab .rm-reel { font-weight: 600; }
.rm-tab thead th.rm-c-toutes { box-shadow: inset 0 2px 0 var(--accent); }
.rm-tab thead th.rm-c-autres { box-shadow: inset 0 2px 0 var(--line-fort); }
.rm-tab tr.rm-total > * { background: var(--bg-1); font-weight: 600; }
.rm-tab td.rm-manque { background: var(--warn-bg); }
.rm-manque-t { color: var(--warn); font-weight: 600; }
.rm-lien { padding: 0; border: 0; background: transparent; color: var(--info); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.rm-inds { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.rm-ind-fav { box-shadow: inset 0 2px 0 var(--ok); }
.rm-ind-def { box-shadow: inset 0 2px 0 var(--bad); }
.rm-liste { list-style: none; font-size: var(--fs-s); }
.rm-liste li { display: flex; gap: var(--e4); min-height: 18px; align-items: center; border-bottom: 1px solid var(--grid-line); }
.rm-liste time { min-width: 84px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.rm-p-jpj { flex: 1; }

@media (max-width: 900px) {
  .rm-grille, .rm-grille.disp-grille { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-rows: minmax(220px, auto); }
  .rm-grille > .rm-p, .rm-grille.disp-grille > .rm-p { grid-column: 1 / -1 !important; grid-row: auto !important; }
}
.rm-ref { color: var(--ink); }
.rm-ref + .rm-ec, .rm-ref + .nd { margin-left: var(--e1); font-size: var(--fs-xs); }

/* ------------------------------------------------------------------ Tableaux de bord standard (02/11/2026, 1.12, 1.13, 2.8) */
/* Cartes : libellé en petites capitales, valeur réalisée, ligne du plan et ligne du budget (écart en valeur et en %). */
.rm-inds .indicateur.kpi dt { height: 14px; font-size: var(--fs-xs); line-height: 14px; }
.rm-inds .indicateur.kpi dd.kpi-v { height: auto; min-height: 22px; line-height: 22px; text-overflow: clip; }
.rm-inds .indicateur.kpi dd.kpi-ref { height: 14px; color: var(--ink-2); font-size: var(--fs-xs); font-weight: 400; line-height: 14px; font-variant-numeric: tabular-nums; }
/* Panneau Indicateurs bas (12 x 4 d'origine) : une seule rangée de cartes resserrées jusqu'à 112 px (lignes de référence
   coupées, complètes en infobulle), défilement horizontal au-delà, marges réduites ; plusieurs rangées dès que le panneau
   est agrandi. Plus de seconde rangée coupée à 1366 x 768. */
.rm-p[data-el="indicateurs"] > .panneau-corps { container: rminds / size; padding-top: 2px; padding-bottom: 2px; }
@container rminds (max-height: 120px) {
  .rm-inds { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(112px, 1fr); overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
}
/* Panneaux graphiques : le moteur remplit le corps (hauteur donnée par la disposition, 12 rangées à l'origine). */
.rm-p .panneau-corps.rm-corps-graphe { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.rm-graphe { flex: 1; min-height: 0; position: relative; }
.rm-graphe .gg-titre { display: none; }
.rm-corps-graphe > .vide-centre, .rm-corps-graphe > .chargement { flex: 1; }
/* Raisons des n.d. : chaque raison une fois, dans la bulle (i) du panneau (bulles.js, 04/11/2026), plus sous le tableau. */
.rm-tab .nd { white-space: nowrap; }
