/* ============================================
   ADVOCATE DASHBOARD V2 — REDESIGN STYLESHEET
   Namespace: padv2-
   Version: 1.0.64
   Cache-bust: All class names use padv2- prefix.
   Zero overlap with posh-dashboard.css.
   ============================================ */

/* ----------------------------------------------------------
   1. DESIGN TOKENS (CSS Custom Properties)
   ---------------------------------------------------------- */

.padv2-root,
.padv2-container {
	--posh-pink: #E0457B;
	--posh-pink-dark: #c03a68;
	--posh-pink-light: #FDF0F5;
	--posh-teal: #0ABAB5;
	--posh-navy: #375275;
	--posh-orange: #EAA26D;
	--posh-success: #28a745;
	--posh-warning: #ffc107;
	--posh-danger: #dc3545;
	--posh-bg: #f8f9fa;
	--posh-bg-light: #fafafa;
	--posh-card-bg: #ffffff;
	--posh-border: #e0e0e0;
	--posh-border-light: #e8e8e8;
	--posh-text: #1A1A1A;
	--posh-text-light: #555555;
	--posh-text-muted: #999999;
	--posh-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	--posh-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
	--posh-radius: 12px;
	--posh-radius-sm: 8px;
	--posh-radius-pill: 999px;
	--posh-spacing: 1.5rem;
	--posh-spacing-sm: 1rem;
	--posh-spacing-xs: 0.5rem;
	--posh-transition: 0.2s ease;
	--posh-transition-slow: 0.3s ease;
}

/* ----------------------------------------------------------
   2. BASE RESET & CONTAINER
   ---------------------------------------------------------- */

/* Shared typography */
.padv2-root,
.padv2-container {
	box-sizing: border-box;
	font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: var(--posh-text);
	line-height: 1.6;
}

.padv2-container {
	width: 100%;
	margin: 0 auto;
	padding: 0 1rem;
}

/* Root: full width until 1200px breakpoint sets max-width (welcome hero uses full card width) */
.padv2-root {
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1rem;
	padding-right: 1rem;
}

.padv2-root ul,
.padv2-container ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.padv2-root li,
.padv2-container li {
	margin-bottom: var(--posh-spacing);
}

/* ----------------------------------------------------------
   3. TYPOGRAPHY
   ---------------------------------------------------------- */

.padv2-root .padv2-page-title,
.padv2-root .padv2-page-title {
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--posh-text);
	margin: 0;
}

.padv2-root .padv2-greeting,
.padv2-root .padv2-greeting {
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--posh-text);
	margin: 0 0 var(--posh-spacing-xs) 0;
}

.padv2-root .padv2-section-title,
.padv2-root .padv2-section-title {
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--posh-text);
}

.padv2-root .padv2-card-title,
.padv2-root .padv2-card-title {
	font-size: 1.125rem;
	font-weight: 600;
	margin: 0;
	color: var(--posh-text);
}

/* ----------------------------------------------------------
   4. SECTION VISIBILITY & DROPDOWN NAV
   ---------------------------------------------------------- */

/* Section visibility: only active section shown */
.padv2-root .padv2-section,
.padv2-section {
	display: none;
}
.padv2-root .padv2-section--active,
.padv2-section--active {
	display: block;
}

/* ── Dropdown Nav ── */
/* Same max width as stats + badges (.padv2-stats-constrained). ≥768px: horizontal tabs could replace dropdown. */
.padv2-nav-dropdown-wrapper {
	position: relative;
	margin-bottom: 1.5rem;
	max-width: 560px;
	margin-left: auto;
	margin-right: auto;
	width: 100%;
}

.padv2-nav-dropdown-btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 52px;
	background: var(--posh-pink, #e0457b);
	color: #ffffff;
	border: none;
	border-radius: 0.75rem;
	padding: 0 1.25rem;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s ease;
	-webkit-tap-highlight-color: transparent;
}
.padv2-nav-dropdown-btn:hover {
	background: #c73869;
}
.padv2-nav-dropdown-btn:focus-visible {
	outline: 3px solid var(--posh-pink, #e0457b);
	outline-offset: 2px;
}

.padv2-nav-dropdown-chevron {
	font-size: 0.75rem;
	transition: transform 0.2s ease;
	margin-left: 0.5rem;
	flex-shrink: 0;
}
.padv2-nav-dropdown-btn[aria-expanded="true"] .padv2-nav-dropdown-chevron {
	transform: rotate(180deg);
}

.padv2-nav-dropdown-menu {
	display: none;
	position: absolute;
	top: calc(100% + 0.375rem);
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.12);
	list-style: none;
	margin: 0;
	padding: 0.5rem;
	z-index: 200;
	overflow: hidden;
	flex-direction: column;
	gap: 0.25rem;
}
.padv2-nav-dropdown-menu.is-open {
	display: flex;
}

