/*
 * Descripción: PAREJAS.NET
 * Copyright (c) 2018 *
 */

:root {
	--gs: 1;
	--chat-container-width: 290px;
}

aside#chat { /*variables*/
	--chat-content-max: 100%;
	--chat-content-offset: 0px;
	--chat-color-pareja: #5cb85c;
	--chat-color-chico: #6baee7;
	--chat-color-chica: #d46be7;
	--chat-color-trans: #d13563;
}

/* TEMAS */
aside#chat {
	color-scheme: light dark;

	--chat-color-1: #444753;
	--chat-color-2: #92959E;
	--chat-color-3: #4B4B4B;
	--chat-color-4: #F7F8FB;
	--chat-color-5: #323540;
	--chat-color-6: #FFFFFF;
	--chat-color-7: #EBECF0;
    --chat-color-8: #92959E;

	--chat-color-9: #f2f5f8;
	--chat-color-10: #b8def4;
	--chat-color-11: #4b4b4b;
	--chat-color-12: #dfe3e9;
	--chat-color-13: #4b4b4b;
	--chat-color-14: #e0f2fa;
	--chat-color-15: #cfe2ea;
	--chat-color-16: #4b4b4b;
	--chat-color-17: #0000004d;
	--chat-color-18: #b8def4;
	--chat-color-19: #bcbcbc;
	--chat-color-20: #c8dee7;
	--chat-color-21: #45c8c2;

	--chat-color-22: #d13563;

	--chat-color-gris: #333;

	--chat-quote-background: rgba(108,148,193,0.15);
	--chat-quote-line:#6c94c1;
	--chat-quote-user:#3a5c70;
	--chat-quote-text:#000;
}

@media (prefers-color-scheme: dark) {
	aside#chat {
		--chat-color-1: #323540;
		--chat-color-2: #70737B;
		--chat-color-3: #C1C1C1;
		--chat-color-4: #202023;
		--chat-color-5: #121212;
		--chat-color-6: #121212;
		--chat-color-7: #3d3d3d;
		--chat-color-8: #B0B0B0;

		--chat-color-9: #3d3d3d;
		--chat-color-10: #3a5c70;
		--chat-color-11: #c2c2c2;
		--chat-color-12: #5c5c5c;
		--chat-color-13: #bcbcbc;
		--chat-color-14: #222728;
		--chat-color-15: #4e4e4e;
		--chat-color-16: #727272;
		--chat-color-17: #ffffff4d;
		--chat-color-18: #3a5c70;
		--chat-color-19: #5c5c5c;
		--chat-color-20: #839298;
		--chat-color-21: #247c79;

		--chat-color-22: #ff3f3f;

		--chat-color-gris: #bcbcbc;

		--chat-quote-background:rgba(184,222,244,0.15);
		--chat-quote-line:#4c6d7d;
		--chat-quote-user:#b8def4;
		--chat-quote-text:#fff;

	}
}

aside#chat {
	position: fixed;
	top: 120px;
	right: 0;
	z-index: 199;
}

html[mobile] aside#chat {
	z-index: 199;
}

#contenedor_chat {
	--chat-offset: 120px;
	--chat-header-tabs: 50px;
	height: calc(var(--viewport-height) - var(--chat-offset) + 1px);
}

#contenedor_chat .content {
	height: calc(var(--viewport-height) - var(--chat-content-offset));
}

aside#chat a:not(.rojo) {
	color: inherit;
}
aside#chat .pointer {
	cursor: pointer;
}
aside#chat *:not(.btn) > a:not(.desactivar,.remove):hover {
	color: unset;
}
/*Zona: salas - usuarios - opciones*/
#contenedor_chat {
	background: var(--chat-color-1);
	color: var(--chat-color-2);
	position: fixed;
	top: 120px;
	/*separación web arriba*/
	right: 0px;
	z-index: 200;
	box-shadow: 0 5px 12px 2px rgba(0, 0, 0, 0.25);
	width: var(--chat-container-width);
	/*cambiar tamaño para móvil*/
	height: 100%;
	min-height: 100vh;
	overflow: hidden;
}
#contenedor_chat .header {
	background: var(--chat-color-5);
	border-bottom: 2px solid var(--chat-color-4);
	position: relative;
	z-index: 2;
	width: 100%;
}
#contenedor_chat .content {
	padding: 15px;
	background: var(--chat-color-4);
	overflow: auto;
}

#chat_tab_settings {
	color: var(--chat-color-8);
}
/*[hover] #contenedor_chat .content:hover {
	overflow: overlay; // overlay deprecated
}
[hover] #contenedor_chat .content:not(:hover) {
	overflow: hidden;
}*/

