/* =========================================================
   Lubrex Rewards — Brand Stylesheet (v2)
   Light dashboard theme with dark sidebar, per reference design.
   Primary palette: Black (#000) + Lubrex Gold (#FFB800)
   ========================================================= */

/* Fonts are enqueued dynamically from Lubrex Rewards -> Design (see lrx_enqueue_assets()). */

.lrx-wrap {
	--lrx-black: #0a0a0a;
	--lrx-gold: #ffb800;
	--lrx-gold-dim: color-mix(in srgb, var(--lrx-gold) 70%, black);
	--lrx-gold-tint: color-mix(in srgb, var(--lrx-gold) 15%, white);
	--lrx-icon-bg: var(--lrx-gold-tint);
	--lrx-page-bg: #f6f6f8;
	--lrx-card-bg: #ffffff;
	--lrx-text: #16171a;
	--lrx-line: color-mix(in srgb, var(--lrx-text) 10%, white);
	--lrx-muted: color-mix(in srgb, var(--lrx-text) 55%, white);
	--lrx-success: #16a34a;
	--lrx-success-bg: #e7f6ec;
	--lrx-error: #dc2626;
	--lrx-error-bg: #fceeee;

	--font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--font-label: 'Oswald', 'Arial Narrow', sans-serif;
	--font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

	font-family: var(--font-body);
	color: var(--lrx-text);
	-webkit-font-smoothing: antialiased;
}

.lrx-wrap * { box-sizing: border-box; }
.lrx-wrap :focus-visible { outline: 3px solid var(--lrx-gold); outline-offset: 2px; }

.lrx-wrap h1, .lrx-wrap h2, .lrx-wrap h3, .lrx-wrap h4 {
	font-family: var(--font-heading);
	margin: 0;
	color: var(--lrx-text);
}

.lrx-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--font-body);
	font-size: 14.5px;
	font-weight: 600;
	text-decoration: none;
	text-align: center;
	padding: 12px 22px;
	border-radius: 10px;
	border: none;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.lrx-btn-primary { background: var(--lrx-gold); color: var(--lrx-black); }