/* Each dropdown item — card-style row */
.padv2-nav-item {
	display: flex;
	align-items: center;
	gap: 0.875rem;
	padding: 0.75rem 1rem;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.15s;
	text-decoration: none;
	color: var(--posh-text, #333);
	border: none;
	background: none;
	width: 100%;
	list-style: none;
	box-sizing: border-box;
}
.padv2-nav-item a.padv2-nav-item-inner {
	display: flex;
	align-items: center;
	gap: 0.875rem;
	width: 100%;
	text-decoration: none;
	color: inherit;
	padding: 0;
	border: none;
	background: none;
	cursor: pointer;
}

.padv2-nav-item:hover,
.padv2-nav-item.padv2-nav-item--active {
	background: #fdf0f5;
	border-left: 3px solid var(--posh-pink, #e0457b);
}
.padv2-nav-item--link:hover,
.padv2-nav-item--link .padv2-nav-item-inner:hover {
	background: #fdf0f5;
	border-left: 3px solid var(--posh-pink, #e0457b);
}

/* Pink gradient icon square */
.padv2-nav-action-icon {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	background: linear-gradient(135deg, #f472a0 0%, #e0457b 100%);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	box-shadow: 0 2px 6px rgba(224, 69, 123, 0.3);
}

/* Label text */
.padv2-nav-action-label {
	font-size: 1rem;
	font-weight: 600;
	color: var(--posh-text, #222);
}

/* Legacy class compatibility */
.padv2-nav-dropdown-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.875rem 1.25rem;
	list-style: none;
}
.padv2-nav-dropdown-item:hover {
	background: #fdf0f4;
	color: var(--posh-pink, #e0457b);
}
.padv2-nav-dropdown-item--active {
	color: var(--posh-pink, #e0457b);
	font-weight: 700;
	background: #fdf0f4;
}
.padv2-nav-item-icon {
	font-size: 1.125rem;
	line-height: 1;
}


/* ----------------------------------------------------------
   5. CARDS & PANELS
   ---------------------------------------------------------- */

.padv2-root .padv2-card,
.padv2-root .padv2-card {
	background: var(--posh-card-bg);
	border-radius: var(--posh-radius);
	padding: 0;
	margin-bottom: var(--posh-spacing);
	box-shadow: var(--posh-shadow);
	overflow: visible;
	width: 100%;
}

.padv2-root .padv2-card-header,
.padv2-root .padv2-card-header {
	padding: var(--posh-spacing-sm) 1rem;
	border-bottom: 1px solid var(--posh-border);
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	align-items: flex-start;
	background: var(--posh-bg-light);
}

.padv2-root .padv2-card-body,
.padv2-root .padv2-card-body {
	padding: 1rem;
}

/* ── Welcome Block ── */
.padv2-welcome {
	position: relative;
	background: var(--posh-pink, #e0457b);
	border-radius: 1rem;
	padding: 1.75rem 2rem;
	margin-bottom: 1.5rem;
}

.padv2-welcome-settings {
	position: absolute;
	top: 14px;
	right: 14px;
}

.padv2-welcome-settings-link {
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
	transition: color 0.15s;
}

.padv2-welcome-settings-link:hover {
	color: #ffffff;
}

.padv2-welcome-settings-icon {
	width: 20px;
	height: 20px;
}
.padv2-welcome-heading {
	font-size: 2rem;
	font-weight: 800;
	color: #ffffff;
	margin: 0 0 0.375rem 0;
	line-height: 1.15;
	letter-spacing: -0.01em;
}
.padv2-welcome-subtitle {
	font-size: 0.9375rem;
	color: rgba(255, 255, 255, 0.82);
	margin: 0;
	font-weight: 400;
}

.padv2-welcome-text {
	padding-right: 2.75rem;
}
@media (max-width: 599px) {
	.padv2-welcome {
		padding: 1.375rem 1.25rem;
	}
	.padv2-welcome-heading {
		font-size: 1.625rem;
	}
}

/* ----------------------------------------------------------
   6. STAT TILES
   ---------------------------------------------------------- */

/* Stats cluster: no clipping for badge shadows */
.padv2-stat-section,
.padv2-stats-wrapper {
	overflow: visible;
}

/* 560px centered column — stats, welcome, main sections, timing bar, nav dropdown */
.padv2-stats-constrained {
	max-width: 560px;
	margin-left: auto;
	margin-right: auto;
	width: 100%;
	box-sizing: border-box;
}

.padv2-welcome,
.padv2-sections,
.padv2-timing-bar {
	max-width: 560px;
	margin-left: auto;
	margin-right: auto;
	width: 100%;
	box-sizing: border-box;
}

/* ── Stat Tiles Grid ── */
.padv2-stats-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-bottom: 0;
	align-items: stretch;
	width: 100%;
}

.padv2-stat-card {
	background: #ffffff;
	border: 1px solid #f0f0f0;
	border-radius: 0.875rem;
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
	transition: box-shadow 0.2s ease;
}
.padv2-stat-card:hover {
	box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

.padv2-stat-card--rank {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	aspect-ratio: 1 / 1;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	border-color: transparent;
	color: #ffffff;
	padding: 1.25rem 1rem;
	background: #e0457b; /* fallback only — overridden per rank via inline style */
}

/* "RANK" eyebrow label — larger, more prominent */
.padv2-stat-rank-eyebrow {
	font-size: clamp(0.9rem, 3vw, 1.2rem);
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	text-align: center;
	display: block;
	opacity: 0.85;
	margin-bottom: 0.25rem;
	color: rgba(255, 255, 255, 0.9);
}

/* Rank number — massive, dominant (~68% visual weight) */
.padv2-stat-rank-number {
	font-size: clamp(5rem, 22vw, 10rem);
	font-weight: 600;
	line-height: 0.9;
	letter-spacing: -0.04em;
	display: block;
	text-align: center;
	width: 100%;
	color: #ffffff;
	margin-bottom: 0.5rem;
}

/* "$X to Rank Y" — fills progress bar width, auto-size */
.padv2-stat-rank-next {
	display: block;
	width: 100%;
	text-align: center;
	font-size: clamp(0.85rem, 3.5vw, 1.4rem);
	white-space: nowrap;
	overflow: hidden;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.88);
	margin-bottom: 0.5rem;
}

/* Progress bar track */
.padv2-rank-progress-bar {
	background: rgba(255, 255, 255, 0.30);
	border-radius: 999px;
	height: 5px;
	width: 100%;
	overflow: hidden;
}

/* Progress bar fill */
.padv2-rank-progress-fill {
	background: #ffffff;
	height: 100%;
	border-radius: 999px;
	transition: width 0.6s ease;
	min-width: 4px;
}

/* Light rank backgrounds (ranks 1–4, 6–8): dark text for contrast */
.padv2-stat-card--rank-light .padv2-stat-rank-eyebrow {
	color: rgba(0, 0, 0, 0.7);
}
.padv2-stat-card--rank-light .padv2-stat-rank-number {
	color: #000000;
}
.padv2-stat-card--rank-light .padv2-stat-rank-next {
	color: rgba(0, 0, 0, 0.85);
}
.padv2-stat-card--rank-light .padv2-rank-progress-bar {
	background: rgba(0, 0, 0, 0.2);
}
.padv2-stat-card--rank-light .padv2-rank-progress-fill {
	background: #000000;
}

.padv2-stat-rank-label { display: none; }
.padv2-stat-rank-value { display: none; }

/* Rank block: grid cell stretches; square card stays 1:1 (no height:100% on card/link — breaks aspect-ratio) */
.padv2-stat-rank-block {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: stretch;
	min-width: 0;
	min-height: 0;
}
.padv2-stat-rank-block .padv2-stat-rank-link {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: stretch;
	text-decoration: none;
	color: inherit;
}

/* Full-width badge row — outside the stats grid */
.padv2-rank-badges-link {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	margin-top: 12px;
	margin-bottom: 0.5rem;
	padding: 6px 2px;
	text-decoration: none;
	color: inherit;
	flex-wrap: nowrap;
	overflow: visible;
	cursor: pointer;
	box-sizing: border-box;
}
.padv2-rank-badges-link:hover {
	opacity: 0.92;
}

.padv2-rank-badges {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: nowrap;
	width: 100%;
	justify-content: flex-start;
}
.padv2-rank-badge {
	display: block;
	border-radius: 50%;
	flex-shrink: 0;
}

/* Placeholders — 52px dashed */
.padv2-rank-badge--placeholder {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	border: 2px dashed #ddd;
	display: inline-block;
	flex-shrink: 0;
	background: transparent;
}

/* Earned badges — 52px */
.padv2-rank-badge--earned {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	flex-shrink: 0;
	display: inline-block;
}

/* +N overflow — white fill, pink border and text (inside single trophy-case link) */
.padv2-rank-badge--overflow {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #ffffff;
	border: 2px solid var(--posh-pink, #e0457b);
	color: var(--posh-pink, #e0457b);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.78rem;
	font-weight: 800;
	flex-shrink: 0;
	text-decoration: none;
	box-sizing: border-box;
}
.padv2-rank-badges-link:hover .padv2-rank-badge--overflow {
	background: #fff5f8;
	border-color: #c73569;
	color: #c73569;
}

.padv2-stats-right {
	display: flex;
	flex-direction: column;
	gap: 14px;
	height: 100%;
	min-height: 0;
}
.padv2-stats-right > .padv2-stat-wallet-link {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
}
.padv2-stats-right .padv2-stat-card--sm {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: center;
	padding: 10px 16px;
	width: 100%;
	box-sizing: border-box;
}
.padv2-stats-right > .padv2-stat-wallet-link .padv2-stat-card--sm {
	flex: 1;
}

.padv2-stat-card--sm {
	border: 1px solid #E0457B;
}
/* Cards that link need relative positioning for the chevron */
.padv2-stat-card--perks,
.padv2-stat-card--commissions {
	position: relative;
}
/* Chevron pinned to vertical center, right edge */
.padv2-stat-chevron {
	position: absolute;
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.4rem;
	color: #ccc;
	line-height: 1;
	pointer-events: none;
}
.padv2-stat-card--sm .padv2-stat-label {
	text-align: left;
	align-self: flex-start;
	font-size: 0.6rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #aaa;
	margin-bottom: 4px;
}
.padv2-stat-card--sm .padv2-stat-value {
	text-align: right;
	padding-right: 28px;
	font-size: clamp(1.25rem, 4vw, 1.75rem);
	font-weight: 700;
	color: var(--posh-pink);
	line-height: 1.1;
	margin-bottom: 0;
}
.padv2-stat-card--lifetime .padv2-stat-value {
	padding-right: 0;
	font-size: clamp(1.75rem, 6vw, 2.5rem);
	font-weight: 800;
}

.padv2-stat-value--teal {
	color: var(--posh-teal, #1ABC9C);
}
.padv2-stat-value--green {
	color: #27AE60;
}

.padv2-stat-icon {
	display: none;
}

.padv2-stat-label {
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #888;
	margin-bottom: 0.25rem;
}

.padv2-stat-value {
	font-size: 1.625rem;
	font-weight: 800;
	color: var(--posh-pink, #e0457b);
	line-height: 1.1;
	margin-bottom: 0.25rem;
	text-align: center;
	display: block;
	width: 100%;
}

/* Rank card link — no underline, hover brightness */
.padv2-stat-rank-link {
	display: block;
	text-decoration: none;
	color: inherit;
	cursor: pointer;
}
.padv2-stat-rank-link:hover .padv2-stat-card--rank {
	filter: brightness(1.08);
	transition: filter 0.2s;
}

/* Wallet (Perks/Commissions) card links */
.padv2-stat-wallet-link {
	display: block;
	text-decoration: none;
	color: inherit;
	cursor: pointer;
}
.padv2-stat-wallet-link:hover .padv2-stat-card {
	filter: brightness(1.08);
	transition: filter 0.2s;
}

/* ── Stat Tiles Responsive ── */
@media (min-width: 768px) {
	.padv2-stat-value { font-size: 1.875rem; }
}

/* Dashboard cache timing (injected by MU plugin; muted footer inside .padv2-root) */
.padv2-timing-bar {
	text-align: center;
	font-size: 0.7rem;
	color: #aaa;
	padding: 0.75rem 1rem 1.5rem;
	background: transparent;
	border: none;
	border-left: none;
}
.padv2-timing-bar > div + div {
	margin-top: 0.2em;
}

/* ----------------------------------------------------------
   7. BUTTONS & CTAs
   ---------------------------------------------------------- */

.padv2-root .padv2-btn-primary,
.padv2-root .padv2-btn-primary,
.padv2-root .padv2-btn-primary,
.padv2-root .padv2-btn-primary {
	display: block;
	width: 100%;
	min-height: 48px;
	padding: 0.75rem 1rem;
	border-radius: var(--posh-radius-sm);
	font-weight: 600;
	font-size: 1rem;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: transform var(--posh-transition-slow), box-shadow var(--posh-transition-slow), background-color var(--posh-transition);
	font-family: inherit;
	text-align: center;
	background: var(--posh-pink);
	color: white;
	box-shadow: 0 2px 8px rgba(224, 69, 123, 0.3);
}

.padv2-root .padv2-btn-primary:hover,
.padv2-root .padv2-btn-primary:hover,
.padv2-root .padv2-btn-primary:hover,
.padv2-root .padv2-btn-primary:hover {
	background: var(--posh-pink-dark);
	color: white;
	text-decoration: none;
}

.padv2-root .padv2-btn-primary:focus-visible,
.padv2-root .padv2-btn-primary:focus-visible,
.padv2-root .padv2-btn-primary:focus-visible,
.padv2-root .padv2-btn-primary:focus-visible {
	outline: 3px solid var(--posh-pink);
	outline-offset: 2px;
}

.padv2-root .padv2-btn-secondary,
.padv2-root .padv2-btn-secondary,
.padv2-root .padv2-btn-secondary,
.padv2-root .padv2-btn-secondary {
	display: block;
	width: 100%;
	min-height: 48px;
	padding: 0.75rem 1rem;
	border-radius: var(--posh-radius-sm);
	font-weight: 600;
	font-size: 1rem;
	text-decoration: none;
	border: 2px solid var(--posh-pink);
	background: var(--posh-card-bg);
	color: var(--posh-pink);
	cursor: pointer;
	transition: background-color var(--posh-transition), border-color var(--posh-transition);
	font-family: inherit;
	text-align: center;
}

.padv2-root .padv2-btn-secondary:hover,
.padv2-root .padv2-btn-secondary:hover,
.padv2-root .padv2-btn-secondary:hover,
.padv2-root .padv2-btn-secondary:hover {
	background: var(--posh-pink-light);
	border-color: var(--posh-pink-dark);
	color: var(--posh-pink-dark);
	text-decoration: none;
}

.padv2-root .padv2-btn-secondary:focus-visible,
.padv2-root .padv2-btn-secondary:focus-visible,
.padv2-root .padv2-btn-secondary:focus-visible,
.padv2-root .padv2-btn-secondary:focus-visible {
	outline: 3px solid var(--posh-pink);
	outline-offset: 2px;
}

.padv2-root .padv2-action-btn,
.padv2-root .padv2-action-btn {
	min-height: 44px;
	min-width: 44px;
	font-size: 0.875rem;
	padding: 0.5rem 0.75rem;
}

.padv2-root .padv2-action-btn:focus-visible,
.padv2-root .padv2-action-btn:focus-visible {
	outline: 3px solid var(--posh-pink);
	outline-offset: 2px;
}

/* ----------------------------------------------------------
   8. TABLES (team / customer card reflow; orders use .padv2-orders-list)
   ---------------------------------------------------------- */

.padv2-root .padv2-team-table thead,
.padv2-root .padv2-customer-table thead,
.padv2-root .padv2-team-table thead,
.padv2-root .padv2-customer-table thead {
	display: none;
}

.padv2-root .padv2-team-table tbody tr,
.padv2-root .padv2-customer-table tbody tr,
.padv2-root .padv2-team-table tbody tr,
.padv2-root .padv2-customer-table tbody tr {
	display: block;
	border: 1px solid var(--posh-border);
	border-radius: var(--posh-radius-sm);
	margin-bottom: var(--posh-spacing-sm);
	padding: 1rem;
	background: var(--posh-card-bg);
}

.padv2-root .padv2-team-table td,
.padv2-root .padv2-customer-table td,
.padv2-root .padv2-team-table td,
.padv2-root .padv2-customer-table td {
	display: flex;
	justify-content: space-between;
	padding: 0.375rem 0;
	border: none;
}

.padv2-root .padv2-team-table td::before,
.padv2-root .padv2-customer-table td::before,
.padv2-root .padv2-team-table td::before,
.padv2-root .padv2-customer-table td::before {
	content: attr(data-label);
	font-weight: 600;
	color: var(--posh-text-muted);
	font-size: 0.875rem;
}

.padv2-root .padv2-team-table td:not([data-label])::before,
.padv2-root .padv2-customer-table td:not([data-label])::before,
.padv2-root .padv2-team-table td:not([data-label])::before,
.padv2-root .padv2-customer-table td:not([data-label])::before {
	content: "";
}

/* ----------------------------------------------------------
   9. FORMS, ALERTS, EMPTY STATES
   ---------------------------------------------------------- */

.padv2-root .padv2-form input,
.padv2-root .padv2-form select,
.padv2-root .padv2-form textarea,
.padv2-root .padv2-filter-input,
.padv2-root .padv2-filter-select,
.padv2-root .padv2-form-input,
.padv2-root .padv2-form-textarea,
.padv2-root #team-search-input,
.padv2-root .padv2-form input,
.padv2-root .padv2-form select,
.padv2-root .padv2-form textarea,
.padv2-root .padv2-filter-input,
.padv2-root .padv2-filter-select,
.padv2-root .padv2-form-input,
.padv2-root .padv2-form-textarea,
.padv2-root #team-search-input {
	width: 100%;
	min-height: 48px;
	font-size: 1rem;
	padding: 0.75rem 1rem;
	border: 2px solid var(--posh-border);
	border-radius: var(--posh-radius-sm);
	font-family: inherit;
	color: var(--posh-text);
	background: var(--posh-card-bg);
	transition: border-color var(--posh-transition), box-shadow var(--posh-transition);
	box-sizing: border-box;
}

.padv2-root .padv2-form input:focus-visible,
.padv2-root .padv2-form select:focus-visible,
.padv2-root .padv2-form textarea:focus-visible,
.padv2-root .padv2-form input:focus-visible,
.padv2-root .padv2-form select:focus-visible,
.padv2-root .padv2-form textarea:focus-visible {
	outline: 3px solid var(--posh-pink);
	outline-offset: 2px;
}

.padv2-root .padv2-section-error,
.padv2-root .padv2-section-error {
	padding: var(--posh-spacing-sm);
	border-radius: var(--posh-radius-sm);
	background: #fff3cd;
	border: 1px solid var(--posh-warning);
	color: #856404;
	font-weight: 500;
	font-size: 0.9375rem;
}

.padv2-root .padv2-empty-state,
.padv2-root .padv2-empty-state {
	text-align: center;
	padding: 2rem 1rem;
	color: var(--posh-text-light);
	font-size: 1rem;
}

/* Quick links (Account tab) */
.padv2-root .padv2-quick-links {
	margin-top: var(--posh-spacing);
	padding-top: var(--posh-spacing);
	border-top: 1px solid var(--posh-border);
}
.padv2-root .padv2-quick-links-title {
	font-size: 1rem;
	font-weight: 600;
	color: var(--posh-text);
	margin: 0 0 var(--posh-spacing-sm) 0;
}
.padv2-root .padv2-quick-links-grid {
	display: grid;
	gap: var(--posh-spacing-sm);
}
.padv2-root .padv2-quick-link-card {
	display: block;
	padding: var(--posh-spacing-sm) 1rem;
	border: 2px solid var(--posh-border);
	border-radius: var(--posh-radius-sm);
	background: var(--posh-bg-light);
	color: var(--posh-text);
	text-decoration: none;
	transition: border-color var(--posh-transition), background-color var(--posh-transition), box-shadow var(--posh-transition);
}
.padv2-root .padv2-quick-link-card:hover {
	border-color: var(--posh-pink);
	background: var(--posh-pink-light);
	color: var(--posh-text);
	text-decoration: none;
	box-shadow: var(--posh-shadow);
}
.padv2-root .padv2-quick-link-label {
	display: block;
	font-weight: 600;
	font-size: 1rem;
	margin-bottom: 0.25rem;
}
.padv2-root .padv2-quick-link-desc {
	display: block;
	font-size: 0.875rem;
	color: var(--posh-text-light);
}

/* ----------------------------------------------------------
   10. ANIMATIONS & REDUCED MOTION
   ---------------------------------------------------------- */

.padv2-root .padv2-stat-card,
.padv2-root .padv2-card,
.padv2-root .padv2-stat-card,
.padv2-root .padv2-card {
	transition: transform var(--posh-transition-slow), box-shadow var(--posh-transition-slow);
}

.padv2-root .padv2-stat-card:hover,
.padv2-root .padv2-stat-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--posh-shadow-hover);
}

@media (prefers-reduced-motion: reduce) {
	.padv2-root *,
	.padv2-root *::before,
	.padv2-root *::after,
	.padv2-root *,
	.padv2-root *::before,
	.padv2-root *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* ----------------------------------------------------------
   11. RESPONSIVE — 480px
   ---------------------------------------------------------- */

@media (min-width: 480px) {
	.padv2-welcome-heading {
		font-size: 2rem;
	}
	.padv2-welcome {
		padding: 2rem 1.25rem;
	}
}

/* ----------------------------------------------------------
   12. RESPONSIVE — 768px
   ---------------------------------------------------------- */

@media (min-width: 768px) {
	.padv2-root .padv2-btn-primary,
	.padv2-root .padv2-btn-secondary {
		display: inline-flex;
		width: auto;
		min-width: 120px;
		justify-content: center;
	}
	.padv2-root .padv2-card-header,
	.padv2-root .padv2-card-header {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		padding: var(--posh-spacing) 1.5rem;
	}
	.padv2-root .padv2-card-body,
	.padv2-root .padv2-card-body {
		padding: 1.5rem;
	}
	.padv2-root .padv2-team-table thead,
	.padv2-root .padv2-customer-table thead,
	.padv2-root .padv2-team-table thead,
.padv2-root .padv2-customer-table thead {
		display: table-header-group;
	}
	.padv2-root .padv2-team-table tbody tr,
	.padv2-root .padv2-customer-table tbody tr,
	.padv2-root .padv2-team-table tbody tr,
	.padv2-root .padv2-customer-table tbody tr {
		display: table-row;
		border: none;
		padding: 0;
		margin: 0;
		background: transparent;
	}
	.padv2-root .padv2-team-table td,
	.padv2-root .padv2-customer-table td,
	.padv2-root .padv2-team-table td,
	.padv2-root .padv2-customer-table td {
		display: table-cell;
		padding: 0.75rem;
		border-bottom: 1px solid var(--posh-border);
	}
	.padv2-root .padv2-team-table td::before,
	.padv2-root .padv2-customer-table td::before,
	.padv2-root .padv2-team-table td::before,
	.padv2-root .padv2-customer-table td::before {
		content: none;
	}
}

/* ----------------------------------------------------------
   13. RESPONSIVE — 1024px, 1200px
   ---------------------------------------------------------- */

@media (min-width: 1024px) {
	.padv2-root .padv2-page-title,
	.padv2-root .padv2-greeting,
	.padv2-root .padv2-page-title,
	.padv2-root .padv2-greeting {
		font-size: 1.5rem;
	}
	.padv2-welcome-heading {
		font-size: 2.25rem;
	}
}

@media (min-width: 1200px) {
	.padv2-root,
	.padv2-root {
		max-width: 1200px;
		margin: 2rem auto;
		padding: 0 1.5rem;
	}
	.padv2-root .padv2-card-header,
	.padv2-root .padv2-card-header {
		padding: var(--posh-spacing) 2rem;
	}
	.padv2-root .padv2-card-body,
	.padv2-root .padv2-card-body {
		padding: 2rem;
	}
}

/* Section: My Team — no orange fill */
.padv2-root .padv2-section--myteam,
.padv2-root .padv2-section--myteam {
	background: transparent;
}

/* My Team — max width column */
.padv2-team-wrap {
	max-width: 560px;
	margin-left: auto;
	margin-right: auto;
	width: 100%;
}

.padv2-section-titlebar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid #f0f0f0;
}
.padv2-section-title {
	font-size: 1.1rem;
	font-weight: 700;
	color: #222;
	margin: 0;
}
.padv2-team-center-btn {
	font-size: 0.75rem;
	padding: 7px 16px;
}

.padv2-team-wrap,
.padv2-intelligence-panel,
.padv2-sales-panel {
	max-width: 100%;
	overflow-x: hidden;
}

/* Tabs */
.padv2-team-tabs {
	display: flex;
	flex-direction: row;
	width: 100%;
	margin-bottom: 1rem;
}
.padv2-team-tabs .padv2-team-tab {
	flex: 1;
	padding: 10px;
	font-size: 0.8rem;
	font-weight: 600;
	text-align: center;
	border: 1px solid #ddd;
	background: #f9f9f9;
	color: #aaa;
	cursor: pointer;
	font-family: inherit;
	margin: 0;
}
.padv2-team-tabs .padv2-team-tab:first-child {
	border-radius: 8px 0 0 8px;
}
.padv2-team-tabs .padv2-team-tab:last-child {
	border-radius: 0 8px 8px 0;
}
.padv2-team-tabs .padv2-team-tab.is-active {
	background: #fff;
	color: #E0457B;
	font-weight: 700;
	border-color: #E0457B;
}
.padv2-team-panel[hidden] {
	display: none !important;
}

/* Intelligence + sales shared */
.padv2-team-intelligence {
	min-height: 120px;
}
.padv2-team-loading {
	color: #666;
	padding: 1.5rem;
	text-align: center;
}
.padv2-team-loading-dots {
	display: flex;
	justify-content: center;
	gap: 0.35rem;
	margin-bottom: 0.75rem;
}
.padv2-team-loading-dots span {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #E0457B;
	animation: padv2-team-dot 1.4s ease-in-out infinite both;
}
.padv2-team-loading-dots span:nth-child(1) { animation-delay: 0s; }
.padv2-team-loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.padv2-team-loading-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes padv2-team-dot {
	0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
	40% { transform: scale(1); opacity: 1; }
}
.padv2-team-loading p {
	margin: 0;
	font-size: 0.9rem;
}
.padv2-team-error,
.padv2-team-empty {
	color: #999;
	padding: 1rem 0;
	margin: 0;
	font-size: 0.8rem;
	text-align: center;
}
.padv2-team-no-posh {
	padding: 1.5rem 0;
	text-align: center;
}
.padv2-team-no-posh p {
	margin: 0 0 1rem;
	color: #444;
}

/* Snapshot strip */
.padv2-team-snapshot {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	width: 100%;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
	margin-bottom: 1rem;
	overflow: hidden;
	border: 1px solid #eee;
}
.padv2-team-snapshot-item {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 16px 8px;
	cursor: pointer;
	border-right: 1px solid #f0f0f0;
	min-width: 0;
	box-sizing: border-box;
}
.padv2-team-snapshot-item:last-child {
	border-right: none;
}
.padv2-team-snapshot-value {
	font-size: clamp(1.4rem, 5vw, 2rem);
	font-weight: 700;
	color: #222;
	line-height: 1.1;
}
.padv2-team-snapshot-item--active .padv2-team-snapshot-value {
	color: #0ABAB5;
}
.padv2-team-snapshot-item--attention .padv2-team-snapshot-value {
	color: #E0457B;
}
.padv2-team-snapshot-item--rank .padv2-team-snapshot-value {
	color: #EAA26D;
}
.padv2-team-snapshot-label {
	font-size: 0.55rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #aaa;
	margin-top: 6px;
	text-align: center;
	line-height: 1.25;
	max-width: 100%;
}

.padv2-team-period {
	font-size: 0.7rem;
	color: #bbb;
	margin: 0 0 12px;
}

.padv2-team-alt-message .padv2-team-error,
.padv2-team-alt-message .padv2-team-no-posh {
	margin: 0;
}

.padv2-list-controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
	gap: 12px;
	flex-wrap: wrap;
}

.padv2-list-period-label {
	font-size: 0.8rem;
	font-weight: 700;
	color: #444;
}

.padv2-zero-toggle-label {
	flex-shrink: 0;
}

.padv2-list-empty {
	text-align: center;
	padding: 32px 0;
}

.padv2-list-empty p {
	font-size: 0.85rem;
	color: #bbb;
	margin: 0 0 6px;
}

.padv2-list-empty-sub {
	font-size: 0.75rem !important;
}

.padv2-list-headers {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 6px 0 8px;
	border-bottom: 1px solid #eee;
	margin-bottom: 4px;
}

.padv2-sort-hdr {
	font-size: 0.72rem;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #bbb;
	cursor: pointer;
	user-select: none;
}

.padv2-sort-hdr.is-active-sort {
	font-weight: 800;
	color: #333;
}

.padv2-sort-arrow {
	font-size: 0.8rem;
}

/* Advocate list (My Team Intelligence) */
.padv2-team-members {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 1px solid #eee;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
}
.padv2-team-member {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 10px;
	padding: 14px 16px;
	border-bottom: 1px solid #f4f4f4;
	background: #fff;
}
.padv2-team-member:first-child {
	border-radius: 12px 12px 0 0;
}
.padv2-team-member:last-child {
	border-bottom: none;
	border-radius: 0 0 12px 12px;
}
.padv2-team-member-col {
	flex: 1;
	min-width: 0;
}
.padv2-team-member-top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
}
.padv2-team-signal-badge {
	font-size: 0.6rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 3px 8px;
	border-radius: 20px;
	flex-shrink: 0;
}
.padv2-team-signal-badge--msr_attention {
	background: #fde8f0;
	color: #E0457B;
}
.padv2-team-signal-badge--rank_ready {
	background: #fdf3e8;
	color: #EAA26D;
}
.padv2-team-signal-badge--rank_advancement {
	background: #e6faf9;
	color: #0ABAB5;
}
.padv2-team-signal-badge--new_advocate,
.padv2-team-signal-badge--first_order {
	background: #edf2f7;
	color: #375275;
}
.padv2-team-signal-badge--anniversary,
.padv2-team-signal-badge--birthday_month {
	background: #fdf8ee;
	color: #a07c2e;
}
.padv2-team-member-name {
	font-weight: 600;
	color: #222;
	font-size: 0.9rem;
}
/* Clickable name → V1 posh_fetch_contact_card modal */
button.padv2-team-member-name.padv2-contact-card-trigger,
.padv2-team-modal-row-main .padv2-contact-card-trigger {
	font: inherit;
	font-weight: 600;
	color: #222;
	font-size: inherit;
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	cursor: pointer;
	text-align: left;
	display: inline;
	text-decoration: underline;
	text-decoration-color: transparent;
	transition: color 0.15s, text-decoration-color 0.15s;
}
.padv2-team-member-top .padv2-contact-card-trigger {
	display: inline;
}
button.padv2-contact-card-trigger:hover,
button.padv2-contact-card-trigger:focus-visible {
	color: #E0457B;
	text-decoration-color: rgba(224, 69, 123, 0.4);
	outline: none;
}

/* V1 contact card HTML — ajax-fetch-contact-card.php */
/* Above My Team intelligence modal (.padv2-team-modal-overlay, z-index 99999); legacy posh-dashboard.css sets #posh-contact-modal at 9999 */
#posh-contact-modal {
	z-index: 100009;
}
#posh-contact-modal .contact-card-name-value {
	white-space: nowrap;
}
#posh-contact-modal .contact-address-street,
#posh-contact-modal .contact-address-local {
	display: inline-block;
	max-width: 100%;
	vertical-align: top;
}
#posh-contact-modal .contact-card-content {
	min-width: 0;
}

/* Upline list appended inside V1 contact card (posh_adv_v2_get_upline) */
.padv2-upline-list {
	margin-top: 16px;
	border-top: 1px solid #f0f0f0;
	padding-top: 12px;
}
.padv2-upline-title {
	font-size: 0.82rem;
	font-weight: 700;
	color: #888;
	text-transform: uppercase;
	margin: 0 0 8px;
}
.padv2-upline-row {
	display: grid;
	grid-template-columns: 70px 1fr auto;
	gap: 6px;
	padding: 5px 0;
	border-bottom: 1px solid #f5f5f5;
	font-size: 0.85rem;
	align-items: center;
}
.padv2-upline-label {
	font-size: 0.72rem;
	font-weight: 700;
	color: #888;
	text-transform: uppercase;
}
.padv2-upline-row:last-child {
	border-bottom: none;
}
.padv2-upline-name {
	color: #222;
	font-weight: 500;
}
.padv2-upline-rank {
	color: #888;
}
.padv2-team-member-rank {
	font-size: 0.65rem;
	border-radius: 4px;
	padding: 2px 6px;
	flex-shrink: 0;
}
/* "Down N" from the viewing Leader (Team Center / sales report). */
.padv2-depth-badge {
	display: inline-block;
	background: #f0f0f0;
	color: #666;
	border-radius: 50px;
	padding: 2px 8px;
	font-size: 0.72rem;
	font-weight: 600;
	margin-left: 6px;
	vertical-align: middle;
}
.padv2-team-member-sales {
	font-size: 0.85rem;
	font-weight: 600;
	color: #333;
	margin-left: auto;
	flex-shrink: 0;
}
.padv2-team-member-meta {
	font-size: 0.72rem;
	color: #999;
	margin-top: 3px;
}
.padv2-msg-btn {
	background: none;
	border: none;
	padding: 4px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	line-height: 0;
	box-shadow: none;
}
.padv2-msg-btn:hover {
	opacity: 0.85;
}
.padv2-msg-btn img {
	display: block;
	vertical-align: middle;
}

/* Pink pill — primary action */
.padv2-btn-pink-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #E0457B;
	color: #fff;
	font-size: 0.82rem;
	font-weight: 700;
	padding: 10px 22px;
	border-radius: 50px !important;
	border: none;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s;
	white-space: nowrap;
}
.padv2-btn-pink-pill:hover {
	background: #c73567;
	color: #fff;
}

