/**
 * PCTech Affiliate — Premium Enterprise Dashboard
 * Compatible with:
 *   - shortcode-affiliate-dashboard.php
 *   - affiliate-assets.php
 *
 * Design direction:
 *   Enterprise SaaS / Fintech / Corporate Partner Portal
 *   Navy PCTech + controlled orange accent
 *
 * IMPORTANT:
 *   This file intentionally targets the existing PHP class/id names.
 *   No PHP markup or JavaScript IDs are required to change.
 */

.pctech-aff-dashboard {
	--aff-navy: #09213f;
	--aff-navy-2: #102f55;
	--aff-orange: #ee8500;
	--aff-orange-dark: #d97000;
	--aff-ink: #14263d;
	--aff-muted: #6b7b90;
	--aff-soft: #f4f7fb;
	--aff-border: #e5ebf2;
	--aff-white: #ffffff;
	--aff-success: #16845b;
	--aff-danger: #c73b3b;
	--aff-shadow: 0 10px 35px rgba(9, 33, 63, .07);
	--aff-shadow-hover: 0 16px 45px rgba(9, 33, 63, .12);
	--aff-radius: 18px;
	--aff-radius-sm: 12px;

	box-sizing: border-box;
	width: 100%;
	max-width: 1480px;
	margin: 32px auto 64px;
	padding: 0 28px;
	color: var(--aff-ink);
	font-family: inherit;
}

.pctech-aff-dashboard *,
.pctech-aff-dashboard *::before,
.pctech-aff-dashboard *::after {
	box-sizing: border-box;
}

/* =========================
   Dashboard shell / header
   ========================= */

.pctech-aff-dashboard-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 26px;
	padding: 0 2px;
}

.pctech-aff-dashboard-header h1 {
	margin: 0 0 7px;
	color: var(--aff-navy);
	font-size: clamp(26px, 2.3vw, 36px);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -.035em;
}

.pctech-aff-header-sub {
	margin: 0;
	color: var(--aff-muted);
	font-size: 14px;
	line-height: 1.6;
}

.pctech-aff-header-right {
	display: flex;
	align-items: center;
	gap: 12px;
}

.pctech-aff-avatar {
	width: 48px;
	height: 48px;
	display: grid;
	place-items: center;
	flex: 0 0 48px;
	border: 3px solid #fff;
	border-radius: 50%;
	background: linear-gradient(145deg, var(--aff-navy), #1d4e80);
	color: #fff;
	box-shadow: 0 6px 20px rgba(9, 33, 63, .16);
	font-size: 16px;
	font-weight: 800;
}

.pctech-aff-btn-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid rgba(9, 33, 63, .22);
	border-radius: 11px;
	background: #fff;
	color: var(--aff-navy);
	font-size: 13px;
	font-weight: 750;
	text-decoration: none;
	transition: .22s ease;
}

.pctech-aff-btn-secondary:hover {
	border-color: var(--aff-navy);
	background: var(--aff-navy);
	color: #fff;
	transform: translateY(-1px);
}

.pctech-aff-dashboard .btn.btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 21px;
	border: 0;
	border-radius: 11px;
	background: linear-gradient(135deg, var(--aff-orange), #f39a19);
	color: #fff;
	box-shadow: 0 9px 22px rgba(238, 133, 0, .20);
	font-weight: 750;
	text-decoration: none;
	transition: .22s ease;
}

.pctech-aff-dashboard .btn.btn-primary:hover {
	background: linear-gradient(135deg, var(--aff-orange-dark), var(--aff-orange));
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 13px 28px rgba(238, 133, 0, .27);
}

/* =========================
   Main layout / sidebar
   ========================= */

.pctech-aff-dashboard-layout {
	display: grid;
	grid-template-columns: 248px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}

.pctech-aff-sidebar {
	position: sticky;
	top: 24px;
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 16px 12px 14px;
	border: 1px solid rgba(9, 33, 63, .07);
	border-radius: 20px;
	background: rgba(255, 255, 255, .96);
	box-shadow: var(--aff-shadow);
}

.pctech-aff-sidebar::before {
	content: "PCTECH  ·  PARTNER";
	display: block;
	padding: 8px 12px 18px;
	border-bottom: 1px solid var(--aff-border);
	color: var(--aff-navy);
	font-size: 14px;
	font-weight: 850;
	letter-spacing: .10em;
}

