﻿.lyear-chat-room {
    position: relative;
    background-color: #fff;
    height: 100%;
}

.lyear-chat-side {
    position: fixed;
    height: 100%;
    width: 240px;
    z-index: 3;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-transition: .3s ease;
    transition: .3s ease;
    -webkit-box-shadow: 0px 0px 5px rgba(0,0,0,0.08);
    -moz-box-shadow: 0px 0px 5px rgba(0,0,0,0.08);
    box-shadow: 0px 0px 5px rgba(0,0,0,0.08);
}

    .lyear-chat-side.lyear-chat-user-open {
        left: 0 !important;
    }

.lyear-chat-search .form-control {
    border: 0px;
    height: 36px;
    -webkit-box-shadow: none;
    border-radius: 0px;
    border-bottom: 1px solid #f6f6f7;
    box-shadow: none;
}

.lyear-chat-search .has-feedback {
    position: relative;
}

    .lyear-chat-search .has-feedback .form-control {
        padding-left: 38px;
        padding-right: 12px;
    }

    .lyear-chat-search .has-feedback .mdi {
        position: absolute;
        left: 0;
        top: 0;
        width: 36px;
        height: 36px;
        line-height: 36px;
        text-align: center;
        z-index: 4;
        color: #c4c4c4;
    }
/* 用户列表 */
.lyear-chat-sidebar-scroll {
    height: -moz-calc(100% - 97px);
    height: -webkit-calc(100% - 97px);
    height: calc(100% - 97px);
    position: relative;
    background-color: #fff;
}

.lyear-chat-users {
    border-radius: 0;
    border: none;
    box-shadow: none;
    margin: 0px;
}

    .lyear-chat-users .list-group-item {
        margin-bottom: 0px;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid #f6f6f7;
        -webkit-transition: all .2s;
        -khtml-transition: all .2s;
        -o-transition: all .2s;
        transition: all .2s
    }

        .lyear-chat-users .list-group-item .list-chat-user-name {
            font-size: 14px;
            margin-bottom: 0px;
            color: #4d5259;
        }

        .lyear-chat-users .list-group-item .list-chat-user-text {
            white-space: nowrap;
            text-overflow: ellipsis;
            overflow: hidden;
            font-size: 12px;
            height: 18px;
            color: orangered;
            margin-bottom: 0px;
        }

        .lyear-chat-users .list-group-item + .list-group-item.active {
            margin-top: 0px;
        }

.chat-user-avatar {
    width: 40px;
    height: 40px;
}

.lyear-chat-users .list-group-item.active {
    background-color: #f9fafb;
    border-color: #f9fafb;
    z-index: 0;
}

.list-chat-user-info {
    height: 21px;
    overflow: hidden;
}

    .list-chat-user-info time {
        color: #8b95a5;
        margin-right: 5px;
        font-size: 12px;
    }

    .list-chat-user-info .badge {
        -webkit-border-radius: 10px;
        border-radius: 10px;
        padding: .25em .5em;
        color: #fff;
        background-color: var(--bs-danger);
    }
/*聊天右侧*/
#lyear-chat-content {
    height: 100%;
    padding-left: 240px;
}

#lyear-chat-header {
    height: 61px;
    padding: 10px 20px;
    border-bottom: 1px solid #f6f6f7;
    background-color: #f9fafb;
}

.lyear-chat-menu {
    position: relative;
    list-style: none;
    margin: 0px;
    padding: 0px;
}

.lyear-chat-my-info .chat-user-avatar,
.lyear-chat-user-info .chat-user-avatar {
    float: left;
}

.lyear-chat-user-wrap,
.lyear-chat-my-wrap {
    float: left;
}

.lyear-chat-my-box {
    padding: 10px;
    background-color: #fff;
    border-bottom: 1px solid #f6f6f7;
}

    .lyear-chat-my-box .dropdown,
    .lyear-chat-menu .dropdown {
        padding-top: 10px;
    }