/* White pill — secondary action */
.padv2-btn-white-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	color: #E0457B;
	font-size: 0.82rem;
	font-weight: 700;
	padding: 10px 22px;
	border-radius: 50px !important;
	border: 1.5px solid #E0457B;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s, color 0.15s;
	white-space: nowrap;
}
.padv2-btn-white-pill:hover {
	background: #fdf0f5;
	color: #c73567;
	border-color: #c73567;
}

/* Modals */
.padv2-team-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	padding: 16px;
	box-sizing: border-box;
}
.padv2-team-modal-overlay.is-open {
	display: flex;
}
.padv2-team-modal-content {
	background: #fff;
	border-radius: 16px;
	width: 92%;
	max-width: 520px;
	max-height: 88vh;
	overflow-y: auto;
	padding: 24px;
	box-sizing: border-box;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}
.padv2-team-modal-header {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	border-bottom: 1px solid #eee;
	padding-bottom: 16px;
	margin-bottom: 16px;
}
.padv2-team-modal-title {
	font-weight: 700;
	font-size: 1.1rem;
	color: #222;
	margin: 0;
}
.padv2-team-modal-close,
.padv2-compose-close {
	background: none;
	border: none;
	cursor: pointer;
	color: #aaa;
	padding: 4px;
	line-height: 0;
	flex-shrink: 0;
}
.padv2-team-modal-body {
	font-size: 0.88rem;
	color: #444;
}
.padv2-team-modal-msr-note {
	font-size: 0.75rem;
	color: #999;
	margin: 0 0 12px;
}
.padv2-team-modal-msr-note p {
	margin: 0 0 8px;
}
.padv2-team-modal-msr-note p:last-child {
	margin-bottom: 0;
}
.padv2-team-modal-row {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 0;
	border-bottom: 1px solid #f4f4f4;
}
.padv2-team-modal-row:last-child {
	border-bottom: none;
}
.padv2-team-modal-row-main {
	flex: 1;
	min-width: 0;
}
.padv2-team-modal-rank {
	font-size: 0.65rem;
	border-radius: 4px;
	padding: 2px 6px;
	display: inline-block;
	margin-top: 4px;
}

