/**
 * Marsella – premium styling for Ultimate Member user (profile) pages.
 *
 * Loaded only on UM user pages (see inc/marsella-um-premium.php) and scoped to
 * body.um-page-user, so nothing else on the site is affected.
 *
 * Restyles colours, surfaces, borders, spacing and typography only. It deliberately does
 * not move the existing absolutely-positioned filter controls or card labels, so every tab
 * keeps its layout. Many report templates use inline style="" attributes, which is why
 * several rules need !important.
 */

/* ------------------------------------------------------------------ tokens */
/* Tokens on body: this file only loads on Ultimate Member pages. */
body {
	--mp-navy: #262262;
	--mp-navy-2: #1c1a4d;
	--mp-navy-3: #34325a;
	--mp-gold: #bd832b;
	--mp-gold-2: #d9a24a;
	--mp-gold-soft: #fbf5ea;
	--mp-gold-line: #efe0c4;
	--mp-coral: #ff6f61;
	--mp-ink: #1d1c35;
	--mp-text: #3b3a55;
	--mp-muted: #75738f;
	--mp-line: #e7e5ef;
	--mp-line-2: #f2f1f7;
	--mp-surface: #ffffff;
	--mp-tint: #f8f7fc;
	--mp-danger: #c4283a;
	--mp-danger-soft: #fff4f5;
	--mp-danger-line: #f3c9ce;
	--mp-radius: 16px;
	--mp-radius-sm: 10px;
	--mp-shadow: 0 1px 2px rgba(28, 26, 77, .05), 0 8px 24px rgba(28, 26, 77, .06);
	--mp-shadow-lg: 0 2px 6px rgba(28, 26, 77, .06), 0 18px 40px rgba(28, 26, 77, .11);
	--mp-heading: var(--e-global-typography-primary-font-family, Castoro, Georgia, serif);
}

/* ------------------------------------------------------------- profile header */
body.um-page-user .um-profile .um-header {
	border-bottom: 0 !important;
	padding-bottom: 18px !important;
}

body.um-page-user .um-profile .um-profile-photo a.um-profile-photo-img,
body.um-page-user .um-profile .um-profile-photo img {
	border-radius: 50% !important;
}

body.um-page-user .um-profile .um-profile-photo img {
	border: 3px solid #fff !important;
	box-shadow: 0 0 0 3px var(--mp-gold-2), 0 10px 24px rgba(28, 26, 77, .18) !important;
}

body.um-page-user .um-profile .um-name,
body.um-page-user .um-profile .um-name a {
	font-family: var(--mp-heading) !important;
	color: var(--mp-navy) !important;
	font-weight: 600 !important;
	letter-spacing: .01em;
}

body.um-page-user .um-profile .um-profile-headericon a {
	color: var(--mp-muted) !important;
	transition: color .2s ease, transform .3s ease;
}

body.um-page-user .um-profile .um-profile-headericon a:hover {
	color: var(--mp-gold) !important;
	transform: rotate(45deg);
}

/* ------------------------------------------------------------- tab navigation */
body.um-page-user .um-profile .um-profile-nav {
	background: var(--mp-surface) !important;
	border: 1px solid var(--mp-line);
	border-radius: var(--mp-radius);
	box-shadow: var(--mp-shadow);
	padding: 10px !important;
	margin: 6px 0 22px !important;
}

body.um-page-user .um-profile .um-profile-nav-item {
	margin: 3px !important;
}