#listado_usuarios_chat {
	min-height: 270px;
	overflow: hidden;
}
/* --------------------------------------------------
Zonas: webcams
------------------------------------------------------ */
:not(x-user).webcam {
	background-color: black;
}
/*Control para el maximo alto de la webcam.*/
#mi-stream {
	max-height: 400px
}
@media (max-height: 900px) {
	video.webcam {
		max-height: 300px;
	}
}
@media (max-height: 800px) {
	video.webcam {
		max-height: 250px;
	}
}
/*Botones top*/
.botonestop {
	display: table;
	width: 100%
}
.botonestop[data-steps="2"] li {
	width: 49%;
}
.botonestop[data-steps="3"] li {
	width: 33%;
}
.botonestop[data-steps="4"] li {
	width: 25%;
}
.botonestop[data-steps="5"] li {
	width: 20%;
}
.botonestop[data-steps="6"] li {
	width: 16%;
}
.botonestop li {
	list-style-type: none;
	float: left;
	position: relative;
	text-align: center;
	padding: 15px 0 10px 0;
	border-right: 1px solid rgba(255, 255, 255, 0.15);
}
.botonestop li:last-child {
	border-right: 0px;
}
.botonestop li i {
	font-size: 1.4285em;
}
.botonestop li a {
	color: var(--chat-color-6);
}
.botonestop li.activo,
.botonestop li.activo a {
	color: var(--chat-color-3);
	background: var(--chat-color-4);
}
.botonestop li:not(.activo) {
	background: var(--chat-color-3);
}

/* listado usuarios */
.chat_user_list {
	margin: 3px 0;
	width: 100%;
}

.chat_user_list:is(.admin, .online.adjunto) {
	color: inherit;
}
.chat_user_list.self:not([enabled]) > x-user {
	display: none;
}
.chat_user_list.offline,
.chat_user_list.offline * {
	max-height: 0;
	visibility: hidden;
}

/* bordes de separación automágicos entre tipos */
.chat_user_list:not(:empty, [hidden], .self:not([enabled])) ~ .chat_user_list:not(:empty) {
	border-top: 1px solid grey;
	margin: 2px 0;
	padding: 2px 0;
}

/* usuarios */
x-user {
	display: block;
	position: relative;
	width: 100%;
	padding: 10px;
	cursor: pointer;
	background-color: var(--chat-color-4);
}
x-user > a {
	color: var(--chat-color-2);
}
x-user .post-texto {
	display: block;
	overflow: hidden;padding: 0px 0px 2px 10px;
	line-height: .9em;
	margin-top: -3px;
	margin-bottom: 3px;
}
x-user .nombre {
	font-size: 1em;
	line-height: 22px;
	font-weight: bold;
	color: var(--chat-color-3);
}
x-user .msg {
	font-size: 0.8571em;
	position: absolute;
	right: 10px;
	top: 5px;
	color: #97c846;
}

x-user .zona-btsmini {
	display: block;
	line-height: .9em;
}
x-user .zona-btsmini span {
	color: inherit;
	background-color: inherit;
}
x-user .zona-btsmini .tag {
	border: none;
	padding: 0 5px 0 0;
	cursor: pointer;
}
x-user .zona-btsmini span i::before {
	padding: 0 1px;
	margin-right: 1px;
}
x-user .zona-btsmini .flaticon-tarta::before {
	font-size: 1.18em;
	vertical-align: baseline;
}
x-user .zona-btsmini .flaticon-camara-video::before {
	font-size: 1.18em;
	vertical-align: middle;
}
x-user .zona-btsmini .flaticon-separa {
	margin-left: .45em;
}
/*icons*/
x-user .zona-btsmini > span > i {
	display: none;
}
x-user .zona-btsmini > span > i:first-of-type,
x-user:is(.verificaciones, [verificaciones]) .zona-btsmini > span > i.flaticon-check,
x-user:is(.birthday, [birthday]) .zona-btsmini > span > i.flaticon-tarta,
x-user:is(.webcam, [webcam]):not([streaming]) .zona-btsmini > span > i.flaticon-webcam,
x-user[streaming] .zona-btsmini > span > i.flaticon-camara-video,
x-user[device=mobile] .zona-btsmini > span > i.flaticon-movil:not(.app),
x-user:is(.vip, [vip]) .zona-btsmini > span > i.flaticon-medalla {
	display: inherit;
}
x-user:is(.pareja, [pareja]):not(.admin, [admin]) .zona-btsmini > span > i:first-of-type {
	color: var(--chat-color-pareja);
}
x-user:is(.chico, [chico]):not(.admin, [admin]) .zona-btsmini > span > i:first-of-type {
	color: var(--chat-color-chico);
}
x-user:is(.chica, [chica]):not(.admin, [admin]) .zona-btsmini > span > i:first-of-type {
	color: var(--chat-color-chica);
}
x-user:is(.trans, [trans]):not(.admin, [admin]) .zona-btsmini > span > i:first-of-type {
	color: var(--chat-color-trans);
}

x-user .texto {
	font-size: .8em;
	display: inline-block;
	overflow: hidden !important;
	width: 100%;
	white-space: nowrap;
	text-overflow: ellipsis;
	color: grey;
	font-style: italic;
	margin: 0;
	margin-bottom: 2px;
}
/* x-user:is(.self, [self]) > .post-imagen,
x-user:is(.self, [self]) > .post-texto > *:not(.nombre) {
	display: none;
}
x-user:is(.self, [self]) {
	padding: 2px;
}
x-user:is(.self, [self]) > :is(.post-texto, .post-texto > *) {
	padding:  0;
	margin: 0;
	width: 100%;
} */
x-user:is(.self, [self]) > .post-texto > .nombre::after {
	font-family: "FlatIcon";
	content: "\f145";
	float: right;
}

