html,
body {
    height: 100%;
}

#container,
#main-content {
    height: 100%;
}

.chat-wrapper {
    padding-top: 10px;
    padding-bottom: 0px;
}

.chat-row,
.chat-col {
    height: 100%;
}

.chat-col {
    padding-right: 2px;
    padding-left: 2px;
    overflow: hidden;
}

.chat-col-wrapper {
    height: 100%;
    background: #fff;
    overflow: hidden;
}

.chat-col-title {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.chat-col-content {
    padding: 15px;
}

#chat-users-tab {
    border: none;
    margin-bottom: -10px;
}

#chat-users-tab.nav-tabs.nav-justified>li>a {
    border: none;
}

#chat-users-tab.nav-tabs>li.active>a,
#chat-users-tab.nav-tabs>li.active>a:hover,
#chat-users-tab.nav-tabs>li.active>a:focus {
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 2px solid #428bca;
}

#user-info-tab {
    border: none;
    margin-bottom: -10px;
}

#user-info-tab.nav-tabs.nav-justified>li>a {
    border: none;
}

#user-info-tab.nav-tabs>li.active>a,
#user-info-tab.nav-tabs>li.active>a:hover,
#user-info-tab.nav-tabs>li.active>a:focus {
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 2px solid #428bca;
}

.chating-title {
    line-height: 1.428571;
    padding: 12px 15px 0;
    display: inline-block;
    color: #555;
    cursor: default;
}

.user-list,
.robot-list {
    padding: 0;
    position: relative;
}

#search-container {
    display: none
}

#search-container span {
    cursor: pointer;
}

.chatings-item,
.contacts-item,
.robot-item {
    border-bottom: 1px solid #eee;
    padding: 10px 15px;
    cursor: pointer;
    vertical-align: middle;
    position: relative;
}

.chatings-item .item-avatar,
.chatings-item .item-name,
.contacts-item .item-avatar,
.contacts-item .item-name,
.robot-item .item-avatar,
.robot-item .item-name,
.robot-item .item-action {
    display: inline-block;
    vertical-align: middle;
}

.contacts-item.active,
.chatings-item.active,
.robot-item.active {
    background: #D7ECFE;
}

.contacts-item .item-name,
.chatings-item .item-name {
    width: 75%;
    padding-left: 5px;
    overflow: hidden;
}

.contacts-item .text-hint,
.chatings-item .text-hint {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.robot-item .item-name {
    width: 56%;
    padding-left: 5px;
}

.robot-item .item-action button {
    font-size: 12px;
    color: #797979;
}

.has-msg {
    padding: 2px 4px;
    display: none;
    min-width: 0;
    background-color: #e61f1f;
    position: absolute;
    top: 4%;
    right: 5px;
    font-size: 12px;
    font-weight: 100;
}

.has-msg.hidden {
    display: none;
}

.has-msg.show {
    display: inline-block;
}

.chat-input-wapper {
    border-top: 1px solid #eee;
    padding: 15px 0px 15px;
}

.chat-input-wapper .input-files i:nth-child(2) {
    margin-left: 10px;
}

.chat-input-wapper .input-textarea textarea {
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    outline: none;
    resize: none;
}

.msg-item {
    padding-top: 10px;
}

.msg-item .msg-user,
.msg-item .msg-content {
    display: inline-block;
    vertical-align: text-top;
}

.msg-item .msg-content {
    width: 90%;
    padding-left: 10px;
    position: relative;
}

.msg-item .msg-content .triangle {
    position: absolute;
    top: 0%;
    margin-top: 6px;
    left: 4px;
    display: block;
    width: 0;
    height: 0;
    overflow: hidden;
    line-height: 0;
    font-size: 0;
    border-bottom: 6px solid #FFF;
    border-top: 6px solid #FFF;
    border-left: none;
    border-right: 6px solid #eee;
}

.msg-item .msg-content .msg-main {
    max-width: 80%;
    word-wrap: break-word;
    float: left;
    display: inline-block;
    *display: inline;
    zoom: 1;
}

.msg-main .msg-main-content {
    width: 100%;
    vertical-align: middle;
    display: inline-block;
    padding: 5px 10px;
    border: 1px solid #eee;
    background: #eee;
    border-radius: 5px;
    background-color: #eee;
    background-image: -webkit-gradient(linear, left top, left bottom, from(#eee), to(#eee));
    background-image: -webkit-linear-gradient(top, #eee, #eee);
    background-image: -moz-linear-gradient(center top, #eee, #eee);
    background-image: linear-gradient(top, #eee, #eee);
}

.msg-item .msg-content.fr {
    padding-left: 0px;
    padding-right: 10px;
}

.msg-item .msg-content.fr .triangle {
    left: auto;
    right: 4px;
    border-bottom: 6px solid #FFF;
    border-top: 6px solid #FFF;
    border-right: none;
    border-left: 6px solid #eee;
}

.msg-item .msg-content.fr .msg-main {
    float: right;
    text-align: left;
    word-wrap: break-word;
    max-width: 80%;
}

.msg-main img {
    width: 150px;
}

.file-input,
.image-input {
    position: relative;
    cursor: pointer;
    display: inline-block;
    *display: inline;
    *zoom: 1;
}

.file-input:hover,
.image-input:hover {
    text-decoration: none;
}

.app-voice {
    cursor: pointer;
}

.app-voice-pause,
.app-voice-play {
    width: 46px;
    height: 18px;
    background-repeat: no-repeat;
    background-image: url(../img/voice.png);
    background-size: 18px auto;
}

.app-voice-time {
    vertical-align: middle;
}

.app-voice .app-voice-pause {
    /*从未播放*/
    background-position: 0px 0;
}

.app-voice .app-voice-play {
    /*播放中（不需要过渡动画）*/
    background-position: 0px -9px;
    -webkit-animation: voiceplay 1s infinite step-start;
    -moz-animation: voiceplay 1s infinite step-start;
    -o-animation: voiceplay 1s infinite step-start;
    animation: voiceplay 1s infinite step-start;
}

@-webkit-keyframes voiceplay {
    0%,
    100% {
        background-position: 0px 0px;
    }
    33.333333% {
        background-position: 4px 0px;
    }
    66.666666% {
        background-position: 9px 0px;
    }
}

.sortable-ghost {
    border: 1px solid #5cb85c !important;
}

.sortable-chosen {
    border: 1px dashed #337ab7 !important;
}

.sortable-drag {
    border: 1px solid #d9534f !important;
}