﻿.center {
	text-align:center;
	}
.center-page{
	position: absolute;
	left:50%;
	width: 970px;
	margin-left: -485px;
	
	/*
	position : absolute;    
    width    : 200px;
    height   : 200px;
    left     : 50%;
    top      : 50%;
    margin-left : -100px; 
    margin-top  : -100px; 

  */ 


	/*
	width:300px; 
	height:300px; 
	position:absolute;
	
	top:-40px; 
	bottom:0;
	left:0;
	right:0;	
	margin:auto; 
	*/
		  
	
	  
}
.space-vert
{
	margin-top:20px;
}
.footer-pos
{
	width:auto;
	height:auto;
	position:absolute;	
	top:600px;
	bottom:0;
	left:0;
	right:0;	
	margin:auto;   
}
body
{
	padding-top: 50px;
}

/* ========== DASHBOARD RESPONSIVE ========== */

.dashboard-container {
	padding: 15px 0;
}

@media (max-width: 768px) {
	.dashboard-container {
		padding: 10px 0;
	}
}

/* Stats Section */
.stats-section {
	margin-bottom: 25px;
}

.stats-section .panel {
	margin-bottom: 0;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stats-section .panel:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.stats-section .panel-heading {
	padding: 20px;
}

.stats-section .huge {
	font-size: 28px;
	font-weight: bold;
	display: block;
	margin-bottom: 5px;
}

/* Flag Image */
.flag-image {
	max-width: 120px;
	height: auto;
	margin: 10px 0;
	border-radius: 4px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.flag-thumbnail {
	max-width: 40px;
	height: auto;
	border-radius: 3px;
}

/* ========== TABS STYLING ========== */

.nav-tabs-groups {
	background-color: #f9f9f9;
	border-bottom: 2px solid #007bff;
	margin-bottom: 15px;
	border-radius: 0;
}

.nav-tabs-groups > li {
	margin-right: 2px;
}

.nav-tabs-groups > li > a {
	color: #666;
	border: 1px solid transparent;
	border-radius: 4px 4px 0 0;
	transition: all 0.2s ease;
	padding: 10px 12px;
	font-size: 12px;
	font-weight: 600;
}

.nav-tabs-groups > li > a i {
	margin-right: 5px;
}

.nav-tabs-groups > li.active > a,
.nav-tabs-groups > li.active > a:hover,
.nav-tabs-groups > li.active > a:focus {
	background-color: #007bff;
	color: white;
	border: 1px solid #007bff;
}

.nav-tabs-groups > li > a:hover {
	background-color: #e8e8e8;
	border-color: #ddd;
	color: #333;
}

.tab-content-groups {
	padding: 15px 0;
	border: 1px solid #e8e8e8;
	border-top: 0;
	background-color: #fafafa;
	border-radius: 0 0 4px 4px;
	padding: 15px;
}

.tab-pane {
	animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* ========== GRID COMPACT (Grupos) ========== */

.btn-grid-compact {
	display: grid;
	gap: 8px;
	margin-bottom: 10px;
}

/* Mobile: 2 botones por fila */
@media (max-width: 576px) {
	.btn-grid-compact {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Tablet pequeño: 3 botones por fila */
@media (min-width: 577px) and (max-width: 768px) {
	.btn-grid-compact {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Tablet grande y desktop: 3 botones por fila */
@media (min-width: 769px) {
	.btn-grid-compact {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Base - Verde Lima con gradiente */
.btn-grid-compact .btn {
	padding: 8px 6px;
	font-size: 11px;
	font-weight: 700;
	border-radius: 6px;
	border: none;
	color: #fff;
	background: linear-gradient(135deg, #32CD32 0%, #228B22 100%);
	transition: all 0.15s ease;
	min-height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	cursor: pointer;
}

/* Fila 1: Grupos A-C (sombra suave) */
.btn-grid-compact .btn:nth-child(1),
.btn-grid-compact .btn:nth-child(2),
.btn-grid-compact .btn:nth-child(3) {
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2),
	            0 0 1px rgba(255, 255, 255, 0.3) inset;
}

/* Fila 2: Grupos D-F (sombra media) */
.btn-grid-compact .btn:nth-child(4),
.btn-grid-compact .btn:nth-child(5),
.btn-grid-compact .btn:nth-child(6) {
	box-shadow: 0 5px 10px rgba(0, 0, 0, 0.25),
	            0 0 1px rgba(255, 255, 255, 0.3) inset;
}

/* Fila 3: Grupos G-I (sombra media) */
.btn-grid-compact .btn:nth-child(7),
.btn-grid-compact .btn:nth-child(8),
.btn-grid-compact .btn:nth-child(9) {
	box-shadow: 0 5px 10px rgba(0, 0, 0, 0.25),
	            0 0 1px rgba(255, 255, 255, 0.3) inset;
}

/* Fila 4: Grupos J-L (sombra pronunciada) */
.btn-grid-compact .btn:nth-child(10),
.btn-grid-compact .btn:nth-child(11),
.btn-grid-compact .btn:nth-child(12) {
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3),
	            0 0 1px rgba(255, 255, 255, 0.3) inset;
}

/* Hover: Levantar botón */
.btn-grid-compact .btn:hover {
	transform: translateY(-2px);
	background: linear-gradient(135deg, #90EE90 0%, #32CD32 100%);
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Active: Bajar botón */
.btn-grid-compact .btn:active {
	transform: translateY(1px);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ========== GRID FINAL (Fases Finales) ========== */

.btn-grid-final {
	display: grid;
	gap: 10px;
	margin-bottom: 10px;
}

/* Mobile: 1 botón por fila */
@media (max-width: 576px) {
	.btn-grid-final {
		grid-template-columns: 1fr;
	}
}

/* Tablet y Desktop: 3 botones por fila */
@media (min-width: 577px) {
	.btn-grid-final {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Base - Verde Lima con gradiente */
.btn-grid-final .btn {
	padding: 8px 6px;
	font-size: 11px;
	font-weight: 700;
	border-radius: 6px;
	border: none;
	color: #fff;
	background: linear-gradient(135deg, #32CD32 0%, #228B22 100%);
	transition: all 0.15s ease;
	min-height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	white-space: normal;
	cursor: pointer;
}

/* Fila 1: Dieciseisavos-Octavos-Cuartos */
.btn-grid-final .btn:nth-child(1),
.btn-grid-final .btn:nth-child(2),
.btn-grid-final .btn:nth-child(3) {
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2),
	            0 0 1px rgba(255, 255, 255, 0.3) inset;
}

/* Fila 2: Semifinales-Tercer Puesto-Final */
.btn-grid-final .btn:nth-child(4),
.btn-grid-final .btn:nth-child(5),
.btn-grid-final .btn:nth-child(6) {
	box-shadow: 0 5px 10px rgba(0, 0, 0, 0.25),
	            0 0 1px rgba(255, 255, 255, 0.3) inset;
}

/* Hover: Levantar botón */
.btn-grid-final .btn:hover {
	transform: translateY(-2px);
	background: linear-gradient(135deg, #90EE90 0%, #32CD32 100%);
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

/* Active: Bajar botón */
.btn-grid-final .btn:active {
	transform: translateY(1px);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Botón "Toda mi Quinela" debajo de tabs */
.btn-outline-primary {
	background-color: #fff;
	border: 2px solid #007bff;
	color: #007bff;
	font-weight: bold;
	transition: all 0.2s ease;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
	background-color: #007bff;
	color: white;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.mt-3 {
	margin-top: 15px !important;
}

/* ========== SECTION TITLES ========== */

.section-title {
	font-size: 18px;
	font-weight: 600;
	color: #2c3e50;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid #007bff;
}

.section-title i {
	margin-right: 8px;
	color: #007bff;
}

/* ========== RULES INFO ========== */

.rules-info {
	background-color: #d1ecf1;
	border: 1px solid #bee5eb;
	border-radius: 4px;
	padding: 15px;
	margin-top: 20px;
}

.rules-info h5 {
	color: #0c5460;
	font-weight: 600;
	margin-top: 0;
}

.rules-list {
	margin-bottom: 0;
	padding-left: 20px;
	color: #0c5460;
}

.rules-list li {
	margin-bottom: 8px;
	line-height: 1.5;
}

/* ========== RANKING TABLE ========== */

.ranking-table-wrapper {
	background: white;
	border-radius: 4px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.table-ranking {
	margin-bottom: 0;
	border-collapse: collapse;
}

.table-ranking thead th {
	background-color: #f5f5f5;
	border-bottom: 2px solid #dee2e6;
	color: #2c3e50;
	font-weight: 600;
	padding: 12px 8px;
	text-align: left;
}

.table-ranking tbody td {
	padding: 12px 8px;
	border-bottom: 1px solid #dee2e6;
	vertical-align: middle;
}

.table-ranking tbody tr:hover {
	background-color: #f9f9f9;
	transition: background-color 0.15s ease;
}

.table-ranking tbody tr.selected {
	background-color: #d1ecf1 !important;
	border-left: 3px solid #0c5460;
}

/* Ranking Position */
.ranking-position {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	font-weight: bold;
	font-size: 14px;
	background-color: #f5f5f5;
	color: #2c3e50;
}

/* Top 3 Medals */
.ranking-position.top-1 {
	background-color: #FFD700;
	color: #333;
	font-size: 16px;
}

.ranking-position.top-2 {
	background-color: #C0C0C0;
	color: #333;
	font-size: 16px;
}

.ranking-position.top-3 {
	background-color: #CD7F32;
	color: white;
	font-size: 16px;
}

/* Top 10 Highlight */
.ranking-top-10 {
	background-color: #d4edda;
}

/* Content Section */
.content-section {
	background-color: #ffffff;
	border-radius: 4px;
	padding: 15px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
	.content-section {
		padding: 10px;
	}

	.groups-column,
	.ranking-column {
		margin-bottom: 20px;
	}
}

/* ========== RESPONSIVE ADJUSTMENTS ========== */

@media (max-width: 768px) {
	.section-title {
		font-size: 16px;
		margin-bottom: 15px;
	}

	.table-ranking thead th {
		font-size: 12px;
		padding: 8px 4px;
	}

	.table-ranking tbody td {
		font-size: 12px;
		padding: 8px 4px;
	}

	.flag-thumbnail {
		max-width: 30px;
	}
}

/* ========== BOTÓN "TODA MI QUINELA" ========== */

#ButtonAll {
	padding: 12px 15px !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	border-radius: 6px !important;
	border: 2px solid #228B22 !important;
	color: #fff !important;
	background: linear-gradient(135deg, #32CD32 0%, #228B22 100%) !important;
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3),
	            0 0 1px rgba(255, 255, 255, 0.3) inset !important;
	transition: all 0.2s ease !important;
	display: block !important;
	width: 100% !important;
	cursor: pointer !important;
}

#ButtonAll:hover,
#ButtonAll:focus {
	background: linear-gradient(135deg, #90EE90 0%, #32CD32 100%) !important;
	transform: translateY(-2px);
	box-shadow: 0 8px 14px rgba(0, 0, 0, 0.35),
	            0 0 1px rgba(255, 255, 255, 0.3) inset !important;
	border-color: #32CD32 !important;
}

#ButtonAll:active {
	transform: translateY(1px);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
}

.mt-3 {
	margin-top: 15px !important;
}

/* ========== CRUDPLANTILLA RESPONSIVE + STYLING ========== */

/* Contenedor principal */
.crudplantilla-container {
	padding: 15px 0;
}

/* GridView responsive wrapper */
.crudplantilla-container .table-responsive {
	margin-bottom: 15px;
	background-color: #ffffff;
	border-radius: 4px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	overflow: hidden;
}

/* Tabla de CrudPlantilla */
.crudplantilla-container .table-ranking {
	margin-bottom: 0;
	border-collapse: collapse;
	font-size: 13px;
	width: 100%;
}

/* HEADER - Verde Lima con Gradiente */
.crudplantilla-container .table-ranking thead th {
	background: linear-gradient(135deg, #32CD32 0%, #228B22 100%);
	color: white;
	font-weight: 700;
	padding: 14px 10px;
	text-align: left;
	font-size: 12px;
	border-bottom: 2px solid #1a6b1a;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	box-shadow: 0 2px 4px rgba(50, 205, 50, 0.2) inset;
}

/* FILAS - Alternadas y Hover Effects */
.crudplantilla-container .table-ranking tbody td {
	padding: 11px 10px;
	border-bottom: 1px solid #e8e8e8;
	vertical-align: middle;
	background-color: #ffffff;
}

.crudplantilla-container .table-ranking tbody tr {
	transition: all 0.2s ease;
}

.crudplantilla-container .table-ranking tbody tr:nth-child(even) {
	background-color: #f9f9f9;
}

.crudplantilla-container .table-ranking tbody tr:hover {
	background-color: #e8f8e8;
	box-shadow: 0 2px 8px rgba(50, 205, 50, 0.15);
}

/* Inputs en modo edición */
.crudplantilla-container .table-ranking input[type="text"] {
	width: 100%;
	padding: 7px 6px;
	border: 2px solid #ddd;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 500;
	transition: all 0.2s ease;
	background-color: #fafafa;
}

.crudplantilla-container .table-ranking input[type="text"]:focus {
	border: 2px solid #32CD32;
	background-color: #ffffff;
	box-shadow: 0 0 6px rgba(50, 205, 50, 0.4);
	outline: none;
}

/* Checkboxes + Badges de Status */
.crudplantilla-container .table-ranking input[type="checkbox"] {
	width: 18px;
	height: 18px;
	cursor: pointer;
	accent-color: #32CD32;
}

/* Badges de Status (Habilitado/Deshabilitado) */
.crudplantilla-container .table-ranking .checkbox-badge {
	display: inline-block;
	padding: 5px 10px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 600;
	margin-left: 8px;
}

.crudplantilla-container .table-ranking input[type="checkbox"]:checked ~ .checkbox-badge {
	background-color: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.crudplantilla-container .table-ranking input[type="checkbox"]:not(:checked) ~ .checkbox-badge {
	background-color: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

/* Botones de Edición - Verde Lima 3D */
.crudplantilla-container .table-ranking .btn-warning,
.crudplantilla-container .table-ranking .btn {
	background: linear-gradient(135deg, #32CD32 0%, #228B22 100%);
	border: 1px solid #1a6b1a;
	color: #ffffff;
	padding: 8px 14px;
	font-size: 11px;
	font-weight: 700;
	border-radius: 4px;
	margin: 0 3px;
	cursor: pointer;
	transition: all 0.15s ease;
	box-shadow: 0 4px 8px rgba(50, 205, 50, 0.25),
	            0 0 1px rgba(255, 255, 255, 0.3) inset;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.crudplantilla-container .table-ranking .btn-warning:hover,
.crudplantilla-container .table-ranking .btn:hover {
	background: linear-gradient(135deg, #90EE90 0%, #32CD32 100%);
	transform: translateY(-2px);
	box-shadow: 0 6px 12px rgba(50, 205, 50, 0.35),
	            0 0 1px rgba(255, 255, 255, 0.3) inset;
	border-color: #32CD32;
}

.crudplantilla-container .table-ranking .btn-warning:active,
.crudplantilla-container .table-ranking .btn:active {
	transform: translateY(1px);
	box-shadow: 0 2px 4px rgba(50, 205, 50, 0.2);
}

/* Botones de Acciones en Grid - Estilos Base */
.crudplantilla-container .table-ranking .btn-grid-actions {
	display: inline-block;
	width: auto;
	margin: 3px 2px;
	padding: 7px 12px;
	font-size: 10px;
	border: 1px solid;
	color: white;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.15s ease;
	text-transform: none;
	letter-spacing: 0.3px;
	font-weight: 600;
	white-space: nowrap;
}

/* BOTÓN EDITAR - Azul (Información) */
.crudplantilla-container .table-ranking input[value*="Editar"] {
	background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
	border-color: #0056b3 !important;
	box-shadow: 0 3px 6px rgba(0, 123, 255, 0.2) !important;
	color: white !important;
}

.crudplantilla-container .table-ranking input[value*="Editar"]:hover {
	background: linear-gradient(135deg, #0056b3 0%, #003d82 100%) !important;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3) !important;
	border-color: #003d82 !important;
}

.crudplantilla-container .table-ranking input[value*="Editar"]:active {
	transform: translateY(0px);
	box-shadow: 0 2px 4px rgba(0, 123, 255, 0.15) !important;
}

/* BOTÓN GUARDAR - Verde (Success) */
.crudplantilla-container .table-ranking input[value*="Guardar"] {
	background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%) !important;
	border-color: #1e7e34 !important;
	box-shadow: 0 3px 6px rgba(40, 167, 69, 0.2) !important;
	color: white !important;
}

.crudplantilla-container .table-ranking input[value*="Guardar"]:hover {
	background: linear-gradient(135deg, #1e7e34 0%, #155724 100%) !important;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3) !important;
	border-color: #155724 !important;
}

.crudplantilla-container .table-ranking input[value*="Guardar"]:active {
	transform: translateY(0px);
	box-shadow: 0 2px 4px rgba(40, 167, 69, 0.15) !important;
}

/* BOTÓN CANCELAR - Rojo (Danger) */
.crudplantilla-container .table-ranking input[value*="Cancelar"] {
	background: linear-gradient(135deg, #dc3545 0%, #a02622 100%) !important;
	border-color: #a02622 !important;
	box-shadow: 0 3px 6px rgba(220, 53, 69, 0.2) !important;
	color: white !important;
}

.crudplantilla-container .table-ranking input[value*="Cancelar"]:hover {
	background: linear-gradient(135deg, #a02622 0%, #7a1e1a 100%) !important;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3) !important;
	border-color: #7a1e1a !important;
}

.crudplantilla-container .table-ranking input[value*="Cancelar"]:active {
	transform: translateY(0px);
	box-shadow: 0 2px 4px rgba(220, 53, 69, 0.15) !important;
}

/* Mejorar espaciado en celda de acciones */
.crudplantilla-container .table-ranking tbody td:first-child {
	padding: 8px 5px;
	min-width: 85px;
}

/* ========== EDIT-ONE-AT-A-TIME: CSS PURO CON :has() ========== */
/* Requiere navegadores modernos: Chrome 105+, Firefox 121+, Safari 15.4+, Edge 105+ */
/* Si hay un input[type="text"] en la tabla (fila en edición), */
/* deshabilita todos los botones Edit de filas que NO tienen inputs */

.crudplantilla-container .table-ranking:has(input[type="text"]) tbody tr:not(:has(input[type="text"])) input[value*="Editar"] {
	background: linear-gradient(135deg, #b3b3b3 0%, #808080 100%) !important;
	border-color: #808080 !important;
	opacity: 0.5 !important;
	cursor: not-allowed !important;
	pointer-events: none !important;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
	color: #666666 !important;
	text-decoration: line-through !important;
}

.crudplantilla-container .table-ranking:has(input[type="text"]) tbody tr:not(:has(input[type="text"])) input[value*="Editar"]:hover {
	transform: none !important;
	background: linear-gradient(135deg, #b3b3b3 0%, #808080 100%) !important;
	border-color: #808080 !important;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.crudplantilla-container .table-ranking:has(input[type="text"]) tbody tr:not(:has(input[type="text"])) input[value*="Editar"]:active {
	transform: none !important;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Validadores de error */
.crudplantilla-container .table-ranking .field-validation-error {
	color: #dc3545;
	font-size: 10px;
	margin-top: 2px;
	display: block;
}

/* Media Queries para Responsividad */

/* Tablet pequeño y móvil (max-width: 768px) */
@media (max-width: 768px) {
	.crudplantilla-container .table-ranking {
		font-size: 11px;
	}

	.crudplantilla-container .table-ranking thead th {
		padding: 10px 6px;
		font-size: 10px;
		letter-spacing: 0;
	}

	.crudplantilla-container .table-ranking tbody td {
		padding: 8px 6px;
		font-size: 11px;
	}

	.crudplantilla-container .table-ranking input[type="text"] {
		padding: 5px 4px;
		font-size: 11px;
	}

	.crudplantilla-container .table-ranking .btn-warning,
	.crudplantilla-container .table-ranking .btn {
		padding: 6px 10px;
		font-size: 10px;
		margin: 0 2px;
	}

	.crudplantilla-container .table-ranking input[type="checkbox"] {
		width: 16px;
		height: 16px;
	}

	.crudplantilla-container .table-ranking .btn-grid-actions {
		padding: 6px 10px;
		font-size: 9px;
		margin: 2px 1px;
	}

	.crudplantilla-container .table-ranking tbody td:first-child {
		min-width: 75px;
	}

	/* Edit-One-At-A-Time: Botones Editar deshabilitados */
	.crudplantilla-container .table-ranking a[style*="opacity: 0.6"] {
		color: #999 !important;
		text-decoration: line-through !important;
		pointer-events: none !important;
		cursor: not-allowed !important;
	}
}

/* Móvil pequeño (max-width: 576px) */
@media (max-width: 576px) {
	.crudplantilla-container {
		padding: 10px 0;
	}

	.crudplantilla-container .table-ranking {
		font-size: 10px;
	}

	.crudplantilla-container .table-ranking thead th {
		padding: 8px 4px;
		font-size: 9px;
		padding: 8px 4px;
	}

	.crudplantilla-container .table-ranking tbody td {
		padding: 7px 4px;
		font-size: 10px;
	}

	.crudplantilla-container .table-ranking input[type="text"] {
		padding: 4px 3px;
		font-size: 10px;
		width: 100%;
	}

	.crudplantilla-container .table-ranking .btn-warning,
	.crudplantilla-container .table-ranking .btn {
		padding: 5px 8px;
		font-size: 9px;
		margin: 0 1px;
	}

	.crudplantilla-container .table-ranking input[type="checkbox"] {
		width: 14px;
		height: 14px;
	}

	.crudplantilla-container .table-ranking .btn-grid-actions {
		padding: 5px 8px;
		font-size: 8px;
		margin: 2px 0;
		width: 100%;
		text-align: center;
	}

	.crudplantilla-container .table-ranking tbody td:first-child {
		min-width: 60px;
		padding: 6px 3px;
	}
}

/* ========== RESPONSIVE VISIBILITY CLASSES ========== */

/* Ocultar en móvil (pantallas menores a 576px) */
@media (max-width: 575px) {
	.hidden-phone {
		display: none !important;
	}
}

/* Ocultar en tablet (pantallas de 576px a 768px) */
@media (max-width: 768px) and (min-width: 576px) {
	.hidden-tablet {
		display: none !important;
	}
}

/* Ocultar en ambos (móvil y tablet) */
@media (max-width: 768px) {
	.hidden-phone.hidden-tablet {
		display: none !important;
	}
}

/* ========== CRUD RESPONSIVE + STYLING ========== */

.crud-container {
	padding: 15px 0;
}

.crud-container .table-responsive {
	margin-bottom: 15px;
	background-color: #ffffff;
	border-radius: 4px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	overflow: hidden;
}

.crud-container .table-ranking {
	margin-bottom: 0;
	border-collapse: collapse;
	font-size: 13px;
	width: 100%;
}

/* Header - Verde Lima Gradient (consistencia con CrudPlantilla) */
.crud-container .table-ranking thead th {
	background: linear-gradient(135deg, #32CD32 0%, #228B22 100%);
	color: white;
	font-weight: 700;
	padding: 14px 10px;
	text-align: left;
	font-size: 12px;
	border-bottom: 2px solid #1a6b1a;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	box-shadow: 0 2px 4px rgba(50, 205, 50, 0.2) inset;
}

/* Filas - Alternadas y Hover */
.crud-container .table-ranking tbody td {
	padding: 11px 10px;
	border-bottom: 1px solid #e8e8e8;
	vertical-align: middle;
	background-color: #ffffff;
}

.crud-container .table-ranking tbody tr {
	transition: all 0.2s ease;
}

.crud-container .table-ranking tbody tr:nth-child(even) {
	background-color: #f9f9f9;
}

.crud-container .table-ranking tbody tr:hover {
	background-color: #e8f8e8;
	box-shadow: 0 2px 8px rgba(50, 205, 50, 0.15);
}

/* Inputs en edición */
.crud-container .table-ranking input[type="text"] {
	width: 100%;
	padding: 7px 6px;
	border: 2px solid #ddd;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 500;
	transition: all 0.2s ease;
	background-color: #fafafa;
}

.crud-container .table-ranking input[type="text"]:focus {
	border: 2px solid #32CD32;
	background-color: #ffffff;
	box-shadow: 0 0 6px rgba(50, 205, 50, 0.4);
	outline: none;
}

/* Botones - Estilos Customizados */
.crud-container .table-ranking input[type="button"],
.crud-container .table-ranking input[type="submit"] {
	padding: 8px 14px;
	font-size: 11px;
	font-weight: 700;
	border-radius: 4px;
	margin: 0 3px;
	cursor: pointer;
	transition: all 0.15s ease;
	border: 1px solid;
	color: white;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* BOTÓN EDIT - Azul */
.crud-container .table-ranking input[value*="Editar"] {
	background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
	border-color: #0056b3 !important;
	box-shadow: 0 3px 6px rgba(0, 123, 255, 0.2) !important;
}

.crud-container .table-ranking input[value*="Editar"]:hover {
	background: linear-gradient(135deg, #0056b3 0%, #003d82 100%) !important;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3) !important;
	border-color: #003d82 !important;
}

.crud-container .table-ranking input[value*="Editar"]:active {
	transform: translateY(0px);
	box-shadow: 0 2px 4px rgba(0, 123, 255, 0.15) !important;
}

/* BOTÓN GUARDAR - Verde */
.crud-container .table-ranking input[value*="Guardar"] {
	background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%) !important;
	border-color: #1e7e34 !important;
	box-shadow: 0 3px 6px rgba(40, 167, 69, 0.2) !important;
}

.crud-container .table-ranking input[value*="Guardar"]:hover {
	background: linear-gradient(135deg, #1e7e34 0%, #155724 100%) !important;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3) !important;
	border-color: #155724 !important;
}

.crud-container .table-ranking input[value*="Guardar"]:active {
	transform: translateY(0px);
	box-shadow: 0 2px 4px rgba(40, 167, 69, 0.15) !important;
}

/* BOTÓN CANCELAR - Rojo */
.crud-container .table-ranking input[value*="Cancelar"] {
	background: linear-gradient(135deg, #dc3545 0%, #a02622 100%) !important;
	border-color: #a02622 !important;
	box-shadow: 0 3px 6px rgba(220, 53, 69, 0.2) !important;
}

.crud-container .table-ranking input[value*="Cancelar"]:hover {
	background: linear-gradient(135deg, #a02622 0%, #7a1e1a 100%) !important;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3) !important;
	border-color: #7a1e1a !important;
}

.crud-container .table-ranking input[value*="Cancelar"]:active {
	transform: translateY(0px);
	box-shadow: 0 2px 4px rgba(220, 53, 69, 0.15) !important;
}

/* Edit-One-At-A-Time: CSS Puro con :has() */
.crud-container .table-ranking:has(input[type="text"]) tbody tr:not(:has(input[type="text"])) input[value*="Editar"] {
	background: linear-gradient(135deg, #b3b3b3 0%, #808080 100%) !important;
	border-color: #808080 !important;
	opacity: 0.5 !important;
	cursor: not-allowed !important;
	pointer-events: none !important;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
	color: #666666 !important;
	text-decoration: line-through !important;
}

.crud-container .table-ranking:has(input[type="text"]) tbody tr:not(:has(input[type="text"])) input[value*="Editar"]:hover {
	transform: none !important;
	background: linear-gradient(135deg, #b3b3b3 0%, #808080 100%) !important;
	border-color: #808080 !important;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.crud-container .table-ranking:has(input[type="text"]) tbody tr:not(:has(input[type="text"])) input[value*="Editar"]:active {
	transform: none !important;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Validadores */
.crud-container .table-ranking .field-validation-error {
	color: #dc3545;
	font-size: 10px;
	margin-top: 2px;
	display: block;
}

/* Media Queries - Responsividad */

@media (max-width: 768px) {
	.crud-container .table-ranking {
		font-size: 11px;
	}

	.crud-container .table-ranking thead th {
		padding: 10px 6px;
		font-size: 10px;
		letter-spacing: 0;
	}

	.crud-container .table-ranking tbody td {
		padding: 8px 6px;
		font-size: 11px;
	}

	.crud-container .table-ranking input[type="text"] {
		padding: 5px 4px;
		font-size: 11px;
	}

	.crud-container .table-ranking input[type="button"],
	.crud-container .table-ranking input[type="submit"] {
		padding: 6px 10px;
		font-size: 10px;
		margin: 0 2px;
	}
}

@media (max-width: 576px) {
	.crud-container {
		padding: 10px 0;
	}

	.crud-container .table-ranking {
		font-size: 10px;
	}

	.crud-container .table-ranking thead th {
		padding: 8px 4px;
		font-size: 9px;
	}

	.crud-container .table-ranking tbody td {
		padding: 7px 4px;
		font-size: 10px;
	}

	.crud-container .table-ranking input[type="text"] {
		padding: 4px 3px;
		font-size: 10px;
		width: 100%;
	}

	.crud-container .table-ranking input[type="button"],
	.crud-container .table-ranking input[type="submit"] {
		padding: 5px 8px;
		font-size: 9px;
		margin: 0 1px;
	}
}

/* ========== CRUD GRUPO INDICATOR ========== */
.crud-grupo-indicator {
    margin: 8px 0 14px;
}

.crud-grupo-badge {
    font-size: 13px;
    padding: 6px 16px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* ========== ESTADISTICAS RESPONSIVE + STYLING ========== */

.estadisticas-container {
	padding: 15px 0;
}

.estadisticas-container .section-title {
	display: flex;
	align-items: center;
	font-size: 18px;
	font-weight: 600;
	color: #2c3e50;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid #007bff;
}

.estadisticas-container .section-title i {
	margin-right: 10px;
	color: #007bff;
}

.estadisticas-container .table-ranking {
	background-color: #fff;
	border-collapse: collapse;
	width: 100%;
}

.estadisticas-container .table-ranking thead {
	background: linear-gradient(135deg, #32CD32 0%, #228B22 100%);
	color: white;
	font-weight: bold;
}

.estadisticas-container .table-ranking thead th {
	padding: 12px 8px;
	text-align: left;
	font-size: 12px;
	border: 1px solid #1a7a1a;
}

.estadisticas-container .table-ranking tbody tr {
	border-bottom: 1px solid #ddd;
	transition: background-color 0.2s ease;
}

.estadisticas-container .table-ranking tbody tr:nth-child(even) {
	background-color: #f9f9f9;
}

.estadisticas-container .table-ranking tbody tr:hover {
	background-color: #e8f5e9;
}

.estadisticas-container .table-ranking tbody td {
	padding: 10px 8px;
	font-size: 12px;
	color: #333;
	border: 1px solid #e0e0e0;
}

.estadisticas-container .table-ranking tbody img {
	max-width: 30px;
	height: auto;
	display: block;
}


@media (max-width: 768px) {
	.estadisticas-container {
		padding: 12px 0;
	}

	.estadisticas-container .section-title {
		font-size: 16px;
		margin-bottom: 12px;
		padding-bottom: 8px;
	}

	.estadisticas-container .table-ranking {
		font-size: 11px;
	}

	.estadisticas-container .table-ranking thead th {
		padding: 9px 6px;
		font-size: 10px;
	}

	.estadisticas-container .table-ranking tbody td {
		padding: 8px 6px;
		font-size: 11px;
	}

	.estadisticas-container .table-ranking tbody img {
		max-width: 25px;
	}

}

@media (max-width: 576px) {
	.estadisticas-container {
		padding: 10px 0;
	}

	.estadisticas-container .section-title {
		font-size: 14px;
		margin-bottom: 10px;
		padding-bottom: 6px;
	}

	.estadisticas-container .section-title i {
		margin-right: 8px;
		font-size: 14px;
	}

	.estadisticas-container .table-ranking {
		font-size: 10px;
	}

	.estadisticas-container .table-ranking thead th {
		padding: 7px 4px;
		font-size: 9px;
	}

	.estadisticas-container .table-ranking tbody td {
		padding: 6px 4px;
		font-size: 10px;
	}

	.estadisticas-container .table-ranking tbody img {
		max-width: 20px;
	}

}

/* ========== ESTADISTICAS PUNTEO COLUMN ========== */
.estadisticas-container .table-ranking tbody td.punteo-positivo { color: #3c763d; font-weight: bold; font-size: 15px; }
.estadisticas-container .table-ranking tbody td.punteo-cero     { color: #a94442; font-weight: bold; font-size: 15px; }

/* ========== CAROUSEL STANDARD ========== */

.carousel-fixed .carousel-inner {
    height: 480px;
}
.carousel-fixed .item {
    height: 480px;
    overflow: hidden;
}
.carousel-fixed .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Tablet */
@media (max-width: 992px) {
    .carousel-fixed .carousel-inner,
    .carousel-fixed .item { height: 320px; }
}

/* Mobile landscape */
@media (max-width: 768px) {
    .carousel-fixed .carousel-inner,
    .carousel-fixed .item { height: 240px; }
}

/* Mobile portrait pequeño */
@media (max-width: 480px) {
    .carousel-fixed .carousel-inner,
    .carousel-fixed .item { height: 180px; }
}

/* ========== TOTAL PARTIDOS (Estadisticas) ========== */
.estadisticas-total {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #555;
}
.estadisticas-total span {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 12px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
}

/* ========== BOTÓN GRUPO EN GRIDS (Estadisticas) ========== */
.btn-grupo-link {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    color: #fff;
    background: linear-gradient(135deg, #32CD32 0%, #228B22 100%);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2), 0 0 1px rgba(255,255,255,0.3) inset;
    transition: all 0.15s ease;
    cursor: pointer;
    text-decoration: none;
}
.btn-grupo-link:hover,
.btn-grupo-link:focus {
    background: linear-gradient(135deg, #90EE90 0%, #32CD32 100%);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}
.btn-grupo-link:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* ========== FECHA-HORA BADGES (Estadisticas) ========== */
.badge-fecha-btn,
.badge-hora-btn {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
}
.badge-fecha-btn {
    background-color: #337ab7;
}
.badge-hora-btn {
    background-color: #2e6da4;
    margin-left: 4px;
}

.badge-fecha-btn.badge-hoy,
.badge-hora-btn.badge-hoy {
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
}

/* Legacy styles */
aside{
	 background:#c0392b;
	 color:#fff;
}



