/* ===== CPE — Comparative Period Engine Styles ===== */

/* ── Tabelas centralizadas ──────────────────────────────── */
.table-centered th,
.table-centered td {
	text-align: center !important;
}
.table-centered th:first-child,
.table-centered td:first-child {
	text-align: left !important;
}
.td-center { text-align: center !important; }
.th-center { text-align: center !important; }

/* ── Legenda de status (Unidades) ───────────────────────── */
.status-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 8px 12px;
	background: #fff;
	border: 1px solid var(--gray-200);
	border-radius: 8px;
	margin-bottom: 10px;
	align-items: center;
}
.status-legend-title {
	font-size: 10px;
	font-weight: 700;
	color: var(--gray-400);
	text-transform: uppercase;
	letter-spacing: .5px;
	white-space: nowrap;
	margin-right: 4px;
}
.status-legend-item {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 11px;
	color: var(--gray-600);
	white-space: nowrap;
}
.status-swatch {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	flex-shrink: 0;
	display: inline-block;
}
.status-legend-sep {
	width: 1px;
	height: 16px;
	background: var(--gray-200);
	flex-shrink: 0;
}

/* ── Toggles de comparação (Gráficos) ───────────────────── */
.cmp-toggle-row {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	padding: 7px 12px;
	background: #f9f5ff;
	border: 1px solid #e9d5ff;
	border-radius: 8px;
	margin-bottom: 10px;
}
.cmp-toggle-label {
	font-size: 10px;
	font-weight: 700;
	color: var(--purple);
	text-transform: uppercase;
	letter-spacing: .5px;
	white-space: nowrap;
	flex-shrink: 0;
}
.cmp-toggle-sep {
	width: 1px;
	height: 16px;
	background: #d8b4fe;
	flex-shrink: 0;
}
.cmp-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	height: 26px;
	padding: 0 10px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 500;
	font-family: "DM Sans", sans-serif;
	cursor: pointer;
	border: 1px solid #d8b4fe;
	background: #fff;
	color: #6d28d9;
	transition: all .15s;
	white-space: nowrap;
}
.cmp-btn.active {
	background: var(--purple);
	color: #fff;
	border-color: var(--purple);
}
.cmp-btn:disabled {
	opacity: .4;
	cursor: not-allowed;
	border-color: var(--gray-200);
	color: var(--gray-400);
}
.cmp-btn .cmp-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	display: inline-block;
	flex-shrink: 0;
}
.cmp-info {
	font-size: 10px;
	color: var(--gray-400);
	margin-left: 2px;
	font-style: italic;
}