.padv2-need-attention-accordion {
	width: 100%;
}

.padv2-naa-header {
	display: flex;
	align-items: center;
	width: 100%;
	background: none;
	border: none;
	border-bottom: 1px solid #eee;
	padding: 14px 0;
	cursor: pointer;
	font-family: inherit;
	text-align: left;
	gap: 8px;
}

.padv2-naa-label {
	font-weight: 700;
	font-size: 0.95rem;
	color: #222;
	flex: 1;
}

.padv2-naa-count {
	background: #fde8f0;
	color: #E0457B;
	font-size: 0.72rem;
	font-weight: 700;
	padding: 3px 9px;
	border-radius: 20px;
}

.padv2-naa-chevron {
	font-size: 0.7rem;
	color: #aaa;
	transition: transform 0.2s;
}

.padv2-naa-header.is-open .padv2-naa-chevron {
	transform: rotate(180deg);
}

.padv2-naa-body {
	display: none;
	padding: 12px 0 4px;
}

.padv2-naa-body.is-open {
	display: block;
}

.padv2-naa-period-label {
	font-size: 0.85rem;
	font-weight: 700;
	color: #444;
	margin: 0 0 16px;
	line-height: 1.4;
}
.padv2-team-pct-bar {
	height: 4px;
	background: #eee;
	border-radius: 2px;
	margin-top: 8px;
	overflow: hidden;
}
.padv2-team-pct-bar-fill {
	height: 100%;
	background: #EAA26D;
	border-radius: 2px;
}

