﻿

/*  Chat Page   */
.chat-page {
    position: relative;
    float: left;
    width: 100%;
    background: #FFF;
    min-height: calc(100vh - 120px);
}

.chat-left-window {
    float: left;
    width: 250px;
    box-shadow: 0 0 4px #aaa;
    position: relative;
    transition: all 0.6s ease;
}

    .chat-left-window.dpet-hide {
        width: 0px;
        /*overflow:hidden;*/
    }

.chat-middle-window {
    float: left;
    position: relative;
    width: calc(100% - 500px);
    padding: 0px;
    height: calc(100vh - 121px);
    transition: all 0.6s ease;
    /*background: #F1F1F1;*/
    background-image: linear-gradient(to top, #e1fada 0%, #eeffea 100%);
    overflow-y: auto;
}

    .chat-middle-window.middle-full {
        width: calc(100% - 250px);
    }

.chat-right-window {
    float: right;
    width: 250px;
    border-left: 1px solid #DDD;
}

.dept-trigger {
    position: absolute;
    font-size: 18px;
    padding: 9px 0px;
    color: #FFF;
    right: 0px;
    top: 0;
    cursor: pointer;
    background: #4a994a;
    z-index: 3;
    height: 47px;
    width: 45px;
    text-align: center;
    transition: all 0.6s ease;
}

.chat-left-window.dpet-hide .dept-trigger {
    right: -45px;
}

.chat-left-window .dept-trigger .fa-users {
    display: none;
}

.chat-left-window.dpet-hide .dept-trigger .fa-users {
    display: block;
}

.chat-left-window.dpet-hide .dept-trigger .fa-chevron-left {
    display: none;
}

.chat-users-list, .chat-depatments-list {
    width: 100%;
    position: relative;
    float: left;
    /*padding: 10px;*/
    height: calc(100vh - 168px);
    overflow-y: auto;
}

.chat-users-list {
    height: calc(100vh - 234px);
    background: #F1F1F1;
}

.chat-department-header {
    padding: 10px 10px;
    background: linear-gradient(to bottom, #4a994a 0%, #65df65 100%);
    color: #FFF;
    font-weight: 600;
    font-size: 18px;
}

.chat-user-header {
    float: left;
    width: 100%;
    background: linear-gradient(to bottom, #0087BF -59%, #5CAA47 100%);
    border-bottom: 1px solid #DDD;
    /*border-top-left-radius: 4px;
    border-top-right-radius: 4px;*/
    padding: 5px;
    box-shadow: 2px 2px 3px #ddd;
    color: #FFF;
}

.flter-label {
    padding: 5px;
    float: left;
    width: 100%;
    /*background: #7aa428;*/
    background: rgba(0,0,0,0.1);
    color: #5CAA47;
    font-weight: bold;
    position: relative;
}

.chat-filter-clear {
    position: absolute;
    top: 0px;
    right: 1px;
    color: #ff0000;
    cursor: pointer;
    z-index: 11;
    height: 100%;
    background: #CCC;
    line-height: 31px;
    padding: 0 5px;
}



.chat-count, .dept-count {
    background: #4cb050;
    padding: 2px 5px;
    color: #FFF;
    border-radius: 4px;
    font-size: 12px;
}

.user-offline {
    /*background: #E48444;#ffbd2f*/
    background: #ffbd2f;
}

.chat-count:empty, .dept-count:empty {
    display: none;
}


.chat-user, .dept-user {
    float: left;
    width: 100%;
    padding: 6px 40px 6px 6px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: relative;
    cursor: pointer;
    background: rgba(0,0,0,0);
    transition: all 0.6s ease;
    white-space: nowrap;
}

    .chat-user:hover, .dept-user:hover {
        background: rgba(0,0,0,0.1);
    }

    .chat-user i {
        position: absolute;
        top: 14px;
        right: 10px;
    }

.user-label, .dept-label {
    font-size: 14px;
    margin-right: 10px;
    color: #777;
}

.in-active {
    color: #999;
}



.chat-msg-box {
    background: #FFF;
    width: 300px;
    border-radius: 10px;
    /*overflow: hidden;*/
    position: absolute;
    right: 20px;
    bottom: 10px;
    box-shadow: 0 8px 26px 0 rgba(0,18,46,0.16);
    z-index: 9;
}

    .chat-msg-box.chat-msg-box-left {
        left: 10px;
        right: auto;
    }

.chat-msg-box-header {
    float: left;
    width: 100%;
    background: linear-gradient(to bottom, #0087BF -59%, #5CAA47 100%);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    padding: 10px 5px;
    position: relative;
}

/*.chat-msg-box-header::after {
        content: '';
        position: absolute;
        width: 100%;
        bottom: -8px;
        left: 0px;
        border-image-source: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzNzIgMTUiPgogIDxwYXRoIGQ9Ik0zNDkuOCAxLjRDMzM0LjUuNCAzMTguNSAwIDMwMiAwaC0yLjVjLTkuMSAwLTE4LjQuMS0yNy44LjQtMzQuNSAxLTY4LjMgMy0xMDIuMyA0LjctMTQgLjUtMjggMS4yLTQxLjUgMS42Qzg0IDcuNyA0MS42IDUuMyAwIDIuMnY4LjRjNDEuNiAzIDg0IDUuMyAxMjguMiA0LjEgMTMuNS0uNCAyNy41LTEuMSA0MS41LTEuNiAzMy45LTEuNyA2Ny44LTMuNiAxMDIuMy00LjcgOS40LS4zIDE4LjctLjQgMjcuOC0uNGgyLjVjMTYuNSAwIDMyLjQuNCA0Ny44IDEuNCA4LjQuMyAxNS42LjcgMjIgMS4yVjIuMmMtNi41LS41LTEzLjgtLjUtMjIuMy0uOHoiIGZpbGw9IiNmZmYiLz4KPC9zdmc+Cg==);
        border-image-slice: 0 0 100%;
        border-image-width: 0 0 15px;
        border-image-repeat: stretch stretch;
        border-bottom: solid 15px;
        border-top: 0;
        border-left: 0;
        border-right: 0;
    }*/

.chat-msg-box.minimize-chat .chat-msg-box-header::after {
    display: none;
}

.chat-msg-box-icon {
    float: left;
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

    .chat-msg-box-icon img {
        width: 100%;
        height: 30px;
        border-radius: 100%;
    }

.chat-msg-box-name {
    float: left;
    width: calc(100% - 87px);
}

.chat-msg-box .user-name {
    color: #FFF;
    padding-top: 5px;
}

.chat-msg-box .user-status {
    color: #FFF;
}

.user-name {
    font-weight: 600;
    color: #FFF;
}

.user-status {
    color: #ccc;
    font-size: 12px;
}

.chat-msg-box-minimize {
    float: left;
    width: 25px;
    height: 25px;
    padding: 5px 0 0 0;
    color: #FFF;
    font-size: 15px;
    cursor: pointer;
}

.chat-msg-box-close {
    float: right;
    width: 20px;
    height: 25px;
    padding: 1px 0 0 0;
    font-size: 16px;
    cursor: pointer;
}

.chat-messages {
    width: 100%;
    float: left;
    height: 300px;
    padding: 10px 5px 20px 5px;
    overflow-x: auto;
}

.minimize-chat .chat-messages {
    height: 0px;
    overflow: hidden;
    padding: 0;
}

.chat-msg-left-text {
    width: 80%;
    float: left;
    clear: both;
    padding: 5px;
}

.chat-user-left-icon, .chat-dept-left-icon {
    width: 40px;
    height: 40px;
    margin-right: 5px;
}

    .chat-user-left-icon img, .chat-dept-left-icon img {
        width: 28px;
        height: 28px;
        border-radius: 100%;
    }

.chat-text-left {
    float: left;
    min-width: 50px;
    text-align: left;
    padding: 5px 10px;
    border-radius: 10px;
    color: #000;
    background: linear-gradient(to right, #ffcd70 0%, #feebc7 100%);
    word-wrap: break-word;
    max-width: 100%;
}

.chat-user-left {
    width: 100%;
    float: left;
    margin: 0 0 10px 0;
    white-space: nowrap;
    line-height: 38px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-msg-right-text {
    width: 80%;
    float: right;
    clear: both;
    padding: 5px;
}

.chat-user-right {
    width: 100%;
    float: right;
    margin: 0 0 10px 0;
    white-space: nowrap;
    line-height: 38px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right;
}

.chat-user-right-icon {
    margin-right: 5px;
    width: 40px;
    height: 40px;
}

    .chat-user-right-icon img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        overflow: hidden;
    }

.chat-text-right {
    float: right;
    min-width: 50px;
    text-align: right;
    padding: 7px;
    border-radius: 10px 0 10px 10px;
    color: #FFF;
    background: #5CAA47;
    max-width: 100%;
    word-wrap: break-word;
}


.chat-msg-box-controls {
    float: left;
    width: 100%;
    border-top: 1px solid rgba(0,0,0,0.1);
    position: relative;
    transition: all 0.6s ease;
}

.minimize-chat .chat-msg-box-controls {
    height: 0;
    overflow: hidden;
    border-top: 0px solid rgba(0,0,0,0.1);
}

.chat-msg-box .fa-chevron-up {
    display: none;
}

.chat-msg-box.minimize-chat .fa-chevron-down {
    display: none;
}

.chat-msg-box.minimize-chat .fa-chevron-up {
    display: block;
    padding-top: 5px;
}

.chat-text-area {
    float: left;
    width: 100%;
    /*height: 70px;*/
    height: 55px;
    border: none;
    padding: 5px 40px 5px 5px;
    resize: none;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

.chat-send-btn {
    position: absolute;
    float: left;
    border: none;
    color: #FFF;
    right: -6px;
    top: 0px;
    background: none;
    outline: none !important;
    cursor: pointer;
}

    .chat-send-btn span:hover {
        background: #8836fa;
        transition: all 0.3s ease;
    }

    .chat-send-btn span {
        float: left;
        padding: 8px 0px 0 5px;
        width: 40px;
        height: 40px;
        margin: 5px;
        border-radius: 100%;
        background: #5CAA47;
        text-align: center;
        box-shadow: rgba(75, 47, 227, 0.2);
    }

    /* .chat-send-btn span.zoomimg {
            position: absolute;
            right: 11px;
            padding: 0;
            width: 2px;
            height: 2px;
            margin: 25px;
            overflow: hidden;
            border-radius: 100%;
            background: rgba(255,255,255,1);
            text-align: center;
            box-shadow: 0 0 20px rgba(75, 47, 227, 0.5);
            transition: all 0.2s ease;
            top: 2px;
        }*/

    .chat-send-btn:hover span.zoomimg {
        padding: 9px 0px 0 3px;
        width: 40px;
        height: 40px;
        margin: 4px 0 0 0;
        background: rgba(255,255,255,1);
    }

    .chat-send-btn img {
        width: 24px;
    }


.chat-alert {
    position: fixed;
    bottom: 0px;
    z-index: 99;
    right: 30px;
}

    .chat-alert.open {
        display: block;
    }

.chat-alert-inner {
    width: 500px;
    position: relative;
    text-overflow: ellipsis;
    background: linear-gradient(to bottom, #0087BF -59%, #5CAA47 100%);
    margin-bottom: 10px;
    /*border: 1px solid #8836fa;*/
    box-shadow: 0 0 8px #ddd;
    padding: 20px 30px 20px 10px;
    color: #fff;
    border-radius: 5px;
}

    .chat-alert-inner img {
        border-radius: 30px;
        margin: 0 auto;
        display: block;
    }

.chat-alert-user {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
    margin-bottom: 5px;
}

.chat-alert-msg {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
    white-space: nowrap;
    /*background:#9966e2;*/
    padding: 0 5px;
    border-radius: 3px;
}

.chat-alert-close {
    position: absolute;
    top: 6px;
    right: 12px;
    color: #fff;
    cursor: pointer;
    z-index: 11;
}

i.active {
    color: #1BA400;
}

.emojionearea.chat-wall-text-area {
    width: calc(100% - 63px);
    float: left;
    height: 55px;
    position: relative;
}

    .emojionearea.chat-wall-text-area::before {
        position: absolute;
        content: "";
        top: 0;
        left: 36px;
        width: 1px;
        height: 100%;
        background: #CCC;
    }
/* emoji Edit*/
.emojionearea .emojionearea-editor {
    min-height: 50px;
    height: 50px;
    padding: 6px 27px 6px 78px;
    overflow: hidden;
    word-wrap: break-word;
}

.chat-msg-box .emojionearea .emojionearea-editor {
    padding: 6px 27px 6px 45px;
}

.chat-msg-box .uesr-chat-attachment {
    top: 21px;
}

.emojionearea .emojionearea-button {
    left: 3px;
    top: 17px;
    width: 24px;
    height: 24px;
}


/*   chat wall   */
.chat-wall-header {
    float: left;
    width: 100%;
    padding: 0px;
}

.chat-wall-msg-title {
    float: left;
    width: 100%;
    padding: 10px 30px;
    font-size: 20px;
    background: rgba(0,0,0,0.1);
    /*text-transform: uppercase;*/
    color: #0087BF;
    transition: all 0.6s ease;
}

.middle-full .chat-wall-msg-title {
    padding: 10px 0px 10px 80px;
}

.chat-wall-controls {
    float: left;
    width: 100%;
    padding: 10px 15px 10px 30px;
    position: relative;
}

.chat-wall-text-area {
    float: left;
    width: calc(100% - 50px);
}

.wall-send-btn {
    float: right;
    width: 63px;
    height: 55px;
    border-radius: 0 4px 4px 0px;
    border: none;
    background: #5CAA47;
    cursor: pointer;
}

    .wall-send-btn img {
        width: 24px;
    }

    .wall-send-btn:hover {
        background: #0087BF;
        transition: all 0.3s ease;
    }

.chat-wall-msg-content {
    float: left;
    width: 100%;
    height: calc(100vh - 246px);
    overflow-y: auto;
    margin-top: 0px;
    padding: 15px 40px;
    /*background: #FFF;
    border-radius: 6px;
    box-shadow: 0 0 5px #ccc;*/
}

.chat-wall-left-msg, .chat-wall-right-msg {
    width: 100%;
    margin: 0 0 10px 0;
    white-space: nowrap;
    line-height: 38px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-wall-left-msg {
    float: left;
}

.chat-wall-right-msg {
    float: right;
    text-align: right;
}

.chat-wall-left-msg-text, .chat-wall-right-msg-text {
    width: 80%;
    clear: both;
    padding: 5px;
}

.chat-wall-left-msg-text {
    float: left;
}

.chat-wall-right-msg-text {
    float: right;
}

.chat-wall-user-left, .chat-wall-user-right {
    width: 100%;
    margin: 0 0 10px 0;
    white-space: nowrap;
    line-height: 38px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-wall-user-left {
    float: left;
}

.chat-wall-user-right {
    float: right;
    text-align: right;
}

.chat-wall-user-left-icon, .chat-wall-user-right-icon {
    margin-right: 5px;
    width: 40px;
    height: 40px;
}

.chat-wall-user-right-icon {
    text-align: right;
}

    .chat-wall-user-left-icon img, .chat-wall-user-right-icon img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        overflow: hidden;
    }

.chat-wall-text-left, .chat-wall-text-right {
    float: left;
    min-width: 50px;
    padding: 7px;
    border-radius: 10px 0 10px 10px;
    color: #fff;
    background: #0087BF;
    max-width: 100%;
    word-wrap: break-word;
    box-shadow: 0 0 5px #bbb;
}

.chat-wall-text-right {
    float: right;
    background: #5CAA47;
}

.wall-chat-attachment {
    position: absolute;
    top: 26px;
    left: 80px;
    z-index: 2;
    color: #999;
    cursor: pointer;
    font-size: 17px;
}

    .wall-chat-attachment::after {
        content: "";
        background: rgba(0,0,0,0.2);
        width: 1px;
        height: 53px;
        right: -12px;
        top: -15px;
        position: absolute;
    }
/*.emojionearea-editor{position:relative;}
.emojionearea-editor::after{
    content:"";
    background:rgba(0,0,0,0.2);
    width:1px;
    height:69px;
    left:37px;
    top:-4px;
    position:absolute;
}*/

.wall-chat-border {
    position: relative;
}

    .wall-chat-border::after {
        content: "";
        background: rgba(0,0,0,0.2);
        width: 5px;
        height: 52px;
        left: -24px;
        top: -16px;
        position: absolute;
    }


.uesr-chat-attachment, .dept-chat-attachment {
    position: absolute;
    top: 20px;
    left: 31px;
    z-index: 25;
    color: #999;
    cursor: pointer;
}

.search-users .form-control {
    padding-left: 20px;
}
