.reports-page {
    padding: 1rem;
}

.reports-panel {
    display: grid;
    gap: 1rem;
}

.reports-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.reports-header h1 {
    margin: 0;
}

.reports-header__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reports-filterPanel {
    min-width: 340px;
}

.reports-filter__toggles {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.reports-filter__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.92rem;
}

.reports-filter__toggle input {
    margin: 0;
}

.reports-state {
    padding: 0.65rem 0.8rem;
    border-radius: 10px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.reports-state.is-error {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.25);
}

.reports-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.8rem;
}

.reports-kpi {
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 12px;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.9);
}

.reports-kpi h2 {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
}

.reports-kpi p {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.reports-kpi small {
    color: var(--muted, #6b7280);
}

.reports-grid {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.reports-block {
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 12px;
    padding: 0.85rem;
    background: #fff;
    overflow: hidden;
}

.reports-block h3 {
    margin: 0 0 0.7rem;
    font-size: 0.95rem;
}

.reports-chart {
    display: grid;
    gap: 0.5rem;
}

.reports-chart__row {
    display: grid;
    grid-template-columns: 80px 1fr 90px;
    gap: 0.5rem;
    align-items: center;
}

.reports-chart__label,
.reports-chart__value {
    font-size: 0.78rem;
}

.reports-chart__label {
    color: var(--muted, #6b7280);
}

.reports-chart__value {
    text-align: right;
}

.reports-chart__track {
    height: 10px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.reports-chart__bar {
    height: 100%;
    border-radius: 999px;
}

.reports-chart__bar--w1 { width: 5%; }
.reports-chart__bar--w2 { width: 10%; }
.reports-chart__bar--w3 { width: 15%; }
.reports-chart__bar--w4 { width: 20%; }
.reports-chart__bar--w5 { width: 25%; }
.reports-chart__bar--w6 { width: 30%; }
.reports-chart__bar--w7 { width: 35%; }
.reports-chart__bar--w8 { width: 40%; }
.reports-chart__bar--w9 { width: 45%; }
.reports-chart__bar--w10 { width: 50%; }
.reports-chart__bar--w11 { width: 55%; }
.reports-chart__bar--w12 { width: 60%; }
.reports-chart__bar--w13 { width: 65%; }
.reports-chart__bar--w14 { width: 70%; }
.reports-chart__bar--w15 { width: 75%; }
.reports-chart__bar--w16 { width: 80%; }
.reports-chart__bar--w17 { width: 85%; }
.reports-chart__bar--w18 { width: 90%; }
.reports-chart__bar--w19 { width: 95%; }
.reports-chart__bar--w20 { width: 100%; }

.reports-chart__bar--income {
    background: linear-gradient(90deg, #16a34a, #22c55e);
}

.reports-chart__bar--expense {
    background: linear-gradient(90deg, #ef4444, #f97316);
}

.reports-chart__bar--neutral {
    background: linear-gradient(90deg, #0284c7, #06b6d4);
}

.reports-chart__bar--negative {
    background: linear-gradient(90deg, #dc2626, #ef4444);
}

.reports-chart__empty {
    color: var(--muted, #6b7280);
    font-size: 0.85rem;
}

.reports-linechart {
    margin-top: 0.6rem;
    height: 170px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding-top: 0.55rem;
}

.reports-linechart__svg {
    width: 100%;
    height: 100%;
    display: block;
}

.reports-linechart__line {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.reports-linechart__grid {
    stroke: rgba(148, 163, 184, 0.28);
    stroke-width: 1;
}

.reports-linechart__axis {
    stroke: rgba(100, 116, 139, 0.7);
    stroke-width: 1;
}

.reports-linechart__axisLabel {
    fill: #64748b;
    font-size: 11px;
    font-family: Arial, sans-serif;
}

.reports-linechart__line--income {
    stroke: #16a34a;
}

.reports-linechart__line--expense {
    stroke: #ef4444;
}

.reports-linechart__line--neutral {
    stroke: #0284c7;
}

.reports-linechart__point {
    fill: #334155;
}

@media (max-width: 640px) {
    .reports-page {
        padding: 0.7rem;
    }

    .reports-filterPanel {
        min-width: 300px;
        right: -8px;
    }
}
