.firmPage__modalContainer {
    z-index: -10;
    opacity: 0;
    -webkit-transition: .2s opacity;
    -o-transition: .2s opacity;
    transition: .2s opacity;
    display: none;
}

.firmPage__modalContainer--active {
    background: rgba(51, 51, 51, 0.8);
    position: fixed;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    opacity: 1;
    z-index: 100;
    top: 0;
    left: 0;
    height: 100dvh;
    width: 100vw;
}

.firmPage__modalContainer--active .firmPage__modalWrap {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    position: relative;
    background: -o-linear-gradient(left, #ececec 0%, white 38%, #ececec 60%, #ececec 100%);
    background: #fff;
    border-radius: 10px;
    max-height: 95vh;
    max-width: 90vw;
    width: auto;
    padding: 20px 0;
}

/* .firmPage__modalContainer--active .firmPage__modalWrap .modalClose {
    cursor: pointer;
    font-size: 20px;
    position: absolute;
    top: -5px;
    right: -5px;
    padding: 10px;
    -webkit-transition: .2s;
    -o-transition: .2s;
    transition: .2s;
} */

.firmPage__modalContainer--active .firmPage__modalWrap .modalClose {
    pointer-events: all;
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    top: -5px;
    right: -5px;
    background: #fff;
    color: #6c6767;
    border-radius: 10em;
    box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.25);
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.firmPage__modalContainer--active .firmPage__modalWrap .modalClose i {
    font-size: 10px;
}

.firmPage__modalContainer--active .firmPage__modalWrap .modalClose:active {
    box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.25) inset;
}


.firmPage__navigationItem i {
    pointer-events: none;
}

.firmPage__modalContainer--active .firmPage__modalWrap .modalClose:hover {
    color: grey;
}

.firmPage__modalContent {
    min-width: 100px;
    max-height: calc(95vh - 120px);
    padding: 0 30px;
    overflow: auto;
    width: 100%;
    box-sizing: border-box;
}

.firmPage__modalImageWrap {
    position: relative;
    max-height: calc(100vh - 50px);
    max-width: calc(100vw - 50px);
    width: 100%;
    height: 100%;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin: auto;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.firmPage__modalImageContent {
    position: relative;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    height: 100%;
    width: auto;
}

.firmPage__modalImageContent img {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    -o-object-fit: contain;
    object-fit: contain;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.firmPage__modalImageWrap .modalClose {
    cursor: pointer;
    top: 0;
    right: 0;
    position: absolute;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    font-size: 50px;
    line-height: 0;
    color: #fff;
    -webkit-transition: .2s;
    -o-transition: .2s;
    transition: .2s;
}

.firmPage__imageNavigation {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    position: absolute;
    width: 100%;
    height: 100%;
}

.firmPage__navigationItem {
    font-size: 30px;
    cursor: pointer;
    width: 15%;
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0);
    -webkit-transition: .2s;
    -o-transition: .2s;
    transition: .2s;
}

.firmPage__imageNavigation:hover .firmPage__navigationItem {
    background-color: rgba(255, 255, 255, .05);
}

.firmPage__navigationItem:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.firmPage__modalImageWrap .modalClose:hover {
    color: #333;
}

.firmPage__modalContent::-webkit-scrollbar {
    width: 5px;
}

.firmPage__modalContent::-webkit-scrollbar-track {
    background-color: darkgrey;
    border-radius: 20px;
}

.firmPage__modalContent::-webkit-scrollbar-thumb {
    background-color: #6969dd;
}

.firmPage__modalAttention {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    width: calc(100% - 50px);
    color: tomato;
    font-size: 12px;
    font-weight: bold;
    margin: 10px 20px;
}

.firmPage__modalAttention:empty {
    display: none;
}

.modalOverlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(51, 51, 51, 0.8);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    -webkit-transition: .2s;
    -o-transition: .2s;
    transition: .2s;
}

.modalOverlay--show {
    pointer-events: all;
    opacity: 1;
    z-index: 100;
}

.modalWindow {
    min-width: 280px;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    background-color: #fff;
    border-radius: 5px;
    padding: 20px 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 20px;
    justify-items: center;
}

.modalWindow span {
    font-size: 20px;
    text-align: center;
    grid-column: 1/-1;
    max-width: 250px;
}

.modalWindow .modalWindow__title {
    grid-column: 1 / -1;
    font-size: 18px;
    line-height: 20px;
    max-width: 300px;
    text-align: center;
}

.modalWindow .modalWindow__contentBox {
    grid-column: 1/-1;
    font-size: 14px;
}

.modalButton {
    cursor: pointer;
    min-height: 40px;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    min-width: 150px;
    padding: 0 10px;
    border: none;
    color: #fff;
    -webkit-transition: .2s;
    -o-transition: .2s;
    transition: .2s;
}

.modalButton:hover {
    -webkit-filter: brightness(.8);
    filter: brightness(.8);
}

.modalButton--accept {
    background-color: #0b7bc1;
}

.modalButton--cancel {
    background-color: tomato;
}

#customizeTable .firmPage__modalWrap {
    position: relative;
    height: 100%;
    width: 100%;
    max-width: 1200px;
    max-height: 85vh !important;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    border-radius: 7px;
    padding: 30px 0;
    background: #fff;
}

#customizeTable .firmPage__modalContent {
    max-height: none;
    height: 100%;
}

#customizeTable .modalClose {
    right: 0;
    top: 0;
    padding: 7px;
    font-size: 15px;
}

@media all and (max-width: 768px) {
    .modalButton {
        min-width: 100px
    }

    .firmPage__modalContainer--active {
        -webkit-box-align: start;
        -ms-flex-align: start;
    }

    .firmPage__modalContainer--active .firmPage__modalWrap {
        max-width: none;
        width: 100%;
        border-radius: 0;
        max-height: 100dvh;
    }

    .firmPage__modalContainer--active .firmPage__modalWrap .modalClose {
        font-size: 30px;
        right: 10px;
        z-index: 20;
    }

    .firmPage__modalContent {
        margin-top: 20px;
        max-height: calc(100dvh - 70px);
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .firmPage__modalContent::-webkit-scrollbar {
        left: -100px;
    }

    .firmPage__modalWrap {
        height: 100vh;
    }

    .firmPage__modalContainer--active[id^="compact_"] {
        width: 100dvw;
        height: 100dvh;
        display: flex;
        align-items: center;
        justify-content: center;
    }


    .firmPage__modalContainer--active[id^="compact_"] .firmPage__modalWrap {
        max-width: 90dvw;
        max-height: 90dvh;
        height: fit-content;
        border-radius: 5px;
        overflow: hidden;
        box-shadow: var(--ui-shadow-block);
        padding: 20px;
    }

    .firmPage__modalContainer--active[id^="compact_"] .firmPage__modalContent {
        padding: 0;
    }

    .firmPage__modalContainer--active[id^="compact_"] .modalClose {
        padding: 0;
        top: 0;
        right: 0;
        font-size: 1em;
        color: #444;
        margin: 10px;
    }

}