/* KPI appearance only: existing geometry, values and role-specific sources stay intact. */
.stat-card{background:var(--surface)!important;border:1px solid var(--border)!important;border-radius:12px!important;font-family:var(--brand-font)}
.stat-card .stat-label{color:var(--text-muted)!important;font-family:var(--brand-font);font-size:var(--font-12)!important;font-weight:600!important}
.stat-card .stat-value{font-family:var(--brand-font);font-size:var(--font-24)!important;font-weight:600!important;font-variant-numeric:tabular-nums;color:var(--text)!important}
.stat-card.rizmo-kpi .stat-value{color:var(--text)!important}
.stat-card>div:last-child:not(.stat-value):not(.stat-label){font-family:var(--brand-font);font-size:var(--font-12)!important}
.rizmo-kpi-trend-icon{vertical-align:middle;margin-left:4px}
.dashboard-v3 .home-number{font-family:var(--brand-font);font-size:var(--font-24)!important;font-weight:600!important;font-variant-numeric:tabular-nums;color:var(--text)!important}
@media(max-width:700px){.stat-card .stat-value,.dashboard-v3 .home-number{font-size:var(--font-20)!important}}
/* Existing negative/positive inline colors are interpreted only as presentation signals. */
.stat-card .stat-value[style*="color: rgb(220, 38, 38)"],.stat-card[data-tone=danger] .stat-value{color:var(--danger)!important}
.stat-card .stat-value[style*="color: rgb(22, 163, 74)"],.stat-card .stat-value[style*="color: rgb(21, 128, 61)"],.stat-card[data-tone=success] .stat-value{color:var(--success)!important}

.stat-card.rizmo-kpi .stat-value[style*="font-size: 20px"]{font-size:var(--font-20)!important}

/* Keep the dense mobile financial grid of Gastos readable with the approved compact 14px step (Pagamentos usa o molde RIZMO). */
@media(max-width:760px){
 .gastos-v3 .fv-kpis .stat-card .stat-value{font-size:var(--font-14)!important}
}
