.container {
    display: flex;
    position: relative;
    flex-direction: column;
    width: 95%;
    max-width: 800px;
    margin: 0 auto;

    @media (min-width: 600px) {
        width: 85%;
    }
}

.subject-insert {
    margin-bottom: 25px;

    label {
        display: block;
        font-weight: bold;
        margin-bottom: 5px;
    }

    input {
        display: block;
        box-sizing: border-box;
        width: 100%;
        margin-bottom: 0;
    }

    .autocomplete {
        position: relative;

        ul {
            top: 0;
            position: absolute;
            width: 100%;
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            list-style: none;

            background-color: white;
            border: 2px #ccc solid;
            border-top: none;
            border-radius: 5px;

            li {
                font-weight: 500;
                padding: 10px 8px;
                cursor: pointer;

                &:hover {
                    background-color: #eee;
                }
            }
        }
    }
}

.subject-table-container {
    overflow-x: auto;
}

.subject-table {
    border-collapse: collapse;
    height: fit-content;
    width: 100%;

    td, th {
        padding: 3px 8px;

        &:not(:first-of-type) {
            text-align: center;
        }
    }

    thead th:first-of-type {
        text-align: left;
    }

    tbody tr {
        border-top: 1px solid #ccc;
        border-bottom: 1px solid #ccc;

        &:nth-child(odd) {
            background-color: #f2f2f2;
        }
    }

    tfoot tr {
        font-weight: bold;
        border-top: 5px solid black;

        td:first-of-type {
            text-align: right;
        }
    }

    button {
        background-color: #d1003e !important;
        color: white !important;

        iconify-icon {
            width: 20px;
            height: 16px;
        }

        &:hover {
            filter: brightness(1.1);
        }

        &:hover {
            filter: brightness(1.1);
        }
    }
}

.loading-box {
    display: flex;
    position: absolute;
    top: 80px;
    gap: 10px;
    align-items: center;
    justify-content: center;
    color: white;
    fill: white;
    background: #2A2A2A;
    margin: 0 auto;
    padding: 10px 15px;
    border-radius: 4px;
    transition: opacity 300ms ease-in;

    &.hidden {
        opacity: 0;
    }
}