.pctech-aff-sidebar-item {
	width: 100%;
	min-height: 47px;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 0 13px;
	border: 1px solid transparent;
	border-radius: 11px;
	background: transparent;
	color: #53677f;
	font: inherit;
	font-size: 14px;
	font-weight: 650;
	text-align: left;
	cursor: pointer;
	transition: .2s ease;
}

.pctech-aff-sidebar-item:hover {
	background: #f5f8fc;
	color: var(--aff-navy);
	transform: translateX(2px);
}

.pctech-aff-sidebar-item.pctech-aff-active {
	background: linear-gradient(135deg, var(--aff-navy), #123a68);
	color: #fff;
	box-shadow: 0 8px 20px rgba(9, 33, 63, .16);
}

.pctech-aff-sidebar-icon {
	width: 28px;
	display: inline-flex;
	justify-content: center;
	font-size: 16px;
	filter: saturate(.82);
}

.pctech-aff-sidebar-promo {
	position: relative;
	overflow: hidden;
	margin: 18px 1px 0;
	padding: 20px 17px;
	border-radius: 16px;
	background:
		radial-gradient(circle at 85% 12%, rgba(238, 133, 0, .22), transparent 32%),
		linear-gradient(150deg, #071c36, #0e3157);
	color: #fff;
	box-shadow: 0 14px 30px rgba(9, 33, 63, .20);
}

.pctech-aff-sidebar-promo::after {
	content: "";
	position: absolute;
	width: 110px;
	height: 110px;
	right: -55px;
	bottom: -55px;
	border: 1px solid rgba(255,255,255,.10);
	border-radius: 50%;
}

.pctech-aff-sidebar-promo-icon {
	width: 42px;
	height: 42px;
	display: grid;
	place-items: center;
	margin-bottom: 13px;
	border: 1px solid rgba(255,255,255,.18);
	border-radius: 12px;
	background: rgba(255,255,255,.07);
	font-size: 20px;
}

.pctech-aff-sidebar-promo strong {
	display: block;
	margin-bottom: 7px;
	font-size: 14px;
}

.pctech-aff-sidebar-promo p {
	margin: 0 0 15px;
	color: rgba(255,255,255,.72);
	font-size: 12px;
	line-height: 1.55;
}

.pctech-aff-sidebar-promo-btn {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	padding: 0 12px;
	border: 1px solid rgba(255,255,255,.28);
	border-radius: 9px;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
}

/* =========================
   Content / panels
   ========================= */

.pctech-aff-tab-content {
	min-width: 0;
}

.pctech-aff-tab-panel[hidden] {
	display: none !important;
}

.pctech-aff-tab-panel > h2 {
	margin: 30px 0 13px;
	color: var(--aff-navy);
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -.02em;
}

.pctech-aff-tab-panel > h2:first-child {
	margin-top: 0;
}

.pctech-aff-card {
	min-width: 0;
	padding: 23px;
	border: 1px solid rgba(9, 33, 63, .065);
	border-radius: var(--aff-radius);
	background: #fff;
	box-shadow: var(--aff-shadow);
	transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease;
}

.pctech-aff-card:hover {
	border-color: rgba(9, 33, 63, .10);
	box-shadow: var(--aff-shadow-hover);
}

.pctech-aff-card-title {
	margin: 0 0 17px;
	color: var(--aff-navy);
	font-size: 13px;
	font-weight: 850;
	letter-spacing: .055em;
	text-transform: uppercase;
}

.pctech-aff-link-qr-row {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(330px, .9fr);
	gap: 18px;
	margin-bottom: 18px;
}

.pctech-aff-referral-box {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 10px;
	margin: 0 0 15px;
	padding: 0;
	background: transparent;
	box-shadow: none;
}

.pctech-aff-referral-box input {
	width: 100%;
	min-width: 0;
	height: 46px;
	padding: 0 14px;
	border: 1px solid var(--aff-border);
	border-radius: 11px;
	background: #f8fafc;
	color: #344a64;
	font-size: 13px;
	box-shadow: inset 0 1px 1px rgba(9,33,63,.02);
}

.pctech-aff-share-label {
	display: inline-block;
	margin: 0 10px 0 0;
	color: var(--aff-muted);
	font-size: 12px;
	font-weight: 650;
	vertical-align: middle;
}

.pctech-aff-share-icons {
	display: inline-flex;
	gap: 7px;
	vertical-align: middle;
}

.pctech-aff-share-btn {
	width: 34px;
	height: 34px;
	display: inline-grid;
	place-items: center;
	border: 0 !important;
	border-radius: 50% !important;
	color: #fff !important;
	font-size: 12px;
	font-weight: 800;
	text-decoration: none !important;
	box-shadow: 0 5px 13px rgba(9,33,63,.12);
	transition: .2s ease;
}

.pctech-aff-share-btn:hover {
	transform: translateY(-2px) scale(1.04);
	filter: brightness(1.04);
}

.pctech-aff-qr-box {
	min-height: 150px;
	display: flex;
	align-items: center;
	gap: 20px;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
}

.pctech-aff-qr-box canvas,
.pctech-aff-qr-box img {
	width: 132px !important;
	height: 132px !important;
	max-width: 132px;
	flex: 0 0 132px;
	border: 7px solid #fff;
	border-radius: 10px;
	box-shadow: 0 7px 22px rgba(9,33,63,.10);
}

.pctech-aff-qr-box p {
	line-height: 1.55;
}

.pctech-aff-qr-box > div:last-child {
	min-width: 0;
}

/* =========================
   KPI cards
   ========================= */

.pctech-aff-stat-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 15px;
	margin: 0 0 20px;
}

.pctech-aff-stat-card {
	position: relative;
	min-width: 0;
	min-height: 126px;
	display: grid;
	grid-template-columns: 45px minmax(0, 1fr);
	grid-template-rows: auto auto;
	column-gap: 13px;
	align-items: center;
	padding: 20px;
	border: 1px solid rgba(9,33,63,.06);
	border-radius: 16px;
	background: #fff;
	box-shadow: var(--aff-shadow);
	overflow: hidden;
}

.pctech-aff-stat-card::after {
	content: "";
	position: absolute;
	right: -24px;
	bottom: -32px;
	width: 90px;
	height: 90px;
	border: 1px solid rgba(9,33,63,.045);
	border-radius: 50%;
}

.pctech-aff-stat-icon {
	grid-row: 1 / span 2;
	width: 45px;
	height: 45px;
	display: grid;
	place-items: center;
	border-radius: 13px !important;
	font-size: 18px;
}

.pctech-aff-stat-card .label {
	margin: 0 0 3px;
	color: var(--aff-muted);
	font-size: 12px;
	font-weight: 600;
}

.pctech-aff-stat-card .value {
	color: var(--aff-navy);
	font-size: clamp(20px, 2vw, 25px);
	font-weight: 850;
	line-height: 1.1;
	letter-spacing: -.025em;
}

.pctech-aff-stat-card.highlight {
	border-color: rgba(238,133,0,.14);
	background: linear-gradient(145deg, #fff, #fffaf4);
}

.pctech-aff-stat-card.highlight .value {
	color: var(--aff-orange);
}

/* =========================
   Analytics / recent
   ========================= */

.pctech-aff-chart-recent-row {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(330px, .85fr);
	gap: 18px;
	margin-bottom: 24px;
}

.pctech-aff-chart-card {
	min-height: 405px;
}

.pctech-aff-chart-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
}

.pctech-aff-chart-header .pctech-aff-card-title {
	margin: 0;
}

.pctech-aff-chart-header select,
.pctech-aff-dashboard select {
	height: 38px;
	padding: 0 34px 0 12px;
	border: 1px solid var(--aff-border);
	border-radius: 9px;
	background: #fff;
	color: var(--aff-navy);
	font: inherit;
	font-size: 12px;
	font-weight: 650;
}

#pctech-aff-chart-canvas {
	width: 100% !important;
	max-height: 205px;
	margin: 5px 0 12px;
}

