/* ATGen — tablas de estudios. Valores relevados del front de wpDataTables (26/11/2026). */

.atgen-tabla {
	position: relative;
	color: #6b7280;
}

/* Buscador */
.atgen-tabla__busqueda {
	position: relative;
	margin: 0 0 12px;
}
.atgen-tabla__lupa {
	position: absolute;
	left: 8px;
	top: 50%;
	width: 25px;
	height: 25px;
	transform: translateY(-50%);
	color: #c01a1d;
	pointer-events: none;
}
.atgen-tabla .atgen-tabla__buscar {
	box-sizing: border-box;
	display: block;
	width: 100%;
	height: 45px;
	margin: 0;
	padding: 0 12px 0 40px;
	border: 2px solid #c01a1d;
	border-radius: 0;
	background: #fff;
	box-shadow: none;
	color: #6b7280;
	font: 400 16px/1.2 Inter, sans-serif;
	-webkit-appearance: none;
	appearance: none;
}
.atgen-tabla .atgen-tabla__buscar:focus {
	outline: 2px solid #c01a1d;
	outline-offset: 1px;
}

/* Tabla */
.atgen-tabla__scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
.atgen-tabla .atgen-tabla__tabla {
	width: 100%;
	margin: 0;
	border-collapse: separate;
	border-spacing: 0;
	background: transparent;
}
.atgen-tabla .atgen-tabla__tabla th {
	padding: 4px 18px 4px 12px;
	border: 3px solid #f5f0eb;
	background: #cc1517;
	color: #fff;
	font: 500 12px/36px Inter, sans-serif;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	text-align: left;
	vertical-align: middle;
	white-space: nowrap;
}
.atgen-tabla .atgen-tabla__orden {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
	cursor: pointer;
}
.atgen-tabla .atgen-tabla__orden::after {
	content: "\2191"; /* ↑ */
	font-size: 12px;
}
.atgen-tabla th[aria-sort="descending"] .atgen-tabla__orden::after {
	content: "\2193"; /* ↓ */
}
.atgen-tabla .atgen-tabla__orden:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}
.atgen-tabla .atgen-tabla__tabla td {
	padding: 10px;
	border: 0;
	border-top: 1px solid #f5f7fa;
	border-left: 1px solid #f5ddef;
	background: #fff;
	color: #6b7280;
	font: 400 12px/normal Arial, Helvetica, sans-serif;
	text-align: left;
	vertical-align: middle;
	white-space: nowrap;
}
.atgen-tabla .atgen-tabla__tabla td:first-child {
	color: #cc1517;
	font-weight: 500;
}
.atgen-tabla .atgen-tabla__tabla tbody tr:nth-child(even) td {
	background: #f9fafb;
}
.atgen-tabla .atgen-tabla__tabla tr[hidden] {
	display: none;
}

/* Sin resultados / sin datos */
.atgen-tabla__vacio {
	margin: 0;
	padding: 10px;
	background: #fff;
	color: #6b7280;
	font: 400 12px/normal Arial, Helvetica, sans-serif;
	text-align: center;
}
.atgen-tabla__vacio[hidden] {
	display: none;
}
.atgen-tabla--sin-datos p,
.atgen-tabla--error {
	padding: 16px;
	background: #fff;
	color: #6b7280;
}

/* Pie: contador + paginación */
.atgen-tabla__pie {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
}
.atgen-tabla__contador {
	margin: 17px 0 0 20px;
	color: #6b7280;
	font: 400 14px/normal Ubuntu, sans-serif;
}
.atgen-tabla__paginas {
	margin: 6px 0 0;
	padding: 2px 0 0;
}
.atgen-tabla .atgen-tabla__pagina {
	min-width: 30px;
	margin: 3px;
	padding: 9px 7px 7px;
	border: 0;
	border-radius: 6px;
	background: none;
	box-shadow: none;
	color: #6b7280;
	font: 400 14px/normal Inter, sans-serif;
	cursor: pointer;
}
.atgen-tabla .atgen-tabla__pagina--actual {
	color: #a8157f;
}
.atgen-tabla .atgen-tabla__pagina:disabled {
	color: #c0c4cc;
	cursor: default;
}
.atgen-tabla .atgen-tabla__pagina:focus-visible {
	outline: 2px solid #c01a1d;
	outline-offset: 1px;
}
.atgen-tabla__elipsis {
	display: inline-block;
	min-width: 30px;
	margin: 3px;
	text-align: center;
	font: 400 14px/normal Inter, sans-serif;
}

/* Encabezado fijo (clon del thead) */
.atgen-tabla.atgen-tabla__fijo {
	position: fixed;
	z-index: 90;
	overflow: hidden;
}
.atgen-tabla.atgen-tabla__fijo[hidden] {
	display: none;
}
.atgen-tabla.atgen-tabla__fijo .atgen-tabla__tabla {
	width: auto;
	table-layout: fixed;
}
.atgen-tabla.atgen-tabla__fijo .atgen-tabla__tabla th {
	box-sizing: border-box;
}

@media (max-width: 767px) {
	.atgen-tabla__pie {
		flex-direction: column;
		align-items: center;
	}
	.atgen-tabla__contador {
		margin: 17px 0 0;
		text-align: center;
	}
	.atgen-tabla__paginas {
		display: flex;
		flex-wrap: nowrap;
		justify-content: center;
	}
	.atgen-tabla .atgen-tabla__pagina,
	.atgen-tabla__elipsis {
		min-width: 26px;
		margin: 1px;
		padding-left: 4px;
		padding-right: 4px;
	}
}

/* Formulario nativo de contraseña en Argentina (#2795) y Paraguay (#3002) */
body.page-id-2795 .post-password-form,
body.page-id-3002 .post-password-form {
	max-width: 520px;
	margin: 40px auto;
	color: #6b7280;
}
body.page-id-2795 .post-password-form input[type="password"],
body.page-id-3002 .post-password-form input[type="password"] {
	box-sizing: border-box;
	height: 45px;
	padding: 0 12px;
	border: 2px solid #c01a1d;
	border-radius: 0;
	font: 400 16px Inter, sans-serif;
}
body.page-id-2795 .post-password-form input[type="submit"],
body.page-id-3002 .post-password-form input[type="submit"] {
	height: 45px;
	padding: 0 24px;
	border: 0;
	border-radius: 6px;
	background: #cc1517;
	color: #fff;
	font: 500 14px Inter, sans-serif;
	cursor: pointer;
}
