/* Modal Window */

.modal-box {
    display: none;
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 120px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* The Close Button */
.modal-box .close {
    color: #aaaaaa;
    font-size: 25px;
    cursor: pointer;
    float: right;
    margin-top: 20px;
    margin-right: 20px;
}

/* Modal Box Layout */

.modal-box .modal-content {
    display: none;
    margin: auto;
    padding: 0;
    height: auto;
    max-width: 600px;
    min-width: 30%;
    width: auto;
    border-radius: 4px;
    box-shadow: 0 5px 40px 0 rgba(0, 0, 0, 0.3);
    background-color: #ffffff;
}

.modal-box .modal-header {
    font-size: 20px;
    font-weight: bold;
    font-style: normal;
    font-stretch: normal;
    line-height: normal;
    letter-spacing: normal;
    color: #4d4d50;
    padding: 20px;
    border-bottom: solid 1px #cccccc;
}

.modal-box .loader {
    border: 10px solid #f3f3f3; /* Light grey */
    border-top: 10px solid #555;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    -webkit-animation: spin 2s linear infinite; /* Safari */
    animation: spin 2s linear infinite;
    position: absolute;
    top: 300px;
    left: 50%;
    margin-left: -25px;
}

/* Spin for Safari */
@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



/* Modal Box with a list of items */

.modal-box .modal-container {
    padding: 10px;
}
.modal-box .modal-content .single-item {
    font-weight: bold;
}


/* Modal Content */

.modal-box .modal-body {
    overflow: auto;
    max-height: 420px;
    min-height: 120px;
}

.modal-body fieldset {
    margin: 0;
}

.modal-body input[type="button"],
.modal-body input[type="submit"] {
    border: none;
    width: 144px;
}

.modal-body select[multiple="multiple"] {
    min-height: 300px;
    min-width: 300px;
}

/* Modal Form controls */

.modal-body .tablelessform span.error {
    display: inline-block;
    width: 395px;
}
.modal-body .tablelessform li.reqnote {
    display: none;
}

/* Modal Form submits */

.modal-body .submits-wrapper .element {
    border-top: solid 1px #cccccc;
}

.modal-body .bottom-elements {
    text-align: center;
    border-top: solid 1px #cccccc;
}


/**************************************/
/******** Custom Modal Windows ********/
/**************************************/

/* Customize pop-ups on the Vehicles Dashboard page */
.modal-box.add-edit-vrn-modal .modal-content {
    min-height: 394px;
}
.modal-box.add-edit-vrn-modal .modal-body > p {
    text-align: center;
}

/* Customize tagsinput on the Employee dashboard page */
#grid-form .dgridtable .bootstrap-tagsinput {
    width: 98%;
    margin: 5px 0;
}
/* Customize tagsinput on the Edit assigned VRNs pop-up */
.modal-box.edit-vrn-modal .bootstrap-tagsinput {
    margin: 10px;
    min-width: 555px;
}

/* Customize tagsinput on the Edit VRN popup */
.modal-box.add-edit-vrn-modal .bootstrap-tagsinput {
    width: 80%;
    margin: 5px 0;
}
/* Customize tagsinput on the Filter VRN popup */
.modal-box.filter-vrn-modal .bootstrap-tagsinput {
    width: 200px;
}

.modal-box.filter-vrn-modal .modal-content {
    min-height: 294px;
}
