/* synchro-stocks — "mur de bacs de rangement" */

.section-tete{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:16px;}
.section-tete h2{font-size:26px;margin:0;}
.section-tete p{margin:2px 0 0;font-size:14px;color:var(--muted);}

.colonne-tete{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid var(--acier);}
.colonne-tete h3{font-size:15px;margin:0;text-transform:uppercase;letter-spacing:.02em;}

/* ---------- mur de bacs : la table devient une grille de tiroirs ---------- */
.grille-stock{width:100%;border-collapse:separate;border-spacing:0;font-size:13px;}
.grille-stock thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;}
.grille-stock tbody{display:grid;grid-template-columns:repeat(auto-fill,minmax(236px,1fr));gap:14px;padding:16px;}
.grille-stock tr{
  display:flex;flex-wrap:wrap;align-content:flex-start;
  background:var(--blanc);border:1px solid var(--acier);border-top:none;
  border-radius:0 0 4px 4px;position:relative;padding:20px 14px 12px;
}
.grille-stock tr::before{
  content:"";position:absolute;top:0;left:12px;right:12px;height:8px;
  background:var(--acier);border-radius:0 0 2px 2px;
}
.grille-stock tr.ecart::before{background:var(--sig-warn);}
.grille-stock tr.rupture::before{background:var(--sig-err);}
.grille-stock td{border:none;padding:4px 0;}

.grille-stock td:nth-child(1){flex:0 0 100%;padding-bottom:10px;margin-bottom:8px;border-bottom:1px dashed var(--acier);}
.grille-stock td:nth-child(1)>div{font-family:"Barlow Condensed";font-weight:700;letter-spacing:.04em;text-transform:uppercase;margin-top:2px;}

.grille-stock td:nth-child(2),.grille-stock td:nth-child(3){
  flex:1 1 50%;text-align:center;padding:6px 4px 10px;perspective:280px;
}
.grille-stock td:nth-child(3){border-left:1px dashed var(--acier);}
.grille-stock td:nth-child(2)::before,.grille-stock td:nth-child(3)::before{
  display:block;font-family:"Barlow Condensed";font-weight:600;font-size:12px;letter-spacing:.04em;
  text-transform:uppercase;color:var(--muted);margin-bottom:2px;
}
.grille-stock td:nth-child(2)::before{content:"Site web";}
.grille-stock td:nth-child(3)::before{content:"Fournisseur";}

.grille-stock td:nth-child(4){flex:0 0 100%;margin-top:8px;}
.grille-stock td:nth-child(5){flex:0 0 100%;margin-top:10px;}
.grille-stock td:nth-child(5) .btn{width:100%;}

/* ---------- l'élément signature : le chiffre de tiroir qui bascule ---------- */
.qte{
  display:inline-block;font-family:"Barlow Condensed",sans-serif;font-weight:800;
  font-size:clamp(24px,3.6vw,32px);line-height:1;color:var(--marine);
  font-variant-numeric:tabular-nums;transform-style:preserve-3d;transform-origin:50% 50%;
  animation:flip-tiroir 420ms var(--ease);
}
@keyframes flip-tiroir{
  0%{transform:rotateX(85deg);opacity:0;}
  55%{transform:rotateX(-18deg);opacity:1;}
  100%{transform:rotateX(0);opacity:1;}
}

.puce-etat{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:700;padding:3px 9px;border-radius:999px;font-family:"Barlow Condensed";letter-spacing:.02em;text-transform:uppercase;}
.puce-etat .pt{width:6px;height:6px;border-radius:50%;background:currentColor;}
.etat-ok{background:var(--sig-ok-bg);color:var(--sig-ok);}
.etat-ecart{background:var(--sig-warn-bg);color:var(--sig-warn);}
.etat-rupture{background:var(--sig-err-bg);color:var(--sig-err);}
.etat-masque{background:var(--beton);color:var(--muted);}

/* ---------- historique : tickets de quai ---------- */
.historique-liste{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:0;}
.historique-liste li{display:flex;justify-content:space-between;gap:10px;padding:11px 0;border-bottom:1px dashed var(--acier);font-size:13px;}
.historique-liste li:last-child{border-bottom:none;}
.historique-liste li>span:first-child{font-family:"Barlow Condensed";font-weight:700;color:var(--marine);font-variant-numeric:tabular-nums;}
