.warehouse-tools{justify-content:flex-start;flex-wrap:wrap;gap:10px;margin:12px 0}
.warehouse-product-name{position:relative;min-width:0}
.warehouse-product-name>button{padding:8px 0;min-height:40px}
.warehouse-suggestions{position:absolute;top:100%;left:0;right:0;background:#fff;border:1px solid #adc3b5;box-shadow:0 8px 20px #17354925;border-radius:12px;z-index:8;max-height:280px;overflow:auto}
.warehouse-suggestions button{display:grid;gap:5px;width:100%;text-align:left;padding:12px;color:#153549;border:0;border-bottom:1px solid #e0e8df;border-radius:0;background:#fff;white-space:normal;font-size:13px}
.warehouse-suggestions button:hover,.warehouse-suggestions button:focus{background:#eaf3e9}
.warehouse-suggestions small{font-weight:700}
.warehouse-category{grid-column:1/4;max-width:360px}
.warehouse-repeat{margin:0 0 12px 8px}
.warehouse-catalog-dialog{position:fixed;inset:0;margin:auto;width:min(760px,calc(100vw - 24px));max-height:calc(100dvh - 24px);border:1px solid #b8c8bd;border-radius:18px;background:#f3f7ef;color:#153549;padding:0;overflow:auto;box-sizing:border-box}
.warehouse-catalog-dialog::backdrop{background:#071c2bdd}
.warehouse-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:0;background:#153549;color:#fff;padding:14px;z-index:2}
.warehouse-dialog-header h3{font-size:18px;margin:0}
.warehouse-dialog-header button{min-height:44px;white-space:normal;background:#f7faf3;color:#153549}
.warehouse-catalog-body,.warehouse-card-form{display:grid;gap:14px;padding:18px;min-width:0}
.warehouse-card-form input,.warehouse-card-form select,.warehouse-catalog-body input,.warehouse-catalog-body select{width:100%;min-width:0;min-height:46px;font-size:16px}
.warehouse-product-card{border:1px solid #cfdbcd;border-radius:14px;background:#fff;padding:14px;overflow-wrap:anywhere}
.warehouse-product-card .row{justify-content:flex-start;flex-wrap:wrap;margin-top:12px;gap:10px}
.warehouse-product-card p{font-size:13px}
.warehouse-report{display:grid;gap:16px;min-width:0}
.warehouse-report-category{border-top:1px solid #cdd6c8;margin-top:20px;padding-top:8px}
.warehouse-report-line{display:grid;gap:6px;padding:12px 0;border-bottom:1px solid #d9e2d5;font-size:13px;overflow-wrap:anywhere}
.warehouse-export{display:inline-flex;align-items:center;min-height:44px;text-decoration:none}
@media(max-width:1100px){.warehouse-category{grid-column:1/-1;max-width:none}.warehouse-priced .warehouse-item>.textbutton{grid-column:2}.warehouse-catalog-body .fields{grid-template-columns:1fr}.warehouse-repeat{margin-left:0}.warehouse-tools>button{white-space:normal;min-height:44px}}
/* 28.10.2026: выбор объекта перед заявкой и загрузка счёта поставщика */
.warehouse-start-objects{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0}
.warehouse-start-objects button{min-height:48px;min-width:120px;font-size:15px}
.warehouse-form-head{margin-bottom:8px}
.warehouse-invoice{display:grid;gap:10px}
.warehouse-invoice-file{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;cursor:pointer;width:max-content;max-width:100%}
.warehouse-invoice-lines{display:grid;gap:8px;max-height:55vh;overflow:auto}
.warehouse-invoice-line{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;padding:10px 12px;border:1px solid var(--bn-line,#dbe4ec);border-radius:12px;background:var(--bn-sheet,#fff)}
.warehouse-invoice-line>div:first-child{display:flex;flex-direction:column;gap:2px;min-width:0;overflow-wrap:anywhere}
.warehouse-invoice-line .field{grid-column:1/-1;margin:0}
.warehouse-invoice-price{display:flex;flex-direction:column;align-items:flex-end;gap:4px;text-align:right;white-space:nowrap}
.warehouse-invoice-tag{padding:2px 8px;border-radius:999px;font-size:12px;font-weight:600;background:#EEF1E6;color:#56676A}
.warehouse-invoice-line.new .warehouse-invoice-tag{background:#E7F6EC;color:#067647}
.warehouse-invoice-line.price .warehouse-invoice-tag{background:#FFF3E0;color:#B54708}
@media(max-width:600px){.warehouse-invoice-line{grid-template-columns:minmax(0,1fr)}.warehouse-invoice-price{align-items:flex-start;text-align:left}.warehouse-start-objects button{flex:1 1 40%}}
/* 28.10.2026: склад — заявка одной строкой */
.warehouse-rows{display:grid;border:1px solid var(--bn-line,#dbe4ec);border-radius:14px;overflow:hidden;background:var(--bn-sheet,#fff)}
.warehouse-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;align-items:center;gap:6px 16px;padding:10px 14px;border-top:1px solid var(--bn-line2,#e6ebe2)}
.warehouse-row:first-child{border-top:0}
.warehouse-row-main{display:flex;flex-direction:column;gap:2px;min-width:0}
.warehouse-row-main .muted{font-size:12.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.warehouse-row-sum{white-space:nowrap;text-align:right}
.warehouse-row-status{white-space:nowrap;padding:3px 10px;border-radius:999px;font-size:12.5px;font-weight:600;background:#EEF1E6;color:#56676A}
.warehouse-row.status-submitted .warehouse-row-status{background:#EAF2FD;color:#1F5BBF}
.warehouse-row.status-ordered .warehouse-row-status{background:#FFF3E0;color:#B54708}
.warehouse-row.status-received .warehouse-row-status{background:#E7F6EC;color:#067647}
.warehouse-row.status-cancelled{opacity:.65}
.warehouse-row-actions{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}
.warehouse-row-actions button{min-height:34px;padding:0 12px;font-size:13px}
@media(max-width:760px){.warehouse-row{grid-template-columns:minmax(0,1fr) auto}.warehouse-row-status{grid-column:2;grid-row:1;justify-self:end}.warehouse-row-sum{grid-column:1;text-align:left}.warehouse-row-actions{grid-column:1/-1;justify-content:flex-start}.warehouse-row-main .muted{white-space:normal}}
/* 28.10.2026: счёт любого формата — галочка, правка названия/цены/единицы */
.warehouse-invoice-line{grid-template-columns:minmax(0,1fr)}
.warehouse-invoice-include{display:flex;align-items:center;gap:10px}
.warehouse-invoice-include input{width:20px;height:20px;margin:0}
.warehouse-invoice-line textarea{width:100%;box-sizing:border-box;resize:vertical;font:inherit}
.warehouse-invoice-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.warehouse-invoice-fields .field{margin:0}
.warehouse-invoice-line.skip{opacity:.55}
.warehouse-invoice-line.skip .warehouse-invoice-tag{background:#EEF1E6;color:#8a948f}
.warehouse-invoice-actions{position:sticky;bottom:0;padding:8px 0;background:var(--bn-paper2,#F8F9F3)}
@media(max-width:600px){.warehouse-invoice-fields{grid-template-columns:1fr 1fr}}
.warehouse-invoice-line .warehouse-invoice-fields .field{grid-column:auto}
