/* =====================================================================
   Chance2Win — New Charity Dashboard Shell
   Fixed navy admin chrome (sidebar + topbar) + core components.
   Scoped to dashboard pages (body.c2w-dashboard-page). Reuses page-layouts.css
   for the inner form/content components.
   ===================================================================== */

.c2w-app-layout {
	/* Fixed admin palette — intentionally independent of the public skin. */
	--d-navy:        #1a237e;
	--d-navy-light:  #3949ab;
	--d-accent:      #e53935;
	--d-bg:          #f4f6fb;
	--d-card:        #ffffff;
	--d-text:        #1a1a2e;
	--d-muted:       #6b7a99;
	--d-border:      #e0e4ef;
	--d-success:     #2e7d32;
	--d-warning:     #f57f17;
	--d-radius:      10px;
	--d-shadow:      0 2px 12px rgba(26, 35, 126, .08);
	--d-sidebar-w:   260px;
}

/* #152 — SYSTEMIC: admin dashboard buttons follow the fixed navy chrome, NOT the
   customer event palette. The global rule in style.css
   `button,input[type=button],input[type=submit],.btn,.save-order,…{ background:var(--c2w-button-bg)!important }`
   (and any var(--c2w-button-bg) usage) would otherwise paint every un-overridden admin
   button the charity's PUBLIC palette (e.g. orange). Palette vars are set on :root by
   inc/color-palettes.php; redefining them on the dashboard <body> re-points them to navy
   for the whole admin subtree — so those buttons resolve to navy automatically, with NO
   per-button !important chasing. Buttons that set an EXPLICIT colour (red delete, white
   ghost) don't read the var, so they're untouched. Customer-facing pages never carry
   .c2w-dashboard-page, so they keep the real palette. */
body.c2w-dashboard-page {
	--c2w-button-bg: #1a237e;
	--c2w-button-hover-bg: #3949ab;
	--c2w-button-text: #ffffff;
}

