.stock-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-bottom:20px}.stock-kpis article{display:flex;align-items:center;gap:14px;padding:20px;border-radius:16px;color:#fff;background:linear-gradient(145deg,#6451cf,#9070e9)}.stock-kpis article:nth-child(2){background:linear-gradient(145deg,#ee6776,#ff9470)}.stock-kpis article:nth-child(3){background:linear-gradient(145deg,#18aab7,#48cbb5)}.stock-kpis article>span{display:grid;place-items:center;width:45px;height:45px;border-radius:13px;background:#fff2;font-size:21px}.stock-kpis small,.stock-kpis strong{display:block}.stock-kpis small{font-size:9px;letter-spacing:1px}.stock-kpis strong{margin-top:5px;font-size:20px}.stock-forms{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.stock-forms details{height:max-content;padding:18px;border:1px solid #e4e6ee;border-radius:15px;background:#fff}.stock-forms summary{font-weight:800;cursor:pointer}.stock-forms form{display:grid;gap:12px;margin-top:17px}.stock-ledger{margin-top:22px;padding:22px;border:1px solid #e4e6ee;border-radius:17px;background:#fff}.stock-ledger .card-heading form{display:flex}.stock-ledger .card-heading select{margin:0}.stock-ledger td small{display:block;color:#969aa7}.movement-type{padding:5px 8px;border-radius:8px;font-size:9px;font-weight:800}.type-purchase{background:#dff7ed;color:#178561}.type-sale{background:#e7edff;color:#526ed0}.type-adjustment{background:#fff0d9;color:#c17b1f}.type-cancellation{background:#ffe4e8;color:#c6505c}.quantity-change.positive{color:#16845f}.quantity-change.negative{color:#cb4f5a}@media(max-width:850px){.stock-kpis,.stock-forms{grid-template-columns:1fr}}
.stock-kpis{grid-template-columns:repeat(4,1fr)}
.expiry-panels{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:22px}.expiry-panel{padding:20px;border:1px solid #e4e6ee;border-radius:17px;background:#fff}.expiry-panel.expired{border-color:#f1c4c8;background:#fffafa}.expiry-panel.expiring{border-color:#f1ddb7;background:#fffdf7}.expiry-panel .card-heading>strong{font-size:12px}.batch-row{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:14px;padding:12px 0;border-bottom:1px solid #eceef3}.batch-row:last-child{border-bottom:0}.batch-row strong,.batch-row small{display:block}.batch-row small{margin-top:3px;color:#888d9d;font-size:9px}.batch-row b{min-width:35px;text-align:center}.batch-row time{font-size:10px;font-weight:700}.expired .batch-row time{color:#c24350}.expiring .batch-row time{color:#b17218}.all-clear{color:#6e7382}.po-batch-receive{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;margin:10px 0;padding:12px;border:1px solid #e4e6ee;border-radius:12px}.po-batch-receive legend{padding:0 6px;font-weight:800}@media(max-width:1000px){.stock-kpis{grid-template-columns:1fr 1fr}}@media(max-width:760px){.expiry-panels{grid-template-columns:1fr}.po-batch-receive{grid-template-columns:1fr}}

.stock-alert-panel{margin:20px 0 24px;padding:21px 23px;border:1px solid #f1d6b2;border-radius:18px;background:linear-gradient(135deg,#fffaf1,#fff);box-shadow:0 10px 30px #6f45140d}.stock-alert-panel.all-clear{border-color:#cbe9db;background:linear-gradient(135deg,#f1fbf6,#fff)}.stock-alert-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}.stock-alert-heading h2{margin:5px 0 3px;font-size:20px}.stock-alert-heading p{margin:0;color:#85899a;font-size:12px}.stock-alert-total{display:grid;place-items:center;min-width:42px;height:42px;padding:0 10px;border-radius:14px;background:#fff0d8;color:#b76c17;font-size:17px;font-weight:900}.stock-alert-panel.all-clear .stock-alert-total{background:#def6e8;color:#147d4d}.stock-alert-clear{margin:12px 0 0;color:#147d4d;font-weight:700}.stock-alert-row{display:grid;grid-template-columns:34px minmax(120px,1fr) 76px 122px;align-items:center;gap:12px;padding:12px 0;border-top:1px solid #f2e5d3}.stock-alert-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:10px;background:#fff0d8;color:#b76c17;font-weight:900}.stock-alert-row.out .stock-alert-icon{background:#ffe2e5;color:#c83f51}.stock-alert-product strong,.stock-alert-product small,.stock-alert-level strong,.stock-alert-level small,.stock-alert-order strong,.stock-alert-order small{display:block}.stock-alert-product strong{color:#282b42;font-size:13px}.stock-alert-product small{margin-top:3px;color:#85899a;font-size:10px}.stock-alert-level,.stock-alert-order{text-align:right}.stock-alert-level strong{color:#b76c17;font-size:16px}.stock-alert-row.out .stock-alert-level strong{color:#c83f51}.stock-alert-order strong{color:#343751;font-size:14px}.stock-alert-level small,.stock-alert-order small{margin-top:3px;color:#85899a;font-size:9px}.stock-alert-action{display:flex;justify-content:space-between;align-items:center;margin-top:12px;padding-top:14px;border-top:1px solid #f2e5d3;color:#6752c7;font-size:12px;font-weight:800;text-decoration:none}.stock-alert-action:hover{color:#4331a0}:root[data-theme="dark"] .stock-alert-panel{background:#1b2723;border-color:#5a472b}:root[data-theme="dark"] .stock-alert-panel.all-clear{background:#182921;border-color:#315a44}:root[data-theme="dark"] .stock-alert-product strong,:root[data-theme="dark"] .stock-alert-order strong{color:#ecf3ef}:root[data-theme="dark"] .stock-alert-row{border-color:#33433c}:root[data-theme="dark"] .stock-alert-action{border-color:#33433c;color:#c0a6ff}@media(max-width:600px){.stock-alert-panel{padding:17px}.stock-alert-row{grid-template-columns:30px minmax(90px,1fr) 54px;gap:8px}.stock-alert-order{grid-column:2/-1;display:flex;justify-content:space-between;gap:10px;text-align:left}.stock-alert-order small{margin-top:0}}