/* Diseño 816: almacén con las piezas del diseño unificado (610); sólo tokens de OLI, válidos en claro y noche. */
.wh-topbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem;margin:0 0 1rem}
#warehouse-actions{display:flex;flex-wrap:wrap;gap:.5rem;justify-content:flex-end;margin-left:auto}#warehouse-actions:empty{display:none}#warehouse-actions button{width:auto}
#warehouse-tabs{display:flex;flex-wrap:wrap;gap:.25rem;margin:0;padding:.25rem;border:1px solid var(--u-line,var(--border));border-radius:.8125rem;background:var(--u-card,var(--surface));width:max-content;max-width:100%}
#warehouse-tabs button{width:auto;white-space:nowrap}
#warehouse-module{min-width:0}#warehouse-module[aria-busy="true"]{opacity:.65}
.wh-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:.625rem;margin-bottom:1rem}.wh-toolbar>*{width:auto;min-width:9rem}.wh-toolbar input[type=search]{flex:1 1 16rem;max-width:26rem}
.wh-subtitle{margin:1.5rem 0 .625rem;font-size:1.05rem;color:var(--u-purple-text,var(--purple))}
.wh-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(11rem,1fr));gap:.8125rem;margin-bottom:1rem}
.wh-metric{display:grid;gap:.375rem;padding:1rem 1.125rem;border:1px solid var(--u-line,var(--border));border-left:.25rem solid var(--purple);border-radius:1.125rem;background:var(--u-card,var(--surface));box-shadow:var(--u-shadow-card,none)}
.wh-metric span{color:var(--muted);font-size:1.0625rem;font-weight:600}.wh-metric strong{font-size:1.75rem;line-height:1.1;color:var(--purple)}
.wh-metric.pink{border-left-color:var(--pink)}.wh-metric.pink strong{color:var(--pink)}.wh-metric.orange{border-left-color:var(--orange)}.wh-metric.orange strong{color:var(--orange)}.wh-metric.green{border-left-color:var(--u-green-figure,var(--success))}.wh-metric.green strong{color:var(--u-green-figure,var(--success))}
.wh-pill{display:inline-flex;align-items:center;gap:.375rem;padding:.125rem .625rem;border-radius:999rem;font-size:1.0625rem;font-weight:700;white-space:nowrap}.wh-pill::before{content:'';width:.4375rem;height:.4375rem;border-radius:50%;background:currentColor}
.wh-pill.purple{color:var(--u-pill-purple-text);background:var(--u-pill-purple-bg)}.wh-pill.green{color:var(--u-pill-green-text);background:var(--u-pill-green-bg)}.wh-pill.pink{color:var(--u-pill-pink-text);background:var(--u-pill-pink-bg)}.wh-pill.amber{color:var(--u-pill-amber-text);background:var(--u-pill-amber-bg)}.wh-pill.neutral{color:var(--muted);background:var(--u-pill-neutral-bg)}
.wh-table td{vertical-align:middle}.wh-table td small{display:block;color:var(--muted);font-size:1.0625rem}.wh-table td input{min-width:5.5rem}
.wh-thumb{display:inline-grid;place-items:center;width:2.5rem;height:2.5rem;overflow:hidden;border-radius:.625rem;background:var(--u-pill-soft,var(--surface-soft));color:var(--u-pill-purple-text);font-size:1.0625rem;font-weight:800}.wh-thumb img{width:100%;height:100%;object-fit:cover}
.wh-kebab{width:2.375rem!important;min-width:2.375rem;height:2.375rem;padding:0!important;font-size:1.25rem;line-height:1}
.wh-count{margin:.5rem 0 0;color:var(--muted);font-size:1.0625rem}
.wh-error{margin:.5rem 0;padding:.625rem .875rem;border-radius:.75rem;color:var(--danger);background:var(--danger-soft)}
.wh-history{display:grid;gap:1.25rem}.wh-day{display:grid;gap:.625rem}.wh-day>h3{margin:0;font-size:1.0625rem;color:var(--muted)}.wh-day>h3::first-letter{text-transform:uppercase}
.wh-movement{display:grid;gap:.375rem;padding:.875rem 1rem;border:1px solid var(--u-line,var(--border));border-left:.3125rem solid var(--wh-tone);border-radius:1rem;background:var(--u-card,var(--surface))}
.wh-movement header{display:flex;align-items:center;gap:.625rem}.wh-movement header>div{display:grid;flex:1;min-width:0}.wh-movement header small{color:var(--muted);font-size:1.0625rem}.wh-movement ul{margin:0;padding-left:1.125rem}.wh-movement li{margin:.125rem 0}
.wh-movement.entry{--wh-tone:var(--u-green-figure,var(--success))}.wh-movement.exit{--wh-tone:var(--pink)}.wh-movement.reentry{--wh-tone:var(--orange)}.wh-movement.usage{--wh-tone:var(--purple)}.wh-movement.voided{opacity:.6}.wh-movement.voided ul{text-decoration:line-through}
.wh-notes{margin:0;color:var(--muted);font-size:1.0625rem}
.wh-dialog{width:min(48rem,calc(100vw - 2rem))}.wh-dialog.wh-wide{width:min(84rem,calc(100vw - 2rem))}.wh-dialog form{max-height:min(88dvh,60rem);overflow:auto}
.wh-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.wh-dialog-head h3{margin:0}.wh-dialog-head p{margin:.25rem 0 0}.wh-close{width:auto!important}
.wh-dialog-body{display:grid;gap:.875rem}.wh-dialog-body label{display:grid;gap:.3125rem;margin:0}.wh-dialog-body label>span{font-size:1.0625rem;font-weight:700;color:var(--muted)}.wh-dialog-body h4{margin:.5rem 0 0}
.wh-form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(16rem,1fr));gap:.75rem}.wh-form-grid .wide{grid-column:1/-1}
.wh-checks{display:grid;gap:.375rem}.wh-dialog-body label.wh-check{display:flex;align-items:center;gap:.5rem}.wh-check input{width:auto}.wh-dialog-body label.wh-check>span{font-weight:600;color:var(--text)}
.wh-lines{display:grid;gap:.625rem}.wh-line{display:grid;grid-template-columns:minmax(12rem,2fr) minmax(6rem,.7fr) minmax(9rem,1fr) minmax(9rem,1fr) auto;gap:.5rem;align-items:start;padding:.625rem;border:1px solid var(--u-line,var(--border));border-radius:.875rem;background:var(--u-field-bg,var(--surface-soft))}
.wh-line [hidden]{display:none}.wh-remove{width:auto!important}.wh-allocations{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:.5rem;align-items:end}.wh-allocations:empty{display:none}.wh-allocations small{flex-basis:100%;color:var(--muted);font-size:1.0625rem}.wh-allocations label{width:11rem}
.wh-menu .wh-dialog-body{gap:.5rem}.wh-menu-item{width:100%;justify-content:flex-start;text-align:left}.wh-menu-item.danger,.secondary.danger{color:var(--danger)}
.wh-bar{display:block;width:7rem;height:.375rem;margin-top:.25rem;border-radius:999rem;background:var(--u-pill-soft,var(--surface-soft));overflow:hidden}.wh-bar i{display:block;height:100%;background:var(--brand-gradient,var(--purple))}.wh-meters{display:grid}
.wh-dispatch td input{width:5.5rem}.wh-dispatch th{white-space:nowrap}
.wh-order{display:grid;gap:.375rem;margin:0;padding-left:1.25rem}.wh-order li{display:flex;align-items:center;gap:.375rem}.wh-order li span{flex:1}.wh-order button{width:auto}.wh-results{display:grid;gap:.25rem}.wh-results button{justify-content:flex-start;text-align:left}
.wh-reasons{display:grid;grid-template-columns:repeat(auto-fit,minmax(11rem,1fr));gap:.5rem;margin:0;padding:.75rem;border:1px solid var(--u-line,var(--border));border-radius:.875rem}.wh-reasons legend{padding:0 .375rem;font-weight:800}
.wh-image-preview{display:grid;place-items:center;min-height:9rem;border:1px dashed var(--u-line,var(--border));border-radius:1rem}.wh-image-preview img{max-width:100%;max-height:16rem;object-fit:contain}.wh-image-preview .wh-thumb{width:9rem;height:9rem}
@media(max-width:760px){
 #warehouse-tabs{width:100%;flex-wrap:nowrap;overflow-x:auto}
 .wh-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.wh-metric strong{font-size:1.375rem}
 .wh-toolbar>*{flex:1 1 100%;max-width:none}
 .wh-line{grid-template-columns:1fr 1fr}.wh-line>select:first-child{grid-column:1/-1}
 .wh-table table,.wh-table tbody,.wh-table tr,.wh-table td{display:block;width:100%;min-width:0!important;max-width:100%}.wh-table td{white-space:normal}.wh-table thead{display:none}
 .wh-table tr{margin:0 0 .625rem;padding:.5rem .75rem;border:1px solid var(--u-line,var(--border));border-radius:1rem;background:var(--u-card,var(--surface))}
 .wh-table td{display:flex;justify-content:space-between;gap:.75rem;padding:.25rem 0;border:0;text-align:right}.wh-table td::before{content:attr(data-label);color:var(--muted);font-weight:700;text-align:left}.wh-table td[data-label=""]::before{content:none}
}