body.um-page-user .um-profile .um-profile-nav-item a {
	position: relative;
	padding: 9px 15px !important;
	border-radius: 999px !important;
	background: transparent !important;
	color: var(--mp-text) !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	line-height: 1.25 !important;
	transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

body.um-page-user .um-profile .um-profile-nav-item a i {
	color: var(--mp-muted) !important;
	transition: color .18s ease;
}

/* Desktop links (icon + label): UM positions the icon absolutely inside the left padding. */
body.um-page-user .um-profile .um-profile-nav-item a.uimob800-hide {
	padding-left: 38px !important;
}

body.um-page-user .um-profile .um-profile-nav-item a.uimob800-hide i {
	left: 14px !important;
	top: 50% !important;
	transform: translateY(-50%);
	font-size: 16px !important;
	height: 16px !important;
	line-height: 16px !important;
}

/* Narrow-screen links are icon-only (UM shows a.uimob*-show there). */
body.um-page-user .um-profile .um-profile-nav-item a.uimob800-show {
	padding: 10px 12px !important;
}

body.um-page-user .um-profile .um-profile-nav-item a:hover {
	background: var(--mp-line-2) !important;
	color: var(--mp-navy) !important;
}

body.um-page-user .um-profile .um-profile-nav-item a:hover i {
	color: var(--mp-gold) !important;
}

body.um-page-user .um.um-profile .um-profile-nav-item.active a,
body.um-page-user .um.um-profile .um-profile-nav-item.active a:hover {
	background: linear-gradient(135deg, #2d2978 0%, var(--mp-navy-2) 100%) !important;
	color: #fff !important;
	box-shadow: 0 6px 16px rgba(38, 34, 98, .28);
}

body.um-page-user .um.um-profile .um-profile-nav-item.active a i {
	color: var(--mp-gold-2) !important;
}

/* Count badges added by JS (application / referral counters). */
body.um-page-user .um-profile .um-profile-nav-item a > strong[style*="border-radius"] {
	top: -9px !important;
	left: auto !important;
	right: -8px !important;
	z-index: 2;
	min-width: 20px;
	width: auto !important;
	height: 20px !important;
	padding: 0 6px;
	line-height: 20px !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	border-radius: 999px !important;
	background: var(--mp-coral) !important;
	box-shadow: 0 0 0 2px #fff, 0 4px 10px rgba(255, 111, 97, .35);
}

/* ------------------------------------------------------------- filter bars */
body.um-page-user .um-profile .flex-container.company_report {
	background: linear-gradient(135deg, #2b2774 0%, var(--mp-navy-2) 100%) !important;
	border-radius: var(--mp-radius) var(--mp-radius) 0 0 !important;
	box-shadow: var(--mp-shadow);
}

body.um-page-user .um-profile .flex-container.company_report label {
	color: rgba(255, 255, 255, .78) !important;
	font-size: 11px !important;
	font-weight: 600 !important;
	letter-spacing: .09em;
	text-transform: uppercase;
}

body.um-page-user .um-profile .company-profile-selector,
body.um-page-user .um-profile .flex-container.company_report input,
body.um-page-user .um-profile .flex-container.company_report select {
	background-color: #fff !important;
	border: 1px solid transparent !important;
	border-radius: var(--mp-radius-sm) !important;
	color: var(--mp-ink) !important;
	font-size: 14px !important;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .1), inset 0 0 0 1px rgba(255, 255, 255, .6);
	transition: box-shadow .18s ease, border-color .18s ease;
}

body.um-page-user .um-profile .company-profile-selector:hover,
body.um-page-user .um-profile .flex-container.company_report input:hover,
body.um-page-user .um-profile .flex-container.company_report select:hover {
	border-color: var(--mp-gold-line) !important;
}

body.um-page-user .um-profile .company-profile-selector:focus,
body.um-page-user .um-profile .flex-container.company_report input:focus,
body.um-page-user .um-profile .flex-container.company_report select:focus {
	outline: none !important;
	border-color: var(--mp-gold-2) !important;
	box-shadow: 0 0 0 3px rgba(217, 162, 74, .45) !important;
}

/* ------------------------------------------------------------- report panels */
body.um-page-user .um-profile container {
	background: var(--mp-surface) !important;
	border: 1px solid var(--mp-line);
	border-top: 0;
	border-radius: 0 0 var(--mp-radius) var(--mp-radius) !important;
	box-shadow: var(--mp-shadow);
	padding: 28px !important;
	color: var(--mp-text);
}

body.um-page-user .um-profile container h2,
body.um-page-user .um-profile container .profile-section-title,
body.um-page-user .um-profile container .u-text--medium {
	color: var(--mp-navy) !important;
}

body.um-page-user .um-profile container .profile-section-title,
body.um-page-user .um-profile container h2 .profile-section-title strong {
	font-family: var(--mp-heading);
	font-size: 17px !important;
	letter-spacing: .04em;
}

body.um-page-user .um-profile container .profile-section-title span[style*="color"] {
	font-family: inherit;
	letter-spacing: 0;
}

/* Separators that were white-on-navy (e.g. the "-" between heading dates) */
body.um-page-user .um-profile container span[style*="color: #ffffff"],
body.um-page-user .um-profile container span[style*="color:#ffffff"],
body.um-page-user .um-profile container span[style*="color: #fff;"],
body.um-page-user .um-profile container span[style*="color:#fff;"] {
	color: var(--mp-muted) !important;
}

/* Section headers (<details><summary>) */
body.um-page-user .um-profile details > summary {
	background: var(--mp-gold-soft) !important;
	border: 1px solid var(--mp-gold-line) !important;
	border-left: 4px solid var(--mp-gold) !important;
	border-radius: 12px;
	padding: 14px 18px !important;
	margin: 14px 0 10px !important;
}

body.um-page-user .um-profile details > summary:hover {
	background: #f8eedc !important;
}

body.um-page-user .um-profile details summary .property-title {
	color: var(--mp-navy) !important;
	font-weight: 600 !important;
	letter-spacing: .02em;
}

body.um-page-user .um-profile details summary:hover .property-title {
	color: var(--mp-gold) !important;
}

/* Mobile row cards */
body.um-page-user .um-profile .leaderboard-for-mobile details ul li {
	color: var(--mp-text);
	font-weight: 500;
}

body.um-page-user .um-profile .leaderboard-for-mobile details ul li span {
	color: var(--mp-ink);
	font-weight: 600;
}

/* "Generate report" row */
body.um-page-user .um-profile .profile-sub-header {
	align-items: center;
}

body.um-page-user .um-profile .report_format_selector {
	border: 1px solid var(--mp-line) !important;
	border-radius: var(--mp-radius-sm) !important;
	background-color: #fff !important;
	color: var(--mp-ink) !important;
}

body.um-page-user .um-profile .download-details {
	background: linear-gradient(135deg, var(--mp-gold-2) 0%, var(--mp-gold) 100%) !important;
	border: 0 !important;
	border-radius: 999px !important;
	box-shadow: 0 8px 18px rgba(189, 131, 43, .3);
	transition: transform .18s ease, box-shadow .18s ease;
}

body.um-page-user .um-profile .download-details:hover {
	transform: translateY(-1px);
	box-shadow: 0 12px 24px rgba(189, 131, 43, .38);
}

/* ------------------------------------------------------------------ tables */
body.um-page-user .um-profile table.desktop-version-drop {
	border-collapse: separate !important;
	border-spacing: 0 !important;
	border: 1px solid var(--mp-line) !important;
	border-radius: 12px;
	overflow: hidden;
	background: var(--mp-surface);
	font-variant-numeric: tabular-nums;
	margin-bottom: 26px;
}

body.um-page-user .um-profile table.desktop-version-drop th,
body.um-page-user .um-profile table.desktop-version-drop td {
	border: 0 !important;
	border-bottom: 1px solid var(--mp-line-2) !important;
	padding: 11px 12px !important;
	vertical-align: middle;
	word-break: normal !important;
	overflow-wrap: break-word; /* (not "anywhere": that lets columns shrink below whole words) */
	hyphens: manual;
}

/* The theme sets "table span { word-break: break-word }" and "table th { word-break: break-all }",
   which let columns shrink until words split mid-word. Break between words only. */
body.um-page-user .um-profile table.desktop-version-drop span,
body.um-page-user .um-profile table.desktop-version-drop th {
	word-break: normal !important;
	overflow-wrap: break-word;
}

/* Keep short identifiers (entry links like #17528) on one line */
body.um-page-user .um-profile table.desktop-version-drop td a {
	white-space: nowrap;
}

body.um-page-user .um-profile table.desktop-version-drop tr:last-child > td,
body.um-page-user .um-profile table.desktop-version-drop tr:last-child > th {
	border-bottom: 0 !important;
}

body.um-page-user .um-profile table.desktop-version-drop tr.light-background,
body.um-page-user .um-profile table.desktop-version-drop thead tr {
	background: var(--mp-tint) !important;
}

body.um-page-user .um-profile table.desktop-version-drop th {
	color: var(--mp-muted) !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	letter-spacing: .06em;
	text-transform: uppercase;
	white-space: nowrap;
}

body.um-page-user .um-profile table.desktop-version-drop thead th,
body.um-page-user .um-profile table.desktop-version-drop tr.light-background:first-child th {
	border-bottom: 1px solid var(--mp-line) !important;
}

/* Cell text: dark by default, but keep any colour a template sets inline (e.g. coral staff names). */
body.um-page-user .um-profile table.desktop-version-drop span:not([style*="color"]),
body.um-page-user .um-profile table.desktop-version-drop td:not([style*="color"]) {
	color: var(--mp-ink) !important;
}

body.um-page-user .um-profile table.desktop-version-drop span {
	font-size: 14px !important;
}

body.um-page-user .um-profile table.desktop-version-drop tbody tr:hover > td {
	background: #faf9fd;
}

body.um-page-user .um-profile table.desktop-version-drop a {
	color: var(--mp-navy) !important;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px dashed rgba(38, 34, 98, .35);
}

body.um-page-user .um-profile table.desktop-version-drop a:hover {
	color: var(--mp-gold) !important;
	border-bottom-color: var(--mp-gold);
}

/* Totals rows (bold rows and table footers) */
body.um-page-user .um-profile table.desktop-version-drop tr[style*="bold"] > td,
body.um-page-user .um-profile table.desktop-version-drop tfoot td,
body.um-page-user .um-profile table.desktop-version-drop tfoot th {
	background: var(--mp-gold-soft) !important;
	color: var(--mp-navy) !important;
	font-weight: 700 !important;
	border-top: 1px solid var(--mp-gold-line) !important;
}

body.um-page-user .um-profile table.desktop-version-drop tfoot tr.light-background {
	background: var(--mp-gold-soft) !important;
}

/* ------------------------------------------------------------------- cards */
/* Note: no position:relative here - the cards' absolutely-positioned labels are laid out
   against the surrounding column, so the card must stay unpositioned. The accent stripe is
   drawn as a background layer instead of a pseudo-element. */
body.um-page-user .um-profile .nexa-chart-card {
	background: linear-gradient(90deg, var(--mp-navy) 0%, var(--mp-gold-2) 100%) top / 100% 4px no-repeat, var(--mp-surface) !important;
	border: 1px solid var(--mp-line);
	border-radius: var(--mp-radius) !important;
	box-shadow: var(--mp-shadow) !important;
	transition: transform .2s ease, box-shadow .2s ease;
	font-variant-numeric: tabular-nums;
}

body.um-page-user .um-profile .nexa-chart-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--mp-shadow-lg) !important;
}

/* Card title (the first absolutely-positioned paragraph) */
body.um-page-user .um-profile .nexa-chart-card > p[style*="top: 40px"],
body.um-page-user .um-profile .nexa-chart-card > p[style*="top:40px"] {
	font-size: 12px !important;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--mp-muted) !important;
}

body.um-page-user .um-profile .nexa-chart-card > p[style*="top: 40px"] b,
body.um-page-user .um-profile .nexa-chart-card > p[style*="top:40px"] b {
	font-weight: 600;
}

/* Card value */
body.um-page-user .um-profile .nexa-chart-card h3 {
	color: var(--mp-navy) !important;
	font-weight: 700 !important;
	letter-spacing: -.01em;
}

body.um-page-user .um-profile .nexa-chart-card h3 > span {
	color: var(--mp-muted);
	font-weight: 500 !important;
}

/* Card detail lines */
/* Only soften lines the templates colour plain black; keep accent colours (e.g. coral headings). */
body.um-page-user .um-profile .nexa-chart-card > p[style*="color:#000000"]:not([style*="top: 40px"]):not([style*="top:40px"]),
body.um-page-user .um-profile .nexa-chart-card > p[style*="color: #000000"]:not([style*="top: 40px"]):not([style*="top:40px"]) {
	color: var(--mp-text) !important;
}

body.um-page-user .um-profile .nexa-chart-card > p b {
	font-weight: 500;
}