.pctech-aff-chart-metrics {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin-top: 8px;
}

.pctech-aff-chart-metrics > div {
	padding: 13px 14px;
	border: 1px solid var(--aff-border);
	border-radius: 11px;
	background: #fbfcfe;
}

.pctech-aff-chart-metrics .label {
	margin-bottom: 4px;
	color: var(--aff-muted);
	font-size: 11px;
}

.pctech-aff-chart-metrics .value {
	color: var(--aff-navy);
	font-size: 16px;
	font-weight: 800;
}

.pctech-aff-chart-metrics .change {
	min-height: 16px;
	margin-top: 3px;
	font-size: 11px;
	font-weight: 700;
}

.pctech-aff-empty-state {
	min-height: 260px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 25px;
	text-align: center;
}

.pctech-aff-empty-icon {
	width: 68px;
	height: 68px;
	display: grid;
	place-items: center;
	margin-bottom: 14px;
	border-radius: 20px;
	background: #f4f7fb;
	color: #7c8da3;
	font-size: 27px;
}

.pctech-aff-empty-state strong {
	color: var(--aff-navy);
	font-size: 15px;
}

.pctech-aff-empty-state p {
	max-width: 280px;
	margin: 7px auto 0;
	color: var(--aff-muted);
	font-size: 12.5px;
	line-height: 1.6;
}

