div#ChatModal {
    font-family: "Segoe UI", "SegoeuiPc", "San Francisco", "Helvetica Neue", "Helvetica", "Lucida Grande", "Roboto", "Ubuntu", "Tahoma", Microsoft Sans Serif, Tahoma, Arial, sans-serif!important;
    color: #111111;
    font-size:15px;
    -webkit-font-smoothing: antialiased;
    -moz-font-smoothing: antialiased;
    text-shadow: 0px 0 0px rgba(0, 0, 0, 0.2);
}
    div#ChatModal.modal:before {
        display: none !important
    }
#ChatModal .head-modal, #ChatModal .modal-body {
    margin: 0;
    border: none;
}

#ChatModal .modal-body {
    padding: 0;
}

#ChatModal .modal-dialog.wfull, #ChatModal .modal-content, #ChatModal .modal-body {
    height: 100%;
    margin: 0;
    width: 100%;
}

    #ChatModal .modal-body .row.heading div,
    #ChatModal .modal-body .row.heading span,
    #ChatModal .modal-body .row.sideBar div,
    #ChatModal .modal-body .row.sideBar span {
        overflow: hidden;
    }

    #ChatModal .modal-body div,
    #ChatModal .modal-body span {
        height: 100%;
        padding: 0;
        margin: 0;
        box-sizing: border-box;
    }

#ChatModal span.badge {
    position: absolute;
    top: 0;
    height: 22px !important;
    width: 22px !important;
    display: block;
    border-radius: 50%;
    background-color: red;
    text-align: center;
    padding-top: 6px !important;
    right: 3px;
}

#ChatModal .modal-body .sideBar::-webkit-scrollbar {
    display: none;
}

#ChatModal .modal-body .fa-2x {
    font-size: 1.5em;
}

#ChatModal .modal-body .app {
    position: relative;
    overflow: hidden;
    height: calc(100% - 0px);
    margin: auto;
    padding: 0;
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, .06), 0 2px 5px 0 rgba(0, 0, 0, .2);
}

#ChatModal .modal-body .app-one {
    background-color: #f7f7f7;
    height: 100%;
    /*overflow: hidden;*/
    margin: 0;
    padding: 0;
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, .06), 0 2px 5px 0 rgba(0, 0, 0, .2);
}

#ChatModal .modal-body .rowchatleft {
    width: calc(100% - 300px);
    padding: 0;
    margin: 0;
    height: 100%;
    float: left;
    transition: 0.5s;
}
#ChatModal .modal-body .rowchatright[sidebar=true] {
    display:none;
}
#ChatModal .modal-body .rowchatleft[sidebar=true] {
    width: calc(100%)!important;
}
#ChatModal .modal-body .rowchatright {
    width: 300px;
    padding: 0;
    margin: 0;
    height: 100%;
    float: left;
    border-left: 1px solid #eeeeee;
    background: #fff;
    position:relative
}

#ChatModal .modal-body .side {
    padding: 0;
    margin: 0;
    height: 100%;
    width: 340px;
    float: left;
}

    #ChatModal .modal-body .side .side-left {
        padding: 0;
        margin: 0;
        height: 100%;
        width: 55px;
        float: left;
        background: #619cde;
    }

    #ChatModal .modal-body .side .side-right {
        padding: 0;
        margin: 0;
        height: 100%;
        width: calc(100% - 55px);
        float: left;
    }

#ChatModal .modal-body .side-one {
    padding: 0;
    margin: 0;
    height: 100%;
    width: 100%;
    z-index: 1;
    position: relative;
    display: block;
    top: 0;
}

#ChatModal .modal-body .side-two {
    padding: 0;
    margin: 0;
    height: 100%;
    width: 100%;
    z-index: 2;
    position: relative;
    top: -100%;
    left: -100%;
    -webkit-transition: left 0.3s ease;
    transition: left 0.3s ease;
}


#ChatModal .modal-body .heading {
    padding: 10px 16px 10px 15px;
    margin: 0;
    height: 62px;
    width: 100%;
    background-color: #fff;
    z-index: 1000;
    border-bottom: 1px solid #eeeeee;
}

