/**
 * ����html����� v1.0.0
 * Copyright 2011-2016 mengkunsoft, Inc.
 * Licensed under MIT 
 */
 *, ::before, ::after {
    box-sizing: border-box;
    scrollbar-width: thin;
}
 html,body{
        height: 100%;
        margin: 0;
        padding: 0;
    }
body{
max-width:800px;
margin:0 auto;
background-color: #f0f0f0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
        
    }
.dis-f{
    display: flex;
}
.dis-f-c{
    justify-content: center;
    align-items: center;
}
.cur-p{
    cursor: pointer;
}
.por{
    position: relative;
}
.poa{
    position: absolute;
}
.w{
    width:100%;
}
.h{
    height: 100%;
}
.t0{
    top:0;
}
.l0{
    left:0;
}
.msg_img{
    max-width: 20vw;
    border-radius: 4px;
    overflow: hidden;
}
.smark{
    display: none;
    background: rgba(0,0,0,.5);
    z-index: 99;
}
.smark-img{
    max-width: 90%;
    max-height: 80%;
}
.image-preview{
    height:70px;
    background: #fff;
    border-top: 1px #999;
    bottom:91px;
    background: #EEE;
    overflow-x: auto;
    overflow-y: hidden;
    display: none;
}
.img_yu{
    width:60px;
    height: 60px;
    margin: 5px;
    border: 1px solid #999;
    border-radius: 4px;
    overflow: hidden;
}
.close{
    width:15px;
    height:15px;
    top:0px;
    right:0px;
}
.img_yu > img:not(.close){
    width: calc(100% - 14px);
    height: calc(100% - 14px);
    margin:7px;
}
.mk-chat-box{
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size:14px;
    width: 100%;
    padding: 10px 0;
    position:relative;
    overflow-y: scroll;
    overflow-x: hidden;
	height: calc(100% - 94px); /* 顶部44px + 输入框50px = 94px */
    background-color: #f0f0f0;
    border: none;
	border-bottom: none;
}
.top{padding-left:10px;background-color: #07c160;height:44px;line-height:44px;text-align:center;color:white;font-weight:bold;font-size:18px;box-shadow: 0 1px 2px rgba(0,0,0,0.1);}
.foot{line-height:50px;text-align:center;font-size:12px;}
.write{height:50px;width: 100%;background-color: white;display: flex;align-items: center;padding: 5px 10px;box-shadow: 0 -1px 2px rgba(0,0,0,0.1);}
.write input { 
    font-size: 14px;
    flex: 1;
    height: 40px;
    padding: 10px 15px;
    border-radius: 20px;
    border: 1px solid #e0e0e0;
    outline: none;
    background:#f5f5f5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    margin-right: 10px;
    resize: none;
}
.image-upload-container{
    width:30px;
    height:30px;
    margin: 5px;
    cursor: pointer;
}
#fresh{color:#fff}
.send{color:#fff;text-decoration:none;width:60px; background-color: #07c160;display:inline-block;height: 40px;line-height:40px;text-align:center;border-radius: 20px;font-size: 14px;font-weight: bold;}
.send.disabled{background-color: #cccccc;}
.mk-chat-box .msg{ /*��Ϣ����*/
    margin: 4px 6px;
    position: relative; /*����IE*/
    min-height: 40px;
    border: 0;
}
.mk-chat-box .right{
    text-align: right;
    margin-left: 64px;
}
.mk-chat-box .left{
    text-align: left;
    margin-right: 64px;
}

.mk-chat-box img.head{ /*ͷ��*/
    width: 32px;
    height: 32px;
    top: 8px;
    position: absolute;
    -moz-border-radius: 100%; /* Firefox */
    -webkit-border-radius: 100%; /* Safari �� Chrome */
    border-radius: 100%;
    border: 1px solid #cbe5c8;
    -moz-user-select: none; /*��ֹ�û�ѡ��*/
    -o-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.mk-chat-box .right img.head{
    right: 0;
}
.mk-chat-box .left img.head{
    left: 0;
}

.mk-chat-box .name{    /*�ǳ���ʾ����*/
    color: #8b8b8b;
    font-size: 12px;
    display: block;
    line-height: 18px;
}
.mk-chat-box .right .name{
    margin: 0 48px 2px 0;
}
.mk-chat-box .left .name{
    margin: 0 0 2px 48px;
}

.mk-chat-box .content{  /*��Ϣ��������*/
    word-break: break-all;
    word-wrap: break-word;/*֧��IE��chrome��FF*/
    /*text-align: right;*/
    position: relative;
    display: inline-block;
    font-size: 14px;
    padding: 6px;
    line-height: 18px;
    -moz-border-radius: 6px; /* Firefox */
    -webkit-border-radius: 6px; /* Safari �� Chrome */
    border-radius: 6px;
    min-width: 9px;     /*��ֹ���ֿհ���Ϣ����*/
    min-height: 18px;
}
.mk-chat-box .content img{  /*��Ϣ��������ͼƬ*/
    width: 100%;
    *:width: auto;      /*�Ͱ汾��IE*/
    *:max-width: 100%;
    height: auto;
    margin: 5px 0 0 0;
}
.mk-chat-box .content a{  /*��Ϣ������������*/
    color: #0072C1;
    margin: 0 5px;
    cursor: hand;
}
.mk-chat-box .right .content{
    margin: 0 48px 0 0;
    border: none;
    background: #95ec69;
    border-radius: 18px;
    border-bottom-right-radius: 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    color: #333;
}
.mk-chat-box .left .content{
    margin: 0 0 0 48px;
    border: none;
    background: white;
    border-radius: 18px;
    border-bottom-left-radius: 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    color: #333;
}

.mk-chat-box .content:after{   /*��Ϣ���*/
    content: "";
    position: absolute;
    border-bottom: 8px solid rgba(255, 255, 255, 0);
}
.mk-chat-box .right .content:after{
    right: -12px;
    top: 8px;
    border-left: 12px solid #95ec69;
}
.mk-chat-box .left .content:after{
    left: -12px;
    top: 8px;
    border-right: 12px solid white;
}
.mk-chat-box .tips{ /*ϵͳ��ʾ��*/
    margin: 12px;
    text-align: center;
    font-size: 12px;
}
.mk-chat-box .tips span{
    display: inline-block;
    padding: 4px;
    background-color: #cccccc;
    color: #ffffff;
    -moz-border-radius: 6px; /* Firefox */
    -webkit-border-radius: 6px; /* Safari �� Chrome */
    border-radius: 6px;
}
.mk-chat-box .tips .tips-primary{
    background-color: #428bca;
}
.mk-chat-box .tips .tips-success{
    background-color: #5cb85c;
}
.mk-chat-box .tips .tips-info{
    background-color: #5bc0de;
}
.mk-chat-box .tips .tips-warning{
    background-color: #f0ad4e;
}
.mk-chat-box .tips .tips-danger{
    background-color: #d9534f;
}

/*����������*/
.mk-chat-box::-webkit-scrollbar{width:8px;height:8px}
.mk-chat-box::-webkit-scrollbar-button:vertical{display:none}
.mk-chat-box::-webkit-scrollbar-track:vertical{background-color:transparent;}
.mk-chat-box::-webkit-scrollbar-track-piece{background-color:transparent;}
.mk-chat-box::-webkit-scrollbar-thumb:vertical{background-color:rgba(204,204,204,.3);border-radius:8px}
.mk-chat-box::-webkit-scrollbar-thumb:vertical:hover,
.mk-chat-box::-webkit-scrollbar-thumb:vertical:active {background-color: #8C8C8C}
.login{margin-top:10px;}