/* =========================
   Tables
   ========================= */

.pctech-aff-dashboard table {
	width: 100%;
	margin: 0 0 24px;
	border: 1px solid var(--aff-border);
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 15px;
	background: #fff;
	box-shadow: 0 7px 24px rgba(9,33,63,.045);
	overflow: hidden;
}

.pctech-aff-dashboard table th,
.pctech-aff-dashboard table td {
	padding: 14px 15px;
	border-bottom: 1px solid #edf1f5;
	color: #43566d;
	font-size: 13px;
	line-height: 1.45;
	text-align: left;
	vertical-align: middle;
}

.pctech-aff-dashboard table th {
	background: #f8fafc;
	color: #5a6d84;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .045em;
	text-transform: uppercase;
}

.pctech-aff-dashboard table tbody tr {
	transition: background .16s ease;
}

.pctech-aff-dashboard table tbody tr:hover {
	background: #fbfcfe;
}

.pctech-aff-dashboard table tbody tr:last-child td {
	border-bottom: 0;
}

.pctech-aff-dashboard table code {
	padding: 4px 7px;
	border-radius: 6px;
	background: #f3f6fa;
	color: var(--aff-navy);
	font-size: 12px;
	font-weight: 700;
}

/* =========================
   Forms / account / customer
   ========================= */

.pctech-aff-field {
	margin-bottom: 17px;
}

.pctech-aff-field label {
	display: block;
	margin-bottom: 7px;
	color: var(--aff-navy);
	font-size: 12.5px;
	font-weight: 700;
}

.pctech-aff-field input[type="text"],
.pctech-aff-field input[type="tel"],
.pctech-aff-field input[type="email"],
.pctech-aff-field input[type="password"],
.pctech-aff-field input[type="number"],
.pctech-aff-field textarea,
.pctech-aff-field select,
#pctech-aff-withdraw-amount,
#pctech-aff-dashboard input[type="text"],
#pctech-aff-dashboard input[type="email"] {
	width: 100%;
	min-height: 45px;
	padding: 10px 13px;
	border: 1px solid #dfe6ee;
	border-radius: 10px;
	background: #fff;
	color: var(--aff-ink);
	font: inherit;
	font-size: 13px;
	transition: .18s ease;
}

.pctech-aff-field input:focus,
.pctech-aff-field textarea:focus,
.pctech-aff-field select:focus {
	outline: none;
	border-color: rgba(238,133,0,.70);
	box-shadow: 0 0 0 4px rgba(238,133,0,.09);
}

.pctech-aff-field textarea {
	min-height: 92px;
	resize: vertical;
}

.pctech-aff-error {
	margin: 7px 0;
	color: var(--aff-danger) !important;
	font-size: 12.5px;
	font-weight: 600;
}

.pctech-aff-success {
	margin: 7px 0;
	color: var(--aff-success) !important;
	font-size: 12.5px;
	font-weight: 600;
}

.pctech-aff-bank-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	margin: 0 0 18px;
	padding: 17px 18px;
	border: 1px solid #dfe8e4;
	border-radius: 13px;
	background: #f7fcfa;
}

.pctech-aff-bank-summary p {
	color: #496457;
	font-size: 13px;
}

.pctech-aff-ob-results {
	border: 1px solid var(--aff-border);
	border-radius: 11px;
	background: #fff;
	box-shadow: 0 12px 30px rgba(9,33,63,.10);
}

.pctech-aff-ob-result-row {
	padding: 11px 13px;
	border-bottom: 1px solid #edf1f5;
	cursor: pointer;
	transition: background .15s ease;
}

.pctech-aff-ob-result-row:hover {
	background: #f7f9fc;
}