/*清屏和历史消息*/
.lyear-chat-tools a {
    font-size: 22px;
    color: #868e96;
    padding: 0 5px;
    line-height: 40px;
}

    .lyear-chat-tools a:last-child {
        padding-right: 0px;
    }
/*聊天主要内容区域*/
.lyear-chat-container {
    position: relative;
    height: -moz-calc(100% - 61px);
    height: -webkit-calc(100% - 61px);
    height: calc(100% - 61px);
}
/*聊天内容输入区域*/
#lyear-chat-footer {
    position: absolute;
    z-index: 2;
    bottom: 0px;
    left: 0px;
    right: 0px;
    background-color: #f9fafb;
}

    #lyear-chat-footer .lyear-chat-expression {
        list-style: none;
        padding: 0px;
        margin: 0px;
        left: 13px;
        top: 10px;
        position: absolute;
        z-index: 2;
    }

        #lyear-chat-footer .lyear-chat-expression i {
            font-size: 20px;
            color: #999;
            -webkit-transition: all .2s;
            -khtml-transition: all .2s;
            -o-transition: all .2s;
            transition: all .2s
        }

.lyear-chat-expression .emoj-box {
    position: relative;
}
/*表情*/
#facebox {
    width: 280px;
    background-color: #fff;
    padding: 10px;
    -webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.075);
    -khtml-box-shadow: 0 0 4px rgba(0, 0, 0, 0.075);
    -moz-box-shadow: 0 0 4px rgba(0, 0, 0, 0.075);
    -ms-box-shadow: 0 0 4px rgba(0, 0, 0, 0.075);
    -o-box-shadow: 0 0 4px rgba(0, 0, 0, 0.075);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.075);
}

    #facebox img {
        border: 1px solid #fff;
    }

        #facebox img:hover {
            border-color: #1565c0;
            cursor: pointer;
        }
/**/
#lyear-chat-comment {
}

.lyear-chat-wrapper {
    position: relative;
    height: -moz-calc(100% - 58px);
    height: -webkit-calc(100% - 58px);
    height: calc(100% - 58px);
}

.lyear-chat-send-box {
    padding-left: 40px;
}

.lyear-chat-message-list {
    padding: 20px;
}

.lyear-chat-message {
    margin-bottom: 20px;
    width: 100%;
    display: table;
    overflow: hidden;
}

    .lyear-chat-message:before {
        content: " ";
        display: block;
    }

    .lyear-chat-message:last-of-type {
        margin-bottom: 0;
    }

.lyear-chat-wrapper .chat-user-avatar {
    float: left;
}

.lyear-chat-message .lyear-chat-message-wrapper {
    max-width: 70%;
    display: table;
    margin: 0 15px;
    position: relative
}

    .lyear-chat-message .lyear-chat-message-wrapper:before {
        content: " ";
        display: block;
        width: 0;
        height: 0;
        border: 5px solid transparent;
        top: 5px;
        position: absolute;
        z-index: 2
    }

    .lyear-chat-message .lyear-chat-message-wrapper p {
        padding: 8px;
        border-top: 1px solid;
        font-weight: 200;
        margin: 0px;
        line-height: 1.5em;
    }

        .lyear-chat-message .lyear-chat-message-wrapper p:first-of-type {
            border-top: 0 !important
        }

.lyear-chat-message.lyear-chat-message-recipient .lyear-chat-message-content,
.lyear-chat-message.lyear-chat-message-recipient .lyear-chat-message-wrapper {
    float: left
}

.lyear-chat-message.lyear-chat-message-sender .lyear-chat-message-content,
.lyear-chat-message.lyear-chat-message-sender .lyear-chat-message-wrapper,
.lyear-chat-message.lyear-chat-message-sender img.chat-user-avatar {
    float: right
}

.lyear-chat-message.lyear-chat-message-recipient .lyear-chat-message-content {
    background-color: var(--bs-gray-400);
}

