.chatmed { 
  display: flex;
  background-color: #fff;
}

.chatmed .listas {
  max-height: 550px;
  min-height: 550px;
  overflow-y: auto;
  border: 1px solid #e6e6e6;
  border-width: 1px 2px 1px 0px;
  background-color: #fff;
}
.chatmed .listas ul { 
  padding: 0;
  margin: 0 0 0 0 ;
}

.chatmed .listas ul li { 
  list-style: none;
}

.chatmed .listas ul li a { 
  border-bottom: 1px solid #e6e6e6;
  display: block;
  cursor: pointer;
  padding: 12px 10% 16px;
  background-color: #fff;
}

.chatmed .listas {
  -ms-user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.chatmed .listas ul li a span.name {
  font-size: 14px;
  line-height: 22px;
  color: #1a1a1a;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
  word-wrap: break-word;
  overflow:  hidden !important;
  text-overflow: ellipsis;
}

.chatmed .listas ul li a span.time {
  font-size: 14px;
  top: 16px;
  padding: 0 5px 5px 5px;
  color: #999;
  float: right;
}

.chatmed .listas ul li a span.preview {
  font-size: 14px;
  display: block;
  overflow: hidden !important;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #999;
}

.chatmed .listas ul li a span.previewperfil {
  font-size: 14px;
  display: block;
  overflow: hidden !important;
  text-overflow: ellipsis;
  color: #999;
}

.chatmed .listas ul li a:hover { /*hover: para el objecto seleccionado */
  background-color: #00b0ff;
}

.chatmed .listas ul li a:hover span.time,
.chatmed .listas ul li a:hover span.preview {
  color: white;
}

.chatmed .temas { 
  border-left-width: 2px;
  width: 25%; /* TAMAÑO DE ANCHO DE LA CAJA, CAMBIAR SEGUN CONVENGA */
}

.chatmed .chats { 
  width: 25%; /* TAMAÑO DE ANCHO DE LA CAJA, CAMBIAR SEGUN CONVENGA */
}
.chatmed .chats ul li {
  padding:0 10px;
}

.chatmed .listas ul li:hover { /*hover: para el objecto seleccionado */
  background-color: #00b0ff;
}

.chatmed .listas ul li:hover a { /*hover: para el objecto seleccionado */
  background-color: #00b0ff;
}

.chatmed .listas ul li:hover a span.time,
.chatmed .listas ul li:hover a span.preview {
  color: white;
}

.chatmed .conversaciones { 
  border-left-width: 2px;
  border-right: 4px;
  width: 50%; /* TAMAÑO DE ANCHO DE LA CAJA, CAMBIAR SEGUN CONVENGA */
}

.chatmed .conversaciones .aquien {
  width: 100%;
  height: 47px;
  padding: 15px 29px;
  background-color: #d4d4d4;
}

.chatmed .conversaciones .mensaje .aquien span {
  font-size: 15px;
  color: #999;
}

.chatmed .conversaciones .mensaje .aquien span.name {
  font-size: 14px;
  line-height: 22px;
  color: #1a1a1a;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
}

.chatmed .conversaciones .mensaje ul { 
  margin: 0; padding:0;
  display: flex;
  flex-direction: column;
  max-height: 480px;
  min-height: 480px;
  overflow-y: auto;
}

.chatmed .conversaciones .mensaje ul li {
  list-style: none;
  font-size: 1rem;
  padding:15px 10px;
  position: relative;
}

.chatmed .conversaciones .mensaje ul li.fecha {
  position: relative;
  width: 100%;
  text-align: center;
  padding: 0px;
}
.chatmed .conversaciones .mensaje ul li.fecha span {
  padding: 8px !important;
  color: #999;
  font-size: 14px;
}

.chatmed .conversaciones .mensaje ul li span {
  padding: 13px 14px;
  border-radius: 5px;
  display: block;
}
.chatmed .conversaciones .mensaje ul li.you span {
  background-color: #eceff1;
}
.chatmed .conversaciones .mensaje ul li.me {
  align-self: flex-end;
}
.chatmed .conversaciones .mensaje ul li.me span {
  background-color: #00b0ff;
  color: #fff;
}
.chatmed .conversaciones .mensaje ul li span:before {
  position: absolute;
  top: 35px;
  left: 5px;
  display: block;
  width: 8px;
  height: 6px;
  content: ' ';
  background-color: #eceff1;
  border-radius: 80%;
}
.chatmed .conversaciones .mensaje ul li.me span:before {
  background-color: #00b0ff;
  right: 5px;
  left: auto !important;
}
.chatmed .conversaciones .mensaje ul li.fecha span:before {
  display: none;
}

.btn-red {
  background:rgba(206,0,0,0.5);
  color:#fff;
  padding: 0;
  margin: 0;
}

.btn-red:hover {
  background:rgba(206,0,0,1);
}

.chatmed .conversaciones .enviar {
  margin: 20px 20px 20px 20px;
}

.chatmed .conversaciones .enviar .caja {
  background-color: #eceff1;
  border: 1px solid #ccc;
  border-radius: 3px;
}

/*------------------------------------*/
.chatmvb {
  display: flex;
  border: 1px solid #e6e6e6;
  background-color: #fff;
  font-size: 17px;
  box-sizing: border-box;
}
.chatmvb .messages, .chatmvb .chats, .chatmvb .themes {
  height: 640px;
}
.chatmvb .messages > p, .chatmvb .chats > p, .chatmvb .themes > p {
    margin: 0;
    padding: 5px 0 3px 0;
    font-size: 1.2em;
    text-align: center;
    background-color: #fff;
}

.chatmvb .chats, .chatmvb .themes {
  overflow: hidden;
  overflow-y: auto;
}
.chatmvb .themes {
  width: 26%;
}
.chatmvb .chats {
  width: 26%;
  border: 1px solid #e6e6e6;
  border-width: 0px 1px;
}
.chatmvb .messages {
  width: 48%;
}
.chatmvb .list {
-ms-user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}
.chatmvb .list ul { padding: 0; margin: 0; }
.chatmvb .list ul li {
  list-style: none;
  padding: 0; margin: 0; 
}
.chatmvb .list ul li a {
  display: flex;
  flex-direction: column;
  padding: 15px;
  cursor: pointer;
  box-sizing: border-box;
  position: relative;
}
.chatmvb .list ul li a:hover {
  background-color: #c2ebfd;
}
.chatmvb .list ul li a > * { padding:0 0 4px 0; }
.chatmvb .list ul li a span.unread { font-size: 0.8em; }
.chatmvb .list ul li a span.unread strong { color: #a10000; }
.chatmvb .list ul li a span.sin_unread { font-size: 0.8em; }
.chatmvb .list ul li a span.sin_unread strong { color: #307ac4; }
.chatmvb .list ul li a span.type { font-size: 0.8em; color: rgb(112, 112, 112);}
.chatmvb .list ul li a span.text { font-weight: bold; }

.chatmvb .list ul li a span.preview {
  color: #999999; 
  overflow: hidden !important;
  font-size: 0.9em;
  position: relative;
}
.chatmvb .list ul li a span.preview span.date { font-size: 0.8em; color: #999999; position: absolute; right: 0; }
.chatmvb .sel, .chatmvb .list ul li.sel a:hover  {
    background-color: #00b0ff !important;
}
.chatmvb .sel span  { color: #fff !important;  }

.chatmvb .list ul li.no-activo {
  display: none;
}
.chatmvb .list ul li.activo {
  display: block;
  background-color: #00b0ff !important;
}
.chatmvb .aviso {
    padding: 30px 10px !important;
    color: #999;
    font-size: 0.8em;
}
.chatmvb .messages{
    box-sizing: border-box;
}
.chatmvb .messages .head {
  padding: 15px 15px;
  background-color: rgb(0, 112, 183);
  color: #fff; 
}

.chatmvb .messages .body {
  overflow: hidden;
  overflow-y: auto;
  height: 410px;
}
.chatmvb .messages .body ul { 
  margin: 0; padding:0;
}
.chatmvb .messages .body ul li { 
  display: flex;
  flex-direction: column;
  list-style: none;
  padding: 10px;
  font-size: 1em;
}
.chatmvb .messages .body ul li span {
  padding: 10px;
  color: #000;
  display: block;
  border-radius: 5px;
}
.chatmvb .messages .body ul li.rmsg span {
  background-color: #eceff1;
  max-width: 80%;
}
.chatmvb .messages .body ul li.lmsg span {
  max-width: 80%;
  background-color: rgb(0, 112, 183);
  color:#fff;
  align-self: flex-end;
}
.chatmvb .messages .body ul li.no-activo { display: none; }

.chatmvb .messages .body ul li.fecha {
  padding: 0px;
  text-align: center;
}
.chatmvb .messages .body ul li.fecha span {
  padding: 4px;
  color: #999;
  font-size: 0.8em;
}
.chatmvb .messages .body ul li.aviso {
    padding: 0px;
    text-align: center;
}
.chatmvb .messages .body ul li.aviso span {
    padding: 4px;
    color: #999;
    font-size: 0.8em;
}

.chatmvb .messages .foot { 
  display: flex;
  padding: 10px;
  height: 140px;
  box-sizing: border-box;
  flex-direction: column;
  border: 1px solid #e6e6e6;
  border-width: 1px 0 0 0;
}
.chatmvb .messages .foot textarea {
  box-sizing: border-box;
  height: 100%;
  width: 100%;
  border: 0.5px solid rgb(195, 232, 255);
  border-radius: 1px;
  background-color: rgba(200, 233, 255, 0.37);
  padding:8px; margin:0;
  font-size: 0.9em;
  outline: none;
  resize: none;
}
.chatmvb .messages .foot textarea:focus {
  border: 0.5px solid rgb(171, 223, 255);
  background-color: rgb(245, 245, 245);
  box-shadow: rgb(0, 112, 183) 0px 0px 6px -2px; 
}
.chatmvb .messages .foot button {
  box-sizing: border-box;
  border: 1px solid rgb(0, 112, 183);
  background-color: rgb(0, 112, 183);
  font-size: 1em;
  padding: 10px 10px 15px 10px;
  color: #fff !important;
  font-weight: bold;
  width: 150px;
  margin-top:5px; 
  cursor: pointer;
  text-align: center;
}
.chatmvb .messages .foot button:hover{
  background-color: rgb(0, 65, 105);
  box-shadow: rgb(0, 112, 183) 0px 0px 10px -2px; 
}

.chatmvb .messages .sel-pri {
    padding: 20px;
    background-color: rgb(190, 230, 255);
}

.notimecms {position: relative;}
.notimecms i { color: rgb(137, 255, 58)  !important; }
.notimecms em {
  position: absolute;
  top:2%;
  left:30%;
  font-size: 0.9em;
  color: #000;
}