.warehouse{min-width:0}.warehouse .page-head{align-items:center}.warehouse .page-head>.button{flex-shrink:0}.warehouse-tabs{display:flex;gap:8px;margin-bottom:20px}.warehouse-tabs>button{min-height:46px;padding:10px 21px;border:1px solid var(--line);border-radius:10px;background:#fff;font:inherit;font-size:14px;color:var(--ink)}.warehouse-tabs>button.active{background:var(--green);color:white;border-color:var(--green)}.warehouse-toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:24px}.warehouse-toolbar select{min-height:48px;flex:1;min-width:160px;max-width:260px;background-color:#fff}.warehouse-search{display:flex;align-items:center;gap:10px;flex:1 1 270px;min-width:0;border:1px solid var(--line);border-radius:10px;background:#fff;padding:0 13px}.warehouse-search svg{width:18px;color:var(--muted)}.warehouse-search input{border:0;flex:1;width:100%;min-height:46px;background:transparent;padding-left:0}.warehouse-search:focus-within{outline:2px solid #738d5c;outline-offset:3px}.warehouse-search input:focus{outline:none}.warehouse-date{display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:10px;background:#fff;padding:0 12px;min-width:0;font-size:13px;color:var(--muted)}.warehouse-date input{border:0;min-height:46px;width:139px;padding:10px 0;background:transparent;color-scheme:light}.warehouse-history-id{flex:1 1 160px;min-width:0;max-width:210px}.warehouse-history-id input{width:100%;min-height:48px}.warehouse-history-selection{display:flex;align-items:center;gap:7px;flex:1 1 100%;min-width:0;font-size:13px}.warehouse-history-selection>span{overflow-wrap:anywhere}.warehouse-history-selection .icon-button{width:36px;min-width:36px;min-height:36px}.warehouse-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:24px}.warehouse-metric{display:flex;flex-direction:column;gap:16px;padding:22px 23px;min-width:0}.warehouse-metric>span{font-size:14px;color:var(--muted)}.warehouse-metric strong{font-size:27px;font-weight:600;letter-spacing:-.8px;overflow-wrap:anywhere}.warehouse-metric small{display:inline-block;font-size:12px;font-weight:400;letter-spacing:0;color:var(--muted);margin-left:7px}.warehouse-content{min-height:320px;transition:opacity .12s}.warehouse-content[aria-busy=true]{opacity:.65;pointer-events:none}.warehouse-error{margin-bottom:20px;display:flex;gap:15px;justify-content:space-between;align-items:center}.warehouse-list{overflow:hidden}.warehouse-table{border-collapse:collapse;width:100%;font-size:13px}.warehouse-table th{padding:17px 20px;background:#fafcf6;text-align:right;font-size:12px;font-weight:600;color:var(--muted);border-bottom:1px solid var(--line);white-space:nowrap}.warehouse-table th:first-child{text-align:left}.warehouse-table td{padding:20px;text-align:right;border-bottom:1px solid #eff2e9;vertical-align:middle}.warehouse-table tbody tr:last-child td{border-bottom:0}.warehouse-table td.warehouse-product{text-align:left;min-width:150px;max-width:350px;overflow-wrap:anywhere}.warehouse-product>strong{display:block;font-size:14px;font-weight:550;line-height:1.5}.warehouse-code{display:block;font-size:12px;font-weight:500;color:#50654d;letter-spacing:.35px;margin-top:5px;line-height:1.5;white-space:nowrap}.warehouse-product-meta{display:block;font-size:12px;line-height:1.5;margin-top:5px;color:var(--muted)}.warehouse-row-actions{display:flex;align-items:center;gap:3px;justify-content:flex-end}.warehouse-row-actions .button{min-height:44px;padding:9px 11px;font-size:12px;font-weight:500;white-space:nowrap}.warehouse-row-actions .icon-button{min-width:38px;min-height:44px}.warehouse-row-actions svg{width:17px;height:17px}.warehouse-table td.warehouse-action-cell{padding-left:6px;padding-right:15px;width:1%}.warehouse-badge{display:inline-block;font-size:11px;line-height:1.4;border-radius:6px;padding:5px 8px;color:#4a6045;background:#edf2e8}.warehouse-product>.warehouse-badge{margin-top:8px}.warehouse-low-stock{display:block;white-space:nowrap;color:#8b6030;font-size:11px;line-height:1.5;margin-top:5px}.warehouse-count{font-size:12px;color:var(--muted);padding:19px 2px}.warehouse-pagination{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:18px;font-size:12px;color:var(--muted)}.warehouse-pagination>div{display:flex;align-items:center;gap:14px}.warehouse-pagination .button{font-size:12px;min-height:44px;padding:10px 14px}.warehouse-history-metrics{margin-bottom:15px}.warehouse-history-meta{display:flex;flex-wrap:wrap;gap:12px 24px;color:var(--muted);font-size:12px;margin:0 2px 22px}.warehouse-events{display:flex;flex-direction:column;gap:14px}.warehouse-event{padding:23px 24px;min-width:0}.warehouse-event-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}.warehouse-event-head>div{min-width:0;overflow-wrap:anywhere}.warehouse-event-head strong{font-size:15px;font-weight:550;line-height:1.5}.warehouse-event-head .warehouse-badge{flex-shrink:0}.warehouse-history-values{display:flex;flex-wrap:wrap;gap:12px 25px;font-size:12px;color:var(--muted);line-height:1.7}.warehouse-history-values strong{color:var(--ink);font-weight:500;margin-left:6px;white-space:nowrap}.warehouse-diffs{display:grid;gap:12px;margin:0}.warehouse-diffs>div{display:grid;grid-template-columns:160px minmax(0,1fr);align-items:baseline;gap:15px}.warehouse-diffs dt{font-size:12px;color:var(--muted)}.warehouse-diffs dd{display:flex;gap:12px;margin:0;min-width:0;font-size:13px;line-height:1.6;overflow-wrap:anywhere}.warehouse-diffs dd>span:first-child,.warehouse-diffs dd>strong{min-width:0;white-space:pre-wrap}.warehouse-diffs dd>strong{font-weight:550}.warehouse-diff-arrow{color:#849178;flex-shrink:0}.warehouse-event-note{margin-top:17px;font-size:13px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.warehouse-history-state{font-size:13px;color:var(--muted)}.warehouse-event footer{display:flex;flex-wrap:wrap;gap:7px 20px;margin-top:21px;font-size:11px;color:var(--muted)}.warehouse-dialog{width:min(650px,calc(100vw - 32px));max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);padding:0;overflow:auto;overscroll-behavior:contain}.warehouse-dialog .dialog-head{position:sticky;top:0;z-index:2;background:#fff;border-bottom:1px solid var(--line)}.warehouse-form{display:flex;flex-direction:column;gap:20px}.warehouse-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:19px 18px}.warehouse-field-full{grid-column:1/-1}.warehouse-form .field{min-width:0}.warehouse-form .field input,.warehouse-form .field select{width:100%}.warehouse-form-identity{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid var(--line);border-radius:9px;padding:12px 14px;color:var(--muted);font-size:12px}.warehouse-form-identity .warehouse-code{margin:0;color:var(--ink)}.warehouse-form-actions{display:flex;justify-content:flex-end;gap:10px}.warehouse-form-actions .button{min-width:120px}.warehouse-form-product{display:flex;flex-direction:column;gap:5px;overflow-wrap:anywhere;font-size:14px;line-height:1.5}.warehouse-form-product>.warehouse-code{margin:0}.warehouse-form-product>span:last-child:not(.warehouse-code){font-size:12px;color:var(--muted);margin-top:9px}.warehouse-confirm-text{font-size:13px;color:var(--muted);line-height:1.6}.warehouse-discard{border:1px solid #ddcdbd;background:#fffaf3;border-radius:10px;padding:15px}.warehouse-discard p{font-size:13px;margin-bottom:12px}.warehouse-discard>div{display:flex;justify-content:flex-end;gap:8px}.warehouse-discard .button{font-size:12px}.warehouse-form .dialog-error:empty{display:none}.warehouse-form .dialog-error{margin:0;overflow-wrap:anywhere}
@media(max-width:1350px){.warehouse-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.warehouse-table th,.warehouse-table td{padding:17px 14px}.warehouse-row-actions{gap:0}.warehouse-row-actions .icon-button{min-width:34px}.warehouse-row-actions .button{padding:9px}}
@media(max-width:800px){.warehouse-table,.warehouse-table tbody{display:block}.warehouse-table thead{display:none}.warehouse-table tbody tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 14px;padding:22px;border-bottom:1px solid var(--line)}.warehouse-table tbody tr:last-child{border-bottom:0}.warehouse-table td{display:flex;flex-direction:column;text-align:left;padding:0;border:0;min-width:0;font-size:14px}.warehouse-table td.warehouse-product{grid-column:1/-1;min-width:0;max-width:none}.warehouse-table td.warehouse-action-cell{grid-column:1/-1;width:auto;padding:3px 0 0}.warehouse-row-actions{justify-content:flex-start;gap:7px}.warehouse-row-actions .button{padding:9px 14px;font-size:13px}.warehouse-row-actions .icon-button{min-width:44px}.warehouse-table td[data-label]:before{content:attr(data-label);font-size:11px;color:var(--muted);line-height:1.4;margin-bottom:7px}.warehouse-product>strong{font-size:15px}.warehouse-product-meta,.warehouse-code{font-size:12px}.warehouse-low-stock{white-space:normal}.warehouse-table td>strong{font-weight:550}}
@media(max-width:600px){.warehouse .page-head{gap:13px;min-height:60px}.warehouse .page-head h1{font-size:27px}.warehouse .page-head>.button{padding:11px 13px;font-size:12px;gap:6px}.warehouse .page-head>.button svg{width:17px}.warehouse-tabs{margin-bottom:17px}.warehouse-tabs>button{flex:1;font-size:14px}.warehouse-toolbar{gap:9px;margin-bottom:20px}.warehouse-search{flex-basis:100%;min-height:48px}.warehouse-toolbar select{max-width:none;min-width:0;flex:1 1 40%;min-height:48px}.warehouse-date{flex:1 1 40%;min-height:48px;padding:0 10px;gap:7px}.warehouse-date input{width:0;flex:1;min-width:0}.warehouse-history-id{flex:1 1 40%;max-width:none}.warehouse-metrics{gap:10px;margin-bottom:20px}.warehouse-metric{padding:18px 15px;gap:14px}.warehouse-metric>span{font-size:12px;line-height:1.4}.warehouse-metric strong{font-size:22px;letter-spacing:-.5px}.warehouse-metric small{font-size:10px;margin-left:5px}.warehouse-table tbody tr{padding:20px 17px;gap:19px 10px}.warehouse-table td[data-label]:before{font-size:11px;min-height:31px}.warehouse-event{padding:19px 17px}.warehouse-event-head{gap:10px}.warehouse-event-head strong{font-size:14px}.warehouse-event-head .warehouse-badge{font-size:10px;padding:5px 7px}.warehouse-diffs>div{grid-template-columns:1fr;gap:5px}.warehouse-diffs dd{gap:10px;font-size:13px}.warehouse-history-values{display:grid;gap:8px}.warehouse-history-values>span{display:flex;justify-content:space-between;gap:10px}.warehouse-history-values strong{white-space:normal;text-align:right}.warehouse-event footer{font-size:11px}.warehouse-dialog{width:calc(100vw - 16px);max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px)}.warehouse-dialog .dialog-head{padding:20px}.warehouse-dialog .dialog-body{padding:20px}.warehouse-form-grid{gap:17px 12px}.warehouse-form .field>span{font-size:13px;line-height:1.4}.warehouse-form-actions .button{flex:1;min-width:0}.warehouse-form-actions{gap:8px}.warehouse-pagination{flex-wrap:wrap;gap:13px}.warehouse-pagination>div{margin-left:auto}.warehouse-error{align-items:flex-start;flex-direction:column}.warehouse-content{min-height:280px}}
@media(max-width:370px){.warehouse .page-head{flex-wrap:wrap;justify-content:space-between}.warehouse .page-head>.button{font-size:11px;padding:10px}.warehouse-metric{padding:16px 12px}.warehouse-metric strong{font-size:19px}.warehouse-table tbody tr{grid-template-columns:repeat(2,minmax(0,1fr))}.warehouse-table td[data-label]:before{min-height:0}.warehouse-table td.warehouse-product,.warehouse-table td.warehouse-action-cell{grid-column:1/-1}.warehouse-form-grid{grid-template-columns:1fr}.warehouse-field-full{grid-column:auto}.warehouse-event-head{flex-wrap:wrap}.warehouse-event-head>.warehouse-badge{margin-left:auto}}
@media(max-height:450px){.warehouse-dialog{max-height:calc(100dvh - 12px)}.warehouse-dialog .dialog-head{padding:12px 20px}.warehouse-dialog .dialog-body{padding:18px 20px}.warehouse-form{gap:16px}}
@media(prefers-reduced-motion:reduce){.warehouse-content{transition:none}}
.warehouse-form-identity>span{flex-shrink:0}.warehouse-form-identity>input.warehouse-code{width:145px;min-width:0;flex:1;text-align:right;border:0;padding:6px 0;background:transparent;font-size:14px}.warehouse-form-identity .icon-button{flex-shrink:0;margin:-5px -5px -5px 0}
.warehouse-pending{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px;padding:16px 18px;border:1px solid #ddcdbd;border-radius:10px;background:#fffaf3;font-size:13px;line-height:1.5}.warehouse-pending .button{font-size:12px;flex-shrink:0}@media(max-width:600px){.warehouse-pending{flex-direction:column;align-items:flex-start}}
.warehouse-owners{display:flex;flex-wrap:wrap;gap:8px;margin:-3px 0 18px}.warehouse-owners>button{min-height:44px;padding:10px 19px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);font:inherit;font-size:13px;line-height:1.4;overflow-wrap:anywhere;max-width:100%}.warehouse-owners>button.active{background:#e7eee1;border-color:#abbc9e;color:var(--green);font-weight:600}.warehouse-quantity-controls{display:flex;justify-content:flex-end;align-items:center;gap:8px;white-space:nowrap}.warehouse-quantity-controls>strong{min-width:32px;text-align:center;font-weight:550}.warehouse-quantity-controls>button{display:inline-flex;align-items:center;justify-content:center;width:40px;min-width:40px;min-height:44px;padding:0;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--green);font:inherit;font-size:22px;line-height:1}.warehouse-quantity-controls>button:hover{background:#f2f5ed}.warehouse-code{white-space:normal;overflow-wrap:anywhere}.warehouse-code-input{display:flex;align-items:center;gap:7px}.warehouse-code-input>input{min-width:0;flex:1;text-transform:uppercase}.warehouse-code-input>.icon-button{flex-shrink:0;min-width:40px;min-height:44px}.warehouse-quantity-cell>.warehouse-low-stock{text-align:right}
@media(max-width:800px){.warehouse-table tbody tr{grid-template-columns:repeat(2,minmax(0,1fr))}.warehouse-table td.warehouse-quantity-cell{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:0 12px}.warehouse-table td.warehouse-quantity-cell:before{margin:0;min-height:0}.warehouse-quantity-cell>.warehouse-low-stock{grid-column:1/-1;margin-top:7px}.warehouse-quantity-controls>button{width:44px;min-width:44px}.warehouse-row-actions{flex-wrap:wrap}}
@media(max-width:600px){.warehouse-owners{gap:7px;margin-bottom:17px}.warehouse-owners>button{flex:1;padding:10px 12px;font-size:13px}.warehouse-table td.warehouse-quantity-cell:before{min-height:0}.warehouse-quantity-controls{gap:7px}}
.warehouse-usd{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin-top:6px;font-size:11px;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}.warehouse-fx-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--green);flex-shrink:0}.warehouse-pricing{border:1px solid var(--line);border-radius:12px;padding:17px;min-width:0;background:#fafcf6}.warehouse-pricing-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:18px}.warehouse-pricing-head .toggle-label{min-height:36px;font-size:13px;gap:9px;min-width:0}.warehouse-pricing-head .toggle-label>input{width:18px;height:18px;min-width:18px}.warehouse-rate{font-size:12px;color:var(--muted);white-space:nowrap}.warehouse-pricing .field{margin-bottom:0}.warehouse-pricing input:disabled{opacity:1;background:#eef2e9;color:var(--ink);-webkit-text-fill-color:var(--ink)}.warehouse-fx-feedback{margin:12px 0 0;font-size:12px;color:#a44b3d;line-height:1.6;overflow-wrap:anywhere}.warehouse-fx-feedback:empty{display:none}@media(max-width:800px){.warehouse-usd{justify-content:flex-start}}@media(max-width:600px){.warehouse-pricing{padding:14px}.warehouse-pricing-head{gap:6px;margin-bottom:15px}.warehouse-pricing .warehouse-form-grid{grid-template-columns:1fr}.warehouse-pricing .field>span{font-size:12px}}

.warehouse-asof-controls{display:flex;align-items:center;gap:10px;flex:1 1 100%;min-width:0;margin-bottom:4px}.warehouse-asof-date{flex:0 1 auto;min-height:48px;background:#fff}.warehouse-asof-date>span{white-space:nowrap;color:var(--muted)}.warehouse-asof-date input{background:#fff;color-scheme:light}.warehouse-today{min-height:48px;padding:10px 17px;font-size:13px;white-space:nowrap;background:#fff}.warehouse-today:disabled{opacity:1;color:var(--muted);cursor:default}.warehouse-asof-caption{color:var(--muted);font-size:12px;line-height:1.5;min-width:0}.warehouse [data-wh-add][hidden],.warehouse-pending[hidden]{display:none}.warehouse-historical .warehouse-quantity-cell>strong{font-weight:550}
@media(max-width:600px){.warehouse-asof-controls{flex-wrap:wrap;gap:8px;margin-bottom:3px}.warehouse-asof-date{flex:1 1 170px;min-width:0}.warehouse-asof-date input{width:0;min-width:0;flex:1}.warehouse-today{flex:0 0 auto;padding:10px 14px}.warehouse-asof-caption{flex:1 1 100%;font-size:12px;margin:0 2px 1px}.warehouse-historical .warehouse-quantity-cell>strong{text-align:right}}
