{% from "components/_section_title.html" import section_title %} {% from "components/_signal_chip.html" import signal_chip %}
{{ section_title( "Top 5 Expensive Jobs", description="Highest-cost logical jobs in this scan window. Open a row to inspect the associated opportunity or representative job.", aside='View all →' ) }}
{% if top_expensive_jobs %} {% set max_cost = top_expensive_jobs[0].cost_usd %}
{% for job in top_expensive_jobs %} {% set bar_height = (job.cost_usd / max_cost * 100) if max_cost else 0 %}
{{ job.cost_usd | format_usd }}
{{ "%.1f" | format(job.cost_share_pct) }}%
{{ "{:,}".format(job.execution_count) if job.execution_count else "-" }} runs
{{ job.object }}
{% if job.issue_count > 0 %} {{ job.issue_count }} issue{{ "s" if job.issue_count != 1 else "" }} {% elif job.suggestion_count > 0 %} {{ job.suggestion_count }} suggestion{{ "s" if job.suggestion_count != 1 else "" }} {% else %} no findings {% endif %}
{% endfor %}
{% else %}

No spend data available yet.

{% endif %}