/* Compose */
.padv2-compose-to {
	font-size: 0.88rem;
	margin-bottom: 12px;
	color: #555;
}

.padv2-compose-to-email {
	font-size: 0.75rem;
	color: #aaa;
	display: block;
	margin-top: 2px;
}

.padv2-compose-from {
	font-size: 0.8rem;
	color: #888;
	margin-bottom: 14px;
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.padv2-compose-from strong {
	color: #444;
}

.padv2-compose-info-btn {
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	display: inline-flex;
	align-items: center;
}

.padv2-compose-info-tip {
	font-size: 0.72rem;
	color: #888;
	background: #f9f9f9;
	border: 1px solid #eee;
	border-radius: 8px;
	padding: 8px 10px;
	line-height: 1.5;
	width: 100%;
	margin-top: 4px;
}
.padv2-compose-subject {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 0.9rem;
	margin-bottom: 10px;
	font-family: inherit;
}
.padv2-compose-body-text {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 0.88rem;
	min-height: 160px;
	font-family: inherit;
	resize: vertical;
}
.padv2-compose-actions {
	display: flex;
	flex-direction: row;
	gap: 10px;
	margin-top: 16px;
	justify-content: flex-end;
}
.padv2-compose-cancel {
	font-family: inherit;
}
.padv2-compose-send {
	font-family: inherit;
}
.padv2-compose-send:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}
.padv2-compose-status {
	margin-top: 12px;
	font-size: 0.85rem;
}
.padv2-compose-status.is-error {
	color: #c00;
}