.chat_user_list.active > x-user {
	background-color: var(--chat-color-7);
}
[hover] .chat_user_list.active > x-user:hover,
.chat_user_list.active > x-user:focus,
.chat_user_list.active > x-user.active {
	background-color: #e5f5ff;
}

x-user.active,
[hover] x-user.active:hover,
[hover] x-user:hover {
	background-color: var(--chat-color-7);
}
x-user.active,
[hover] x-user.active:hover {
	background-color: #dddee4;
}

.chat_user_list.active > x-user > .desactivar {
	cursor: pointer;
	position: absolute;
	inset: 3px 6px auto auto;
	color: var(--chat-color-22);
	font-size: 1.4em;
	width: 1em;
	height: 1em;
	border-radius: 2px;
	z-index: 1;
}
.chat_user_list.active > x-user > .desactivar:before {
	content: '×';
}

.chat_user_list.online > x-user:is(.offline, [offline]):not(.app, [app]) {
	display: none;
}

/* estados */
.estado-user {
	position: absolute;
	z-index: 1;
	height: 10px;
	width: 10px;
	inset: 2px auto auto 2px;
	border-radius: 50%;
	border: 1px solid #80808080;
}
.estado-user.detalle {
	position: relative;
	display: inline-block;
	vertical-align: top;
	height: 10px;
	width: 10px;
	border-radius: 50%;
	border: 1px solid white;
}

.estado-user:not(.nodisponible) {
	display: none;
}
[level=admin] [beta] x-user:not([self]) .estado-user:not(.nodisponible),
.chat_user_list.active > x-user:not([self]) .estado-user.offline {
	display: unset;
}

.chat_user_list.filter,
.chat_user_list.online > x-user[filter] {
	display: none;
}

.disponible {
	background: #4dd965;
	color: #97c846;
}

x-user:is(.app, [app]) .estado-user.app,
.ausente {
	background: #ffa22d;
	color: #ffa22d;
}
.estado-user.app:before {
	color: #ffa22d;
	background: inherit;
}
[beta] x-user:is(.app, [app]) .estado-user.app {
	background-color: unset;
	border-color: #ffa22d;
}
x-user:is(.dnd, [dnd]) .estado-user,
.nodisponible {
	background: #ff3c3c;
	color: #ee3643;
}
.offline:not(x-user) {
	background: #ccc;
	color: #ccc;
}
#chat_states i.disponible {
	color: #4dd965;
	background: inherit;
}
#chat_states i.ausente {
	color: #ffa22d;
	background: inherit;
}
#chat_states i.nodisponible {
	color: #ff3c3c;
	background: inherit;
}

/* fav star */
#ventana_chat .estado-user.disponible.fav,
x-user:is(.fav, [fav]) .estado-user.disponible {
	color: #4dd965;
}
#ventana_chat .estado-user.fav {
	margin-right: .75em;
}
#ventana_chat .estado-user.fav,
x-user:is(.fav, [fav]) .estado-user {
	border: none;
	width: 0;
	height: 0;
	left: 0;
	top: -4px;
}
#ventana_chat .estado-user.fav:before,
x-user:is(.fav, [fav]) .estado-user:before {
	content: '★';
	background: unset;
}
#ventana_chat .estado-user.fav:after,
x-user:is(.fav, [fav]) .estado-user:after {
	content: '★';
	font-size: 1.4em;
	background: unset;
	position: absolute;
	left:-3px;
	top:-1px;
	color: #80808080;/*color del borde*/
	z-index: -1;
}

[beta] #ventana_chat .estado-user.fav.app:before,
[beta] x-user:is(.fav, [fav]) .estado-user.app:before {
	content: '☆';
	background: unset;
}

.chat-search {
	margin: 0 auto 20px auto;
	position: relative
}
form#chat_search > input {
	border-radius: 3px;
	border: none;
	padding: 14px;
	background: #ebecf0;
	width: 100%;
	font-size: 1em;
}
.lupa-buscar {
	position: absolute;
	inset: 10px 10px auto auto;
}

/*Textarea*/
.textarea {
	border-radius: 3px;
	border: 0px solid #999;
	padding: 14px;
	background: #ebecf0;
	width: 100%;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 1em;
	color: #333;
}

/*lista estado*/
/* .lista {
	width: 100%;
	margin-top: 8px;
}
.lista li {
	display: inline-block;
	width: 100%;
	color: var(--chat-color-3);
	padding: 5px 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}
.lista li:last-child {
	border: 0px;
}
.lista li a {
	color: inherit;
	text-decoration: none;
}
[hover] .lista li a:hover,
.listaestado li a:focus {
	color: #333;
}
.lista li.active a {
	text-decoration: underline;
}
.lista li.active a~span a {
	text-decoration: none;
	margin-left: 5px;
}
.lista li.active a~span a i {
	font-size: 0.9285em;
}
.lista li span.numerousuarios {
	font-size: 0.8em;
	vertical-align: top;
	padding: 1px 2px;
	margin-left: 5px;
	border-radius: 4px;
	background: #62549a;
	color: var(--chat-color-6);
}
.lista li.dos {
	width: 48%;
	border-bottom: 0px;
	padding: 2px 0;
	cursor: pointer;
} */

