{% if screen %}{% endif %} {% set total_pages = 3 + cats|length %}

{{ title }}

{{ t('cost_report_subtitle') }}{% if site %} · {{ t('site_filter', site=site) }}{% endif %}

{{ t('total_across', n=cats|length) }}
{{ t.eur(costs.prior, 0) }}  →  {{ t.eur(costs.adjusted, 0) }}
{{ t.pct(costs.change_pct) }}  ({{ t.eur(costs.change, 0, true) }})
{{ t('status') }}: {{ t(year.status) }} · {{ t('exported') }}: {{ exported }}

{{ t('by_category') }}

{{ t('by_category_sub') }}

{{ t('prior_actual') }}{{ t('adjusted') }}
{{ overview_chart|safe }}

{{ t('change_by_category') }}

{{ t('change_by_category_sub') }}

{{ t('change_legend') }}
{{ change_chart|safe }}
{% for c in cats %}

{{ c.name }}

{{ t('cost_line') if c.count == 1 else t('cost_lines', n=c.count) }}

{{ t('prior_actual') }}{{ t('adjusted') }}
{{ c.chart|safe }}
{{ t('prior_actual') }}
{{ t.eur(c.totals.prior) }}
{{ t('adjusted') }}
{{ t.eur(c.totals.adjusted) }}
{{ t('change_eur') }}
{{ t.eur(c.totals.change, 2, true) }}
{{ t('change_pct') }}
{{ t.pct(c.totals.change_pct) }}
{% endfor %}

{{ t('summary') }}

{{ t('summary_sub') }}

{% for c in cats %} {% endfor %}
{{ t('category') }}{{ t('prior_actual') }}{{ t('adjusted') }}{{ t('change_eur') }}{{ t('change_pct') }}
{{ c.name }}{{ t.eur(c.totals.prior) }}{{ t.eur(c.totals.adjusted) }} {{ t.eur(c.totals.change, 2, true) }}{{ t.pct(c.totals.change_pct) }}
{{ t('total') }}{{ t.eur(costs.prior) }}{{ t.eur(costs.adjusted) }} {{ t.eur(costs.change, 2, true) }}{{ t.pct(costs.change_pct) }}