/* Sales report */
.padv2-sales-filter-wrap {
	margin-bottom: 16px;
}
.padv2-sales-filter-select {
	width: 100%;
	padding: 11px 16px;
	border: 1.5px solid #E0457B;
	border-radius: 50px;
	background: #fff;
	color: #E0457B;
	font-size: 0.85rem;
	font-weight: 700;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23E0457B' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	padding-right: 40px;
	cursor: pointer;
}
.padv2-sales-filter-select:focus {
	outline: none;
	border-color: #c73567;
}
.padv2-sales-period {
	font-size: 0.88rem;
	font-weight: 700;
	color: #444;
	margin-bottom: 12px;
	display: block;
}
.padv2-sales-copy-fb {
	width: 100%;
	box-sizing: border-box;
	margin-bottom: 12px;
	display: none;
}
.padv2-sales-copy-fb.is-visible {
	display: block;
}
.padv2-copy-options {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
	margin-top: 8px;
}
.padv2-toggle-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.78rem;
	color: #888;
	cursor: pointer;
	user-select: none;
}
.padv2-toggle-wrap {
	position: relative;
	display: inline-block;
	width: 36px;
	height: 20px;
	flex-shrink: 0;
}
.padv2-toggle-wrap input {
	opacity: 0;
	width: 0;
	height: 0;
	position: absolute;
}
.padv2-toggle-slider {
	position: absolute;
	inset: 0;
	background: #ddd;
	border-radius: 20px;
	transition: background 0.2s;
}
.padv2-toggle-slider:before {
	content: '';
	position: absolute;
	width: 14px;
	height: 14px;
	left: 3px;
	top: 3px;
	background: #fff;
	border-radius: 50%;
	transition: transform 0.2s;
}
.padv2-toggle-wrap input:checked + .padv2-toggle-slider {
	background: #E0457B;
}
.padv2-toggle-wrap input:checked + .padv2-toggle-slider:before {
	transform: translateX(16px);
}
.padv2-sales-results .padv2-team-empty {
	padding: 32px 0;
}

@media (min-width: 480px) {
	.padv2-team-snapshot-label {
		font-size: 0.58rem;
	}
}

@media (min-width: 560px) {
	.padv2-team-wrap {
		padding-left: 0;
		padding-right: 0;
	}
}

/* ----------------------------------------------------------
   ORDERS LIST — compact rows
   ---------------------------------------------------------- */

.padv2-orders-list {
	display: flex;
	flex-direction: column;
	gap: 0;
	border: 1px solid #eee;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}

.padv2-order-row {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-start;
	gap: 0.5rem;
	padding: 0.6rem 1rem;
	border-bottom: 1px solid #f0f0f0;
	transition: background 0.15s;
	min-height: 0;
	cursor: pointer;
}

.padv2-order-row:last-child {
	border-bottom: none;
}

.padv2-order-row:hover {
	background: #fdf0f5;
}

.padv2-order-date {
	flex: 0 0 90px;
	align-self: center;
	width: 90px;
	min-width: 0;
	text-align: left;
	font-size: 0.75rem;
	color: #888;
	white-space: nowrap;
}

.padv2-order-link {
	flex: 0 0 110px;
	align-self: center;
	width: 110px;
	min-width: 0;
	display: inline-block;
	text-align: left;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--posh-pink, #E0457B);
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.padv2-order-link:hover {
	text-decoration: underline;
}

.padv2-order-customer {
	flex: 1 1 auto;
	align-self: center;
	min-width: 0;
	text-align: left;
	font-size: 0.85rem;
	color: #333;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.padv2-order-amount {
	flex: 0 0 70px;
	align-self: center;
	width: 70px;
	min-width: 0;
	box-sizing: border-box;
	font-size: 0.85rem;
	font-weight: 700;
	color: #222;
	text-align: right;
	white-space: nowrap;
}

@media (max-width: 768px) {
	.padv2-order-row {
		grid-template-columns: 1fr auto;
		grid-template-rows: auto auto;
		padding: 0.6rem 0.875rem;
	}
	.padv2-order-date {
		grid-column: 1;
		grid-row: 1;
		font-size: 0.75rem;
		color: #888;
	}
	.padv2-order-link {
		grid-column: 2;
		grid-row: 1;
		justify-self: end;
		font-size: 0.8rem;
	}
	.padv2-order-customer {
		grid-column: 1;
		grid-row: 2;
		font-size: 0.85rem;
		color: #333;
	}
	.padv2-order-amount {
		grid-column: 2;
		grid-row: 2;
		justify-self: end;
		align-self: start;
		font-size: 0.85rem;
	}
}

.padv2-root .padv2-section--orders,
.padv2-root .padv2-section--orders {
	background: var(--posh-card-bg);
}

/* Pagination: 50% width per button, side-by-side when both, space above */
.padv2-order-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1.25rem;
}
.padv2-order-pagination .padv2-order-page-btn {
	flex: 0 1 calc(50% - 0.25rem);
	max-width: calc(50% - 0.25rem);
	box-sizing: border-box;
}

/* Neutralize legacy myteam section background inside V2 card — temporary !important until legacy CSS retired */
.padv2-section[data-section="team"] .section-myteam,
.padv2-section[data-section="team"] [class*="myteam"] {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
}

/* ----------------------------------------------------------
   ORDER MODAL (full details — #posh-order-modal)
   Structure & styles from order-status page: order-modal-order-status.css
   ---------------------------------------------------------- */

#posh-order-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(0,0,0,0.5);
	align-items: center;
	justify-content: center;
	padding: 1rem;
}
#posh-order-modal.active {
	display: flex;
	flex-direction: column;
}

