.item-chat-list{
    cursor: pointer;
}

.friend{
    height:70px;
    border-bottom:1px solid #e7ebee;        
    position:relative;
    display: flex;
    flex-direction: row;
}
.friend:hover{
    background:#f1f4f6;
    cursor:pointer;
}
.friend img{
    max-width: 40px;
    height: auto;
    align-self: center;
    border-radius:50%;
    margin:15px;
    -webkit-box-flex: 0 0 10%;
    -moz-box-flex: 0 0 10%;
    box-flex: 0 0 10%;
    -webkit-flex: 0 0 10%;
    -moz-flex: 0 0 10%;
    -ms-flex: 0 0 10%;
    flex: 0 0 10%;
}

.friend p{
    padding:15px 0 0 0;         
    display: flex;
    flex-direction: column;
    -webkit-box-flex: 0 0 80%;
    -moz-box-flex: 0 0 80%;
    box-flex: 0 0 80%;
    -webkit-flex: 0 0 80%;
    -moz-flex: 0 0 80%;
    -ms-flex: 0 0 80%;
    flex: 0 0 80%;
    max-width: 80%;
}
.friend p strong{
    font-weight:600;
    font-size:small;
    color:#597a96;  

}
.friend p span{
    font-size:13px;
    font-weight:400;
    color:#aab8c2;
}
.friend .status{
    border-radius:50%;  
    width:9px;
    height:9px;
    position:absolute;
    top:31px;
    right:17px;
}
.friend .status.available{background:#26c281;}
.friend .status.away{background:#ffce54;}
.friend .status.inactive{background:#eaeef0;}

.me{
    padding: 10px 10px 10px 20px;
    font-size: 0.9em;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    min-width: 50%;
    position: relative;
    border-radius: 5px;
    background-color: #f5f5f5;
}

.me:after{
    content: '';
    position: absolute;
    border-style: solid;
    border-width: 8px 0 8px 8px;
    /*box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);*/
    border-color: transparent #f5f5f5;
    display: block;
    width: 0;
    z-index: 1;
    left: auto!important;
    right: -8px!important;
    top: 3px;
}

.message{
    padding: 0 25px 15px 25px;
    display: inline-flex;
    width: 100%;
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start;
    transition: all 0.18s ease-in;
    position: relative;
}

.message_me{
    justify-content: flex-end;
}

.item{
    padding: 10px 10px 10px 20px;
    font-size: 0.9em;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    min-width: 50%;
    position: relative;
    background: white;
    border-radius: 5px;
}
.item:after{
    content: '';
    position: absolute;
    border-style: solid;
    border-width: 8px 8px 8px 0;
    border-color: transparent white;
    display: block;
    width: 0;
    z-index: 1;
    left: -8px;
    top: 3px;
}

.chat-form{
    width: 100%;
    border: none;
    height: 29px;
}

.chat-scroll {
    height: 378px;
    max-height: 378px;
    overflow-y: auto;
    overflow-x: hidden;
}