/* Underperforming cards: soft red instead of a solid red block */
body.um-page-user .um-profile .nexa-chart-card.underperforming-stat {
	background: linear-gradient(90deg, var(--mp-danger) 0%, var(--mp-danger) 100%) top / 100% 4px no-repeat, linear-gradient(180deg, #fff 0%, var(--mp-danger-soft) 100%) !important;
	border-color: var(--mp-danger-line);
}

body.um-page-user .um-profile .nexa-chart-card.underperforming-stat h3,
body.um-page-user .um-profile .nexa-chart-card.underperforming-stat .stat-difference {
	color: var(--mp-danger) !important;
}

body.um-page-user .um-profile .nexa-chart-card.underperforming-stat > p,
body.um-page-user .um-profile .nexa-chart-card.underperforming-stat > p b {
	color: #7d1d28 !important;
}

/* Decorative colour strip at the bottom of each card: smaller and softer */
body.um-page-user .um-profile .nexa-chart-card .paletteItem__colorScheme {
	box-shadow: none !important;
	opacity: .85;
	border-radius: 999px;
	height: 6px !important;
}

/* ------------------------------------------------------------------ pager */
body.um-page-user .um-profile .marsella-pager {
	background: var(--mp-tint) !important;
	border: 1px solid var(--mp-line);
	border-radius: 12px !important;
	color: var(--mp-text) !important;
}

body.um-page-user .um-profile .marsella-pager-btn {
	background: #fff;
	color: var(--mp-navy);
	border: 1px solid var(--mp-line);
	border-radius: 999px;
	padding: 6px 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

body.um-page-user .um-profile .marsella-pager-btn:hover:not([disabled]) {
	background: var(--mp-navy);
	border-color: var(--mp-navy);
	color: #fff;
}

body.um-page-user .um-profile .marsella-pager-btn[disabled] {
	opacity: .45;
	cursor: default;
}

/* ------------------------------------------------------------ loading overlay */
body.um-page-user .um-profile #marsella-overlay {
	background: rgba(255, 255, 255, .65) !important;
	backdrop-filter: blur(2px);
	border-radius: 0 0 var(--mp-radius) var(--mp-radius) !important;
}

body.um-page-user .um-profile #marsella-overlay .spinner {
	border-color: var(--mp-line) !important;
	border-top-color: var(--mp-gold) !important;
}