#ChatModal .modal-body .heading-avatar-icon {
    display: inline-block;
    position: relative;
    width: auto;
    margin-right: 15px;
}

#ChatModal .modal-body .headeing-online {
    display: inline-block;
    position: relative;
    width: auto;
}

#ChatModal .modal-body .heading-avatar {
    padding: 0;
    cursor: pointer;
}

#ChatModal .modal-body .heading-avatar-icon img {
    border-radius: 50%;
    height: 40px;
    width: 40px;
    object-fit: cover;
}

#ChatModal .modal-body .heading-name {
    padding: 0 !important;
    cursor: pointer;
}

#ChatModal .modal-body .heading-name-meta {
    font-weight: 700;
    font-size: 100%;
    padding: 5px;
    padding-bottom: 0;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #000;
    display: block;
    font-size: 16px;
}

#ChatModal .modal-body .heading-online {
    display: none;
    padding: 0 5px;
    font-size: 12px;
    color: #93918f;
    display: inline-block;
    width: auto;
    height: auto;
}

#ChatModal .modal-body .heading-compose {
    padding: 0;
}

    #ChatModal .modal-body .heading-compose i {
        text-align: center;
        padding: 5px;
        color: #93918f;
        cursor: pointer;
    }

#ChatModal .modal-body .heading-dot {
    padding: 0;
    margin-left: 10px;
}

    #ChatModal .modal-body .heading-dot i {
        text-align: right;
        padding: 5px;
        color: #93918f;
        cursor: pointer;
    }

#ChatModal .modal-body .searchBox {
    padding: 0 !important;
    margin: 0 !important;
    height: 60px;
    width: 100%;
}

#ChatModal .modal-body .searchBox-inner {
    height: 100%;
    width: 100%;
    padding: 10px !important;
    background-color: #fbfbfb;
}


    /*#searchBox-inner input {
  box-shadow: none;
}*/

    #ChatModal .modal-body .searchBox-inner input:focus {
        outline: none;
        border: none;
        box-shadow: none;
    }

#ChatModal .modal-body .sideBar {
    padding: 0 !important;
    margin: 0 !important;
    background-color: #fff;
    overflow-y: auto;
    border: 1px solid #fff;
    height: calc(100% - 120px);
}

#ChatModal .modal-body .sideBar-body {
    position: relative;
    padding: 15px 0 !important;
    cursor: pointer;
    height: auto;
    overflow: initial !important;
}
#ChatModal .modal-body img{max-height:250px}
.dvch {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
} .dvch img {
    max-height: 22px!important;
}
    #ChatModal .modal-body .sideBar-body:hover, #ChatModal .modal-body .sideBar-body.true {
        background-color: #3c9bc9;
        color: #fff !important
    }

        #ChatModal .modal-body .sideBar-body.true .sideBar-name > *, #ChatModal .modal-body .sideBar-body:hover .sideBar-name > *, #ChatModal .modal-body .sideBar-body.true .time-meta {
            color: #fff !important
        }

        #ChatModal .modal-body .sideBar-body:hover .name-meta,
        #ChatModal .modal-body .sideBar-body:hover .time-meta,
        #ChatModal .modal-body .sideBar-body:hover .message-old {
            color: white
        }

#ChatModal .modal-body .sideBar-avatar {
    text-align: center;
    padding: 0 !important;
}

#ChatModal .modal-body .avatar-icon img {
    border-radius: 50%;
    height: 49px;
    width: 49px;
    object-fit: cover
}

#ChatModal .modal-body .sideBar-main {
    padding: 0 !important;
}

    #ChatModal .modal-body .sideBar-main .row {
        padding: 0 !important;
        margin: 0 !important;
    }

#ChatModal .modal-body .sideBar-name {
    padding: 0px 10px !important;
}

#ChatModal .modal-body .name-meta {
    font-size: 100%;
    padding: 1% !important;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #111;
    font-size: 17px;
    line-height: 22px;
}

#ChatModal .modal-body .sideBar-time {
    padding: 10px !important;
}

#ChatModal .modal-body .time-meta {
    text-align: right;
    font-size: 12px;
    padding: 1% !important;
    color: rgba(0, 0, 0, .4);
    vertical-align: baseline;
}

