/* #A1138 P111 — WP Dashboard funnel timeseries (scoped .wi-fd-*) */

#wi_funnel_dashboard .inside {
	margin-top: 8px;
	padding-bottom: 12px;
}

.wi-fd-ts {
	margin: 0 0 14px;
}

.wi-fd-ts__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 10px;
}

.wi-fd-ts__title {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: #101828;
	line-height: 1.3;
}

.wi-fd-ts__sub {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	font-weight: 400;
	color: #667085;
}

.wi-fd-presets {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 4px;
	background: #f2f4f7;
	border-radius: 8px;
	padding: 3px;
}

.wi-fd-preset {
	appearance: none;
	border: 0;
	background: transparent;
	color: #344054;
	font-size: 12px;
	font-weight: 500;
	line-height: 1;
	padding: 6px 10px;
	border-radius: 6px;
	cursor: pointer;
}

.wi-fd-preset.is-active,
.wi-fd-preset[aria-pressed="true"] {
	background: #fff;
	color: #0f766e;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}

.wi-fd-chart-wrap {
	position: relative;
	background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 55%);
	border: 1px solid #e6e9ee;
	border-radius: 12px;
	padding: 12px 10px 6px;
	overflow: hidden;
}

.wi-fd-chart-wrap svg {
	display: block;
	width: 100%;
	height: auto;
	max-height: 200px;
}

.wi-fd-empty {
	margin: 0;
	padding: 28px 12px;
	text-align: center;
	color: #667085;
	font-size: 13px;
}

.wi-fd-kpis {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	margin: 12px 0 14px;
}

.wi-fd-kpi {
	background: #fff;
	border: 1px solid #e6e9ee;
	border-radius: 10px;
	padding: 10px 12px;
	min-width: 0;
}

.wi-fd-kpi__label {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #667085;
	margin-bottom: 4px;
}

.wi-fd-kpi__value {
	display: block;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.15;
	color: #101828;
	font-variant-numeric: tabular-nums;
}

.wi-fd-kpi--registered .wi-fd-kpi__value {
	color: #0f766e;
}

.wi-fd-kpi--attended .wi-fd-kpi__value {
	color: #0369a1;
}

.wi-fd-kpi--sold .wi-fd-kpi__value {
	color: #15803d;
}

.wi-fd-kpi__delta {
	display: block;
	margin-top: 4px;
	font-size: 11px;
	font-weight: 600;
	color: #667085;
}

.wi-fd-kpi__delta.is-up {
	color: #15803d;
}

.wi-fd-kpi__delta.is-down {
	color: #b42318;
}

.wi-fd-legend {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
	margin: 8px 0 0;
	font-size: 11px;
	color: #667085;
}

.wi-fd-legend__btn {
	appearance: none;
	display: inline-flex;
	align-items: center;
	gap: 0;
	margin: 0;
	padding: 4px 8px;
	border: 1px solid #e4e7ec;
	border-radius: 6px;
	background: #fff;
	color: #344054;
	font-size: 11px;
	line-height: 1.2;
	cursor: pointer;
}

.wi-fd-legend__btn[hidden] {
	display: none;
}

.wi-fd-legend__btn:hover {
	border-color: #cdd2da;
	background: #f8fafc;
}

.wi-fd-legend__btn.is-off {
	opacity: 0.45;
	text-decoration: line-through;
	color: #98a2b3;
}

.wi-fd-legend__btn.is-off .wi-fd-legend__swatch {
	opacity: 0.4;
}

.wi-fd-legend__swatch {
	display: inline-block;
	width: 14px;
	height: 8px;
	border-radius: 2px;
	margin-right: 4px;
	vertical-align: middle;
}

.wi-fd-legend__swatch--optins {
	background: linear-gradient(90deg, #0ea5a4 0%, #22c55e 100%);
}

.wi-fd-legend__swatch--attended {
	background: #0369a1;
}

.wi-fd-legend__swatch--sold {
	background: #15803d;
}

.wi-fd-legend__swatch--admin {
	background: #f59e0b;
}

.wi-fd-svg.is-off-registered .wi-fd-series--registered,
.wi-fd-svg.is-off-attended .wi-fd-series--attended,
.wi-fd-svg.is-off-sold .wi-fd-series--sold,
.wi-fd-svg.is-off-overlay .wi-fd-series--overlay {
	display: none;
}

.wi-fd-compare {
	display: none;
	margin: 10px 0 0;
	padding: 10px;
	background: #f8fafc;
	border: 1px solid #e6e9ee;
	border-radius: 10px;
}

.wi-fd-compare.is-open {
	display: block;
}

.wi-fd-compare__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}

.wi-fd-compare__row:last-child {
	margin-bottom: 0;
}

.wi-fd-compare label {
	font-size: 12px;
	color: #344054;
	font-weight: 500;
}

.wi-fd-compare input[type="date"] {
	font-size: 12px;
}

.wi-fd-range {
	display: none;
	margin: 10px 0 0;
	padding: 8px 4px 0;
}

.wi-fd-range.is-open {
	display: block;
}

.wi-fd-range__sliders {
	position: relative;
	height: 28px;
	margin: 4px 0 6px;
}

.wi-fd-range__sliders input[type="range"] {
	position: absolute;
	left: 0;
	width: 100%;
	margin: 0;
	pointer-events: none;
	appearance: none;
	background: transparent;
	height: 28px;
}

