.stock-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}.stock-metric{background:#fff;border:1px solid #dde5ef;border-radius:10px;padding:20px;display:grid;gap:12px}.stock-metric span{font-size:12px;color:#62728b}.stock-metric strong{font-size:26px;color:#183657;overflow-wrap:anywhere}.stock-metric small{color:#64748b;font-size:11px}.stock-filters{padding:18px;display:flex;align-items:end;gap:12px;flex-wrap:wrap}.stock-filters label{display:grid;gap:6px;font-size:12px}.stock-filters label:first-child{flex:1;min-width:200px}.stock-filters input,.stock-filters select{border:1px solid #cbd5e1;border-radius:6px;padding:10px;font:inherit;width:100%;box-sizing:border-box}.stock-tag{display:inline-block;padding:5px 8px;border-radius:5px;font-size:11px;background:#edf2f7;margin:3px}.stock-tag.danger{background:#fee2e2;color:#991b1b}.stock-tag.warn{background:#fff1d6;color:#865300}.stock-tag.ok{background:#e3f6ec;color:#166534}.stock-tag.muted{background:#edf0f4;color:#64748b}.stock-table small{display:block;color:#64748b;font-size:11px;margin-top:7px}.stock-table td{white-space:normal;overflow-wrap:anywhere;vertical-align:top}.stock-table th{font-size:11px}.stock-row-actions{display:flex;flex-wrap:wrap;gap:5px;min-width:150px}.stock-help{color:#64748b;font-size:12px;line-height:1.7}.stock-warning{border-left:4px solid #dc2626;background:#fff8f6;margin-bottom:18px}.stock-section{margin-top:20px}.stock-positive{color:#166534}.stock-negative{color:#b91c1c}.stock-audit{padding:12px 0;border-bottom:1px solid #e2e8f0}.stock-audit summary{cursor:pointer;font-size:12px}.stock-audit small{display:block;color:#64748b;margin-top:6px}.stock-audit li{font-size:12px;margin:7px 0}.stock-dialog{width:min(960px,96vw);max-height:92vh}.stock-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding:24px}.stock-form .wide{grid-column:1/-1}.stock-form h3{margin:12px 0 0;font-size:14px}.stock-form label{display:grid;gap:7px;font-size:12px;min-width:0}.stock-form input,.stock-form select,.stock-form textarea{width:100%;box-sizing:border-box;min-width:0;border:1px solid #cbd5e1;border-radius:6px;background:#fff;padding:10px 12px;font:inherit}.stock-form input:focus,.stock-form select:focus,.stock-form textarea:focus{outline:2px solid #93b8f3;outline-offset:1px}.stock-form textarea{min-height:80px;resize:vertical}.stock-form input:disabled,.stock-form select:disabled{background:#edf2f7}.stock-alert-entry{padding:16px 0;border-bottom:1px solid #dde5ef}.stock-alert-entry small{display:block;color:#64748b;margin:8px 0}.stock-header-warning{border-color:#e5a23b!important;color:#92400e!important;background:#fff7e5!important}@media(max-width:1000px){.stock-metrics{grid-template-columns:repeat(2,1fr)}.stock-table{min-width:900px}}@media(max-width:600px){.stock-form{grid-template-columns:1fr;padding:18px}.stock-metrics{gap:10px}.stock-metric{padding:14px}.stock-metric strong{font-size:21px}.stock-filters{gap:10px}.stock-filters label{flex:1;min-width:150px}}@media print{.stock-filters,#actions,.stock-row-actions{display:none}.stock-table{min-width:0}.stock-metrics{grid-template-columns:repeat(4,1fr)}}

.stock-delete-reason{display:grid;gap:8px;margin-top:16px}.stock-delete-reason textarea{min-height:85px;padding:10px;border:1px solid #cbd5e1;border-radius:6px;font:inherit}