/* Dashboard pages: drop the public theme chrome, full-bleed app. */
body.c2w-dashboard-page {
	margin: 0;
	background: var(--d-bg, #f4f6fb);
}
/* Suppress the public skin header/footer so the admin shell is full-screen.
   Every skin's header is #masthead and footer is #colophon (classes vary). */
body.c2w-dashboard-page #masthead,
body.c2w-dashboard-page #colophon { display: none !important; }
body.c2w-dashboard-page #page,
body.c2w-dashboard-page .site { max-width: none !important; margin: 0 !important; padding: 0 !important; }
/* Account dashboard: strip WooCommerce/theme content wrappers so the shell fills the screen */
body.c2w-dashboard-page.woocommerce-account .woocommerce,
body.c2w-dashboard-page.woocommerce-account .woocommerce-account,
body.c2w-dashboard-page.woocommerce-account .content-area,
body.c2w-dashboard-page.woocommerce-account #primary,
body.c2w-dashboard-page.woocommerce-account #content,
body.c2w-dashboard-page.woocommerce-account .entry-content,
body.c2w-dashboard-page.woocommerce-account main,
body.c2w-dashboard-page.woocommerce-account .site-main {
	max-width: none !important; width: 100% !important; margin: 0 !important; padding: 0 !important; float: none !important;
}
body.c2w-dashboard-page .c2w-app-layout {
	display: flex;
	min-height: 100vh;
	font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
	color: var(--d-text);
}
/* Keep the fixed sidebar/topbar below the WP admin bar when it's present. */
body.admin-bar.c2w-dashboard-page .c2w-sidebar,
body.admin-bar.c2w-dashboard-page .c2w-top-bar { top: 32px; }
@media (max-width: 782px) {
	body.admin-bar.c2w-dashboard-page .c2w-sidebar,
	body.admin-bar.c2w-dashboard-page .c2w-top-bar { top: 46px; }
}

/* ── Sidebar ────────────────────────────────────────────────────────── */
.c2w-sidebar {
	width: var(--d-sidebar-w);
	background: var(--d-navy);
	color: #e8eaf6;
	display: flex;
	flex-direction: column;
	position: fixed;
	left: 0; top: 0; bottom: 0;
	z-index: 100;
}
.c2w-sidebar-head {
	padding: 22px 22px 18px;
	border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.c2w-sidebar-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.c2w-sidebar-logo__mark {
	flex: 0 0 auto; width: 40px; height: 40px; border-radius: 9px;
	background: #fff; overflow: hidden;
	display: flex; align-items: center; justify-content: center;
}
.c2w-sidebar-logo__mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.c2w-sidebar-logo__text { color: #fff; font-weight: 700; font-size: 15px; line-height: 1.15; display: flex; flex-direction: column; }
.c2w-sidebar-logo__text small { font-size: 11px; font-weight: 600; color: #9fa8da; text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }

.c2w-sidebar-scroll { flex: 1; overflow-y: auto; padding-bottom: 12px; }
.c2w-sidebar-group { padding-top: 8px; }
.c2w-sidebar-group-title {
	font-size: 11px; text-transform: uppercase; letter-spacing: 1.4px;
	color: #9fa8da; padding: 16px 22px 6px;
}
.c2w-sidebar-nav { display: flex; flex-direction: column; }
.c2w-nav-item {
	display: flex; align-items: center; gap: 12px;
	padding: 10px 22px; color: #e8eaf6; text-decoration: none;
	font-size: 13.5px; font-weight: 500;
	border-left: 3px solid transparent;
	transition: background .15s, border-color .15s, color .15s;
}
.c2w-nav-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.c2w-nav-item.is-active { background: var(--d-navy-light); border-left-color: #e8eaf6; color: #fff; }
.c2w-nav-icon { flex: 0 0 auto; opacity: .95; font-size: 16px; line-height: 1; width: 22px; text-align: center; }
.c2w-nav-label { line-height: 1.2; }

/* ── Basket theme hardening: global theme CSS is aggressive on links/images,
   so force the shell's sidebar colours + logo alignment. ── */
body.c2w-dashboard-page .c2w-sidebar-nav .c2w-nav-item,
body.c2w-dashboard-page .c2w-sidebar-nav .c2w-nav-item:link,
body.c2w-dashboard-page .c2w-sidebar-nav .c2w-nav-item:visited,
body.c2w-dashboard-page .c2w-sidebar-nav .c2w-nav-item .c2w-nav-label { color: #e8eaf6 !important; }
body.c2w-dashboard-page .c2w-sidebar-nav .c2w-nav-item:hover,
body.c2w-dashboard-page .c2w-sidebar-nav .c2w-nav-item.is-active,
body.c2w-dashboard-page .c2w-sidebar-nav .c2w-nav-item:hover .c2w-nav-label,
body.c2w-dashboard-page .c2w-sidebar-nav .c2w-nav-item.is-active .c2w-nav-label { color: #fff !important; }
/* Lock nav-item layout so WooCommerce/account CSS can't compress it on the
   My Account dashboard (keeps it identical to the settings pages). */
body.c2w-dashboard-page .c2w-sidebar-nav .c2w-nav-item {
	display: flex !important; align-items: center !important; gap: 12px !important;
	padding: 10px 22px !important; margin: 0 !important; line-height: 1.3 !important;
	text-decoration: none !important; border-left: 3px solid transparent;
}
body.c2w-dashboard-page .c2w-sidebar-nav .c2w-nav-item.is-active { border-left-color: #e8eaf6; }
body.c2w-dashboard-page .c2w-sidebar-nav .c2w-nav-icon {
	flex: 0 0 auto !important; width: 22px !important; text-align: center !important;
	font-size: 16px !important; line-height: 1 !important; margin: 0 !important; padding: 0 !important;
}
body.c2w-dashboard-page .c2w-sidebar-nav .c2w-nav-label { margin: 0 !important; padding: 0 !important; font-size: 13.5px !important; font-weight: 500 !important; }
body.c2w-dashboard-page .c2w-sidebar-logo {
	display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important;
	align-items: center !important; gap: 11px !important; width: auto !important; max-width: none !important;
}
body.c2w-dashboard-page .c2w-sidebar-logo__text,
body.c2w-dashboard-page .c2w-sidebar-logo__text:hover { color: #fff !important; }
body.c2w-dashboard-page .c2w-sidebar-logo__text {
	display: flex !important; flex-direction: column !important; white-space: nowrap !important;
	width: auto !important; float: none !important; text-align: left !important;
}
body.c2w-dashboard-page .c2w-sidebar-logo__text small { color: #9fa8da !important; }
body.c2w-dashboard-page .c2w-sidebar-logo__mark {
	flex: 0 0 44px !important;
	width: 44px !important; height: 44px !important; padding: 4px !important; box-sizing: border-box !important;
	display: flex !important; align-items: center !important; justify-content: center !important;
	background: #fff !important; border-radius: 11px !important; overflow: hidden !important;
}
body.c2w-dashboard-page .c2w-sidebar-logo__mark img {
	width: 100% !important; height: 100% !important; max-width: 100% !important; max-height: 100% !important;
	object-fit: contain !important; margin: 0 !important; padding: 0 !important;
	display: block !important; vertical-align: middle !important;
}

/* Basket chrome: hide the public top bar + page hero on dashboard pages
   (the logged-out login page is NOT a dashboard page, so it keeps them). */
body.c2w-dashboard-page .c2w-header-bar,
body.c2w-dashboard-page .innerheader,
body.c2w-dashboard-page .commonheader,
body.c2w-dashboard-page .logrightsection { display: none !important; }

/* Basket page.php wrappers constrain width (section980, container, left-section).
   Full-bleed them so the shell fills the screen. */
body.c2w-dashboard-page #primary,
body.c2w-dashboard-page .site-main,
body.c2w-dashboard-page .section,
body.c2w-dashboard-page .section-2,
body.c2w-dashboard-page .section980,
body.c2w-dashboard-page .section-normal,
body.c2w-dashboard-page .section-top-less-space,
body.c2w-dashboard-page .left-section,
body.c2w-dashboard-page .container {
	max-width: none !important; width: 100% !important; margin: 0 !important; padding: 0 !important; float: none !important;
}

/* Hard-contain the shell so wide content never spills past the viewport.
   The fixed 260px sidebar is out of flow, so the main area must be capped at
   (viewport − sidebar); otherwise its 260px left margin pushes it off-screen. */
body.c2w-dashboard-page { overflow-x: hidden !important; }
body.c2w-dashboard-page .c2w-app-layout { width: 100% !important; max-width: 100vw !important; overflow-x: hidden !important; }
body.c2w-dashboard-page .c2w-main-area {
	max-width: calc(100vw - var(--d-sidebar-w)) !important;
	box-sizing: border-box !important; min-width: 0 !important;
}
body.c2w-dashboard-page .c2w-page-content,
body.c2w-dashboard-page .c2w-page-shell {
	max-width: 100% !important; min-width: 0 !important; box-sizing: border-box !important; overflow-x: hidden;
}
/* Design-system font for every form control inside the dashboard content
   (some basket/global styles otherwise render inputs in a serif fallback). */
body.c2w-dashboard-page .c2w-page-content input,
body.c2w-dashboard-page .c2w-page-content textarea,
body.c2w-dashboard-page .c2w-page-content select,
body.c2w-dashboard-page .c2w-page-content button {
	font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif !important;
}
@media (max-width: 1024px) {
	body.c2w-dashboard-page .c2w-main-area { max-width: 100vw !important; }
}

/* =====================================================================
   chance2win-theme STYLE BRIDGE
   Re-skins the basket tool pages (reporting / manual-order / team /
   settings) to chance2win's clean navy card look WITHOUT touching their
   markup or functionality. Scoped to dashboard pages only.
   ===================================================================== */
body.c2w-dashboard-page .c2w-page-shell {
	--d-navy: #1a237e; --d-navy-light: #3949ab; --d-card: #fff;
	--d-bg: #f4f6fb; --d-text: #1a1a2e; --d-muted: #6b7a99; --d-border: #e0e4ef;
	--d-radius: 10px; --d-shadow: 0 2px 12px rgba(26,35,126,.08);
}

/* Drop the redundant in-page heros / back-links — the shell topbar is the
   single page header (matches chance2win). */
body.c2w-dashboard-page .tpl-reporting .hero,
body.c2w-dashboard-page .amo-hero,
body.c2w-dashboard-page .amo-back-btn,
body.c2w-dashboard-page .c2w-at-back,
body.c2w-dashboard-page .c2w-ss-topbar,
body.c2w-dashboard-page .pw-topbar,
body.c2w-dashboard-page .back-arrow-img { display: none !important; }

/* Cards everywhere → chance2win token card (white, soft navy shadow, 10px). */
body.c2w-dashboard-page .tpl-reporting .card,
body.c2w-dashboard-page .tpl-reporting .chartcard,
body.c2w-dashboard-page .tpl-reporting .orders-card,
body.c2w-dashboard-page .tpl-reporting .kpi,
body.c2w-dashboard-page .amo-card,
body.c2w-dashboard-page .c2w-at-card,
body.c2w-dashboard-page .c2w-settings-panel .rtg-container,
body.c2w-dashboard-page .c2w-ss-panel {
	background: #fff !important;
	border: 1px solid #e0e4ef !important;
	border-radius: 10px !important;
	box-shadow: 0 2px 12px rgba(26,35,126,.08) !important;
}

/* KPI tiles → chance2win look (navy value, muted uppercase label). */
body.c2w-dashboard-page .tpl-reporting .kpi-val { color: #1a237e !important; }
body.c2w-dashboard-page .tpl-reporting .kpi-label,
body.c2w-dashboard-page .c2w-at-stat span { color: #6b7a99 !important; }
body.c2w-dashboard-page .tpl-reporting .kpi-ic svg { stroke: #1a237e !important; }

/* Recolour the basket's red brand accent to chance2win navy. */
body.c2w-dashboard-page .filt-btn,
body.c2w-dashboard-page .amo-btn-primary,
body.c2w-dashboard-page .amo-place-order,
body.c2w-dashboard-page .c2w-at-btn--primary,
body.c2w-dashboard-page .c2w-ss-save-btn,
body.c2w-dashboard-page .pw-pick-btn,
body.c2w-dashboard-page .pw-action-btn {
	background: #1a237e !important; border-color: #1a237e !important; color: #fff !important;
}
body.c2w-dashboard-page .filt-btn--ghost,
body.c2w-dashboard-page .pw-action-btn--outline {
	background: #fff !important; color: #1a237e !important; border: 1.5px solid #1a237e !important;
}

/* Card headers/titles → navy, consistent weight. */
body.c2w-dashboard-page .tpl-reporting .card-head h3,
body.c2w-dashboard-page .amo-card-head h3,
body.c2w-dashboard-page .c2w-at-card-head h3 { color: #1a1a2e !important; }

/* The big page hero on the team page → light card instead of dark gradient. */
body.c2w-dashboard-page .c2w-at-hero {
	background: #fff !important; color: #1a1a2e !important;
	border: 1px solid #e0e4ef !important; border-radius: 10px !important;
	box-shadow: 0 2px 12px rgba(26,35,126,.08) !important;
}
body.c2w-dashboard-page .c2w-at-hero h1,
body.c2w-dashboard-page .c2w-at-hero h1 em,
body.c2w-dashboard-page .c2w-at-stat b { color: #1a237e !important; }
body.c2w-dashboard-page .c2w-at-hero p { color: #6b7a99 !important; }

/* ── Settings wizard: legacy basket fieldsets → chance2win form-cards ──
   High specificity (includes #test_form) to beat tpl-site-settings.css which
   forces fieldsets transparent via `.tpl-site-settings ... #test_form fieldset`. */
body.c2w-dashboard-page .tpl-site-settings #test_form fieldset.allfieldsets {
	background: #fff !important; border: 1px solid #e0e4ef !important; border-radius: 10px !important;
	box-shadow: 0 2px 12px rgba(26,35,126,.08) !important; padding: 26px 28px !important; margin: 0 0 22px !important;
	float: none !important; width: 100% !important; max-width: 100% !important;
	position: static !important; transform: none !important; left: auto !important; top: auto !important; opacity: 1 !important;
}
body.c2w-dashboard-page .tpl-site-settings #test_form fieldset.allfieldsets .fs-title,
body.c2w-dashboard-page .tpl-site-settings #test_form fieldset.allfieldsets .adim-title {
	font-size: 16px !important; font-weight: 600 !important; color: #1a1a2e !important; text-align: left !important;
	border-bottom: 1px solid #e0e4ef !important; padding-bottom: 12px !important; margin: 0 0 16px !important;
}
body.c2w-dashboard-page .tpl-site-settings #test_form fieldset.allfieldsets > p { color: #6b7a99 !important; font-size: 13px !important; }
body.c2w-dashboard-page .tpl-site-settings #test_form fieldset.allfieldsets label {
	font-size: 12px !important; font-weight: 600 !important; color: #1a1a2e !important; text-transform: uppercase !important; letter-spacing: .5px !important; display: inline-block !important; margin: 10px 0 5px !important;
}
body.c2w-dashboard-page .tpl-site-settings #test_form fieldset.allfieldsets input[type=text],
body.c2w-dashboard-page .tpl-site-settings #test_form fieldset.allfieldsets input[type=url],
body.c2w-dashboard-page .tpl-site-settings #test_form fieldset.allfieldsets input[type=email],
body.c2w-dashboard-page .tpl-site-settings #test_form fieldset.allfieldsets input[type=number],
body.c2w-dashboard-page .tpl-site-settings #test_form fieldset.allfieldsets input.datetimepicker,
body.c2w-dashboard-page .tpl-site-settings #test_form fieldset.allfieldsets input.main-title,
body.c2w-dashboard-page .tpl-site-settings #test_form fieldset.allfieldsets select,
body.c2w-dashboard-page .tpl-site-settings #test_form fieldset.allfieldsets textarea {
	padding: 10px 12px !important; border: 1.5px solid #e0e4ef !important; border-radius: 6px !important;
	font-size: 14px !important; width: 100% !important; max-width: 100% !important; background: #fff !important; color: #1a1a2e !important;
	font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif !important;
}
/* Hide the legacy per-fieldset Next/Previous buttons — the topbar "Save Settings" saves everything. */
body.c2w-dashboard-page .tpl-site-settings #test_form .action-button { display: none !important; }
/* Toggle switch labels must not inherit the uppercase/margin field-label styling. */
body.c2w-dashboard-page .tpl-site-settings #test_form fieldset.allfieldsets label.c2w-switch {
	margin: 0 !important; padding: 0 !important; text-transform: none !important; letter-spacing: 0 !important; display: inline-block !important;
}
body.c2w-dashboard-page .tpl-site-settings #test_form fieldset.allfieldsets .c2w-toggle-label { text-transform: none !important; letter-spacing: 0 !important; }
/* Strip the form's own card wrapper so the fieldset cards sit at full width,
   aligned with the step-header / step-nav above them (no card-in-card, no inset). */
body.c2w-dashboard-page .tpl-site-settings .c2w-ss-panels #test_form,
body.c2w-dashboard-page .tpl-site-settings #test_form {
	background: transparent !important; border: 0 !important; border-radius: 0 !important;
	box-shadow: none !important; padding: 0 !important; margin: 0 !important; width: 100% !important; max-width: 100% !important;
}
body.c2w-dashboard-page .tpl-site-settings .c2w-settings-panel,
body.c2w-dashboard-page .tpl-site-settings .field-data,
body.c2w-dashboard-page .tpl-site-settings .site-settings-sec {
	background: transparent !important; border: 0 !important; box-shadow: none !important;
	padding: 0 !important; margin: 0 !important; width: 100% !important; max-width: 100% !important;
}
/* Flex column so per-fieldset `order` works (e.g. Media step shows Images→Logos→Text). */
body.c2w-dashboard-page .tpl-site-settings .field-data { display: flex !important; flex-direction: column !important; }
/* Branding (step 7): show the colour panel above the Social card. */
body.c2w-dashboard-page .tpl-site-settings #test_form { display: flex !important; flex-direction: column !important; }
body.c2w-dashboard-page .tpl-site-settings #c2w-palette-panel { order: 1; }
body.c2w-dashboard-page .tpl-site-settings #c2w-event-panel { order: 2; }
/* The colour palette panel renders as its own chance2win card. */
body.c2w-dashboard-page .tpl-site-settings #c2w-palette-panel .c2w-palette-section {
	background: #fff !important; border: 1px solid #e0e4ef !important; border-radius: 10px !important;
	box-shadow: 0 2px 12px rgba(26,35,126,.08) !important; padding: 26px 28px !important; margin: 0 0 22px !important;
}
body.c2w-dashboard-page .tpl-site-settings #c2w-palette-panel .c2w-palette-section > h2 {
	font-size: 16px !important; font-weight: 600 !important; color: #1a1a2e !important;
	border-bottom: 1px solid #e0e4ef !important; padding-bottom: 12px !important; margin: 0 0 8px !important;
}
/* Panel topbar (breadcrumb + Save) → chance2win step-nav card */
body.c2w-dashboard-page .c2w-ss-panel-topbar {
	background: #fff !important; border: 1px solid #e0e4ef !important; border-radius: 10px !important;
	box-shadow: 0 2px 12px rgba(26,35,126,.08) !important; padding: 16px 24px !important; margin-bottom: 22px !important;
	display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 12px;
}
body.c2w-dashboard-page .c2w-ss-save-btn {
	background: #1a237e !important; color: #fff !important; border: none !important;
	padding: 9px 18px !important; border-radius: 6px !important; font-weight: 600 !important; cursor: pointer;
}

.c2w-sidebar-foot {
	padding: 14px 22px; border-top: 1px solid rgba(255, 255, 255, .1);
	font-size: 11px; color: #9fa8da;
}

/* ── Main area ──────────────────────────────────────────────────────── */
.c2w-main-area {
	margin-left: var(--d-sidebar-w);
	flex: 1; min-width: 0;
	display: flex; flex-direction: column; min-height: 100vh;
}

/* Topbar */
.c2w-top-bar {
	position: sticky; top: 0; z-index: 50;
	background: #fff; border-bottom: 1px solid var(--d-border);
	height: 60px; padding: 0 26px;
	display: flex; align-items: center; gap: 14px;
}
.c2w-sidebar-toggle {
	display: none; border: none; background: transparent; cursor: pointer;
	color: var(--d-text); padding: 6px; border-radius: 8px;
}
.c2w-sidebar-toggle:hover { background: #f1f3f9; }
.c2w-top-title { font-size: 16px; font-weight: 700; color: var(--d-text); }
.c2w-top-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.c2w-top-event { background: var(--d-bg); border: 1px solid var(--d-border); border-radius: 6px; padding: 5px 12px; font-size: 13px; color: var(--d-muted); white-space: nowrap; }
.c2w-top-event strong { color: var(--d-text); }
@media (max-width: 720px) { .c2w-top-event { display: none; } }
.c2w-top-btn {
	display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 8px;
	font-size: 13px; font-weight: 600; text-decoration: none; transition: background .15s, color .15s;
}
.c2w-top-btn--ghost { background: #f1f3f9; color: var(--d-navy); }
.c2w-top-btn--ghost:hover { background: #e6e9f4; }
.c2w-top-btn--primary { background: var(--d-navy); color: #fff; }
.c2w-top-btn--primary:hover { background: var(--d-navy-light); }
.c2w-user-avatar {
	width: 36px; height: 36px; border-radius: 50%;
	background: var(--d-navy); color: #fff;
	display: flex; align-items: center; justify-content: center;
	font-size: 12px; font-weight: 700;
}

/* Logged-in user in the top bar: initials circle + the user's name (name hides on phones). */
.c2w-user-chip {
	display: flex; align-items: center; gap: 10px;
	padding: 4px 14px 4px 4px;
	border: 1px solid var(--d-border); border-radius: 999px;
	background: #fff;
}
.c2w-user-chip .c2w-user-avatar { flex: 0 0 36px; }
.c2w-user-name {
	max-width: 180px;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
	font-size: 13px; font-weight: 600; color: var(--d-text);
}
@media (max-width: 782px) {
	.c2w-user-chip { padding: 0; border: 0; background: transparent; }
	.c2w-user-name { display: none; }
}

/* Page content */
.c2w-page-content { flex: 1; padding: 32px; max-width: none; width: 100%; }
/* body-scoped: the theme style.css uses .c2w-page-header for the big gradient banner on public
   pages, which wrapped the dashboard page description in an empty blue box. */
body.c2w-dashboard-page .c2w-page-header { margin-bottom: 18px; padding: 0; background: none; border-radius: 0; box-shadow: none; text-align: left; color: inherit; }
.c2w-page-sub { font-size: 14px; color: var(--d-muted); margin: 0; }
.c2w-page-shell { }

/* ── Core components (namespaced c2w-pm-*) ──────────────────────────── */
.c2w-pm-card {
	background: var(--d-card); border: 1px solid var(--d-border); border-radius: var(--d-radius);
	box-shadow: var(--d-shadow); padding: 22px; margin-bottom: 20px;
}
.c2w-pm-card-title {
	font-size: 15px; font-weight: 700; color: var(--d-text);
	margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--d-border);
	display: flex; align-items: center; gap: 9px;
}

.c2w-pm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.c2w-pm-stat { background: var(--d-card); border: 1px solid var(--d-border); border-radius: var(--d-radius); box-shadow: var(--d-shadow); padding: 18px; }
.c2w-pm-stat-label { font-size: 12px; color: var(--d-muted); font-weight: 600; }
.c2w-pm-stat-value { font-size: 26px; font-weight: 800; color: var(--d-text); margin-top: 6px; letter-spacing: -.02em; }
.c2w-pm-stat-delta { font-size: 12px; font-weight: 700; margin-top: 4px; }
.c2w-pm-stat-delta.up { color: var(--d-success); }
.c2w-pm-stat-delta.down { color: var(--d-accent); }

.c2w-pm-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 10px 20px; border-radius: 8px; border: none; cursor: pointer;
	font-size: 14px; font-weight: 700; font-family: inherit; text-decoration: none;
	transition: background .15s, opacity .15s, transform .1s;
}
.c2w-pm-btn--primary { background: var(--d-navy); color: #fff; }
.c2w-pm-btn--primary:hover { background: var(--d-navy-light); }
.c2w-pm-btn--accent { background: var(--d-accent); color: #fff; }
.c2w-pm-btn--accent:hover { opacity: .9; }
.c2w-pm-btn--outline { background: #fff; color: var(--d-navy); border: 1px solid var(--d-border); }
.c2w-pm-btn--outline:hover { background: #f1f3f9; }

.c2w-pm-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.c2w-pm-table th { text-align: left; color: var(--d-muted); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; padding: 10px 12px; border-bottom: 1px solid var(--d-border); }
.c2w-pm-table td { padding: 12px; border-bottom: 1px solid #eef1f7; color: var(--d-text); }
.c2w-pm-table tr:last-child td { border-bottom: none; }
.c2w-pm-badge { display: inline-block; padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.c2w-pm-badge--ok { background: #e6f4ea; color: var(--d-success); }
.c2w-pm-badge--pending { background: #fff3e0; color: var(--d-warning); }

.c2w-pm-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 820px) { .c2w-pm-grid2 { grid-template-columns: 1fr; } }

.c2w-pm-section-title { font-size: 16px; font-weight: 800; color: var(--d-text); margin: 4px 0 14px; display: flex; align-items: center; gap: 10px; }
.c2w-pm-section-title .muted { font-size: 13px; font-weight: 600; color: var(--d-muted); }

/* Setup progress tracker (dashboard home) */
.c2w-pm-progress-bar { height: 8px; background: #e8ebf4; border-radius: 999px; overflow: hidden; margin-bottom: 18px; }
.c2w-pm-progress-fill { height: 100%; background: linear-gradient(90deg, var(--d-navy), var(--d-navy-light)); border-radius: 999px; transition: width .3s ease; }
.c2w-pm-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.c2w-pm-step {
	display: flex; gap: 12px; padding: 14px; border-radius: var(--d-radius);
	border: 1px solid var(--d-border); background: #fff; text-decoration: none; color: inherit;
	transition: border-color .15s, box-shadow .15s, transform .1s;
}
.c2w-pm-step:hover { border-color: var(--d-navy-light); box-shadow: var(--d-shadow); transform: translateY(-1px); }
.c2w-pm-step.is-active { border-color: var(--d-navy); background: #eef1fb; }
.c2w-pm-step-num {
	flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-size: 12px; font-weight: 800; background: #e8ebf4; color: var(--d-muted);
}
.c2w-pm-step.is-done .c2w-pm-step-num { background: #e6f4ea; color: var(--d-success); }
.c2w-pm-step.is-active .c2w-pm-step-num { background: var(--d-navy); color: #fff; }
.c2w-pm-step-body { min-width: 0; }
.c2w-pm-step-name { font-size: 13px; font-weight: 700; color: var(--d-text); }
.c2w-pm-step-desc { font-size: 11.5px; color: var(--d-muted); margin-top: 2px; line-height: 1.35; }
.c2w-pm-step-tag { display: inline-block; margin-top: 6px; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; }
.c2w-pm-step-tag.req { background: #fdecec; color: var(--d-accent); }
.c2w-pm-step-tag.opt { background: #eef1f7; color: var(--d-muted); }

/* Tool cards grid */
.c2w-pm-tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.c2w-pm-tool {
	display: flex; flex-direction: column; gap: 10px; padding: 18px;
	border-radius: var(--d-radius); border: 1px solid var(--d-border); background: #fff;
	text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .1s;
}
.c2w-pm-tool:hover { border-color: var(--d-navy-light); box-shadow: var(--d-shadow); transform: translateY(-2px); }
.c2w-pm-tool-ic {
	width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
	background: #eef1fb; color: var(--d-navy);
}
.c2w-pm-tool-name { font-size: 14px; font-weight: 700; color: var(--d-text); }
.c2w-pm-tool-desc { font-size: 12px; color: var(--d-muted); line-height: 1.4; }

/* ════════ Platform-Manager dashboard (faithful to index.html) ════════ */
.c2w-dash-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-bottom: 28px; }
.c2w-dash-statcard { background: var(--d-card); border-radius: var(--d-radius); padding: 20px 22px; box-shadow: var(--d-shadow); display: flex; align-items: center; gap: 16px; }
.c2w-dash-staticon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: 0 0 44px; }
.c2w-dash-staticon .c2w-nav-icon { font-size: 22px; width: auto; }
.c2w-dash-staticon.blue { background: #e3f2fd; color: #1565c0; }
.c2w-dash-staticon.green { background: #e8f5e9; color: #2e7d32; }
.c2w-dash-staticon.orange { background: #fff3e0; color: #e65100; }
.c2w-dash-staticon.purple { background: #f3e5f5; color: #7b1fa2; }
.c2w-dash-statlabel { font-size: 11px; color: var(--d-muted); text-transform: uppercase; letter-spacing: .8px; }
.c2w-dash-statvalue { font-size: 24px; font-weight: 700; color: var(--d-text); margin-top: 2px; line-height: 1.1; }
.c2w-dash-statchange { font-size: 11px; color: var(--d-success); margin-top: 2px; }

.c2w-dash-sechead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; }
.c2w-dash-sechead h2 { font-size: 17px !important; font-weight: 600 !important; color: var(--d-text) !important; margin: 0 !important; text-align: left !important; text-transform: none !important; }
.c2w-dash-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; border-radius: 6px; font-size: 13px; font-weight: 600; border: none; cursor: pointer; text-decoration: none; transition: background .15s; }
.c2w-dash-btn-outline { background: #fff; color: var(--d-navy); border: 1.5px solid var(--d-navy); }
.c2w-dash-btn-outline:hover { background: var(--d-bg); }

.c2w-dash-wizard { background: var(--d-card); border-radius: var(--d-radius); box-shadow: var(--d-shadow); overflow: hidden; margin-bottom: 28px; }
.c2w-dash-wizhead { padding: 18px 24px; border-bottom: 1px solid var(--d-border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.c2w-dash-wizhead h2 { font-size: 15px !important; font-weight: 600 !important; color: var(--d-text) !important; margin: 0 !important; text-align: left !important; text-transform: none !important; }
.c2w-dash-wizhead p { font-size: 12px; color: var(--d-muted); margin: 3px 0 0; }
.c2w-dash-wizpct { font-size: 13px; color: var(--d-navy-light); font-weight: 600; flex: 0 0 auto; }
.c2w-dash-wizbar { padding: 12px 24px 16px; }
.c2w-dash-progressbar { height: 6px; background: #e0e4ef; border-radius: 3px; overflow: hidden; }
.c2w-dash-progressfill { height: 100%; background: var(--d-navy); border-radius: 3px; transition: width .3s; }
.c2w-dash-steplist { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.c2w-dash-stepitem { padding: 16px 20px; border-right: 1px solid var(--d-border); border-bottom: 1px solid var(--d-border); cursor: pointer; transition: background .15s; position: relative; text-decoration: none; color: inherit; display: block; }
.c2w-dash-stepitem:hover { background: #f8f9ff; }
.c2w-dash-stepitem.complete .c2w-dash-stepnum { background: var(--d-success); color: #fff; }
.c2w-dash-stepitem.active { background: #eef0ff; }
.c2w-dash-stepitem.active::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--d-navy); }
.c2w-dash-stepitem.active .c2w-dash-stepnum { background: var(--d-navy-light); color: #fff; }
.c2w-dash-stepnum { width: 26px; height: 26px; border-radius: 50%; background: #e0e4ef; color: var(--d-muted); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.c2w-dash-stepname { font-size: 13px; font-weight: 600; color: var(--d-text); margin-bottom: 3px; }
.c2w-dash-stepdesc { font-size: 11px; color: var(--d-muted); line-height: 1.4; }
.c2w-dash-steptag { display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; padding: 2px 7px; border-radius: 20px; margin-top: 6px; font-weight: 700; }
.c2w-dash-steptag.req { background: #fce4ec; color: #c62828; }
.c2w-dash-steptag.opt { background: #e8f5e9; color: #2e7d32; }

.c2w-dash-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin-bottom: 28px; }
.c2w-dash-toolcard { background: var(--d-card); border-radius: var(--d-radius); box-shadow: var(--d-shadow); padding: 22px; cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; border: 1.5px solid transparent; text-decoration: none; display: block; color: inherit; }
.c2w-dash-toolcard:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(26,35,126,.13); border-color: var(--d-navy-light); }
.c2w-dash-toolicon { margin-bottom: 12px; line-height: 1; }
.c2w-dash-toolicon .c2w-nav-icon { font-size: 28px; width: auto; }
.c2w-dash-toolname { font-size: 14px; font-weight: 700; color: var(--d-text); margin-bottom: 5px; }
.c2w-dash-tooldesc { font-size: 12px; color: var(--d-muted); line-height: 1.5; }

/* ════════ Settings wizard step cards (faithful to step*-*.html) ════════ */
.c2w-fcard { background: var(--d-card); border-radius: var(--d-radius); box-shadow: var(--d-shadow); padding: 28px; margin-bottom: 22px; box-sizing: border-box; max-width: 100%; }
.c2w-fcard > h3 { font-size: 15px !important; font-weight: 600 !important; color: var(--d-text) !important; margin: 0 0 18px !important; padding: 0 0 12px !important; border-bottom: 1px solid var(--d-border); display: flex; align-items: center; gap: 8px; text-align: left !important; text-transform: none !important; }
.c2w-fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.c2w-fgroup { display: flex; flex-direction: column; gap: 6px; }
.c2w-fgroup.full { grid-column: 1 / -1; }
.c2w-fgroup > label { font-size: 12px; font-weight: 600; color: var(--d-text); text-transform: uppercase; letter-spacing: .5px; }
.c2w-fgroup input[type=text], .c2w-fgroup input[type=number], .c2w-fgroup input[type=email], .c2w-fgroup input[type=tel], .c2w-fgroup input[type=url], .c2w-fgroup input[type=datetime-local], .c2w-fgroup input[type=date], .c2w-fgroup input[type=time], .c2w-fgroup select, .c2w-fgroup textarea {
	padding: 10px 12px; border: 1.5px solid var(--d-border); border-radius: 6px; font-size: 14px;
	color: var(--d-text); background: #fff; outline: none; font-family: inherit; width: 100%; max-width: 100%;
	box-sizing: border-box;
}
/* #156 — date/time fields need room for "MM/DD/YYYY, HH:MM AM" + the picker icon. */
.c2w-fgroup input[type=datetime-local], .c2w-fgroup input[type=date], .c2w-fgroup input[type=time] { min-width: 0; min-height: 42px; }
.c2w-fgroup input:focus, .c2w-fgroup select:focus, .c2w-fgroup textarea:focus { border-color: var(--d-navy-light); box-shadow: 0 0 0 3px rgba(57,73,171,.1); }
.c2w-fgroup textarea { resize: vertical; min-height: 100px; }
.c2w-fgroup .hint { font-size: 11px; color: var(--d-muted); line-height: 1.4; }
/* #157 — helper/hint text consistent on EVERY dashboard/My Account page. Some hints
   (section descriptions like "These dates set your public countdown…") sit OUTSIDE
   .c2w-fgroup, so they missed the muted styling above and rendered as plain body text
   that didn't match the admin theme. Give all dashboard .hint text the admin muted look. */
body.c2w-dashboard-page .hint {
	display: block;
	font-size: 12px;
	color: var(--d-muted);
	line-height: 1.55;
	margin-top: 6px;
	font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
}
/* #138 — rejected file upload (e.g. wrong type); the old file is kept */
.c2w-fgroup .hint.c2w-upload-error {
	display: block; margin-top: 8px; padding: 8px 10px; font-size: 12px; font-weight: 600;
	color: #7a1c1c; background: #fdecec; border: 1px solid #f3b7b7; border-radius: 6px;
}
.c2w-finfo { background: #e3f2fd; border-left: 4px solid #0277bd; border-radius: 0 6px 6px 0; padding: 12px 16px; font-size: 13px; color: #01579b; margin-bottom: 18px; }
.c2w-finfo strong { display: block; margin-bottom: 3px; }
.c2w-finfo--warn { background: #fff7ed; border-color: #f59e0b; }
.c2w-finfo--warn strong { color: #b45309; }
.c2w-badge-req { display: inline-block; font-size: 11px; background: #fce4ec; color: #c62828; padding: 2px 7px; border-radius: 20px; font-weight: 700; text-transform: uppercase; margin-left: 8px; vertical-align: middle; }
.c2w-badge-opt { display: inline-block; font-size: 11px; background: #e8f5e9; color: #2e7d32; padding: 2px 7px; border-radius: 20px; font-weight: 700; text-transform: uppercase; margin-left: 8px; vertical-align: middle; }
/* wp_editor (TinyMCE) inside a form group */
.c2w-fgroup .wp-editor-wrap { border: 1.5px solid var(--d-border); border-radius: 6px; overflow: hidden; }
.c2w-fgroup .wp-editor-container textarea { border: none; }

/* Toggle switch (used for yes/no settings styled as sliders) */
.c2w-toggle-row { display: flex; align-items: center; gap: 12px; padding: 4px 0; }
.c2w-switch { position: relative; display: inline-block; width: 42px; height: 24px; flex: 0 0 auto; }
.c2w-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.c2w-switch-track { position: absolute; inset: 0; background: #ccd0e0; border-radius: 24px; cursor: pointer; transition: background .2s; }
.c2w-switch-track:before { content: ''; position: absolute; width: 18px; height: 18px; background: #fff; border-radius: 50%; left: 3px; top: 3px; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.c2w-switch input:checked + .c2w-switch-track { background: var(--d-navy); }
.c2w-switch input:checked + .c2w-switch-track:before { transform: translateX(18px); }
.c2w-switch input:disabled + .c2w-switch-track { opacity: .55; cursor: not-allowed; }
.c2w-toggle-txt { display: flex; flex-direction: column; line-height: 1.3; }
.c2w-toggle-label { font-size: 13px; font-weight: 600; color: var(--d-text); text-transform: none; letter-spacing: 0; }
.c2w-toggle-sub { font-size: 11px; color: var(--d-muted); }

/* Wizard panel ordering — lets grouped sections render panels in mockup order
   without moving large PHP blocks. The form is the flex parent; panels are its
   flex items, so `order` controls their visual sequence when shown together. */
#test_form { display: flex; flex-direction: column; min-width: 0; }
/* Flex children default to min-width:auto and refuse to shrink below their
   content (e.g. a TinyMCE editor), which pushes the page wider than a phone.
   Allowing them to shrink fixes the "content stuck to the right" overflow. */
#test_form > *, #test_form .tabcontent, #test_form .c2w-fcard { min-width: 0; max-width: 100%; }
#test_form .c2w-fcard, #test_form .wp-editor-wrap, #test_form .wp-editor-container,
#test_form .mce-tinymce, #test_form .mce-container, #test_form .mce-edit-area,
#test_form .quicktags-toolbar, #test_form textarea, #test_form .c2w-mo-products { max-width: 100% !important; box-sizing: border-box; }
#tabpos-colors      { order: 1; }   /* Branding: Color Settings */
#tabpos-contact     { order: 2; }   /* Branding: Social Links   */
#tabpos-event-type  { order: 3; }   /* Branding: Sales Counter  */
#tabpos-siteqrcode  { order: 4; }   /* Branding: Site QR Code   */

/* Social Links rows (icon + label + url) */
.c2w-social-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.c2w-social-row .c2w-social-icon { font-size: 20px; width: 28px; text-align: center; flex: 0 0 auto; }
.c2w-social-row > label { width: 110px; flex: 0 0 auto; font-size: 13px; font-weight: 600; color: var(--d-text); text-transform: none; letter-spacing: 0; margin: 0; }
.c2w-social-row input { flex: 1 1 auto; padding: 10px 12px; border: 1.5px solid var(--d-border); border-radius: 6px; font-size: 14px; color: var(--d-text); background: #fff; outline: none; }
.c2w-social-row input:focus { border-color: var(--d-navy-light); box-shadow: 0 0 0 3px rgba(57,73,171,.1); }
.c2w-social-more { margin-top: 12px; }
.c2w-social-more > summary { font-size: 13px; color: var(--d-navy); cursor: pointer; padding: 8px 0; font-weight: 600; }

/* Manual-order ticket-package quantity stepper */
.c2w-mo-stepper { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; }
.c2w-mo-stepbtn { width: 26px; height: 26px; border: 1.5px solid var(--d-border); background: #fff; border-radius: 6px; font-size: 16px; font-weight: 700; line-height: 1; color: var(--d-navy); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background .15s, color .15s; }
.c2w-mo-stepbtn:hover { background: var(--d-navy); color: #fff; border-color: var(--d-navy); }
.c2w-mo-qcount { min-width: 22px; text-align: center; font-weight: 700; font-size: 14px; color: var(--d-text); }
.c2w-mo-prod.is-sel .c2w-mo-qcount { color: var(--d-navy); }
.c2w-mo-amount { padding: 10px 12px; border: 1.5px solid var(--d-border); border-radius: 6px; background: #f8f9ff; font-size: 18px; font-weight: 700; color: var(--d-navy); }
.c2w-mo-amount .woocommerce-Price-amount, .c2w-mo-amount bdi { font-size: inherit; font-weight: inherit; color: inherit; }
.c2w-mo-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }

/* Color palette preset cards — reference: c2w-color-palette-editor */
.c2w-pp-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.c2w-pp-group { grid-column: 1 / -1; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #64748b; margin: 22px 0 4px; }
.c2w-pp-btn.c2w-pp-card { display: flex; flex-direction: column; align-items: stretch; gap: 0; text-align: left; background: #fff; border: 2px solid #e2e8f0; border-radius: 10px; padding: 13px; cursor: pointer; width: 100%; min-height: 0; transition: border-color .15s, box-shadow .15s; box-shadow: none; }
.c2w-pp-btn.c2w-pp-card:hover { border-color: #93c5fd; box-shadow: 0 3px 12px rgba(0,0,0,.07); }
.c2w-pp-btn.c2w-pp-card.is-active { border-color: var(--d-navy, #1a237e); box-shadow: 0 0 0 2px rgba(26,35,126,.18); }
.c2w-pp-card-name { font-size: 15px; font-weight: 700; color: #111827; margin-bottom: 8px; }
.c2w-pp-strip { display: flex; height: 44px; border-radius: 7px; overflow: hidden; margin-bottom: 4px; }
.c2w-pp-strip > span, .c2w-pp-strip-seg { flex: 1 1 0; }
.c2w-pp-strip-seg { cursor: pointer; transition: transform .1s, box-shadow .1s; }
.c2w-pp-strip-seg:hover { transform: scaleY(1.14); position: relative; z-index: 2; box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.c2w-pp-card-chip { display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 5px; border: 1px solid rgba(0,0,0,.1); cursor: pointer; transition: transform .1s; }
.c2w-pp-card-chip:hover { transform: scale(1.12); position: relative; z-index: 2; box-shadow: 0 2px 8px rgba(0,0,0,.2); }

/* In-page colour picker popover */
.c2w-cp-pop { position: absolute; z-index: 100000; width: 220px; background: #fff; border: 1px solid #d1d5db; border-radius: 10px; box-shadow: 0 10px 34px rgba(0,0,0,.28); padding: 12px; }
.c2w-cp-sv { position: relative; width: 100%; height: 140px; border-radius: 6px; cursor: crosshair; margin-bottom: 12px; }
.c2w-cp-h { position: absolute; width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.45); transform: translate(-50%, -50%); pointer-events: none; }
.c2w-cp-hue { width: 100%; height: 14px; -webkit-appearance: none; appearance: none; border-radius: 7px; margin-bottom: 12px; cursor: pointer; background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%); }
.c2w-cp-hue::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid #555; cursor: pointer; }
.c2w-cp-hue::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid #555; cursor: pointer; }
.c2w-cp-row { display: flex; align-items: center; gap: 8px; }
.c2w-cp-prev { width: 28px; height: 28px; border-radius: 6px; border: 1px solid rgba(0,0,0,.15); flex: 0 0 auto; }
.c2w-cp-hex { flex: 1 1 auto; min-width: 0; padding: 6px 8px; border: 1px solid #d1d5db; border-radius: 6px; font-family: monospace; font-size: 13px; text-transform: uppercase; }
.c2w-cp-ok { flex: 0 0 auto; padding: 6px 14px; border: none; border-radius: 6px; background: var(--d-navy, #1a237e); color: #fff; font-weight: 600; font-size: 13px; cursor: pointer; }
.c2w-pp-card-lbl { font-size: 11px; line-height: 1.1; color: #9ca3af; text-transform: uppercase; letter-spacing: .03em; text-align: center; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c2w-pp-card-hex { font-size: 11px; line-height: 1.1; color: #9ca3af; font-family: monospace; text-align: center; }
.c2w-pp-card-key { font-size: 11px; color: #c7ccd4; font-family: monospace; margin-top: 3px; }

/* Payment Processor cards (mockup: tool-payment-processor.html) */
.c2w-proc-card { display: flex; align-items: center; gap: 18px; background: #fff; border: 1.5px solid var(--d-border); border-radius: 10px; box-shadow: 0 2px 12px rgba(26,35,126,.06); padding: 18px 22px; margin-bottom: 14px; }
.c2w-proc-card.is-connected { border-color: #2e7d32; }
.c2w-proc-logo { width: 52px; height: 52px; flex: 0 0 auto; border-radius: 10px; background: #f4f6fb; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.c2w-proc-info { flex: 1 1 auto; }
.c2w-proc-info h3 { margin: 0 0 2px; font-size: 16px; font-weight: 700; color: var(--d-text); border: none; padding: 0; }
.c2w-proc-info p { margin: 0; font-size: 13px; color: var(--d-muted); }
.c2w-proc-status { flex: 0 0 auto; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.c2w-proc-badge { font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.c2w-proc-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.c2w-proc-dot.on { background: #2e7d32; }
.c2w-proc-dot.off { background: #e53935; }
.c2w-proc-on { color: #2e7d32; }
.c2w-proc-off { color: #e53935; }
.c2w-proc-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 6px; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; border: 1.5px solid var(--d-navy); background: #fff; color: var(--d-navy); }
.c2w-proc-btn:hover { background: #f5f6ff; }
.c2w-proc-btn--primary { background: var(--d-navy); color: #fff; }
.c2w-proc-btn--primary:hover { background: var(--d-navy-light); border-color: var(--d-navy-light); }
.c2w-pay-status { font-size: 12px; margin: 4px 0 0; color: var(--d-muted); }
.c2w-pay-alert { border-radius: 8px; padding: 12px 16px; font-size: 14px; margin-bottom: 18px; }
.c2w-pay-alert--ok { background: #ecfdf5; border-left: 4px solid #16a34a; color: #14532d; }
.c2w-pay-alert--err { background: #fff7ed; border-left: 4px solid #f59e0b; color: #7c4a03; }
@media (max-width: 560px) { .c2w-proc-card { flex-wrap: wrap; } .c2w-proc-status { align-items: flex-start; text-align: left; } }

/* Winner Selection (mockup: tool-winner-selection.html) */
.c2w-pw-status { border-radius: 8px; padding: 14px 18px; font-size: 14px; margin-bottom: 24px; }
.c2w-pw-status--warn { background: #fff7ed; border-left: 4px solid #f59e0b; color: #7c4a03; }
.c2w-pw-status--ok { background: #ecfdf5; border-left: 4px solid #16a34a; color: #14532d; }
.c2w-pw-ready { background: #fff; border-radius: 10px; box-shadow: 0 2px 12px rgba(26,35,126,.08); padding: 36px 28px; text-align: center; margin-bottom: 24px; }
.c2w-pw-ready h2 { font-size: 22px; font-weight: 700; color: var(--d-text); margin: 0 0 8px; }
.c2w-pw-ready > p { font-size: 14px; color: var(--d-muted); max-width: 620px; margin: 0 auto 22px; line-height: 1.6; }
.c2w-pw-ready-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.c2w-pw-ready-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 8px; font-size: 15px; font-weight: 600; text-decoration: none; border: 2px solid var(--d-navy); transition: background .15s, color .15s; }
.c2w-pw-ready-btn--virtual { background: var(--d-navy); color: #fff; }
.c2w-pw-ready-btn--virtual:hover { background: var(--d-navy-light); border-color: var(--d-navy-light); }
.c2w-pw-ready-btn--print { background: #fff; color: var(--d-navy); }
.c2w-pw-ready-btn--print:hover { background: #f5f6ff; }
.c2w-pw-cats-inline { margin-top: 22px; font-size: 13px; color: var(--d-muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.c2w-pw-cats-inline a { color: var(--d-navy); text-decoration: none; border: 1px solid var(--d-border); border-radius: 20px; padding: 4px 12px; font-weight: 600; }
.c2w-pw-cats-inline a:hover { background: var(--d-navy); color: #fff; border-color: var(--d-navy); }
.c2w-pw-emptybox { background: #f4f6fb; border-radius: 8px; padding: 24px; text-align: center; color: var(--d-muted); font-size: 14px; }
.c2w-pw-viewwinners { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px; padding: 9px 16px; border: 1.5px solid var(--d-navy); border-radius: 6px; color: var(--d-navy); font-size: 13px; font-weight: 600; text-decoration: none; }
.c2w-pw-viewwinners:hover { background: var(--d-navy); color: #fff; }

/* Team management: Teams & Sales list with progress bars */
.c2w-team-listcard { padding: 0; overflow: hidden; margin-bottom: 24px; }
.c2w-team-listhead { padding: 16px 18px; border-bottom: 1px solid var(--d-border); display: flex; justify-content: space-between; align-items: center; }
.c2w-team-listhead h3 { border: none; padding: 0; margin: 0; font-size: 15px; font-weight: 600; color: var(--d-text); }
.c2w-team-export { font-size: 12px; font-weight: 600; color: var(--d-navy); text-decoration: none; border: 1.5px solid var(--d-navy); border-radius: 6px; padding: 6px 12px; }
.c2w-team-export:hover { background: var(--d-navy); color: #fff; }
.c2w-team-row2 { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--d-border); }
.c2w-team-row2:last-child { border-bottom: none; }
.c2w-team-av { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 50%; background: var(--d-navy); color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.c2w-team-nm { flex: 0 0 150px; font-weight: 600; font-size: 14px; color: var(--d-text); }
.c2w-team-bar2 { flex: 1 1 auto; height: 10px; background: #e0e4ef; border-radius: 6px; overflow: hidden; }
.c2w-team-bar2-fill { height: 100%; background: var(--d-navy); border-radius: 6px; }
.c2w-team-sl { flex: 0 0 auto; font-size: 13px; color: var(--d-muted); white-space: nowrap; min-width: 140px; text-align: right; }
.c2w-team-empty { padding: 22px 18px; color: var(--d-muted); font-size: 14px; }
@media (max-width: 640px) { .c2w-team-nm { flex-basis: 100px; } .c2w-team-sl { min-width: 0; } }

/* Reporting dashboard KPI grid (mockup: tool-reporting.html) */
.c2w-rp-kgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 24px; }
.c2w-rp-kcard { background: #fff; border-radius: 10px; box-shadow: 0 2px 12px rgba(26,35,126,.08); padding: 20px; }
.c2w-rp-klabel { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--d-muted); font-weight: 600; }
.c2w-rp-kval { font-size: 26px; font-weight: 700; color: var(--d-text); margin: 6px 0 4px; line-height: 1.1; }
.c2w-rp-kval .woocommerce-Price-amount, .c2w-rp-kval bdi { font-size: inherit; font-weight: inherit; color: inherit; }
.c2w-rp-kchange { font-size: 12px; color: #2e7d32; }

/* Selectable radio cards (e.g. winner display options) */
.c2w-radio-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.c2w-radio-card { display: block; border: 2px solid var(--d-border); border-radius: 8px; padding: 16px; cursor: pointer; transition: border-color .15s, background .15s; }
.c2w-radio-card:hover { border-color: var(--d-navy-light); }
.c2w-radio-card.selected { border-color: var(--d-navy); background: #f5f6ff; }
.c2w-radio-card input { margin-right: 8px; vertical-align: middle; }
.c2w-rc-title { font-weight: 600; font-size: 14px; color: var(--d-text); }
.c2w-rc-desc { display: block; font-size: 12px; color: var(--d-muted); margin-top: 6px; line-height: 1.4; }

@media (max-width: 1024px) {
	.c2w-pm-steps { grid-template-columns: repeat(2, 1fr); }
	.c2w-pm-tools { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
	.c2w-pm-steps, .c2w-pm-tools { grid-template-columns: 1fr; }
}

/* Floating mini-cart never belongs on the admin dashboard pages */
body.c2w-dashboard-page .c2w-mc-toggle,
body.c2w-dashboard-page .c2w-mc-panel,
body.c2w-dashboard-page .c2w-mc-overlay { display: none !important; }

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 900px) {
	body.c2w-dashboard-page { overflow-x: hidden; }
	.c2w-app-layout, .c2w-main-area, .c2w-page-content { max-width: 100%; min-width: 0; }
	/* every container in the wizard chain must be allowed to shrink */
	#c2w-ss, .c2w-ss, #c2w-panels, .c2w-ss-panels, .c2w-wiz-topbar,
	.c2w-wiz-layout, .c2w-wiz-main, #test_form, .tabcontent { min-width: 0; max-width: 100%; }
	.c2w-sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: 0 0 40px rgba(0,0,0,.3); }
	.c2w-app-layout.c2w-nav-open .c2w-sidebar { transform: none; }
	.c2w-main-area { margin-left: 0; }
	.c2w-sidebar-toggle { display: inline-flex; }
	.c2w-pm-stats { grid-template-columns: repeat(2, 1fr); }
	/* #153 — was padding:0 (content ran edge-to-edge with no left/right gap on the
	   dashboard home + most tool pages). Give it a proper mobile inset. Full-bleed pages
	   (only .tpl-add-team) cancel this with their own negative margin, adjusted below. */
	.c2w-page-content { padding: 16px 14px; }
	/* #154 — cards had a fixed 28px padding + no border-box, so on a phone they were
	   cramped and could push past the viewport (e.g. Winner Selection notice cards).
	   Tighten the inner padding on mobile. */
	body.c2w-dashboard-page .c2w-fcard { padding: 16px; }
	/* #153 — tidy the topbar on mobile: smaller gutter, title ellipsizes instead of
	   wrapping to two lines, action buttons never wrap. */
	.c2w-top-bar { padding: 0 14px; gap: 10px; }
	.c2w-top-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
	.c2w-top-actions { gap: 10px; }
	.c2w-top-btn { white-space: nowrap; padding: 8px 12px; }
	/* keep wide form children inside the viewport */
	.c2w-fgrid { grid-template-columns: 1fr; }
	.c2w-fgroup .wp-editor-wrap, .c2w-fgroup textarea, .c2w-fgroup input,
	.wp-editor-container, .mce-tinymce, .mce-container { max-width: 100% !important; }
}
@media (max-width: 560px) {
	.c2w-pm-stats { grid-template-columns: 1fr; }
	.c2w-top-btn--ghost { display: none; }
}

/* ===== Color palette editor — editable bar + header/footer (ported from chance2win page-layouts.css) ===== */
.c2w-palette-intro { font-size: 13px; color: #6b7a99; margin: 0 0 14px; }
.c2w-pp-header { margin-bottom: 16px; }
.c2w-pp-title { font-size: 18px; font-weight: 800; color: #111827; margin: 0 0 4px; }
.c2w-pp-current { font-size: 13px; color: #666; }

/* Editable colour bar = a vertical stack of horizontal rows (one colour per line).
   The row itself is the colour; label sits left, hex right. Whole row is clickable. */
.c2w-pp-preview {
	display: flex; flex-direction: column; gap: 8px;
	margin-bottom: 18px;
}
.c2w-pp-swatch {
	display: flex; flex-direction: row; align-items: center; justify-content: space-between;
	min-height: 46px; padding: 0 40px 0 16px; border-radius: 9px;
	position: relative; cursor: pointer; transition: filter .15s, transform .1s;
	box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.c2w-pp-swatch:hover { filter: brightness(.95); }
.c2w-pp-swatch:active { transform: scale(.995); }
.c2w-pp-swatch::after {
	content: '\270E'; position: absolute; top: 50%; right: 14px; transform: translateY(-50%);
	font-size: 13px; opacity: .6;
}
/* native colour input fills the swatch but stays invisible so the whole
   tile is the click target / picker trigger */
.c2w-pp-color {
	position: absolute; inset: 0; width: 100%; height: 100%;
	opacity: 0; border: 0; padding: 0; margin: 0; cursor: pointer;
}
.c2w-pp-swatch-label {
	font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px;
	background: rgba(255,255,255,.85); color: #222; padding: 3px 9px;
	border-radius: 5px; white-space: nowrap; pointer-events: none;
}
.c2w-pp-swatch-hex {
	font-size: 12px; font-weight: 800; letter-spacing: .4px; font-family: monospace;
	pointer-events: none; text-shadow: 0 1px 1px rgba(0,0,0,.18);
}
.c2w-pp-hint { font-size: 12px; color: #555; margin: 0 0 8px; }
.c2w-pp-none {
	font-size: 13px; color: #999; padding: 20px; display: flex;
	align-items: center; justify-content: center; width: 100%;
	background: #f7f8fc; border-radius: 14px;
}

.c2w-pp-btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 7px 12px; border-radius: 10px;
	border: 2px solid rgba(0,0,0,.08); background: #fff;
	cursor: pointer; transition: border-color .15s, box-shadow .15s;
	font-size: 12px; font-weight: 600; color: #333;
}
.c2w-pp-btn:hover { border-color: rgba(46,231,251,.3); }
.c2w-pp-btn.is-active {
	border-color: #2ee7fb; background: rgba(46,231,251,.06);
	box-shadow: 0 2px 10px rgba(46,231,251,.2);
}
.c2w-pp-dots { display: flex; gap: 3px; }
.c2w-pp-dot {
	width: 14px; height: 14px; border-radius: 50%;
	border: 1px solid rgba(0,0,0,.1);
}
.c2w-pp-label { white-space: nowrap; }
/* Footer actions — admin navy system. !important on bg/color/border beats the
   global button{background:var(--c2w-button-bg)!important;color:...!important}
   rule so these keep their intended hierarchy instead of all bleeding navy. */
.c2w-pp-footer { display: flex; align-items: center; gap: 12px; justify-content: flex-end; margin-top: 8px; flex-wrap: wrap; }
/* Apply Palette — primary (navy filled) */
.c2w-pp-save {
	background: #1a237e !important; color: #fff !important; border: 2px solid #1a237e !important;
	padding: 10px 28px; border-radius: 10px; font-size: 14px;
	font-weight: 700; cursor: pointer; transition: background .15s;
}
.c2w-pp-save:hover { background: #3949ab !important; border-color: #3949ab !important; }
.c2w-pp-save:disabled { opacity: .5; cursor: wait; }
/* Save Custom Colors — secondary (navy outline) */
.c2w-pp-custom {
	background: #fff !important; color: #1a237e !important; border: 2px solid #1a237e !important;
	padding: 10px 24px; border-radius: 10px; font-size: 14px;
	font-weight: 700; cursor: pointer; transition: background .15s, opacity .15s;
}
.c2w-pp-custom:hover:not(:disabled) { background: #e8eaf6 !important; }
.c2w-pp-custom:disabled { opacity: .45; cursor: not-allowed; }
/* Reset to Original Colors — destructive (red outline) */
.c2w-pp-reset {
	background: #fff !important; color: #c8102e !important; border: 2px solid #c8102e !important;
	padding: 9px 22px; border-radius: 10px; font-size: 13px;
	font-weight: 700; cursor: pointer; transition: all .15s;
}
.c2w-pp-reset:hover { background: #c8102e !important; color: #fff !important; }
.c2w-pp-reset:disabled { opacity: .5; cursor: wait; }
.c2w-pp-msg {
	padding: 10px 16px; border-radius: 8px; margin-bottom: 14px;
	font-size: 13px; font-weight: 600; display: none;
}
.c2w-pp-msg.ok  { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; display: block; }
.c2w-pp-msg.err { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; display: block; }
.c2w-pp-status { font-size: 12px; color: #666; }

/* ===== Palette preset cards — spacing + strip overflow fixes (override any global form CSS) ===== */
.c2w-page-content .c2w-pp-grid {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
	gap: 16px !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 0 16px !important;
	padding: 4px 8px 4px 0 !important;
	box-sizing: border-box !important;
	max-height: 290px !important;   /* ~2 rows, then scroll */
	overflow-y: auto !important;
	overflow-x: hidden !important;
}
/* slim scrollbar for the palette grid */
.c2w-page-content .c2w-pp-grid::-webkit-scrollbar { width: 8px; }
.c2w-page-content .c2w-pp-grid::-webkit-scrollbar-thumb { background: #cbd2e0; border-radius: 8px; }
.c2w-page-content .c2w-pp-grid::-webkit-scrollbar-track { background: transparent; }
.c2w-page-content .c2w-pp-btn.c2w-pp-card {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	box-sizing: border-box !important;
	overflow: hidden !important;
}
/* 7 equal segments via grid columns — no flex min-width can push a swatch out */
.c2w-page-content .c2w-pp-strip {
	display: grid !important;
	grid-template-columns: repeat(7, 1fr) !important;
	gap: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
	height: 44px !important;
	border-radius: 7px;
	overflow: hidden !important;
	margin: 0 0 6px !important;
	box-sizing: border-box !important;
}
.c2w-page-content .c2w-pp-strip-seg,
.c2w-page-content .c2w-pp-strip > span {
	display: block !important;
	width: auto !important;
	min-width: 0 !important;
	max-width: none !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	flex: initial !important;
}

/* ----- Palette editor responsive (branding step) ----- */
@media (max-width: 600px) {
	/* Header: title over the "Current:" label instead of side by side */
	.c2w-pp-header { display: flex; flex-direction: column; gap: 4px; }
	.c2w-pp-title { font-size: 16px; }
	/* Editable colour rows already stack one-per-line; just keep them touch-comfy. */
	.c2w-pp-swatch { min-height: 44px; padding: 0 34px 0 12px; }
	.c2w-pp-swatch-label { font-size: 11px; }
	.c2w-pp-swatch-hex { font-size: 11px; }
	.c2w-pp-swatch::after { right: 12px; font-size: 12px; }
	/* Preset grid: single full-width column, taller scroll area */
	.c2w-page-content .c2w-pp-grid {
		grid-template-columns: 1fr !important;
		max-height: 340px !important;
		padding-right: 4px !important;
	}
	/* Footer: stack the three actions full-width, primary on top */
	.c2w-pp-footer { flex-direction: column; align-items: stretch; gap: 8px; }
	.c2w-pp-footer .c2w-pp-save { order: 1; }
	.c2w-pp-footer .c2w-pp-custom { order: 2; }
	.c2w-pp-footer .c2w-pp-reset { order: 3; }
	.c2w-pp-footer .c2w-pp-status { order: 4; text-align: center; }
	.c2w-pp-save, .c2w-pp-custom, .c2w-pp-reset { width: 100%; padding-left: 12px; padding-right: 12px; }
}

/* The top bar already shows each page's title, so the breadcrumb and emoji heading these
   tools print above their description only repeated it, a second, larger time. Keep just
   the description note, like the other dashboard pages. */
body.c2w-dashboard-page :is(.rp-pagehead, .tpb-pagehead, .c2w-tp-pagehead, .c2w-pd-pagehead, .pw-pagehead, .amo-pagehead, .adb-pagehead, .c2w-pay-pagehead, .c2w-at-pagehead) :is(h1, .rp-crumb, .tpb-crumb, .c2w-tp-crumb, .c2w-pd-crumb, .pw-crumb, .amo-crumb, .adb-crumb, .c2w-pay-crumb, .c2w-at-crumb) {
	display: none !important;
}

/* =====================================================================
   Page-header DESCRIPTION → info-box style (consistent across all tools)
   Turns the muted subtitle paragraph under each page title into the
   blue left-bordered note box used elsewhere in the design system.
   ===================================================================== */
.rp-pagehead > p,
.rp-headleft > p,
.tpb-pagehead > p,
.c2w-tp-pagehead > p,
.c2w-pd-pagehead > p,
.pw-pagehead > p,
.amo-pagehead > p,
.adb-pagehead > p,
.c2w-pay-pagehead > p,
.c2w-at-pagehead > p,
body.c2w-dashboard-page .c2w-page-sub {
	background: #e8f0fe !important;
	border-left: 4px solid #1a237e !important;
	border-radius: 0 8px 8px 0 !important;
	padding: 12px 16px !important;
	color: #16306b !important;
	font-size: 13.5px !important;
	font-weight: 500 !important;
	line-height: 1.5 !important;
	margin: 12px 0 0 !important;
	max-width: none !important;
	display: block !important;
	box-sizing: border-box !important;
}

/* ─────────────────────────────────────────────────────────────────────────
 * jQuery UI datepicker (Event start/end date pickers) — visible nav arrows.
 * Default sprite icons are near-invisible; replace with navy chips + chevrons.
 * ───────────────────────────────────────────────────────────────────────── */
.ui-datepicker .ui-datepicker-header { position: relative; }
.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
	width: 26px !important;
	height: 26px !important;
	top: 3px !important;
	background: #1a237e !important;
	border: none !important;
	border-radius: 6px !important;
	cursor: pointer !important;
}
.ui-datepicker .ui-datepicker-prev { left: 3px !important; }
.ui-datepicker .ui-datepicker-next { right: 3px !important; }
.ui-datepicker .ui-datepicker-prev-hover,
.ui-datepicker .ui-datepicker-next-hover,
.ui-datepicker .ui-datepicker-prev:hover,
.ui-datepicker .ui-datepicker-next:hover { background: #3949ab !important; top: 3px !important; }
.ui-datepicker .ui-datepicker-prev-hover { left: 3px !important; }
.ui-datepicker .ui-datepicker-next-hover { right: 3px !important; }
.ui-datepicker .ui-datepicker-prev .ui-icon,
.ui-datepicker .ui-datepicker-next .ui-icon { display: none !important; }
.ui-datepicker .ui-datepicker-prev::after,
.ui-datepicker .ui-datepicker-next::after {
	position: absolute; top: 0; left: 0; right: 0;
	color: #fff; font-size: 16px; font-weight: 700; line-height: 26px; text-align: center;
}
.ui-datepicker .ui-datepicker-prev::after { content: "\2039"; }
.ui-datepicker .ui-datepicker-next::after { content: "\203A"; }

/* ── Dashboard HOME responsive — KPI / setup-step / tool cards were fixed-minmax
   grids with desktop padding, so they crammed into tight 2-up columns on phones.
   Tighten density on small screens and drop to a single column on the narrowest. ── */
@media (max-width: 600px) {
	.c2w-dash-stats { grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
	.c2w-dash-statcard { padding: 14px; gap: 12px; }
	.c2w-dash-staticon { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 9px; }
	.c2w-dash-staticon .c2w-nav-icon { font-size: 18px; }
	.c2w-dash-statvalue { font-size: 20px; }
	.c2w-dash-statlabel { font-size: 11px; letter-spacing: .4px; }
	.c2w-dash-statchange { font-size: 11px; }
	.c2w-dash-steplist { grid-template-columns: 1fr 1fr; }
	.c2w-dash-stepitem { padding: 14px 14px; }
	.c2w-dash-tools { grid-template-columns: 1fr 1fr; gap: 12px; }
	.c2w-dash-toolcard { padding: 16px; }
	.c2w-dash-wizhead { padding: 14px 16px; }
	.c2w-dash-wizbar { padding: 10px 16px 12px; }
}
@media (max-width: 420px) {
	.c2w-dash-stats,
	.c2w-dash-tools { grid-template-columns: 1fr; }
}

/* =====================================================================
   Account Details (My Account -> edit-account) inside the dashboard shell.
   Charity/admin only - see c2w_is_staff_account_details(). !important beats the
   theme's global input/button rules, scoped to this one card.
   ===================================================================== */
body.c2w-dashboard-page .c2w-app-layout .c2w-account-details {
	max-width: 760px !important;
	text-align: left !important; /* Queen centres text by default */
	background: var(--d-card);
	border: 1px solid var(--d-border);
	border-radius: var(--d-radius);
	box-shadow: var(--d-shadow);
	padding: 28px 30px;
	float: none !important;
	width: auto !important;
}
body.c2w-dashboard-page .c2w-app-layout .c2w-account-details .woocommerce-EditAccountForm {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 20px;
	margin: 0;
}
body.c2w-dashboard-page .c2w-app-layout .c2w-account-details .woocommerce-EditAccountForm > * { grid-column: 1 / -1; }
body.c2w-dashboard-page .c2w-app-layout .c2w-account-details .woocommerce-EditAccountForm > .form-row-first { grid-column: 1; }
body.c2w-dashboard-page .c2w-app-layout .c2w-account-details .woocommerce-EditAccountForm > .form-row-last { grid-column: 2; }
body.c2w-dashboard-page .c2w-app-layout .c2w-account-details .woocommerce-EditAccountForm > .clear { display: none; }
body.c2w-dashboard-page .c2w-app-layout .c2w-account-details .form-row {
	float: none !important;
	width: auto !important;
	margin: 0 0 18px !important;
	padding: 0 !important;
}
body.c2w-dashboard-page .c2w-app-layout .c2w-account-details label {
	display: block;
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--d-text);
}
body.c2w-dashboard-page .c2w-app-layout .c2w-account-details label .required { color: var(--d-accent); text-decoration: none; }
body.c2w-dashboard-page .c2w-app-layout .c2w-account-details input.input-text,
body.c2w-dashboard-page .c2w-app-layout .c2w-account-details input[type="text"],
body.c2w-dashboard-page .c2w-app-layout .c2w-account-details input[type="email"],
body.c2w-dashboard-page .c2w-app-layout .c2w-account-details input[type="password"] {
	display: block;
	width: 100% !important;
	height: 44px !important;
	margin: 0 !important;
	padding: 10px 14px !important;
	border: 1px solid var(--d-border) !important;
	border-radius: 8px !important;
	background: #fff !important;
	color: var(--d-text) !important;
	font-size: 14px !important;
	box-shadow: none !important;
}
body.c2w-dashboard-page .c2w-app-layout .c2w-account-details input.input-text:focus,
body.c2w-dashboard-page .c2w-app-layout .c2w-account-details input[type="password"]:focus {
	border-color: var(--d-navy-light) !important;
	box-shadow: 0 0 0 3px rgba(57, 73, 171, .12) !important;
	outline: none;
}
body.c2w-dashboard-page .c2w-app-layout .c2w-account-details em,
body.c2w-dashboard-page .c2w-app-layout .c2w-account-details #account_display_name_description {
	display: block;
	margin-top: 6px;
	font-style: normal;
	font-size: 12px;
	color: var(--d-muted);
}
body.c2w-dashboard-page .c2w-app-layout .c2w-account-details fieldset {
	margin: 4px 0 22px !important;
	padding: 18px 20px 2px !important;
	border: 1px solid var(--d-border) !important;
	border-radius: var(--d-radius) !important;
	background: var(--d-bg) !important;
}
body.c2w-dashboard-page .c2w-app-layout .c2w-account-details legend {
	text-align: left !important;
	padding: 0 8px !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	color: var(--d-navy) !important;
}
body.c2w-dashboard-page .c2w-app-layout .c2w-account-details .password-input { position: relative; display: block; }
body.c2w-dashboard-page .c2w-app-layout .c2w-account-details .password-input input { padding-right: 44px !important; }
body.c2w-dashboard-page .c2w-app-layout .c2w-account-details .show-password-input {
	position: absolute !important;
	top: 50% !important;
	right: 8px !important;
	transform: translateY(-50%);
	width: 30px !important;
	height: 30px !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 6px !important;
	background-color: transparent !important;
	color: var(--d-muted) !important;
	box-shadow: none !important;
	opacity: .7;
}
body.c2w-dashboard-page .c2w-app-layout .c2w-account-details .show-password-input:hover { opacity: 1; background-color: var(--d-bg) !important; }
body.c2w-dashboard-page .c2w-app-layout .c2w-account-details button[type="submit"],
body.c2w-dashboard-page .c2w-app-layout .c2w-account-details .woocommerce-Button {
	display: inline-block;
	width: auto !important;
	margin: 4px 0 0 !important;
	padding: 12px 26px !important;
	border: 0 !important;
	border-radius: 8px !important;
	background: var(--d-navy) !important;
	color: #fff !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	cursor: pointer;
}
body.c2w-dashboard-page .c2w-app-layout .c2w-account-details button[type="submit"]:hover,
body.c2w-dashboard-page .c2w-app-layout .c2w-account-details .woocommerce-Button:hover { background: var(--d-navy-light) !important; }
@media (max-width: 640px) {
	body.c2w-dashboard-page .c2w-app-layout .c2w-account-details { padding: 20px 16px; }
	body.c2w-dashboard-page .c2w-app-layout .c2w-account-details .woocommerce-EditAccountForm { grid-template-columns: 1fr; }
	body.c2w-dashboard-page .c2w-app-layout .c2w-account-details .woocommerce-EditAccountForm > .form-row-first,
	body.c2w-dashboard-page .c2w-app-layout .c2w-account-details .woocommerce-EditAccountForm > .form-row-last { grid-column: 1; }
	body.c2w-dashboard-page .c2w-app-layout .c2w-account-details button[type="submit"] { width: 100% !important; }
}

/* Line chart (inc/c2w-line-chart.php): same look as the Silent Auction dashboard chart */
.c2w-linechart { --lc-line: var(--c2w-primary, #1d4ed8); --lc-faint: #8a91a5; --lc-grid: #eceff5; --lc-muted: var(--d-muted, #6b7a99); }
.c2w-linechart .chart { display: block; width: 100%; height: auto; }
.c2w-linechart .chart text { fill: var(--lc-faint); font-size: 11px; font-family: inherit; }
.c2w-linechart .chart .g { stroke: var(--lc-grid); }
.c2w-linechart .chart .area { fill: var(--lc-line); opacity: .08; }
.c2w-linechart .chart .ln { fill: none; stroke: var(--lc-line); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.c2w-linechart .chart .ln2 { fill: none; stroke: var(--lc-faint); stroke-width: 1.5; stroke-dasharray: 4 4; }
.c2w-linechart .chart .end { fill: var(--lc-line); }
.c2w-linechart .legend { display: flex; flex-wrap: wrap; gap: 16px; margin: 0 0 8px; font-size: 12px; color: var(--lc-muted); }
.c2w-linechart .legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; background: var(--lc-line); vertical-align: middle; margin-right: 6px; }
.c2w-linechart .legend i.d { background: none; border-top: 2px dashed var(--lc-faint); height: 0; }
.c2w-linechart-empty { padding: 28px 8px; text-align: center; font-size: 13px; color: var(--d-muted, #6b7a99); }