.pctech-aff-ob-qty-input,
.pctech-aff-ob-svc-qty-input {
	width: 70px !important;
	min-height: 36px !important;
	padding: 6px 9px !important;
	border-radius: 8px !important;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 1180px) {
	.pctech-aff-dashboard {
		padding: 0 20px;
	}

	.pctech-aff-dashboard-layout {
		grid-template-columns: 215px minmax(0, 1fr);
	}

	.pctech-aff-stat-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pctech-aff-link-qr-row,
	.pctech-aff-chart-recent-row {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 820px) {
	.pctech-aff-dashboard {
		margin-top: 22px;
		padding: 0 14px;
	}

	.pctech-aff-dashboard-header {
		align-items: flex-start;
	}

	.pctech-aff-dashboard-header h1 {
		font-size: 25px;
	}

	.pctech-aff-header-right {
		flex-wrap: wrap;
		justify-content: flex-end;
	}

	.pctech-aff-dashboard-layout {
		grid-template-columns: 1fr;
	}

	.pctech-aff-sidebar {
		position: static;
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 6px;
		padding: 10px;
	}

	.pctech-aff-sidebar::before,
	.pctech-aff-sidebar-promo {
		display: none;
	}

	.pctech-aff-sidebar-item {
		justify-content: center;
		padding: 0 7px;
		font-size: 12px;
	}

	.pctech-aff-sidebar-icon {
		width: auto;
	}

	.pctech-aff-card {
		padding: 19px;
	}

	.pctech-aff-qr-box {
		align-items: flex-start;
	}
}

@media (max-width: 560px) {
	.pctech-aff-dashboard {
		padding: 0 10px;
	}

	.pctech-aff-dashboard-header {
		display: block;
	}

	.pctech-aff-header-right {
		justify-content: flex-start;
		margin-top: 14px;
	}

	.pctech-aff-sidebar {
		grid-template-columns: repeat(2, 1fr);
	}

	.pctech-aff-stat-grid {
		grid-template-columns: 1fr;
	}

	.pctech-aff-referral-box {
		grid-template-columns: 1fr;
	}

	.pctech-aff-qr-box {
		flex-direction: column;
	}

	.pctech-aff-chart-metrics {
		grid-template-columns: 1fr;
	}

	.pctech-aff-dashboard table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		white-space: nowrap;
	}

	.pctech-aff-dashboard table th,
	.pctech-aff-dashboard table td {
		padding: 11px 12px;
	}

	.pctech-aff-dashboard .btn.btn-primary,
	.pctech-aff-btn-secondary {
		min-height: 42px;
	}

	.pctech-aff-card-title {
		font-size: 12px;
	}
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
	.pctech-aff-dashboard *,
	.pctech-aff-dashboard *::before,
	.pctech-aff-dashboard *::after {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
	}
}

/* ================================================================
   PCTech Affiliate — CUSTOMER / ĐẶT HỘ PREMIUM UI
   Designed to match the approved navy + orange reference layout.
   Existing PHP IDs and AJAX selectors are intentionally preserved.
   ================================================================ */

.pctech-aff-customer-page {
	--customer-navy: #08284d;
	--customer-navy-2: #0d3969;
	--customer-orange: #f5820b;
	--customer-orange-2: #ff9a1f;
	--customer-line: #e1e9f2;
	--customer-bg: #f5f8fc;
}

.pctech-aff-customer-page .pctech-aff-page-heading {
	margin: 0 0 18px;
}

.pctech-aff-page-kicker {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
	color: #5e7691;
	font-size: 11px;
	font-weight: 850;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.pctech-aff-kicker-icon {
	width: 24px;
	height: 24px;
	display: grid;
	place-items: center;
	border-radius: 7px;
	background: #fff2e4;
	color: var(--customer-orange);
}

.pctech-aff-customer-page .pctech-aff-page-heading h2 {
	margin: 0;
	color: var(--customer-navy);
	font-size: clamp(25px, 2.4vw, 34px);
	font-weight: 850;
	letter-spacing: -.035em;
}

.pctech-aff-customer-page .pctech-aff-page-heading p {
	margin: 5px 0 0;
	color: #71839a;
	font-size: 13px;
	line-height: 1.55;
}

/* top control bar */
.pctech-aff-customer-typebar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 16px;
	padding: 14px 18px;
}

.pctech-aff-typebar-title {
	display: flex;
	align-items: center;
	gap: 9px;
	color: var(--customer-navy);
	font-size: 12px;
	letter-spacing: .045em;
}

.pctech-aff-typebar-title > span {
	width: 32px;
	height: 32px;
	display: grid;
	place-items: center;
	border-radius: 10px;
	background: #fff3e7;
	color: var(--customer-orange);
}

.pctech-aff-segment-group {
	display: flex;
	align-items: center;
	gap: 5px;
}

.pctech-aff-segment-label {
	margin-right: 5px;
	color: #6c7e93;
	font-size: 11px;
	font-weight: 700;
}

.pctech-aff-segment {
	position: relative;
	cursor: pointer;
}

