{% extends "admin/base.html" %}
{% block content %}
<div class="portal-print-report">
  <div class="portal-print-toolbar"><a href="{% url 'report_center' %}">← Voltar</a><button onclick="window.print()">Imprimir / Guardar PDF</button></div>
  <header><h1>{{ title }}</h1><p>Gerado em {{ generated_at|date:"d/m/Y H:i" }}</p></header>
  <table><thead><tr>{% for header in headers %}<th>{{ header }}</th>{% endfor %}</tr></thead><tbody>{% for row in rows %}<tr>{% for value in row %}<td>{{ value|default:"—" }}</td>{% endfor %}</tr>{% empty %}<tr><td colspan="20">Sem dados.</td></tr>{% endfor %}</tbody></table>
</div>
{% endblock %}
