/* Onglet Équipements de la fiche projet : champs de quantité lisibles (trois chiffres), sans flèches, quel que soit le thème, la palette ou l'interface
   (Classique et Synthèse), puis fenêtres « Articles » et « Modèles ». Aucune valeur en dur hors des variables ci-dessous et du thème. */
:root {
  --eq-qty-l: 4.5rem;                  /* largeur d'un champ de quantité : un nombre de trois chiffres y tient avec ses marges */
  --eq-qty-t: 14px;                    /* chiffre de la quantité */
  --eq-ins-t: 11px;                    /* quantité installée sous le champ */
  --eq-cat-t: 12px;                    /* titre de catégorie dans la liste des articles */
  --eq-liste-h: 50vh;                  /* hauteur maximale des listes à cocher */
}
/* Spécificité (0,2,1) : passe devant les champs de l'interface Synthèse, qui ajoutaient bordure et marges et cachaient le chiffre. */
.eq input.qty {
  box-sizing: border-box; width: var(--eq-qty-l); min-width: var(--eq-qty-l); min-height: 0; padding: var(--s-1) var(--s-2);
  text-align: center; font-family: var(--font-mono); font-size: var(--eq-qty-t); line-height: 1.4; font-variant-numeric: tabular-nums;
  color: var(--fg); -webkit-text-fill-color: var(--fg); background: var(--field, var(--surface)); border: 1px solid var(--border); border-radius: var(--r-sm);
  -moz-appearance: textfield; appearance: textfield;
}
.eq input.qty::-webkit-inner-spin-button, .eq input.qty::-webkit-outer-spin-button { -webkit-appearance: none; appearance: none; margin: 0; }
.eq input.qty::placeholder { color: var(--muted); -webkit-text-fill-color: var(--muted); opacity: 1; }
.eq input.qty:focus { border-color: var(--accent); }
.eq input.qty:disabled { opacity: 1; cursor: default; background: transparent; border-color: transparent; color: var(--fg); -webkit-text-fill-color: var(--fg); }
.eq .pj-ins { font-size: var(--eq-ins-t); line-height: 1.2; margin-top: var(--s-1); color: var(--success); }

/* Fenêtres Articles et Modèles : liste à cocher groupée par catégorie */
.eqa-q { width: 100%; box-sizing: border-box; margin-bottom: var(--s-3); }
.eqa-liste { max-height: var(--eq-liste-h); overflow-y: auto; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.eqa-cat { position: sticky; top: 0; z-index: 1; padding: var(--s-1) var(--s-3); font-size: var(--eq-cat-t); font-weight: 600; color: var(--muted); background: var(--surface2); border-bottom: 1px solid var(--border); }
.eqa-it { display: flex; align-items: center; gap: var(--s-3); min-width: 0; padding: var(--s-2) var(--s-3); cursor: pointer; color: var(--fg); }
.eqa-it:hover { background: var(--surface2); }
.eqa-it[hidden], .eqa-grp[hidden] { display: none; }
.eqa-ref { font-family: var(--font-mono); font-weight: 600; white-space: nowrap; }
.eqa-des { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.eqa-fixe { display: inline-flex; color: var(--muted); }
.eqa-mod .eqa-des { flex: 1; }
.eqa-act { display: inline-flex; margin-left: auto; }
