main {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0 24px;
}

/* ── Header ── */
.income-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 16px;
}

.income-header p {
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #555;
    margin: 0;
}

.btn {
    height: 38px;
    padding: 0 20px;
    font-weight: 600;
    background-color: #A8C2AB;
    border: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #1a1a1a;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s;
}

.btn:hover { background-color: #93b097; }

/* ── Table card ── */
.recent-transactions-table {
    flex: 1;
    overflow-y: auto;
    background: #e2e3dc;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.07);
}

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

thead {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #d4d5ce;
}

thead tr { border-bottom: 1px solid rgba(0,0,0,0.1); }

th {
    text-align: left;
    padding: 12px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

td {
    padding: 11px 16px;
    color: #1a1a1a;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

tbody tr:nth-child(even) { background: rgba(0,0,0,0.025); }

/* ── Column widths ── */
th:nth-child(1), td:nth-child(1) { width: 5%; padding-left: 20px; color: #999; font-size: 0.85rem; }
th:nth-child(2), td:nth-child(2) { width: 25%; }
th:nth-child(3), td:nth-child(3) { width: 15%; }
th:nth-child(4), td:nth-child(4) { width: 15%; }
th:nth-child(5), td:nth-child(5) { width: 20%; }

/* ── Badge ── */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    background: #FAECE7;
    color: #993C1D;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ── Amount ── */
.amount {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* ── Action buttons ── */
.action-btn {
    height: 28px;
    padding: 0 12px;
    font-weight: 600;
    border: none;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: 6px;
    cursor: pointer;
    margin: 0 3px;
    transition: opacity 0.15s;
}

.action-btn:hover { opacity: 0.8; }

.primary { background-color: #A8C2AB; color: #1a1a1a; }
.danger  { background-color: #e05c4b; color: #fff; }

/* ── Pagination ── */
.pagination {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 14px 0;
}

.page-btn {
    height: 34px;
    width: 34px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background-color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.15s;
}

.page-btn:hover:not(:disabled) {
    background-color: #A8C2AB;
    border-color: #A8C2AB;
}

.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.page-info {
    font-size: 0.9rem;
    color: #555;
    font-weight: 600;
    min-width: 60px;
    text-align: center;
}

/* ── Modal ── */
.hidden  { display: none; }
.visible { display: block; }

.income-form {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #f5f5f0;
    width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px 32px 24px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    z-index: 100;
}

.income-form p {
    font-size: 1.1rem;
    text-transform: uppercase;
    color: #333;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

form {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.income-btns {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.form-label { margin-top: 14px; }

.form-label label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #555;
}

.form-input input,
.form-input select {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    margin-top: 6px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    background-color: #fff;
    color: #111;
    transition: box-shadow 0.2s;
}

.form-input input:focus,
.form-input select:focus {
    outline: none;
    box-shadow: 0 0 0 2px #A8C2AB;
    border-color: #A8C2AB;
}

.form-input select {
    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 10px center;
    background-size: 16px;
}

.form-input select:invalid { color: #888; }

.income-btn {
    height: 38px;
    padding: 0 20px;
    font-weight: 600;
    border: 1px solid #ccc;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #333;
    border-radius: 8px;
    cursor: pointer;
    background: transparent;
    transition: background-color 0.15s;
}

.income-btn.primary {
    background-color: #A8C2AB;
    border-color: #A8C2AB;
    color: #1a1a1a;
}

.income-btn:hover { background-color: #e0e0e0; }
.income-btn.primary:hover { background-color: #93b097; }


.recent-transactions-table { position: relative; }