#ChatModal .modal-body .message-old {
    font-size: 13px;
    color: rgba(0, 0, 0, .4);
    vertical-align: baseline;
    margin-top: 5px;
    display: inline-block;
}

/*New Message*/

#ChatModal .modal-body .newMessage {
    padding: 0 !important;
    margin: 0 !important;
    height: 100%;
    position: relative;
    left: -100%;
}

#ChatModal .modal-body .newMessage-heading {
    padding: 10px 16px 10px 15px !important;
    margin: 0 !important;
    height: 100px;
    width: 100%;
    background-color: #00bfa5;
    z-index: 1001;
}

#ChatModal .modal-body .newMessage-main {
    padding: 10px 16px 0 15px !important;
    margin: 0 !important;
    height: 60px;
    margin-top: 30px !important;
    width: 100%;
    z-index: 1001;
    color: #fff;
}

#ChatModal .modal-body .newMessage-title {
    font-size: 18px;
    font-weight: 700;
    padding: 10px 5px !important;
}

#ChatModal .modal-body .newMessage-back {
    text-align: center;
    vertical-align: baseline;
    padding: 12px 5px !important;
    display: block;
    cursor: pointer;
}

    #ChatModal .modal-body .newMessage-back i {
        margin: auto !important;
    }

#ChatModal .modal-body .composeBox {
    padding: 0 !important;
    margin: 0 !important;
    height: 60px;
    width: 100%;
}

#ChatModal .modal-body .composeBox-inner {
    height: 100%;
    width: 100%;
    padding: 10px !important;
    background-color: #fbfbfb;
}

    #ChatModal .modal-body .composeBox-inner input:focus {
        outline: none;
        border: none;
        box-shadow: none;
    }

#ChatModal .modal-body .compose-sideBar {
    padding: 10px !important;
    margin: 0 !important;
    background-color: #fff;
    overflow-y: auto!important;
    border: 1px solid #f7f7f7;
    /*height: calc(100% - 160px);*/
}

    #ChatModal .modal-body .compose-sideBar::-webkit-scrollbar, #conversation::-webkit-scrollbar {
        display: none;
    }

/*Conversation*/
#ChatModal .modal-body .conversation {
    padding: 0 !important;
    margin: 0 !important;
    height: 100%;
    width: calc(100% - 340px) !important;
    float: left;
    border-left: 1px solid rgba(0, 0, 0, .08);
    /*overflow-y: auto;*/
}

#ChatModal .modal-body .message {
    padding: 0 !important;
    margin: 0 !important;
    background: #e7eef4;
    background-size: cover;
    overflow-y: auto;
    border: 1px solid #e7eef4;
    height: calc(100% - 162px);
    padding-top: 20px !important
}

#ChatModal .modal-body .message-previous {
    margin: 0 !important;
    padding: 0 !important;
    height: auto;
    width: 100%;
}

#ChatModal .modal-body .previous {
    font-size: 15px;
    text-align: center;
    padding: 10px !important;
    cursor: pointer;
}

    #ChatModal .modal-body .previous a {
        text-decoration: none;
        font-weight: 700;
    }

#ChatModal .modal-body .message-body {
    margin: 0 !important;
    padding: 10px !important;
    width: auto;
    height: auto;
}

#ChatModal .modal-body .message-main-receiver {
    /*padding: 10px 20px;*/
    max-width: 60%;
    position: relative;
}

#ChatModal .modal-body .message-main-sender {
    padding: 3px 20px !important;
    margin-left: 40% !important;
    max-width: 60%;
    position: relative;
}

.chatavar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    position: absolute;
    top: 5px;
}

#ChatModal .modal-body .message-main-sender .chatavar {
    right: 0
}

#ChatModal .modal-body .message-text {
    margin: 0 !important;
    padding: 5px !important;
    word-wrap: break-word;
    font-weight: 200;
    font-size: 15px;
    padding-bottom: 0 !important;
}

#ChatModal .modal-body .message-time {
    margin: 5px !important;
    margin-left: 50px !important;
    font-size: 12px;
    text-align: right;
    color: #9a9a9a;
}

