﻿body.modal-open {
    overflow: hidden;
}

.modal, .modal-open {
    overflow-y: auto !important;
}

.custom-sm-modal-group {
    width: 100%;
    height: 27px;
    padding-left: 0 !important;
}

.custom-sm-control-modal-label {
    width: 134px !important;
    color: #474747 !important;
    line-height: 26px;
    height: 27px;
    padding-top: 2px !important;
}

.custom-sm-modal-input-medium {
    width: 200px;
    float: left;
    height: 27px !important;
}

.modal-textarea {
    float: left;
    height: 80px !important;
}

.custom-sm-modal-validation-text, .reset-password-modal-validation-text {
    margin-left: 134px !important;
    line-height: 11px;
    height: 11px;
}

.custom-sm-modal-checkbox {
    margin-top: 11px !important;
}

.custom-sm-modal-button-group {
    margin-top: 19px !important;
}

.button-14x {
    width: 143px;
}

.modal-radio-button {
    float: left;
    height: 27px;
}

.modal-radio-button > span {
    height: 27px;
    line-height: 31px;
    margin-left: 5px;
}

.modal {
    overflow: hidden;
}

.dialog-header {
    background-color: rgba(105, 108, 107, 1);
    height: 31px;
    border: solid 1px rgba(105, 108, 107, 1);
    padding-right: 20px;
    padding-left: 20px;
    vertical-align: central;
}

.dialog-title {
    line-height: 34px;
    text-transform: uppercase;
    color: #ffffff;
    vertical-align: central;
    font-size: 14px;
}

.modal-content {
    box-shadow: none !important;
    border-radius: 0 !important;
    -moz-border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
    background-color: transparent;
    border: none;
    width: 100%;
}

.modal {
    text-align: center;
    padding: 0!important;
}

.modal:before {
    content: '';
    display: inline-block;
    height: 85%; /* Margin before modal */
    vertical-align: middle;
    margin-right: -4px; /* Adjusts for spacing */
}

.modal-dialog {
    display: inline-block;
    text-align: left;
    vertical-align: middle;
}

.modal-body {
    background-color: #ffffff;
    padding: 20px;
    padding-bottom: 17px !important;
    border: solid 1px rgba(105, 108, 107, 1);
    height: auto;
}

.modal-buttons-group {
    margin-top: 25px;
    height: 28px;
    margin-right: 4px;
    margin-bottom: 3px;
}

/*.modal-buttons-group > button {
    float: right;
}*/

.modal-button {
    border: none;
    color: #474747;
    display: inline;
    height: 26px;
    padding: 0px 3px 0;
    text-transform: uppercase;
    min-width: 67px;
    margin-left: 14px;
    margin-right: 1px;
    /*float: right;*/
}

.modal-text-content {
    height: auto;
    overflow: visible;
}

.modal-text-content > form {
    overflow: visible;
}

.modal-message {
    float: left;
    margin-left: 20px;
    color: #474747;
    padding-top: 6px;
    min-height: 40px;
    width: 260px;
    word-wrap: break-word;
}

.modal-icon-container > i {
    font-size: 32px;
    color: rgba(105, 108, 107, 1);
}

.modal-icon-container {
    float: left;
    position: relative;
    top: 10px;
}

.v-align-center {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
}

.close-dialog-container {
    float: right;
    color: #ffffff;
    cursor: pointer;
    width: 20px;
    height: 20px;
    
    text-align: center;
}

.close-dialog-button {
    display: inline-block;
    vertical-align: middle;
    color: white;
}

.close-dialog-button a:hover{
    color: gray;
}

.modal.no-fade .modal-dialog {
    -moz-transform: none !important;
    -ms-transform: none !important;
    -o-transform: none !important;
    -webkit-transform: none !important;
    transform: none !important;
}

.dialog-container {
    left: calc( 50% + 91px - 215px);
    top: calc(50% - 137px - 30px);
    width: 431px;
    height: 274px;
    position: absolute;
}

.label-dialog {
    line-height: 27px;
    margin: 0px 27px 0px 5px;
}

.dialog-form-height {
    height: 100%;
}

.overflow-auto {
    overflow: auto;
}

.popup-radio {
    margin-top: 8px !important;
}

.popup-radio {
    margin-top: 6px\0 !important;
}

.custom-modal {
    margin: auto;
}

.confirm-modal, .message-modal {
    width: 350px;
}

.group-btn {
    text-align: center;
}

@media screen and (min-color-index:0) and(-webkit-min-device-pixel-ratio:0) {
    /*css hack: target ONLY safari 6.1+*/
    .modal-button {
        padding: 0;
    }
}
/*Custom modals*/
.confirm-modal .message-modal {
        width: 350px;
}