{# Cross-app footer pill for The Ledger total-debt nag. Self-contained — works on the Cockpit, Command Deck, Below Deck without requiring ledger.css to be loaded. Inline styles use the existing CSS vars where defined (CD pages have --muted etc.) and brass fallbacks otherwise. Reads from ledger.db via the Jinja global ledger_footer_summary, which opens its own connection and never raises. #} {%- set ls = ledger_footer_summary() -%} {%- set _color_down = '#6c9d9d' -%} {%- set _color_up = '#b85d50' -%} {%- set _color_flat = '#8e7e69' -%} LEDGER · {%- if ls.has_data %} ${{ '{:,.0f}'.format(ls.total) }} {%- if ls.arrow == 'down' %}↓{% elif ls.arrow == 'up' %}↑{% else %}—{% endif -%} {%- else %} —{% endif %}