/* graphiques_mine.css : styles de la famille « mine » (teneur-tonnage, Sankey, réconciliation,
   Gantt, petits multiples). Jetons de app.css et de graphiques.css uniquement (deux thèmes). */

/* Réconciliation : bande de tolérance et points hors tolérance (cercle : la couleur n'est pas seule) */
.gm-tolerance { fill: color-mix(in srgb, var(--ok) 11%, transparent); }
.gm-hors { fill: none; stroke: var(--bad); stroke-width: 2; }

/* Sankey */
.gm-lien { fill-opacity: .36; stroke: none; transition: fill-opacity var(--duree) ease, opacity var(--duree) ease; }
.gm-lien-uni { fill: var(--c); }
.gm-lien.gg-survol { fill-opacity: .62; filter: none; }
.gm-stop { stop-color: var(--c); }
.gm-noeud { stroke: var(--graph-fond); stroke-width: 1; }
.gg text.gm-noeud-lib { font-size: var(--gg-fs-base); font-weight: 600; fill: var(--ink); paint-order: stroke; stroke: var(--graph-fond); stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }
.gg text.gm-noeud-val { font-size: var(--gg-fs-petit); fill: var(--ink-2); font-variant-numeric: tabular-nums; paint-order: stroke; stroke: var(--graph-fond); stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }
.gg text.gm-ecart { fill: var(--warn); font-weight: 700; }
.gg text.gm-col-titre { font-size: var(--gg-fs-petit); font-weight: 600; letter-spacing: .02em; text-transform: uppercase; fill: var(--ink-2); }

/* Gantt */
.gm-rangee { fill: var(--graph-curseur); }
.gm-poste { fill: color-mix(in srgb, var(--info) 6%, transparent); }
.gm-poste-bord { stroke: var(--graph-axe); stroke-width: 1; stroke-dasharray: 2 3; }
.gm-segment { stroke: var(--graph-fond); stroke-width: .6; }
.gg text.gm-seg-txt { font-size: var(--gg-fs-petit); font-weight: 600; }
.gg text.gm-engin { font-size: var(--gg-fs-base); fill: var(--ink); }
.gg text.gm-entete { font-size: var(--gg-fs-petit); font-weight: 600; fill: var(--ink-2); }
.gg text.gm-kpi { font-size: var(--gg-fs-base); fill: var(--ink); font-variant-numeric: tabular-nums; }
.gg text.gm-kpi-bas { fill: var(--bad); font-weight: 700; }
.gg text.gm-kpi-nd { fill: var(--ink-2); font-style: italic; }

/* Largeur étroite */
.gg text.gm-etroit { font-size: var(--gg-fs-petit); }

/* Contraste forcé (Windows) */
@media (forced-colors: active) {
  .gm-lien, .gm-lien-uni { fill: CanvasText; fill-opacity: .25; }
  .gm-tolerance, .gm-poste, .gm-rangee { fill: Canvas; stroke: CanvasText; stroke-width: .5; }
  .gm-hors { stroke: Highlight; }
  .gg text.gm-kpi-bas, .gg text.gm-ecart { fill: Highlight; }
}
