﻿.modal {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    z-index: 20;
    left: 0;
    width: 100vw;
    height: 100vh;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.modal * {
    pointer-events: auto;
}

.modal-body {
    display: flex;
    flex-direction: column;
    max-width: 80%;
    max-height: 80%;
    min-height: 30%;
    padding: 2rem;
    transition: width 0.1s linear;
    background: var(--background-white);
    box-shadow: var(--soft-continer-outer-shadow);
    border-radius: 1.5rem;
}

.modal-head {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    gap: 5rem;
}
    .modal-head .close-icon {
        height: fit-content;
        font-size: 1.5em;
        cursor: pointer;
        transition: transform linear 0.1s, color linear 0.1s;
        /* Increasing the hitbox of the icon so that it is easily pressed */
        padding: 0.5em;
        margin: -0.5em;
    }
        .modal-head .close-icon:hover {
            color: var(--danger-red);
        }
        .modal-head .close-icon:active {
            transform: scale(0.8);
        }

.modal-content {
    height: 100%;
    overflow-y: auto;
    scrollbar-width: thin;
    padding: 0.5rem;
}
    /*.modal-content table {
        height: 100%;
    }*/
    .modal-content table thead tr  {
        font-weight: 500;
        cursor: default;
        user-select: none;
        flex: 1;
    }
        .modal-content table tbody tr svg {
            font-size: 1.5rem;
            cursor: pointer;
        }
            .modal-content table tbody tr svg:hover {
                color: var(--link-blue)
            }
            .modal-content table tbody tr svg:active {
                transform: scale(0.8);
                transition: transform linear 0.1s, color linear 0.1s;
            }
            .modal-content table tbody .spacer {
                height: 100%;
                line-height: 0;
                cursor: default;
            }
        .modal-content table button[type=submit] {
            background-color: transparent;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 0.2em;
        }

.modal-footer {
    display: flex;
    flex-direction: row;
    margin-top: auto;
}
.modal-footer form {
    display: flex;
    flex-direction: row;
    gap: 5em;
    width: 100%;
}

.modal-content table tbody tr .custom-select {
    min-width: 11em;
}

.large-column {
    min-width: 10em;
}

.medium-column {
    min-width: 12em;
}

.small-column {
    min-width: 3em;
}

/* Width modifiers */
.modal-33vw {
    width: 33vw;
}

.modal-45vw {
    width: 45vw;
}

.modal-50vw {
    width: 50vw;
}
.modal-60vw {
    width: 60vw;
}
.modal-75vw {
    width: 70vw;
}
.modal-80vw {
    width: 80vw;
}
