/* ═══════════════════════════════════════════════════════════════════════════════════════════════
   DTISoft — Dashboard : « Stock et valorisation » (pil-stock) — lot 4 (2026-10-27).
   Complète css/pilotage.css (lot 1 : pil-, stat-, kpi-, chart-, dq-) ; classes propres préfixées stk- / pil-stock.
   ═══════════════════════════════════════════════════════════════════════════════════════════════ */
.pil-stock [hidden], .stk-mvt-overlay [hidden] { display: none !important; }

/* Onglets */
.stk-onglets { display: flex; flex-wrap: wrap; gap: 2px; padding: 0 16px; border-bottom: 1px solid var(--gray-200); background: var(--white); }
.stk-onglet {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 0; border-bottom: 3px solid transparent;
    background: transparent; color: var(--gray-500); font-size: 12.5px; font-weight: 600; cursor: pointer; border-radius: 4px 4px 0 0;
}
.stk-onglet:hover { color: var(--blue-dark); background: var(--gray-50); }
.stk-onglet:focus-visible { outline: 2px solid var(--blue-light); outline-offset: -2px; }
.stk-onglet--actif { color: var(--blue-dark); border-bottom-color: #2563eb; }

/* Barre de choix */
.stk-barre { flex-wrap: wrap; align-items: flex-end; }
.stk-raccourcis, .stk-compare { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px 6px; }
.stk-raccourci { font-size: 11.5px; padding: 0 8px; }
.stk-compare .stat-filtre--case { padding-bottom: 6px; }
.stk-mois { width: 9.5em; }
.stk-seuil { width: 6em; }
.stk-art { width: 11em; }
.stk-valeurs select { max-width: 19em; }

/* Filtres actifs */
.stk-fil { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 16px; background: #f8fbff; border-bottom: 1px solid var(--gray-200); font-size: 12px; }
.stk-fil-lib { color: var(--gray-500); font-weight: 600; }
.stk-pastille { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px 2px 9px; border: 1px solid #bfdbfe; border-radius: 12px; background: #eff6ff; color: var(--blue-dark); }
.stk-pastille-x { width: 20px; height: 20px; border: 0; background: transparent; color: var(--gray-500); border-radius: 50%; cursor: pointer; }
.stk-pastille-x:hover { background: #dbeafe; color: var(--gray-900); }
.stk-fil-tout { font-size: 11.5px; padding: 0 8px; }

/* Tableaux */
.stk-table-zone { width: 100%; overflow-x: auto; min-width: 0; }
.stk-table th.stat-num, .stk-table td.stat-num { width: 1%; }
.stk-col-nom { width: 100%; max-width: 0; min-width: 160px; }
.stk-nom { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.stk-code { font-size: 10.5px; color: var(--gray-400); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stk-ligne--clic { cursor: pointer; }
.stk-table tfoot td.stk-total { font-weight: 700; border-top: 2px solid var(--gray-200); background: var(--gray-50); }
.stk-graphe-court { min-height: 150px; }
.stk-sous-titre { font-size: 13px; font-weight: 700; color: var(--gray-700); margin: 12px 0 6px; }

/* Contrôle */
.stk-ctl { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 6px; font-size: 13px; margin-bottom: 8px; }
.stk-ctl--ok { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.stk-ctl--ko { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.stk-dpifac { padding: 8px 0 10px; border-bottom: 1px solid var(--gray-100); }
.stk-dpifac:last-child { border-bottom: 0; }
.stk-dpifac-titre { font-size: 13px; font-weight: 700; color: var(--gray-700); margin-bottom: 6px; }
.stk-details > summary { cursor: pointer; font-size: 12px; color: #2563eb; margin: 6px 0; }
.stk-anomalie:empty { display: none; }

/* Fenêtre des mouvements d'un article */
.stk-mvt-choix { display: flex; flex-wrap: wrap; gap: 8px 12px; padding: 8px 16px 0; }

@media (max-width: 760px) {
    .stk-onglets { padding: 0 8px; }
    .stk-onglet { padding: 6px 8px; font-size: 12px; }
    .stk-col-nom { min-width: 120px; }
}
@media print {
    .stk-onglets, .stk-barre, .stk-fil { display: none !important; }
}
