main {
    min-height: 80vh;
    padding-bottom: 40px;
}

/* ── Header ── */
.report-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 24px 16px;
}

.report-header p {
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #888;
    margin: 0;
}

/* ── Date filter ── */
.date-filter {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-group label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #666;
}

.filter-group input[type="text"] {
    height: 38px;
    width: 130px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
    background: #fff;
    color: #111;
    letter-spacing: 0.03em;
}

.filter-group input[type="text"]:focus {
    outline: none;
    box-shadow: 0 0 0 2px #A8C2AB;
    border-color: #A8C2AB;
}

.filter-group select {
    height: 38px;
    padding: 0 32px 0 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
    background: #fff;
    color: #111;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23888' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
}

.filter-group select:focus {
    outline: none;
    box-shadow: 0 0 0 2px #A8C2AB;
    border-color: #A8C2AB;
}

.btn {
    height: 38px;
    padding: 0 18px;
    font-weight: 600;
    background-color: #A8C2AB;
    border: 1px solid #888;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #000;
    border-radius: 8px;
    cursor: pointer;
    align-self: flex-end;
}

.btn-ghost {
    background-color: transparent;
    border-color: #ccc;
    color: #555;
}

.btn-ghost:hover {
    background-color: #eee;
}

/* ── Summary cards ── */
.summary-cards {
    display: flex;
    gap: 16px;
    padding: 0 24px 24px;
    flex-wrap: wrap;
}

.card {
    flex: 1;
    min-width: 160px;
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.income-card  { background: #e8f5e9; }
.expense-card { background: #fdecea; }
.balance-card { background: #e8eaf6; }

.card-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #555;
}

.card-value {
    font-size: 1.6rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #111;
}

.card-value.positive { color: #2e7d32; }
.card-value.negative { color: #c62828; }

/* ── Section title ── */
.section-title {
    padding: 0 24px 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
}

/* ── Table ── */
.recent-transactions-table {
    padding: 0 0 1.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

thead tr {
    border-bottom: 1.5px solid #ccc;
}

th {
    text-align: left;
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

td {
    padding: 12px 16px;
    color: #111;
    border-bottom: 0.5px solid #ddd;
    font-size: 1rem;
}

tbody tr:last-child td { border-bottom: none; }

th:nth-child(1), td:nth-child(1) { width: 28%; padding-left: 24px; }
th:nth-child(2), td:nth-child(2) { width: 20%; }
th:nth-child(3), td:nth-child(3) { width: 52%; }

.badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    background: #FAECE7;
    color: #993C1D;
    text-transform: uppercase;
}

.amount {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* ── Progress bar ── */
.bar-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bar {
    height: 10px;
    border-radius: 999px;
    background: #A8C2AB;
    min-width: 4px;
    transition: width 0.4s ease;
}

.bar-pct {
    font-size: 0.85rem;
    color: #666;
    white-space: nowrap;
}

.recent-transactions-table { position: relative; min-height: 80px; }

.hidden { display: none !important; }
