body > .modalBox-container > .modalBox-lock {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
    background-color: rgba(17, 2, 26, 0.61);
}

/* Multiple modal boxes support, set full transparency */
body > .modalBox-container > .modalBox-lock ~ .modalBox-lock {
    background-color: rgba(17, 2, 26, 0)
}

html.modalBox-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.modalBox {
    z-index: 9998;
    position: fixed;
    background: #ffffff;
    box-shadow: 1px 1px 1px 0px rgba(0, 0, 0, 0.2);
    top: 150px;
    border-radius: 5px;
}

.modalBox .close-modal {
    float: right;
    cursor: pointer;
    width: 23px;
    height: 23px;
    margin-bottom: 0px;
    background: url(../icons-yellow/x.svg) no-repeat center;
}

.not-touch .modalBox .close-modal:hover,
.not-touch .modalBox .close-modal:focus {
    background: url(../icons-yellow/x-hover.svg) no-repeat center;
}

.modalBox > div {
    padding-left: 10px;
    padding-right: 10px;
}

.modalBox > .content {
    height: 100%;
    padding-top: 20px;
    padding-bottom: 20px;
    border-radius: 5px;
    display: flex;
}

.modalBox > .content > div {
    flex-grow: 1;
}

.modalBox.full-width > .content {
    padding: 0;
}

.modalBox.full-width > .content .blockHeaderContainer .blockHeader {
    border-bottom: 1px solid lightgrey;
    margin-bottom: 10px;
}

.modalBox.with-header .content {
    height: calc(100% - 20px);
}

.modalBox > .header {
    height: 53px;
    background: #F0F0F0;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    padding: 15px 20px 15px 20px;
}

.modalBox .modalBoxTitle {
    float: left;
    white-space: nowrap;
    overflow-x: hidden;
    text-overflow: ellipsis;
    font-size: 16px;
}

.modalBox.small {
    width: 485px;
    left: calc(50% - (485px / 2)) !important;
}

.modalBox.big {
    width: 950px;
    left: calc(50% - (950px / 2)) !important;
}

.modalBox .modalBox-column img {
    max-width: 100%;
}

