.chat_box {
  position: fixed;
  right: 15px;
  bottom: 0px;
  width: 250px;
  z-index: 1000;
  border: 1px solid #c8c8c8;
}

.chat_body {
  background: white;
  height: 350px;
  padding: 5px 0px;
  overflow: auto;
}

.chat_head, .msg_head {
  background: #6f1521;
  color: white;
  padding: 4px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 2px 2px 0px 0px;
}

.chat_footer {
  display: inline-block;
  margin: auto;
  height: 30px;
  border-top: 1px solid #c9d0da;
}

.chat_footer_filter {
  margin-left: 0;
  color: #000000 !important;
  width: 248px;
  border-color: transparent !important;
  height: 100%;
}
/*
.msg_box {
  position: fixed;
  bottom: -5px;
  width: 250px;
  background: white;
  border-radius: 5px 5px 0px 0px;
}

.msg_head {
  background: #4697ce;
}

.msg_body {
  background: white;
  height: 300px;
  font-size: 12px;
  padding: 15px;
  overflow: auto;
  overflow-x: hidden;
  color: #000000;
}

.msg_input {
  width: 100%;
  border: 1px solid white;
  border-top: 1px solid #DDDDDD;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.close_chat {
  float: right;
  cursor: pointer;
}

.file_chat {
  left: 2px;
  cursor: pointer;
}

.minimize {
  float: right;
  cursor: pointer;
  padding-right: 5px;
}

.user-online {
  position: relative;
  padding: 10px 30px;
  width: 200px;
  display: inline-block;
}

.user-online:hover {
  background: #EEEEEE;
  cursor: pointer;
}

.user-online:before {
  content: '';
  position: absolute;
  background: #2ecc71;
  height: 10px;
  width: 10px;
  left: 10px;
  top: 15px;
  border-radius: 6px;
}

.user-photo {
  position: relative;
  padding: 10px 10px;
  width: 30px;
  height: 37px;
  display: inline-block;
}

.user-offline {
  position: relative;
  padding: 10px 30px;
  width: 200px;
  display: inline-block;
}

.user-offline:hover {
  background: #EEEEEE;
  cursor: pointer;
}

.user-offline:before {
  content: '';
  position: absolute;
  background: #4f5259;
  height: 10px;
  width: 10px;
  left: 10px;
  top: 15px;
  border-radius: 6px;
}

.user-chat-header-online {
  position: relative;
  padding: 3px 25px;
  border-radius: 3px 0 0 0;
  width: 225px;
  display: inline-block;
}

.user-chat-header-online:hover {
  background: #EEEEEE;
  cursor: pointer;
}

.user-chat-header-online:before {
  content: '';
  position: absolute;
  background: #2ecc71;
  height: 8px;
  width: 8px;
  left: 8px;
  top: 8px;
  border-radius: 6px;
}

.user-chat-header-close {
  background: #4697ce;
  width: 20px;
  height: 24px;
  border-radius: 0 3px 0 0;
  display: inline-block;
  padding: 3px 3px;
}

.user-chat-header-offline {
  position: relative;
  padding: 3px 25px;
  border-radius: 3px 0 0 0;
  width: 225px;
  display: inline-block;
}

.user-chat-header-offline:hover {
  background: #EEEEEE;
  cursor: pointer;
}

.user-chat-header-offline:before {
  content: '';
  position: absolute;
  background: #4f5259;
  height: 8px;
  width: 8px;
  left: 8px;
  top: 8px;
  border-radius: 6px;
}

.chat_img {
  position: relative;
  background: #B3E5FC;
  padding: 10px;
  width: 30px;
  left: 0;
}

.msg_a {
  position: relative;
  background: #4697ce;
  color: #FFF;
  padding: 3px;
  padding-left: 8px;
  min-height: 10px;
  margin-bottom: 5px;
  margin-right: 10px;
  border-radius: 5px;
  width: 160px;
  left: 45px;
  word-wrap: break-word;
}

.msg_a:before {
  content: "";
  position: absolute;
  width: 0px;
  height: 0px;
  border: 10px solid;
  border-color: transparent #4697ce transparent transparent;
  left: -19px;
  top: 2px;
}

.msg_a:after {
  margin-bottom: 50px;
}

.msg_a_media {
  position: relative;
  background: transparent;
  padding: 3px;
  padding-left: 8px;
  min-height: 10px;
  margin-bottom: 5px;
  margin-right: 10px;
  border-radius: 5px;
  width: 160px;
  left: 100px;
  word-wrap: break-word;
}

.msg_a_guinio {
  position: relative;
  background: transparent;
  padding: 3px;
  padding-left: 8px;
  min-height: 10px;
  margin-bottom: 5px;
  margin-right: 10px;
  width: 160px;
  left: 140px;
}

.msg_b {
  background: #e7e9f2;
  padding: 3px;
  padding-left: 8px;
  min-height: 15px;
  margin-bottom: 5px;
  position: relative;
  margin-left: 10px;
  border-radius: 5px;
  word-wrap: break-word;
  width: 170px;
}

.msg_b:after {
  content: "";
  position: absolute;
  width: 0px;
  height: 0px;
  border: 10px solid;
  border-color: transparent transparent transparent #e7e9f2;
  right: -19px;
  top: 2px;
  margin-bottom: 50px;
}

.msg_b_media {
  background: transparent;
  padding: 3px;
  padding-left: 8px;
  min-height: 15px;
  margin-bottom: 5px;
  position: relative;
  margin-left: 10px;
  border-radius: 5px;
  word-wrap: break-word;
  width: 170px;
}

.msg_b_guinio {
  background: transparent;
  padding: 3px;
  padding-left: 8px;
  min-height: 15px;
  margin-bottom: 5px;
  position: relative;
  margin-left: 10px;
  border-radius: 5px;
  word-wrap: break-word;
  width: 170px;
}

.msg_footer {
  display: inline-block;
  margin: auto;
  height: 60px;
  border-top: 1px solid #c9d0da;
}

.msg_text {
  margin-left: 10px;
  color: #000000 !important;
  width: 240px;
  border-color: transparent !important;
}

.msg_button {
  margin: auto;
}

.mensaje_last:after {
  margin-bottom: 50px;
}
*/
.chat_body_div {
    width: 100%;
    text-align:center;
    margin-bottom: 10px;
}
.chat_menu {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}
.chat_item {
    margin: 0;
    padding: 10px 10px;
    display: block;
    white-space: nowrap;
    border-bottom: 1px solid #ddd;
}
.chat_imagen {
    margin: auto 10px auto auto;
    width: 30;
    height: 30px;
    border-radius: 50%;
}
.chat_nombre {
    padding: 0;
    margin: 0 0 0 45px;
    text-align: left;
    color: #444444;
    font-size: 12px;
    position: relative;
    font-weight: bolder;
}
.chat_oficina {
    margin: 0 0 0 45px;
    font-size: 10px;
    color: #888888;
    text-align: left;
}

