/* Dépôts, réassorts et inventaire physique (js/stock/). Pensé d'abord pour un téléphone dans une réserve sombre :
   grosses cibles, chiffres lisibles, contraste fort. Uniquement les variables de base.css (mode sombre automatique). */
.wh-st { margin: 0 16px 6px; }
.wh-intro { margin: -4px 4px 0; }
.wh-kpis { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
.wh-kpis.k4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 761px) { .wh-kpis.k4 { grid-template-columns: repeat(4, 1fr); } }
.wh-kpis .kpi .v { font-size: 22px; }
.wh-check { color: var(--accent-text); display: inline-flex; }
.wh-plain { background: transparent; box-shadow: none !important; padding: 0; min-height: 30px; }
.wh-link { background: none; border: 0; padding: 4px 0 0; color: var(--accent-text); font-size: 15px; text-align: left; }
.wh-danger { color: var(--red); }
.wh-dangerbtn { color: var(--red); background: var(--surface); }
.wh-emptyact { display: flex; justify-content: center; padding: 0 16px 20px; margin-top: -20px; }

/* vue d'ensemble des lieux */
.list > .item.wh-place { align-items: center; padding-top: 10px; padding-bottom: 10px; }
.wh-place .stk-right { gap: 4px; }

/* lignes avec photo */
.list > .item.wh-row { --sep-left: 72px; }
.wh-row .media-thumb { flex: none; border-radius: 10px; }
.wh-row.done .ellipsis:first-child { color: var(--text); }
.wh-qty { flex: none; min-width: 64px; text-align: right; font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.wh-mark { flex: none; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.wh-mark.ok { color: var(--green); }
.wh-mark.bad { color: #fff; background: var(--red); }
.wh-mark svg.i { width: 14px; height: 14px; }
.wh-spin { flex: none; width: 18px; height: 18px; margin: 2px; border-radius: 50%; border: 2px solid var(--fill-2); border-top-color: var(--accent-text); animation: spin .8s linear infinite; }
.wh-sel { flex: none; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.wh-row.picked .wh-sel { background: var(--accent); box-shadow: none; }
.wh-row.picked .wh-sel::after { content: ""; display: block; width: 7px; height: 12px; margin: 4px 0 0 8px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.list > .item.wh-row:has(> .wh-sel) { --sep-left: 108px; }

/* écran de comptage */
.wh-ctop { margin-bottom: -4px; }
.wh-prog { background: var(--surface); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.wh-bar { height: 8px; border-radius: 4px; background: var(--fill); overflow: hidden; }
.wh-bar i { display: block; height: 100%; background: var(--green); border-radius: 4px; transition: width .4s var(--spring); }
.wh-searchrow { display: flex; gap: 8px; align-items: stretch; position: sticky; top: -16px; z-index: 2; padding: 8px 0; margin: -8px 0; background: var(--bg); }
.wh-search { min-height: 48px; border-radius: 12px; }
.wh-search input { font-size: 18px; min-height: 46px; background: transparent; padding: 0; box-shadow: none !important; }
.wh-scan { flex: none; width: 52px; min-height: 48px; padding: 0; border-radius: 12px; }
.wh-list { gap: 16px; }

/* saisie d'un article */
.wh-entry .body { gap: 12px; }
.wh-ehead { display: flex; gap: 12px; align-items: center; }
.wh-ehead .media-thumb { flex: none; border-radius: 12px; }
.wh-facts { background: var(--surface); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; color: var(--muted); }
.wh-facts div:first-child { color: var(--text); }
.wh-total { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; }
.wh-tnum { font-family: var(--rounded); font-size: 44px; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.wh-fields .wh-field { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 16px; min-height: 60px; position: relative; cursor: pointer; }
.wh-fields .wh-field:not(:last-child)::after { content: ""; position: absolute; left: 16px; right: 0; bottom: 0; height: .5px; background: var(--line-2); }
.wh-field.on { background: var(--accent-soft); }
.wh-flabel { font-size: 16px; line-height: 1.2; }
.wh-fval { min-width: 64px; text-align: center; font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; }
.wh-step { flex: none; width: 52px; height: 44px; border-radius: 12px; border: 0; background: var(--fill); color: var(--accent-text); font-size: 28px; font-weight: 500; line-height: 1; display: inline-flex; align-items: center; justify-content: center; user-select: none; -webkit-user-select: none; }
.wh-step:active { background: var(--fill-2); }
.wh-step.sm { width: 40px; height: 36px; font-size: 22px; }
.wh-pad { gap: 6px; }
.wh-pad button { min-height: 52px; }
.wh-adddate { gap: 10px; }
.wh-date { flex: none; width: auto; min-height: 34px; padding: 4px 8px; font-size: 15px; }
@media (max-height: 700px) { .wh-pad button { min-height: 44px; font-size: 22px; } .wh-tnum { font-size: 36px; } }

/* demandes de réassort */
.wh-stepper { flex: none; display: flex; align-items: center; gap: 6px; }
.wh-stepper .stk-qty { width: 64px; text-align: center; padding: 4px 6px; }
.list > .item.wh-rline { flex-wrap: wrap; row-gap: 8px; }
@media (max-width: 480px) { .list > .item.wh-rline .wh-stepper { width: 100%; justify-content: flex-end; } }
.wh-steps { display: flex; gap: 6px; }
.wh-stepi { flex: 1; display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
.wh-stepi i { height: 4px; border-radius: 2px; background: var(--fill-2); }
.wh-stepi.on { color: var(--text); } .wh-stepi.on i { background: var(--accent); }

/* nouvel inventaire */
.wh-new { gap: 14px; }
.wh-new-place { display: flex; gap: 12px; align-items: center; background: var(--surface); border-radius: var(--radius); padding: 12px 14px; }

/* scanner */
.wh-cam { position: relative; border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 4 / 3; }
.wh-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.wh-aim { position: absolute; left: 12%; right: 12%; top: 38%; bottom: 38%; border: 2px solid rgba(255,255,255,.85); border-radius: 10px; }
.kpi.red .v { color: var(--red); }
.wh-contents { display: contents; }
.list > .item.wh-info { gap: 12px; } .wh-info > span:first-child { flex: none; } .wh-info > span:last-child { flex: 1; min-width: 0; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
