/** Flo — relatórios: gráfico em SVG próprio, variações, tabela de relatório e estilo de impressão; usa tokens, tiles e tabelas existentes. */

.flo-report-ctx { margin: 0 0 var(--flo-space-3, 0.75rem); color: var(--flo-ink-soft); }
.flo-report-actions { display: flex; flex-wrap: wrap; gap: var(--flo-space-2, 0.5rem); margin-bottom: var(--flo-space-3, 0.75rem); }
.flo-report-save { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--flo-space-2, 0.5rem); margin-bottom: var(--flo-space-4, 1rem); }
.flo-report-var { font-size: 0.8rem; }
.flo-report-var.is-up { color: var(--flo-accent); }
.flo-report-var.is-down { color: var(--flo-danger); }

.flo-report-chart { width: 100%; height: auto; max-height: 16rem; }
.flo-report-chart__axis { stroke: var(--flo-border); stroke-width: 1; }
.flo-report-chart__label { fill: var(--flo-ink-soft); font-size: 10px; }
.flo-report-chart__bar--income { fill: var(--flo-accent); }
.flo-report-chart__bar--expense { fill: var(--flo-danger); }
.flo-report-chart__line { fill: none; stroke: var(--flo-accent); stroke-width: 2; }
.flo-report-legend { display: flex; flex-wrap: wrap; gap: var(--flo-space-3, 0.75rem); margin: 0; padding: 0; list-style: none; font-size: 0.85rem; }
.flo-report-legend i { display: inline-block; width: 0.75rem; height: 0.75rem; margin-right: 0.35rem; border-radius: 2px; }
.flo-report-legend .is-income i { background: var(--flo-accent); }
.flo-report-legend .is-expense i { background: var(--flo-danger); }
.flo-report-legend .is-net i { background: var(--flo-accent); }

.flo-report-table td.is-num, .flo-report-table th.is-num { text-align: right; font-variant-numeric: tabular-nums; }
.flo-report-table tfoot td { font-weight: 700; }
.flo-report-share { display: inline-block; width: 4rem; height: 0.5rem; margin-right: 0.4rem; vertical-align: middle; background: var(--flo-surface-muted); border-radius: 3px; overflow: hidden; }
.flo-report-share > span { display: block; height: 100%; background: var(--flo-accent); }

.flo-report-catalog { display: grid; gap: var(--flo-space-3, 0.75rem); grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); margin: 0 0 var(--flo-space-4, 1rem); padding: 0; list-style: none; }
.flo-report-catalog a { display: block; height: 100%; padding: var(--flo-space-3, 0.75rem); border: 1px solid var(--flo-border); border-radius: 8px; text-decoration: none; }
.flo-report-catalog strong { display: block; }

@media print {
    .flo-mainnav, .flo-navbar, .flo-filters, .flo-report-actions, .flo-report-save, .flo-page-head__actions, .flo-footer, .flo-toast-region, form[data-live-list] { display: none !important; }
    body { background: #fff; color: #000; }
    .flo-card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
}