{% from "components/_section_title.html" import section_title %}
{{ section_title(
"Top 5 Cost-Saving Opportunities",
description="Ranked by estimated spend (the audit's savings proxy), highest first. Includes both issues and suggestions; recurrence and severity break ties.",
aside='View all →'
) }}
{% if top_critical_issues %}
{% for issue in top_critical_issues %}
{% if issue.severity_bucket in ["critical", "high"] %}
{% set severity_color = "bg-rose-500" %}
{% elif issue.severity_bucket == "medium" %}
{% set severity_color = "bg-amber-500" %}
{% else %}
{% set severity_color = "bg-slate-400" %}
{% endif %}