.scid-dialog-overlay {
    display: none;
    height: 100%;
    width: 100%;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 11000;
    background: #000000;
}

.ap_modal_dialog_overlay {
    position: absolute;
    top: 0;
    left: 0;
    overflow: auto;
    width: 100%;
    height: 100%;
    z-index: 70001;
}
.ap_modal_dialog_overlay.fixed_window{
	position:fixed;
}

.ap_modal_dialog_table {
    display: table;
    width: 100%;
    height: 100%;
}

.ap_modal_dialog_cell {
    display: table-cell;
    padding: 0;
    vertical-align: middle;
    text-align: center;
}

.ap_modal_dialog {
    position: relative;
    display: block;
    margin: 0 auto;
    text-align: left;
    color:#000000;
    background: #ffffff;
    padding: 20px 22px 24px !important;
    box-shadow: 0 0 12px rgba(0, 0, 0, .4);
}

.ap_loading_operation {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.6;
    filter: alpha(opacity=60);
    z-index: 30;
    background-color: #000;
}

.ap_alert_box_cont {
    text-align: left;
}

@media (max-width: 992px) {
    .ap_modal_dialog {
        max-width: 90% !important;
    }
}

.ap_modal_dialog_content {
    color: #333333;
    font-size: 15px;
    line-height: 1.36;
}

.ap_modal_title {
    font-size: 18px;
    color: #000000;
    font-weight: 600;
    line-height: 1.2;
    padding: 0 16px 16px 0;
}

.ap_modal_dialog_close {
    /*background: url('/upload/ap/images/icons/icon-close.png') no-repeat center center;*/
    display: block;
    text-decoration: none;
    outline: 0;
    border: 0;
    width: 40px;
    height: 40px;
    position: absolute;
    z-index: 20;
    right: 0;
    top: 0;
    /*background-color: transparent;*/
    background: transparent url("data:image/svg+xml;charset=utf8,%3Csvg width='14' height='14' viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23ff0000' d='M14 1.41L12.59 0L7 5.59L1.41 0L0 1.41L5.59 7L0 12.59L1.41 14L7 8.41L12.59 14L14 12.59L8.41 7L14 1.41Z'%3E%3C/path%3E%3C/svg%3E") no-repeat center center;
    cursor: pointer;
    padding: 0;
    -ms-transition: .3s ease-in-out;
    -o-transition: .3s ease-in-out;
    -moz-transition: .3s ease-in-out;
    -webkit-transition: .3s ease-in-out;
    transition: .3s ease-in-out;
}
.ap_modal_dialog_close:hover {
    /*background-color:#e1e1e1;*/
    filter: grayscale(100%);
}

.ap_alert_box_buttons {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin-top: 18px;
}

.ap_alert_box_buttons a,
.ap_alert_box_buttons a:visited {
    color: #fff;
    border:0;
}


#scid-dialog-favorite-file-delete a.button-orange,
#scid-dialog-favorite-file-delete a.button-gray {
    display: block;
    width: 100%;
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 47%;
    -ms-flex: 0 0 47%;
    flex: 0 0 47%;
    max-width: 47%;
    margin: 0;
    text-decoration: none;
    height: 36px;
    border: 0;
    line-height: 36px;
    background: #ff0000;
    padding: 0 15px;
    position: relative;
    color: #ffffff;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px !important;
    text-align: center;
    text-transform: uppercase;
    transition: background-color .3s;
}
#scid-dialog-favorite-file-delete a.button-gray {
    background: #999999;
}
#scid-dialog-favorite-file-delete a.button-gray:hover,
#scid-dialog-favorite-file-delete a.button-orange:hover {
    text-decoration: none;
    border: none 0 !important;
    background-color: #db0000;
}
#scid-dialog-favorite-file-delete a.button-gray:hover {
    background-color: #757575;
}

.ap_alert_box_buttons a.ap_button_gray,
.ap_alert_box_buttons a.ap_button_orange {
    display: block;
    width: 100%;
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 47%;
    -ms-flex: 0 0 47%;
    flex: 0 0 47%;
    max-width: 47%;
    margin: 0;
    text-decoration: none;
    height: 36px;
    border: 0;
    line-height: 36px;
    background: #ff0000;
    padding: 0 15px;
    position: relative;
    color: #ffffff;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px !important;
    text-align: center;
    text-transform: uppercase;
    transition: background-color .3s;
}

.ap_alert_box_buttons a.ap_button_gray {
    background: #999999;
}

.ap_alert_box_buttons a.ap_button_orange:hover {
    color: #ffffff;
    text-decoration: none;
    border: none 0 !important;
    background-color: #db0000;
}

.ap_alert_box_buttons a.ap_button_gray:hover {
    color: #ffffff;
    text-decoration: none;
    border: none 0 !important;
    background-color: #757575;
}

.ap_loading_operation img {
    margin: auto;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

.ap_width_1_btn {
    width:100% !important;;
    margin-right:0px !important;;
}

.ap_width_2_btn {
    width:calc((100% - 10px)/2) !important;
    margin-right:10px !important;;
}

.ap_modal_clear_left {
    clear:left;
}

.ap_modal_no_margin_right {
    margin-right:0 !important;
}

.ap_modal_dialog_content select {
    min-width: 155px;
    width: 100%;
    padding: 5px;
    height: 100px;
}

.ap_modal_dialog_content input[type=text], input[type=password] {
    display: block;
    color: #231f20;
    font-size: 14px;
    border: 1px solid #d4d4d4;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    height: 35px;
    line-height: 35px;
    margin-top: 10px;
    width: 100%;
    padding: 0 5px;
}

.ap_modal_error_text_block {
    color:#f00;
    padding:5px 0;
    font-size: 14px;
}

@media (max-width: 420px) {
    .ap_width_2_btn {
        width:100% !important;
        margin-right:0px !important;;
        float:none !important;
    }
}

.ap_modal_dialog {
    max-width: 300px !important;
}