.ps-stats {
	margin: 10px 0;
	font-family: Roboto, "Helvetica Neue", -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ps-stats a,
.ps-stats a:hover {
	text-decoration: none !important;
	border-bottom: 0;
	box-shadow: none;
}

.ps-stats li {
	font-family: inherit !important;
}

.ps-stats p.ps-intro {
	margin: 0 0 15px !important;
}

.ps-stats p.ps-intro-spaced {
	margin: 0 0 calc(0.5em + 15px) !important;
}

.ps-stats p.ps-intro-lead {
	margin-bottom: calc(0.5em + 25px) !important;
}


.ps-stats .ps-pie-list li {
	font-size: 15px !important;
	line-height: 1.4 !important;
	margin: 0 !important;
}

.ps-intro {
	color: #4b5563;
	font-size: 15px;
	line-height: 1.65;
	margin: 0 0 24px;
}

.ps-intro strong {
	color: #111827;
}

.ps-intro strong.ps-blue {
	color: #3d5af1;
}

.ps-pie-row {
	display: flex;
	align-items: center;
	gap: 32px;
	flex-wrap: wrap;
	margin-bottom: 30px;
}

.ps-pie-wrap {
	position: relative;
	width: 40%;
	aspect-ratio: 1 / 1;
	height: auto;
	flex-shrink: 0;
}

.ps-pie-list {
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 1;
	min-width: 250px;
}

.ps-pie-list li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 3px 12px;
	font-size: 15px;
	color: #374151;
	border-radius: 8px;
}

.ps-pie-list li.is-self {
	background: #eef2ff;
	font-weight: 700;
}

.ps-pie-list li.is-self,
.ps-pie-list li.is-self .ps-pie-vol {
	color: #3d5af1;
}

.ps-pie-name {
	flex: 1;
}

.ps-pie-name a {
	color: inherit;
	text-decoration: none;
}

.ps-pie-name a:hover {
	color: #3d5af1;
}

.ps-goto {
	color: #b6c3f5;
	margin-left: 5px;
	font-size: 10px;
	vertical-align: 1px;
}

.ps-pie-name a:hover .ps-goto {
	color: #3d5af1;
}

.ps-pie-vol {
	font-weight: 600;
	color: #111827;
}

.ps-card-img {
	width: 40px;
	height: 25px;
	object-fit: cover;
	flex-shrink: 0;
}

.ps-card-placeholder {
	display: inline-block;
	background: linear-gradient(135deg, #d6dae1 0%, #c3c9d2 100%);
	border-radius: 3px;
}

.ps-pie-rank {
	color: #9ca3af;
	font-weight: 400;
	font-size: 0.9em;
	min-width: 32px;
	flex-shrink: 0;
}

.ps-pie-share {
	color: #9ca3af;
	font-weight: 400;
	font-size: 0.9em;
}

.ps-pie-list li.is-self .ps-pie-share {
	color: #8da2f0;
}

.ps-legend-swatch {
	width: 12px;
	height: 12px;
	border-radius: 3px;
	flex-shrink: 0;
}

.ps-pie-tip {
	display: none;
	position: absolute;
	pointer-events: none;
	background: #111827;
	color: #fff;
	font-size: 12px;
	padding: 6px 10px;
	border-radius: 6px;
	white-space: nowrap;
	z-index: 10;
}

.ps-subhead-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 10px;
	margin: 0 0 12px;
}

.ps-stats h3.ps-subhead {
	margin-bottom: 0.5em !important;
}

.ps-stats h3.ps-sec-title {
	margin-bottom: 0.5em !important;
}

.ps-subhead-meta {
	font-size: 12px;
	color: #9ca3af;
}

.ps-chart-wrap {
	position: relative;
	height: 280px;
	margin-bottom: 14px;
}

.ps-users-wrap {
	height: 240px;
	margin-bottom: 24px;
}

.ps-funnel {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 30px;
	margin-bottom: 50px;
}

.ps-funnel-card {
	flex: 1;
	min-width: 110px;
	background: #f8fafc;
	border: 1px solid #eef0f4;
	border-radius: 10px;
	padding: 12px 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 6px;
}

.ps-funnel-card.is-final {
	background: #fff;
	border-color: #3d5af1;
}

.ps-funnel-card.is-final .ps-funnel-label,
.ps-funnel-card.is-final .ps-funnel-value {
	color: #3d5af1;
}

.ps-funnel-label {
	font-size: 12px;
	font-weight: 600;
	color: #6b7280;
	line-height: 1.25;
	word-break: normal;
	overflow-wrap: normal;
	hyphens: none;
	flex: 1;
}

.ps-funnel-value {
	font-size: 22px;
	font-weight: 800;
	color: #111827;
	line-height: 1.1;
}

.ps-funnel-pill {
	background: #eef2ff;
	color: #3d5af1;
	font-size: 12px;
	font-weight: 700;
	padding: 2px 9px;
	border-radius: 6px;
	flex-shrink: 0;
}

.ps-disclaimer {
	margin-top: 32px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 8px 12px;
	font-size: 13px;
	color: #6b7280;
	line-height: 1.6;
}

.ps-disclaimer a {
	color: #3d5af1;
}

