/* ============================================================================
   HI-VIDY CORE / ADMIN — styles du module STOCKS
   Meme charte que l'Accueil et le Catalogue (vert HI-VIDY, cartes douces).
   ============================================================================ */
.stk{display:flex;flex-direction:column;gap:18px;padding-bottom:24px}
.stk-hote{min-height:200px}
.stk-chargement{color:#6b7d75;font-size:.9rem;padding:24px 0}

.stk-tete{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;flex-wrap:wrap}
.stk-tete h1{margin:0;font-size:1.55rem;font-weight:800;color:#12261f;letter-spacing:-.015em}
.stk-tete p{margin:5px 0 0;font-size:.86rem;color:#61736b}

.stk-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  height:38px;padding:0 16px;border-radius:10px;cursor:pointer;
  border:1px solid #dfe6e1;background:#fff;color:#1c3d33;
  font:inherit;font-size:.83rem;font-weight:650;
  transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease;
}
.stk-btn:hover{border-color:#a9c8bb;box-shadow:0 4px 14px rgba(18,63,51,.07)}
.stk-btn:active{transform:translateY(1px)}
.stk-btn--principal{background:#17513f;border-color:#17513f;color:#fff}
.stk-btn--principal:hover{background:#123f33;border-color:#123f33}
.stk-btn--discret{height:32px;padding:0 12px;font-size:.78rem}

.stk-totaux{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}
.stk-total{
  display:flex;flex-direction:column;gap:4px;
  padding:14px 16px;border-radius:13px;background:#fff;border:1px solid #e6ece7;
}
.stk-total span{font-size:.74rem;font-weight:600;color:#6b7d75;text-transform:uppercase;letter-spacing:.04em}
.stk-total strong{font-size:1.5rem;font-weight:800;color:#12261f;line-height:1.1}
.stk-total--accent{background:#eef7f2;border-color:#d5ebe0}
.stk-total--accent strong{color:#17513f}

.stk-message{
  margin:0;padding:10px 14px;border-radius:10px;font-size:.83rem;
  background:#eef7f2;border:1px solid #d5ebe0;color:#1c6b54;
}
.stk-message--erreur{background:#fdeae7;border-color:#f3cdc6;color:#b23c2f}

.stk-barre{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.stk-recherche{flex:1 1 260px;min-width:0}
.stk-recherche input{
  width:100%;height:38px;padding:0 13px;border-radius:10px;
  border:1px solid #dfe6e1;background:#fff;font:inherit;font-size:.85rem;color:#12261f;
}
.stk-recherche input:focus{outline:2px solid #a9c8bb;outline-offset:1px;border-color:#a9c8bb}
.stk-compte{font-size:.8rem;color:#6b7d75}

.stk-tableau{background:#fff;border:1px solid #e6ece7;border-radius:13px;overflow:hidden}
.stk-tableau table{width:100%;border-collapse:collapse}
.stk-tableau th{
  text-align:left;padding:11px 14px;font-size:.72rem;font-weight:700;color:#61736b;
  text-transform:uppercase;letter-spacing:.045em;background:#f7faf8;border-bottom:1px solid #e6ece7;
}
.stk-tableau td{padding:12px 14px;border-bottom:1px solid #f0f4f1;font-size:.85rem;color:#1c3d33;vertical-align:middle}
.stk-tableau tr:last-child td{border-bottom:0}
.stk-tableau td strong{display:block;font-weight:700;color:#12261f}
.stk-tableau td small{display:block;margin-top:2px;font-size:.75rem;color:#7d8f87}
.stk-num{text-align:right;font-variant-numeric:tabular-nums}
.stk-act{text-align:right;white-space:nowrap}
.stk-tableau th.stk-num,.stk-tableau th.stk-act{text-align:right}

.stk-etat{
  display:inline-block;padding:3px 10px;border-radius:999px;
  font-size:.72rem;font-weight:700;
}
.stk-etat--available{background:#e6f4ec;color:#1c6b54}
.stk-etat--quarantine{background:#fdf1e3;color:#8a5a1e}

.stk-vide{
  display:flex;flex-direction:column;gap:6px;align-items:center;justify-content:center;
  padding:48px 20px;border-radius:13px;background:#f9fbfa;border:1px dashed #d8e3dc;text-align:center;
}
.stk-vide strong{font-size:.95rem;color:#1c3d33}
.stk-vide span{font-size:.82rem;color:#7d8f87}

.stk-form{
  display:flex;flex-direction:column;gap:14px;
  padding:20px;border-radius:13px;background:#fff;border:1px solid #d5ebe0;
  box-shadow:0 6px 24px rgba(18,63,51,.06);
}
.stk-form h2{margin:0;font-size:1.05rem;font-weight:750;color:#12261f}
.stk-form__grille{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px}
.stk-form label{display:flex;flex-direction:column;gap:5px;font-size:.78rem;font-weight:650;color:#4d635a}
.stk-form input,.stk-form select{
  height:36px;padding:0 10px;border-radius:9px;border:1px solid #dfe6e1;
  background:#fff;font:inherit;font-size:.83rem;color:#12261f;
}
.stk-form input:focus,.stk-form select:focus{outline:2px solid #a9c8bb;outline-offset:1px}
.stk-req{color:#b23c2f;margin-left:3px}
.stk-note{margin:0;font-size:.76rem;color:#7d8f87;line-height:1.5}
.stk-form__actions{display:flex;gap:10px;justify-content:flex-end}

@media(max-width:900px){
  .stk-tableau{overflow-x:auto}
  .stk-tableau table{min-width:660px}
}
