/* Live marketingsdashboard — alleen via [qo_dashboard] */

.qo-dashboard {
	--qo-ink: #f7f5f8;
	--qo-muted: #8e8798;
	--qo-card: #1a1822;
	--qo-line: rgba(255, 255, 255, 0.08);
	color: var(--qo-ink);
	font-family: Montserrat, "Segoe UI", sans-serif;
	width: 100%;
	background: transparent;
}

.qo-dashboard__stage {
	display: block;
	padding: 0;
	background: transparent;
}

.qo-dashboard__laptop {
	width: min(1040px, 100%);
}

.qo-dashboard__window {
	background: #14131a;
	border: 1px solid var(--qo-line);
	border-radius: 11px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
	padding: 20px;
}

.qo-dashboard__chrome {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
	padding: 0 4px;
}

.qo-dashboard__live {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.qo-dashboard__pulse {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #3dde6a;
	box-shadow: 0 0 0 0 rgba(61, 222, 106, 0.55);
	animation: qo-dash-pulse 1.8s ease-out infinite;
}

.qo-dashboard__body {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.9fr);
	gap: 16px;
	align-items: stretch;
}

.qo-dashboard__leads {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-self: stretch;
	height: 100%;
	overflow: hidden;
}

.qo-dashboard__row {
	display: grid;
	grid-template-columns: 32px minmax(0, 1fr) 36px 190px;
	align-items: center;
	column-gap: 8px;
	background: var(--qo-card);
	border: 1px solid transparent;
	border-radius: 12px;
	padding: 8px 10px;
	min-height: 48px;
	flex: 1 1 0;
}

