/* ECharts 共有ラッパ用 CSS（Issue #1280） */

/* チャート描画コンテナ（div）。ECharts は canvas と違い明示サイズ必須。
   親要素（.qa-zero-graph 等）が高さを持つ前提で 100% を埋める */
.qahm-ec-chart {
	position: relative;
	width: 100%;
	height: 100%;
}

/* データなしオーバーレイ（qahm-echarts.js が生成・表示制御） */
.qahm-ec-empty {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #999999;
	font-size: 13px;
	pointer-events: none;
	animation: qahm-ec-fadein 0.4s ease-out;
}

/* ローディングオーバーレイ（#1294: データ取得中の脈動ドット。qahm-echarts.js が生成・表示制御） */
.qahm-ec-loading {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: rgba(255, 255, 255, 0.6);
	pointer-events: none;
	z-index: 2;
}

.qahm-ec-loading span {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #69A4E2;
	animation: qahm-ec-pulse 1.2s ease-in-out infinite;
}

.qahm-ec-loading span:nth-child(2) {
	animation-delay: 0.15s;
}

.qahm-ec-loading span:nth-child(3) {
	animation-delay: 0.3s;
}

@keyframes qahm-ec-pulse {
	0%, 80%, 100% {
		transform: scale(0.6);
		opacity: 0.35;
	}
	40% {
		transform: scale(1);
		opacity: 1;
	}
}

@keyframes qahm-ec-fadein {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.qahm-ec-loading span,
	.qahm-ec-empty {
		animation: none;
	}
}
