.warehouse-page{width:100%;max-width:1380px;margin:0 auto;padding-bottom:calc(100px + env(safe-area-inset-bottom))}
.warehouse-page h1{font-size:1.6rem;line-height:1.25;margin:0}.warehouse-page h2{font-size:1.15rem;line-height:1.35;margin:0 0 12px;overflow-wrap:anywhere}.warehouse-page h3{font-size:1rem;margin:8px 0}
.warehouse-heading{display:flex;align-items:center;gap:12px;margin-bottom:20px}.warehouse-heading h1{flex:1}.warehouse-heading .mud-icon-button{flex-shrink:0}
.warehouse-home>h1{margin:0 0 24px}.warehouse-home>h2{margin:24px 0 12px}.warehouse-modules{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.warehouse-module{display:grid;grid-template-columns:42px 1fr 22px;grid-template-rows:auto auto;align-items:center;column-gap:12px;padding:22px 18px;color:var(--sofy-ink);text-decoration:none;min-width:0;transition:border-color .15s,background .15s}
.warehouse-module>.mud-icon-root:first-child{grid-row:1/3;color:var(--sofy-primary);background:#fbeef2;width:42px;height:42px;padding:8px;border-radius:12px}.warehouse-module>strong{font-size:1rem;overflow-wrap:anywhere}.warehouse-module>span{grid-column:2;color:#617582;font-size:.85rem;line-height:1.4}.warehouse-module>.mud-icon-root:last-child{grid-column:3;grid-row:1/3;width:22px;color:var(--sofy-primary)}
.warehouse-module:hover{border-color:var(--sofy-primary);background:#fff9fb}.warehouse-module:focus-visible,.warehouse-choice:focus-visible{outline:3px solid var(--sofy-primary);outline-offset:3px}
.warehouse-form{display:flex;flex-direction:column;gap:18px;padding:22px;margin:0 0 16px}.warehouse-page>.surface,.warehouse-page>section{min-width:0}.warehouse-page .mud-input-control{margin-top:0;min-width:0}
.warehouse-scan{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:4px;align-items:center;min-width:0}.warehouse-scan .mud-icon-button{height:44px;width:44px}
.warehouse-document-summary{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px;margin-bottom:16px}.warehouse-document-summary h2{margin:8px 0}.warehouse-document-summary>strong{font-size:1.5rem;white-space:nowrap}.warehouse-document-summary p{margin:0;overflow-wrap:anywhere}
.warehouse-subtotal-label{font-size:.8rem;font-weight:600;margin-inline-end:4px}
.warehouse-document-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}.warehouse-document-grid:has(.warehouse-drafts){grid-template-columns:minmax(0,1.5fr) minmax(300px,1fr)}
.warehouse-lines,.warehouse-drafts{padding:20px;margin-bottom:16px}.warehouse-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.warehouse-row h2{margin:0}.warehouse-row .mud-switch{margin:0}
.warehouse-line,.warehouse-stock-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid #e1e8eb}.warehouse-line>div:first-child{min-width:0;overflow-wrap:anywhere}.warehouse-line p{margin:5px 0 0}.warehouse-line-actions{display:flex;align-items:center;gap:12px;flex-shrink:0}.warehouse-line-actions .mud-button-root{min-width:72px;min-height:44px}.warehouse-line-actions>strong{min-width:70px;text-align:right}
.warehouse-facts{display:flex;gap:16px;flex-wrap:wrap}.warehouse-facts>span{font-size:.8rem;color:#607580;display:flex;flex-direction:column;gap:4px}.warehouse-facts strong{color:#182e3a;font-size:1rem;font-variant-numeric:tabular-nums}
.warehouse-footer{position:fixed;bottom:0;left:var(--sidebar-width,236px);right:0;z-index:90;background:#fff;border-top:1px solid #eadde2;padding:10px max(10px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));box-shadow:0 -3px 18px #182e3a08}
.warehouse-footer>div{display:flex;align-items:center;justify-content:center;gap:12px;max-width:1100px;margin:auto}.warehouse-footer .mud-button-root{min-height:48px;text-transform:none}.warehouse-footer .mud-icon-button{width:48px;height:48px}
.app-content:has(.warehouse-footer)>.content-footer{display:none}.warehouse-picker{display:flex;flex-direction:column;gap:8px;margin-top:12px;max-height:60dvh;overflow:auto}.warehouse-choice{width:100%;display:flex;flex-direction:column;align-items:flex-start;gap:6px;text-align:left;border:1px solid #e1e8eb;border-radius:12px;background:white;padding:16px;font:inherit;color:inherit;cursor:pointer;overflow-wrap:anywhere}.warehouse-choice>span{font-size:.85rem;color:#607580}.warehouse-choice:hover{border-color:var(--sofy-primary);background:#fbf6f8}
.warehouse-draft-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #e1e8eb}.warehouse-draft-row>div{flex:1;min-width:0}.warehouse-draft-row .mud-input-control{margin-top:10px}.warehouse-warning{color:#875200;font-size:.85rem;margin:6px 0}.warehouse-empty{padding:35px 12px;text-align:center;color:#607580}.warehouse-last{margin:14px 0;color:#39733d}.warehouse-progress{position:sticky;top:70px;z-index:3;background:#f4f7f8;margin-bottom:14px}.warehouse-progress span{display:block;font-size:.8rem;padding:5px 0}
.warehouse-steps{display:flex;gap:8px;list-style:none;padding:0;margin:0 0 18px;counter-reset:steps}.warehouse-steps li{flex:1;padding:12px 8px;background:#eceff1;border-radius:10px;text-align:center;font-size:.85rem;color:#607580}.warehouse-steps .current{background:#fbeef2;color:#a6294b;font-weight:700}
.warehouse-count{font-size:2rem;font-weight:750;margin:14px 0;color:var(--sofy-primary)}.warehouse-count span{font-size:1rem;font-weight:400}.warehouse-destination{padding:16px;background:#eff6ef;border-radius:12px}.warehouse-destination>span{font-size:.8rem;color:#39733d}
.warehouse-picking{padding:24px;margin:16px 0}.warehouse-detail{padding:0;margin:16px 0}.warehouse-detail>summary{padding:18px;cursor:pointer;font-weight:650;background:#fbeef2;border-radius:14px}.warehouse-detail>.warehouse-line{margin:0 18px}.warehouse-delta{color:#607580}
@media(min-width:1000px){.warehouse-page:not(:has(.warehouse-document-grid)):not(.warehouse-home){max-width:1000px}.warehouse-stock-row .warehouse-facts{min-width:260px;justify-content:flex-end}}
@media(max-width:1100px){.warehouse-modules{grid-template-columns:repeat(2,minmax(0,1fr))}.warehouse-document-grid:has(.warehouse-drafts){grid-template-columns:minmax(0,1fr)}}
@media(max-width:700px){
 .app-content:has(>.warehouse-page){padding:12px 12px 0}.warehouse-heading{margin-bottom:14px;gap:6px}.warehouse-heading h1{font-size:1.25rem}.warehouse-modules{gap:10px}.warehouse-module{grid-template-columns:1fr;gap:9px;padding:18px 14px}.warehouse-module>.mud-icon-root:first-child{grid-row:auto}.warehouse-module>span{grid-column:1;font-size:.8rem}.warehouse-module>.mud-icon-root:last-child{display:none}.warehouse-module>strong{font-size:.95rem}
 .warehouse-form,.warehouse-lines,.warehouse-drafts,.warehouse-picking{padding:16px}.warehouse-form{gap:16px}.warehouse-document-summary{padding:16px;align-items:flex-start;flex-direction:column;gap:8px}.warehouse-document-summary>strong{font-size:1.3rem}.warehouse-line,.warehouse-stock-row{align-items:stretch;flex-direction:column;gap:10px}.warehouse-line-actions{justify-content:flex-end}.warehouse-line-actions>strong{flex:1}.warehouse-footer{left:0;padding-top:8px}.warehouse-footer>div{gap:5px}.warehouse-footer .mud-button-root{min-width:0;padding:6px 8px;font-size:12px;flex:1;line-height:1.3}.warehouse-footer .mud-button-start-icon{margin:0 4px 0 0}.warehouse-footer .mud-icon-button{flex-shrink:0;width:44px}.warehouse-steps li{font-size:.75rem;padding:10px 4px}.warehouse-steps{gap:4px}.warehouse-count{font-size:1.8rem}
 .warehouse-form .mud-grid-item{width:100%;max-width:100%;flex-basis:100%}.warehouse-page .field{width:100%}.warehouse-picker{max-height:65dvh}.warehouse-progress{top:64px}
}
@media(prefers-reduced-motion:reduce){.warehouse-module{transition:none}}

.warehouse-direct-scan{margin:16px 0}.warehouse-article-stock{padding:12px 0;border-bottom:1px solid #e1e8eb}.warehouse-article-stock>summary{cursor:pointer;font-size:.85rem;color:var(--sofy-primary);padding:8px 0}.warehouse-article-stock .warehouse-facts{margin-top:10px}
.warehouse-home{padding-bottom:0}
@media(max-width:700px){.warehouse-home>h1{font-size:1.35rem;margin-bottom:16px}.warehouse-home>h2{font-size:1rem;margin:16px 0 10px}.warehouse-home .warehouse-module{padding:14px}.warehouse-home .warehouse-module>span{display:none}}
