/* Panel de talleres [tec_panel] — pensado primero para celular y tableta. */
.tec-panel {
	--tp-azul: #1f3a5f;
	--tp-azul-claro: #e8eef6;
	--tp-verde: #1e7d45;
	--tp-verde-claro: #e3f4ea;
	--tp-ambar: #8a5a00;
	--tp-ambar-claro: #fdf1d8;
	--tp-rojo: #b32d2e;
	--tp-borde: #d7dce3;
	--tp-texto: #1d2327;
	--tp-gris: #5f6b7a;
	--tp-fondo: #ffffff;
	--tp-fondo2: #f5f7fa;
	color: var(--tp-texto);
	font-size: 16px;
	line-height: 1.45;
	max-width: 960px;
	margin: 0 auto;
	box-sizing: border-box;
}
.tec-panel *, .tec-panel *::before, .tec-panel *::after { box-sizing: border-box; }
.tec-panel h2, .tec-panel h3 { margin: 0 0 6px; line-height: 1.25; color: var(--tp-texto); }
.tec-panel a { color: var(--tp-azul); }
.tec-panel .tp-sub { display: block; color: var(--tp-gris); font-size: 14px; }

/* Barra superior */
.tp-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; align-items: center; padding: 10px 0 12px; border-bottom: 1px solid var(--tp-borde); margin-bottom: 14px; }
.tp-marca { font-weight: 700; font-size: 18px; text-decoration: none; }
.tp-usuario { font-size: 14px; color: var(--tp-gris); }