/* Center card: backdrop fills shell; flex centers the only in-flow child. Override legacy posh-dashboard absolute + translate centering. */
#posh-order-modal .padv2-modal-backdrop,
#posh-order-modal .posh-modal-backdrop {
	position: absolute !important;
	inset: 0;
	width: auto !important;
	height: auto !important;
	z-index: 0;
}

#posh-order-modal .order-modal-content {
	z-index: 1;
	position: relative !important;
	left: auto !important;
	right: auto !important;
	top: auto !important;
	bottom: auto !important;
	transform: none !important;
	margin-left: auto !important;
	margin-right: auto !important;
	margin-top: 0 !important;
	width: 90% !important;
	max-width: 560px !important;
	max-height: 90vh !important;
	height: auto !important;
	overflow-x: hidden !important;
	overflow-y: auto !important;
	flex-shrink: 0;
}

/* Force readable light modal interior for V2 order detail content.
   Some inherited rules can darken the container on certain page stacks. */
#posh-order-modal .order-modal-content,
#posh-order-modal .order-modal-content .posh-order-received,
#posh-order-modal .order-modal-content .posh-order-section,
#posh-order-modal .order-modal-content .posh-order-totals,
#posh-order-modal .order-modal-content .posh-customer-info {
	background: #ffffff !important;
	color: #222222 !important;
}

/* Modal customer info: long emails (mailto from AJAX) */
#posh-order-modal .order-modal-content .posh-customer-info p {
	min-width: 0;
	max-width: 100%;
}
.padv2-customer-email,
.padv2-customer-email a {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 100%;
}

/* Contact card: upline control uses upward arrow (patched in advocate-dashboard-v2.js) */
.contact-genealogy-btn.padv2-contact-action-house {
	color: #fff;
}
.contact-genealogy-btn.padv2-contact-action-house svg {
	display: block;
	vertical-align: middle;
}

/* Advocate gift (Party section) */
.padv2-advocate-gift-wrap { margin-top: var(--posh-spacing, 1.5rem); padding-top: var(--posh-spacing); border-top: 1px solid var(--posh-border-light, #e8e8e8); }
.padv2-gift-balance { font-weight: 600; margin-bottom: 0.75rem; }
.padv2-gift-party { margin-bottom: 1.25rem; padding: 1rem; background: var(--posh-bg-light, #fafafa); border-radius: var(--posh-radius-sm, 8px); }
.padv2-gift-party-title { margin: 0 0 0.5rem; font-size: 1rem; }
.padv2-gift-intro { margin: 0 0 0.5rem; font-size: 0.9rem; color: var(--posh-text-light); }
.padv2-gift-row { margin-bottom: 0.5rem; }
.padv2-gift-row input.padv2-gift-amount { width: 60px; padding: 0.35rem; }
.padv2-gift-save { margin-right: 0.5rem; }
.padv2-gift-saved { font-size: 0.9rem; color: var(--posh-success, #28a745); }
.padv2-gift-loading, .padv2-gift-none { margin-top: 0.75rem; color: var(--posh-text-muted); }

.padv2-party-cta-wrap {
	text-align: center;
	margin-top: 24px;
}

/* Open parties list (Party section) */
.padv2-open-parties {
	margin-bottom: 20px;
}
.padv2-open-parties-label {
	font-size: 0.65rem;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: #aaa;
	font-weight: 700;
	margin-bottom: 10px;
}
.padv2-party-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid #f4f4f4;
}
.padv2-party-row:last-child {
	border-bottom: none;
}
.padv2-party-row-info {
	flex: 1;
	min-width: 0;
}
.padv2-party-name {
	display: block;
	font-weight: 600;
	font-size: 0.9rem;
	color: #222;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.padv2-party-meta {
	display: block;
	font-size: 0.75rem;
	color: #999;
	margin-top: 2px;
}
.padv2-party-view-link {
	font-size: 0.75rem;
	font-weight: 700;
	color: #E0457B;
	text-decoration: none;
	white-space: nowrap;
	flex-shrink: 0;
}
.padv2-open-parties-empty p,
.padv2-open-parties-empty-msg {
	font-size: 0.82rem;
	color: #bbb;
	text-align: center;
	padding: 16px 0;
	margin: 0;
}

/* Support ticket reply (Zendesk) — modal footer */
.posh-ticket-reply-wrap {
	width: 100%;
	margin-bottom: 16px;
	border-top: 1px solid #eee;
	padding-top: 16px;
}
.posh-ticket-reply-textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1.5px solid #ddd;
	border-radius: 8px;
	font-size: 0.88rem;
	font-family: inherit;
	resize: vertical;
	min-height: 80px;
	box-sizing: border-box;
}
.posh-ticket-reply-textarea:focus {
	outline: none;
	border-color: #E0457B;
}
.posh-ticket-reply-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	margin-top: 8px;
}
.posh-ticket-reply-status {
	font-size: 0.78rem;
	color: #888;
	flex: 1;
}

.posh-ticket-reply-attach {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
	flex-wrap: wrap;
}
.posh-ticket-attach-label {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 0.78rem;
	color: #E0457B;
	cursor: pointer;
	font-weight: 600;
}
.posh-ticket-attach-label:hover {
	color: #c73567;
}
.posh-ticket-attach-name {
	font-size: 0.75rem;
	color: #666;
	max-width: 200px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.posh-ticket-attach-remove {
	background: none;
	border: none;
	color: #aaa;
	cursor: pointer;
	font-size: 1rem;
	padding: 0 4px;
	line-height: 1;
}

/* Override customer dashboard button styles inside ticket detail modal */
#posh-ticket-detail-modal .posh-btn-secondary,
#posh-ticket-detail-modal .posh-ticket-detail-close {
	background: #fff;
	color: #E0457B;
	border: 1.5px solid #E0457B;
	border-radius: 50px;
	padding: 10px 22px;
	font-size: 0.82rem;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
}
#posh-ticket-detail-modal .posh-btn-secondary:hover,
#posh-ticket-detail-modal .posh-ticket-detail-close:hover {
	background: #fdf0f5;
}
#posh-ticket-detail-modal .posh-btn-primary,
#posh-ticket-detail-modal #posh-ticket-reply-send {
	background: #E0457B;
	color: #fff;
	border: none;
	border-radius: 50px;
	padding: 10px 22px;
	font-size: 0.82rem;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
}
#posh-ticket-detail-modal .posh-btn-primary:hover,
#posh-ticket-detail-modal #posh-ticket-reply-send:hover {
	background: #c73567;
}
#posh-ticket-detail-modal .posh-btn-primary:disabled,
#posh-ticket-detail-modal #posh-ticket-reply-send:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

#posh-contact-support-modal .posh-btn-primary {
	background: #E0457B;
	color: #fff;
	border: none;
	border-radius: 50px;
	padding: 10px 22px;
	font-size: 0.82rem;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
}
#posh-contact-support-modal .posh-btn-primary:hover {
	background: #c73567;
}
#posh-contact-support-modal .posh-btn-secondary {
	background: #fff;
	color: #E0457B;
	border: 1.5px solid #E0457B;
	border-radius: 50px;
	padding: 10px 22px;
	font-size: 0.82rem;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
}
#posh-contact-support-modal .posh-btn-secondary:hover {
	background: #fdf0f5;
}