/* ------------------------------------------------------------------ mobile */
@media screen and (max-width: 900px) {
	body.um-page-user .um-profile container {
		padding: 18px !important;
	}

	body.um-page-user .um-profile .um-profile-nav {
		padding: 6px !important;
	}

	body.um-page-user .um-profile .um-profile-nav-item {
		margin: 2px !important;
	}

	body.um-page-user .um-profile .um-profile-nav-item a,
	body.um-page-user .um-profile .um-profile-nav-item a.uimob800-show {
		padding: 8px 9px !important;
	}

	/* Filters: stack label + full-width control instead of the absolute desktop positions
	   (those ran off the right edge of phones). */
	body.um-page-user .um-profile .flex-container.company_report {
		padding: 16px 16px 8px !important;
	}

	body.um-page-user .um-profile .flex-container.company_report .flex-child {
		position: static !important;
		top: auto !important;
		min-height: 0 !important;
		max-width: none !important;
		margin: 0 0 12px !important;
	}

	body.um-page-user .um-profile .flex-container.company_report .flex-child > label,
	body.um-page-user .um-profile .flex-container.company_report .flex-child > input,
	body.um-page-user .um-profile .flex-container.company_report .flex-child > select {
		position: static !important;
		display: block !important;
		top: auto !important;
		left: auto !important;
		right: auto !important;
	}

	body.um-page-user .um-profile .flex-container.company_report .flex-child {
		display: flex !important;
		flex-direction: column;
	}

	/* Some templates put the label after its control; always show the label first. */
	body.um-page-user .um-profile .flex-container.company_report .flex-child > label {
		order: -1;
		margin: 0 0 6px !important;
	}

	/* Entry forms: less inner padding on phones */
	body.um-page-user .um-profile container .targetDiv {
		padding: 18px 8px 22px !important;
	}

	body.um-page-user .um-profile .flex-container.company_report .flex-child > input,
	body.um-page-user .um-profile .flex-container.company_report .flex-child > select {
		width: 100% !important;
		max-width: none !important;
		min-width: 0 !important;
		height: 44px;
		padding: 0 12px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.um-page-user .um-profile .nexa-chart-card,
	body.um-page-user .um-profile .um-profile-nav-item a,
	body.um-page-user .um-profile .download-details {
		transition: none !important;
	}

	body.um-page-user .um-profile .nexa-chart-card:hover,
	body.um-page-user .um-profile .download-details:hover {
		transform: none;
	}
}

/* =========================================================================
 * DARK REPORT PANELS
 * Cards and tables on a dark navy surface with white / light text.
 * Scoped to the report panel (<container>), so the profile header and the tab
 * navigation keep their light styling. These selectors are more specific than
 * the light-panel rules above, so they take precedence without reordering.
 * ====================================================================== */
/* Tokens on body: this file only loads on Ultimate Member pages. */
body {
	--mp-d-panel: #1b1947;
	--mp-d-panel-2: #141236;
	--mp-d-card: #24215c;
	--mp-d-card-2: #2b2869;
	--mp-d-head: #201d54;
	--mp-d-line: rgba(255, 255, 255, .10);
	--mp-d-line-2: rgba(255, 255, 255, .06);
	--mp-d-text: #f4f3ff;
	--mp-d-muted: #b7b4de;
	--mp-d-gold: #e6b366;
	--mp-d-gold-bg: rgba(230, 179, 102, .12);
	--mp-d-gold-line: rgba(230, 179, 102, .30);
	--mp-d-danger: #ff8593;
	--mp-d-danger-bg: #351a45;
	--mp-d-danger-line: rgba(255, 107, 125, .38);
}

/* Panel */
body.um-page-user .um-profile container {
	background: linear-gradient(180deg, var(--mp-d-panel) 0%, var(--mp-d-panel-2) 100%) !important;
	border-color: rgba(255, 255, 255, .06);
	box-shadow: 0 2px 6px rgba(20, 18, 54, .18), 0 18px 44px rgba(20, 18, 54, .28);
	color: var(--mp-d-text);
}

/* Text the templates colour plain black becomes light (accent colours such as coral are kept). */
body.um-page-user .um-profile container [style*="color:#000000"],
body.um-page-user .um-profile container [style*="color: #000000"],
body.um-page-user .um-profile container [style*="color:#000;"],
body.um-page-user .um-profile container [style*="color: #000;"],
body.um-page-user .um-profile container [style*="color: black"],
body.um-page-user .um-profile container [style*="color:black"] {
	color: var(--mp-d-text) !important;
}

/* Headings */
body.um-page-user .um-profile container h2,
body.um-page-user .um-profile container .profile-section-title,
body.um-page-user .um-profile container .u-text--medium {
	color: #fff !important;
}

body.um-page-user .um-profile container span[style*="color: #ffffff"],
body.um-page-user .um-profile container span[style*="color:#ffffff"],
body.um-page-user .um-profile container span[style*="color: #fff;"],
body.um-page-user .um-profile container span[style*="color:#fff;"] {
	color: var(--mp-d-muted) !important;
}

/* Section headers */
body.um-page-user .um-profile container details > summary {
	background: linear-gradient(90deg, rgba(230, 179, 102, .22) 0%, rgba(230, 179, 102, .05) 70%) !important;
	border: 1px solid var(--mp-d-gold-line) !important;
	border-left: 4px solid var(--mp-d-gold) !important;
}

body.um-page-user .um-profile container details > summary:hover {
	background: rgba(230, 179, 102, .18) !important;
}

body.um-page-user .um-profile container details summary .property-title {
	color: #fff !important;
}

body.um-page-user .um-profile container details summary:hover .property-title {
	color: var(--mp-d-gold) !important;
}

/* Mobile row cards (tree list) */
body.um-page-user .um-profile container .leaderboard-for-mobile details ul li {
	color: var(--mp-d-muted);
}

body.um-page-user .um-profile container .leaderboard-for-mobile details ul li span {
	color: #fff;
}

body.um-page-user .um-profile container details ul li::before,
body.um-page-user .um-profile container details ul li::after {
	border-color: rgba(255, 255, 255, .18) !important;
}

/* Report format select next to "Generate report" */
body.um-page-user .um-profile container .report_format_selector {
	color-scheme: dark; /* dark option list */
	background-color: var(--mp-d-card) !important;
	/* The theme draws a dark arrow image; use a light one on the dark field. */
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23dcdaf5' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 12px center !important;
	background-size: 10px 6px !important;
	padding-right: 30px !important;
	border-color: var(--mp-d-line) !important;
	color: #fff !important;
}

/* ------------------------------------------------------------ dark tables */
body.um-page-user .um-profile container table.desktop-version-drop {
	background: var(--mp-d-card);
	border-color: var(--mp-d-line) !important;
	box-shadow: 0 10px 28px rgba(10, 9, 30, .25);
}

body.um-page-user .um-profile container table.desktop-version-drop th,
body.um-page-user .um-profile container table.desktop-version-drop td {
	border-bottom-color: rgba(255, 255, 255, .08) !important;
	/* Column boundaries */
	border-right: 1px solid rgba(255, 255, 255, .15) !important;
}

body.um-page-user .um-profile container table.desktop-version-drop tr > th:last-child,
body.um-page-user .um-profile container table.desktop-version-drop tr > td:last-child {
	border-right: 0 !important;
}

/* Header row: slightly stronger dividers */
body.um-page-user .um-profile container table.desktop-version-drop tr.light-background > th,
body.um-page-user .um-profile container table.desktop-version-drop thead th {
	border-right-color: rgba(255, 255, 255, .22) !important;
}

/* Alternate row shading so long rows are easy to follow */
body.um-page-user .um-profile container table.desktop-version-drop tr:nth-child(even) > td {
	background: rgba(255, 255, 255, .025);
}

body.um-page-user .um-profile container table.desktop-version-drop tr.light-background,
body.um-page-user .um-profile container table.desktop-version-drop thead tr {
	background: var(--mp-d-head) !important;
}

body.um-page-user .um-profile container table.desktop-version-drop th {
	color: var(--mp-d-muted) !important;
}

body.um-page-user .um-profile container table.desktop-version-drop thead th,
body.um-page-user .um-profile container table.desktop-version-drop tr.light-background:first-child th {
	border-bottom-color: var(--mp-d-line) !important;
}

body.um-page-user .um-profile container table.desktop-version-drop span:not([style*="color"]),
body.um-page-user .um-profile container table.desktop-version-drop td:not([style*="color"]) {
	color: var(--mp-d-text) !important;
}

body.um-page-user .um-profile container table.desktop-version-drop tr:hover > td {
	background: rgba(255, 255, 255, .04);
}

body.um-page-user .um-profile container table.desktop-version-drop a {
	color: #fff !important;
	border-bottom-color: rgba(255, 255, 255, .35);
}

body.um-page-user .um-profile container table.desktop-version-drop a:hover {
	color: var(--mp-d-gold) !important;
	border-bottom-color: var(--mp-d-gold);
}

/* Totals rows (solid dark base under the gold tint; templates set a light grey inline on the row) */
body.um-page-user .um-profile container table.desktop-version-drop tr[style*="bold"],
body.um-page-user .um-profile container table.desktop-version-drop tfoot tr {
	background: var(--mp-d-head) !important;
}

body.um-page-user .um-profile container table.desktop-version-drop tr[style*="bold"] > td,
body.um-page-user .um-profile container table.desktop-version-drop tfoot td,
body.um-page-user .um-profile container table.desktop-version-drop tfoot th {
	background: rgba(230, 179, 102, .13) !important; /* flat tint: a per-cell gradient shows seams */
	border-top-color: var(--mp-d-gold-line) !important;
}

body.um-page-user .um-profile container table.desktop-version-drop tr[style*="bold"] > td,
body.um-page-user .um-profile container table.desktop-version-drop tr[style*="bold"] span,
body.um-page-user .um-profile container table.desktop-version-drop tfoot td,
body.um-page-user .um-profile container table.desktop-version-drop tfoot th,
body.um-page-user .um-profile container table.desktop-version-drop tfoot span {
	color: #ffe2b3 !important;
}

/* ------------------------------------------------------------- dark cards */
body.um-page-user .um-profile container .nexa-chart-card {
	background: linear-gradient(90deg, var(--mp-d-gold) 0%, #f3cf8f 100%) top / 100% 3px no-repeat,
		linear-gradient(180deg, var(--mp-d-card-2) 0%, var(--mp-d-card) 100%) !important;
	border-color: var(--mp-d-line);
	box-shadow: 0 10px 28px rgba(10, 9, 30, .28) !important;
}

body.um-page-user .um-profile container .nexa-chart-card:hover {
	box-shadow: 0 16px 40px rgba(10, 9, 30, .4) !important;
}

body.um-page-user .um-profile container .nexa-chart-card > p[style*="top: 40px"],
body.um-page-user .um-profile container .nexa-chart-card > p[style*="top:40px"] {
	color: var(--mp-d-muted) !important;
}

body.um-page-user .um-profile container .nexa-chart-card h3 {
	color: #fff !important;
}

body.um-page-user .um-profile container .nexa-chart-card h3 > span {
	color: var(--mp-d-muted) !important;
}

/* Detail lines (templates colour them plain black inline) */
body.um-page-user .um-profile container .nexa-chart-card > p[style*="color:#000000"]:not([style*="top: 40px"]):not([style*="top:40px"]),
body.um-page-user .um-profile container .nexa-chart-card > p[style*="color: #000000"]:not([style*="top: 40px"]):not([style*="top:40px"]) {
	color: #dcdaf5 !important;
}

/* Under-target cards */
body.um-page-user .um-profile container .nexa-chart-card.underperforming-stat {
	background: linear-gradient(90deg, #ff5d70 0%, #ff8593 100%) top / 100% 3px no-repeat,
		linear-gradient(180deg, #3d1c4a 0%, var(--mp-d-danger-bg) 100%) !important;
	border-color: var(--mp-d-danger-line);
}

body.um-page-user .um-profile container .nexa-chart-card.underperforming-stat h3,
body.um-page-user .um-profile container .nexa-chart-card.underperforming-stat .stat-difference {
	color: var(--mp-d-danger) !important;
}

body.um-page-user .um-profile container .nexa-chart-card.underperforming-stat > p,
body.um-page-user .um-profile container .nexa-chart-card.underperforming-stat > p b {
	color: #ffd6db !important;
}

/* Graph cards stay light: the chart library draws dark axis labels on its canvas. */
body.um-page-user .um-profile container .nexa-chart-card.for-graph {
	background: #fff !important;
	border-color: var(--mp-line);
}

/* ------------------------------------------------------- pager & overlay */
body.um-page-user .um-profile container .marsella-pager {
	background: rgba(255, 255, 255, .05) !important;
	border-color: var(--mp-d-line);
	color: var(--mp-d-text) !important;
}

body.um-page-user .um-profile container .marsella-pager-btn {
	background: transparent;
	color: #fff;
	border-color: rgba(255, 255, 255, .25);
}

body.um-page-user .um-profile container .marsella-pager-btn:hover:not([disabled]) {
	background: var(--mp-d-gold);
	border-color: var(--mp-d-gold);
	color: var(--mp-navy-2);
}

body.um-page-user .um-profile container #marsella-overlay {
	background: rgba(20, 18, 54, .6) !important;
}

body.um-page-user .um-profile container #marsella-overlay .spinner {
	border-color: rgba(255, 255, 255, .15) !important;
	border-top-color: var(--mp-d-gold) !important;
}

/* =========================================================================
 * ENTRY FORMS (Add New Sale / Add New Inventory)
 * ====================================================================== */

/* Header: an outer navy block wraps the branch bar and the "SALE ENTRY" title.
   Style the outer block as the bar and flatten the inner one (they used to step). */
body.um-page-user .um-profile div.company_report:not(.flex-container) {
	background: linear-gradient(135deg, #2b2774 0%, var(--mp-navy-2) 100%) !important;
	border-radius: var(--mp-radius) var(--mp-radius) 0 0 !important;
	padding-top: 24px !important;
	padding-bottom: 22px !important;
	box-shadow: var(--mp-shadow);
}

body.um-page-user .um-profile div.company_report:not(.flex-container) > .flex-container.company_report {
	background: transparent !important;
	box-shadow: none !important;
	border-radius: 0 !important;
}

body.um-page-user .um-profile div.company_report:not(.flex-container) > h3 {
	font-family: var(--mp-heading);
	font-size: 28px !important;
	letter-spacing: .08em;
	color: #fff !important;
	margin-top: 4px !important;
}

body.um-page-user .um-profile div.company_report:not(.flex-container) > p {
	color: var(--mp-d-gold) !important;
	letter-spacing: .04em;
	margin-bottom: 0 !important;
}

/* Form card */
body.um-page-user .um-profile container .targetDiv {
	color: var(--mp-d-muted) !important;
	background: rgba(255, 255, 255, .03);
	border: 1px solid var(--mp-d-line);
	border-radius: var(--mp-radius);
	padding: 28px 28px 32px !important;
	margin-top: 8px !important;
	margin-bottom: 36px !important;
	max-width: 640px !important;
}

body.um-page-user .um-profile container .targetDiv label {
	display: block;
	color: var(--mp-d-muted) !important;
	font-size: 11px !important;
	font-weight: 600 !important;
	letter-spacing: .09em;
	text-transform: uppercase;
	margin-bottom: 8px !important;
}

body.um-page-user .um-profile container .targetDiv input[type="text"],
body.um-page-user .um-profile container .targetDiv input[type="number"],
body.um-page-user .um-profile container .targetDiv select,
body.um-page-user .um-profile container .targetDiv .form-control {
	background-color: #fff !important;
	border: 1px solid transparent !important;
	color: var(--mp-ink) !important;
	font-size: 14px !important;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
	transition: box-shadow .18s ease, border-color .18s ease;
}

body.um-page-user .um-profile container .targetDiv input:focus,
body.um-page-user .um-profile container .targetDiv select:focus,
body.um-page-user .um-profile container .targetDiv .form-control:focus {
	outline: none !important;
	border-color: var(--mp-gold-2) !important;
	box-shadow: 0 0 0 3px rgba(217, 162, 74, .45) !important;
}

/* Partner search with a search icon */
body.um-page-user .um-profile container #partner_sold_to,
body.um-page-user .um-profile container .targetDiv .marsella-dropdown > input[type="text"] {
	width: 100%;
	height: 44px;
	border-radius: var(--mp-radius-sm) !important;
	padding: 0 16px 0 42px !important;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2375738f' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 14px center / 16px 16px !important;
}

/* Search results list */
body.um-page-user .um-profile container .marsella-dropdown-content {
	background: #fff !important;
	border: 1px solid var(--mp-line) !important;
	border-radius: 12px;
	box-shadow: var(--mp-shadow-lg);
	margin-top: 6px;
	padding: 8px !important;
	z-index: 20 !important;
}

body.um-page-user .um-profile container .marsella-dropdown-content .carrying-agent-id,
body.um-page-user .um-profile container .marsella-dropdown-content .carrying-employee-id {
	color: var(--mp-ink) !important;
	border-radius: 8px;
	margin: 0 !important;
	padding: 9px 12px !important;
	cursor: pointer;
}

body.um-page-user .um-profile container .marsella-dropdown-content .carrying-agent-id:hover,
body.um-page-user .um-profile container .marsella-dropdown-content .carrying-employee-id:hover {
	background: var(--mp-navy) !important;
	color: #fff !important;
}

/* Add / remove product row buttons (the wrapper's inline margin-top pushed the button below the fields;
   its blank label already lines it up) */
body.um-page-user .um-profile container .fvrduplicate .form-group.marsella-hover {
	margin-top: 0 !important;
}


body.um-page-user .um-profile container .fvrduplicate button.btn-add,
body.um-page-user .um-profile container .fvrduplicate button.btn-remove {
	width: 40px;
	height: 40px;
	padding: 0 !important;
	border-radius: var(--mp-radius-sm) !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	font-size: 14px !important;
	letter-spacing: 0 !important;
	transition: transform .18s ease, box-shadow .18s ease;
}

body.um-page-user .um-profile container .fvrduplicate button.btn-add {
	background: linear-gradient(135deg, var(--mp-gold-2) 0%, var(--mp-gold) 100%) !important;
	color: var(--mp-navy-2) !important;
	border: 0 !important;
	box-shadow: 0 6px 14px rgba(189, 131, 43, .35);
}

body.um-page-user .um-profile container .fvrduplicate button.btn-remove {
	background: transparent !important;
	color: var(--mp-d-danger) !important;
	border: 1px solid var(--mp-d-danger-line) !important;
	box-shadow: none;
}

body.um-page-user .um-profile container .fvrduplicate button.btn-add:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 20px rgba(189, 131, 43, .45);
}

body.um-page-user .um-profile container .fvrduplicate button.btn-remove:hover {
	background: rgba(255, 133, 147, .12) !important;
}

/* Invoice preview: a light "paper" card (keeps dark text on white) */
body.um-page-user .um-profile container #marsella_sales_receipt,
body.um-page-user .um-profile container #marsella_inventories_receipt {
	background: transparent !important;
	padding: 0 !important;
}

body.um-page-user .um-profile container .receipt-main {
	background: linear-gradient(90deg, var(--mp-gold-2) 0%, var(--mp-gold) 100%) top / 100% 6px no-repeat, #fff !important;
	border: 0 !important;
	border-radius: var(--mp-radius);
	box-shadow: 0 18px 44px rgba(10, 9, 30, .4) !important;
	padding: 34px 30px 26px !important;
	overflow: hidden;
}

body.um-page-user .um-profile container .receipt-main::after {
	display: none !important;
}

body.um-page-user .um-profile container .receipt-main,
body.um-page-user .um-profile container .receipt-main p,
body.um-page-user .um-profile container .receipt-main td,
body.um-page-user .um-profile container .receipt-main [style*="color"] {
	color: var(--mp-text) !important;
	font-family: inherit !important;
}

body.um-page-user .um-profile container .receipt-main h5 {
	font-family: var(--mp-heading) !important;
	color: var(--mp-navy) !important;
	font-size: 18px !important;
}

body.um-page-user .um-profile container .receipt-main .receipt-right p {
	color: var(--mp-muted) !important;
	font-size: 12.5px !important;
	line-height: 1.7;
}

body.um-page-user .um-profile container .receipt-main .receipt-right p i {
	color: var(--mp-gold) !important;
}

body.um-page-user .um-profile container .receipt-main .receipt-left p {
	color: var(--mp-navy) !important;
	font-weight: 600;
	letter-spacing: .08em;
	font-size: 12px !important;
}

body.um-page-user .um-profile container .receipt-main table.table {
	border-collapse: separate !important;
	border-spacing: 0;
	border: 1px solid var(--mp-line) !important;
	border-radius: 12px;
	overflow: hidden;
	margin-top: 12px;
	font-variant-numeric: tabular-nums;
}

body.um-page-user .um-profile container .receipt-main thead {
	background: var(--mp-navy) !important;
}

body.um-page-user .um-profile container .receipt-main thead th {
	color: #fff !important;
	border: 0 !important;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
}

body.um-page-user .um-profile container .receipt-main td {
	border: 0 !important;
	border-top: 1px solid var(--mp-line-2) !important;
	border-right: 1px solid var(--mp-line) !important;
}

body.um-page-user .um-profile container .receipt-main thead th {
	border-right: 1px solid rgba(255, 255, 255, .16) !important;
}

body.um-page-user .um-profile container .receipt-main tr > td:last-child,
body.um-page-user .um-profile container .receipt-main tr > th:last-child {
	border-right: 0 !important;
}

body.um-page-user .um-profile container .receipt-main tbody tr:last-child td {
	background: var(--mp-gold-soft);
	border-top-color: var(--mp-gold-line) !important;
}

body.um-page-user .um-profile container .receipt-main td h6,
body.um-page-user .um-profile container .receipt-main td h6 strong {
	color: var(--mp-navy) !important;
	font-size: 14px !important;
	margin: 0 !important;
}

/* Confirm button */
body.um-page-user .um-profile container #confirm-sale-entry,
body.um-page-user .um-profile container #confirm-inventory-entry {
	background: linear-gradient(135deg, var(--mp-gold-2) 0%, var(--mp-gold) 100%) !important;
	border: 0 !important;
	border-radius: 999px !important;
	padding: 14px 34px !important;
	box-shadow: 0 10px 22px rgba(189, 131, 43, .35);
	transition: transform .18s ease, box-shadow .18s ease;
}