/*Zona chat*/
.zona-chat {
	position: fixed;
	/*separación web arriba*/
	top: 120px;
	right: var(--chat-container-width);
	/*poner 0px para móvil*/
	z-index: 201;
	background: var(--chat-color-9);
	color: var(--chat-color-2);
	box-shadow: 0 5px 12px 2px rgba(0, 0, 0, 0.25);
	width: 400px;
	/*cambiar tamaño para móvil*/
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	height: 100%;
}
.zona-chat.salas {
	width: 50%;
}
@media (max-width: 768px) {
	.zona-chat {
		right: 0px;
		width: 100%;
	}
	.zona-chat.salas {
		right: 0px;
		width: 100%;
	}
	#contenedor_chat {
		width: 100%;
	}
}
.chat-header {
	display: flex;
	flex: 1 1 5%;
	min-height: 50px;
	max-height: 50px;
	background: #3f9fd9;
}
.zona-chat.salas .chat-header {
	background: #62549a;
}
.chat-header .inside {
	padding: 15px 15px 0 15px;
	font-size: 1.2857em;
}
.chat-header .inside p a {
	color: var(--chat-color-6);
}
[hover] .chat-header .inside p a:hover,
.chat-header .inside p a:focus {
	color: var(--chat-color-6);
}
/* #chat_states a {
	cursor: pointer;
	margin-left: 4px;
} */

.cerrar-chat {
	position: absolute;
	top: 6px;
	right: 8px;
	color: white;
	font-size: 1.4285em;
	font-weight: normal;
}
[hover] .cerrar-chat:hover {
	color: var(--chat-color-6);
}
.chat-buttons {
	/* display: flex; */
	flex: 1 1 5%;
	min-height: 40px;
	max-height: 40px;
	background: var(--chat-color-6);
	color: #d1d3d6;
	/* border-bottom: 1px solid #dddee4; */
	border-bottom: 1px solid var(--chat-color-2);
}
.btnschat {
	display: inline-block;
	font-size: 1.485em;
	margin-top: 10px;
	position: relative
}
.btnschat > a {
	padding: 5px 10px;
	cursor: pointer;
	color: inherit;
}
[hover] .btnschat > a:hover,
.btnschat > a:focus {
	text-shadow: 3px 3px 7px rgba(0, 0, 0, 0.3);
	color: inherit;
}
.btnschat.active > a {
	padding: 5px 10px;
	color: #3f9fd9;
}

x-user:is(.self, [self]) .estado-user,
#ventana_chat[self] .chat-buttons {
	display: none;
}

.chat-body {
	display: flex;
	flex: 1 1 70%;
	flex-wrap: wrap;
	flex-direction: column-reverse;
	align-items: flex-start;
	overflow-y: auto;
	overflow-x: hidden;
	border-top: 0px solid #dddee4;
	padding: 10px;
}
.chat-body > em-emoji-picker {
	position: absolute;
	z-index: 15;
}
.chat.footer {
	display: flex;
	flex: 21 1 20%;
	min-height: 40px;
	max-height: 40px;
	margin-bottom: 120px;
	border-top: 0px solid #dddee4;
	background: transparent;
}

.chat.footer:is(.quotes, .edits) > div > *:not(.mod_action, form),
.chat.footer:is(.quotes, .edits) > div > *:not(.mod_action) *:not(input) {
	margin-top: 1em;
}
.chat.footer:not(.quote, .edits) .mod_action {
	display: none;
}
.chat.footer:is(.quotes, .edits) {
	max-height: calc(40px + 2px + 1.5em);
}
.chat.footer:is(.quotes, .edits) .mod_action::before,
.chat.footer:is(.quotes, .edits) .mod_action::after {
	padding: 0 4px;
	font-family: 'flaticon';
	pointer-events: all;
	cursor: pointer;
}
.chat.footer:is(.quotes, .edits) .mod_action > .elipsis {
	position: relative;
	left: 0;
}
.chat.footer.edits .mod_action::before {
	content: '\f13a';
}
.chat.footer.quotes .mod_action::before {
	content: '\f15f';
}
.chat.footer:is(.quotes, .edits) .mod_action::after {
	content: '\f165';
}
.chat.footer:is(.quotes, .edits) .mod_action {
	pointer-events: none;
	background: var(--chat-color-6);
	width: 100%;
	display: flex;
	justify-content: space-between;
}
.chat.footer:is(.quotes, .edits) .mod_action > * {
	padding: 0 .5em;
}

#chat_input {
	padding-left: .5em;
	padding-right: 6em;
}

/*Chatear*/
#chat_content {
	width: 100%;
	font: normal 1em Arial, Helvetica, sans-serif;
	margin-top: auto;
}
#chat_content > * {
	display: block;
	clear: both;
	padding: 5px 10px;
	border-radius: 8px;
	min-width: 150px;
	line-height: 130%
}