#ChatModal .modal-body .receiver {
    width: auto !important;
    padding: 4px 10px 7px !important;
    border-radius: 10px 10px 10px 0;
    background: #ffffff;
    font-size: 12px;
    word-wrap: break-word;
    display: inline-block;
    margin-left: 40px;
    margin-bottom:5px;
}

#ChatModal .modal-body .sender {
    float: right;
    width: auto !important;
    background: #58b2ee;
    border-radius: 10px 10px 0 10px;
    padding: 4px 10px 7px !important;
    font-size: 12px;
    display: inline-block;
    word-wrap: break-word;
    margin-right: 20px;
}

    #ChatModal .modal-body .sender .message-text {
        color: white
    }

    #ChatModal .modal-body .sender .message-time {
        color: white;
        font-style: italic;
    }
/*Reply*/

#ChatModal .modal-body .reply {
    height: 100px;
    width: 100%;
    background-color: #f9f9fd;
    padding: 0px !important;
    margin: 0 !important;
    z-index: 1000;
    border-top: 1px solid #eeeeee;
}

#ChatModal .modal-body .reply-emojis {
    padding: 5px !important;
}

    #ChatModal .modal-body .reply-emojis i {
        text-align: center;
        padding: 5px 5px 5px 5px !important;
        color: #93918f;
        cursor: pointer;
    }

#ChatModal .modal-body .reply-recording {
    padding: 5px !important;
}

    #ChatModal .modal-body .reply-recording i {
        text-align: center;
        padding: 5px !important;
        color: #93918f;
        cursor: pointer;
    }

#ChatModal .modal-body .reply-send {
    padding: 5px !important;
}

    #ChatModal .modal-body .reply-send i {
        text-align: center;
        padding: 5px !important;
        color: #93918f;
        cursor: pointer;
    }

#ChatModal .modal-body .reply-main {
    padding: 15px !important;
    color: #333;
    font-size: 15px;
}

    #ChatModal .modal-body .reply-main textarea {
        width: 100%;
        resize: none;
        overflow: hidden;
        padding: 12px 5px !important;
        outline: none;
        border: none;
        text-indent: 5px;
        box-shadow: none;
        height: 100%;
        font-size: 16px;
        background-color: transparent;
    }

        #ChatModal .modal-body .reply-main textarea:focus {
            outline: none;
            border: none;
            text-indent: 5px;
            box-shadow: none;
        }