.ps-stats-empty {
	color: #92400e;
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: 8px;
	padding: 10px 12px;
}

@media (max-width: 767px) {
		.ps-pie-row {
		gap: 0;
	}

	.ps-pie-wrap {
		width: 92%;
		margin-left: auto;
		margin-right: auto;
	}

	.ps-pie-list {
		min-width: 100%;
		margin-top: 20px;
	}

	.ps-chart-wrap {
		height: 220px;
	}

	.ps-users-wrap {
		height: 190px;
	}

	.ps-funnel {
		gap: 6px;
		flex-wrap: nowrap;
		position: relative;
		align-items: stretch;
		padding-bottom: 17px;
	}

	.ps-funnel-card {
		min-width: 0;
		padding: 8px 8px;
		gap: 4px;
	}

	.ps-funnel-label {
		font-size: 10px;
	}

	.ps-funnel-value {
		font-size: 14px;
	}

	.ps-funnel-pill {
		position: absolute;
		bottom: 0;
		transform: translateX(-50%);
		font-size: 10px;
		line-height: 14px;
		max-height: 20px;
		padding: 1px 6px;
		border: 2px solid #fff;
	}

	.ps-funnel-pill:nth-of-type(1) {
		left: 25%;
	}

	.ps-funnel-pill:nth-of-type(2) {
		left: 50%;
	}

	.ps-funnel-pill:nth-of-type(3) {
		left: 75%;
	}
}

.ps-chart-badge {
	display: inline-block;
	background: #f5f5f5;
	color: #777;
	font-size: 11px;
	padding: 3px 9px;
	border-radius: 3px;
	margin-bottom: 8px;
}

.ps-admin-card .ps-mapping-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 6px;
}

.ps-enable-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
}

.ps-project-select {
	min-width: 240px;
	height: 36px;
}

.ps-mapping-note {
	font-size: 12px;
	color: #92400e;
}

/* --- Card Details box: image+name preview, launch, brand color --- */
.ps-cd-row {
	align-items: flex-end;
	gap: 22px;
	flex-wrap: wrap;
}

.ps-cd-label {
	font-size: 12px;
	font-weight: 600;
	color: #50575e;
}

.ps-cd-preview {
	align-items: center;
	gap: 6px;
}

.ps-cd-img {
	height: 64px;
	width: auto;
	max-width: 150px;
	border-radius: 6px;
	display: block;
}

.ps-cd-img-placeholder {
	width: 100px;
	background: linear-gradient(135deg, #d6dae1 0%, #c3c9d2 100%);
}

.ps-cd-name {
	font-size: 13px;
	font-weight: 600;
	color: #1d2327;
	text-align: center;
	max-width: 110px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ps-cd-month {
	height: 36px;
	box-sizing: border-box;
}

.ps-color-cell {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.ps-color-native {
	width: 40px;
	height: 36px;
	padding: 2px;
	border: 1px solid #c0bfbf;
	border-radius: 4px;
	background: #fff;
	cursor: pointer;
	flex-shrink: 0;
}

.ps-color-hex {
	width: 96px;
	height: 36px;
	box-sizing: border-box;
	font-family: Menlo, Consolas, monospace;
	text-transform: lowercase;
}

/* --- Unified button + input styling across every card on the Company edit
   page (QR, Card Details, PaymentScan). Scoped to .ce-card, which only exists
   on this screen, so nothing else is affected. Fixes the off-center dashicon
   in buttons everywhere and gives one rounded style like the top box. --- */
.ce-card .button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 5px;
	border-radius: 6px;
}

.ce-card .button .dashicons {
	margin: 0 !important;
	line-height: 1;
	width: auto;
	height: auto;
	font-size: 17px;
	vertical-align: middle;
}

.ce-card input[type="text"],
.ce-card input[type="url"],
.ce-card input[type="month"],
.ce-card input[type="number"],
.ce-card select,
.ce-card .wp-color-result {
	border-radius: 6px;
}

/* The wp-color-picker button has a square color block on the left; without
   clipping, its corners poke past the rounded button border as white gaps. */
.ce-card .wp-color-result {
	overflow: hidden;
}

/* Font Awesome card-title icon (QR card), matched to the blue dashicon look. */
.ce-card-title .ce-title-fa {
	font-size: 15px;
	color: #2271b1;
}

/* Align the QR branding row's controls on one bottom baseline, like the
   Card Details row — instead of scattering at different heights. */
.ce-card .cqr-icon-row {
	align-items: flex-end;
}

.ps-ai-color-btn {
	height: 36px;
}

#ps-floating-save {
	position: fixed;
	top: 42px;
	right: 24px;
	z-index: 9999;
	height: auto;
	padding: 6px 18px;
	font-size: 14px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.ps-ai-color-status {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	color: #777;
	max-width: 320px;
}

.ps-admin-preview {
	margin-top: 14px;
	border-top: 1px solid #efefef;
	padding-top: 12px;
}

.ps-preview-heading {
	margin: 0 0 10px;
	font-size: 13px;
	color: #777;
	font-weight: 600;
}

#ps-preview-none {
	background: #f8fafc;
	border: 1px dashed #cbd5e1;
	border-radius: 8px;
	padding: 22px;
	text-align: center;
	color: #6b7280;
}
