.box.box-danger {
    border-top-color: #dd4b39;
}
.box {
    position: relative;
    border-radius: 3px;
    background: #ffffff;
    border-top: 3px solid #d2d6de;
    margin-bottom: 20px;
    width: 100%;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}
.direct-chat {
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 0 !important;
    -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
    box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
}
.box-header.with-border {
    border-bottom: 1px solid #f4f4f4;
}
.box-header {
    color: #444;
    display: block;
    padding: 10px;
    position: relative;
}
.box-header:before, .box-body:before, .box-footer:before, .box-header:after, .box-body:after, .box-footer:after {
    content: " ";
    display: table;
}
.box-header > .fa, .box-header > .glyphicon, .box-header > .ion, .box-header .box-title {
    display: inline-block;
    font-size: 15px;
    margin: 0;
    line-height: 1;
}
.box-header > .box-tools {
    position: absolute;
    right: 10px;
    top: 5px;
}
.direct-chat .box-body {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
    position: relative;
    overflow-x: hidden;
    padding: 0;
}
.direct-chat .box-body {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
    position: relative;
    overflow-x: hidden;
    padding: 0;
}
.direct-chat-messages, .direct-chat-contacts {
    -webkit-transition: -webkit-transform 0.5s ease-in-out;
    -moz-transition: -moz-transform 0.5s ease-in-out;
    -o-transition: -o-transform 0.5s ease-in-out;
    transition: transform 0.5s ease-in-out;
}
.direct-chat-messages {
    -webkit-transform: translate(0, 0);
    -ms-transform: translate(0, 0);
    -o-transform: translate(0, 0);
    transform: translate(0, 0);
    padding: 10px;
    height: 250px;
    overflow: auto;
}
.direct-chat-msg {
    margin-bottom: 10px;
}
.direct-chat-msg, .direct-chat-text {
    display: block;
}
.direct-chat-msg:before, .direct-chat-msg:after {
    content: " ";
    display: table;
}
.direct-chat-info {
    display: block;
    margin-bottom: 2px;
    font-size: 12px;
}
.box-footer {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 3px;
    border-bottom-left-radius: 3px;
    border-top: 1px solid #f4f4f4;
    padding: 10px;
    background-color: #ffffff;
}
.pull-left {
    float: left !important;
}
.pull-right {
    float: right !important;
}
.direct-chat-name {
    font-weight: 600;
}
.direct-chat-timestamp {
    color: #999;
    font-size: 10px;
}
.direct-chat-img {
    border-radius: 50%;
    float: left;
    width: 40px;
    height: 40px;
}
.direct-chat-text {
    border-radius: 5px;
    position: relative;
    padding: 5px 10px;
    background: #d2d6de;
    border: 1px solid #d2d6de;
    margin: 5px 0 0 50px;
    color: #444444;
    font-size: 14px;
}
.direct-chat-text:before {
    border-width: 6px;
    margin-top: -6px;
}
.direct-chat-text:after, .direct-chat-text:before {
    position: absolute;
    right: 100%;
    top: 15px;
    border: solid transparent;
    border-right-color: #d2d6de;
    content: ' ';
    height: 0;
    width: 0;
    pointer-events: none;
    display: none;
}
.direct-chat-danger .right > .direct-chat-text {
    background: #dd4b39;
    border-color: #dd4b39;
    color: #ffffff;
    font-size: 14px;
}
.right .direct-chat-text {
    margin-right: 50px;
    margin-left: 0;
}
.direct-chat-danger .right > .direct-chat-text:after, .direct-chat-danger .right > .direct-chat-text:before {
    border-left-color: #dd4b39;
}
.right .direct-chat-text:after, .right .direct-chat-text:before {
    right: auto;
    left: 100%;
    border-right-color: transparent;
    border-left-color: #d2d6de;
}
.right .direct-chat-img {
    float: right;
}
.direct-chat-msg:after {
    clear: both;
}
.direct-chat-msg:before, .direct-chat-msg:after {
    content: " ";
    display: table;
}
#chat-status {
    font-size: 11px;
    padding-left: 10px;
}
#chat {
    position: fixed;
    bottom: -5px;
    max-width: 300px;
    right: 95px;
    z-index: 1000;
    display: none;
}
#chat-upload-file {
	display: none;
}
#user-message {
    resize: none;
    max-height: 34px;
}
.chat-img {
	width: 120px;
}
.chat-notifi-top ul {
    max-height: 300px;
    height: 300px;
    width: 450px;
    min-width: 300px;
    overflow: auto;
}
.chat-notifi-top > a > b {
    display: none;
}
.chat-notifi-top > .dropdown-menu {
    padding-top: 0;
    padding-bottom: 0;
    border-radius: 0;
}
/*.chat-notifi-top > .dropdown-menu:after, .dropdown-menu:before {
    position: absolute;
    right: 100%;
    top: 24px;
    border: solid transparent 5px;
    border-right-color: #ffffff;
    content: ' ';
    height: 0;
    width: 0;
    pointer-events: none;
}*/
.chat-notifi-top > .dropdown-menu li {
    width: 100%;
    float: left;
    padding: 5px;
    border-bottom: 1px solid #eeeeee;
}
.chat-notifi-top > .dropdown-menu li:hover {
    background: #eeeeee;
    cursor: pointer;
}
.chat-notifi-top > .dropdown-menu li:last-child {
    border-bottom: none;
}
.chat-notifi-top > .dropdown-menu li img {
    vertical-align: middle;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    border: 1px solid #e6e6e6;
}
.chat-img:hover {
    cursor: pointer;
}
#chat-expand {
    width: 55px;
    position: fixed;
    bottom: 17px;
    right: 15px;
    z-index: 1000;
    background-color: #dae1e8;
    /*border: 1px solid #e6e6e6;*/
    display: none;
    -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
    box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
}
#chat-expand ul {
    padding: 0;
    margin: 0;
    list-style: none;
}
#chat-expand ul li {
    float: left;
    padding: 5px;
    width: 100%;
    position: relative;
}
#chat-expand ul li:hover {
    background-color: #ffffff;
    cursor: pointer;
}
#chat-expand ul li img {
    width: 45px;
    border: 1px solid #e6e6e6;
}
#chat-expand ul li span {
    position: absolute;
    bottom: 5px;
    right: 5px;
}
.active-chat {
    background-color: #ffffff !important;
}
.active-chat:after, .active-chat:before {
    position: absolute;
    right: 100%;
    top: 24px;
    border: solid transparent 5px;
    border-right-color: #ffffff;
    content: ' ';
    height: 0;
    width: 0;
    pointer-events: none;
}
.online-status {
    width: 10px;
    height: 10px;
    display: inline-block;
    border-radius: 50%;
}
.online {
    background-color: #1FA67A;
}
.offline {
    background-color: #cccccc;
}
.chat-close {
    background: transparent;
    position: relative;
    top: -3px;
    left: 10px;
}
.chat-close:hover {
    opacity: 0.7;
}