.qo-dashboard__row.is-enter {
	animation: qo-dash-in 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.qo-dashboard__row.is-ghost {
	position: absolute;
	left: 0;
	right: 0;
	z-index: 2;
	flex: none;
	pointer-events: none;
}

.qo-dashboard__row.is-ghost.is-leave {
	animation: qo-dash-out 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.qo-dashboard__avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	color: #fff;
	background: linear-gradient(160deg, #e56aa8 0%, #b44ad0 100%);
}

.qo-dashboard__avatar svg {
	width: 18px;
	height: 18px;
}

.qo-dashboard__name {
	font-size: 13.5px;
	font-weight: 600;
	letter-spacing: -0.01em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.qo-dashboard__date {
	font-size: 12px;
	color: var(--qo-muted);
	text-align: left;
	justify-self: start;
	font-variant-numeric: tabular-nums;
}

.qo-dashboard__badge {
	justify-self: end;
	box-sizing: border-box;
	width: 184px;
	height: 30px;
	border: 0;
	border-radius: 999px;
	padding: 0 10px;
	font-size: 11.5px;
	font-weight: 600;
	color: #fff;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	white-space: nowrap;
}

.qo-status {
	--h: 30px;
	--gap: 6px;
	--open: 76px;
	--closed: calc(var(--open) + 3 * (var(--h) + var(--gap)));
	--spring: cubic-bezier(0.34, 1.35, 0.64, 1);
	position: relative;
	justify-self: end;
	box-sizing: border-box;
	width: var(--closed);
	height: var(--h);
	overflow: hidden;
	z-index: 3;
}

.qo-status__shapes {
	position: absolute;
	inset: 0;
	filter: url(#qoDashGoo);
}

.qo-status__pill,
.qo-status__dot {
	position: absolute;
	top: 0;
	height: var(--h);
	border-radius: 999px;
}

.qo-status__pill {
	left: 0;
	z-index: 1;
	width: var(--closed);
	background: linear-gradient(90deg, #7b4dff 0%, #ee6a86 100%);
	transition: width 0.55s var(--spring), background 0.35s ease;
}

.qo-status.is-open .qo-status__pill {
	width: var(--open);
}

.qo-status.is-wait .qo-status__pill { background: #e2a52a; }
.qo-status.is-meet .qo-status__pill { background: #2fbe62; }
.qo-status.is-no .qo-status__pill { background: #e24b42; }

.qo-status__dot {
	z-index: 0;
	width: var(--h);
	left: calc(var(--closed) - var(--h));
	display: grid;
	place-items: center;
	opacity: 0;
	transform: scale(0.35);
	transform-origin: left center;
	transition: transform 0.55s var(--spring), opacity 0.4s ease;
	transition-delay: calc((var(--i) - 1) * 0.07s);
}

.qo-status__dot svg {
	width: 12px;
	height: 12px;
	display: block;
}

.qo-status__dot.is-no { background: #e24b42; color: #fff; }
.qo-status__dot.is-wait { background: #e2a52a; color: #fff; }
.qo-status__dot.is-meet { background: #2fbe62; color: #fff; }

.qo-status.is-open .qo-status__dot {
	opacity: 1;
	transform: translateX(calc(var(--open) - var(--closed) + var(--i) * (var(--h) + var(--gap)))) scale(1);
}

.qo-status.is-open .qo-status__dot.is-on {
	transform: translateX(calc(var(--open) - var(--closed) + var(--i) * (var(--h) + var(--gap)))) scale(1);
}

.qo-status.is-chosen .qo-status__dot {
	transition: none;
	opacity: 0;
}

.qo-status__label {
	position: absolute;
	left: 0;
	top: 0;
	width: var(--closed);
	height: var(--h);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	transition: width 0.45s var(--spring), color 0.35s ease;
}

.qo-status.is-open .qo-status__label {
	width: var(--open);
}

.qo-status.is-wait .qo-status__label,
.qo-status.is-meet .qo-status__label {
	color: #fff;
}

.qo-dashboard__badge.is-lead {
	background: linear-gradient(90deg, #7b4dff 0%, #ee6a86 100%);
}

.qo-dashboard__badge.is-wait {
	background: #e2a52a;
	color: #fff;
}

.qo-dashboard__badge.is-meet {
	background: #2fbe62;
	color: #fff;
}

.qo-dashboard__badge.is-no {
	background: #e24b42;
}

.qo-dashboard__side {
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-self: stretch;
}

.qo-dashboard__range,
.qo-dashboard__stat,
.qo-dashboard__chart {
	background: var(--qo-card);
	border: 1px solid var(--qo-line);
	border-radius: 12px;
}

.qo-dashboard__range {
	text-align: center;
	font-size: 18px;
	font-weight: 600;
	letter-spacing: -0.02em;
	padding: 16px 12px;
}

.qo-dashboard__stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.qo-dashboard__stat {
	padding: 12px 4px 10px;
	text-align: center;
}

.qo-dashboard__label {
	margin: 0 0 8px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--qo-muted);
}

.qo-dashboard__value {
	margin: 0;
	font-size: 18px;
	font-weight: 650;
	letter-spacing: -0.03em;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.qo-dashboard__value.is-tick {
	animation: qo-dash-tick 0.4s ease;
}

.qo-dashboard__delta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 3px;
	margin: 8px 0 0;
	border-radius: 999px;
	min-width: 54px;
	padding: 1px 7px;
	font-size: 11px;
	line-height: 1.35;
	font-weight: 650;
	font-variant-numeric: tabular-nums;
}

.qo-dashboard__delta.is-purple {
	background: #6a45f5;
}

.qo-dashboard__delta.is-pink {
	background: #d24b9a;
}

.qo-dashboard__delta.is-tick {
	animation: qo-dash-tick 0.4s ease;
}

.qo-dashboard__chart {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	padding: 14px 14px 6px;
	min-height: 0;
}

.qo-dashboard__chart-title {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
}

.qo-dashboard__svg {
	display: block;
	overflow: hidden;
	width: 100%;
	flex: 1 1 auto;
	height: 100%;
	min-height: 132px;
	margin-top: 8px;
}

.qo-dashboard__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@keyframes qo-dash-pulse {
	0% { box-shadow: 0 0 0 0 rgba(61, 222, 106, 0.5); }
	70% { box-shadow: 0 0 0 7px rgba(61, 222, 106, 0); }
	100% { box-shadow: 0 0 0 0 rgba(61, 222, 106, 0); }
}

@keyframes qo-dash-in {
	from { opacity: 0; transform: translateY(-70%); }
	to { opacity: 1; transform: none; }
}

@keyframes qo-dash-out {
	to { opacity: 0; transform: translateY(36%); }
}

@keyframes qo-dash-chosen {
	0% { transform: scale(0.92); opacity: 0.4; }
	100% { transform: none; opacity: 1; }
}

@keyframes qo-dash-tick {
	0% { transform: translateY(3px); opacity: 0.45; }
	100% { transform: none; opacity: 1; }
}

.qo-dashboard--leads .qo-dashboard__window {
	border-radius: 11px;
}

.qo-dashboard--leads .qo-dashboard__body {
	grid-template-columns: minmax(0, 1fr);
}

.qo-dashboard--leads .qo-dashboard__leads {
	height: auto;
}

.qo-dashboard--leads .qo-dashboard__row {
	flex: 0 0 auto;
}

.qo-dashboard--side .qo-dashboard__window {
	border-radius: 11px;
}

.qo-dashboard--side .qo-dashboard__body {
	grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 1024px) {
	.elementor-widget:has(.qo-dashboard) {
		align-self: stretch;
		width: 100%;
		max-width: 100%;
	}

	.qo-dashboard__laptop {
		width: 100%;
	}
}

@media (max-width: 640px) {
	.qo-dashboard__window {
		padding: 12px;
		border-radius: 11px;
	}

	.qo-dashboard__chrome {
		gap: 8px;
		margin-bottom: 12px;
	}

	.qo-dashboard__live {
		font-size: 14px;
	}

	.qo-dashboard__body {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.qo-dashboard__leads {
		height: auto;
		gap: 6px;
	}

	.qo-dashboard__row {
		flex: 0 0 auto;
	}

	.qo-dashboard__chart {
		min-height: 0;
	}

	.qo-dashboard__row {
		grid-template-columns: 28px minmax(0, 1fr) 38px 148px;
		column-gap: 6px;
		padding: 6px 8px;
		min-height: 42px;
		border-radius: 10px;
	}

	.qo-dashboard__avatar {
		width: 28px;
		height: 28px;
	}

	.qo-dashboard__avatar svg {
		width: 15px;
		height: 15px;
	}

	.qo-dashboard__name {
		font-size: 13px;
	}

	.qo-dashboard__date {
		font-size: 11px;
	}

	.qo-dashboard__badge {
		width: 142px;
		height: 22px;
		padding: 0 8px;
		font-size: 10.5px;
	}

	.qo-status {
		--h: 22px;
		--gap: 4px;
		--open: 68px;
	}

	.qo-status__label {
		font-size: 10px;
	}

	.qo-status__dot svg {
		width: 11px;
		height: 11px;
	}

	.qo-dashboard__range {
		font-size: 15px;
		padding: 12px 8px;
	}

	.qo-dashboard__stats {
		gap: 8px;
	}

	.qo-dashboard__value {
		font-size: 18px;
	}

	.qo-dashboard__svg {
		min-height: 100px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.qo-dashboard__pulse,
	.qo-dashboard__row.is-enter,
	.qo-dashboard__row.is-ghost.is-leave,
	.qo-status__dot,
	.qo-dashboard__value.is-tick,
	.qo-dashboard__delta.is-tick {
		animation: none;
	}
}
