:root { --sk-oled-bg: #000000; }
.skin-swatch--default { background-color: #0067ff !important; }
.skin-swatch--slate { background-color: #7a70ba !important; }
.skin-swatch--indigo { background-color: #4f46e5 !important; }
.skin-swatch--aqua { background-color: #1597a5 !important; }
.skin-swatch--sellzy { background-color: #088178 !important; }
.skin-swatch--lime { background-color: #9ccc1f !important; }
.skin-swatch--lilac { background-color: #6d5ba6 !important; }
.skin-swatch--prism { background-color: #6d28d9 !important; }
.skin-swatch--midnight { background-color: #4f5bd5 !important; }
.skin-swatch--ocean { background-color: #0a84ff !important; }
.skin-swatch--graphite { background-color: #2b2b30 !important; }
.skin-swatch--emerald { background-color: #059669 !important; }
.skin-swatch--amber { background-color: #f59e0b !important; }
.skin-swatch--coral { background-color: #ff6b5e !important; }
.skin-swatch--console { background-color: #15803d !important; }
.skin-swatch--bento { background-color: #ff5a1f !important; }

/* Header profile popup — gradient head card + tinted icon menu */
.profile-menu {
	width: 288px;
	overflow: hidden;
	border: 1px solid var(--sk-border) !important;
	border-radius: var(--sk-radius-card, 12px) !important;
	box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.10), 0 8px 10px -6px rgb(0 0 0 / 0.04);
}
.profile-menu .min-w-0 { min-width: 0; }
.profile-menu-head {
	position: relative;
	overflow: hidden;
	padding: 16px 16px 14px;
	background: linear-gradient(155deg, color-mix(in oklab, var(--sk-primary) 85%, #000), color-mix(in oklab, var(--sk-primary) 30%, #000) 75%);
}
.profile-menu-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.profile-menu-orb-a { top: -32px; inset-inline-end: -32px; width: 96px; height: 96px; background: rgb(255 255 255 / 0.08); filter: blur(2px); }
.profile-menu-orb-b { bottom: -40px; inset-inline-start: -24px; width: 80px; height: 80px; background: #8b5cf6; opacity: 0.18; filter: blur(6px); }
.profile-menu-avatar { display: block; border-radius: 50%; object-fit: cover; border: 2px solid rgb(255 255 255 / 0.25); }
.profile-menu-status {
	position: absolute; bottom: 0; inset-inline-end: 0;
	width: 10px; height: 10px; border-radius: 50%;
	background: var(--sk-success, #22c55e);
	border: 2px solid color-mix(in oklab, var(--sk-primary) 70%, #000);
}
.profile-menu-name { display: block; font-size: 14px; font-weight: 700; color: #fff; }
.profile-menu-email { display: block; font-size: 11.5px; color: rgb(255 255 255 / 0.72); }
.profile-menu-badge {
	display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0;
	padding: 2px 6px; border-radius: 50rem;
	font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
	background: rgb(255 255 255 / 0.18); color: #fff;
}
.profile-menu-badge svg { width: 9px; height: 9px; }
.profile-menu-item {
	display: flex; align-items: center; gap: 10px; width: 100%;
	padding: 8px 10px; border: 0; border-radius: 8px; background: transparent;
	font-size: 13px; font-weight: 500; text-align: start; text-decoration: none;
	color: var(--sk-foreground);
}
.profile-menu-item:hover { background: var(--sk-surface-muted); color: var(--sk-foreground); }
.profile-menu-item.is-danger, .profile-menu-item.is-danger:hover { color: var(--sk-danger, #dc2626); }
.profile-menu-icon {
	display: grid; place-items: center; flex-shrink: 0;
	width: 28px; height: 28px; border-radius: 8px;
}
.profile-menu-icon svg { width: 14px; height: 14px; }
.profile-menu-icon.is-primary { background: color-mix(in oklab, var(--sk-primary) 14%, transparent); color: var(--sk-primary); }
.profile-menu-icon.is-muted   { background: color-mix(in oklab, var(--sk-muted-foreground, #6b7280) 14%, transparent); color: var(--sk-muted-foreground, #6b7280); }
.profile-menu-icon.is-info    { background: color-mix(in oklab, var(--sk-info, #0ea5e9) 14%, transparent); color: var(--sk-info, #0ea5e9); }
.profile-menu-icon.is-danger  { background: color-mix(in oklab, var(--sk-danger, #dc2626) 12%, transparent); color: var(--sk-danger, #dc2626); }
.profile-menu-divider { height: 1px; margin: 0 12px; background: var(--sk-border); }
.profile-menu-icon.is-success { background: color-mix(in oklab, var(--sk-success, #22c55e) 14%, transparent); color: var(--sk-success, #22c55e); }
.profile-menu-stats { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.profile-menu-stat { padding: 6px 0; border-radius: 8px; text-align: center; background: rgb(255 255 255 / 0.08); }
.profile-menu-stat-value { margin: 0; font-size: 13px; font-weight: 700; line-height: 1; color: #fff; }
.profile-menu-stat-label { margin: 4px 0 0; font-size: 9.5px; color: rgb(255 255 255 / 0.65); }

/* Typography (matches the Paces admin template): Nunito for body text, Google Sans for headings, titles and navigation.
   html:root outranks the :root / [data-bs-theme] blocks in light.css and dark.css, so both modes pick it up.
   The fonts themselves are linked in each page's <head>. */
html:root {
	--bs-font-sans-serif: "Nunito", "Helvetica Neue", Arial, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
	--theme-font-heading: "Google Sans", "Nunito", "Helvetica Neue", Arial, sans-serif;
}
body { font-family: var(--bs-font-sans-serif); }
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.page-title, .card-title, .modal-title, .offcanvas-title,
.sidebar-link, .sidebar-label, .sidebar-header,
.ticket-kpi-value, .staff-card-name, .staff-card-stat-value {
	font-family: var(--theme-font-heading);
}


/* Header "Explore" mega menu, the header's single quick-navigation panel: a centred panel under the header
   with a title row, three link columns and a footer. Opened by Bootstrap's dropdown with
   data-bs-display="static", so Popper never positions it and the fixed/centred rules below apply. */
.mega-toggle {
	display: inline-flex; align-items: center; gap: .375rem; height: 36px; padding: 0 .75rem;
	border: 1px solid var(--sk-border, var(--bs-border-color)); border-radius: 50rem;
	background: var(--sk-surface-muted, var(--bs-tertiary-bg)); color: var(--sk-foreground);
	font-family: var(--theme-font-heading, inherit); font-size: .8125rem; font-weight: 600;
	transition: background-color .15s, border-color .15s;
}
.mega-toggle:hover, .mega-toggle[aria-expanded="true"] { border-color: var(--sk-primary); background: var(--sk-surface, #fff); }
.mega-toggle svg { width: 14px; height: 14px; }
.mega-toggle .mega-toggle-caret { width: 12px; height: 12px; opacity: .7; transition: transform .2s; }
.mega-toggle[aria-expanded="true"] .mega-toggle-caret { transform: rotate(180deg); }
.mega-toggle::after { display: none; }

.dropdown-menu.mega-menu {
	/* Centred with left/right 0 + auto margins rather than translateX: the theme's dropdown styles reset transform. */
	position: fixed !important; top: 64px !important; left: 0 !important; right: 0 !important;
	margin: 0 auto !important; width: min(94vw, 720px); max-height: calc(100vh - 80px); overflow-y: auto;
	border: 1px solid var(--sk-border, var(--bs-border-color)) !important; border-radius: 14px;
	box-shadow: 0 24px 48px -12px rgba(30, 33, 31, .18); z-index: 1060;
}
.mega-menu.show { animation: mega-in .18s cubic-bezier(.4, 0, .2, 1); }
@keyframes mega-in { from { opacity: 0; translate: 0 -6px; } to { opacity: 1; translate: 0 0; } }

.mega-head { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--sk-border, var(--bs-border-color)); background: linear-gradient(180deg, var(--sk-surface-muted, var(--bs-tertiary-bg)), transparent); }
.mega-head-icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 12px; background: var(--sk-primary); color: #fff; box-shadow: 0 6px 16px -4px rgba(var(--sk-primary-rgb, 8, 129, 120), .55); }
.mega-head-icon svg { width: 16px; height: 16px; }
.mega-head-title { margin: 0; font-family: var(--theme-font-heading, inherit); font-size: .9375rem; font-weight: 700; line-height: 1.25; color: var(--sk-foreground); }
.mega-head-sub { margin: 0; font-size: .71875rem; color: var(--bs-secondary-color); }



.mega-body { display: grid; grid-template-columns: repeat(3, 1fr); }
.mega-col { padding: 1.25rem; border-inline-end: 1px solid var(--sk-border, var(--bs-border-color)); }
.mega-col:last-child { border-inline-end: 0; }
.mega-col-title { display: flex; align-items: center; gap: .375rem; margin: 0 0 .75rem; font-size: .65625rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--bs-secondary-color); }
.mega-col-title svg { width: 11px; height: 11px; }
.mega-link { display: flex; align-items: center; gap: .625rem; margin: 0 -.5rem; padding: .4375rem .5rem; border-radius: 8px; font-size: .8125rem; font-weight: 500; color: var(--sk-foreground); text-decoration: none; transition: background-color .15s, color .15s; }
.mega-link:hover { background: var(--sk-surface-muted, var(--bs-tertiary-bg)); color: var(--sk-primary); text-decoration: none; }
.mega-chip { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 8px; }
.mega-chip svg { width: 14px; height: 14px; }
.mega-link-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* The arrow slides in on hover, as on Dreams Core. */
.mega-link-arrow { width: 12px; height: 12px; opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s; color: var(--bs-secondary-color); }
.mega-link:hover .mega-link-arrow { opacity: .7; transform: none; }


.mega-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .75rem 1.25rem; border-top: 1px solid var(--sk-border, var(--bs-border-color)); background: var(--sk-surface-muted, var(--bs-tertiary-bg)); font-size: .6875rem; color: var(--bs-secondary-color); }
.mega-foot strong { color: var(--sk-foreground); }
.mega-foot a { display: inline-flex; align-items: center; gap: .25rem; font-size: .71875rem; font-weight: 600; color: var(--sk-primary); text-decoration: none; }
.mega-foot a:hover { text-decoration: underline; }
.mega-foot svg { width: 11px; height: 11px; }

@media (prefers-reduced-motion: reduce) {
	.mega-menu.show { animation: none; }
	.mega-link-arrow, .mega-toggle .mega-toggle-caret { transition: none; }
}

/* Collapsed-sidebar flyout (built by js/admin.js as #sidebarFlyout). admin.css loads after this file,
   so every rule is prefixed with `body` to win on specificity without !important.
   - Menus with nested groups (Auth: Basic / Card / Split / Error pages) lay out one group per column,
     so they fit on screen instead of scrolling a 1,300px list.
   - Anything still taller than the window scrolls with a thin scrollbar in the sidebar's colours. */
body .sidebar-flyout-panel {
	min-width: 220px;
	padding: 6px;
	border-color: rgb(255 255 255 / .08);
	border-radius: 12px;
	box-shadow: 0 18px 40px -8px rgb(0 0 0 / .4), 0 2px 6px rgb(0 0 0 / .2);
}
body .sidebar-flyout-panel.show {
	max-height: calc(100vh - 16px);
	overflow-y: auto;
	overscroll-behavior: contain; /* wheel scrolling stops at the panel's ends instead of moving the page */
}
/* Chrome/Edge/Safari: a slim rounded thumb with no arrow buttons. (Setting scrollbar-width there would
   switch Chrome to its native thin bar, arrows included, so the standard properties are Firefox-only.) */
body .sidebar-flyout-panel::-webkit-scrollbar { width: 10px; }
body .sidebar-flyout-panel::-webkit-scrollbar-track { margin: 8px 0; background: transparent; }
body .sidebar-flyout-panel::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 10px; background: rgb(255 255 255 / .2) padding-box; }
body .sidebar-flyout-panel::-webkit-scrollbar-thumb:hover { background-color: rgb(255 255 255 / .35); }
body .sidebar-flyout-panel::-webkit-scrollbar-button { display: none; height: 0; }
@supports not selector(::-webkit-scrollbar) {
	body .sidebar-flyout-panel.show { scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / .22) transparent; }
}

/* The title stays pinned while a long list scrolls under it (opaque, so links don't show through). */
body .sidebar-flyout-panel .flyout-header {
	position: sticky;
	top: -6px;
	z-index: 1;
	margin: -6px -6px 6px;
	padding: .75rem 1rem;
	border-bottom: 1px solid rgb(255 255 255 / .08);
	background: linear-gradient(rgb(255 255 255 / .04), rgb(255 255 255 / .04)), var(--sk-sidebar);
	font-family: var(--theme-font-heading, inherit);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
}
body .sidebar-flyout-panel .flyout-subheader {
	padding: .625rem .75rem .375rem;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	opacity: .85;
	break-after: avoid;
}
body .sidebar-flyout-panel a.flyout-link {
	position: relative;
	gap: .625rem;
	margin: 1px 0;
	padding: .5rem .75rem .5rem 1.625rem;
	border-radius: 8px;
	font-size: 13px;
	break-inside: avoid;
	transition: background-color .15s, color .15s, padding-left .15s;
}
/* A dot marks each link and lights up on hover / for the current page, like the expanded sidebar's submenu dots. */
body .sidebar-flyout-panel a.flyout-link::before {
	content: "";
	position: absolute;
	top: 50%;
	left: .75rem;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: currentColor;
	opacity: .35;
	transform: translateY(-50%);
	transition: opacity .15s, transform .15s;
}
body .sidebar-flyout-panel a.flyout-link:hover { padding-left: 1.875rem; background: rgb(255 255 255 / .08); }
body .sidebar-flyout-panel a.flyout-link:hover::before,
body .sidebar-flyout-panel a.flyout-link.active::before { opacity: 1; transform: translateY(-50%) scale(1.2); }
body .sidebar-flyout-panel a.flyout-link.active { background: rgb(255 255 255 / .12); }

/* Grouped menus: one column per group (the header spans the full width). */
body .sidebar-flyout-panel:has(.flyout-subheader) {
	width: min(760px, calc(100vw - 96px));
	column-count: 4;
	column-gap: 4px;
	column-rule: 1px solid rgb(255 255 255 / .06);
}
body .sidebar-flyout-panel:has(.flyout-subheader) .flyout-header { column-span: all; }
/* Start every group (from the second on) at the top of a new column. */
body .sidebar-flyout-panel .flyout-link + .flyout-subheader { break-before: column; }
@media (max-width: 991.98px) {
	body .sidebar-flyout-panel:has(.flyout-subheader) { column-count: 2; }
	body .sidebar-flyout-panel .flyout-link + .flyout-subheader { break-before: auto; }
}
@media (prefers-reduced-motion: reduce) {
	body .sidebar-flyout-panel a.flyout-link, body .sidebar-flyout-panel a.flyout-link::before { transition: none; }
	body .sidebar-flyout-panel a.flyout-link:hover { padding-left: 1.625rem; }
}