.modalBox .modalBox-column {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.modalBox.big .modalBox-column {
    width: 50%;
    flex-grow: 1;
}

.modalBox.small .modalBox-column {
    width: 100%;
}

.modalBox.big.with-separator .modalBox-column:nth-child(even) {
    border-left: 1px solid #e1e1e1;
}

.modalBox.big .modalBox-column:nth-child(odd),
.modalBox.big .modalBox-column:nth-child(even) {
    padding-right: 10px;
    padding-left: 10px;
}

.modalBox.big.full-width > .content > .modalBox-column {
    padding: 0;
    height: auto;
    overflow-y: auto;
}

.modalBox.full-width > .content .viewBlock {
    margin-bottom: 0;
}

.modalBox.big .modalBox-column:nth-child(odd) {
    left: 0;
}

.modalBox.small .modalBox-column {
    left: 0;
    padding-left: 10px;
    padding-right: 10px;
}

.modalBox.with-content > .content {
    display: flex;
}

.modalBox:not(.with-content) > .content {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.modalBox > .content {
    max-height: calc(100vh - 150px - 150px - 20px);
}

.ie11 .modalBox > .content {
    height: calc(100vh - 150px - 150px - 20px);
}

.modalBox.with-footer > .content,
.modalBox.with-header > .content {
    max-height: calc(100vh - 150px - 150px - 53px);
}

.ie11 .modalBox.with-footer > .content,
.ie11 .modalBox.with-header > .content {
    height: calc(100vh - 150px - 150px - 53px);
}

.modalBox.with-header.with-footer > .content {
    max-height: calc(100vh - 150px - 150px - 105px);
}

.ie11 .modalBox.with-header.with-footer > .content {
    height: calc(100vh - 150px - 150px - 105px);
}

.modalBox > .footer {
    height: 52px;
    padding-top: 10px;
    background: #F0F0F0;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.modalBox > .footer > .buttonRow {
    margin-top: 0;
}

.modalBox > .footer > .buttonRow {
    clear: both;
}

.modalBox > .footer > .buttonRow .button:last-of-type {
    margin-right: 0px;
}

.modalBox > .footer > .buttonRow > .saveButton,
.modalBox > .footer > .buttonRow > .button {
    order: 1;
}

.modalBox > .footer > .buttonRow > .cancelButton {
    order: 3;
}

.modalBox > .footer > .buttonRow > .devider {
    flex-grow: 1;
    order: 2;
}

.modalBox.edit > .header,
.modalBox.edit > .footer {
    background: #B9F1FF;
}

.modalBox.edit-mono > .header {
    border-bottom: 1px solid lightgrey;
}

.modalBox.edit-mono > .footer {
    border-top: 1px solid lightgrey;
}

.modalBox.edit > .content {
    background: #DFF9FF;
}

@media screen and (max-width: 970px) {
    .modalBox.big {
        width: calc(100% - 20px);
        left: 10px !important;
    }
}

@media screen and (max-width: 700px) {
    .modalBox {
        top: 10px;
    }

    .modalBox.with-header.with-footer > .content {
        height: calc(100vh - 20px - 140px);
        max-height: calc(100vh - 20px - 140px);
    }

    .modalBox.with-footer > .content {
        height: calc(100vh - 20px - 100px);
        max-height: calc(100vh - 20px - 100px);
    }

    .modalBox.with-footer.with-footer-buttons-2 > .content {
        height: calc(100vh - 20px - 100px - 42px);
        max-height: calc(100vh - 20px - 100px - 42px);
    }

    .modalBox.with-footer.with-footer-buttons-3 > .content {
        height: calc(100vh - 20px - 100px - 42px - 42px);
        max-height: calc(100vh - 20px - 100px - 42px - 42px);
    }

    .modalBox.with-footer.with-footer-buttons-2 > .footer {
        height: calc(52px + 42px);
    }

    .modalBox.with-footer.with-footer-buttons-3 > .footer {
        height: calc(52px + 42px + 42px);
    }

    .modalBox.with-header > .content {
        height: calc(100vh - 20px - 53px);
        max-height: calc(100vh - 20px - 53px);
        padding-bottom: 10px;
        padding-top: 10px;
    }
}

@media screen and (max-width: 620px) {
    .modalBox.big {
        overflow-y: auto;
    }

    .modalBox.big {
        width: 100%;
        left: 0 !important;
        top: 0 !important;
        height: 100%;
        border-radius: 0;
    }

    .modalBox.big .modalBox-column {
        width: 100%;
    }

    .modalBox.big .modalBox-column:nth-child(even),
    .modalBox.big .modalBox-column:nth-child(odd) {
        padding: 20px 10px;

    }

    .modalBox.big.with-separator .modalBox-column:nth-child(even) {
        border-style: solid;
        border-color: #e1e1e1;
        border-width: 1px 0 0 0;
    }

    .modalBox.big .close-modal {
        margin: 0;
    }
}

@media screen and (max-width: 500px) {
    .modalBox.small {
        width: 100%;
        overflow-y: auto;
        left: 0 !important;
        top: 0 !important;
        height: 100%;
    }

    .modalBox.small > .content {
        display: block;
    }

    .modalBox.small .modalBox-column {
        width: 100%;
    }

    .modalBox.small .close-modal {
        margin: 0;
    }

    .modalBox.small .modalBox-column:nth-child(even),
    .modalBox.small .modalBox-column:nth-child(odd) {
        padding: 20px 10px;

    }
}

@media screen and (max-height: 700px) {
    .modalBox {
        top: 50px;
    }

    .modalBox > .content {
        max-height: calc(100vh - 50px - 50px - 20px);
    }

    .ie11 .modalBox > .content {
        height: calc(100vh - 50px - 50px - 20px);
    }

    .modalBox.with-footer > .content,
    .modalBox.with-header > .content {
        max-height: calc(100vh - 50px - 50px - 53px);
    }

    .ie11 .modalBox.with-footer > .content,
    .ie11 .modalBox.with-header > .content {
        height: calc(100vh - 50px - 50px - 53px);
    }

    .modalBox.with-header.with-footer > .content {
        max-height: calc(100vh - 50px - 50px - 105px);
    }

    .ie11 .modalBox.with-header.with-footer > .content {
        height: calc(100vh - 50px - 50px - 105px);
    }
}

@media screen and (max-height: 1023px) {
    .modalBox {
        top: 50px;
        max-height: calc(100vh - 100px);
        display: flex;
        justify-content: space-between;
        Flex-direction: column;
    }

    .modalBox > .content {
        height: auto;
        max-height: unset;
        overflow-y: hidden;
    }

    .ie11 .modalBox > .content {
        height: calc(100vh - 50px - 50px - 20px);
    }

    .modalBox.with-footer > .content,
    .modalBox.with-header > .content {
        max-height: unset;
    }

    .ie11 .modalBox.with-footer > .content,
    .ie11 .modalBox.with-header > .content {
        max-height: unset;
    }

    .modalBox.with-header.with-footer > .content {
        max-height: unset;
    }

    .ie11 .modalBox.with-header.with-footer > .content {
        max-height: unset;
    }

    .modalBox.with-header > .content > .modalBox-column,
    .modalBox.with-header.with-footer > .content > .modalBox-column {
        height: auto;
        overflow-y: auto;
    }

    .modalBox > .footer {
        height: auto;
    }
}

@media screen and (max-height: 700px), screen and (max-width: 700px) {

    .modalBox {
        top: 10px;
        max-height: calc(100vh - 20px);
        display: flex;
        justify-content: space-between;
        Flex-direction: column;
    }

    .modalBox > .content {
        height: 100%;
        overflow-y: hidden;
    }

    .ios .modalBox > .content {
        height: 100%;
        overflow-y: hidden;
    }

    .modalBox.with-footer > .content,
    .modalBox.with-header > .content {
        height: 100%;
        overflow-y: hidden;
    }

    .ios .modalBox.with-footer > .content,
    .ios .modalBox.with-header > .content {
        height: 100%;
        overflow-y: hidden;
    }

    .modalBox.with-header.with-footer > .content {
        height: 100%;
        overflow-y: hidden;
    }

    .ios .modalBox.with-header.with-footer > .content {
        height: 100%;
        overflow-y: hidden;
    }

    .modalBox.with-header.with-footer.with-footer-buttons-2 > .content {
        height: calc(100vh - 20px - 105px - 42px);
        max-height: calc(100vh - 20px - 105px - 42px);
    }

    .ios .modalBox.with-header.with-footer.with-footer-buttons-2 > .content {
        height: calc(100vh - 20px - 105px - 42px - 35px);
        max-height: calc(100vh - 20px - 105px - 42px - 35px);
    }

    .modalBox.with-header.with-footer.with-footer-buttons-3 > .content {
        height: calc(100vh - 20px - 105px - 42px - 42px);
        max-height: calc(100vh - 20px - 105px - 42px - 42px);
    }

    .ios .modalBox.with-header.with-footer.with-footer-buttons-3 > .content {
        height: calc(100vh - 20px - 105px - 42px - 42px - 35px);
        max-height: calc(100vh - 20px - 105px - 42px - 42px - 35px);
    }

    .modalBox.big.with-header > .content > .modalBox-column,
    .modalBox.big.with-header.with-footer > .content > .modalBox-column {
        overflow-y: auto;
        height: auto;
    }

    .modalBox > .footer {
        height: auto;
    }
}