/**
 * Kantan Analytics — admin dashboard styles.
 * Enqueued via wp_enqueue_style on the dashboard page (see includes/admin.php).
 */

/* Help tooltip icon (kantan_help_tip()). */
.kantan-tip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #d1d5db;
	color: #4b5563;
	font-size: 9px;
	font-style: italic;
	font-weight: 700;
	font-family: Georgia, serif;
	cursor: default;
	position: relative;
	vertical-align: middle;
	margin-left: 4px;
	flex-shrink: 0;
	line-height: 1;
}
.kantan-tip::after {
	content: attr(data-tip);
	position: absolute;
	bottom: calc(100% + 7px);
	left: 50%;
	transform: translateX(-50%);
	background: #111827;
	color: #f9fafb;
	font-size: 12px;
	font-style: normal;
	font-weight: 400;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	line-height: 1.5;
	padding: 7px 10px;
	border-radius: 6px;
	width: 220px;
	white-space: normal;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.12s ease;
	z-index: 99999;
	text-align: left;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.kantan-tip::before {
	content: '';
	position: absolute;
	bottom: calc(100% + 2px);
	left: 50%;
	transform: translateX(-50%);
	border: 5px solid transparent;
	border-top-color: #111827;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.12s ease;
	z-index: 99999;
}
.kantan-tip:hover::after,
.kantan-tip:hover::before {
	opacity: 1;
}
/* Flip below when inside a table header (avoids clipping under sticky headers). */
thead .kantan-tip::after {
	bottom: auto;
	top: calc(100% + 7px);
}
thead .kantan-tip::before {
	bottom: auto;
	top: calc(100% + 2px);
	border-top-color: transparent;
	border-bottom-color: #111827;
}