body.um-page-user .um-profile container #confirm-sale-entry:hover,
body.um-page-user .um-profile container #confirm-inventory-entry:hover {
	transform: translateY(-1px);
	box-shadow: 0 14px 28px rgba(189, 131, 43, .45);
}

/* =========================================================================
 * LOGIN / REGISTER / PASSWORD FORMS (and any other UM login/register form)
 * Scoped to the form wrappers, so they apply wherever these forms are used.
 * ====================================================================== */
.um.um-login,
.um.um-register,
.um.um-password {
	max-width: 480px !important;
	margin: 0 auto 64px !important;
	padding: 0 16px;
}

.um.um-login > .um-form,
.um.um-register > .um-form,
.um.um-password > .um-form {
	position: relative;
	background: linear-gradient(90deg, var(--mp-navy) 0%, var(--mp-gold-2) 100%) top / 100% 5px no-repeat, #fff;
	border: 1px solid var(--mp-line);
	border-radius: 20px;
	box-shadow: 0 2px 6px rgba(28, 26, 77, .05), 0 24px 56px rgba(28, 26, 77, .12);
	padding: 40px 40px 30px;
}

/* Heading (added in inc/marsella-um-premium.php) */
.um .marsella-um-form-head {
	text-align: center;
	margin-bottom: 26px;
}