@media screen and (max-width: 700px) {
    #ChatModal .modal-body .app {
        top: 0;
        height: 100%;
    }

    #ChatModal .modal-body .heading {
        height: 70px;
        background-color: #009688;
    }

    #ChatModal .modal-body .fa-2x {
        font-size: 2.3em !important;
    }

    #ChatModal .modal-body .heading-avatar {
        padding: 0 !important;
    }

    #ChatModal .modal-body .heading-avatar-icon img {
        height: 50px;
        width: 50px;
    }

    #ChatModal .modal-body .heading-compose {
        padding: 5px !important;
    }

        #ChatModal .modal-body .heading-compose i {
            color: #fff;
            cursor: pointer;
        }

    #ChatModal .modal-body .heading-dot {
        padding: 5px !important;
        margin-left: 10px !important;
    }

        #ChatModal .modal-body .heading-dot i {
            color: #fff;
            cursor: pointer;
        }

    #ChatModal .modal-body .sideBar {
        height: calc(100% - 130px);
    }

    #ChatModal .modal-body .sideBar-body {
        height: 80px;
    }

    #ChatModal .modal-body .sideBar-avatar {
        text-align: left;
        padding: 0 8px !important;
    }

    #ChatModal .modal-body .avatar-icon img {
        height: 55px;
        width: 55px;
    }

    #ChatModal .modal-body .sideBar-main {
        padding: 0 !important;
    }

        #ChatModal .modal-body .sideBar-main .row {
            padding: 0 !important;
            margin: 0 !important;
        }

    #ChatModal .modal-body .sideBar-name {
        padding: 10px 5px !important;
    }

    #ChatModal .modal-body .name-meta {
        font-size: 16px;
        padding: 5% !important;
    }

    #ChatModal .modal-body .sideBar-time {
        padding: 10px !important;
    }

    #ChatModal .modal-body .time-meta {
        text-align: right;
        font-size: 14px;
        padding: 4% !important;
        color: rgba(0, 0, 0, .4);
        vertical-align: baseline;
    }

    /*Conversation*/
    #ChatModal .modal-body .conversation {
        padding: 0 !important;
        margin: 0 !important;
        height: 100%;
        /*width: 100%;*/
        border-left: 1px solid rgba(0, 0, 0, .08);
        /*overflow-y: auto;*/
    }

    #ChatModal .modal-body .message {
        height: calc(100% - 140px);
    }

    #ChatModal .modal-body .reply {
        height: 70px;
    }

    #ChatModal .modal-body .reply-emojis {
        padding: 5px 0 !important;
    }

        #ChatModal .modal-body .reply-emojis i {
            padding: 5px 2px !important;
            font-size: 1.8em !important;
        }

    #ChatModal .modal-body .reply-main {
        padding: 2px 8px !important;
    }

        #ChatModal .modal-body .reply-main textarea {
            padding: 8px !important;
            font-size: 18px;
        }

    #ChatModal .modal-body .reply-recording {
        padding: 5px 0 !important;
    }

        #ChatModal .modal-body .reply-recording i {
            padding: 5px 0 !important;
            font-size: 1.8em !important;
        }

    #ChatModal .modal-body .reply-send {
        padding: 5px 0 !important;
    }

        #ChatModal .modal-body .reply-send i {
            padding: 5px 2px 5px 0 !important;
            font-size: 1.8em !important;
        }
}

#ChatModal .modal-body .box-item-chat {
    padding-top: 60px
}

#ChatModal .modal-body .item-menu {
    display: block;
    position: relative;
    width: 100%;
    height: auto;
    padding: 10px 15px;
}

    #ChatModal .modal-body .item-menu.active,
    #ChatModal .modal-body .item-menu:hover {
        background: #2f80dc
    }

    #ChatModal .modal-body .item-menu img {
        width: 100%;
        height: auto;
        display: inline-block;
    }

#ChatModal .modal-body .titlebox-chatright {
    display: block;
    position: relative;
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 15px;
    text-align: center;
}

#ChatModal .modal-body .menuchat-right {
    display: block;
    position: relative;
    list-style: none;
    margin-left: 0px;
    padding-left:0px
}
    #ChatModal .modal-body .menuchat-right li:hover {
        background-color: #e7eef4
    }
    #ChatModal .modal-body .menuchat-right .uiSwitch {
        height: 24px;
        top: 5px;
    }
        #ChatModal .modal-body .menuchat-right .uiSwitch small {
            width: 24px;
            height: 24px;
        }
        #ChatModal .modal-body .menuchat-right li {
            padding: 10px;
            border-bottom: 1px solid #f5f5f5;
            cursor:pointer;
        }

        #ChatModal .modal-body .menuchat-right li a {
            color: #111
        }

            #ChatModal .modal-body .menuchat-right li a:hover {
                color: #619cde;
                cursor: pointer;
                text-decoration: none;
            }

#ChatModal .modal-body .input-reply {
    width: calc(100% - 100px);
    display: inline-block;
    position: relative;
    float: left;
}

#ChatModal .modal-body .box-iconreply {
    width: 100px;
    display: inline-block;
    position: relative;
    float: right;
    margin-top: 18px;
}

    #ChatModal .modal-body .box-iconreply .item-iconchat {
        display: inline-block;
        position: relative;
        width: auto;
        height: auto;
        float: left;
        margin-right: 10px;
    }

        #ChatModal .modal-body .box-iconreply .item-iconchat img {
            width: 20px;
            height: 20px;
        }

#ChatModal .modal-body .btn-sentmessage {
    font-size: 15px;
    float: left;
    font-family: Arial;
    margin-right: 10px;
    color: #a7a7a7
}

#ChatModal .modal-body .box-cnt-icon {
    display: inline-block;
    position: relative;
    float: right;
    width: auto;
}

