/* Gráficos (js/views/spending.js): spending by day, week or month and category. */
.spend-controls { display: grid; gap: 10px; }
.spend-range { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 560px; gap: 8px; }
.spend-by { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); max-width: 420px; gap: 8px; }
.spend-controls .choice { min-height: 44px; padding: 10px 6px; text-align: center; }
.spend-controls .choice strong { font-size: .95rem; white-space: nowrap; }
.spend-body { display: grid; gap: 16px; min-width: 0; }
.spend-summary h2 { margin-top: 4px; font-size: 1.35rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.spend-summary h2 + p { margin-top: 4px; }
.spend-summary p + p { margin-top: 6px; }
.spend-hint { margin-top: 10px; }
.spend-breakdown .card-head p { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.spend-breakdown .bars { margin-top: 12px; }
.spend-breakdown .bar .fill { background: var(--c, var(--accent)); }
.spend-breakdown .bar .label b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.spend-breakdown > p { margin-top: 10px; }
.spend-nav { margin-top: 10px; gap: 8px; flex-wrap: nowrap; }
.spend-nav .btn { min-height: 40px; min-width: 44px; }
.spend-nav .btn:nth-child(2) { flex: 1 1 auto; }
.spend-empty-actions { justify-content: center; }
.spend-table-wrap { margin-top: 10px; overflow-x: auto; }
.spend-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.spend-table th, .spend-table td { padding: 7px 4px; border-top: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; }
.spend-table th:first-child { text-align: left; font-weight: 500; }
.spend-table thead th { border-top: 0; color: var(--muted); font-size: .8rem; font-weight: 700; }
.spend-table tfoot th, .spend-table tfoot td { font-weight: 700; }
.spend-table tr.selected { background: var(--accent-soft); }
.spend-links { text-align: center; }
.spend-links a, .history-to-charts a { display: inline-flex; align-items: center; min-height: 40px; }
.spend-body summary { min-height: 40px; display: list-item; padding-top: 8px; cursor: pointer; }
