.warehouse-visual-dialog{width:min(520px,95vw);border:1px solid #bdd0e4;border-radius:10px;color:#123b67;padding:18px}.warehouse-visual-dialog label{display:flex;align-items:center;gap:9px;padding:6px;font-size:14px}.warehouse-visual-dialog input{width:18px;height:18px}.warehouse-visual-dialog button{padding:8px 14px;margin:6px;border:1px solid #9ebbe0;background:#edf5ff;border-radius:6px;color:#0757b8}
html body .warehouse-header-qr{flex:0 0 128px;align-self:center}html body .warehouse-header-qr .warehouse-article-qr{margin:0;width:128px;max-width:none}html body .warehouse-header-qr img{display:block;width:128px!important;height:128px!important;max-width:none!important;background:white;object-fit:contain!important;padding:2px!important}html body .warehouse-header-qr figcaption{text-align:center;font-size:10px}
html body .warehouse-combined-stock .warehouse-master-nav{display:none!important}.warehouse-combined-stock details>summary{cursor:pointer;color:#0757b8;padding:5px 8px;font-size:13px}.warehouse-combined-stock .warehouse-master-section>header p{display:none}.warehouse-combined-stock .warehouse-master-summary{margin:0}.warehouse-combined-stock .warehouse-article-location-actions{padding:5px!important}.warehouse-combined-stock .warehouse-article-location-actions p{display:none}.warehouse-combined-stock .warehouse-master-footer{display:none}
html body .warehouse .swi{height:100%!important;min-height:0!important;padding:4px!important;gap:4px!important}html body .warehouse .swi-toolbar{min-height:48px!important;padding:6px 10px!important}html body .warehouse .swi-toolbar h2{font-size:18px!important}html body .warehouse .swi-toolbar p{font-size:12px!important}html body .warehouse .swi-tabs button{font-size:13px!important;min-height:36px!important;padding:6px 12px!important}html body .warehouse .swi-movement,html body .warehouse .swi-proposal{min-height:90px!important;font-size:13px!important;gap:6px!important;padding:6px!important}
#warehouse-analysis-root{height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden;padding:5px}#warehouse-analysis-root>[data-content]{min-height:0;flex:1;overflow:auto}#warehouse-analysis-root .wa-filters{display:flex;gap:6px;position:sticky;top:0;background:#f5f8fd;z-index:3;padding:5px}#warehouse-analysis-root .wa-filters label{flex:1}#warehouse-analysis-root .wa-table-wrap th{position:sticky;top:66px;z-index:2;background:#edf4fc}#warehouse-analysis-root .wa-tabs{flex-shrink:0;margin-bottom:5px}#warehouse-analysis-root header p{display:none}
.warehouse-load-clock{display:inline-block;animation:warehouse-clock-turn 1.5s linear infinite;font-size:20px;vertical-align:middle}@keyframes warehouse-clock-turn{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.warehouse-load-clock{animation:none}}
html body .warehouse.desktop .warehouse-workspace:has(>.warehouse-article-manager>.warehouse-manager-list){overflow:hidden}
html body .warehouse.desktop .warehouse-article-manager:has(>.warehouse-manager-list){height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden}
html body .warehouse.desktop .warehouse-article-manager>.warehouse-manager-filter,html body .warehouse.desktop .warehouse-article-manager>header{flex:none}
html body .warehouse.desktop .warehouse-article-manager>.warehouse-manager-list{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}
@media(max-width:760px){html body .warehouse-header-qr{flex-basis:96px}html body .warehouse-header-qr img{width:96px!important;height:96px!important}html body .warehouse-header-qr .warehouse-article-qr{width:96px}}
/* The desktop header has four explicit tracks: photo, identity, QR and stock. */
html body .warehouse.desktop .warehouse-workspace>.warehouse-operation:not(.warehouse-point-operation) .warehouse-article-hero:has(.warehouse-header-qr){grid-template-columns:140px minmax(0,1fr) 128px minmax(300px,350px)!important;gap:10px!important;min-height:0!important;padding:8px!important}
html body .warehouse.desktop .warehouse-workspace>.warehouse-operation:not(.warehouse-point-operation) .warehouse-article-hero:has(.warehouse-header-qr) .warehouse-article-photo{width:140px!important;height:140px!important}
html body .warehouse.desktop .warehouse-workspace>.warehouse-operation:not(.warehouse-point-operation) .warehouse-article-hero:has(.warehouse-header-qr) .warehouse-article-side{grid-column:auto!important;width:100%!important;min-width:0!important}
@media(max-width:1200px){html body .warehouse.desktop .warehouse-workspace>.warehouse-operation:not(.warehouse-point-operation) .warehouse-article-hero:has(.warehouse-header-qr){grid-template-columns:100px minmax(0,1fr) 96px!important}html body .warehouse.desktop .warehouse-workspace>.warehouse-operation:not(.warehouse-point-operation) .warehouse-article-hero:has(.warehouse-header-qr) .warehouse-article-side{grid-column:1/-1!important}html body .warehouse.desktop .warehouse-workspace>.warehouse-operation:not(.warehouse-point-operation) .warehouse-article-hero:has(.warehouse-header-qr) .warehouse-article-photo{width:100px!important;height:100px!important}}
.warehouse-desktop-search{height:100%;min-height:0;display:flex;flex-direction:column;padding:10px;gap:8px;overflow:hidden}.warehouse-desktop-search header{display:flex;justify-content:space-between;align-items:center;gap:8px}.warehouse-desktop-search h2{margin:0;font-size:20px}.warehouse-desktop-search form{display:flex;align-items:end;gap:8px}.warehouse-desktop-search form label{flex:1;min-width:0;font-size:12px}.warehouse-desktop-search textarea{display:block;width:100%;resize:vertical;max-height:130px;padding:8px;font-size:16px}.warehouse-desktop-search p{margin:0;font-size:13px}.warehouse-desktop-search-results{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:6px}.warehouse-desktop-search-result{flex:none;display:grid;grid-template-columns:60px minmax(0,1fr) 120px;align-items:center;gap:10px;text-align:left;background:white;border:1px solid #c7dbf3;border-radius:8px;padding:8px;color:#153d68}.warehouse-desktop-search-result img{width:60px;height:60px;object-fit:contain}.warehouse-desktop-search-result small{display:block;font-size:12px;font-weight:400;margin-top:3px}.warehouse-desktop-search-result strong{font-size:15px;overflow-wrap:anywhere}.warehouse-desktop-result-stock{text-align:right;font-size:18px}@media(max-width:700px){.warehouse-desktop-search form{flex-wrap:wrap}.warehouse-desktop-search form label{flex-basis:100%}.warehouse-desktop-search-result{grid-template-columns:45px minmax(0,1fr) 70px}.warehouse-desktop-search-result img{width:45px;height:45px}}
html body .warehouse-article-side .warehouse-stock-buttons{display:grid!important;grid-template-columns:1fr 1fr!important;gap:4px!important}html body .warehouse-article-side .warehouse-stock-buttons>.warehouse-stock-back,html body .warehouse-article-side .warehouse-stock-buttons>.warehouse-stock-tools{grid-column:1/-1!important}
html body .warehouse-article-tab-content:has(>.warehouse-combined-stock){overflow:hidden!important;display:flex!important;min-height:0!important}
.warehouse-combined-stock{flex:1;min-height:0;display:flex;flex-direction:column;gap:4px}.warehouse-combined-stock>.warehouse-article-master{flex:none;min-height:0!important;margin:0!important}.warehouse-combined-stock .warehouse-master-section{padding:5px!important;margin:0!important}.warehouse-combined-stock .warehouse-master-section>header{display:none!important}.warehouse-combined-stock .warehouse-master-summary{gap:4px!important}.warehouse-combined-stock .warehouse-master-summary>article{padding:4px 8px!important;min-height:0!important}.warehouse-combined-stock details[open]{max-height:180px;overflow:auto}.warehouse-combined-stock>.warehouse-article-operational-panel{display:flex;flex-wrap:wrap;gap:4px;padding:0!important}.warehouse-combined-stock .warehouse-article-location-actions{flex:1;margin:0!important}.warehouse-combined-stock .warehouse-article-location-actions small,.warehouse-combined-stock .warehouse-stock-regularization-trigger>div{display:none}.warehouse-combined-stock .warehouse-stock-regularization-trigger{padding:4px!important;margin:0!important}.warehouse-combined-stock>.warehouse-activity-proposal{flex:1;min-height:100px;display:flex;flex-direction:column;padding:0!important}.warehouse-combined-stock .waa-intro{display:none}.warehouse-combined-stock .waa-section{flex:1;min-height:0;overflow:auto;margin:0}.warehouse-combined-stock .waa-section h3{position:sticky;top:0;z-index:2;padding:5px 10px}.warehouse-combined-stock .waa-section thead th{position:sticky;top:31px;z-index:1}.warehouse-combined-stock .waa-note{flex:none;margin:3px 0;font-size:11px}
@media(max-width:760px){html body .warehouse-article-tab-content:has(>.warehouse-combined-stock){overflow:auto!important}.warehouse-combined-stock{display:block}.warehouse-combined-stock .waa-section{max-height:60vh}}

/* Article stock: fixed location/replenishment; scroll only movement records. */
/* Match the intermediate header's 96px QR track: the desktop image was 128px. */
@media(min-width:761px) and (max-width:1200px){
 html body .warehouse.desktop .warehouse-workspace>.warehouse-operation:not(.warehouse-point-operation) .warehouse-article-hero:has(.warehouse-header-qr){min-width:0!important;max-width:100%;box-sizing:border-box}
 html body .warehouse.desktop .warehouse-workspace>.warehouse-operation:not(.warehouse-point-operation) .warehouse-article-hero .warehouse-article-identification{min-width:0!important;overflow-wrap:anywhere}
 html body .warehouse.desktop .warehouse-workspace>.warehouse-operation:not(.warehouse-point-operation) .warehouse-header-qr{min-width:0;max-width:100%;justify-self:end}
 html body .warehouse.desktop .warehouse-workspace>.warehouse-operation:not(.warehouse-point-operation) .warehouse-header-qr .warehouse-article-qr{width:96px;max-width:100%}
 html body .warehouse.desktop .warehouse-workspace>.warehouse-operation:not(.warehouse-point-operation) .warehouse-header-qr img{width:96px!important;height:96px!important;max-width:100%!important;box-sizing:border-box}
}
@media(min-width:761px){
 html body .warehouse.desktop .warehouse-article-tab-content:has(>.warehouse-combined-stock){overflow:hidden!important}
 .warehouse-combined-stock>.warehouse-article-operational-panel{flex:none;order:-1}
 .warehouse-combined-stock>.warehouse-article-master{overflow:visible!important;max-height:none!important;flex:none}
 .warehouse-combined-stock .warehouse-master-permission,.warehouse-combined-stock .warehouse-master-stock{overflow:visible!important;max-height:none!important}
 .warehouse-combined-stock .warehouse-master-stock>.warehouse-master-grid{margin:3px 0!important;gap:3px 7px!important}
 .warehouse-combined-stock .warehouse-replenishment-heading{font-size:13px;line-height:1.2;margin:5px 0 3px}
 .warehouse-combined-stock>.warehouse-activity-proposal{overflow:hidden;min-height:0;flex:1}
 .warehouse-combined-stock .waa-section{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain}
 .warehouse-combined-stock .waa-section>h3{position:sticky;top:0;z-index:3}
 .warehouse-combined-stock .waa-section thead th{position:sticky;top:31px;z-index:2;background:#f4f8fc}
}
/* Short/zoomed desktops must not clip fixed fields or actions. */
@media(min-width:761px) and (max-height:850px){
 html body .warehouse.desktop .warehouse-article-tab-content:has(>.warehouse-combined-stock){overflow:auto!important;display:block!important}
 .warehouse-combined-stock{height:auto;min-height:100%;display:block}
 .warehouse-combined-stock>.warehouse-article-operational-panel{display:flex}
 .warehouse-combined-stock .waa-section{max-height:50dvh;min-height:150px;overflow:auto}
}
/* Supplier membership is edited separately, with a revision-checked preview. */
.warehouse-article-providers-dialog{width:min(920px,94vw);max-height:90dvh;overflow:auto;border:1px solid #b7d1ef;border-radius:12px;padding:22px;color:#12375e}
.warehouse-article-providers-dialog::backdrop{background:#102b4c88}
.wap-role-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.wap-role-grid section,.wap-preview{border:1px solid #ccddef;border-radius:8px;padding:14px}
.wap-role-grid ul{list-style:none;padding:0}.wap-role-grid li{display:flex;justify-content:space-between;gap:8px;align-items:center;margin:8px 0}
.warehouse-article-providers-dialog label{display:grid;gap:5px;margin:12px 0}.warehouse-article-providers-dialog select,.warehouse-article-providers-dialog textarea{width:100%;box-sizing:border-box;padding:8px}.warehouse-article-providers-dialog textarea{min-height:80px}
.warehouse-article-providers-dialog button{margin:5px;padding:7px 12px}
@media(max-width:760px){.wap-role-grid{grid-template-columns:1fr}}
/* In a narrow article view the header/tabs can exceed the viewport. Let the
   workspace scroll the natural article height instead of clipping its body. */
@media(max-width:760px){
 html body .warehouse.desktop .warehouse-workspace:has(>.warehouse-operation:not(.warehouse-point-operation)){display:block!important;overflow-y:auto!important;overflow-x:hidden!important;min-height:0!important;overscroll-behavior:contain}
 html body .warehouse.desktop .warehouse-workspace>.warehouse-operation:not(.warehouse-point-operation){display:block!important;height:auto!important;min-height:100%!important;overflow:visible!important}
 html body .warehouse.desktop .warehouse-workspace>.warehouse-operation:not(.warehouse-point-operation)>.warehouse-article-tab-content{display:block!important;flex:none!important;height:auto!important;max-height:none!important;min-height:0!important;overflow:visible!important}
 html body .warehouse.desktop .warehouse-workspace>.warehouse-operation:not(.warehouse-point-operation) .warehouse-combined-stock{display:block!important;height:auto!important;min-height:0!important}
 html body .warehouse.desktop .warehouse-workspace>.warehouse-operation:not(.warehouse-point-operation) .warehouse-combined-stock :is(.warehouse-article-master,.warehouse-master-permission,.warehouse-master-stock){height:auto!important;max-height:none!important;overflow:visible!important}
}
