diff --git a/src/app/(main)/m/admin/inventory/page.tsx b/src/app/(main)/m/admin/inventory/page.tsx
index ee412e0..f3cc91c 100644
--- a/src/app/(main)/m/admin/inventory/page.tsx
+++ b/src/app/(main)/m/admin/inventory/page.tsx
@@ -229,8 +229,13 @@ export default function InventoryPage() {
const total = matrix.warehouses.reduce(
(sum, w) => sum + (matrix.cell[it.OBJID]?.[w.OBJID]?.qty ?? 0), 0
);
+ const cls = total < 0
+ ? "text-rose-700 font-extrabold bg-rose-50"
+ : total === 0
+ ? "text-emerald-300"
+ : "text-emerald-800 font-bold";
return (
-
+ |
{total === 0 ? "-" : `${fmt(total)} ${it.UNIT}`}
|
);
@@ -247,8 +252,13 @@ export default function InventoryPage() {
{matrix.items.map((it) => {
const c = matrix.cell[it.OBJID]?.[w.OBJID];
const qty = c ? c.qty : 0;
+ const cls = qty < 0
+ ? "text-rose-700 font-extrabold bg-rose-50"
+ : qty === 0
+ ? "text-slate-300"
+ : "text-slate-800 font-semibold";
return (
-
+ |
{qty === 0 ? "-" : (
|