:root {
	--wpq-font-family:	Carlito, Calibri, "Trebuchet MS", "Segoe UI", Arial, sans-serif;
	--wpq-menu-back: #4f9799;
	--wpq-menu-link-back: #4f9799;
	--wpq-menu-hover-back: #2b6668;
	--wpq-submenu-back: #5d8183;
}
body {
	padding-bottom: 80px;
}
header {
	text-align: center;
}
#div-logo {
	font-size: 1.35em;
	font-weight: bold;
	color: #fff;
	background: #265aa6;
	border-bottom: 3px #1a2d4a solid;
	padding: 10px;
}
#logo {
	width: 100px;
	height: 100px;
	vertical-align: middle;
}
#wpq-nav.wpq-nav-fixed {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background: rgba(200, 200, 200, 0.5);
	padding-bottom: 10px;
	z-index: 900;
}
#contenido {
	width: 1100px;
	max-width: calc(100% - 20px);
	margin: 20px auto;
	padding: 0 10px 10px 10px;
	box-shadow: rgba(0, 0, 0, 0.2) 0px 12px 28px 0px,
		rgba(0, 0, 0, 0.1) 0px 2px 4px 0px,
		rgba(255, 255, 255, 0.05) 0px 0px 0px 1px inset;
}
#mensaje {
	max-width: 600px;
	overflow: hidden;
	margin: 20px auto;
	padding: 0 20px 20px 20px;
	border: 1px #888 solid;
	border-radius: 10px;
}
#mensaje h1 {
	display: block;
	font-size: 1.2em;
	margin: 0 -20px 20px -20px;
	padding: 5px 10px;
	color: #fff;
	background-color: #1a2d4a;
}
footer {
	position: fixed;
	bottom: 0;
	display: block;
	width: 100%;
	text-align: center;
	color: var(--wpq-footer);
	background: var(--wpq-footer-back);
	padding: 10px;
}
a.abutton {
	display:inline-block;
	font-family:var(--wpq-font-family);
	font-size: 0.95em;
	font-weight:600;
	vertical-align:middle;
	color:var(--wpq-button);
	background:var(--wpq-button-back);
	margin:6px;
	padding:4px 10px 6px 10px;
	border:none;
	border-radius:var(--wpq-radius-form);
	cursor:pointer;
}
a.abutton:hover {
	background:var(--wpq-button-hover);
	box-shadow:0 0 0 2px var(--wpq-button), 0 0 0 3px var(--wpq-button-hover);
}
button.wpq-form, input.wpq-form[type="button"], input.wpq-form[type="submit"], input.wpq-form[type="reset"], button.wpq-form-file-button {
	font-weight: bold;
}

.pad-izq { padding: 0 0 5px 110px; }
.mostrar {
	max-height: 1024px;
	opacity: 1;
	transition: all 0.3s ease;
}
.ocultar {
	max-height: 0px;
	overflow: hidden;
	opacity: 0;
	transition: all 0.3s ease;
}
.no-visible { display: none; }

