﻿
.chatcontainer {
    display: inline-block;
    width: 100%; /*180%;*/
    border: 1px solid #aaa;
    padding: 0 !important;
}

    .chatcontainer .input-group .form-control {
        z-index: 0;
    }

.col-chat {
    display: inline-block;
    position: relative;
    width: 100%;
    padding: 0 !important;
}

.col-md-2, .col-md-10 {
    padding: 0;
}

.panel {
    margin-bottom: 0px;
}

.chat-window {
}

    .chat-window > div > .panel {
        border-radius: 5px 5px 0 0;
    }

.icon_minim {
    padding: 2px 10px;
}

.msg_container_base {
    background: #e5e5e5;
    margin: 0;
    padding: 0 10px 10px;
    height: 260px;
    overflow-x: hidden;
    overflow-y: scroll;
}

    .msg_container_base .img-circle {
        max-width: 45px;
        max-height: 45px;
    }

    .msg_container_base p {
        display: inline-block;
        width: auto;
        word-break: break-all;
    }

.top-bar {
    background: #666;
    color: white;
    padding: 10px;
    position: relative;
    overflow: hidden;
}

.msg_receive {
    padding-left: 0;
    margin-left: 0;
}

.msg_sent {
    /*padding-bottom: 20px !important;*/
    margin-right: 0;
}

.messages {
    background: white;
    padding: 10px;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

    .messages > p {
        font-size: 13px;
        margin: 0 0 0.2rem 0;
    }

    .messages > time {
        font-size: 11px;
        color: #ccc;
    }

.msg_container {
    padding: 5px 10px;
    overflow: hidden;
    display: flex;
}

.avatar {
    position: relative;
}

.base_receive > .avatar:after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border: 5px solid #FFF;
    border-left-color: rgba(0, 0, 0, 0);
    border-bottom-color: rgba(0, 0, 0, 0);
}

.base_sent {
    justify-content: flex-end;
    align-items: flex-end;
}

    .base_sent > .avatar:after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 0;
        border: 5px solid white;
        border-right-color: transparent;
        border-top-color: transparent;
        box-shadow: 1px 1px 2px rgba(black, 0.2);
    }

/*.msg_sent > time {
    float: right;
}*/

.msg_container_base::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
    background-color: #F5F5F5;
}

.msg_container_base::-webkit-scrollbar {
    width: 12px;
    background-color: #F5F5F5;
}

.msg_container_base::-webkit-scrollbar-thumb {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
    background-color: #555;
}

.chat-window .panel-heading, .chat-window .panel-footer {
    cursor: move;
}

    .chat-window .panel-footer .input-group {
        cursor: default;
    }

        .chat-window .panel-footer .input-group input {
            margin-top: 1px;
        }
