.material-name{display:flex;align-items:center;gap:8px;flex-wrap:wrap;white-space:normal}
.duration-controls{display:flex;gap:12px}
.duration-controls select{flex:1;min-width:0;width:0}
.duration-picker small{display:block}
.label-payload{display:block;max-width:420px;white-space:normal;overflow-wrap:anywhere;font-size:12px}
#receipt-export-form .fields-grid>.field:first-child{grid-column:1/-1}
.receipt-lots-heading{border-top:1px solid var(--line);margin-top:28px;padding-top:24px}
.receipt-row{display:grid;grid-template-columns:20px minmax(120px,1.2fr) minmax(100px,1fr) minmax(130px,1fr) auto;gap:12px;align-items:end;padding:20px 0;border-bottom:1px solid var(--line)}
.receipt-row.without-test{grid-template-columns:20px minmax(120px,1.2fr) minmax(100px,1fr) auto}
.receipt-row .field[hidden]{display:none}
.receipt-row .remove-receipt-row{margin-bottom:6px}
#receipt-form>.section-heading{padding:0 0 24px}
@media(max-width:760px){.receipt-row,.receipt-row.without-test{grid-template-columns:20px 1fr auto;gap:12px}.receipt-row .field{grid-column:2}.receipt-row .lot-row-number{grid-column:1;grid-row:1;align-self:center}.receipt-row .remove-receipt-row{grid-column:3;grid-row:1}.receipt-row .field label{font-size:11px}}
.stock-confirm{display:flex;align-items:flex-start;gap:10px;margin-top:22px;color:var(--text);font-size:12px;cursor:pointer}
.stock-confirm input{width:18px;height:18px;flex-shrink:0;margin:1px 0 0;accent-color:var(--accent)}
.category-tag{display:inline-flex;align-items:center;font-size:10px;font-weight:500;line-height:1.4;padding:3px 7px;border-radius:4px;border:1px solid var(--tag-border,#678196);background:var(--tag-bg,#45607733);color:var(--tag-text,#c4d1dc);white-space:nowrap}
.category-rubber{--tag-text:#d7c5f2;--tag-bg:#9a72c51c;--tag-border:#8f72ab}
.category-resin{--tag-text:#afd1f3;--tag-bg:#5b9cdc20;--tag-border:#5e88ab}
.category-polyolefin{--tag-text:#c1c2f5;--tag-bg:#827ee022;--tag-border:#7775ae}
.category-softener{--tag-text:#9ee2e8;--tag-bg:#58acb820;--tag-border:#518e9b}
.category-stabilizer{--tag-text:#e1c7ec;--tag-bg:#a57bb822;--tag-border:#9777a6}
.category-unassigned{border-style:dashed}
.product-table tr.stock-negative{background:rgba(172,92,104,.12)}
.product-table tr.stock-negative:hover{background:rgba(172,92,104,.19)}
.product-table tr.stock-empty{background:rgba(145,160,171,.07)}
.product-table tr.stock-empty .product-cell,.product-table tr.stock-empty .muted,.product-table tr.stock-empty .row-link{opacity:.68}
.product-table tr.stock-empty:hover{background:rgba(145,160,171,.12)}
.product-table .amount.empty,.product-table .status.empty{color:#97a7af}
.product-table .amount.empty span{color:inherit}
.product-table .status.empty{border-color:#7a8d9855;background:#8999a414}
.status-alert{display:inline-flex;align-items:center;justify-content:center;width:12px;height:12px;border:1px solid currentColor;border-radius:50%;font-size:9px;font-weight:700;line-height:1;flex-shrink:0}
.critical{color:#eaa77b}
.status.critical{border-color:#ac794f77;background:#ac794f0c}
.material-filters{display:flex;flex-wrap:wrap;align-items:end;gap:12px;padding:16px 22px;border-bottom:1px solid var(--line)}
.material-filters .field{flex:1;min-width:150px}
.material-filters .field.search-field{flex:2}
.material-filters .button{min-height:43px}
#material-card-form .field[hidden]{display:none}
.catalog-table td:first-child{min-width:210px;white-space:normal}
.catalog-table .category-tag{font-size:10px}
@media screen {
 [data-color-mode="light"] .app-shell .critical{color:#a05020}
 [data-color-mode="light"] .app-shell .product-table tr.stock-negative{background:#fcf0f2}
 [data-color-mode="light"] .app-shell .product-table tr.stock-negative:hover{background:#fae5e9}
 [data-color-mode="light"] .app-shell .product-table tr.stock-empty{background:#f1f3f5}
 [data-color-mode="light"] .app-shell .product-table tr.stock-empty:hover{background:#e9eef1}
 [data-color-mode="light"] .app-shell .product-table .amount.empty,[data-color-mode="light"] .app-shell .product-table .status.empty{color:#667781}
 [data-color-mode="light"] .app-shell .product-table .status.empty{border-color:#ccd5da;background:#edf1f3}
 [data-color-mode="light"] .category-rubber{--tag-text:#69508a;--tag-bg:#f1ecf7;--tag-border:#d7cbe7}
 [data-color-mode="light"] .category-resin{--tag-text:#35638b;--tag-bg:#eaf2fa;--tag-border:#c8dced}
 [data-color-mode="light"] .category-polyolefin{--tag-text:#56558c;--tag-bg:#eeeeFA;--tag-border:#d4d2ed}
 [data-color-mode="light"] .category-softener{--tag-text:#276a76;--tag-bg:#e8f4f7;--tag-border:#bbdce3}
 [data-color-mode="light"] .category-stabilizer{--tag-text:#785388;--tag-bg:#f4ecf7;--tag-border:#ddc9e5}
 [data-color-mode="light"] .category-other,[data-color-mode="light"] .category-unassigned{--tag-text:#546a7d;--tag-bg:#edf1f4;--tag-border:#c9d3dc}
}
@media(max-width:760px){.material-filters{padding:16px}.material-filters .field{flex-basis:100%}.material-filters .button{width:100%}.product-table .category-tag{font-size:8px;white-space:normal}.catalog-table{min-width:620px}}
