{# Funnel chart region. Stacked proportional bars rendering conversion through ordered stages. Previously this template wrapped its own chrome (`card bg-card shadow`) and emitted its own title. Converted to the shared region_card pattern per #794 second follow-up: dashboard slot owns chrome + title. Contract: ~/.claude/skills/ux-architect/components/funnel-chart-region.md (UX-070) v0.62 CSS refactor: per-stage opacity fade now driven by `data-dz-funnel-step="{idx}"` attribute selectors in components/regions.css — replaces the dynamic `bg-[hsl(var(--primary)/{{ pct }})]` Tailwind-arbitrary value that was JIT-invisible to downstream consumers. #} {% from 'macros/region_wrapper.html' import region_card %} {% call region_card(None) %}
{{ total }} total
{% elif metrics %} {# Fallback: render metrics as funnel stages #} {% set first_val = metrics[0].value if metrics else 1 %} {% set base = first_val if first_val > 0 else 1 %}{{ empty_message | default("No data available.") }}
{% endif %}