/* Magazine Reconciliation (GMO 2.33.0, lot 7) : feuille de l'écran drill_blast/bilan_depot.js (dépôt d'explosifs de Drill and Blast).
   Jetons et classes de app.css seulement ; aucune couleur en dur à l'écran, aucun style en ligne (CSP). La page ne défile
   pas : le corps de la vue défile seul. Un état (stock négatif, hors tolérance) porte toujours un texte en plus de sa
   couleur (jamais la couleur seule). */

.bd-ecran { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: var(--e2); padding: var(--e2); }
.bd-ecran [hidden] { display: none !important; }
.bd-barre { flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--e2); }
.bd-titre { display: flex; align-items: center; gap: var(--e2); }
.bd-titre h2 { margin: 0; font-size: var(--fs-l); font-weight: 600; }
.bd-choix { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e2); }
.bd-champ { display: inline-flex; align-items: center; gap: var(--e2); font-size: var(--fs-s); color: var(--ink-2); }
.bd-champ .champ { min-width: 140px; }
.bd-onglets { display: flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: var(--r1); overflow: hidden; }
.bd-onglets [role="tab"] { padding: var(--e2) var(--e4); border: 0; border-right: 1px solid var(--line); background: var(--bg-1); color: var(--ink-2); font-size: var(--fs-s); font-weight: 600; letter-spacing: .02em; }
.bd-onglets [role="tab"]:last-child { border-right: 0; }
.bd-onglets [role="tab"][aria-selected="true"] { background: var(--grid-bg); color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
.bd-onglets [role="tab"]:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }

/* Pastilles du mois (bulles.js) : chiffres provisoires, brouillons, alertes « ⚠ N ». */
.bd-m { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e2); }
.bd-m:empty { display: none; }
.bd-m > .bl { margin-left: 0; }

.bd-corps { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: var(--e2); scrollbar-width: thin; }
.bd-corps:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.bd-corps > .panneau { flex: none; }
.bd-tete .bl { margin-left: 0; }
.bd-defile { max-height: 64vh; overflow: auto; padding: var(--e2) var(--e3); scrollbar-width: thin; }
.bd-vide { margin: 0; padding: var(--e3) var(--e4); color: var(--ink-2); }
.bd-sous { margin: var(--e2) 0 var(--e1); font-size: var(--fs-s); font-weight: 600; color: var(--ink-2); }
.bd-jour-choix { display: flex; align-items: center; gap: var(--e2); padding: var(--e2) var(--e4) 0; font-size: var(--fs-s); }

/* Tableaux : largeur au contenu, nombres alignés, ligne de total du dépôt en gras. */
.bd-tab { table-layout: auto; }
.bd-tab th, .bd-tab td { white-space: nowrap; }
.bd-tab td small, .bd-tab th small { color: var(--ink-2); font-size: var(--fs-xs); }
.bd-tab .bd-texte { min-width: 180px; white-space: normal; }
.bd-total th, .bd-total td { font-weight: 600; border-top: 2px solid var(--line-fort); background: var(--bg-1); }
.bd-sec { color: var(--ink-2); font-size: var(--fs-s); }
.bd-alertes { white-space: normal !important; }
.bd-drapeau { display: inline-block; padding: 0 var(--e2); border: 1px solid var(--line-fort); border-radius: var(--r2); font-size: var(--fs-xs); font-weight: 600; }
.bd-mauvais { background: var(--bad-bg); border-color: var(--bad); color: var(--bad); }
.bd-attention { background: var(--warn-bg); border-color: var(--warn); color: var(--warn); }
.bd-bon { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
.bd-l-negatif > * { box-shadow: inset 0 -1px 0 var(--bad); }

@media (max-width: 760px) {
  .bd-barre { flex-direction: column; align-items: stretch; }
  .bd-champ .champ { min-width: 0; }
}

/* Feuille imprimée (PDF par « Enregistrer au format PDF ») : cachée à l'écran ; à l'impression, elle remplace l'écran.
   Couleurs de la charte G-CORE en dur pour le papier seulement (noir 0D0D0D, ambre F28A2E), comme les autres écrans. */
.bd-impression { display: none; }
@media print {
  [data-imp="oui"] .bd-ecran > :not(.bd-impression) { display: none !important; }
  [data-imp="oui"] .bd-ecran { display: block; padding: 0; }
  [data-imp="oui"] .bd-impression { display: block; color: #0D0D0D; background: #FFFFFF; font-size: 8.5pt; }
  .bd-impression .panneau { border: 0; margin-bottom: 10pt; }
  .bd-impression .bd-defile { max-height: none; overflow: visible; padding: 0; }
  .bd-impression .bd-tab th, .bd-impression .bd-tab td { height: auto; padding: 1pt 3pt; font-size: 7.5pt; }
  .bd-i-tete { margin-bottom: 8pt; padding-bottom: 6pt; border-bottom: 3px solid #F28A2E; }
  .bd-i-marque { margin: 0 0 4pt; font-size: 14pt; }
  .bd-i-marque small { font-size: 8pt; font-weight: 600; letter-spacing: .18em; }
  .bd-i-tete h1 { margin: 0 0 4pt; font-size: 13pt; }
}
