﻿/* All modals */
.modal-dialog {
    z-index: 30;
}

.popup-master-body .modal-backdrop.in {
    opacity: 0;
}

.popup-modal .modal-dialog {
    /*height: 600px;*/
    height: -webkit-calc(100% - 60px);
    height: calc(100% - 60px);
    max-height: 600px;
    width: 960px;
}

@media screen and (min-height: 768px) {
    .popup-modal .modal-dialog {
        max-height: 700px;
    }

    .popup-modal .modal-dialog.has-custom-modal-height {
        max-height: var(--custom-modal-height);
    }
}

.popup-modal .modal-content {
    height: 100%;
}

.popup-modal .modal-body {
    height: 100%;
    padding: 15px 0px;
}

@media (min-width: 768px) {
    .popup-master-body .modal-dialog.modal-lg {
        width: 90%;
    }
}

@media (min-width: 992px) {
    .modal-xlg {
        width: 1100px;
    }
}

@media (min-width: 992px) {
    .modal-xlargewide {
        width: 1100px !important;
    }
}

@media (min-height: 900px) {
    .modal-xlargehigh {
        height: 800px !important;
        max-height: 800px !important
    }
}

.modal-xlargewide1600 {
    width: 1600px !important;
}

@media (min-width: 1800px) {
   
}

.modal-dialog.modal-dialog-wide {
    max-height: none;
    width: 94%;
}

.popup-master-body .tabs-content {
    height: 100%;
}

.popup-master-body .tabs-content .tab-pane.popup-form {
    height: 100%;
}

/* Searchfilter modal*/
.searchfilter-modal .modal-header .close {
    opacity: 1;
}

.searchfilter-items .control-label {
    text-align: left;
}

.searchfilter-modal .form-control {
    width: 100%;
}

.searchfilter-modal .datepicker.form-control {
    width: 120px !important;
}

.searchfilter-modal .period-controls {
    display: table;
    width: 100%;
    height: 100%;
}

.searchfilter-modal .period-single-control {
    display: table-cell;
    vertical-align: middle;
    height: 100%;
    width: 33.333333%;
}

.searchfilter-modal .period-until-label {
    display: table-cell;
    height: 100%;
    width: 33.333333%;
    text-align: center;
}

.searchfilter-modal .period-controls .control-label {
    text-align: center;
}

.searchfilter-modal .combobox .toggler {
    width: 100%;
    border-radius: 4px;
    border: 1px solid #cccccc;
    border-radius: 4px;
}

.searchfilter-modal .combobox .input {
    width: 100% !important;
    height: 34px !important;
    padding-left: 16px;
}

.searchfilter-modal .combobox .list.adjusting-list {
    position: absolute;
    z-index: 30;
    color: #000000;
    font-size: 14px;
}

.searchfilter-modal .searchfilter-buttons .searchfilter-button {
    margin-left: 10px;
    color: #333333;
    font-size: 16px;
}

.searchfilter-modal .searchfilter-buttons .searchfilter-button .glyphicon {
    margin-right: 5px;
}


/* Warning dialog */
.modal-dialog.warning-dialog {
    /*width: 400px;*/
    width: 80vw;
}

@media screen and (min-width: 768px) {
    .modal-dialog.warning-dialog {
        max-width: 500px;
    }
}

.warning-icon {
    font-size: 22px;
}

.warning-text-container {
    /*position: relative;
    height: 100%;
    display: inline-block;
    width: 100%;*/
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -moz-flex;
    display: -webkit-flex;
    display: flex;
}

.warning-text-container > div {
    /*position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;*/
}


/* Colour picker modal */
.popup-modal .modal-dialog.modal-colour-picker {
    max-height: 300px;
}


/* Please wait modal */
#PleaseWaitDialog {
    z-index: 1100;
    top: 50px;
}
