
/* V408 — Giảm màu mè chữ ở các ô báo cáo, giữ màu chỉ cho trạng thái/cảnh báo */

/* Các card/ô số liệu phổ biến */
.ledger-cell .stat-figure,
.ledger-cell .tabular,
.ledger-cell [class*="text-[var(--brand-green)]"]:not(.stamp):not(button):not(a),
.ledger-cell [class*="text-[var(--success)]"]:not(.stamp):not(button):not(a){
  color:var(--foreground)!important;
}

/* Nhãn báo cáo: trung tính, dễ đọc */
.ledger-cell .eyebrow{
  color:var(--muted-foreground)!important;
  font-weight:600!important;
  letter-spacing:.025em!important;
}

/* Tiêu đề card */
.ledger-cell h3,
.ledger-cell h2{
  color:var(--foreground)!important;
}

/* KPI toàn hệ thống: số liệu dùng một màu chữ thống nhất */
.v220-global-kpi-summary .stat-figure{
  color:var(--foreground)!important;
}
.v220-global-kpi-summary .eyebrow{
  color:var(--muted-foreground)!important;
}

/* Top 5 và các bảng báo cáo: doanh thu không dùng xanh nổi */
.v367-top5-revenue{
  color:var(--foreground)!important;
}

/* Giữ màu cho badge trạng thái, cảnh báo, nút/link hành động */
.stamp,
.badge,
[role="status"],
.text-destructive,
a,
button{
  /* intentionally not globally recolored */
}

/* Các khối báo cáo có nền nhạt: số chính vẫn đen/trắng theo theme */
.rounded-md.bg-muted\/35 > div:last-child,
.rounded-lg.bg-muted\/35 > div:last-child{
  color:var(--foreground)!important;
}

/* Mobile: tránh chữ nhỏ/nhạt quá */
@media(max-width:767px){
  .ledger-cell .eyebrow{
    font-size:11px!important;
    line-height:1.35!important;
  }
  .ledger-cell .stat-figure{
    font-weight:700!important;
  }
}

/* Dark mode tự dùng foreground/muted của hệ thống */