.wi-fd-range__sliders input[type="range"]::-webkit-slider-thumb {
	pointer-events: auto;
	appearance: none;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #0f766e;
	border: 2px solid #fff;
	box-shadow: 0 1px 3px rgba(16, 24, 40, 0.25);
	cursor: pointer;
}

.wi-fd-range__sliders input[type="range"]::-moz-range-thumb {
	pointer-events: auto;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #0f766e;
	border: 2px solid #fff;
	box-shadow: 0 1px 3px rgba(16, 24, 40, 0.25);
	cursor: pointer;
}

.wi-fd-range__track {
	position: absolute;
	left: 0;
	right: 0;
	top: 12px;
	height: 4px;
	background: #e4e7ec;
	border-radius: 2px;
}

.wi-fd-range__fill {
	position: absolute;
	top: 12px;
	height: 4px;
	background: linear-gradient(90deg, #0ea5a4, #22c55e);
	border-radius: 2px;
}

.wi-fd-range__labels {
	display: flex;
	justify-content: space-between;
	font-size: 11px;
	color: #667085;
}

.wi-fd-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin: 8px 0 12px;
}

.wi-fd-actions .button-link {
	font-size: 12px;
}

.wi-fd-by {
	margin: 0 0 8px;
}

.wi-fd-by > summary {
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	color: #344054;
	user-select: none;
}

.wi-fd-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	table-layout: fixed;
}

.wi-fd-table th,
.wi-fd-table td {
	padding: 6px 8px;
	text-align: left;
	border-bottom: 1px solid #dcdcde;
	vertical-align: top;
}

.wi-fd-table th:first-child,
.wi-fd-table td:first-child {
	width: 46%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wi-fd-table th:not(:first-child),
.wi-fd-table td:not(:first-child) {
	width: 13.5%;
	text-align: right;
}

.wi-fd-scroll {
	max-height: 280px;
	overflow: auto;
	margin: 8px -4px 0;
	padding: 0 4px;
}

.wi-fd-dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	margin-right: 6px;
	vertical-align: middle;
}

.wi-fd-dot--grey {
	background: #a7aaad;
}

.wi-fd-dot--red {
	background: #d63638;
}

.wi-fd-dot--orange {
	background: #dba617;
}

.wi-fd-dot--green {
	background: #00a32a;
}

.wi-fd-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
	gap: 8px;
	flex-wrap: wrap;
}

.wi-fd-badge {
	background: #2271b1;
	color: #fff;
	border-radius: 10px;
	padding: 2px 8px;
	font-size: 12px;
}

.wi-fd-admin-test {
	margin: 8px 0 0;
	font-size: 12px;
	color: #646970;
}

.wi-fd-consent-note {
	margin: 6px 0 0;
	font-size: 12px;
	color: #646970;
}

.wi-fd-purge-status {
	margin-left: 6px;
}

.wi-fd-loading .wi-fd-chart-wrap {
	opacity: 0.55;
	pointer-events: none;
}

@media screen and (max-width: 782px) {
	.wi-fd-kpis {
		grid-template-columns: 1fr;
	}

	.wi-fd-kpi__value {
		font-size: 20px;
	}
}

.wi-fd-utm {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 8px;
	margin: 0 0 10px;
	padding: 6px 8px;
	border: 1px solid #d5dbe3;
	border-radius: 6px;
	background: #f8fafc;
}

.wi-fd-utm.is-empty {
	border-style: dashed;
}

.wi-fd-utm.is-empty .wi-fd-utm__label,
.wi-fd-utm.is-empty .wi-fd-utm__chips {
	display: none;
}

.wi-fd-utm__label {
	font-weight: 600;
	font-size: 12px;
	color: #344054;
}

.wi-fd-utm__empty {
	display: block;
	width: 100%;
	font-size: 11px;
	line-height: 1.5;
	color: #475467;
}

.wi-fd-utm__info {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #eef2f6;
	border: 1px solid #d5dbe3;
	color: #667085;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	font-style: normal;
	cursor: help;
}

.wi-fd-utm__info-glyph {
	line-height: 1;
}

.wi-fd-utm__tip {
	display: none;
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 30;
	width: 210px;
	max-width: 68vw;
	padding: 6px 8px;
	border-radius: 6px;
	background: #1f2937;
	color: #f9fafb;
	font-size: 11px;
	font-weight: 400;
	line-height: 1.45;
	font-style: normal;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
	pointer-events: none;
}

.wi-fd-utm__info:hover .wi-fd-utm__tip,
.wi-fd-utm__info:focus-visible .wi-fd-utm__tip {
	display: block;
}

.wi-fd-utm__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.wi-fd-utm__chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 9px;
	font-size: 12px;
	line-height: 1.6;
	border: 1px solid #cbd5e1;
	border-radius: 999px;
	background: #fff;
	color: #344054;
	cursor: pointer;
}

.wi-fd-utm__chip:hover {
	border-color: #5b9bd5;
}

.wi-fd-utm__chip.is-active {
	background: #1d4ed8;
	border-color: #1d4ed8;
	color: #fff;
}

/* #funnel-stats (2026-09-14): KI-Hinweis im Dashboard-Widget. */
.wi-fd-ai-hint{margin:6px 0 8px;padding:6px 8px;border-left:3px solid #14b8a6;background:#f0fdfa;color:#0f172a;font-size:12px;line-height:1.5;border-radius:4px}

/* #ask-link (2026-09-14): siehe wi-funnel-chart.css. */
.wi-agent-ask{color:#0f766e;text-decoration:underline;font-weight:600;cursor:pointer}
.wi-agent-ask:hover,.wi-agent-ask:focus{color:#115e59}