#chat_content > *.general {
	float: left;
	margin-bottom: 0px;
	padding: 3px 10px;
	color: var(--chat-color-3);
	width: 100%;
}
#chat_content > .general a {
	text-decoration: underline;
}
#chat_content > .ignore {
	display: none;
}

#chat_content div.btn {
	margin-left: 1em;
}

#chat_content > msg:is(.sent, .self) {
	position: relative;
	background: var(--chat-color-12);
	float: right;
	color: var(--chat-color-13);
	margin-bottom: 6px;
	border-bottom-right-radius: 0px;
}
#chat_content > msg.sent::before {
	content: "";
	width: 0;
	height: 0;
	position: absolute;
	right: -10px;
	bottom: 0;
	border-style: solid;
	border-width: 10px 3px 0 10px;
	border-color: transparent transparent transparent var(--chat-color-12);
}

#chat_content > msg.recv {
	position: relative;
	background: var(--chat-color-10);
	float: left;
	color: var(--chat-color-11);
	margin-bottom: 6px;
	border-bottom-left-radius: 0px;
}
#chat_content > msg.recv::before {
	content: "";
	width: 0;
	height: 0;
	position: absolute;
	left: -10px;
	border-style: solid;
	top: 0;
	border-width: 0px 10px 10px 4px; /*  Arriba  */
	border-color: transparent var(--chat-color-18) transparent transparent;
}

#chat_content > .full {
	width: 100%;
	text-align: center;
}
#chat_content > .query {
	background: #fff6e6;
	width: 100%;
	clear: both;
	color: var(--chat-color-3);
	margin: 10px auto;
	text-align: center;
	border: 1px solid #cfe2ea;
	transition: opacity 333ms ease-in-out;
	opacity: 0;
}
#chat_content > time:is(.date, .fecha) {
	background: var(--chat-color-14);
	width: 100%;
	clear: both;
	color: var(--chat-color-16);
	margin: 10px auto;
	text-align: center;
	border: 1px solid var(--chat-color-15);
}
#chat_content > time:is(.date, .fecha):not(:has(+ msg)) {
	display: none;
}
.flecha-azul {
	color: var(--chat-color-20);
}

aside#chat #ventana_chat[self] #chat_content > time:is(.date, .fecha) {
	background-color: unset;
	border: unset;
	text-align: unset;
	padding: 1px;
	margin: 5px 0;
	color: var(--chat-color-2);
	font-weight: bold;
}
aside#chat #ventana_chat[self] #chat_content > time:is(.date, .fecha) > i {
	display: none;
}

#chat_content .sysmsg {
	background: #fef6c0;
	width: 100%;
	padding: 10px 10px;
	clear: both;
	color: var(--chat-color-3);
	margin: 10px auto;
	border: 1px solid #e5dfb5;
}
/* chat window snackbar */
#sys_m1 {
	cursor: default;
	border-radius: .5em;
	padding: .3em .5em;
	background: #fef6c0;
	font-size: .9em;
	color: var(--chat-color-1);
	border: 1px solid #e5dfb5;
	position: relative;
	top: .5em;
	left: .5em;
	width: calc(100% - 1em);
	z-index: 14;
}
/* chat window snackbar visibility */
#ventana_chat:is([dnd], [offline], [readonly], [self]) > #sys_m1 {
	display: unset;
}
#sys_m1 > img {
	width: 1em;
    height: 1em;
    position: absolute;
    bottom: 10px;
    right: .5em;
    cursor: pointer;
}
/* snackbar close */
#chat_info > span.close,
#sys_m1 > span:first-of-type {
	float: right;
	margin-left: 1em;
	font-size: 1.2em;
	cursor: pointer;
	color: black;
}

#chat_content > msg > figure {
	margin: 0;
}
#chat_content > msg[type=file] > a[undo] {
	position: absolute;
	top: 0;
	right: 0;
	cursor: pointer;
	z-index: 9;
}
#chat_content > msg[type=file] > a[undo]:hover {
	font-size: 2em;
	color: #d13563;
}
#chat_content > msg > .infochat2 {
	display: flex;
	justify-content: space-between;
	gap: 4px;
	margin-top: 2px;
	width: 100%;
	cursor: default;
}
#chat_content > msg > .infochat2 > * {
	display: flex;
	font-size: 0.7857em;
	color: var(--chat-color-17);
	height: 1em;
	position: relative;
	gap: 4px;
	margin-bottom: 3px;
}
#chat_content > msg > .infochat2 > div:first-of-type {
	width: 100%;
}
#chat_content > msg > .infochat2 > * > .xtra {
	margin-left: auto;
}
#chat_content > msg > .infochat2 > * > .actions {
	display: inline-flex;
	width: 100%;
	margin-right: auto;
}
#chat_content > msg:not([active]) > .infochat2 > * > .actions,
#chat_content > msg[active] > .infochat2 > * > .xtra {
	display: none;
}
#chat_content > msg > .infochat2 > * > .actions > * {
	padding: 0;
	margin-right: 8px;
}
#chat_content > msg > .infochat2 > * > .actions > .der {
	position: absolute;
	right: 2em;
}
#chat_content > msg.self > .infochat2 > * > .actions > .der {
	right: 4em;
}
[touchscreen] #chat_content > msg > .infochat2 > * > .actions > * {
	margin-right: 2em;
}
#chat_content > msg > .infochat {
	display: inline-block;
	clear: both;
	margin-top: 2px;
	width: 100%;
	cursor: default;
	text-align: end;
}
#chat_content > msg > .infochat > * {
	display: inline-block;
	font-size: 0.7857em;
	color: var(--chat-color-17);
	height: 1em;
}