.wpq-form-req {
	display: inline-block;
	font-weight: bolder;
	color: #a00;
	padding: 0 0 0 3px;
}
.wpqmsg.wpq-notif {
	color: var(--wpq-message);
	background-color: var(--wpq-message-warning);
	border: 2px #a50 solid;
}
/* ***** Modal Pagobus ***** */
#pbmodal {
	position:fixed;
	top:0;
	left:0;
	width:100vw;
	height:100vh;
	display:none;
	margin:0;
	padding:0;
	z-index: 999;
}
#pbmodal-fondo {
	position:relative;
	width:100%;
	height:100%;
	background:rgba(0, 0, 0, 0.65);
	backdrop-filter: blur(2px);
}
#pbmodal-contenido {
	position:absolute;
	top:50%;
	left:50%;
	max-width:1024px;
	width:80%;
	min-height:200px;
	max-height:80%;
	overflow: auto;
	background:#fff;
	border-radius:8px;
	box-shadow:3px 3px 5px rgba(0, 0, 0, 0.5);
	transform:translateX(-50%) translateY(-50%);
}
/* ***** Modal Pagobus ***** */
/* ***** formulario de sesión y otros contenedores FLEX ***** */
.wpq-form-ayuda {
	font-size: 0.9em;
	padding: 0 0 1em 1em;
}
p.wpq-form-error {
	color:var(--wpq-error-text);
	background:var(--wpq-error-back);
	padding: 2px 5px;
	border:1px var(--wpq-error) solid;
}
.wpq-form.seguimiento, .wpq-form.seguimiento-no, .abutton.alerta {
	background: #f60;
}
.wpq-form.seguimiento:hover, .wpq-form.seguimiento-no:hover, .abutton.alerta:hover {
	background: #a50;
	box-shadow:0 0 0 2px #fff, 0 0 0 3px #a50;
}
.abutton.no-recomendado { background: #889; }
.abutton.no-recomendado:hover {
	background: #668;
	box-shadow:0 0 0 2px #fff, 0 0 0 3px #668;
}

option:disabled { color: #ccc; }
fieldset.form-login {
	display: flex;
	flex-wrap: wrap;
	max-width: 300px;
	justify-content: center;
	margin: 60px auto 20px auto;
}
.form-login p {
	width: 100%;
}
.form-login div {
	width: 80%;
	padding-bottom: 0.5em;
}
.form-login label { display:block; }

.pb-form {
	max-width:600px;
	margin:20px auto;
}
.pb-form label.wpq-form {
	display: inline-block;
	width: 105px;
	font-size: 0.9em;
	text-align: right;
	vertical-align: top;
	margin: 0 0 2px 0;
	padding: 3px 0;
}
/* ********** Ajustar tamaño máximo de campos de formulario ************** */
fieldset {
	min-inline-size: 0;
}
input, select, textarea {
	max-width: 100%;
}
.pb-form textarea, #wpqmodal-content textarea {
	display: block;
	max-width: 80%;
	margin:0 auto;
}
.pb-form-center {
	text-align: center;
}
.pb-form-center label {
	display: inline-block;
	text-wrap: nowrap;
	padding: 2px;
}
label.etiq-bloque {
	display: block;
	width: auto;
	text-align: left;
	padding-left: 115px;
}

/* Botones específicos */
#btnFalloBusca { margin-left: 105px; }

.form-flex, .fieldset-flex, .div-flex {
	display: flex;
	flex-wrap: wrap;
	margin: 20px auto;
	gap: 20px;
	justify-content: space-around;
}
fieldset.form-flex {
	max-width: 400px;
	margin: 60px auto 20px auto;
}
.div-flex > .fieldset-flex {
	min-width: 400px;
	width: 45%;
	gap: 20px;
}
.form-flex > p, .fieldset-flex > p, .div-flex > p {
	width: 100%;
	text-align: center;
}
.form-flex > div, .fieldset-flex > div {
	width: 50%;
	padding: 0 5px;
}
.form-flex > div input, .fieldset-flex > div input {
	width: 100%;
}

.form-flex, .fieldset-flex label:not(.archivo):not(.wpq-form-block-input) {
	vertical-align: top;
	margin: 0 0 2px 0;
	padding: 3px 0;
}
.fieldset-flex section {
	width: 45%;
	min-width: 350px;
}
.fieldset-flex section h2 {
	font-size: 1.2em;
	font-weight: 600;
	margin: 0.5em 0;
	padding: 0 5px 3px 0;
	border-bottom: 2px var(--wpq-even) solid;
}
.fieldset-flex section label:not(.archivo):not(.wpq-form-block-input) {
	font-size: 0.85em;
	font-weight: 600;
	margin: 0.75em 0 0 0;
	padding: 0;
}
.fieldset-flex section input[type="text"], .fieldset-flex section select, .fieldset-flex section textarea {
	width: 100%;
}
/* Contraseñas */
span.wpq-password {
	position: relative;
	display: inline-block;
	pointer-events: none;
	z-index: 50;
}
span.wpq-password input.wpq-form {
	box-sizing: border-box;
	padding-right: 20px !important;
	pointer-events: all;
}
span.wpq-password::before {
	position: absolute;
	top: 7px;
	right: 7px;
	display: inline-block;
	content: '';
	width: 13px;
	height: 13px;
	border: 1px var(--wpq-input) solid;
	border-radius: 75% 15%;
	transform: rotate(45deg);
	cursor: pointer;
	pointer-events: all;
	z-index: 55;
}
span.wpq-password::after {
	position: absolute;
	top: 10px;
	right: 10px;
	display: inline-block;
	content: '';
	width: 7px;
	height: 7px;
	background: var(--wpq-input-border);
	border: 1px var(--wpq-input) solid;
	border-radius: 50%;
	cursor: pointer;
	pointer-events: all;
	z-index: 60;
}
/* Contraseñas */
/* ***** formulario de sesión y otros contenedores FLEX ***** */
/* ***** Tablas ***** */
table.tabla-resumen {
	max-width: 400px;
	margin: 0.3em auto;
}
table.responsive {
	border: 1px solid #ccc;
	border-collapse: collapse;
	margin: 20px auto;
	padding: 0;
	/* width: 100%; */
	table-layout: auto;
}
table.responsive caption {
	font-size: 1.35em;
	font-weight: 600;
	margin: 0.3em;
}
table.responsive tr {
	background-color: var(--wpq-odd);
	border: 1px solid #ddd;
	padding: .35em;
}
/* table.responsive tr:nth-child(even) {
	background: var(--wpq-even)
} */
table.responsive th, table.responsive td {
	padding: .625em;
}
table.responsive th {
	font-size: .85em;
	text-align: center;
	color: #ddd;
	background: #3e7274;
}
table.responsive th a {
	color: #fc0;
}
table.responsive tfoot td {
	font-weight: 600;
	background: #cfcfcf;
}

/* Prioridades y estados de ticket */
.prio-baja { background: #8b8; }
.prio-media { background: #bb4; }
.prio-alta { background: #f60; }
.prio-urgente { background: #a00; }

.folio-estado {
	font-size: 1.2em;
	font-weight: bold;
	background: #bcf;
}

table.responsive tr.cancelado-falso, tr.cancelado-falso { background: #ddd; }
table.responsive tr.nuevo-atendido, tr.nuevo-atendido { background: #fca;}
table.responsive tr.asignado-tercero, tr.asignado-tercero { background: #dfd;}
table.responsive tr.solucionado, tr.solucionado { background: #fff;}

tr.cancelado-falso td.prio-urgente, tr.cancelado-falso td.prio-alta,
	tr.cancelado-falso td.prio-media, tr.cancelado-falso td.prio-baja { background: #bbb; }
tr.solucionado td.prio-urgente, tr.solucionado td.prio-alta,
	tr.solucionado td.prio-media, tr.solucionado td.prio-baja { background: #ccc; }
/* Prioridades y estados de ticket */

/* ***** Tablas ***** */
/* ***** Responsivo ***** */
@media screen and (max-width: 1140px) {
	table.tabla-resumen.responsive {
		max-width: 400px;
		margin: 20px auto;
	}
	table.responsive {
		max-width: calc(100% - 40px);
		margin: 20px auto;
		border: 0;
	}
}
@media screen and (max-width: 800px) {
	html, body { font-size: 0.95em; }
	#logo {
		width: 60px;
		height: 60px;
	}
	table.tabla-resumen.responsive {
		max-width: 500px;
		margin: 20px auto;
	}
	table.responsive {
		border: 0;
		table-layout: fixed;
	}
  	table.responsive caption { font-size: 1.3em; }
	table.responsive thead {
		border: none;
		clip: rect(0 0 0 0);
		height: 1px;
		margin: -1px;
		overflow: hidden;
		padding: 0;
		position: absolute;
		width: 1px;
	}
	table.responsive tr {
		border-bottom: 3px solid #ddd;
		display: block;
		margin-bottom: .625em;
	}
	table.responsive td {
		border-bottom: 1px solid #ddd;
		display: flex;
	}
	table.responsive td::before {
		content: attr(data-label);
		font-weight: 700;
		text-align: left;
		width: 100px;
		margin-right: 10px;
	}
	table.responsive td:last-child { border-bottom: 0; }
}

@media screen and (max-width: 640px) {
	.form-flex fieldset {
		max-width: calc(100% - 40px);
		margin: 20px auto;
	}
	.form-flex textarea { max-width: calc(100% - 80px); }
}

@media screen and (max-width: 600px) {
	#wpqmodal-window, #pbmodal-contenido { width: calc(100% - 45px); }
	#wpqmodal-content, #pbmodal-contenido { padding:10px; }
	fieldset.wpq-form { padding:10px; }
	textarea { min-width: 90%; }
	.pb-form label {
		display: block;
	}
	.pb-form label.wpq-form {
		display: block;
		font-size: 0.9em;
		text-align: left;
		margin: 2px 0 0 0;
		padding: 3px 0 0 0;
	}
	.pad-izq { padding: 0 0 5px 0; }
}

@media screen and (max-width: 500px) {
	#wpqmsg-topleft, #wpqmsg-topcenter, #wpqmsg-topright, #wpqmsg-bottomleft, #wpqmsg-bottomcenter, #wpqmsg-bottomright {
		max-width: 80%;
	}
	#wpqalert-window { min-width: 280px; }
}

@media screen and (max-width: 400px) {
	html, body { font-size: 0.9em; }
	header, footer { font-size: 0.8em; }
	#logo {
		width: 35px;
		height: 35px;
	}
}
/* ***** Responsivo ***** */
