/* Laboratoire (GMO 2.35.0, lot 4) : feuille des écrans laboratoire/resultats_demandeur.js (Assay Results des demandeurs),
   laboratoire/lots.js (Lots en cours, Lots à investiguer), laboratoire/qc.js (QC Charts) et des ajouts du Laboratory
   Overview (tdb_laboratoire.js) ; chargée par index.html ; préfixe lab-. Jetons de thème seulement (aucune couleur écrite
   en dur), aucun style en ligne dans les écrans (CSP). Un état ou un verdict porte toujours son texte à côté de sa
   couleur. La page ne défile pas : le corps de l'écran défile seul. */

.lab-ecran { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: var(--e2); padding: var(--e2); }
.lab-ecran [hidden] { display: none !important; }
.lab-barre { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: var(--e2); }
.lab-titre { display: inline-flex; align-items: center; gap: var(--e2); }
.lab-titre h2 { margin: 0; font-size: var(--fs-l); }
.lab-champ { display: inline-flex; align-items: center; gap: var(--e2); }
.lab-champ .champ { width: 170px; }
.lab-pousse { flex: 1; }
.lab-m:empty { display: none; }
.lab-corps { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: var(--e2); scrollbar-width: thin; }
.lab-corps:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.lab-section { flex: none; }
.lab-tete { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e2); padding: var(--e2) var(--e3); }
.lab-tete h3 { margin: 0; font-size: var(--fs-m); }
.lab-defile { max-height: 50vh; overflow: auto; padding: 0 var(--e3) var(--e2); scrollbar-width: thin; }
.lab-table { width: 100%; }
.lab-table th[scope="row"] { font-weight: 500; text-align: left; }
.lab-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.lab-props { padding: 0 var(--e3) var(--e2); }
.lab-note { margin: 0 var(--e3) var(--e2); font-size: var(--fs-s); color: var(--ink-2); }
.lab-actions { display: inline-flex; flex-wrap: wrap; gap: var(--e1); }
.lab-graphe { min-height: 260px; padding: 0 var(--e3) var(--e2); }

/* États des lots et verdicts du contrôle qualité (texte toujours écrit). */
.lab-v, .lab-etat { display: inline-block; padding: 0 var(--e2); border: 1px solid var(--line-fort); border-radius: var(--r2); font-size: var(--fs-s); font-weight: 600; white-space: nowrap; }
.lab-v-ok, .lab-etat-rendu { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
.lab-v-warn, .lab-etat-en_cours { background: var(--warn-bg); border-color: var(--warn); color: var(--warn); }
.lab-v-bad { background: var(--bad-bg); border-color: var(--bad); color: var(--bad); }
.lab-v-ns, .lab-etat-recu { color: var(--ink-2); border-style: dashed; }

/* Laboratory Overview et Assay Results : avertissement « aucun compte n'a le département Laboratoire ». */
.lab-avert-zone:empty { display: none; }
.lab-avert { margin: 0 0 var(--e2); }

@media print {
  .lab-barre .btn, .lab-champ { display: none !important; }
  .lab-corps, .lab-defile { overflow: visible; max-height: none; }
}