#chat_content > msg[quotes] {
	padding-top: 3.2em;
}
#chat_content > msg[quotes] > :is(quote, q) {
	font-size: .8em;
	position: absolute;
	top: .5em;
	left: .5em;
	width: 100%;
	padding: 0 16px 0 4px;
	color: var(--chat-color-16);
	border-left: 3px solid var(--chat-quote-line);
	cursor: pointer;
}
#chat_content > msg[quotes] > :is(quote, q) > strong {
	color: var(--chat-quote-user);
}
#chat_content > msg[quotes] > :is(quote, q) > .elipsis {
	background-color: var(--chat-quote-background);
	color: var(--chat-quote-text);
	display: block;
	border-radius: 3px;
	padding: 0 5px;
	font-style: italic;
}
#chat_content > msg[quotes] > :is(quote, q) > .elipsis.file::before {
	font-style: normal;
	content: '🖼️ '
}
#chat_content > msg[quotes] > q::before,
#chat_content > msg[quotes] > q::after {
	content: unset;
	display: none;
}

/* #chat_content > msg[active] > .infochat > .actions {
	display: inline-flex;
}
#chat_content > msg[active] > .infochat > .hora,
#chat_content > msg:not([active]) > .infochat > .actions {
	display: none;
}
#chat_content > msg > .infochat > .actions {
	width: 100%;
}
#chat_content > msg.sent > .infochat > .actions {
	width: calc(100% - 16px);
}
#chat_content > msg > .infochat > .actions > .der {
	position: absolute;
	right: 2em;
}
[self] #chat_content > msg > .infochat > .actions > .der {
	right: 4px;
}
#chat_content > msg > .infochat > .actions > * {
	padding: 0;
	margin-right: 8px;
}
[touchscreen] #chat_content > msg > .infochat > .actions > * {
	margin-right: 2em;
}
 */
#chat_content > msg > i[undo] {
	z-index: 9;
	position: absolute;
	top: -7px;
	right: -7px;
	cursor: pointer;
	color: #d13563;
	display: none;
}
#ventana_chat[self] i[undo],
#chat_content > .sent > i[undo] {
	display: unset;
}
[hover] #chat_content > * > i[undo]:hover {
	font-size: 1.2em;
}

#chat_content [type=sys] span.sb {
	min-width: 1em;
	display: inline-block;
}

#chat_content [type=sys] a.sys_b {
	display: inline-block;
	border-radius: .6em;
	background-color: var(--chat-color-19);
	color: var(--chat-color-gris);
	padding: .4em 3em;
	font-size: .8em;
	border: 2px solid var(--chat-color-16);
}
#chat_content > .recv > span.sys_profile {
	border-radius: .6em;
	background-color: var(--chat-color-6);
	display: block;
	padding: 0.8em 1em;
}

.adjunto {
	margin: 10px 0px 5px 0px;
}
/* #chat_content > msg.sent:not([active]) > .infochat > .hora {
	display: inline-block;
	width: calc(100% - 16px);
}
#chat_content > .sent > .infochat > .hora > span {
	padding-right: 1ch;
} */
.general .hora {
	display: inline-block;
	float: none;
	margin-left: 5px;
}
.adjunto~.hora {
	display: block;
	text-align: center;
	float: none;
	margin-left: 0px;
}

/*NEW - sent msg status*/
#chat_content > .sent > .infochat2 span.tix {
	box-sizing: border-box;
	position: relative;
	display: inline-flex;
	transform: scale(var(--ggs,1));
	width: 16px;
	height: 16px;
	border: 2px solid transparent;
	border-radius: 100px;
}

#chat_content > .sent > .infochat2 span.tix::before,
#chat_content > .sent > .infochat2 span.tix::after {
	content: "";
	box-sizing: border-box;
	position: absolute;
	top: -1px;
	width: 6px;
	height: 10px;
	border-width: 0 1px 1px 0;
	border-style: solid;
	transform-origin: bottom left;
	transform: rotate(45deg);
}
#chat_content > .sent > .infochat2 span.tix::before {
	left: 0px;
}
#chat_content > .sent > .infochat2 span.tix::after {
	left: 5px;
	opacity: 0;
}
#chat_content > .sent > .infochat2 span.tix.push::after {
	left: 4px;
	opacity: .6;
	/* border-style: none dashed dotted none; */
}
#chat_content > .sent > .infochat2 span.tix:is(.acl, .read)::after {
	opacity: 1;
}
#chat_content > .sent > .infochat2 span.tix.read {
	color: #5cb85c;
}

