﻿.modal {
    top: 25px !important;
    overflow: hidden;
    max-height: 90% !important;
    height: auto !important;
    max-width: inherit !important;
    width: 80%;
}

@media only screen and (max-width: 993px) {
    .modal {
        top: 25px !important;
        width: 100%;
    }
}

a.modal-close {
    position: absolute;
    right: 20px;
    top: 10px;
    z-index: 9999999;
}

a.modal-close:nth-child(1) {
    /*border: 2px solid #004d5b;*/
    padding: 0 5px;
    border-radius: 5px;
    transition: 0.3s;
}

    a.modal-close:nth-child(1):hover {
        /*background: #004d5b;*/
        opacity: 0.8;
    }

.modal-close:hover i {
    /*color: #fff;*/
}

.modal-close i {
    font-size: 0.8rem !important;
}

.modal-header {
    border-bottom: 1px solid #e8e5e5;
    padding: 15px 25px;
    font-size: 1.4rem;
}

    .modal-header h5 {
        color: #52aebf;
        margin: 0 !important;
    }

.modal-content {
    position: relative !important;
    padding: 15px 25px !important;
    max-height: calc(100vh - 245px) !important;
    overflow-y: auto;
    overflow-x: hidden;
}

.modal-footer {
    border-top: 1px solid #e8e5e5;
    padding: 15px 25px;
    font-size: 1.4rem;
}

    .modal-footer .modal-close {
        background: #dfdfdf !important;
        color: #9f9f9f !important
    }

.modal form .field-validation-error {
    color: #ef5350 !important;
    font-size: 0.8rem !important;
}

.modal .pagination {
    position: relative !important;
    bottom: initial !important;
    height: auto !important;
}