.um .marsella-um-eyebrow {
	display: inline-block;
	color: var(--mp-gold);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	margin-bottom: 8px;
}

.um .marsella-um-title {
	font-family: var(--mp-heading);
	color: var(--mp-navy);
	font-size: 30px;
	line-height: 1.2;
	margin: 0 0 6px;
}

.um .marsella-um-subtitle {
	color: var(--mp-muted);
	font-size: 14px;
	margin: 0;
}

/* Fields */
.um.um-login .um-row,
.um.um-register .um-row {
	margin-bottom: 8px !important;
}

.um.um-login .um-field,
.um.um-register .um-field,
.um.um-password .um-field {
	padding-top: 0 !important;
	padding-bottom: 0 !important; /* UM adds 30px here on top of the margin */
	margin-bottom: 18px;
}

.um.um-login .um-field-label,
.um.um-register .um-field-label,
.um.um-password .um-field-label {
	margin-bottom: 8px !important;
}

.um.um-login .um-field-label label,
.um.um-register .um-field-label label,
.um.um-password .um-field-label label {
	color: var(--mp-text) !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	letter-spacing: .08em;
	text-transform: uppercase;
	line-height: 1.4 !important;
}

.um.um-login .um-form input.um-form-field,
.um.um-register .um-form input.um-form-field,
.um.um-password .um-form input.um-form-field,
.um.um-register .um-form select.um-form-field {
	height: 48px !important;
	padding: 0 16px !important;
	background: var(--mp-tint) !important;
	border: 1px solid var(--mp-line) !important;
	border-radius: 12px !important;
	color: var(--mp-ink) !important;
	font-size: 15px !important;
	box-shadow: none !important;
	transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.um.um-login .um-form input.um-form-field::placeholder,
.um.um-register .um-form input.um-form-field::placeholder,
.um.um-password .um-form input.um-form-field::placeholder {
	color: #a3a1b8;
}

.um.um-login .um-form input.um-form-field:hover,
.um.um-register .um-form input.um-form-field:hover,
.um.um-password .um-form input.um-form-field:hover {
	border-color: #d6d3e4 !important;
}

.um.um-login .um-form input.um-form-field:focus,
.um.um-register .um-form input.um-form-field:focus,
.um.um-password .um-form input.um-form-field:focus,
.um.um-register .um-form select.um-form-field:focus {
	outline: none !important;
	background: #fff !important;
	border-color: var(--mp-gold-2) !important;
	box-shadow: 0 0 0 4px rgba(217, 162, 74, .22) !important;
}

/* Validation messages */
.um.um-login .um-field-error,
.um.um-register .um-field-error,
.um.um-password .um-field-error {
	background: var(--mp-danger-soft) !important;
	color: var(--mp-danger) !important;
	border: 1px solid var(--mp-danger-line);
	border-radius: 10px;
	padding: 8px 12px !important;
	margin-top: 8px !important;
	font-size: 13px;
}

.um.um-login .um-field-error .um-field-arr,
.um.um-register .um-field-error .um-field-arr,
.um.um-password .um-field-error .um-field-arr {
	display: none;
}

.um.um-login .um-notice,
.um.um-register .um-notice,
.um.um-password .um-notice {
	border-radius: 12px !important;
	padding: 12px 16px !important;
	font-size: 14px;
}

/* "Keep me signed in" */
.um.um-login .um-field-checkbox {
	display: inline-flex !important;
	align-items: center;
	gap: 10px;
	color: var(--mp-text);
	cursor: pointer;
}

.um.um-login .um-field-checkbox-state {
	position: static !important;
}

.um.um-login .um-field-checkbox-state i {
	color: #b9b6cd !important;
	font-size: 22px !important;
	transition: color .18s ease;
}

.um.um-login .um-field-checkbox.active .um-field-checkbox-state i,
.um.um-login .um-field-checkbox:hover .um-field-checkbox-state i {
	color: var(--mp-gold) !important;
}

.um.um-login .um-field-checkbox-option {
	margin-left: 0 !important;
	color: var(--mp-text) !important;
	font-size: 14px !important;
	line-height: 1.4 !important;
}

/* Buttons */
.um.um-login .um-col-alt,
.um.um-register .um-col-alt,
.um.um-password .um-col-alt {
	margin-top: 8px !important;
}

.um.um-login .um-form input[type="submit"].um-button,
.um.um-register .um-form input[type="submit"].um-button,
.um.um-password .um-form input[type="submit"].um-button,
.um.um-login .um-form a.um-button,
.um.um-register .um-form a.um-button {
	height: 50px !important;
	padding: 0 24px !important;
	line-height: 50px !important;
	border: 0 !important;
	border-radius: 12px !important;
	background: linear-gradient(135deg, #2d2978 0%, var(--mp-navy-2) 100%) !important;
	color: #fff !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	letter-spacing: .04em !important;
	box-shadow: 0 10px 22px rgba(38, 34, 98, .28) !important;
	transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.um.um-login .um-form input[type="submit"].um-button:hover,
.um.um-register .um-form input[type="submit"].um-button:hover,
.um.um-password .um-form input[type="submit"].um-button:hover,
.um.um-login .um-form a.um-button:hover,
.um.um-register .um-form a.um-button:hover {
	transform: translateY(-1px);
	box-shadow: 0 14px 28px rgba(38, 34, 98, .34) !important;
	filter: brightness(1.08);
}

.um.um-login .um-form input[type="submit"].um-button:focus-visible,
.um.um-register .um-form input[type="submit"].um-button:focus-visible,
.um.um-password .um-form input[type="submit"].um-button:focus-visible {
	outline: none !important;
	box-shadow: 0 0 0 4px rgba(217, 162, 74, .45) !important;
}

/* Secondary button (e.g. "Login" on the register form) */
.um.um-login .um-form .um-button.um-alt,
.um.um-register .um-form .um-button.um-alt {
	background: #fff !important;
	color: var(--mp-navy) !important;
	border: 1px solid var(--mp-line) !important;
	box-shadow: none !important;
}

.um.um-login .um-form .um-button.um-alt:hover,
.um.um-register .um-form .um-button.um-alt:hover {
	background: var(--mp-tint) !important;
	border-color: #d6d3e4 !important;
	filter: none;
}

/* Links ("Forgot your password?") */
.um.um-login .um-col-alt-b {
	margin-top: 18px !important;
	padding-top: 18px;
	border-top: 1px solid var(--mp-line-2);
	text-align: center;
}

.um.um-login a.um-link-alt,
.um.um-register a.um-link-alt,
.um.um-password a.um-link-alt {
	color: var(--mp-navy) !important;
	font-weight: 600;
	font-size: 14px !important;
	text-decoration: none !important;
	border-bottom: 1px dashed rgba(38, 34, 98, .35);
	transition: color .18s ease, border-color .18s ease;
}

.um.um-login a.um-link-alt:hover,
.um.um-register a.um-link-alt:hover,
.um.um-password a.um-link-alt:hover {
	color: var(--mp-gold) !important;
	border-bottom-color: var(--mp-gold);
}

/* Password reset intro text */
.um.um-password .um-field-block {
	color: var(--mp-muted);
	font-size: 14px;
	line-height: 1.6;
	margin-bottom: 20px !important;
}

@media screen and (max-width: 600px) {
	.um.um-login > .um-form,
	.um.um-register > .um-form,
	.um.um-password > .um-form {
		padding: 30px 22px 24px;
		border-radius: 16px;
	}

	.um .marsella-um-title {
		font-size: 26px;
	}
}

/* =========================================================================
 * ACCOUNT PAGE (Account / Change Password / Privacy)
 * ====================================================================== */
.um.um-account {
	max-width: 1120px !important;
	margin: 0 auto 64px !important;
}

/* Side column and main column as cards */
.um.um-account .um-account-side,
.um.um-account .um-account-main {
	box-sizing: border-box;
	background: linear-gradient(90deg, var(--mp-navy) 0%, var(--mp-gold-2) 100%) top / 100% 5px no-repeat, #fff;
	border: 1px solid var(--mp-line);
	border-radius: 20px;
	box-shadow: 0 2px 6px rgba(28, 26, 77, .05), 0 20px 48px rgba(28, 26, 77, .10);
}

.um.um-account .um-account-side {
	padding: 30px 18px 18px !important;
}

/* UM splits the columns 30% / 70% with the gutter inside the main column's padding;
   with card padding we need an explicit gap. */
@media screen and (min-width: 801px) {
	.um.um-account .um-account-side {
		width: calc(30% - 12px) !important;
		margin-right: 24px !important;
	}

	.um.um-account .um-account-main {
		width: calc(70% - 12px) !important;
	}
}

.um.um-account .um-account-profile-link a.um-link {
	font-family: var(--e-global-typography-text-font-family, sans-serif) !important;
}

.um.um-account .um-account-main {
	padding: 34px 40px 30px !important;
}

/* Profile summary */
.um.um-account .um-account-meta {
	background: transparent !important;
	padding: 0 0 18px !important;
	margin-bottom: 14px !important;
	border-bottom: 1px solid var(--mp-line-2);
	text-align: center;
}

.um.um-account .um-account-meta img {
	border-radius: 50% !important;
	border: 3px solid #fff !important;
	box-shadow: 0 0 0 3px var(--mp-gold-2), 0 10px 24px rgba(28, 26, 77, .18) !important;
}

.um.um-account .um-account-name a,
.um.um-account .um-account-name {
	font-family: var(--mp-heading) !important;
	color: var(--mp-navy) !important;
	font-size: 20px !important;
	font-weight: 600 !important;
}

.um.um-account .um-account-profile-link a.um-link {
	color: var(--mp-gold) !important;
	font-size: 13px !important;
	font-weight: 600;
	letter-spacing: .04em;
}

/* Side menu */
.um.um-account .um-account-side ul {
	margin: 0 !important;
}

.um.um-account .um-account-side li {
	margin: 0 0 6px !important;
	background: transparent !important;
}

div.um.um-account .um-account-side li a,
div.uimob800 .um.um-account .um-account-side li a {
	display: flex !important;
	align-items: center;
	height: 46px !important;
	line-height: 46px !important;
	border-radius: 12px !important;
	background: transparent !important;
	color: var(--mp-text) !important;
	border: 0 !important;
	transition: background-color .18s ease, color .18s ease;
}

.um.um-account .um-account-side li a .um-account-icon {
	border: 0 !important;
	width: 44px !important;
	text-align: center;
	color: var(--mp-muted) !important;
}

.um.um-account .um-account-side li a .um-account-icon i {
	color: inherit !important;
}

.um.um-account .um-account-side li a .um-account-title {
	padding-left: 4px !important;
	font-size: 14px !important;
	font-weight: 500;
	color: inherit !important;
}

.um.um-account .um-account-side li a .um-account-arrow {
	margin-left: auto;
	color: #c3c0d6 !important;
}

div.um.um-account .um-account-side li a:hover {
	background: var(--mp-tint) !important;
	color: var(--mp-navy) !important;
}

div.um.um-account .um-account-side li a.current,
div.um.um-account .um-account-side li a.current:hover,
div.uimob800 .um.um-account .um-account-side li a.current,
div.uimob800 .um.um-account .um-account-side li a.current:hover {
	background: linear-gradient(135deg, #2d2978 0%, var(--mp-navy-2) 100%) !important;
	color: #fff !important;
	box-shadow: 0 8px 18px rgba(38, 34, 98, .25);
}

div.um.um-account .um-account-side li a.current .um-account-icon,
div.um.um-account .um-account-side li a.current .um-account-arrow {
	color: var(--mp-gold-2) !important;
}

/* Main column */
.um.um-account .um-account-heading {
	font-family: var(--mp-heading) !important;
	color: var(--mp-navy) !important;
	font-size: 24px !important;
	font-weight: 600 !important;
	margin: 0 0 22px !important;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--mp-line-2);
}

.um.um-account .um-account-heading i {
	color: var(--mp-gold) !important;
	margin-right: 12px !important;
}

.um.um-account .um-field {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	margin-bottom: 18px;
}

.um.um-account .um-field-label {
	margin-bottom: 8px !important;
}

.um.um-account .um-field-label label {
	color: var(--mp-text) !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.um.um-account .um-form input.um-form-field,
.um.um-account .um-form select.um-form-field {
	height: 48px !important;
	padding: 0 16px !important;
	background: var(--mp-tint) !important;
	border: 1px solid var(--mp-line) !important;
	border-radius: 12px !important;
	color: var(--mp-ink) !important;
	font-size: 15px !important;
	box-shadow: none !important;
	transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.um.um-account .um-form input.um-form-field:focus,
.um.um-account .um-form select.um-form-field:focus {
	outline: none !important;
	background: #fff !important;
	border-color: var(--mp-gold-2) !important;
	box-shadow: 0 0 0 4px rgba(217, 162, 74, .22) !important;
}

/* Read-only fields (e.g. username) */
.um.um-account .um-form input.um-form-field[disabled],
.um.um-account .um-form input.um-form-field[readonly] {
	background: var(--mp-line-2) !important;
	color: var(--mp-muted) !important;
	cursor: not-allowed;
}

.um.um-account .um-field-error {
	background: var(--mp-danger-soft) !important;
	color: var(--mp-danger) !important;
	border: 1px solid var(--mp-danger-line);
	border-radius: 10px;
	padding: 8px 12px !important;
	margin-top: 8px !important;
	font-size: 13px;
}

.um.um-account .um-field-error .um-field-arr {
	display: none;
}

.um.um-account .um-notice {
	border-radius: 12px !important;
}

/* Update / Delete buttons */
.um.um-account .um-col-alt {
	margin-top: 10px !important;
	padding-top: 22px;
	border-top: 1px solid var(--mp-line-2);
}

.um.um-account .um-form input[type="submit"].um-button {
	height: 50px !important;
	padding: 0 30px !important;
	line-height: 50px !important;
	border: 0 !important;
	border-radius: 12px !important;
	background: linear-gradient(135deg, #2d2978 0%, var(--mp-navy-2) 100%) !important;
	color: #fff !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	letter-spacing: .04em !important;
	box-shadow: 0 10px 22px rgba(38, 34, 98, .28) !important;
	transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.um.um-account .um-form input[type="submit"].um-button:hover {
	transform: translateY(-1px);
	box-shadow: 0 14px 28px rgba(38, 34, 98, .34) !important;
	filter: brightness(1.08);
}

/* Narrow screens: UM shows an accordion menu (.um-account-nav) instead of the side menu */
.um.um-account .um-account-nav a {
	border-radius: 12px !important;
	background: var(--mp-tint) !important;
	color: var(--mp-navy) !important;
	margin-bottom: 8px !important;
}

.um.um-account .um-account-nav a.current {
	background: linear-gradient(135deg, #2d2978 0%, var(--mp-navy-2) 100%) !important;
	color: #fff !important;
}

@media screen and (max-width: 800px) {
	.um.um-account .um-account-main {
		padding: 24px 20px 22px !important;
	}
}

/* =========================================================================
 * INVENTORY TAB: UNITS DISTRIBUTED VS SOLD (inc/marsella-inventory-units.php)
 * One card per sales staff member; one stacked bar per product
 * (sold + returned + unaccounted = distributed).
 * ====================================================================== */
body.um-page-user .um-profile .marsella-units {
	--mu-sold: #5ad1a4;
	--mu-returned: #8f8bd1;
	--mu-gap: #ff8593;
	color: var(--mp-d-text, #f4f3ff);
}

body.um-page-user .um-profile .marsella-units__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin: 6px 0 16px;
	font-size: 13px;
	color: var(--mp-d-muted, #b7b4de);
}

body.um-page-user .um-profile .marsella-units__legend span {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

body.um-page-user .um-profile .marsella-units__key {
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 3px;
}

body.um-page-user .um-profile .marsella-units__key--sold,
body.um-page-user .um-profile .marsella-units__seg--sold { background: var(--mu-sold); }
body.um-page-user .um-profile .marsella-units__key--returned,
body.um-page-user .um-profile .marsella-units__seg--returned { background: var(--mu-returned); }
body.um-page-user .um-profile .marsella-units__key--gap,
body.um-page-user .um-profile .marsella-units__seg--gap { background: var(--mu-gap); }

body.um-page-user .um-profile .marsella-units__empty {
	color: var(--mp-d-muted, #b7b4de);
	margin: 8px 0 0;
}

body.um-page-user .um-profile .marsella-units__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
	gap: 18px;
}

body.um-page-user .um-profile .marsella-units__card {
	background: var(--mp-d-card, #24215c);
	border: 1px solid var(--mp-d-line, rgba(255, 255, 255, .10));
	border-radius: var(--mp-radius, 16px);
	padding: 18px 18px 8px;
	min-width: 0;
}

body.um-page-user .um-profile .marsella-units__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
}

body.um-page-user .um-profile .marsella-units__name {
	margin: 0 !important;
	font-size: 17px !important;
	line-height: 1.3 !important;
	color: #fff !important;
}

body.um-page-user .um-profile .marsella-units__branch {
	font-size: 12px;
	color: var(--mp-d-muted, #b7b4de);
}

body.um-page-user .um-profile .marsella-units__rate {
	text-align: right;
	line-height: 1.1;
	flex-shrink: 0;
}

body.um-page-user .um-profile .marsella-units__rate strong {
	display: block;
	font-size: 24px;
	color: var(--mp-d-gold, #e6b366);
}

body.um-page-user .um-profile .marsella-units__rate span {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--mp-d-muted, #b7b4de);
}

body.um-page-user .um-profile .marsella-units__totals {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	margin: 14px 0 12px;
	padding: 10px 0;
	border-top: 1px solid var(--mp-d-line-2, rgba(255, 255, 255, .06));
	border-bottom: 1px solid var(--mp-d-line-2, rgba(255, 255, 255, .06));
}

body.um-page-user .um-profile .marsella-units__totals dt {
	font-size: 11px;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--mp-d-muted, #b7b4de);
	margin: 0;
}

body.um-page-user .um-profile .marsella-units__totals dd {
	margin: 2px 0 0;
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	font-variant-numeric: tabular-nums;
}

body.um-page-user .um-profile .marsella-units__list {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.um-page-user .um-profile .marsella-units__row {
	list-style: none !important;
	margin: 0 !important;
	padding: 9px 0 !important;
	border-bottom: 1px solid var(--mp-d-line-2, rgba(255, 255, 255, .06));
}

body.um-page-user .um-profile .marsella-units__row:last-child {
	border-bottom: 0;
}

body.um-page-user .um-profile .marsella-units__row-top {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 10px;
	font-size: 14px;
}

body.um-page-user .um-profile .marsella-units__product {
	min-width: 0;
	overflow-wrap: anywhere;
	color: var(--mp-d-text, #f4f3ff);
}

body.um-page-user .um-profile .marsella-units__nums {
	flex-shrink: 0;
	font-size: 12px;
	color: var(--mp-d-muted, #b7b4de);
	font-variant-numeric: tabular-nums;
}

body.um-page-user .um-profile .marsella-units__nums b {
	color: #fff;
	font-size: 14px;
}

body.um-page-user .um-profile .marsella-units__bar {
	display: flex;
	gap: 2px;
	height: 8px;
	margin-top: 6px;
	border-radius: 4px;
	overflow: hidden;
	background: var(--mp-d-line, rgba(255, 255, 255, .10));
}

body.um-page-user .um-profile .marsella-units__seg {
	display: block;
	height: 100%;
	min-width: 0;
}

body.um-page-user .um-profile .marsella-units__seg[style*="width: 0%"] {
	display: none;
}

body.um-page-user .um-profile .marsella-units__row-foot {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	margin-top: 4px;
	font-size: 12px;
	color: var(--mp-d-muted, #b7b4de);
}

body.um-page-user .um-profile .marsella-units__row-foot:empty {
	display: none;
}

body.um-page-user .um-profile .marsella-units__row-foot .is-gap {
	color: var(--mu-gap);
}

body.um-page-user .um-profile .marsella-units__row-foot .is-over {
	color: var(--mp-d-gold, #e6b366);
}

@media screen and (max-width: 600px) {
	body.um-page-user .um-profile .marsella-units__totals {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

body.um-page-user .um-profile .marsella-units__totals dd.is-gap {
	color: var(--mu-gap);
}

/* Inventory tab: production vs expected sales (inc/marsella-inventory-units.php) */
body.um-page-user .um-profile .marsella-stock__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: stretch;
	gap: 12px;
}

body.um-page-user .um-profile .marsella-stock__card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	padding: 18px;
	background: var(--mp-d-card, #24215c);
	border: 1px solid var(--mp-d-line, rgba(255, 255, 255, .10));
	border-radius: var(--mp-radius, 16px);
}

body.um-page-user .um-profile .marsella-stock__card--result {
	background: var(--mp-d-gold-bg, rgba(230, 179, 102, .12));
	border-color: var(--mp-d-gold-line, rgba(230, 179, 102, .30));
}

body.um-page-user .um-profile .marsella-stock__card--result.is-negative {
	background: var(--mp-d-danger-bg, #351a45);
	border-color: var(--mp-d-danger-line, rgba(255, 107, 125, .38));
}

body.um-page-user .um-profile .marsella-stock__label {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--mp-d-muted, #b7b4de);
}

body.um-page-user .um-profile .marsella-stock__value {
	font-size: 24px;
	line-height: 1.2;
	color: #fff;
	font-variant-numeric: tabular-nums;
	overflow-wrap: anywhere;
}

body.um-page-user .um-profile .marsella-stock__card--result .marsella-stock__value {
	color: var(--mp-d-gold, #e6b366);
}

body.um-page-user .um-profile .marsella-stock__card--result.is-negative .marsella-stock__value {
	color: var(--mp-d-danger, #ff8593);
}

body.um-page-user .um-profile .marsella-stock__note {
	font-size: 12px;
	color: var(--mp-d-muted, #b7b4de);
}

body.um-page-user .um-profile .marsella-stock__op {
	align-self: center;
	font-size: 26px;
	color: var(--mp-d-muted, #b7b4de);
}

body.um-page-user .um-profile .marsella-stock__warn {
	margin: 12px 0 0;
	font-size: 13px;
	color: var(--mp-d-danger, #ff8593);
}

@media screen and (max-width: 800px) {
	body.um-page-user .um-profile .marsella-stock__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	body.um-page-user .um-profile .marsella-stock__op {
		justify-self: center;
		line-height: 1;
		margin: -4px 0;
	}
}
