* {
    box-sizing: border-box;
}

/* main {
    display: flex;
}

main > section {
    flex-grow: 1;
    min-height: 150vh;
    padding-left: calc(174.68px + 1rem);
    > #date {
        text-align: right;
        font-weight: bold;
    }
}

main > aside {
    position: fixed;
    background-color: red;
    padding: 1rem;
    min-height: 100vh;
} 

:root:has(.dark) {
    --bg-deep: #000000;
    --bg-charcoal: #111111;
    --bg-darkgray: #1f1f1f;

    --accent-emerald: #00c853;
    --accent-lime: #76ff03;
    --accent-softgray: #9e9e9e;

    --income: #09cf6e;
    --expense: #c60f32;

    --text-primary: #ffffff;
    --text-secondary: #9e9e9e;
}

:root {
    --bg-white: #ffffff;
    --bg-lightgray: #f5f5f5;
    --bg-softgray: #e0e0e0;

    --accent-emerald: #2e7d32;
    --accent-brightgreen: #43a047;
    --accent-darkgray: #424242;
    --accent-lime: #59c103;

    --income: #4caf50;
    --expense: #e53935;

    --text-primary: #212121;
    --text-secondary: #424242;
} */

::-webkit-scrollbar {
    display: none;
}

.type {
    text-transform: capitalize;
}

#transactions-table {
    width: 100%;
    table-layout: auto;
}

#transactions-table th, #transactions-table td {
    padding: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* @media (prefers-color-scheme: dark) {
    body {
        background: #000;
        color: #fff;
    }
}

@media (prefers-color-scheme: light) {
    body {
        background: #fff;
        color: #000;
    }
} */

#empty-transactions-warning {
    display: none;
}

.expense-income {
    display: flex;
    justify-content: center;
    gap: 0 2rem;
    font-size: 1.2rem;
    flex-wrap: wrap;
}

#add_transaction_btn {
    display: block;
    max-width: 100px;
    width: 100px;
    background: green;
    border: 0;
    color: white;
    font-size: 1.5rem;
    padding: 10px;
    border-radius: 7px;
    margin: 2rem auto;
    cursor: pointer;
}

#modals > div {
    margin: 2.5rem auto;
    text-align: center;
}

#modals > div  * {
    margin: 0.25rem;
}
table {
    text-align: center;
}

table .close {
    cursor: pointer;
}
#modals,
#modals button {
    font-size: 1.5rem;
}