/* Avisos */
.tp-aviso { padding: 12px 14px; border-radius: 8px; margin: 0 0 14px; border-left: 4px solid; background: var(--tp-fondo2); }
.tp-aviso-success { border-color: var(--tp-verde); background: var(--tp-verde-claro); }
.tp-aviso-warning, .tp-aviso-info { border-color: var(--tp-ambar); background: var(--tp-ambar-claro); }
.tp-aviso-error { border-color: var(--tp-rojo); background: #fbeaea; }

/* Inicio */
.tp-h2 { font-size: 18px; margin: 18px 0 8px !important; }
.tp-vacio { color: var(--tp-gris); margin: 4px 0 10px; }
.tp-tarjetas { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 640px) { .tp-tarjetas { grid-template-columns: 1fr 1fr; } }
.tp-tarjeta { display: block; padding: 14px; border: 1px solid var(--tp-borde); border-radius: 10px; background: var(--tp-fondo); text-decoration: none; color: inherit !important; }
.tp-tarjeta:hover, .tp-tarjeta:focus { border-color: var(--tp-azul); box-shadow: 0 0 0 1px var(--tp-azul); }
.tp-tarjeta strong { display: block; font-size: 17px; margin-bottom: 2px; color: var(--tp-azul); }
.tp-cifras { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 14px; color: var(--tp-gris); }
.tp-cifras b { color: var(--tp-texto); font-size: 16px; }
.tp-alerta, .tp-alerta b { color: var(--tp-ambar) !important; }
.tp-cifras-grandes b { font-size: 22px; }

/* Fecha */
.tp-volver { margin: 0 0 8px; font-size: 15px; }
.tp-cabecera { padding-bottom: 6px; }
.tp-cabecera h2 { font-size: 21px; }
.tp-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--tp-borde); margin: 12px 0 14px; overflow-x: auto; }
.tp-tabs a { flex: 1 0 auto; text-align: center; padding: 10px 8px; font-size: 15px; text-decoration: none; font-weight: 600; color: var(--tp-gris); border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tp-tabs a.tp-activa { color: var(--tp-azul); border-bottom-color: var(--tp-azul); }
.tp-nota { font-size: 14px; color: var(--tp-gris); margin: 8px 0; }

.tec-panel .tp-buscar { width: 100%; padding: 12px 14px; font-size: 16px; border: 1px solid var(--tp-borde); border-radius: 8px; margin: 0 0 10px; background: var(--tp-fondo); }
.tp-lista { list-style: none; margin: 0; padding: 0; border: 1px solid var(--tp-borde); border-radius: 10px; overflow: hidden; }
.tp-fila { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--tp-borde); background: var(--tp-fondo); margin: 0; }
.tp-fila:first-child { border-top: 0; }
.tp-fila[hidden] { display: none; }
.tp-persona { flex: 1; min-width: 0; }
.tp-persona strong { display: block; font-size: 16px; }
.tp-persona .tp-sub { overflow-wrap: anywhere; }
.tp-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.tp-chip { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--tp-azul-claro); color: var(--tp-azul); }
.tp-chip-ok { background: var(--tp-verde-claro); color: var(--tp-verde); }
.tp-chip-alerta { background: var(--tp-ambar-claro); color: var(--tp-ambar); }
.tp-chip-pend { background: #f0f0f1; color: #50575e; }

.tec-panel .tp-asistio { flex: 0 0 auto; min-width: 112px; min-height: 46px; padding: 8px 14px; font-size: 16px; font-weight: 600; border-radius: 8px; border: 2px solid var(--tp-azul); background: var(--tp-fondo); color: var(--tp-azul); cursor: pointer; }
.tec-panel .tp-asistio.tp-si { background: var(--tp-verde); border-color: var(--tp-verde); color: #fff; }
.tec-panel .tp-asistio:disabled { opacity: .6; cursor: wait; }

/* Botones */
.tec-panel .tp-btn, .tec-panel .button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 16px; font-size: 15px; font-weight: 600; border-radius: 8px; border: 1px solid var(--tp-azul); background: var(--tp-fondo); color: var(--tp-azul); cursor: pointer; text-decoration: none; line-height: 1.2; }
.tec-panel .tp-btn-primario, .tec-panel .button-primary { background: var(--tp-azul); color: #fff !important; }
.tp-certs { margin: 18px 0 6px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }

/* Cajas */
.tp-caja { border: 1px solid var(--tp-borde); border-radius: 10px; padding: 14px; margin: 0 0 12px; background: var(--tp-fondo); }
.tp-login { max-width: 420px; margin: 20px auto; }
.tp-login form p { margin: 0 0 12px; }
.tp-login label { display: block; font-weight: 600; margin-bottom: 4px; }
.tp-login input[type=text], .tp-login input[type=password] { width: 100%; padding: 12px; font-size: 16px; border: 1px solid var(--tp-borde); border-radius: 8px; }
.tp-login .login-remember label { font-weight: 400; display: inline; }
.tp-login input[type=submit] { width: 100%; min-height: 46px; font-size: 16px; font-weight: 600; border: 0; border-radius: 8px; background: var(--tp-azul); color: #fff; cursor: pointer; }
.tp-imprimir { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tp-imprimir label { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.tp-imprimir input[type=number] { width: 70px; padding: 8px; font-size: 16px; border: 1px solid var(--tp-borde); border-radius: 6px; }

/* Formularios del plugin reutilizados (cobro, llegó sin inscribirse, Teams) */
.tec-panel details > summary { cursor: pointer; font-weight: 600; color: var(--tp-azul); padding: 6px 0; list-style-position: inside; }
.tec-panel details[open] > summary { margin-bottom: 8px; }
.tec-panel details form label { display: block; font-size: 14px; font-weight: 600; margin: 0 0 10px; }
.tec-panel details form input[type=text], .tec-panel details form input[type=email], .tec-panel details form input[type=number], .tec-panel details form input[type=date], .tec-panel details form select { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; font-size: 16px; border: 1px solid var(--tp-borde); border-radius: 8px; background: var(--tp-fondo); font-weight: 400; }
.tec-panel details form input[type=checkbox] { width: 20px; height: 20px; vertical-align: middle; margin-right: 6px; }
.tec-panel details form input[type=file] { max-width: 100%; font-size: 15px; }
.tec-panel details .description, .tec-panel .tec-saldo-aviso { font-size: 14px; color: var(--tp-gris); margin: 6px 0 10px; }
.tec-panel .tec-saldo-aviso { color: var(--tp-verde); }
.tec-panel .tec-cobro-grupo { padding: 10px; background: var(--tp-fondo2); border-radius: 8px; margin: 0 0 10px; font-size: 14px; }
.tec-panel .tec-cobro-grupo label { font-weight: 400; margin: 6px 0 0; }
.tec-panel .tec-sin-grid { display: grid; grid-template-columns: 1fr; gap: 0 12px; }
@media (min-width: 640px) { .tec-panel .tec-sin-grid { grid-template-columns: 1fr 1fr; } }
.tec-panel .tec-teams form p { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tec-panel .tec-teams form p label { margin: 0; }
.tec-panel .tec-teams input[name=minimo] { width: 90px; display: inline-block; }

.tp-fila-cobro { flex-direction: column; align-items: stretch; }
.tp-cobro details > summary { display: inline-flex; min-height: 44px; align-items: center; padding: 8px 16px; border: 1px solid var(--tp-azul); border-radius: 8px; }
.tp-cobro details[open] > summary { background: var(--tp-azul-claro); }
.tp-cobro .tp-cambio { margin-top: 8px; }
.tp-persona .tp-cambio { margin-top: 6px; }
.tp-persona .tp-cambio > summary { display: inline; cursor: pointer; color: var(--tp-azul); font-size: 14px; text-decoration: underline; }
.tp-cambio form { margin-top: 8px; padding: 10px; background: var(--tp-fondo2); border-radius: 8px; }
.tp-cambio form label { display: block; margin: 0 0 8px; font-size: 15px; }
.tp-cambio select { width: 100%; min-height: 44px; font-size: 16px; }

/* Vista previa del informe de Teams */
.tec-panel .tec-teams-prev h2 { font-size: 18px; }
.tec-panel .tec-resumen { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin: 10px 0; }
.tec-panel .tec-resumen div { border: 1px solid var(--tp-borde); border-radius: 8px; padding: 8px 10px; }
.tec-panel .tec-resumen strong { display: block; font-size: 20px; }
.tec-panel .tec-resumen span { font-size: 13px; color: var(--tp-gris); }
.tec-panel .tec-teams-tabla { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0; display: block; overflow-x: auto; }
.tec-panel .tec-teams-tabla th, .tec-panel .tec-teams-tabla td { padding: 8px; border-bottom: 1px solid var(--tp-borde); text-align: left; vertical-align: top; }
.tec-panel .tec-teams-tabla td.tec-teams-corto { color: var(--tp-rojo); font-weight: 600; }
.tec-panel .tec-teams-tabla td:nth-child(3) { white-space: nowrap; }
.tec-panel .tec-teams-org td { color: var(--tp-gris); }
.tec-panel .tec-teams-tabla input[type=checkbox] { width: 22px; height: 22px; }
.tec-panel .tec-chip { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--tp-azul-claro); }
.tec-panel .tec-chip-ok { background: var(--tp-verde-claro); color: var(--tp-verde); }
.tec-panel .tec-chip-parcial { background: var(--tp-ambar-claro); color: var(--tp-ambar); }
.tec-panel .tec-imp-botones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tec-panel details form label.tec-cobro-correo { font-size: 15px; }

/* Inscribir participante */
.tp-acciones { margin: 0 0 6px; }
.tec-panel .tp-btn-chico { min-height: 36px; padding: 6px 12px; font-size: 14px; margin-left: 10px; }
.tp-volver { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: space-between; }
.tp-insc .tp-caja h3 { font-size: 17px; margin-bottom: 10px; }
.tp-grid { display: grid; grid-template-columns: 1fr; gap: 0 12px; }
@media (min-width: 640px) { .tp-grid { grid-template-columns: 1fr 1fr; } }
.tec-panel .tp-campo { display: block; font-size: 14px; font-weight: 600; margin: 0 0 10px; }
.tec-panel .tp-campo input, .tec-panel .tp-campo select { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; font-size: 16px; border: 1px solid var(--tp-borde); border-radius: 8px; background: var(--tp-fondo); font-weight: 400; }
.tec-panel .tp-opcion { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--tp-borde); border-radius: 8px; margin: 0 0 8px; cursor: pointer; font-weight: 400; }
.tec-panel .tp-opcion input { width: 22px; height: 22px; margin: 1px 0 0; flex: 0 0 auto; }
.tec-panel .tp-opcion:has(input:checked) { border-color: var(--tp-azul); background: var(--tp-azul-claro); }
.tp-resultados { display: grid; gap: 6px; margin: -4px 0 10px; }
.tec-panel .tp-resultado { text-align: left; padding: 10px 12px; border: 1px solid var(--tp-borde); border-radius: 8px; background: var(--tp-fondo2); cursor: pointer; font-size: 15px; color: var(--tp-texto); }
.tec-panel .tp-resultado:hover, .tec-panel .tp-resultado:focus { border-color: var(--tp-azul); }
.tp-persona-info { background: var(--tp-ambar-claro); color: var(--tp-texto); padding: 8px 10px; border-radius: 8px; }
.tp-pagado { margin-top: 6px; }
.tec-panel [hidden] { display: none !important; }

/* Botones: anular estilos del tema (relleno, interlineado, sombras) para que el texto quede centrado. */
.tec-panel button, .tec-panel .tp-btn, .tec-panel .button, .tec-panel .tp-asistio, .tec-panel input[type=submit] {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	text-align: center !important;
	line-height: 1.2 !important;
	padding-top: 8px !important;
	padding-bottom: 8px !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	vertical-align: middle;
	font-family: inherit !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	text-decoration: none !important;
	box-shadow: none;
	box-sizing: border-box;
	height: auto;
}
.tec-panel .tp-asistio { min-height: 44px !important; min-width: 0 !important; padding: 8px 16px !important; font-size: 15px !important; font-weight: 600 !important; border-width: 1px !important; }
.tec-panel .tp-resultado { display: block !important; text-align: left !important; }
.tec-panel .tp-fila { align-items: center; }

/* Cotejo de pagos */
.tp-cotejo-res a { text-decoration: none; color: var(--tp-gris); padding: 6px 10px; border: 1px solid var(--tp-borde); border-radius: 8px; }
.tp-cotejo-res a.tp-sel { border-color: var(--tp-azul); background: var(--tp-azul-claro); color: var(--tp-azul); }
.tp-cotejo-res small { font-size: 12px; }
.tp-filtros .tp-grid { grid-template-columns: 1fr; }
@media (min-width: 640px) { .tp-filtros .tp-grid { grid-template-columns: repeat(3, 1fr); } }
.tp-cot { align-items: flex-start !important; }
.tp-cot-check { padding-top: 2px; }
.tp-cot-check input { width: 22px; height: 22px; }
.tp-cot-ok { background: #f6fbf8; }
.tp-cot-dif { background: #fffaf0; }
.tp-cot-nota { color: var(--tp-ambar) !important; }
.tp-cot-acciones { position: sticky; bottom: 0; margin-top: 10px; box-shadow: 0 -2px 8px rgba(0,0,0,.06); }
.tp-cot-botones { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.tec-panel .tp-btn-alerta { border-color: var(--tp-ambar) !important; color: var(--tp-ambar) !important; }
.tp-cot-lista > li.tp-cot-grupo { border-top: 1px solid var(--tp-borde); margin: 0; padding: 0; list-style: none; }
.tp-cot-lista > li.tp-cot-grupo:first-child { border-top: 0; }
.tp-cot-cab { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px 6px; background: var(--tp-fondo2); }
.tp-cot-items { list-style: none; margin: 0; padding: 0 0 4px 34px; background: var(--tp-fondo2); }
.tp-cot-items .tp-fila { border-top: 1px dashed var(--tp-borde); border-radius: 0; padding: 10px 14px 10px 0; background: transparent; }
.tp-cot-items .tp-cot-ok { background: #f2faf5; }
.tp-cot-items .tp-cot-dif { background: #fff7e8; }
.tp-cot-items .tp-persona strong { font-size: 15px; }

/* Cotejo: talleres de la misma persona uno al lado del otro (en pantallas anchas) y más compactos. */
.tp-cot-items { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 4px 14px 12px 48px !important; }
@media (min-width: 700px) { .tp-cot-items { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
.tp-cot-items .tp-fila { border: 1px solid var(--tp-borde) !important; border-radius: 8px !important; padding: 10px 12px !important; background: var(--tp-fondo) !important; gap: 10px; }
.tp-cot-items .tp-cot-ok { background: #f2faf5 !important; border-color: #b9dfc7 !important; }
.tp-cot-items .tp-cot-dif { background: #fff7e8 !important; border-color: #f0d7a3 !important; }
.tec-panel .tp-cot .tp-sub, .tec-panel .tp-cot-cab .tp-sub { margin: 0 !important; line-height: 1.4 !important; }
.tec-panel .tp-cot .tp-persona > * + *, .tec-panel .tp-cot-cab .tp-persona > * + * { margin-top: 2px !important; }
.tec-panel .tp-cot .tp-chips { margin-top: 6px !important; }
.tp-cot-cab { padding: 12px 14px 8px !important; }
.tec-panel .tp-persona .tp-sub strong { display: inline !important; font-size: inherit !important; }
.tp-orden { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--tp-gris); margin: 10px 0; }
.tp-orden a { padding: 4px 10px; border: 1px solid var(--tp-borde); border-radius: 999px; text-decoration: none; color: var(--tp-gris); }
.tp-orden a.tp-sel { border-color: var(--tp-azul); background: var(--tp-azul-claro); color: var(--tp-azul); font-weight: 600; }
.tp-fila:has(.tp-cambio[open]) { flex-wrap: wrap; }
.tp-fila:has(.tp-cambio[open]) > .tp-persona { flex: 1 1 100%; }
/* Cotejo: deshacer y quitar cotejo */
.tp-aviso-deshacer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.tp-aviso-deshacer form { margin: 0; }
.tp-aviso-deshacer .tp-btn { min-height: 36px !important; padding: 4px 14px !important; }
.tec-panel button.tp-quitar-cot { background: none !important; border: 0 !important; padding: 0 !important; min-height: 0 !important; color: var(--tp-azul) !important; text-decoration: underline; font-size: 13px !important; cursor: pointer; box-shadow: none !important; width: auto !important; }
/* Cotejo: filtros ordenados (el tema/wpautop no deben mover los campos) */
.tec-panel .tp-filtros br, .tec-panel .tp-filtros p:empty { display: none !important; }
.tec-panel .tp-fgrid { display: grid !important; grid-template-columns: 1fr; gap: 12px 16px; margin: 12px 0 4px; }
.tec-panel .tp-fgrid > label.tp-campo { margin: 0 !important; }
@media (min-width: 640px) {
	.tec-panel .tp-fgrid { grid-template-columns: 1fr 1fr; }
	.tec-panel .tp-fgrid > .tp-f-buscar { grid-column: 1 / -1; }
}
.tec-panel .tp-fbotones { display: flex !important; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.tec-panel .tp-fbotones .tp-btn { margin: 0 !important; }
.tec-panel .tp-fbotones a.tp-btn[href*="exportar"] { margin-left: auto !important; }
