{% extends "_base.html" %} {#- Relatórios tabulares do finance (DRE, fluxo de caixa, aging, orçado×realizado) — TMFP-59208, migrado do reportlab (platypus) em TMFP-68796. Os textos e valores (BRL, datas) chegam prontos de ``services/report_export.py``; aqui só o layout: A4 retrato, margem 15mm, cabeçalho escuro, zebra, grade cinza, 1ª coluna à esquerda e as demais à direita, linha de total em negrito com filete acima. -#} {% block title %}{{ titulo_documento }}{% endblock %} {% block margem %}15mm{% endblock %} {% block pagina_extra %}@bottom-right { content: "Página " counter(page) " de " counter(pages); font-size: 7pt; color: #6b7280; }{% endblock %} {% block css %} .titulo { font-size: 14pt; font-weight: bold; margin: 3mm 0 3.5mm 0; } .subtitulo { font-size: 9pt; color: #808080; margin-bottom: 8mm; } .secao-rel { font-size: 11pt; font-weight: bold; font-style: italic; margin: 5mm 0 1.5mm 0; page-break-after: avoid; } .espaco { height: 4mm; } table.rel { border-collapse: collapse; table-layout: fixed; font-size: 8.5pt; margin: 0 auto; } table.rel th, table.rel td { border: 0.4pt solid #d1d5db; padding: 4pt 6pt; text-align: right; vertical-align: middle; overflow-wrap: anywhere; } table.rel th:first-child, table.rel td:first-child { text-align: left; } table.rel thead { display: table-header-group; } table.rel tr { page-break-inside: avoid; } table.rel thead th { background: #1f2937; color: #fff; font-weight: bold; } table.rel tbody tr:nth-child(even) td { background: #f3f4f6; } table.rel tbody tr.total td { font-weight: bold; border-top: 0.8pt solid #1f2937; } {% endblock %} {% block corpo %}
{{ titulo }}
{{ subtitulo }}
{% for bloco in blocos %} {% if bloco.secao %}
{{ bloco.secao }}
{% else %}
{% endif %} {% for l in bloco.larguras %}{% endfor %}{% for c in bloco.cabecalho %}{% endfor %} {% if bloco.linhas %} {% for linha in bloco.linhas %} {% for c in linha %}{% endfor %} {% endfor %} {% endif %}
{{ c }}
{{ c }}
{% endfor %} {% endblock %}