.lrx-btn-primary:hover:not(:disabled) { background: var(--lrx-black); color: var(--lrx-gold); }
.lrx-btn-primary:disabled { background: #e5e1d6; color: #a29c8c; cursor: not-allowed; }
.lrx-btn-secondary { background: #fff; color: var(--lrx-text); border: 1.5px solid var(--lrx-line); }
.lrx-btn-secondary:hover { border-color: var(--lrx-gold); color: var(--lrx-gold-dim); }
.lrx-btn-danger { color: #dc2626 !important; border-color: #dc2626 !important; }
.lrx-btn-danger:hover { background: #fef2f2 !important; }

/* -------- Standalone header logout button ([lrx_logout_button]) -------- */
.lrx-header-logout-btn {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	color: #0a0a0a !important;
	background: #ffb800 !important;
	border: none !important;
	border-radius: 999px !important;
	padding: 9px 18px !important;
	text-decoration: none !important;
	line-height: 1.2 !important;
	transition: opacity 0.15s ease;
}
.lrx-header-logout-btn:hover { opacity: 0.85; color: #0a0a0a !important; text-decoration: none !important; }
@media (prefers-reduced-motion: reduce) { .lrx-header-logout-btn { transition: none; } }
@media (prefers-reduced-motion: reduce) { .lrx-btn { transition: none; } }

.lrx-alert { padding: 13px 18px; margin: 14px 0; border-radius: 10px; font-weight: 500; font-size: 14.5px; border-left: 4px solid var(--lrx-text); }
.lrx-alert-success { background: var(--lrx-success-bg); color: #14532d; border-left-color: var(--lrx-success); }
.lrx-alert-error { background: var(--lrx-error-bg); color: #7f1d1d; border-left-color: var(--lrx-error); }
.lrx-alert-info { background: var(--lrx-gold-tint); color: #6b4e00; border-left-color: var(--lrx-gold); }
.lrx-price-note { font-size: 13px; margin: -6px 0 16px; }

/* -------- Order Products page: horizontal product rows -------- */
.lrx-product-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }

.lrx-category-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.lrx-category-pill {
	background: var(--lrx-card-bg); border: 1.5px solid var(--lrx-line); border-radius: 999px;
	padding: 8px 16px; font-size: 13px; font-weight: 600; color: var(--lrx-muted) !important;
	cursor: pointer; transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.lrx-category-pill:hover { border-color: var(--lrx-gold); color: var(--lrx-gold-dim) !important; }
.lrx-category-pill.is-active { background: var(--lrx-black); border-color: var(--lrx-black); color: var(--lrx-gold) !important; }
@media (prefers-reduced-motion: reduce) { .lrx-category-pill { transition: none; } }

.lrx-product-category-heading {
	font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
	color: var(--lrx-muted); margin: 18px 0 2px; padding-bottom: 6px; border-bottom: 1px solid var(--lrx-line);
}
.lrx-product-category-heading:first-child { margin-top: 0; }

.lrx-product-row {
	display: flex;
	align-items: center;
	gap: 16px;
	background: var(--lrx-card-bg);
	border: 1px solid var(--lrx-line);
	border-radius: 14px;
	padding: 14px 18px;
	flex-wrap: wrap;
}
.lrx-product-row-image {
	width: 68px; height: 68px; flex-shrink: 0;
	border-radius: 10px; object-fit: contain;
	background: var(--lrx-page-bg);
}
.lrx-product-row-image-placeholder { display: block; }
.lrx-product-row-info { flex: 1 1 220px; min-width: 180px; }
.lrx-product-row-info h4 { font-size: 14.5px; font-weight: 700; margin-bottom: 2px; }
.lrx-product-row-sku { font-size: 11px; color: var(--lrx-muted); margin: 0 0 4px; }
.lrx-product-row-specs { font-size: 12.5px; color: var(--lrx-muted); margin: 0; white-space: pre-line; }
.lrx-product-row-controls {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
	flex-wrap: wrap;
}
.lrx-product-row-controls select {
	padding: 10px 12px; border-radius: 8px; border: 1.5px solid var(--lrx-line);
	font-size: 13px; min-width: 170px;
}
.lrx-product-row-controls input[type="number"] {
	width: 64px; padding: 10px; border-radius: 8px; border: 1.5px solid var(--lrx-line);
	font-size: 13px; text-align: center;
}
.lrx-product-row-total { font-size: 13px; font-weight: 700; color: var(--lrx-gold-dim); min-width: 90px; text-align: right; }

.lrx-product-row-added-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	font-weight: 700;
	color: #14532d;
	background: var(--lrx-success-bg);
	padding: 6px 12px;
	border-radius: 999px;
	white-space: nowrap;
	opacity: 0;
	transform: translateX(-4px);
	transition: opacity 0.25s ease, transform 0.25s ease;
	pointer-events: none;
}
.lrx-product-row-added-badge.is-visible {
	opacity: 1;
	transform: translateX(0);
}
@media (prefers-reduced-motion: reduce) {
	.lrx-product-row-added-badge { transition: none; }
}
@media (max-width: 480px) {
	.lrx-product-row-added-badge { width: 100%; justify-content: center; }
}
.lrx-product-row-controls .lrx-btn { padding: 10px 18px; white-space: nowrap; }

@media (max-width: 640px) {
	.lrx-product-row { flex-direction: column; align-items: stretch; }
	.lrx-product-row-controls { width: 100%; justify-content: space-between; }
	.lrx-product-row-controls select { flex: 1; min-width: 0; }
}

.lrx-order-cart-panel { margin-bottom: 20px; }
.lrx-cart-item {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding: 10px 12px; border-radius: 10px; background: var(--lrx-page-bg);
	border: 1px solid var(--lrx-line); margin-bottom: 8px;
}
.lrx-cart-item-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.lrx-cart-item-body strong { font-size: 13.5px; }
.lrx-cart-item-body span { font-size: 12px; color: var(--lrx-muted); }
.lrx-cart-item-price { font-size: 13.5px; font-weight: 700; color: var(--lrx-gold-dim); flex-shrink: 0; }
.lrx-cart-remove {
	background: none; border: none; cursor: pointer; color: var(--lrx-error);
	font-size: 18px; line-height: 1; padding: 4px 8px; flex-shrink: 0;
}
.lrx-cart-remove:hover { color: #7f1d1d; }
.lrx-cart-total-row {
	display: flex; align-items: center; justify-content: space-between;
	padding: 12px 4px 0; margin-top: 6px; border-top: 1px solid var(--lrx-line);
	font-size: 15px; font-weight: 700;
}
.lrx-cart-total-row strong { color: var(--lrx-gold-dim); font-size: 17px; }

/* -------- Order tabs -------- */
.lrx-order-tabs { display: flex; gap: 8px; margin-bottom: 18px; border-bottom: 1px solid var(--lrx-line); }
.lrx-order-tab {
	background: none; border: none; cursor: pointer;
	padding: 10px 4px; margin-bottom: -1px;
	font-size: 14px; font-weight: 600; color: var(--lrx-muted) !important;
	border-bottom: 2px solid transparent;
}
.lrx-order-tab.is-active { color: var(--lrx-black) !important; border-bottom-color: var(--lrx-gold); }
.lrx-order-tab:hover { color: var(--lrx-gold-dim) !important; }

/* -------- Order history cards -------- */
.lrx-order-card {
	background: var(--lrx-card-bg); border: 1px solid var(--lrx-line); border-radius: 14px;
	padding: 16px 18px; margin-bottom: 12px;
}
.lrx-order-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; font-size: 13px; font-weight: 600; }
.lrx-order-card-items { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--lrx-line); border-bottom: 1px solid var(--lrx-line); padding: 10px 0; margin-bottom: 10px; }
.lrx-order-card-item { display: flex; justify-content: space-between; font-size: 13px; color: var(--lrx-text); }
.lrx-order-card-item span:last-child { color: var(--lrx-muted); flex-shrink: 0; margin-left: 10px; }
.lrx-order-card-item-category {
	display: inline-block; font-size: 10.5px; font-weight: 700; text-transform: uppercase;
	color: var(--lrx-gold-dim); background: var(--lrx-gold-tint); border-radius: 999px;
	padding: 2px 8px; margin-left: 4px; vertical-align: middle;
}
.lrx-order-card-total { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 700; }
.lrx-order-card-total strong { color: var(--lrx-gold-dim); font-size: 16px; }

/* -------- Staff dashboards: branded data table (customer directory + order lists) -------- */
.lrx-table-wrap { display: block !important; width: 100% !important; overflow-x: auto; border: 1px solid var(--lrx-line); border-radius: 12px; margin: 16px 0 24px; }
.lrx-data-table { width: 100%; border-collapse: collapse; background: var(--lrx-card-bg); font-size: 13px; }
.lrx-data-table th, .lrx-data-table td { padding: 12px 16px; text-align: left; vertical-align: middle; white-space: nowrap; }
.lrx-data-table thead th {
	position: sticky; top: 0; z-index: 2;
	background: var(--lrx-black); color: var(--lrx-gold);
	font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
	border-bottom: 1px solid var(--lrx-black);
}
.lrx-data-table tbody tr:nth-child(odd) { background: var(--lrx-page-bg); }
.lrx-data-table tbody tr:hover { background: var(--lrx-gold-tint); }
.lrx-data-table td { border-bottom: 1px solid var(--lrx-line); color: var(--lrx-text); }
.lrx-data-table tbody tr:last-child td { border-bottom: none; }
.lrx-data-table .lrx-cell-wrap { white-space: normal; }
.lrx-data-table .lrx-cell-sub { display: block; font-size: 11.5px; color: var(--lrx-muted); margin-top: 2px; }
.lrx-data-table .lrx-cell-actions { display: flex; gap: 8px; white-space: nowrap; }
.lrx-data-table .lrx-btn { padding: 7px 14px; font-size: 12px; }

.lrx-table-items summary { cursor: pointer; font-weight: 600; color: var(--lrx-gold-dim); font-size: 12.5px; list-style: none; }
.lrx-table-items summary::-webkit-details-marker { display: none; }
.lrx-table-items summary::after { content: ' ▾'; }
.lrx-table-items[open] summary::after { content: ' ▴'; }
.lrx-table-items-detail { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; white-space: normal; min-width: 220px; }

.lrx-invoice-cell { min-width: 160px; }
.lrx-invoice-saved { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lrx-invoice-saved-value { font-weight: 600; }
.lrx-invoice-saved-badge {
	display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 700;
	color: #14532d; background: var(--lrx-success-bg); border-radius: 999px; padding: 2px 8px;
}
.lrx-invoice-edit-toggle summary {
	cursor: pointer; font-size: 11.5px; color: var(--lrx-gold-dim); font-weight: 600; list-style: none;
}
.lrx-invoice-edit-toggle summary::-webkit-details-marker { display: none; }
.lrx-invoice-form { display: flex; gap: 6px; margin-top: 6px; }
.lrx-invoice-form input {
	width: 130px; padding: 7px 9px; border-radius: 7px; border: 1.5px solid var(--lrx-line);
	font-size: 12.5px; font-family: var(--font-body);
}
.lrx-invoice-form .lrx-btn { padding: 7px 12px; font-size: 12px; flex-shrink: 0; }

@media (max-width: 820px) {
	.lrx-table-wrap { border: none; }
	.lrx-data-table thead { display: none; }
	.lrx-data-table, .lrx-data-table tbody, .lrx-data-table tr, .lrx-data-table td { display: block; width: 100%; }
	.lrx-data-table tr {
		background: var(--lrx-card-bg); border: 1px solid var(--lrx-line); border-radius: 12px;
		margin-bottom: 10px; padding: 6px 14px;
	}
	.lrx-data-table tbody tr:nth-child(odd) { background: var(--lrx-card-bg); }
	.lrx-data-table td {
		display: flex; justify-content: space-between; align-items: center; gap: 12px;
		padding: 9px 0; border-bottom: 1px solid var(--lrx-line); white-space: normal;
	}
	.lrx-data-table td:last-child { border-bottom: none; }
	.lrx-data-table td[data-label]::before {
		content: attr(data-label); font-weight: 700; color: var(--lrx-muted); font-size: 10.5px;
		text-transform: uppercase; letter-spacing: 0.04em; flex-shrink: 0; margin-right: 12px;
	}
	.lrx-data-table .lrx-cell-actions { flex-direction: column; align-items: stretch; }
	.lrx-data-table .lrx-cell-actions .lrx-btn, .lrx-data-table .lrx-cell-actions form { width: 100%; }
	.lrx-data-table .lrx-cell-actions form .lrx-btn { width: 100%; }
}

/* -------- Order history filters (frontend) -------- */
.lrx-history-filter-bar {
	display: flex;
	align-items: flex-end;
	gap: 12px;
	flex-wrap: wrap;
	background: var(--lrx-card-bg);
	border: 1px solid var(--lrx-line);
	border-radius: 12px;
	padding: 14px 16px;
	margin-bottom: 16px;
}
.lrx-history-filter-bar > div { display: flex; flex-direction: column; gap: 4px; }
.lrx-history-filter-bar label { font-size: 11px; font-weight: 600; color: var(--lrx-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.lrx-history-filter-bar input,
.lrx-history-filter-bar select {
	padding: 8px 10px; border-radius: 8px; border: 1.5px solid var(--lrx-line);
	font-size: 13px; font-family: var(--font-body);
}
.lrx-history-filter-bar .lrx-btn { padding: 9px 16px; font-size: 13px; }
@media (max-width: 480px) {
	.lrx-history-filter-bar { flex-direction: column; align-items: stretch; }
	.lrx-history-filter-bar .lrx-btn { width: 100%; }
}

/* =========================================================
   Shell: dark sidebar + light content area (dashboard & scanner)
   ========================================================= */
.lrx-shell {
	display: flex !important;
	align-items: stretch;
	background: var(--lrx-page-bg);
	border-radius: 20px;
	overflow: hidden;
	border: 2px solid var(--lrx-black);
	box-shadow:
		0 0 0 3px var(--lrx-gold),
		0 22px 48px -28px rgba(0, 0, 0, 0.35);
	min-height: 640px;
}

.lrx-sidebar {
	width: 230px;
	flex-shrink: 0;
	background: var(--lrx-black);
	color: #fff;
	padding: 24px 18px;
	display: flex;
	flex-direction: column;
}
.lrx-sidebar-logo {
	display: flex;
	align-items: center;
	margin-bottom: 30px;
	padding: 0 2px;
}
.lrx-sidebar-logo-img {
	max-width: 100%;
	height: auto;
	display: block;
}
.lrx-sidebar-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.lrx-sidebar-nav a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 12px;
	border-radius: 9px;
	color: #c7c7cc;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
}
.lrx-sidebar-nav a svg { width: 18px; height: 18px; flex-shrink: 0; }
.lrx-sidebar-nav a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.lrx-sidebar-nav a.is-active {
	background: rgba(255, 184, 0, 0.12);
	color: var(--lrx-gold);
	border: 1px solid rgba(255, 184, 0, 0.35);
}
.lrx-sidebar-nav a.lrx-logout { margin-top: auto; color: #9a9a9f; }
.lrx-sidebar-nav a.lrx-logout:hover { color: #fff; }

/* -------- Mobile top bar (logo) + fixed bottom nav (hidden on desktop) -------- */
.lrx-mobile-topbar { display: none; }
.lrx-mobile-nav { display: none; }

.lrx-main { flex: 1 1 0% !important; padding: 26px 30px 34px; min-width: 0; width: auto !important; }

/* -------- Top bar -------- */
.lrx-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 20px;
}
.lrx-topbar-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lrx-topbar-title h2 { font-size: 22px; font-weight: 800; }
.lrx-badge-pill {
	display: inline-flex !important;
	align-items: center !important;
	flex-wrap: nowrap !important;
	gap: 6px;
	background: var(--lrx-black);
	color: var(--lrx-gold) !important;
	font-size: 12.5px;
	font-weight: 600;
	padding: 6px 13px;
	border-radius: 999px;
	white-space: nowrap;
}
/* One badge inverts the color scheme (gold background, black text) --
   the Gift Catalog page's points-balance pill. The generic rule above
   forces gold text everywhere else (needed to survive theme overrides),
   so this needs an ID-specificity override to correctly win here,
   otherwise the balance text renders gold-on-gold and disappears. */
#lrx-gifts-balance-pill,
#lrx-gifts-balance-pill span {
	color: var(--lrx-black) !important;
}
.lrx-badge-pill svg {
	display: inline-block !important;
	width: 12px !important;
	height: 12px !important;
	flex-shrink: 0 !important;
}
.lrx-topbar-user { display: flex; align-items: center; gap: 10px; }
.lrx-topbar-user img { width: 40px; height: 40px; border-radius: 50%; }
.lrx-topbar-user-name { font-size: 14px; font-weight: 700; line-height: 1.2; }
.lrx-topbar-user-company { font-size: 12px; color: var(--lrx-muted); }

/* -------- Welcome banner -------- */
.lrx-banner {
	background: linear-gradient(120deg, #101010 0%, #1a1a1a 100%);
	color: #fff;
	border-radius: 16px;
	padding: 22px 26px;
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 22px;
	position: relative;
	overflow: hidden;
}
.lrx-banner img { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--lrx-gold); flex-shrink: 0; }
.lrx-banner-text h3 { color: #fff; font-size: 19px; font-weight: 700; }
.lrx-banner-text h3 .lrx-name-gold { color: var(--lrx-gold); }
.lrx-banner-text p { margin: 3px 0 0; color: #c7c7cc; font-size: 13.5px; }
.lrx-banner-tagline { margin-left: auto; padding-left: 20px; border-left: 1px solid rgba(255, 255, 255, 0.15); color: #c7c7cc; font-size: 13px; max-width: 260px; }
.lrx-banner-badge {
	width: 52px; height: 52px; flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
	color: var(--lrx-gold);
}

/* -------- Stat cards -------- */
.lrx-stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.lrx-stats-row-3 { grid-template-columns: repeat(3, 1fr); }
.lrx-stat-card {
	background: var(--lrx-card-bg);
	border: 1px solid var(--lrx-line);
	border-radius: 14px;
	padding: 16px;
	display: flex;
	align-items: center;
	gap: 12px;
}
.lrx-stat-icon {
	width: 42px; height: 42px; flex-shrink: 0;
	border-radius: 10px;
	background: var(--lrx-icon-bg);
	display: flex; align-items: center; justify-content: center;
	color: var(--lrx-gold-dim);
}
.lrx-stat-icon svg { width: 20px; height: 20px; }
.lrx-stat-label { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lrx-muted); margin-bottom: 3px; }
.lrx-stat-value { display: block; font-size: 22px; font-weight: 800; line-height: 1; }
.lrx-stat-value .lrx-unit { font-size: 12px; font-weight: 500; color: var(--lrx-muted); margin-left: 3px; }

/* -------- Progress + Scan row -------- */
.lrx-mid-row { display: grid; grid-template-columns: 1.7fr 1fr; gap: 16px; margin-bottom: 22px; }

.lrx-progress-card { background: var(--lrx-card-bg); border: 1px solid var(--lrx-line); border-radius: 16px; padding: 22px; }
.lrx-progress-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.lrx-progress-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--lrx-icon-bg); display: flex; align-items: center; justify-content: center; color: var(--lrx-gold-dim); flex-shrink: 0; }
.lrx-progress-icon svg { width: 18px; height: 18px; }
.lrx-progress-card-head h4 { font-size: 15.5px; font-weight: 700; }
.lrx-progress-card-head p { margin: 2px 0 0; font-size: 12.5px; color: var(--lrx-muted); }
.lrx-progress-numbers { font-size: 28px; font-weight: 800; margin-bottom: 10px; }
.lrx-progress-numbers .lrx-progress-target { font-size: 16px; font-weight: 600; color: var(--lrx-muted); }
.lrx-progress-track { width: 100%; height: 10px; border-radius: 999px; background: #ececec; overflow: hidden; position: relative; }
.lrx-progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--lrx-gold-dim), var(--lrx-gold)); transition: width 0.4s ease; }
.lrx-progress-pct { text-align: right; font-size: 12px; font-weight: 700; color: var(--lrx-gold-dim); margin-top: 4px; }
.lrx-progress-footnote { margin-top: 12px; font-size: 13px; color: var(--lrx-text); }
.lrx-progress-footnote strong { color: var(--lrx-gold-dim); }

.lrx-scan-card {
	background: var(--lrx-gold);
	border-radius: 16px;
	padding: 22px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	color: var(--lrx-black);
	position: relative;
	overflow: hidden;
}
.lrx-scan-card h4 { font-size: 16.5px; font-weight: 800; }
.lrx-scan-card p { font-size: 13px; margin: 6px 0 16px; max-width: 75%; opacity: 0.85; }
.lrx-scan-card-icon { position: absolute; top: 18px; right: 18px; color: rgba(10, 10, 10, 0.75); }
.lrx-scan-card-icon svg { width: 46px; height: 46px; }
.lrx-scan-card .lrx-btn {
	background: var(--lrx-black);
	color: var(--lrx-gold);
	width: 100%;
	justify-content: space-between;
}
.lrx-scan-card .lrx-btn:hover { background: #1f1f1f; }

/* -------- Bottom row: history / gift status / activity -------- */
.lrx-bottom-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; }
.lrx-bottom-row-2col { grid-template-columns: 1.3fr 1fr; margin-bottom: 20px; }
.lrx-panel { background: var(--lrx-card-bg); border: 1px solid var(--lrx-line); border-radius: 16px; padding: 20px; }

/* -------- Staff dashboards: pagination -------- */
.lrx-staff-pagination {
	display: flex !important; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; margin: 20px 0;
	width: 100% !important; flex-basis: 100% !important; clear: both;
}
.lrx-staff-pagination span { font-size: 13px; color: var(--lrx-muted); font-weight: 600; }

/* -------- Staff dashboards: customer/manager box grid (2 per row) -------- */
.lrx-customer-box-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0 24px; }
.lrx-customer-box {
	background: var(--lrx-card-bg); border: 1px solid var(--lrx-line); border-radius: 14px; padding: 18px;
}
.lrx-customer-box-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.lrx-customer-box-head img { border-radius: 50%; flex-shrink: 0; }
.lrx-customer-box-head strong { display: block; font-size: 15px; }
.lrx-customer-box-head span { display: block; font-size: 12.5px; color: var(--lrx-muted); margin-top: 2px; }
.lrx-customer-box-details { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--lrx-line); }
.lrx-customer-box-details div { display: flex; justify-content: space-between; font-size: 12.5px; gap: 8px; }
.lrx-customer-box-details span { color: var(--lrx-muted); flex-shrink: 0; }
.lrx-customer-box-details strong { text-align: right; word-break: break-word; }
.lrx-customer-box-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lrx-customer-box-stat {
	background: var(--lrx-gold-tint); border-radius: 10px; padding: 10px; text-align: center;
}
.lrx-customer-box-stat-value { display: block; font-size: 20px; font-weight: 700; color: var(--lrx-gold-dim); font-family: var(--font-heading); }
.lrx-customer-box-stat-label { display: block; font-size: 11px; color: var(--lrx-muted); text-transform: uppercase; letter-spacing: 0.03em; margin-top: 2px; }

@media (max-width: 640px) {
	.lrx-customer-box-grid { grid-template-columns: 1fr; }
}

/* -------- Management dashboard: read-only assignment rows -------- */
.lrx-assignment-value { flex: 1; font-size: 14px; text-align: right; }

/* -------- Staff dashboards: assignment rows (Management -> Team Assignments) -------- */
.lrx-assignment-row {
	display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
	padding: 12px 0; border-bottom: 1px solid var(--lrx-line);
}
.lrx-assignment-row:last-of-type { border-bottom: none; }
.lrx-assignment-name { flex: 1 1 160px; font-size: 14px; font-weight: 600; min-width: 140px; }
.lrx-assignment-row select {
	padding: 9px 12px; border-radius: 8px; border: 1.5px solid var(--lrx-line);
	font-size: 13px; font-family: var(--font-body); min-width: 200px;
}
.lrx-assignment-row-wide select[multiple] { min-height: 92px; min-width: 240px; }
.lrx-panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.lrx-panel-head .lrx-progress-icon { width: 34px; height: 34px; }
.lrx-panel-head h4 { font-size: 14.5px; font-weight: 700; flex: 1; }
.lrx-panel-head a { font-size: 12.5px; font-weight: 600; color: var(--lrx-gold-dim); text-decoration: none; }
.lrx-panel-head a:hover { color: var(--lrx-black); }

.lrx-history-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.lrx-history-table thead th {
	text-align: left; font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
	color: var(--lrx-muted); padding: 0 0 8px; border-bottom: 1px solid var(--lrx-line);
}
.lrx-history-table tbody td { padding: 10px 0; border-bottom: 1px solid var(--lrx-line); vertical-align: middle; }
.lrx-history-table tbody tr:last-child td { border-bottom: none; }
.lrx-history-item-name { font-weight: 600; }
.lrx-points-positive { color: var(--lrx-success); font-weight: 700; text-align: right; }
.lrx-points-negative { color: var(--lrx-error); font-weight: 700; text-align: right; }
.lrx-muted { color: var(--lrx-muted); }

/* -------- Points History (card list, dedicated page) -------- */
.lrx-history-list { display: flex; flex-direction: column; gap: 10px; }
.lrx-history-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border-radius: 12px;
	background: var(--lrx-page-bg);
	border: 1px solid var(--lrx-line);
	transition: border-color 0.15s ease, background 0.15s ease;
}
.lrx-history-item:hover { border-color: var(--lrx-gold); background: #fff; }
.lrx-history-item-icon {
	width: 38px; height: 38px; flex-shrink: 0;
	border-radius: 10px;
	background: var(--lrx-icon-bg);
	color: var(--lrx-gold-dim);
	display: flex; align-items: center; justify-content: center;
}
.lrx-history-item-icon svg { width: 18px; height: 18px; }
.lrx-history-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lrx-history-item-body strong { font-size: 14px; font-weight: 600; }
.lrx-history-item-body span { font-size: 12px; color: var(--lrx-muted); margin-top: 2px; }
.lrx-history-item-points { font-size: 15px; font-weight: 800; flex-shrink: 0; }
@media (prefers-reduced-motion: reduce) { .lrx-history-item { transition: none; } }

.lrx-status-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--lrx-line); }
.lrx-status-row:last-child { border-bottom: none; padding-bottom: 0; }
.lrx-status-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--lrx-icon-bg); color: var(--lrx-gold-dim); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lrx-status-icon svg { width: 16px; height: 16px; }
.lrx-status-text strong { display: block; font-size: 13.5px; font-weight: 700; }
.lrx-status-text span { font-size: 12px; color: var(--lrx-muted); }
.lrx-status-chip { margin-left: auto; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.lrx-status-chip-pending { background: var(--lrx-gold-tint); color: var(--lrx-gold-dim); }
.lrx-status-chip-received { background: var(--lrx-success-bg); color: var(--lrx-success); }

.lrx-activity-panel { text-align: center; }
.lrx-activity-dot-wrap { width: 84px; height: 84px; border-radius: 50%; border: 1px solid var(--lrx-line); margin: 4px auto 14px; display: flex; align-items: center; justify-content: center; position: relative; }
.lrx-activity-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--lrx-success); box-shadow: 0 0 0 6px var(--lrx-success-bg); }
.lrx-activity-panel h5 { color: var(--lrx-success); font-size: 14.5px; font-weight: 700; margin-bottom: 4px; }
.lrx-activity-panel p { font-size: 12.5px; color: var(--lrx-muted); margin: 0 0 3px; }

