﻿.modal,
.modal .modal-backdrop {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
}

.modal {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    z-index: 999999999;
}

    .modal .modal-backdrop {
        background-color: var(--modal-backdrop-background-color);
    }

    .modal .modal-container,
    .modal-container {
        position: relative;
        width: 800px;
        height: auto;
        max-height: 90vh;
        display: flex;
        background-color: var(--modal-background-color);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: stretch;
        border-radius: 5px;
        animation-duration: 0.25s;
        animation-name: bounceIn;
        margin-top: 30px;
        margin-bottom: 30px;
    }

        .modal .modal-container.modal-small,
        .modal-container.modal-small {
            width: 500px
        }

        .modal .modal-container.modal-medium,
        .modal-container.modal-medium {
            width: 650px
        }

        .modal .modal-container.modal-large,
        .modal-container.modal-large {
            width: 950px
        }

        .modal .modal-container.modal-x-large,
        .modal-container.modal-x-large {
            width: 1150px
        }

        .modal .modal-container.modal-xx-large,
        .modal-container.modal-xx-large {
            width: 1350px
        }

        .modal .modal-container.modal-xxx-large,
        .modal-container.modal-xxx-large {
            width: 1550px
        }
            
            .modal-container.modal-xxx-large .modal-body {
                height: 100vw;
            }

    .modal .modal-header,
    .modal .modal-body,
    .modal .modal-footer,
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 15px !important;
    }

    .modal .modal-header,
    .modal .modal-footer,
    .modal-header,
    .modal-footer {
        display: flex;
        align-items: center;
    }

    .modal .modal-header,
    .modal-header {
        border-bottom: 1px solid var(--main-color);
        font-size: 16pt;
        font-weight: bold;
        justify-content: space-between;
    }

    .modal .modal-footer,
    .modal-footer {
        border-top: 1px solid var(--main-color);
        justify-content: flex-end;
    }

    .modal .modal-body {
        height: 100%;
        overflow-y: auto;
        width: 100%;
        box-sizing: border-box;
        font-size: 16px;
    }

    .modal .modal-footer button {
        width: auto;
    }

    .modal .modal-footer .button-save {
        min-width: 155px;
        padding: 0 45px
    }

    .modal .modal-footer .button-save .autowidth {
        min-width: auto !important;
    }

    .modal .modal-footer .fixedShort {
        width: 70px !important;
        min-width: unset !important;
        padding: unset;
    }

    .modal .modal-footer button + button {
        margin-left: 10px;
    }

    .modal .modal-footer.modal-footer-split {
        display: flex;
        justify-content: space-between;
    }

body.modal-open {
    overflow: hidden;
}
body.modal-open .modal-hidden {
    display: none;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.1);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}
