<div class="pbi-report-print-header">
    <div class="d-flex justify-content-between align-items-start">
        <div>
            <h4 class="mb-0 fw-bold"><?= htmlspecialchars($empresa ?? '') ?></h4>
            <div class="text-muted small"><?= $titulo ?? '' ?></div>
        </div>
        <div class="text-end small text-muted">
            Gerado em: <?= date('d/m/Y H:i') ?>
            <?php if(!empty($filtros['dataIni'])): ?>
            <br>Período: <?= date('d/m/Y', strtotime($filtros['dataIni'])) ?> a <?= date('d/m/Y', strtotime($filtros['dataFim'])) ?>
            <?php elseif(!empty($filtros['anoSel'])): ?>
            <br>Ano: <?= $filtros['anoSel'] ?>
            <?php endif; ?>
        </div>
    </div>
    <hr style="border-color:#334155;margin:8px 0 4px">
</div>
