:root {
    --red-50:  #fef2f2;
    --red-100: #fee2e2;
    --red-200: #fecaca;
    --red-300: #fca5a5;
    --red-400: #f87171;
    --red-500: #ef4444;
    --red-600: #dc2626;
    --red-700: #b91c1c;
    --red-800: #991b1b;
    --red-900: #7f1d1d;
    --red-950: #450a0a;
}

body {
    /*background-color: red;*/
}

form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    label {
        width: 100%;

        textarea {
            width: 100%;
        }

        ul:has(li) {
            border: 1px solid var(--red-800);
            background-color: var(--red-200);
            color: var(--red-800);
            border-radius: .5em;
            padding: .5em;

            li {
                margin-left: 1em;
            }
        }
    }
}

a.delete {
    float: right;
}
a.delete::before {
    content: '🗑';
    margin-right: .25em;
}

header {
    display: flex;
    flex-direction: row;
    gap: 2em;
    align-items: center;

    h1, button {
        margin: 0;
    }
}

#transactions {
    & thead {
        & th:nth-child(1) {
            width: 2em;
        }
        & th:nth-child(3) {
            width: 8em;
            text-align: right;
        }
        & th:nth-child(4) {
            width: 4em;
        }
    }

    & tbody {
        & td:nth-child(3),
        & td:nth-child(4) {
            text-align: right;
        }
    }

    & tfoot {
        font-size: 1.25em;

        & th:nth-child(2) {
            text-align: right;
        }
    }
}
