/* WSC Ferme — lot L5 : espace Magasin. Stock en sacs et en jours (jauge orange, repère du seuil de la ferme), alerte de
   stock bas, carte « L'aliment » (sorti / noté, maquette 05), gestes du magasinier au téléphone (sortie par bâtiment
   au sac ou au kilo, réception, inventaire). Règles rangées sous .l5 (voir ventes.css, qui porte les styles communs). */

.l5 .actions-magasin { display: flex; gap: 10px; flex-wrap: wrap; }
.l5 .actions-magasin .bouton.grand { width: auto; padding: 0 22px; }
.l5 .stocks { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.l5 .stock { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.l5 .stock.alerte { border: 2px solid #F3C1BB; }
.l5 .stock-chiffre { font-size: 28px; font-weight: 800; letter-spacing: -.4px; line-height: 1.1; }
.l5 .stock small { font-size: 13px; }
.l5 .jauge { position: relative; height: 8px; border-radius: 99px; background: var(--gris-clair); overflow: visible; }
.l5 .jauge i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: var(--orange); }
.l5 .stock.alerte .jauge i { background: var(--ko); }
.l5 .jauge b { position: absolute; top: -3px; width: 2px; height: 14px; background: var(--encre); border-radius: 2px; opacity: .55; }
.l5 .alerte-stock { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px;
	border: 2px solid #F3C1BB; }
.l5 .picto.ko { background: var(--ko-clair); color: var(--ko); }
.l5 .alerte-stock strong { font-size: 16px; }
.l5 .bon { display: flex; flex-direction: column; padding: 8px 0; border-top: 1px solid var(--trait); }
.l5 .surtitre + .bon, .l5 .entre + .bon { border-top: 0; }
.l5 .bon .ligne { padding: 6px 0 6px 12px; font-size: 14px; border-top: 0; }
.l5 .ligne-sortie .article-choix { min-height: 48px; }
.l5 .resume-sortie { background: var(--orange-clair); border-color: var(--orange-trait); }
.l5 .ligne.inventaire { padding: 12px 0; }
.l5 .saisie.compte-sacs { width: 90px; min-height: 48px; text-align: right; font-size: 18px; font-weight: 800; padding: 0 8px; }

@media (max-width: 899px) {
	.l5 .actions-magasin { display: grid; grid-template-columns: 1fr 1fr; }
	.l5 .actions-magasin .bouton.plein { grid-column: 1 / -1; }
	.l5 .actions-magasin .bouton.grand { width: 100%; padding: 0 12px; }
	.l5 .stocks { grid-template-columns: 1fr; gap: 10px; }
	.l5 .stock { padding: 12px 14px; gap: 6px; }
	.l5 .stock-chiffre { font-size: 24px; }
	.l5 .stock .valeur { display: none; }
	.l5 .alerte-stock { grid-template-columns: auto minmax(0, 1fr); }
	.l5 .alerte-stock .bouton { grid-column: 1 / -1; }
}