#chat_filters {
	margin-top: 1em;
}
#chat_filters > * {
	margin: 5px 0;
}
#chat_filters input {
	position: unset;
}
#chat_filters span.check,
#chat_filters select {
	float: right;
}

#chat_filters_prefs_list {
	cursor: pointer;
}
#chat_filters_prefs_list:not(:empty)::before {
	content: '(';
}
#chat_filters_prefs_list:not(:empty)::after {
	content: ')';
}

/*Form*/
.formchat {
	font: normal 1em Arial, Helvetica, sans-serif;
	color: #666;
	background: var(--chat-color-6);
	border: 1px solid var(--chat-color-2);
	padding: 12px 12px;
	width: 100%;
	margin-bottom: 8px;
	display: inline-block;
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
	transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
	margin-bottom: 20px;
}
.formchat::-moz-placeholder {
	color: #666;
	opacity: 1;
}
.formchat::-ms-input-placeholder {
	color: #666;
}
.formchat::-webkit-input-placeholder {
	color: #666;
}
.formchat.btnizq {
	padding-left: 60px;
}
.formchat.btnder {
	padding-right: 60px;
	padding-left: 50px
}
.btnformchatizq {
	display: table-cell;
	position: absolute;
	top: 1px;
	left: 1px;
	z-index: 2;
	background: none;
	height: 40px;
	width: 45px;
	font-size: 1.2857em;
	vertical-align: middle;
	border-radius: inherit;
	text-align: center;
}
a .btnformchatizq {
	line-height: 45px;
	color: #c8cfd4
}
[hover] a:hover .btnformchatizq,
a:focus .btnformchatizq {
	color: #3f9fd9;
}
.btnformchatder {
	display: table-cell;
	position: absolute;
	top: 1px;
	right: 1px;
	z-index: 2;
	background: var(--chat-color-21);
	height: 40px;
	width: 45px;
	font-size: 1.2857em;
	border-left: 0px solid rgba(0, 0, 0, 0.20);
	vertical-align: middle;
	border-radius: inherit;
	text-align: center;
}
a .btnformchatder {
	line-height: 45px;
	color: var(--chat-color-11);
}
[hover] a:hover .btnformchatder,
a:focus .btnformchatder {
	color: var(--chat-color-6);
}
.btnformchatder.adjuntar {
	right: 46px;
	background: none;
	border: none;
}

.linea-separa {
	display: block;
	margin: 20px 0 20px 0;
	width: 100%;
	height: 1px;
	background: rgba(0, 0, 0, 0.12);
}
.info-a-usuario {
	background: #f9f6d6;
	margin-bottom: 10px;
	color: #666;
	border: 1px solid #eae7c9;
}
.center {
	text-align: center;
}
.underline {
	text-decoration: underline;
}
aside#chat .gris {
	color: var(--chat-color-gris);
}
.chat-tag {
	position: absolute;
	top: 8px;
	right: 16px;
	font-size: 0.7857em;
	line-height: 0.7857em;
	padding: 4px;
	color: #141b20;
	cursor: help;
	width: auto;
	display: inline-block;
	font-family: Arial, Helvetica, sans-serif;
	user-select: none;
	-webkit-user-select: none; /* https://www.safari-is-the-new-ie.com/ */
}
.chat-tag.unread {
	top: 3px;
	right: -3px;
	cursor: default;
	border: 1px solid #80808080;
	z-index: 666;
}
.chat-tag.big {
	padding: 6px;
	font-size: 0.9375em
}
.chat-tag-amarilla {
	background: #fcd500;
}
.chat-tag-turquesa {
	background: #13fae1;
}
.chat-tag-azul {
	background: #12d0ff;
}
.chat-tag-verde {
	background: #13fa8a;
}
.chat-tag-morada {
	background: #62549a;
	color: var(--chat-color-6);
}
.chat-tag-roja {
	background: #d13563;
	color: var(--chat-color-6);
}
.video-stream {
	color: #5cb85c !important;
}
[hover] .video-stream:hover {
	color: #d13563 !important;
}

video[remotestream]::-webkit-media-controls-current-time-display,
video[remotestream]::-webkit-media-controls-timeline {
	display: none;
}

#buffering {
	position: absolute;
	text-align: center;
	display: table;
	width: 100%;
	height: 100%;
	z-index: 1;
	opacity: 0;
	transition: opacity 500ms ease-in-out;
	will-change: z-index, opacity;
}

@keyframes fadeIn {
	0% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}
@keyframes fadeOut {
	0% {
		opacity: 1;
	}
	100% {
		opacity: 0;
	}
}
.animated {
	animation-fill-mode: both;
}
.fadeIn {
	animation-name: fadeIn;
}
.fadeOut {
	animation-name: fadeOut;
}
.fast {
	animation-duration: 1.5s;
}
.slow {
	animation-duration: 10s;
}

.nohover {
	pointer-events: none;
}

:root {
	--gs: 1;
}