.chatbox {
  position: fixed;
  position:expression("absolute");
  width: 225px;
  display:none;
}

.chatboxhead {
  background-color: #6f1521;
  padding:7px;
  color: #ffffff;
  cursor: default;
  border-right:1px solid #6f1521;
  border-left:1px solid #6f1521;
}

.chatboxhead:hover {
  cursor: pointer;
}

.chatboxblink {
  background-color: #176689;
  border-right:1px solid #176689;
  border-left:1px solid #176689;
}

.chatboxcontent {
  font-family: arial,sans-serif;
  font-size: 13px;
  color: #333333;
  height:200px;
  overflow-y:auto;
  overflow-x:auto;
  padding:7px;
  border-left:1px solid #cccccc;
  border-right:1px solid #cccccc;
  border-bottom:1px solid #eeeeee;
  background-color: #ffffff;
  line-height: 1.3em;
}

.chatboxinput {
  padding: 5px;
  background-color: #ffffff;
  border-left:1px solid #cccccc;
  border-right:1px solid #cccccc;
  border-bottom:1px solid #cccccc;
}

.chatboxtextarea {
  width: 206px;
  height:44px;
  padding:3px 0pt 3px 3px;
  border: 1px solid #eeeeee;
  margin: 1px;
  overflow:hidden;
}

.chatboxtextareaselected {
  border: 2px solid #6f1521;
  margin:0;
}

.chatboxmessage {
  margin-left:1em;
}

.chatboxinfo {
  margin-left:-1em;
  color:#666666;

}

