.modal.fade, .modal-backdrop.fade {
    margin-right: -999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.modal.fade.in, .modal-backdrop.fade.in {
    margin-right: 0;
    width: auto;
    height: auto;
    display: block;   
}

.modal {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
}

.modal-backdrop {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    border: 1px solid;
    z-index: 1030;
}

.modal .modal-dialog {
    width: 600px;
    min-height: 120px;
    overflow: hidden;
    margin: 120px auto 0 auto;
    background-color: #fff;
    border-radius: 15px;
    border-top-right-radius: 0px;
    text-align: left;
}

.modal .modal-dialog .modal-content {
    position: relative;
    overflow: hidden;
}

.modal .modal-dialog .modal-header {
    width: 600px;
    /*min-height: 70px;*/
    padding: 15px;

}

.modal .modal-dialog .modal-header .close{
    position: absolute;
    width: 40px;
    height: 40px;
    right: -6px;
    top: 0;
    border-radius: 0;
    background-color: #9fa1a3;
    border: 0;
    outline: none;
    color: #fff;
    font-size: 30px;
    padding: 0;
    z-index: 100;
}

.modal .modal-dialog .modal-header .close span{
    display: block;
    width: 40px;
    height: 40px;
}

.modal .modal-dialog .modal-header h4{
    color: #da291c;
    padding: 15px 15px 0 15px;
    font-size: 18px;
    font-weight: normal;
}

.modal .modal-dialog .modal-body{
    padding: 0 30px 30px 30px;
    overflow: hidden;
}

.modal .modal-dialog .typeahead-input-wrapper {
    position: relative;
}

.modal .modal-dialog .modal-body input {
    position: absolute;
    width: 490px !important;
    outline: none;
    font-weight: lighter;
    color: #1e2121;
    position: relative;
    z-index: 100;
    font-size: 16px;
}


.modal .modal-dialog .modal-body .rui-icon-magnifying-glass-v3 {
    background-color: #da291c;
    position: absolute;
    right: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border-top-right-radius: 7px;
    border-bottom-right-radius: 7px;
    color: #fff;
    padding: 6px;
    font-size: 20px;
    display: block;
    z-index: 150;
}