#boton_chat {
	cursor: pointer;
}
#boton_chat > .tag {
	cursor: inherit;
}
#boton_chat div[count]::after {
	display: inline-block;
}
[data-usuarios-conectados-total]::after,
[dev] #boton_chat div[count]::after {
	content: attr(count);
}

/*asistencia remota*/
body[shared] #boton_webcam .flaticon-webcam::before,
body[shared] .flaticon-webcam.video-stream::before {
	content: "\f147";
}

body[shared] :is(#mis_espectadores, #screenShare) {
	display: inherit !important;
}

body[shared] #mi-webcam video,
body[shared] #overlay-webcam {
	display: none;
}

#contenedor_chat .content {
	user-select: none;
	-webkit-user-select: none;
}

#chat:not([dev]) *[dev]:not(x-user),
#chat:not([beta]) [beta] {
	display: none;
}

#contenedor_chat :is(.tag-dev, .tag-new, .tag-beta) {
	filter: unset;
	top: 0;
	right: 0;
	cursor: default;
	color: unset;
}

#contenedor_chat .tag-beta::before {
	font-size: 10px;
	content: 'ϐετα';
	opacity: .75;
}

#chat:not([estado="nodisponible"]) #chat_estado_nodisponible {
	display: none;
}

#chat:is([dev], [forcedev]) dev {
	display: inherit;
}
#chat:is([dev], [forcedev]) .tag-dev::before {
	font-size: 10px;
	opacity: .75;
}
#chat[forcedev] .tag-dev::before {
	content: '/dev/';
}

aside#chat .tag-new::before {
	font-size: 10px;
	content: attr(data-text);
	opacity: .75;
}

#chat_tab_settings details._chat_options {
	/* padding: .5em 1em .5em 1em; */
	padding: .5em;
	margin-top: 1.2em;
	position: relative;
	border: 5px solid #ffffff00;
	border-radius: 4px;
}
#chat_tab_settings details._chat_options[open] {
	border: 5px solid #b0b0b0;
}
#chat_tab_settings details._chat_options > summary {
	position: absolute;
	top: -1em;
	z-index: 99;
	padding: 0 .5em;
	background-color: var(--chat-color-4);
}
#chat_tab_settings details._chat_options > summary::marker {
	content: '';
}
#chat_tab_settings details._chat_options > summary::before {
	font-family: 'FlatIcon';
	content: '\f12a';
	margin-right: .5em;
	display: inline-block;
}
#chat_tab_settings details._chat_options[open] > summary::before {
	/* content: '\f12c' */
	transform: rotate(45deg);
	transform-origin: center;
}

#contenedor_chat .chat-ops-box {
	padding: .5em 1em .5em 1em;
	margin-top: 2em;
	position: relative;
	border: 1px solid #ffffff00;
}

#contenedor_chat .chat-ops-box-title {
	position: absolute;
	top: -0.75em;
	left: 0.5em;
	padding: 0 0.5em;
	cursor: pointer;
}
#contenedor_chat .chat-ops-box hr {
	opacity: 0.6;
}

/* drag&drop */
#ventana_chat .chat-body.targetActive {
	padding: 0;
}
#ventana_chat .chat-body .dropTargeted {
	background: darkgrey;
	height: 100%;
	width: 100%;
	border: 3px dashed grey;
	border-radius: 3px;
}
#ventana_chat .chat-body .dropTargeted,
#ventana_chat .chat-body.targetActive #chat_content {
	display: none;
}
#chat_content,
#ventana_chat .chat-body ul,
#ventana_chat .chat-body.targetActive .dropTargeted {
	display: unset;
}

#ventana_chat[hidden] {
	display: none;
}

/* typing */
#ventana_chat:not(.typing, [typing]) .typing,
x-user:not([typing], .typing) .typing {
	display: none;
}
#ventana_chat .typing,
x-user .typing {
	margin-left: 3px;
	font-size: initial;
}
#ventana_chat .typing:before,
x-user .typing:before {
	content: '‥';
	vertical-align: middle;
}
#ventana_chat .typing i:before,
x-user .typing i:before {
	font-family: 'Flaticon';
	font-size: .5em;
	content: "\f13a";
}

#chat_content.loading > *:not(.query) {
	display: none;
}

#ventana_chat #chat_content > msg > a.no-hide-href {
	margin-inline: .2em;
	padding-inline: .2em;
}

#save_as, #chat_filters_geo {
	appearance: auto;
	margin-bottom: unset;
	line-height: 1em;
	padding: 0 .4em 0 .4em;
}

#select_webcam {
	display: inline-block;
}
#select_webcam select {
	padding: 0 .5em;
	width: 10em;
}
#select_webcam select:hover {
	width: auto;
}

.emoji-picker__wrapper {
	z-index: 200;
}

#remoteStream {
	z-index: 11;
}

#chat_iddle {
	display: none;
}

.afk #chat_iddle {
	display: unset;
}
#zona-derecha > #header > .barra-top-info > div > a > data[open-webcams] {
	padding-left: .5em;
}
#zona-derecha > #header > .barra-top-info > div:has(>a>data[open-webcams][value="0"]) > * {
	display: none;
}