.chatboxmessagefrom {
  margin-left:-1em;
  font-weight: bold;
}

.chatboxmessagecontent {
}

.chatboxoptions {
  float: right;
}

.chatboxoptions a {
  text-decoration: none;
  color: white;
  font-weight:bold;
  font-family:Verdana,Arial,"Bitstream Vera Sans",sans-serif;
  font-size: 12px;
}

.chatboxtitle {
  float: left;
  font-size: 12px;
  padding-top: 1px;
}

.back {
    position: absolute;
    width: 90px;
    height: 50px;
    top: 0px;
    left: 0px;
    color: #fff;
    line-height: 50px;
    font-size: 30px;
    padding-left: 10px;
    cursor: pointer;
}
.back img {
    position: absolute;
    top: 5px;
    left: 30px;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.98);
    border-radius: 100%;
    -webkit-border-radius: 100%;
    -moz-border-radius: 100%;
    -ms-border-radius: 100%;
    margin-left: 15px;
    }
.back:active {
    background: rgba(255,255,255,0.2);
}
.name{
    position: absolute;
    top: 3px;
    left: 110px;
    font-family: 'Lato';
    font-size: 25px;
    font-weight: 300;
    color: rgba(255,255,255,0.98);
    cursor: default;
}
.last{
    position: absolute;
    top: 30px;
    left: 115px;
    font-family: 'Lato';
    font-size: 11px;
    font-weight: 400;
    color: rgba(255,255,255,0.6);
    cursor: default;
}

/* M E S S A G E S */

