/*----- demo.php -----*/


.demo {
	& * {
		user-select: text;
	}

	& .topic {
		background: #1e1e1e;
	}

	& h3 {
		font-size: 1.3rem;
	}

	& h4 {
		font-size: 1.2rem;
	}

	& th {
		color: white;
	}

	& thead {
		position: sticky;
		top: 0;
	}

	& td {

		& h5,
		& h3 {
			text-shadow: 1px 1px 0px black;
			margin-bottom: 4px;
		}

		& h5:hover,
		& h4:hover,
		& h3:hover {
			filter: brightness(1.5);
		}

		&.title_indicator_1 {
			background: #2c2c2c;

			& h5 {
				font-weight: 600;
				font-size: 1.0rem;

				&:before {
					content: ':: ';
				}
			}
		}

		&.title_indicator_2 {
			background: #3b7d93;

			& h5 {
				font-weight: 600;
				font-size: 1.0rem;

				&:before {
					content: ':: ';
				}
			}
		}

		&.title_indicator_3 {
			background: #256d85;

			& h5 {
				font-weight: 600;
				font-size: 1.0rem;

				&:before {
					content: ':: ';
				}
			}

			& tr {
				background: #154e61 !important;
			}
		}

		& .scale_container {
			& tr {
				background: #123845 !important;
			}
		}
	}

	& tr {
		&.country {
			color: white;
			background-color: #444;
			border-bottom: solid 2px black;

			& td.country {
				color: white;
				background: #0f0f0f;
			}
		}

		& .topic td.topic {
			color: #bbb;
			background: #242424;

			& h3:before {
				content: '· ';
			}
		}
	}
}



table .indicator_2_container,
table .indicator_3_container,
table .scale_container,
.period_container {
	margin-top: 8px;
}

.period_container {
	cursor: default;
}

.cache_reset_starting {
	user-select: none;
	pointer-events: none;
	filter: opacity(0.15);
}

.cache_reset_ending {
	user-select: true;
	pointer-events: true;	
}

@keyframes ROTLOAD {
	100% {
		transform: rotate(360deg);
	}
}

table.demo {
	box-sizing: border-box;
	font-size: 0.9rem;
	width: 100%;
	border-collapse: collapse;

	& th,
	& td {
		padding: 6px 4px;
		border-right: 1px solid #00000050;
	}

	& thead {
		color: white;
		background: #151515;
		text-align: left;

		& th {
			border-right: 1px solid #8f8f8f50;
		}
	}

	& tbody {
		color: #888;

		& tr {
			background: #333;
			border-top: 1px solid #3a3a3a;
		}
	}

	& td>div {
		padding: 0;
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 8px;
	}

	& .badge {
		width: 17px;
		height: 17px;
		border-radius: 50%;
		display: flex;
		align-items: center;
		justify-content: center;
		margin-left: 6px;
		& i {
			font-size: .8rem;
		}
	}

	& .badge-danger {
		animation: anim 3s ease infinite;
		--button-shadow-color: red;
	}

	& .btn {
		padding: 2px 8px;
		height: 30px;
        	width: 30px;
	}

	/*--- sub categorías ---*/
	& .clickable {
		cursor: pointer;
		/*border-top: 1px solid #666;
	  border-bottom: 1px solid #111;*/
		background: #282828;
		transition: filter .2s ease;

		&:hover {
			filter: brightness(1.0);
		}

		& span:hover {
			filter: brightness(1.3);
		}

		& .refresh {
			/*margin-left: 50px;*/
			float: right;
			margin: 4px;
			&:hover {
				text-decoration: underline;
			}

			& i.loading-anim {
				animation: ROTLOAD 2s infinite linear;
			}
		}
	}



	& tr.oculta {
		/* background: #444 !important;
	  display: none; */
	}
}

.popover-header {
	background-color: #222;
	color: #FFF;
	font-weight: bold;
}

.popover-body {
	background-color: #444;
	color: #EEE;
}

.popover-body a,
.tooltip-inner a {
	color: #EEE;
	text-decoration: underline;
	margin: 5px;
}



td.title_period {
	padding: 8px 12px !important;
}

.datos-item {
	display: flex;
	flex-direction: row;
	gap: 10px;
	& .columna {
		flex-direction: column;
		justify-content: flex-start;
		&:not(.chica) {
			flex: 1;
		}
		& .datos-fila, .datos-txt {
			display: flex;
			justify-content: space-between;
			align-items: center;
			width: 100%;
			padding-block: 3px;
		}
		& .datos-txt .datos-fila {
			justify-content: flex-start !important;
			gap: 10px;
		}
	}
}


