{# Dashboard stat cards partial — auto-refreshed via dashboard-refresh event. Rendered inside #dashboard-stats wrapper in dashboard/index.html, and as the response body of /dashboard/stats fragment route. Required context: stats, cost_stats, budget_cap, pending_count, company_count, ats_tracked_count, ats_last_scan. #} {% set budget_pct = (cost_stats.today / budget_cap * 100) if budget_cap > 0 else 0 %} {% if budget_pct >= 100 %}