.lyear-chat-message.lyear-chat-message-recipient .lyear-chat-message-wrapper:before {
    left: -10px;
    border-right-color: var(--bs-gray-400)
}

.lyear-chat-message.lyear-chat-message-recipient p {
    border: none;
    color: green;
}

.lyear-chat-message.lyear-chat-message-sender .lyear-chat-message-content {
    background-color: var(--bs-info)
}

.lyear-chat-message.lyear-chat-message-sender .lyear-chat-message-wrapper:before {
    right: -10px;
    border-left-color: var(--bs-info)
}

.lyear-chat-message.lyear-chat-message-sender p {
    border: none;
    color: #fff;
}

.lyear-chat-message .lyear-chat-message-content {
    width: 100%;
    overflow: hidden;
    -webkit-border-radius: 2px;
    border-radius: 2px;
}

    .lyear-chat-message .lyear-chat-message-content:before {
        content: " ";
        display: block
    }

    .lyear-chat-message .lyear-chat-message-content img {
        /*max-width: 50%;*/ /*base64图片外的p元素不会自适应宽度*/
    }

.lyear-chat-message .lyear-message-details {
    clear: both;
    width: 100%;
    display: table;
    overflow: hidden
}

    .lyear-chat-message .lyear-message-details:before {
        content: " ";
        display: block
    }

    .lyear-chat-message .lyear-message-details span.chat-today {
        margin-right: 4px;
        color: #868e96
    }
/*历史消息*/
#historyModal .modal-body {
    padding: 0px;
}

.history-messages-box {
    position: relative;
    height: 320px;
    overflow-y: auto;
}

.history-messages-pages {
    height: 32px;
    border-top: 1px solid #f6f6f7;
}

    .history-messages-pages .pagination {
        margin: 0px;
    }

.history-message-sender small {
    color: var(--bs-info);
}

.history-message-recipient small {
    color: var(--bs-success);
}

.history-message-item {
    padding: 5px 15px;
}

    .history-message-item p {
        font-size: 14px;
        margin: 0px;
    }

    .history-message-item.active {
        background-color: #FFEDC4;
    }

.pagination.no-border > li a, .pagination.no-border > li span {
    border: none;
}
/*用户状态*/
[class*='user-status-'] {
    position: relative;
}

    [class*='user-status-']::after {
        content: '';
        position: absolute;
        right: 10px;
        bottom: 0;
        display: inline-block;
        width: 10px;
        height: 10px;
        border-radius: 100%;
        border: 2px solid #fff;
        background-color: var(--bs-success);
    }

.user-status-success::after {
    background-color: var(--bs-success);
}

.user-status-danger::after {
    background-color: var(--bs-danger);
}

.user-status-secondary::after {
    background-color: var(--bs-secondary);
}
/* 用户签名 */
.edit-autograph {
    height: 18px;
    border: none;
    line-height: 18px;
    padding: 0px;
    margin: 0px;
}

    .edit-autograph:focus {
        border: none;
        outline: none;
    }
/* 打开聊天侧边栏按钮 */
.lyear-chat-toggler {
    display: none;
    background-color: #fff;
    height: 48px;
    width: 24px;
    border-top-right-radius: 48px;
    border-bottom-right-radius: 48px;
    border: 1px solid #ebebeb;
    border-left: none;
    position: absolute;
    top: 50%;
    right: -24px;
    margin-top: -24px;
    font-family: "Material Design Icons";
    padding-left: 2px;
    color: #616a78;
    cursor: pointer;
    -webkit-box-shadow: 3px 0px 9px rgba(0, 0, 0, 0.075);
    box-shadow: 3px 0px 9px rgba(0, 0, 0, 0.075);
}

    .lyear-chat-toggler:after {
        content: "\f142";
    }
/* 响应式处理 */
@media (max-width: 800px) {
    .lyear-chat-side {
        left: -240px;
    }

    #lyear-chat-content {
        padding-left: 0px;
    }

    .lyear-chat-toggler {
        display: inline-block;
    }
}
