﻿body {
}

.modal-open {
    overflow: hidden;
}

.occupant-modal {
    display: none;
    top: 0 !important;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    background-color: transparent;
    margin-left: 0;
    width: 100%;
}

    .occupant-modal .modal-body {
        max-height: 100%;
    }
    .occupant-modal .chosen-container {
        width: 100% !important;
        margin-bottom:10px;
    }

    .modal-open .occupant-modal {
        overflow-x: hidden;
        overflow-y: auto;
        transform: translate(0);
        -webkit-transform: translate(0%);
        display: block;
    }


.occupant-modal .modal-dialog {
    background-color: #fff;
    padding: 15px !important;
    max-width: calc(100% - 60px);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 30px;
    position: relative;
}

.occupant-modal .modal-header {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-align: center;
    align-items: center;
    padding: 0 0 15px;
    margin: 0 15px 10px;
}

.occupant-modal .modal-heading {
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-align: center;
    -ms-flex-align: start;
    align-items: flex-start;
}

    .occupant-modal .modal-heading h4 {
        margin: 0 20px 0 0;
    }

.occupant-modal .close {
    position: absolute;
    right: 45px;
}

.occupant-modal .form-row {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.occupant-modal .col-md-4, .occupant-modal .col-12 {
    padding-left: 15px;
    padding-right: 15px;
    width: calc(100% - 30px);
}

.form-label {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-bottom:5px;
    line-height:1 !important;
}
.form-label label {line-height:1 !important; margin-bottom:0 !important;}
.occupant-modal input, .occupant-modal select, .occupant-modal textarea {
    width: 100%;
    box-sizing: border-box;
    margin-bottom:10px !important;
}

.occupant-modal .add, .occupant-modal .save, .occupant-modal .modal-close {
    background-color: #ad74a2;
    background-image: none;
    color: #fff;
    font-size: 13.33px;
    padding: .618em 1em;
    box-shadow: none;
    text-shadow: none;
    border: none;
    border-radius: 3px;
    font-weight: 700;
}

.occupant-modal .modal-close {
    background-color: rgba(128,128,128,.7) !important;
}

.occupant-modal input[type="checkbox"] {
    width: auto !important;
    margin-right: 10px;
}

@media (min-width:576px) {
    .occupant-modal .modal-dialog {
        max-width: 500px;
    }
}

@media (min-width:768px) {
    .occupant-modal .modal-dialog {
        padding: 30px !important;
        max-width: 600px;
        margin-top: 50px;
    }

    .occupant-modal-form .col-md-4 {
        width: 33%;
    }

    .occupant-modal .col-md-4 {
        width: calc(33.33% - 30px);
    }
}


@media (min-width:992px) {
    .occupant-modal .modal-dialog {
        max-width: 800px;
    }
}

@media (min-width:1600px) {
    .occupant-modal .modal-dialog {
        max-width: 1050px;
    }
}

@media(max-width:767px) {
    .occupant-modal .modal-dialog {
        padding: 30px 15px !important;
    }

    .occupant-modal .modal-heading {
        justify-content: space-between;
        width: 100%;
    }

    .occupant-modal .close {
        right: 15px;
        top: 5px;
    }

    .modal-heading-wrap {
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        width: calc(100% - 50px);
    }
}

@media (max-width:450px) {
    .occupant-modal .modal-footer {
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        -ms-flex-pack: center;
        justify-content: center;
    }

        .occupant-modal .modal-footer button {
            display: block;
            margin-bottom: 10px !important;
        }
}
