/* Mobile numeric KPIs only: same typography as Transactions / Ver totais.
   Keep category names, secondary values, other pages and desktop unchanged. */
@media (max-width:800px) {
 #app .page-head[data-heading-page="D\00ed vidas"] ~ .stats > .stat > .stat-value,
 #app .analytics-kpis > .analytics-kpi:nth-child(-n+3) > strong,
 #app .summary-stats > .summary-card:not(.summary-planned) > .summary-value {
  font-family:Inter,Arial,sans-serif;
  font-size:30px;
  font-weight:700;
  white-space:normal;
  overflow-wrap:anywhere;
 }
}

/* Overview only: stable single-line numeric metrics, including count-up.
   Reserve the 30px reference line height even when a long value needs fitting. */
@media (max-width:800px) {
 #app .summary-stats > .summary-card:not(.summary-planned) > .summary-value {
  font-size:var(--overview-value-size,30px);
  font-variant-numeric:tabular-nums;
  line-height:37.5px;
  min-width:0;
  max-width:100%;
  white-space:nowrap;
  overflow-wrap:normal;
  overflow:hidden;
 }
}

/* Debts: equal-width digits, matching Dashboard's numeric typography.
   Preserve wrapping, font size, weight, spacing and all other pages. */
#app .page-head[data-heading-page="D\00ed vidas"] ~ .stats > .stat > .stat-value,
#app .page-head[data-heading-page="D\00ed vidas"] ~ .cards > .panel > .card-value {
 font-variant-numeric:tabular-nums;
}
