.stock-tabs{display:flex;gap:8px;border-bottom:1px solid var(--border,#dbe3ef);margin:0 0 20px;flex-wrap:wrap}.stock-tabs a{padding:12px 18px;border-radius:9px 9px 0 0;color:var(--muted,#526784);font-weight:650;text-decoration:none;border-bottom:3px solid transparent}.stock-tabs a.active{color:#2159ac;background:#eaf1ff;border-color:#2862b9}.stock-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:18px}.stock-metric{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:18px 22px;background:#fff;border:1px solid #dbe3ef;border-radius:12px;color:#20344e;text-align:left;cursor:pointer}.stock-metric strong{font-size:28px;line-height:1.25}.stock-metric span{font-size:14px}.stock-metric small{color:#64748b;font-size:11px}.stock-metric.active{border-color:#2862b9;box-shadow:0 0 0 1px #2862b9;background:#f5f8ff}.stock-panel{margin-top:18px}.stock-filter{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-bottom:14px}.stock-filter .field{flex:1 1 140px;min-width:130px;margin:0}.stock-filter .stock-search-field{flex:2 1 240px}.stock-filter input,.stock-filter select{width:100%;min-height:42px}.stock-result-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;color:#526784;font-size:13px;border-top:1px solid #e5ebf4}.stock-panel .data-table{font-size:13px}.stock-panel .data-table th,.stock-panel .data-table td{padding:12px 10px}.stock-panel .data-table th{white-space:nowrap}.stock-product{display:flex;gap:10px;align-items:center;min-width:210px;max-width:360px}.stock-product img{width:42px;height:42px;object-fit:contain;border:1px solid #e8edf4;border-radius:7px;background:#fff;flex-shrink:0}.stock-product .subline{font-size:12px;line-height:1.45;margin-top:4px;overflow-wrap:anywhere}.stock-product small{color:#64748b}.stock-row-actions{display:flex;flex-wrap:wrap;gap:5px;min-width:165px}.stock-row-actions .btn{padding:6px 9px;font-size:12px;min-height:30px;white-space:nowrap}.stock-status{display:inline-block;padding:3px 8px;border-radius:6px;background:#e8f6ef;color:#226547;font-size:12px;white-space:nowrap}.stock-status.zero{background:#f0f2f6;color:#64748b}.stock-status.low{background:#fff2dc;color:#925e0c}.stock-minus{color:#bb3742}.stock-plus{color:#24714e}.stock-panel .pager{margin-top:12px}.stock-panel .notice{margin-bottom:12px}#desk-whole-preview .table-wrap{max-height:320px;overflow:auto}#desk-whole-preview th{position:sticky;top:0;background:#f3f6fa}
@media(max-width:760px){.stock-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.stock-metric{padding:12px}.stock-metric strong{font-size:24px}.stock-filter{gap:9px}.stock-filter .field{flex:1 1 42%;min-width:120px}.stock-filter .stock-search-field{flex-basis:100%}.stock-tabs a{padding:10px;font-size:13px}.stock-panel{padding:14px}.stock-product{min-width:175px;max-width:240px}.stock-product img{display:none}.stock-panel .pager{flex-wrap:wrap}.stock-row-actions{min-width:130px}.page-head .row{gap:8px}.stock-panel .data-table th,.stock-panel .data-table td{padding:10px 8px}}
@media(max-width:760px){
 .stock-panel .stock-table tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0;padding:12px}
 .stock-panel .stock-table td{display:flex;flex-direction:column;gap:5px;padding:4px 0;border:0;min-width:0;font-size:13px}
 .stock-panel .stock-table td::before{font-size:11px;white-space:nowrap}
 .stock-panel .stock-table td:first-child,.stock-panel .stock-table td:nth-child(2),.stock-panel .stock-table td:last-child{grid-column:1/-1}
 .stock-panel .stock-table td:first-child::before,.stock-panel .stock-table td:nth-child(6)::before,.stock-panel .stock-table td:last-child::before{display:none}
 .stock-panel .stock-table td:nth-child(2){flex-direction:row;align-items:center;color:#64748b;font-size:12px}
 .stock-one-warehouse .stock-table td:nth-child(2){display:none}
 .stock-panel .stock-table td:nth-child(6){grid-column:1/span 2;justify-content:center}
 .stock-panel .stock-table td:nth-child(7){text-align:right}
 .stock-panel .stock-table td:nth-child(7)::before{content:attr(data-label)}
 .stock-panel .stock-table .stock-product{min-width:0;max-width:none}
 .stock-panel .stock-table .stock-product .subline{font-size:13px}
 .stock-panel .stock-table .stock-row-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;min-width:0}
 .stock-panel .stock-table .stock-row-actions .btn{min-height:42px;width:100%;font-size:12px}
}