/* Comment attachment thumbnails (Zendesk) — injected by advocate-dashboard-v2.js */
.padv2-comment-attachments {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid #f0f0f0;
}
.padv2-comment-attach-item {
	flex-shrink: 0;
}
.padv2-comment-attach-thumb-link {
	display: block;
	line-height: 0;
}
.padv2-comment-attach-thumb {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 6px;
	border: 1px solid #eee;
	display: block;
	cursor: pointer;
}
.padv2-comment-attach-thumb:hover {
	border-color: #E0457B;
}
.padv2-comment-attach-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.75rem;
	color: #E0457B;
	font-weight: 600;
	text-decoration: none;
	padding: 6px 10px;
	border: 1px solid #eee;
	border-radius: 6px;
	background: #fafafa;
}
.padv2-comment-attach-link:hover {
	border-color: #E0457B;
	background: #fdf0f5;
}

/* V2 dashboard page: suppress global party session banner (posh-party) */
/* Source: wp-content/plugins/posh-party/includes/class-posh-party-banner.php — id="posh-party-banner" */
body.page-id-73980 #posh-party-banner {
	display: none !important;
}

/* V2 dashboard page: suppress Posh Street bottom nav from section-best-practices.php */
/* Source: posh-advocate-dashboard/includes/section-best-practices.php — .posh-ps-bottom-nav */
body.page-id-73980 .posh-ps-bottom-nav,
body.page-id-73980 #posh-ps-bottom-nav {
	display: none !important;
}

/* Admin impersonation bar (manage_options only) */
.padv2-admin-bar {
	background: #375275;
	border-bottom: 2px solid #E0457B;
	border-radius: 12px;
	padding: 10px 16px;
	font-size: 0.82rem;
	position: relative;
	z-index: 100;
	max-width: 560px;
	margin: 0 auto 16px auto;
	box-sizing: border-box;
}
.padv2-admin-bar-inner {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.padv2-admin-bar-label {
	display: flex;
	align-items: center;
	gap: 8px;
	color: rgba(255, 255, 255, 0.75);
}
.padv2-admin-bar-label strong {
	color: #fff;
	font-weight: 700;
}
.padv2-admin-bar-form {
	position: relative;
	width: 100%;
}
.padv2-admin-search-input {
	width: 100%;
	padding: 7px 14px;
	border-radius: 50px;
	border: 1.5px solid rgba(255, 255, 255, 0.2);
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	font-size: 0.82rem;
	outline: none;
	box-sizing: border-box;
	transition: border-color 0.15s, background 0.15s;
}
.padv2-admin-search-input::placeholder {
	color: rgba(255, 255, 255, 0.45);
}
.padv2-admin-search-input:focus {
	border-color: #E0457B;
	background: rgba(255, 255, 255, 0.15);
}
.padv2-admin-search-results {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
	overflow: hidden;
	z-index: 9999;
}
.padv2-admin-result-item {
	display: flex;
	flex-direction: column;
	padding: 10px 14px;
	text-decoration: none;
	border-bottom: 1px solid #f0f0f0;
	transition: background 0.1s;
}
.padv2-admin-result-item:last-child {
	border-bottom: none;
}
.padv2-admin-result-item:hover {
	background: #fde8f0;
}
.padv2-admin-result-name {
	font-weight: 600;
	font-size: 0.88rem;
	color: #222;
}
.padv2-admin-result-meta {
	font-size: 0.76rem;
	color: #888;
	margin-top: 2px;
}
.padv2-admin-result-empty {
	padding: 12px 14px;
	color: #888;
	font-size: 0.84rem;
}

/* Trackers: MSR, Monthly Award, Pool (v1.0.51) */
.padv2-loading,
.padv2-error {
	font-size: 0.88rem;
	color: #666;
	padding: 12px 0;
}
.padv2-error {
	color: #c73567;
}
.padv2-tracker {
	padding: 16px;
	font-size: 0.9rem;
}
.padv2-tracker-title {
	font-size: 1rem;
	font-weight: 700;
	color: #222;
	margin: 0 0 14px 0;
}
.padv2-tracker-month {
	font-size: 0.78rem;
	font-weight: 700;
	color: #888;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 10px;
}
.padv2-tracker-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
	font-size: 0.92rem;
	padding: 6px 14px;
	border-radius: 50px;
	margin-bottom: 14px;
}
.padv2-status-ok {
	background: #e6faf9;
	color: #0ABAB5;
}
.padv2-status-attention {
	background: #fde8f0;
	color: #E0457B;
}
.padv2-tracker-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.87rem;
	margin-bottom: 12px;
}
.padv2-tracker-table th,
.padv2-tracker-table td {
	padding: 7px 10px;
	text-align: left;
	border-bottom: 1px solid #f0f0f0;
}
.padv2-tracker-table th {
	color: #888;
	font-weight: 600;
	width: 40%;
}
.padv2-tracker-total th,
.padv2-tracker-total td {
	font-weight: 700;
	color: #222;
	border-top: 2px solid #eee;
}
.padv2-amount-needed { color: #E0457B; font-weight: 700; }
.padv2-amount-ok { color: #0ABAB5; font-weight: 700; }
.padv2-tracker-deadline {
	font-size: 0.82rem;
	color: #666;
	margin-bottom: 10px;
}
.padv2-tracker-details {
	margin-top: 8px;
	font-size: 0.85rem;
}
.padv2-tracker-details summary {
	cursor: pointer;
	color: #E0457B;
	font-weight: 600;
	padding: 6px 0;
}
.padv2-tracker-branch-row {
	display: flex;
	justify-content: space-between;
	padding: 5px 0;
	border-bottom: 1px solid #f5f5f5;
	font-size: 0.84rem;
}
.padv2-tracker-empty,
.padv2-tracker-note {
	font-size: 0.84rem;
	color: #888;
	padding: 8px 0;
	line-height: 1.5;
}
.padv2-tracker-note { margin-top: 10px; }
.padv2-tracker-needed { font-size: 0.8rem; color: #E0457B; margin-top: 4px; }
.padv2-tracker-met { font-size: 0.8rem; color: #0ABAB5; margin-top: 4px; }

.padv2-tracker-prog-row { margin-bottom: 14px; }
.padv2-tracker-prog-label {
	display: flex;
	justify-content: space-between;
	font-size: 0.82rem;
	color: #666;
	margin-bottom: 5px;
}
.padv2-prog-bar {
	height: 6px;
	background: #f0f0f0;
	border-radius: 3px;
	overflow: hidden;
}
.padv2-prog-fill {
	height: 100%;
	background: #E0457B;
	border-radius: 3px;
	transition: width 0.4s ease;
}
.padv2-prog-fill-blue { background: #375275; }

.padv2-award-tab-heads {
	display: flex;
	gap: 6px;
	margin-bottom: 12px;
	flex-wrap: wrap;
}
.padv2-award-tab-head {
	background: #f5f5f5;
	border: 1.5px solid #ddd;
	border-radius: 50px;
	padding: 5px 12px;
	font-size: 0.78rem;
	font-weight: 600;
	cursor: pointer;
	color: #666;
	transition: all 0.15s;
	font-family: inherit;
}
.padv2-award-tab-head.padv2-award-tab-active {
	background: #E0457B;
	border-color: #E0457B;
	color: #fff;
}
.padv2-award-tab-head.padv2-award-tab-qualified {
	border-color: #0ABAB5;
	color: #0ABAB5;
}
.padv2-award-tab-head.padv2-award-tab-active.padv2-award-tab-qualified {
	background: #0ABAB5;
	border-color: #0ABAB5;
	color: #fff;
}

.padv2-rank2-checks {
	display: flex;
	gap: 8px;
	margin: 6px 0;
}
.padv2-rank2-check {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.85rem;
	font-weight: 700;
}
.padv2-check-done {
	background: #e6faf9;
	color: #0ABAB5;
}
.padv2-check-empty {
	background: #f5f5f5;
	color: #ccc;
}

@media (max-width: 480px) {
	.padv2-tracker { padding: 12px; }
	.padv2-award-tab-head { font-size: 0.72rem; padding: 4px 10px; }
}