.chatboxcontent {
    /*margin: 0;
    padding: 0 0 50px 0;
    margin-top: 60px;
    margin-bottom: 10px;
    */
}
.chatboxcontent div {
    padding: 0.5rem;
    padding-left: 0.0rem;
    /*overflow: hidden;*/
    display: flex;
}
.chatboxcontent .avatar {
    width: 25px;
    height: 25px;
    position: relative;
    display: block;
    z-index: 2;
    border-radius: 100%;
    -webkit-border-radius: 100%;
    -moz-border-radius: 100%;
    -ms-border-radius: 100%;
    background-color: rgba(255,255,255,0.9);
}
.chatboxcontent .avatar img {
    width: 25px;
    height: 25px;
    border-radius: 100%;
    -webkit-border-radius: 100%;
    -moz-border-radius: 100%;
    -ms-border-radius: 100%;
    background-color: rgba(255,255,255,0.9);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
.chatboxcontent .day {
    position: relative;
    display: block;
    text-align: center;
    color: #c0c0c0;
    height: 20px;
    text-shadow: 7px 0px 0px #e5e5e5, 6px 0px 0px #e5e5e5, 5px 0px 0px #e5e5e5, 4px 0px 0px #e5e5e5, 3px 0px 0px #e5e5e5, 2px 0px 0px #e5e5e5, 1px 0px 0px #e5e5e5, 1px 0px 0px #e5e5e5, 0px 0px 0px #e5e5e5, -1px 0px 0px #e5e5e5, -2px 0px 0px #e5e5e5, -3px 0px 0px #e5e5e5, -4px 0px 0px #e5e5e5, -5px 0px 0px #e5e5e5, -6px 0px 0px #e5e5e5, -7px 0px 0px #e5e5e5;
    box-shadow: inset 20px 0px 0px #e5e5e5, inset -20px 0px 0px #e5e5e5, inset 0px -2px 0px #d7d7d7;
    line-height: 38px;
    margin-top: 5px;
    margin-bottom: 20px;
    cursor: default;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.other .msg {
    order: 1;
    border-top-left-radius: 0px;
    box-shadow: -1px 2px 0px #D4D4D4;
    background-color: #D4D4D4;
}
.other:before {
    /*
    content: "";
    position: relative;
    top: 0px;
    right: 0px;
    left: 40px;
    width: 0px;
    height: 0px;
    border: 5px solid #fff;
    border-left-color: transparent;
    border-bottom-color: transparent;
    */
}

.self {
    justify-content: flex-end;
    align-items: flex-end;
}
.self .msg {
    text-align: right;
    order: 1;
    border-bottom-right-radius: 0px;
    box-shadow: 1px 2px 0px #D4D4D4;
    background-color: #BF636F;
}
.self .avatar {
    order: 2;
}
.self .avatar:after {
    content: "";
    position: relative;
    display: inline-block;
    bottom: 19px;
    right: 0px;
    width: 0px;
    height: 0px;
    border: 5px solid #fff;
    border-right-color: transparent;
    border-top-color: transparent;
    box-shadow: 0px 2px 0px #D4D4D4;
}

.msg {
    background: white;
    min-width: 50px;
    padding: 10px;
    border-radius: 2px;
    box-shadow: 0px 2px 0px rgba(0, 0, 0, 0.07);
}
.self .msg p {
    text-align: right;
}
.msg p {
    font-size: 1rem;
    margin: 0 0 0.2rem 0;
    color: #333;
    width: 100%;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
.msg img {
    position: relative;
    display: block;
    width: 450px;
    border-radius: 5px;
    box-shadow: 0px 0px 3px #eee;
    transition: all .4s cubic-bezier(0.565, -0.260, 0.255, 1.410);
    cursor: default;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
@media screen and (max-width: 800px) {
    .msg img {
    width: 300px;
}
}
@media screen and (max-width: 550px) {
    .msg img {
    width: 200px;
}
}

.msg time {
    font-size: 0.7rem;
    color: #ccc;
    margin-top: 3px;
    float: right;
    cursor: default;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
.msg time:before{
    content:"\f017";
    color: #ddd;
    font-family: FontAwesome;
    display: inline-block;
    margin-right: 4px;
}

/*
emoji{
    display: inline-block;
    height: 18px;
    width: 18px;
    background-size: cover;
    background-repeat: no-repeat;
    margin-top: -7px;
    margin-right: 2px;
    transform: translate3d(0px, 3px, 0px);
}
emoji.please{background-image: url(http://imgur.com/ftowh0s.png);}
emoji.lmao{background-image: url(http://i.imgur.com/MllSy5N.png);}
emoji.happy{background-image: url(http://imgur.com/5WUpcPZ.png);}
emoji.pizza{background-image: url(http://imgur.com/voEvJld.png);}
emoji.cryalot{background-image: url(http://i.imgur.com/UUrRRo6.png);}
emoji.books{background-image: url(http://i.imgur.com/UjZLf1R.png);}
emoji.moai{background-image: url(http://imgur.com/uSpaYy8.png);}
emoji.suffocated{background-image: url(http://i.imgur.com/jfTyB5F.png);}
emoji.scream{background-image: url(http://i.imgur.com/tOLNJgg.png);}
emoji.hearth_blue{background-image: url(http://i.imgur.com/gR9juts.png);}
emoji.funny{background-image: url(http://i.imgur.com/qKia58V.png);}

@-webikt-keyframes pulse {
  from { opacity: 0; }
  to { opacity: 0.5; }
}

::-webkit-scrollbar {
    min-width: 12px;
    width: 12px;
    max-width: 12px;
    min-height: 12px;
    height: 12px;
    max-height: 12px;
    background: #e5e5e5;
    box-shadow: inset 0px 50px 0px rgba(82,179,217,0.9), inset 0px -52px 0px #fafafa;
}

::-webkit-scrollbar-thumb {
    background: #bbb;
    border: none;
    border-radius: 100px;
    border: solid 3px #e5e5e5;
    box-shadow: inset 0px 0px 3px #999;
}

::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
  box-shadow: inset 0px 0px 3px #888;
}

::-webkit-scrollbar-thumb:active {
    background: #aaa;
  box-shadow: inset 0px 0px 3px #7f7f7f;
}

::-webkit-scrollbar-button {
    display: block;
    height: 26px;
}
input.textarea {
    position: fixed;
    bottom: 0px;
    left: 0px;
    right: 0px;
    width: 100%;
    height: 50px;
    z-index: 99;
    background: #fafafa;
    border: none;
    outline: none;
    padding-left: 55px;
    padding-right: 55px;
    color: #666;
    font-weight: 400;
}
.emojis {
    position: fixed;
    display: block;
    bottom: 8px;
    left: 7px;
    width: 34px;
    height: 34px;
    background-image: url(http://i.imgur.com/5WUpcPZ.png);
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 100;
    cursor: pointer;
}
.emojis:active {
    opacity: 0.9;
}
*/