.pctech-aff-segment input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.pctech-aff-segment span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 86px;
	height: 36px;
	padding: 0 13px;
	border: 1px solid #dce5ef;
	border-radius: 9px;
	background: #f9fbfd;
	color: #5b7089;
	font-size: 11px;
	font-weight: 750;
	transition: .2s ease;
}

.pctech-aff-segment input:checked + span {
	border-color: var(--customer-orange);
	background: linear-gradient(135deg, var(--customer-orange), var(--customer-orange-2));
	color: #fff;
	box-shadow: 0 6px 16px rgba(245,130,11,.20);
}

/* main customer grid */
.pctech-aff-customer-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: 16px;
	align-items: start;
}

.pctech-aff-customer-main,
.pctech-aff-customer-side {
	min-width: 0;
}

.pctech-aff-customer-main {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.pctech-aff-customer-side {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.pctech-aff-form-card,
.pctech-aff-lead-card,
.pctech-aff-help-card,
.pctech-aff-support-card,
.pctech-aff-leads-table-card {
	padding: 22px;
}

.pctech-aff-section-heading {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 18px;
}

.pctech-aff-section-icon {
	width: 38px;
	height: 38px;
	flex: 0 0 38px;
	display: grid;
	place-items: center;
	border-radius: 11px;
	background: #edf5ff;
	color: #1e62bd;
	font-size: 17px;
}

.pctech-aff-section-icon-orange {
	background: #fff1e2;
	color: var(--customer-orange);
}

.pctech-aff-section-heading h3 {
	margin: 0 0 3px;
	color: var(--customer-navy);
	font-size: 15px;
	font-weight: 850;
	letter-spacing: -.015em;
	text-transform: uppercase;
}

.pctech-aff-section-heading p {
	margin: 0;
	color: #7a8ba0;
	font-size: 11.5px;
	line-height: 1.5;
}

.pctech-aff-form-grid {
	display: grid;
	gap: 0 14px;
}

.pctech-aff-form-grid-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pctech-aff-form-grid-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pctech-aff-field-wide {
	grid-column: 1 / -1;
}

.pctech-aff-form-card .pctech-aff-field,
.pctech-aff-lead-card .pctech-aff-field {
	margin-bottom: 14px;
}

.pctech-aff-form-card .pctech-aff-field label,
.pctech-aff-lead-card .pctech-aff-field label {
	margin-bottom: 6px;
	color: #25405e;
	font-size: 11px;
	font-weight: 750;
}

.pctech-aff-form-card .pctech-aff-field label span,
.pctech-aff-lead-card .pctech-aff-field label span {
	color: var(--customer-orange);
}

.pctech-aff-form-card .pctech-aff-field label em,
.pctech-aff-lead-card .pctech-aff-field label em {
	color: #93a0b0;
	font-style: normal;
	font-weight: 500;
}

.pctech-aff-form-card .pctech-aff-field input,
.pctech-aff-form-card .pctech-aff-field textarea,
.pctech-aff-lead-card .pctech-aff-field input,
.pctech-aff-lead-card .pctech-aff-field textarea {
	min-height: 42px;
	border-color: #dbe4ed;
	border-radius: 9px;
	background: #fff;
	box-shadow: none;
	font-size: 12px;
}

.pctech-aff-form-card .pctech-aff-field textarea,
.pctech-aff-lead-card .pctech-aff-field textarea {
	min-height: 78px;
}

.pctech-aff-form-card .pctech-aff-field input::placeholder,
.pctech-aff-form-card .pctech-aff-field textarea::placeholder,
.pctech-aff-lead-card .pctech-aff-field input::placeholder,
.pctech-aff-lead-card .pctech-aff-field textarea::placeholder {
	color: #a2afbd;
}

.pctech-aff-form-card .pctech-aff-field input:focus,
.pctech-aff-form-card .pctech-aff-field textarea:focus,
.pctech-aff-lead-card .pctech-aff-field input:focus,
.pctech-aff-lead-card .pctech-aff-field textarea:focus {
	border-color: rgba(245,130,11,.65);
	box-shadow: 0 0 0 3px rgba(245,130,11,.09);
}

.pctech-aff-field small {
	display: block;
	margin-top: 3px;
	color: #8c9bad;
	font-size: 9px;
	text-align: right;
}

.pctech-aff-company-fields {
	display: contents;
}

.pctech-aff-company-fields[hidden] {
	display: none !important;
}

/* search / lines */
.pctech-aff-search-wrap {
	position: relative;
}

.pctech-aff-search-wrap > span {
	position: absolute;
	left: 13px;
	top: 50%;
	z-index: 1;
	transform: translateY(-50%);
	color: #7e93aa;
	font-size: 18px;
	line-height: 1;
}

.pctech-aff-search-wrap input {
	padding-left: 38px !important;
}

.pctech-aff-ob-results {
	position: relative;
	z-index: 5;
	margin-top: 5px;
	border: 1px solid #e0e7ef;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 15px 35px rgba(9,33,63,.12);
}

.pctech-aff-ob-result-row {
	padding: 11px 13px;
	border-bottom: 1px solid #edf1f5;
	color: #29435f;
	font-size: 11.5px;
	font-weight: 600;
}

.pctech-aff-ob-result-row:last-child {
	border-bottom: 0;
}

.pctech-aff-ob-result-row:hover {
	background: #fff8f0;
	color: var(--customer-orange);
}

.pctech-aff-line-table {
	margin-top: 10px !important;
	box-shadow: none !important;
	border-radius: 10px !important;
}

.pctech-aff-line-table th,
.pctech-aff-line-table td {
	padding: 10px 11px !important;
	font-size: 11px !important;
}

.pctech-aff-line-table th {
	font-size: 9px !important;
}

.pctech-aff-line-table input[type="number"] {
	width: 60px !important;
	min-height: 34px !important;
	padding: 5px 8px !important;
	border-radius: 7px !important;
}

.pctech-aff-important-note {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 7px;
	padding: 12px 13px;
	border: 1px solid #ffe0ba;
	border-radius: 10px;
	background: linear-gradient(135deg, #fffaf4, #fff4e7);
}

.pctech-aff-important-note > span {
	font-size: 18px;
}

.pctech-aff-important-note strong {
	display: block;
	margin-bottom: 2px;
	color: #a95800;
	font-size: 11px;
}

.pctech-aff-important-note p {
	margin: 0;
	color: #816f5c;
	font-size: 10.5px;
	line-height: 1.5;
}

.pctech-aff-order-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	margin-top: 16px;
}

.pctech-aff-total {
	color: #72849a;
	font-size: 11px;
}

.pctech-aff-total strong {
	display: block;
	margin-top: 2px;
	color: var(--customer-navy);
	font-size: 20px;
	font-weight: 850;
}

.pctech-aff-form-actions,
.pctech-aff-lead-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 9px;
}

.pctech-aff-btn-large {
	min-height: 43px !important;
	padding: 0 18px !important;
	font-size: 12px !important;
}

.pctech-aff-reset-order {
	min-height: 43px;
}

.pctech-aff-error:empty,
.pctech-aff-success:empty {
	display: none;
}

.pctech-aff-error,
.pctech-aff-success {
	margin: 10px 0 0 !important;
	font-size: 11px !important;
}

/* side help */
.pctech-aff-help-card {
	position: relative;
	overflow: hidden;
	background: linear-gradient(180deg, #fff, #fbfdff);
}

.pctech-aff-help-card::before {
	content: "";
	position: absolute;
	width: 115px;
	height: 115px;
	right: -45px;
	top: -45px;
	border-radius: 50%;
	background: rgba(245,130,11,.08);
}

.pctech-aff-help-illustration {
	width: 74px;
	height: 74px;
	display: grid;
	place-items: center;
	margin: 2px auto 14px;
	border-radius: 22px;
	background: linear-gradient(145deg, #eef5ff, #dceaff);
	color: #1760ba;
	font-size: 32px;
	box-shadow: inset 0 0 0 1px rgba(23,96,186,.06);
}

.pctech-aff-help-card h3,
.pctech-aff-support-card h3 {
	position: relative;
	margin: 0 0 13px;
	color: var(--customer-navy);
	font-size: 16px;
	font-weight: 850;
	line-height: 1.25;
}

.pctech-aff-help-card ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.pctech-aff-help-card li {
	position: relative;
	padding: 0 0 10px 22px;
	color: #61758d;
	font-size: 11px;
	line-height: 1.5;
}

.pctech-aff-help-card li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: -1px;
	width: 15px;
	height: 15px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: #e1f8ec;
	color: #17a264;
	font-size: 9px;
	font-weight: 850;
}

.pctech-aff-support-card {
	background: #f9fbfe;
}

.pctech-aff-support-icon {
	width: 43px;
	height: 43px;
	display: grid;
	place-items: center;
	margin-bottom: 12px;
	border-radius: 12px;
	background: #eaf2ff;
	color: #2366bc;
	font-size: 19px;
}

.pctech-aff-support-card p {
	margin: 0;
	color: #71839a;
	font-size: 11px;
	line-height: 1.6;
}

.pctech-aff-tip {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-top: 14px;
	padding: 11px;
	border-radius: 10px;
	background: #fff3e3;
}

.pctech-aff-tip strong {
	display: block;
	margin-bottom: 2px;
	color: #a75c0b;
	font-size: 10.5px;
}

.pctech-aff-tip span {
	color: #7b6b5a;
	font-size: 9.5px;
	line-height: 1.45;
}

/* lead card */
.pctech-aff-lead-card {
	background: linear-gradient(180deg, #fff, #fffdfa);
}

.pctech-aff-lead-actions {
	justify-content: space-between;
	margin-top: 2px;
}

.pctech-aff-secure-note {
	color: #8a98a8;
	font-size: 10px;
}

/* submitted customers */
.pctech-aff-leads-table-card {
	margin-top: 16px;
}

.pctech-aff-table-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	margin-bottom: 14px;
}

.pctech-aff-table-heading h3 {
	margin: 0 0 3px;
	color: var(--customer-navy);
	font-size: 15px;
	font-weight: 850;
}

.pctech-aff-table-heading p {
	margin: 0;
	color: #8392a4;
	font-size: 10.5px;
}

.pctech-aff-view-all {
	color: var(--customer-orange);
	font-size: 11px;
	font-weight: 750;
	white-space: nowrap;
}

.pctech-aff-table-wrap {
	overflow-x: auto;
}

.pctech-aff-leads-table-card table {
	margin: 0 !important;
	box-shadow: none !important;
}

.pctech-aff-leads-table-card th,
.pctech-aff-leads-table-card td {
	padding: 12px 10px !important;
	font-size: 10.5px !important;
}

.pctech-aff-leads-table-card th {
	font-size: 8.5px !important;
	letter-spacing: .06em;
}

.pctech-aff-pill,
.pctech-aff-status-pill {
	display: inline-flex;
	align-items: center;
	min-height: 22px;
	padding: 0 8px;
	border-radius: 99px;
	font-size: 9px;
	font-weight: 750;
	white-space: nowrap;
}

.pctech-aff-pill-orange {
	background: #fff0df;
	color: #c86600;
}

.pctech-aff-status-pill {
	background: #edf4ff;
	color: #2563b9;
}

.pctech-aff-status-pending {
	background: #fff3dd;
	color: #a65a00;
}

.pctech-aff-status-confirmed,
.pctech-aff-status-approved,
.pctech-aff-status-completed {
	background: #e8f9ef;
	color: #168153;
}

.pctech-aff-status-rejected {
	background: #fff0f0;
	color: #c33c3c;
}

.pctech-aff-row-action {
	color: #60758d;
	font-size: 15px;
}

.pctech-aff-empty-row td {
	padding: 0 !important;
}

.pctech-aff-table-empty {
	min-height: 150px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	color: #8494a7;
}

.pctech-aff-table-empty > div {
	width: 48px;
	height: 48px;
	display: grid;
	place-items: center;
	margin-bottom: 5px;
	border-radius: 15px;
	background: #f4f7fb;
	font-size: 22px;
}

.pctech-aff-table-empty strong {
	color: var(--customer-navy);
	font-size: 12px;
}

.pctech-aff-table-empty span {
	font-size: 10px;
}

@media (max-width: 1180px) {
	.pctech-aff-customer-grid {
		grid-template-columns: 1fr;
	}
	.pctech-aff-customer-side {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.pctech-aff-customer-typebar {
		align-items: flex-start;
		flex-direction: column;
	}
	.pctech-aff-form-grid-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 680px) {
	.pctech-aff-customer-side,
	.pctech-aff-form-grid-3,
	.pctech-aff-form-grid-2 {
		grid-template-columns: 1fr;
	}
	.pctech-aff-field-wide {
		grid-column: auto;
	}
	.pctech-aff-customer-typebar {
		padding: 14px;
	}
	.pctech-aff-segment-group {
		width: 100%;
		flex-wrap: wrap;
	}
	.pctech-aff-order-footer,
	.pctech-aff-lead-actions {
		align-items: stretch;
		flex-direction: column;
	}
	.pctech-aff-form-actions {
		width: 100%;
		justify-content: stretch;
	}
	.pctech-aff-form-actions > * {
		flex: 1;
	}
	.pctech-aff-secure-note {
		text-align: center;
	}
}
