#inventory-workspace{display:grid;gap:20px;min-width:0}.stock-toolbar,.stock-picker,.stock-sync,.stock-section-title,.stock-inline-form,.stock-save,.stock-pagination{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.stock-toolbar,.stock-sync,.stock-section-title,.stock-save{justify-content:space-between}.stock-picker label{min-width:220px}.stock-picker button{align-self:flex-end}.stock-tabs{display:flex;gap:8px;overflow-x:auto;padding:3px 2px 8px}.stock-tabs a{white-space:nowrap;padding:13px 18px;border:1px solid #e7d9cf;border-radius:14px;background:#fff;color:#6b5544;text-decoration:none;box-shadow:0 3px 0 #eee3da}.stock-tabs a.active{background:linear-gradient(145deg,#ff9d37,#f36a16);color:#fff;border-color:#dc6114;box-shadow:0 4px 0 #c85714}.stock-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.stock-kpi{padding:20px;background:linear-gradient(145deg,#fff,#fff6ed);border:1px solid #f0e0d3;border-radius:18px;box-shadow:0 5px 0 #eddfd3,0 12px 24px #50200a08;display:grid;gap:8px}.stock-kpi span{font-size:13px;color:#786456}.stock-kpi strong{font-size:30px;line-height:1.2}.stock-sync p{flex:1;min-width:200px;font-size:13px;color:#6b5b50;margin:0}.stock-hold{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:22px;background:#fff1d9;border:1px solid #f5cf8d;border-radius:18px}.stock-hold>div{flex:1;min-width:220px}.stock-hold h2{font-size:20px;margin:0 0 8px}.stock-hold p{margin:0;font-size:14px;line-height:1.6}.stock-section-title{margin-bottom:16px}.stock-section-title h2{margin:0 0 6px}.stock-section-title p{margin:0;color:#786456}.stock-search{display:grid;grid-template-columns:minmax(180px,1fr) minmax(150px,.5fr) auto auto;gap:12px;align-items:end;margin:18px 0}.stock-products{display:grid;gap:12px}.stock-product{display:flex;gap:14px;align-items:center;padding:14px;background:linear-gradient(135deg,#fff,#fffcf7);border:1px solid #ede3da;border-radius:16px;box-shadow:0 3px 0 #eee4da;min-width:0;scroll-margin-top:100px}.stock-image{width:66px;height:66px;flex:0 0 66px;display:grid;place-items:center;border-radius:14px;background:#fff0df;color:#e76917;font-weight:800;overflow:hidden}.stock-image img{width:100%;height:100%;object-fit:contain}.stock-product-info{display:grid;gap:5px;flex:1;min-width:0}.stock-product-info strong{overflow-wrap:anywhere}.stock-product-info small{font-size:12px;color:#7d6b5d;overflow-wrap:anywhere}.stock-badge{font-size:11px;font-weight:700;background:#edf6ef;color:#316a46;padding:4px 8px;border-radius:7px;width:fit-content}.stock-badge.stock-low{color:#a7470e;background:#fff0dc}.stock-quantity{display:grid;text-align:right;gap:4px;min-width:110px}.stock-quantity strong{font-size:24px}.stock-quantity small{font-size:11px;color:#786456}.stock-count-input{width:155px;flex:0 0 155px;font-size:12px}.stock-count-input input{margin-top:4px;min-height:48px}.stock-variance{display:block;min-height:17px;margin-top:4px;color:#a9541e}.stock-save{padding:18px 0 4px}.stock-save span{font-size:13px;color:#786456}.stock-pagination{justify-content:center;padding-top:20px;font-size:13px}.stock-history{display:grid;gap:0}.stock-history article{display:flex;gap:18px;justify-content:space-between;align-items:center;border-bottom:1px solid #ede3da;padding:16px 0;overflow-wrap:anywhere}.stock-history article p{font-size:13px;color:#786456;margin:6px 0}.stock-history article small{font-size:12px;color:#786456}.stock-history-qty{display:grid;gap:6px;text-align:right;flex-shrink:0}.stock-history-qty span{font-size:12px;color:#786456}.stock-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.stock-steps p{padding:16px;background:#fff5e8;border-radius:14px;font-size:13px;line-height:1.6}.stock-steps b{display:block;margin-bottom:7px;font-size:14px}.stock-inline-form{padding-top:16px;margin-top:10px}.stock-inline-form label{flex:1;min-width:200px}.stock-inline-form button{align-self:flex-end}.stock-action-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:20px}.stock-action-grid form{padding:18px;border:1px solid #ede3da;background:#fffcf8;border-radius:16px;display:flex;flex-direction:column;gap:12px}.stock-action-grid h3,.stock-action-grid p{margin:0}.stock-action-grid p{font-size:13px;line-height:1.6;color:#786456}.stock-action-grid button{margin-top:auto}.stock-guide{padding:18px;background:#fff6ec;border:1px solid #f0e0d3;border-radius:16px}.stock-guide p{font-size:13px;color:#786456;line-height:1.7;margin:8px 0 0}#inventory-workspace button,#inventory-workspace .button{min-height:48px}#inventory-workspace input,#inventory-workspace select{min-width:0;width:100%}#stock-status-message{font-size:13px}
@media(max-width:900px){.stock-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.stock-search{grid-template-columns:1fr 1fr}.stock-steps{grid-template-columns:1fr;gap:0}.stock-product{flex-wrap:wrap}.stock-product-info{flex-basis:calc(100% - 82px)}.stock-product>.button{margin-left:auto}.stock-count-input{width:auto;flex:1}.stock-quantity{min-width:95px;text-align:left}.stock-history-qty{max-width:45%;white-space:normal}}
@media(max-width:480px){#inventory-workspace{gap:16px}.stock-toolbar>.button,.stock-picker{width:100%}.stock-picker label{min-width:0;flex:1}.stock-picker button{width:100%}.stock-kpi{padding:16px}.stock-kpi strong{font-size:26px}.stock-tabs a{padding:12px 14px;font-size:13px}.stock-search{gap:10px}.stock-search label:first-of-type{grid-column:1/-1}.stock-search label:nth-of-type(2){grid-column:1/-1}.stock-hold{padding:16px}.stock-product{padding:12px;gap:12px}.stock-section-title>.button{width:100%}.stock-inline-form button{width:100%}.stock-save button{width:100%}.stock-action-grid{grid-template-columns:1fr}}

#inventory-workspace button{border:1px solid #e86b18;border-radius:12px;background:linear-gradient(145deg,#ff9d39,#ed6518);color:white;font-weight:700;font-size:13px;padding:12px 18px;box-shadow:0 4px 0 #bf5314,0 8px 16px #e66a1316;transition:transform .12s,box-shadow .12s}#inventory-workspace button:active{transform:translateY(2px);box-shadow:0 2px 0 #bf5314}#inventory-workspace button.secondary{background:linear-gradient(145deg,#fff,#fff2e7);border-color:#ead2bf;color:#a34a15;box-shadow:0 3px 0 #e5d3c3}#inventory-workspace label{margin:0}#inventory-workspace .panel{margin:0}#inventory-workspace a[href*="stock_counts"]{color:#ae4b12;text-decoration:underline;text-underline-offset:3px}@media(prefers-reduced-motion:reduce){#inventory-workspace button{transition:none}}