/* -------- Fraud notice footer -------- */
.lrx-fraud-notice {
	display: flex; align-items: center; gap: 14px;
	background: #fff; border: 1px solid var(--lrx-line); border-radius: 14px;
	padding: 16px 20px; margin-top: 18px;
}
.lrx-fraud-notice .lrx-status-icon { background: var(--lrx-icon-bg); }
.lrx-fraud-notice strong { display: block; font-size: 13.5px; }
.lrx-fraud-notice span { font-size: 12.5px; color: var(--lrx-muted); }

/* -------- Scanner page (inside shell) -------- */
.lrx-scanner-panel { background: var(--lrx-card-bg); border: 1px solid var(--lrx-line); border-radius: 16px; padding: 28px; text-align: center; }
#lrx-qr-reader { width: 100%; max-width: 360px; margin: 20px auto; border: 2px solid var(--lrx-black); border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 4px var(--lrx-gold-tint); }
#lrx-scan-again { margin-top: 10px; }

/* -------- Login page (standalone, no sidebar) -------- */
.lrx-login-wrap {
	max-width: 380px;
	background: var(--lrx-card-bg);
	border: 1px solid var(--lrx-line);
	border-radius: 18px;
	border-top: 5px solid var(--lrx-gold);
	padding: 34px 28px;
	margin: 40px auto;
	box-shadow: 0 20px 50px -30px rgba(0, 0, 0, 0.35);
}
.lrx-login-wrap p.login-username, .lrx-login-wrap p.login-password, .lrx-login-wrap p.login-remember, .lrx-login-wrap p.login-submit { margin: 0 0 16px; }
.lrx-login-wrap label { display: block; font-size: 12.5px; font-weight: 600; color: var(--lrx-muted); margin-bottom: 6px; }
.lrx-login-wrap input[type="text"], .lrx-login-wrap input[type="password"], .lrx-login-wrap input[type="email"] {
	width: 100%; padding: 12px 14px; border: 1.5px solid var(--lrx-line); border-radius: 10px;
	background: var(--lrx-page-bg); font-family: var(--font-body); font-size: 15px;
}
.lrx-login-wrap input:focus { outline: none; border-color: var(--lrx-gold); background: #fff; }
.lrx-login-wrap input[type="submit"] {
	width: 100%; background: var(--lrx-black); color: var(--lrx-gold); font-weight: 700;
	border: none; border-radius: 10px; padding: 13px; cursor: pointer;
}
.lrx-login-wrap input[type="submit"]:hover { background: var(--lrx-gold); color: var(--lrx-black); }
.lrx-forgot-link { text-align: center; margin-top: 4px; }
.lrx-forgot-link a { color: var(--lrx-muted); font-size: 13px; text-decoration: none; }
.lrx-forgot-link a:hover { color: var(--lrx-gold-dim); }

/* -------- Standalone notice (e.g. not logged in) -------- */
.lrx-notice-card {
	max-width: 420px;
	margin: 40px auto;
	background: var(--lrx-card-bg);
	border: 1px solid var(--lrx-line);
	border-top: 5px solid var(--lrx-gold);
	border-radius: 16px;
	padding: 28px 24px;
	text-align: center;
}
.lrx-notice-card p { margin: 0 0 16px; color: var(--lrx-text); }

/* -------- Responsive -------- */
@media (max-width: 820px) {
	.lrx-shell { flex-direction: column; border-radius: 0; border-width: 0 0 2px; box-shadow: 0 0 0 2px var(--lrx-gold) inset, 0 10px 24px -18px rgba(0, 0, 0, 0.3); min-height: 0; }

	/* Desktop sidebar is fully replaced by the mobile top bar + fixed bottom nav below. */
	.lrx-sidebar { display: none; }

	.lrx-mobile-topbar {
		display: flex;
		align-items: center;
		justify-content: center;
		background: var(--lrx-black);
		padding: 12px 16px;
	}
	.lrx-mobile-topbar img { height: 26px; width: auto; }

	.lrx-mobile-nav {
		display: flex;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 999;
		background: var(--lrx-black);
		border-top: 2px solid var(--lrx-gold);
		box-shadow: 0 -8px 20px -10px rgba(0, 0, 0, 0.4);
		padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
		justify-content: space-around;
		overflow-x: auto;
	}
	.lrx-mobile-nav a {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 3px;
		color: #9a9a9f;
		text-decoration: none;
		font-size: 10px;
		font-weight: 500;
		flex-shrink: 0;
		padding: 4px 8px;
	}
	.lrx-mobile-nav a svg { width: 20px; height: 20px; }
	.lrx-mobile-nav a.is-active { color: var(--lrx-gold); }

	/* Room so fixed bottom nav never covers the last bit of content. */
	.lrx-main { padding: 16px 14px calc(84px + env(safe-area-inset-bottom)); }

	.lrx-stats-row { grid-template-columns: repeat(2, 1fr); }
	.lrx-mid-row { grid-template-columns: 1fr; }
	.lrx-bottom-row, .lrx-bottom-row-2col { grid-template-columns: 1fr; }
	.lrx-banner { flex-wrap: wrap; }
	.lrx-banner-tagline { margin-left: 0; padding-left: 0; border-left: none; max-width: 100%; }

	.lrx-history-filter-bar { flex-direction: column; align-items: stretch; }
	.lrx-history-filter-bar > div { width: 100%; }
	.lrx-history-filter-bar select, .lrx-history-filter-bar input { width: 100%; }
	.lrx-history-filter-bar .lrx-btn { width: 100%; }

	.lrx-assignment-row { flex-direction: column; align-items: stretch; }
	.lrx-assignment-row select { width: 100%; min-width: 0; }
	.lrx-assignment-row .lrx-btn { width: 100%; }
	.lrx-assignment-row-wide select[multiple] { width: 100%; }
}
@media (max-width: 480px) {
	.lrx-stats-row { grid-template-columns: 1fr 1fr; }
	.lrx-login-wrap { padding: 24px 20px; margin: 20px auto; }
}
