{# Spec 156 - "Spend by origin" tile. One horizontal bar per origin tool, sorted by cost desc. Each row click-throughs to /opportunities?origin= for drill-down. ``cost_by_origin`` is a list of dicts: {origin_tool, cost_usd, job_count, cost_share_pct} built in routes/findings.py via a single SQL aggregate over the indexed ``bigquery_jobs.origin_tool`` column. #} {% if cost_by_origin %}

Spend by origin

{{ cost_by_origin | length }} tool{{ "s" if cost_by_origin | length != 1 else "" }}

Which BI / orchestrator / CDC tool submitted each job. Click a row to filter the opportunities table to that origin.

{% endif %}