.restock-shell{max-width:1280px;margin:28px auto;padding:24px;border:1px solid #ead8cb;border-radius:20px;background:#fffaf5;scroll-margin-top:100px}
.restock-heading,.restock-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.restock-heading{justify-content:space-between}.restock-heading h2{margin:4px 0;font-size:28px}.restock-heading p{margin:0}.restock-shell h3{margin:22px 0 12px}.restock-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:12px}.restock-card{padding:18px;background:white;border:1px solid #ead8cb;border-radius:14px;min-width:0}.restock-card h4{font-size:18px;margin:0 0 8px;overflow-wrap:anywhere}.restock-card p{font-size:13px;color:#75655a;line-height:1.5}.restock-product-names{min-height:40px}.restock-button{font:inherit;font-weight:600;font-size:14px;min-height:44px;border:1px solid #cdb6a4;background:white;color:#713400;padding:10px 15px;border-radius:10px;cursor:pointer}.restock-button.primary{background:#853a08;color:white;border-color:#853a08}.restock-button:disabled{opacity:.5;cursor:not-allowed}.restock-button:focus-visible{outline:3px solid #eea56c;outline-offset:3px}.restock-empty,.restock-message{font-size:14px;line-height:1.6;color:#75655a}.restock-message.error,.restock-dialog .error{color:#aa241b}.restock-dialog{width:min(850px,calc(100vw - 32px));max-height:90dvh;padding:0;border:1px solid #e7d6c8;border-radius:18px;color:#4d2412;box-shadow:0 24px 100px #0005}.restock-dialog::backdrop{background:#291b1666}.restock-dialog-header{position:sticky;top:0;z-index:1;background:#fffaf5;padding:18px 22px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #ead8cb}.restock-dialog-header h2{font-size:23px;margin:0;overflow-wrap:anywhere}.restock-dialog-body{padding:20px 22px}.restock-dialog-body>p{line-height:1.6}.restock-dialog-status{margin:0;padding:12px 22px;background:#fffaf5;position:sticky;bottom:0;font-size:14px;line-height:1.5}.restock-field{display:flex;gap:8px;flex-direction:column;font-size:14px;font-weight:600;margin:12px 0}.restock-field input:not([type=checkbox]),.restock-field select{width:100%;min-height:46px;border:1px solid #cdb6a4;border-radius:8px;padding:10px;font:inherit;background:white;box-sizing:border-box}.restock-field input[type=checkbox]{width:22px;height:22px}.restock-edit-rows{margin:15px 0}.restock-edit-row{display:grid;grid-template-columns:minmax(0,1fr) 80px 88px;gap:10px;align-items:center;padding:12px 0;border-bottom:1px solid #ead8cb;font-size:14px}.restock-edit-row span{overflow-wrap:anywhere}.restock-edit-row small{display:block;font-size:11px;color:#75655a;margin-top:4px}.restock-edit-row input{min-height:44px;width:100%;box-sizing:border-box;border:1px solid #cdb6a4;border-radius:8px;padding:8px;font:inherit}.restock-dialog-body>.restock-actions{margin-top:18px}.restock-preview-table{width:100%;border-collapse:collapse;margin:16px 0;font-size:14px;table-layout:fixed}.restock-preview-table caption{text-align:left;color:#75655a;font-size:13px;padding:8px 0}.restock-preview-table td,.restock-preview-table th{padding:12px 8px;border-bottom:1px solid #ead8cb;text-align:left;overflow-wrap:anywhere}.restock-preview-table th:nth-child(2){width:46px}.restock-preview-table th:last-child{width:104px}.restock-warning{padding:12px;background:#fff4de;border-radius:8px;font-size:14px;line-height:1.5}.restock-warning.blocking{background:#fff0ee;color:#a52820}.restock-total{font-size:20px;font-weight:700}.restock-mode-help{color:#75655a;font-size:14px;line-height:1.5}#restock-preview{margin-top:20px}#restock-section[hidden]{display:none}
@media(max-width:680px){.restock-shell{margin:18px 12px;padding:18px 14px}.restock-heading h2{font-size:25px}.restock-grid{grid-template-columns:1fr}.restock-dialog{width:calc(100vw - 20px);max-height:94dvh}.restock-dialog-header,.restock-dialog-body{padding:16px}.restock-dialog-header h2{font-size:20px}.restock-edit-row{grid-template-columns:minmax(0,1fr) 64px;gap:8px}.restock-edit-row .restock-button{grid-column:1/-1;justify-self:end;min-height:36px;padding:6px 12px;font-size:12px}.restock-preview-table{font-size:12px}.restock-preview-table th:last-child{width:84px}.restock-preview-table th:nth-child(2){width:30px}.restock-dialog-status{padding:12px 16px}.restock-dialog-body>.restock-button{width:100%}}

.restock-preview-table th:nth-child(2){white-space:nowrap}.restock-shell summary{cursor:pointer;font-weight:600;padding:16px 0 12px}.restock-dialog{overscroll-behavior:contain}
