:root {
	--ee-primary: #0071BC;
	--ee-secondary: #005289;
	--ee-tertiary: #02b2e3;
	--ee-muted: #d5d5d5;
	--ee-dark: #333;
	--ee-grey: #e9ecef;
	--ee-radius: 5px;
}

/* width */
#ee-candidatos ::-webkit-scrollbar {
	height: 10px;
}

/* Track */
#ee-candidatos ::-webkit-scrollbar-track {
	background: #f1f1f1;
}

/* Handle */
#ee-candidatos ::-webkit-scrollbar-thumb {
	background: #888;
	border-radius: 3px;
}

/* Handle on hover */
#ee-candidatos ::-webkit-scrollbar-thumb:hover {
	background: #555;
}

#ee-candidatos {
	margin-top: 20px;
}

.ee-puesto-title {
	text-align: center;
}
.ee-candidates-grid {
	text-align: center;
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

/* Opcional: limitar a máximo 5 columnas en pantallas grandes */
@media only screen and (min-width: 981px) {
	.ee-candidates-grid {
		grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
		/*max-width: calc(5 * 150px + 4 * 10px); /* 5 columnas + gaps */*/
		margin: 0 auto;
	}
}




.ee-candidates-table {
	width: 100%;
	border-collapse: collapse;
	text-transform: capitalize;
}

.ee-candidates-table th {
	background-color: #f2f2f2;
	text-align: left;
	padding: 10px;
}

.ee-candidates-table tr:nth-child(even) {
	background-color: #f2f2f2;
}

.ee-candidates-table tr:nth-child(odd) {
	background-color: #ffffff;
}


/* Fuentes */
.ee-fuentes {
	margin: 20px 0;
	padding: 15px;
	background-color: var(--ee-grey);
	color: #000;
	border-radius: var(--ee-radius);
	font-size: 15px;
}

#ee-candidatos .ee-fuentes ul {
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: center;
}
#ee-candidatos .ee-fuentes ul li {
	line-height: 1.5em;
	margin-bottom: 0;
}
@media only screen and (min-width: 981px) {
	.ee-fuentes ul {
		display: flex;
		justify-content: space-around;
		gap: 10px;
	}
}



/*NUEVO CSS*/

/* Shortcode */
.ee-eleccion-tipo + .ee-eleccion-tipo {
	margin-top: 40px;
}
.candidato-data {
	&.candidato-data-partido-design {
		.candidato-nombre {
			margin-top: 5px;
			font-size: 0.8rem;
			line-height: 1.1em;
			font-weight: normal;
		}
		@media only screen and (min-width: 981px) {
			.candidato-nombre {
				font-size: 1rem;
			}
		}
		.candidato-partido {
			font-size: 1.7rem;
			font-weight: bold;
			line-height: 1.1em;
		}
		@media only screen and (min-width: 981px) {
			.candidato-partido {
				font-size: 1.5rem;
			}
		}
	}
	.candidato-votos {
		font-size: 40px;
		font-weight: bold;
		line-height: 1em;
	}
	.candidato-votos span {
		font-size: 22px;
	}
	.candidato-nombre {
		font-size: 1.5rem;
		font-weight: bold;
		line-height: 1.1em;
	}
	@media only screen and (min-width: 981px) {
		.candidato-nombre {
			font-size: 1.5rem;
		}
	}
	.candidato-partido {
		margin-top: 5px;
		font-size: 0.8rem;
		line-height: 1.1em;
		font-weight: normal;
	}
	@media only screen and (min-width: 981px) {
		.candidato-partido {
			font-size: 1rem;
		}
	}
	
}
.ee-candidate {
	padding: 20px 10px;
	border-radius: var(--ee-radius);
	border: solid 1px;
	border-color: var(--ee-grey);
	background-color: white;

	.candidato-cara {
		img {
			width: 90px;
			height: 90px;
			border-radius: 100px;
			border: solid 3px #fff;
			box-sizing: border-box;
			outline-style: solid;
			outline-width: 3px;
			object-fit: cover;
			display: inline-block;

			@media only screen and (min-width: 981px) {
				width: 110px;
				height: 110px;
			}
		}
	}
}


/* Reset y nav */
ul#ee-nav-pills.ee-nav {
	list-style: none !important;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.ee-nav-pills .ee-tab-btn {
	display: inline-block;
	padding: 0.8rem 1rem;
	color: var(--ee-primary);
	background-color: var(--ee-grey);
	border: 1px solid transparent;
	border-radius: var(--ee-radius);
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
	text-align: center;
	text-transform: uppercase;
	font-size: 17px;
}

.ee-nav-pills .ee-tab-btn:hover {
	text-decoration: none;
	background-color: var(--ee-grey);
}

.ee-nav-pills .ee-tab-btn.ee-active {
	color: #fff;
	background-color: var(--ee-primary);
	border-color: var(--ee-primary);
}

/* Nav fill */
.ee-nav-fill {
	width: 100%;
}

.ee-nav-fill .ee-nav-item {
	flex: 1 1 auto;
	text-align: center;
}
.ee-nav-fill .ee-nav-item .ee-tab-btn {
	width: 100%;
}

/* Tab content y panes */
.ee-tab-content {
	margin-top: 1rem;
}

.ee-tab-pane {
	display: none;
}

.ee-tab-pane.ee-show {
	display: block;
}

.ee-fade {
	opacity: 0;
	transition: opacity 0.15s linear;
}

.ee-fade.ee-show {
	opacity: 1;
}

/* Spacing */
.ee-mb-3 { margin-bottom: 1rem; }
.ee-mt-3 { margin-top: 1rem; }

/* Display helpers */
.ee-d-none { display: none !important; }


/* Tabla */
.ee-table-responsive {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
.ee-table-puesto-container {
	margin-top: 50px;
}
.ee-table-puesto-container + .ee-table-puesto-container {
	margin-top: 40px;
}
#ee-table table.ee-candidates-table {
	width: 100%;
	border-collapse: collapse;
	text-transform: capitalize;
	font-weight: 400;
	font-size: 15px;
	line-height: 1.3em;
}

#ee-table table.ee-candidates-table th {
	background-color: #f2f2f2;
	text-align: left;
	padding: 10px;
}

#ee-table table.ee-candidates-table tr:nth-child(even) {
	background-color: #f2f2f2;
}

#ee-table table.ee-candidates-table tr:nth-child(odd) {
	background-color: #ffffff;
}

#ee-table table.ee-candidates-table td {
	padding: 10px;
	border-bottom: 1px solid #ccc;
}
#ee-table table.ee-candidates-table .ee-table-candidato {
	@media (min-width: 981px) {
		display: flex;
		align-items: center;
		gap: 15px;
	}
}

#ee-table table.ee-candidates-table .ee-table-candidato img {
	width: 30px;
	height: 30px;
	vertical-align: middle;
	border-radius: 100%;
	object-fit: cover;
}