﻿/*******************************
* MODAL AS LEFT/RIGHT SIDEBAR
* Add "left" or "right" in modal parent div, after class="modal".
* Get free snippets on bootpen.com
*******************************/
.modal.left .modal-dialog,
.modal.right .modal-dialog {
    position: fixed;
    margin: auto;
    width: 450px;
    height: 100%;
    -webkit-transform: translate3d(0%, 0, 0);
    -ms-transform: translate3d(0%, 0, 0);
    -o-transform: translate3d(0%, 0, 0);
    transform: translate3d(0%, 0, 0);
    margin-top: 0px !important;
    border-radius: 0px !important;
}

.modal-backdrop.in, .modal-backdrop.show {
    opacity: 0.4 !important;
}

.modal.left .modal-content,
.modal.right .modal-content {
    height: 100%;
    overflow-y: auto;
    border-radius: 0px !important;
    display: flex;
    flex-direction: column;
}

.modal.right .modal-header, .modal.left .modal-header {
    position: relative;
    top: 0;
    width: 100%;
    z-index: 1;
    padding: 10px !important;
    border: 0px !important;
    display: flex;
    min-height: 65px;
}

.modal.left .modal-body,
.modal.right .modal-body {
    padding: 15px 15px 15px;
    flex: 1;
    overflow: auto;
}

    .modal.left .modal-body .chat-discussion,
    .modal.right .modal-body .chat-discussion {
        max-height: inherit !important;
    }

.modal.right .modal-header .close {
    font-weight: 400;
    position: absolute;
    right: 17px;
    top: 9px;
    padding: 7px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: .3s;
}

.modal.left .modal-header .close, .modal.right .modal-header .close {
    font-size: 35px;
    padding-top: 2px !important;
}

    .modal.left .modal-header .close:hover, .modal.right .modal-header .close:hover {
        background: #eee;
    }

.modal-header .close:hover {
    background: #eee;
}

.btnopenMessenger {
    /*right: 65px;
    top: 9px;
    position: absolute;*/
    font-size: 17px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    transition: .3s;
    padding-top: 6px;
    padding-left: 9px;
}

    .btnopenMessenger:hover {
        /*background: #eee;*/
    }

/*Left*/
.modal.left.fade .modal-dialog {
    left: -320px;
    -webkit-transition: opacity 0.3s linear, left 0.3s ease-out;
    -moz-transition: opacity 0.3s linear, left 0.3s ease-out;
    -o-transition: opacity 0.3s linear, left 0.3s ease-out;
    transition: opacity 0.3s linear, left 0.3s ease-out;
}

.modal.left.fade.in .modal-dialog, .modal.left.fade.show .modal-dialog {
    left: 0;
}

/*Right*/
.modal.right.fade .modal-dialog {
    right: -320px;
    -webkit-transition: opacity 0.3s linear, right 0.3s ease-out;
    -moz-transition: opacity 0.3s linear, right 0.3s ease-out;
    -o-transition: opacity 0.3s linear, right 0.3s ease-out;
    transition: opacity 0.3s linear, right 0.3s ease-out;
}

.modal.right.fade.in .modal-dialog, .modal.right.fade.show .modal-dialog {
    right: 0;
}

/* ----- MODAL STYLE ----- */
.modal-content {
    border-radius: 0;
    border: none;
}

.modal-header {
    /*border-bottom-color: #EEEEEE;*/
    background-color: #FAFAFA;
}

/* ----- v CAN BE DELETED v ----- */
/*body {
    background-color: #78909C;
}*/

.demo {
    padding-top: 60px;
    padding-bottom: 110px;
}

.btn-demo {
    margin: 15px;
    padding: 10px 15px;
    border-radius: 0;
    font-size: 16px;
    background-color: #FFFFFF;
}

    .btn-demo:focus {
        outline: 0;
    }

.modal-footer-side {
    bottom: 0;
    width: 100%;
    padding: 15px;
    background-color: #DADADA;
    text-align: center;
}

    .modal-footer-side > a {
        text-decoration: none;
        font-weight: bold;
        font-size: 16px;
    }

.modal-body .chat-discussion {
    padding: 0px !important;
}

    .modal-body .chat-discussion .chat-message {
        padding: 3px 0px !important;
    }

@media(max-width:991px) {
    .modal.left .modal-dialog,
    .modal.right .modal-dialog {
        max-width: 91vw !important;
    }
}

ul.person_list {
    border: 1px solid #eee;
    margin-top: 15px;
}

.person_list li {
    font-weight: 600;
    border-bottom: 1px solid #eee;
    color: #232323;
    display: flex;
    font-size: 13px;
    width: 100%;
    align-items: center;
    justify-content: space-between;
}

    .person_list li span {
        padding: 10px 15px;
        display: block;
        margin-right: auto;
    }

    .person_list li a {
        color: #3070a7;
        padding: 10px 12px;
        transition: .3s;
    }

        .person_list li a:hover {
            background: rgba(48, 112, 167, .15);
            color: #3070a7;
        }

        .person_list li a.img_icon {
            background: none;
            text-align: center;
        }

            .person_list li a.img_icon img {
                width: 20px;
                height: 20px;
                border-radius: 50%;
                object-fit: fill;
            }

            .person_list li a.img_icon + span {
                padding-left: 0;
            }


body.modal-open {
    overflow: visible;
}


/*Additional Code Changed By Konik To Remove Horizontal Scroll*/
.modal.left .modal-body, .modal.right .modal-body {
    overflow-x: hidden;
}