.modelchat-box.ng-scope {
    height: auto !important;
}

    .modelchat-box.ng-scope h3 {
        margin: 5px 0;
        font-size: 13px;
    }

.avatar-icon {
    position: relative;
}

.avatar-online-dot {
    position: absolute;
    left: 70px;
    top: -30px;
    overflow: unset !important;
}

    .avatar-online-dot:after {
        content: '';
        font-size: 12px;
        position: absolute;
        background: #02a6fa;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        border-style: solid;
        border-color: white;
        border-width: 2px;
        padding: 2px;
        bottom: -10px;
        right: 15px;
    }

.strick {
    height: 44px !important;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    background-color: #f9f9fd;
}

.row.reply:focus {
    background: #fff !important;
}

#ChatModal .navbar-bottomleft {
    padding: 0
}

    #ChatModal .navbar-bottomleft > li {
        border: none;
        background: transparent;
    }

        #ChatModal .navbar-bottomleft > li i {
            font-size: 24px;
            color: #8c95a3
        }

        #ChatModal .navbar-bottomleft > li > a:hover > i {
            color: #619cde !important;
        }

        #ChatModal .navbar-bottomleft > li > a, #ChatModal .navbar-bottomleft > li > div.btn-group > a {
            padding: 6px 10px 6px 15px
        }

#ChatModal .btn-group.open .dropdown-toggle {
    box-shadow: unset;
}

.strick ul.dropdown-menu {
    bottom: 40px;
    top: auto;
    height: 400px
}

#ChatModal [placeholder]:empty:before {
    content: attr(placeholder);
    color: #888;
}

#ChatModal [placeholder]:empty:focus:before {
    content: "";
}
.chatOnline {
    position: fixed;
    top: 50%;
    right: 5px;
    z-index: 9999;
}
.chatOnline ul li{list-style-type:none;margin:5px;cursor:pointer}
    .chatOnline ul li img {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        object-fit: cover;
        border: 1px solid #ccc;
    }
    .chatOnline .avatar-online-dot {
        left: 24px;
        top: 35px;
    }
.chatOnline span.badge.badge-red.ng-binding.ng-scope {
    animation: abgheartbit 1s ease-out;
    animation-iteration-count: infinite;
}
div.row.sideBar div.row.sideBar-body a.dropdown-toggle {
    opacity:0
}
    div.row.sideBar div.row.sideBar-body a.dropdown-toggle>i{color:#111}
div.row.sideBar div.row.sideBar-body:hover a.dropdown-toggle, div.row.sideBar div.row.sideBar-body:focus a.dropdown-toggle, div.row.sideBar div.row.sideBar-body.true a.dropdown-toggle {
   opacity:1;
}
    div.row.sideBar div.row.sideBar-body:hover a.dropdown-toggle > i, div.row.sideBar div.row.sideBar-body.true a.dropdown-toggle > i {
        color: #fff;
    }
div[group=true] *{overflow:initial!important}
#ChatModal .modal-body div[group=true] span.name-meta.ng-binding, #ChatModal .modal-body div[group=true] .dvch.ng-binding {
    padding-left: 10px !important
}
.sender .cname.ng-binding {
    color: #f5f5f5;
    font-style: italic;
}
.sender .cname.ng-binding {
    color: #f5f5f5;
    font-style: italic;
}
.divmember ul{margin:0;padding:15px}
.divmember ul li {
    list-style-type: none;
    display:inline-block;
}
    .divmember ul li img {
        width: 48px;
        height: 48px;
        object-fit: cover;
        border-radius: 50%;
        display: inline-block;
        margin: 5px;
        border: 1px solid #58b2ee;
    }
    .divmember ul li:hover img {
        -webkit-transform: scale(1.3);
        transform: scale(1.3);
        -webkit-transition: .3s ease-in-out;
        transition: .3s ease-in-out;
    }
    .divmember ul li img.true {
        width: 64px !important;
        height: 64px !important;
        border: 2px solid orange !important;
    }
div#noiDungChat {
    overflow-y: auto;
    height: 50px !important;
}

    div#noiDungChat::-webkit-scrollbar {
        display: none;
    }