/* ============================================================
   TicketLink.cz admin — theme (was "dark mode", now covers both)
   Additive layer on top of application.css. One set of component
   rules for the whole file, driven entirely by the CSS variables
   below — dark values are the default (on body.attendize), light
   values override them under html[data-theme="light"]. No rule
   past this point is gated by data-theme itself; only the
   variable *values* differ, so every fix and every "modern flat"
   change (rounded corners, flat surfaces, pill buttons, calendar/
   date-badge fixes, etc.) applies identically in both themes.
   Same toggle mechanism, same accent-teal identity, same
   localStorage key (tl-theme) as the public site (main.css).
   ============================================================ */

body, body.attendize {
  --surface: #0d0d0f;
  --surface-raised: #14171d;
  --canvas: #000000;
  --on-surface: #e6e6ea;
  --on-surface-87: rgba(230,230,234,.87);
  --on-surface-62: rgba(255,255,255,.62);
  --on-surface-42: rgba(255,255,255,.42);
  --border: rgba(255,255,255,.12);
  --border-soft: rgba(255,255,255,.08);
  --fill: rgba(255,255,255,.06);
  --fill-soft: rgba(255,255,255,.04);
  --fill-03: rgba(255,255,255,.03);
  --fill-05: rgba(255,255,255,.05);
  --fill-10: rgba(255,255,255,.1);
  --fill-16: rgba(255,255,255,.16);
  --fill-18: rgba(255,255,255,.18);
  --fill-24: rgba(255,255,255,.24);
  --fill-25: rgba(255,255,255,.25);
  --fill-50: rgba(255,255,255,.5);
  --fill-0: rgba(255,255,255,0);
  --accent: #52c9bb;
  --accent-hover: #45b3a6;
  --accent-border: rgba(95,227,212,.5);
  --accent-fill: rgba(95,227,212,.16);
  --accent-fill-soft: rgba(95,227,212,.12);
  --accent-fill-hover: rgba(95,227,212,.26);
  --accent-fill-strong: rgba(95,227,212,.4);
  --on-accent: #08201d;
  --on-accent-soft: #eafffb;
  --warning: #FFD66A;
  --danger: #ED5466;
  --danger-fill: rgba(237,84,102,.35);
  --info: #63D3E9;
  --info-alt: #4fa3e0;
  --success: #6fcf6f;
  --badge-navy: #4e558f;
  --shadow: rgba(0,0,0,.5);
  --shadow-soft: rgba(0,0,0,.45);
  --shadow-strong: rgba(0,0,0,.6);
}

/* Light theme — same tokens, inverted-brightness values. Accent/warning/
   info/danger are darkened from their dark-mode pastels (same technique
   the public site uses via color-mix on --accent) so they keep AA-ish
   contrast on a white surface instead of washing out. */
html[data-theme="light"] body.attendize {
  --surface: #ffffff;
  --surface-raised: #f2f2f4;
  --canvas: #f5f4f0;
  --on-surface: #17151c;
  --on-surface-87: rgba(0,0,0,.87);
  --on-surface-62: rgba(0,0,0,.62);
  --on-surface-42: rgba(0,0,0,.42);
  --border: rgba(0,0,0,.12);
  --border-soft: rgba(0,0,0,.08);
  --fill: rgba(0,0,0,.04);
  --fill-soft: rgba(0,0,0,.03);
  --fill-03: rgba(0,0,0,.02);
  --fill-05: rgba(0,0,0,.05);
  --fill-10: rgba(0,0,0,.08);
  --fill-16: rgba(0,0,0,.12);
  --fill-18: rgba(0,0,0,.14);
  --fill-24: rgba(0,0,0,.18);
  --fill-25: rgba(0,0,0,.2);
  --fill-50: rgba(0,0,0,.4);
  --fill-0: rgba(0,0,0,0);
  --accent: #0d9488;
  --accent-hover: #0f766e;
  --accent-border: rgba(13,148,136,.5);
  --accent-fill: rgba(13,148,136,.1);
  --accent-fill-soft: rgba(13,148,136,.08);
  --accent-fill-hover: rgba(13,148,136,.16);
  --accent-fill-strong: rgba(13,148,136,.28);
  --on-accent: #ffffff;
  --on-accent-soft: #0f5c53; /* dark teal — was a near-white leftover from the dark palette, invisible on the light chip fill */
  --warning: #b45309;
  --danger: #dc2626;
  --danger-fill: rgba(220,38,38,.14);
  --info: #0e7490;
  --info-alt: #1d4ed8;
  --success: #16a34a;
  --badge-navy: #4e558f;
  --shadow: rgba(0,0,0,.12);
  --shadow-soft: rgba(0,0,0,.08);
  --shadow-strong: rgba(0,0,0,.18);
}

/* The generic "body { color-scheme: dark; }" rule further down (written
 for the always-dark login/signup pages, which never carry .attendize) is
 a bare body selector, so it also matches body.attendize on every normal
 admin page - with nothing overriding it in light mode, Chrome auto-dark-
 styles any native form control that has no explicit author background/
 color of its own (found live: Ticket Presets' preset-name and tier-table
 inputs, which predate .form-control, rendered as dark boxes even in
 light theme). Override it back to light specifically here. */
html[data-theme="light"] body.attendize {
  color-scheme: light;
}

/* ==========================================================================
 Global chrome & navigation — dark mode
 ========================================================================== */

/* Global page canvas */
body.attendize {
 background-color: var(--canvas);
 color: var(--on-surface-62);
}

/* Top navbar + sidebar use the PAGE colour (--canvas), not --surface: on iPhone, Safari fills
   the strips behind the clock / under its toolbar with the page background, so chrome in a
   different shade showed as black bands (most visibly with the mobile sidebar open).
   Same colour everywhere = nothing to see. Panels/cards keep --surface for depth. */
/* Top navbar: logo panel (#header.navbar > .navbar-header) */
body.attendize #header.navbar > .navbar-header {
 background-color: var(--canvas);
 border-right: 1px solid var(--border);
}

/* Top navbar: toolbar strip + nav links */
body.attendize #header.navbar > .navbar-toolbar {
 background-color: var(--canvas);
}
body.attendize #header.navbar > .navbar-toolbar > .navbar-collapse {
 border-color: var(--border);
}
body.attendize #header.navbar > .navbar-toolbar > .navbar-nav > li > a {
 color: var(--on-surface-62);
}
body.attendize #header.navbar > .navbar-toolbar > .navbar-nav > li > a:hover,
body.attendize #header.navbar > .navbar-toolbar > .navbar-nav > li > a:focus {
 color: var(--on-surface);
}
body.attendize #header.navbar > .navbar-toolbar > .navbar-nav > li > a:active,
body.attendize #header.navbar > .navbar-toolbar > .navbar-nav > li > a.active {
 background-color: var(--fill);
 color: var(--accent);
}
body.attendize #header.navbar > .navbar-toolbar > .navbar-nav > li.open > a,
body.attendize #header.navbar > .navbar-toolbar > .navbar-nav > li.open > a:hover,
body.attendize #header.navbar > .navbar-toolbar > .navbar-nav > li.open > a:focus,
body.attendize #header.navbar > .navbar-toolbar > .navbar-nav > li.open > a:active {
 background-color: var(--fill);
 color: var(--on-surface);
}

/* Profile dropdown + language-switcher dropdown (plain Bootstrap .dropdown-menu).
 Also targets plain body: the language switcher on login-style pages
 (Select Organiser, Create Organiser, etc.) uses this same dropdown-menu
 markup with no .attendize ancestor, and was left on stock white. */
body.attendize .dropdown-menu,
body:not(.attendize) .dropdown-menu {
 background-color: var(--surface) !important;
 border-color: var(--border) !important;
 box-shadow: 0 6px 16px var(--shadow-strong);
}
body.attendize .dropdown-menu > li > a,
body:not(.attendize) .dropdown-menu > li > a {
 color: var(--on-surface-62);
}
body.attendize .dropdown-menu > li > a:hover,
body.attendize .dropdown-menu > li > a:focus,
body:not(.attendize) .dropdown-menu > li > a:hover,
body:not(.attendize) .dropdown-menu > li > a:focus {
 color: var(--on-surface);
 background-color: var(--fill);
}
body.attendize .dropdown-menu > .active > a,
body.attendize .dropdown-menu > .active > a:hover,
body.attendize .dropdown-menu > .active > a:focus,
body:not(.attendize) .dropdown-menu > .active > a,
body:not(.attendize) .dropdown-menu > .active > a:hover,
body:not(.attendize) .dropdown-menu > .active > a:focus {
 background-color: var(--fill);
 color: var(--accent);
}
body.attendize .dropdown-menu .divider,
body:not(.attendize) .dropdown-menu .divider {
 background-color: var(--border);
}

/* Left sidebar navigation (Sidebar.blade.php: aside.sidebar.sidebar-left.sidebar-menu) */
body.attendize .sidebar.sidebar-left.sidebar-menu {
 background-color: var(--canvas);
 color: var(--on-surface-62);
}
body.attendize .sidebar .content hr {
 border-color: var(--border);
}
body.attendize .sidebar .content > .heading {
 color: var(--on-surface-42);
}
body.attendize .sidebar .topmenu li a {
 color: var(--on-surface-62);
}
body.attendize .sidebar .topmenu li a:hover {
 color: var(--on-surface);
 background-color: var(--fill);
}
body.attendize .sidebar .topmenu li a:hover > .figure > [class^="ico-"],
body.attendize .sidebar .topmenu li a:hover > .figure > [class*=" ico-"] {
 border-color: var(--fill-24);
}
body.attendize .sidebar .topmenu li.active a {
 color: var(--accent);
 background-color: var(--fill-05);
}
body.attendize .sidebar .topmenu li.active a > .figure > [class^="ico-"],
body.attendize .sidebar .topmenu li.active a > .figure > [class*=" ico-"] {
 color: var(--accent);
}
body.attendize .sidebar .topmenu li.open a {
 color: var(--on-surface);
}
body.attendize .sidebar .topmenu li.open a > .figure > [class^="ico-"],
body.attendize .sidebar .topmenu li.open a > .figure > [class*=" ico-"] {
 border-color: var(--fill-24);
}

/* Page title strip (h1 title bar directly under the navbar) */
body.attendize .page-title {
 background-color: var(--surface);
 border-top-color: var(--border);
 border-bottom-color: var(--border);
}
body.attendize .page-title .title {
 color: var(--on-surface);
}

/* Page header (secondary header row, e.g. event sub-nav under page-title) */
body.attendize .page-header {
 border-bottom-color: var(--border);
}
body.attendize .page-header .title {
 color: var(--on-surface-62);
 border-bottom-color: var(--border);
}
body.attendize .page-header.page-header-block {
 background-color: var(--surface);
 border-bottom-color: var(--border);
}

/* Breadcrumb */
body.attendize .breadcrumb {
 background-color: var(--fill);
}
body.attendize .breadcrumb > li + li::before {
 color: var(--on-surface-42);
}
body.attendize .breadcrumb > .active {
 color: var(--on-surface-62);
}

/* Tab navigation (.nav-tabs), page-level only — not the nested .panel .panel-toolbar variant */
body.attendize .nav-tabs {
 background-color: var(--fill);
 border-bottom-color: var(--border);
}
body.attendize .nav-tabs > li > a {
 color: var(--on-surface-62);
}
body.attendize .nav-tabs > li > a:hover,
body.attendize .nav-tabs > li.open > a {
 color: var(--on-surface);
}
body.attendize .nav-tabs > li.active > a,
body.attendize .nav-tabs > li.active > a:hover,
body.attendize .nav-tabs > li.active > a:focus {
 background-color: var(--surface);
 border-color: var(--border);
 border-bottom-color: var(--accent);
 color: var(--on-surface);
}
body.attendize .nav-tabs.nav-justified > li > a {
 border-bottom-color: var(--border);
}
body.attendize .nav-tabs.nav-justified > li.active > a,
body.attendize .nav-tabs.nav-justified > li.active > a:hover {
 border-bottom-color: var(--surface);
}

/* NOTE: no #footer / .footer chrome exists anywhere in the admin backend layout (Shared/Layouts/Master.blade.php has no footer markup — only Shared/Partials/GlobalFooterJS.blade.php, which is script-only, no visible DOM) — nothing to style, skipping. */
/* NOTE: .navbar-brand logo is assets/images/ticketlink-logo-light.png (a white/light logotype) — already used against the existing dark-navy header (#2E3254) so it reads fine on the new near-black header too; no fix needed. */
/* NOTE: .nav-tabs.nav-justified active-tab border-bottom is set to match the surface color it "merges" into visually (originally var(--on-surface) to blend with a white panel below it) — set here to var(--surface) to match this file's chosen surface color; if the Panels/cards lane picks a different surface hex, this seam will show a hairline mismatch and should be reconciled. */
/* Form controls: text inputs, textareas, selects (.form-control) */
body.attendize .form-control {
 background-color: var(--fill);
 color: var(--on-surface);
 border-color: var(--border);
 box-shadow: none;
}
body.attendize select,
body.attendize select.form-control {
 background-color: var(--fill) !important; /* light CSS forces select{background:var(--on-surface) !important} */
 color: var(--on-surface);
 border-color: var(--border);
}
body.attendize .form-control::-moz-placeholder,
body.attendize .form-control:-ms-input-placeholder,
body.attendize .form-control::-webkit-input-placeholder,
body.attendize .form-control:-moz-placeholder {
 color: var(--on-surface-42);
 opacity: 1;
}

/* Form control focus state */
body.attendize .form-control:focus,
body.attendize select.form-control:focus {
 border-color: var(--accent);
 box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}

/* Form control disabled / readonly state */
body.attendize .form-control[disabled],
body.attendize .form-control[readonly],
body.attendize fieldset[disabled] .form-control {
 background-color: var(--fill-03);
 color: var(--on-surface-42);
 border-color: var(--border-soft);
}

/* Form control autofill (browser-saved values flash a bright native fill without this) */
body.attendize .form-control:-webkit-autofill,
body.attendize .form-control:-webkit-autofill:focus {
 -webkit-text-fill-color: var(--on-surface);
 -webkit-box-shadow: 0 0 0px 1000px var(--fill) inset;
 transition: background-color 9999s ease-in-out 0s;
}

/* TouchSpin numeric-stepper postfix/prefix (organiser fee % / fixed fields — inline <style> in Customize.blade.php) */
body.attendize .bootstrap-touchspin-postfix {
 background-color: var(--fill);
 color: var(--on-surface);
 border-color: var(--border);
}

/* Checkboxes & radios — custom square/circle UI (.custom-checkbox / .custom-radio, seen wrapping "notify_attendee" in CancelAttendee.blade.php and "enable_offline_payments" in Customize.blade.php) */
body.attendize .custom-checkbox>label:before,
body.attendize .custom-radio>label:before,
body.attendize .checkbox-icon>label:before {
 border-color: color-mix(in srgb, var(--on-surface) 28%, transparent);
 background-color: var(--fill-soft);
}
body.attendize .custom-checkbox:hover>label:before,
body.attendize .custom-radio:hover>label:before {
 border-color: var(--accent);
}
body.attendize .custom-checkbox>input[type="checkbox"]:checked+label:before,
body.attendize .custom-radio>input[type="radio"]:checked+label:before {
 border-color: var(--accent);
 background-color: var(--accent);
}
body.attendize .custom-checkbox>input[type="checkbox"]:checked+label:after {
 color: var(--on-accent); /* checkmark glyph — was white-on-navy, needs to be dark to read on the new teal fill */
}
/* .custom-radio's checked inner dot stays white on the teal ring — already legible, left untouched */

/* Checkboxes & radios — raw/native inputs, no custom wrapper (used for "notice_enabled"/"notice_popup_enabled"/"notice_level" and category_badges[] in Customize.blade.php) */
body.attendize input[type="checkbox"],
body.attendize input[type="radio"] {
 accent-color: var(--accent);
}

/* Category-badge reorder rows (Customize.blade.php inline-styled sortable checkbox list) */
body.attendize .badge-sort-row {
 background: var(--fill);
 border-color: var(--border);
}
body.attendize .badge-sort-row .sortHandle {
 color: var(--on-surface-42);
}
body.attendize .badge-sort-row .sortHandle:hover {
 color: color-mix(in srgb, var(--on-surface) 72%, transparent);
}
body.attendize .badge-sort-row-placeholder {
 border-color: var(--fill-24);
 background: transparent;
}

/* Form labels & help text (.control-label, .help-block) */
body.attendize .control-label {
 color: var(--on-surface-62);
}
body.attendize .help-block {
 color: var(--on-surface-62);
}

/* Validation states — .has-error/.has-warning/.has-success border+text hues (var(--danger) / var(--warning) / var(--badge-navy)) are already mid-brightness brand colors that read fine on black, so left as-is; only the inline "alert-danger" validation banner needs a dark surface */
body.attendize .alert-danger {
 background-color: color-mix(in srgb, var(--danger) 12%, transparent);
 border-color: var(--danger-fill);
 color: #ff8a97 !important; /* light CSS sets color:#e8263d !important */
}

/* Buttons — .btn-danger/.btn-warning/.btn-info already fill with saturated
 brand colors + white text that read fine on a black canvas; left
 untouched. .btn-default is the exception: application.css's own
 custom.less gives it a brand-navy fill (#525996) that reads as a
 leftover next to the current teal-accent design, so it gets a flat
 neutral-surface treatment instead, matching the modal-header fix below. */
body.attendize .btn-default {
 background-color: var(--fill-16);
 border-color: var(--border);
 color: var(--on-surface);
}
body.attendize .btn-default:hover,
body.attendize .btn-default:focus,
body.attendize .btn-default:active {
 background-color: var(--fill-24);
 border-color: var(--border);
 color: var(--on-surface);
}

/* Buttons — .btn-link (plain navy #404675 text is unreadable on black) */
body.attendize .btn-link,
body.attendize .btn.btn-link {
 color: var(--accent);
}
body.attendize .btn-link:hover,
body.attendize .btn-link:focus,
body.attendize .btn.btn-link:hover,
body.attendize .btn.btn-link:focus,
body.attendize .btn.btn-link:active {
 color: var(--on-surface);
}
body.attendize .btn-link[disabled],
body.attendize fieldset[disabled] .btn-link {
 color: var(--on-surface-42);
}

/* NOTE: native <select> dropdown option-list chrome and native <input type="file"> "Choose File" button are OS/browser-rendered and cannot be recolored via CSS in either theme. */
/* NOTE: .cover-crop-tool (image crop box) and .iframe_wrap (event-page preview border) in Customize.blade.php's "design" tab are image/preview widgets with their own inline <style>, not form controls — left for whichever lane owns image/preview panels. */
/* NOTE: .btn-default's compiled hover/focus/active/disabled rule sets color:#777 on background:#4d538c (contrast ~1.6:1) — this is a pre-existing light-mode bug (colors are self-contained, independent of page background) rather than something dark mode introduces, so left untouched per "don't touch light mode." */
/* ============================================================
 LANE: Page-specific custom widgets (non-Bootstrap)
 - Event gallery photo grid (EditEventForm.blade.php, Gallery.blade.php)
 - Ticket design accent-color swatches (AccentSwatches.blade.php)
 - Customize page preview panels (cover-crop tool, event-page iframe, ticket preview)
 - Highlights admin page (ManageOrganiser/Highlights.blade.php)
 ============================================================ */

/* Event gallery thumbnail card (EditEventForm.blade.php + reused as-is in
 ManageOrganiser/Gallery.blade.php — same class names, same colors) */
body.attendize .event-gallery-thumb {
 border-color: var(--border);
 background: var(--surface);
}
body.attendize .event-gallery-thumb.is-drag-over {
 box-shadow: inset 0 0 0 2px var(--accent);
}

/* Hero / Description role strip + "Shown in" language strip under each thumb */
body.attendize .event-gallery-thumb-roles,
body.attendize .event-gallery-thumb-lang {
 background: var(--fill);
 border-top-color: var(--border);
}
body.attendize .event-gallery-thumb-role-label {
 color: var(--on-surface-42);
}
body.attendize .event-gallery-thumb-role-input[data-role="hero"]:checked ~ span {
 color: var(--info-alt);
}
body.attendize .event-gallery-thumb-role-input[data-role="description"]:checked ~ span {
 color: var(--success);
}
body.attendize .event-gallery-thumb.is-hero .event-gallery-thumb-imgwrap {
 box-shadow: inset 0 0 0 2px var(--info-alt);
}
body.attendize .event-gallery-thumb.is-description .event-gallery-thumb-imgwrap {
 box-shadow: inset 0 0 0 2px var(--success);
}
body.attendize .event-gallery-thumb.is-hero.is-description .event-gallery-thumb-imgwrap {
 box-shadow: inset 0 0 0 2px var(--info-alt), inset 0 0 0 4px var(--success);
}

/* "Shown in" language dropdown, incl. the amber "restricted to one language" state */
body.attendize .event-gallery-thumb-lang-select {
 border-color: var(--border);
 color: var(--on-surface-62);
 background: var(--fill);
}
body.attendize .event-gallery-thumb.is-lang-scoped .event-gallery-thumb-lang-select {
 color: #ffb84d;
 border-color: #f0ad4e;
 background: rgba(240,173,78,.12);
}

/* Read-only "inherited from default gallery" preview state (currently unused
 in markup but present in the stylesheet — covered for when it's wired up) */
body.attendize .event-gallery-thumb-inherited-roles {
 color: var(--on-surface-42);
 background: var(--fill);
 border-top-color: var(--border);
}
body.attendize .event-gallery-inherited {
 border-color: color-mix(in srgb, var(--on-surface) 20%, transparent);
 background: var(--fill);
}

body.attendize #event-gallery-status {
 color: var(--on-surface-42);
}

/* Cover-image crop tool (ManageEvent/Customize.blade.php, design tab) */
body.attendize .cover-crop-tool {
 border-color: var(--border);
 background: var(--fill);
}
body.attendize .cover-crop-handle {
 box-shadow: 0 0 0 1px color-mix(in srgb, var(--on-surface) 40%, transparent), 0 1px 4px color-mix(in srgb, var(--canvas) 60%, transparent);
}

/* Accent-colour picker swatches (Shared/Partials/AccentSwatches.blade.php) —
 per-swatch dot color stays inline (it IS the color being picked); only the
 ring/border chrome around each dot changes */
body.attendize .accent-swatch .dot {
 border-color: var(--fill-25);
}
body.attendize .accent-swatch input:checked + .dot {
 box-shadow: 0 0 0 3px var(--on-surface);
}
body.attendize .accent-swatch input:focus + .dot {
 box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 60%, transparent);
}
body.attendize .accent-swatch.is-legacy .dot {
 border-color: #ff6b6b;
}

/* Category-badge drag-to-reorder list (Customize.blade.php, general tab) */
body.attendize .badge-sort-row {
 background: var(--fill);
 border-color: var(--border);
}
body.attendize .badge-sort-row .sortHandle {
 color: var(--on-surface-42);
}
body.attendize .badge-sort-row .sortHandle:hover {
 color: var(--on-surface-62);
}
body.attendize .badge-sort-row-placeholder {
 border-color: var(--fill-25);
 background: var(--fill);
}

/* Event-page live preview iframe frame (Customize.blade.php, design tab) —
 border is set via an inline style="" attribute, hence !important */
body.attendize .iframe_wrap {
 border-color: var(--border) !important;
}

/* Ticket design preview cushion (Customize.blade.php, ticket_design tab) —
 ticket.css itself is deliberately untouched (shared with the PDF renderer,
 hardcodes white/var(--on-surface)), so we frame it in a white card instead of letting
 it collide directly against the black page */
body.attendize .ticket-preview-scroll {
 background: var(--on-surface);
 padding: 20px;
 border-radius: 4px;
 border: 1px solid var(--border);
}

/* Highlights admin page (ManageOrganiser/Highlights.blade.php) */
body.attendize #highlights-table .hl-featured {
 background: color-mix(in srgb, var(--accent) 10%, transparent);
}

/* NOTE: ticket.css (TicketDesignPreview.blade.php / the ticket-design tab preview)
 is intentionally left unstyled per the existing blade comment — it renders
 an always-white/light ticket that must pixel-match the emailed PDF, so it
 stays a light card inside the new .ticket-preview-scroll frame above rather
 than being forced dark; do not add dark rules under .ticket itself. */
/* NOTE: .event-gallery-inherited-bar (EditEventForm.blade.php inline <style>)
 sets only layout (flex/gap/font-size), no color — nothing to override. */
/* NOTE: .event-gallery-thumb-remove / .event-gallery-thumb-move circular
 buttons already use a fixed rgba(0,0,0,.6) dark background + white icon
 (floating on top of the photo) — already correct in both themes, left
 untouched. */
/* ================================================================
 LOGIN / AUTH / CHECK-IN SCANNER — dark mode overrides
 Covers: Shared/Layouts/MasterWithoutMenus.blade.php (Login, Signup,
 ForgotPassword, ResetPassword, SelectOrganiser, CreateOrganiser,
 Installer, AlreadyInstalled, EventNotLivePage) and the two standalone
 check-in documents ManageEvent/CheckIn.blade.php (+ check_in.css) and
 ManageEvent/QrcodeCheckIn.blade.php (legacy scanner).

 IMPORTANT SCOPING NOTE: unlike the rest of the admin, none of these
 pages render <body class="attendize"> — MasterWithoutMenus, CheckIn and
 QrcodeCheckIn all emit a bare <body> (CheckIn uses id="app" only,
 QrcodeCheckIn has no id/class at all). So every rule below is scoped to
 plain `body`, NOT `body.attendize`. This is
 intentional and safe: `body.attendize` (used by the rest of the admin's
 dark CSS) has higher specificity than bare `body`, so nothing here can
 leak onto/override the main admin skin, and nothing there can leak onto
 these three documents since they never carry that class.
 ================================================================ */

/* Shared page canvas — replaces the tiled background.png + navy #2E3254
 that all three documents currently hardcode via inline <style>, with the
 flat black canvas used everywhere else in dark mode. Both are a bare
 `body{...}` selector at equal specificity, so without !important the
 inline <style> block wins purely on being later in the document - this
 rule was silently losing that fight the whole time despite an earlier
 comment here claiming otherwise (never actually verified live). !important
 makes it win regardless of source order. color-scheme:dark also gets
 native controls (radio buttons, date pickers, scrollbars) into a dark
 rendering for free on CreateOrganiser's tax radios etc. */
body:not(.attendize) {
 background-color: #000000 !important;
 background-image: none !important;
 color: var(--on-surface);
 color-scheme: dark;
}

/* ---- Login/Signup/ForgotPassword/ResetPassword/SelectOrganiser/
 CreateOrganiser panel (MasterWithoutMenus.blade.php inline <style>) ---- */
body .panel {
 background-color: var(--surface);
 border: 1px solid var(--border);
 box-shadow: 0 0 24px color-mix(in srgb, var(--canvas) 60%, transparent);
 color: var(--on-surface);
}
body .panel a {
 color: var(--accent);
}
body .panel a:hover {
 color: var(--on-surface);
}
/* .forgotPassword is a low-emphasis secondary link — kept dimmer than the
 general .panel a accent above; same specificity so this must stay after
 it in source order to win the tie. */
body a.forgotPassword {
 color: var(--on-surface-62);
}
body a.forgotPassword:hover {
 color: var(--accent);
}

/* Attendize wordmark — ticketlink-logo-dark.png is a dark-colored PNG wordmark meant
 for a light card; invisible on the new dark panel. Same fix already used
 elsewhere in this codebase for this exact file (see main.css
 .organiser_logo .is-fallback-logo), so applying the established pattern
 rather than flagging it. Covers both the div.logo>img wrapper used on
 the MasterWithoutMenus pages and QrcodeCheckIn's bare img.logo. */
body:not(.attendize) .logo img,
body:not(.attendize) img.logo {
 filter: invert(1);
}

/* Field labels — base .control-label is #6f6f6f, unreadable on var(--surface) */
body .control-label {
 color: var(--on-surface-62);
}
body .has-success .control-label {
 color: var(--accent);
}

/* Text inputs (email/password/name/tax fields etc.) */
body .form-control {
 background-color: var(--fill);
 border-color: var(--fill-16);
 color: var(--on-surface);
}
body .form-control::placeholder {
 color: var(--on-surface-42);
}
body .form-control:focus {
 background-color: var(--border-soft);
 border-color: var(--accent);
 box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
}
body .form-control[disabled],
body .form-control[readonly] {
 background-color: var(--fill-03);
 color: var(--on-surface-42);
}

/* Submit buttons (Log In / Sign Up / Submit / Create organiser) — matches
 the same flat white-pill primary button already used site-wide in dark
 mode (see main.css #event_page_wrap .btn-primary/.btn-success, --btn-bg
 var(--on-surface) / --btn-text #000 / --btn-hover #e9e9e9), replacing the admin's
 default indigo var(--badge-navy) so the CTA reads consistently across the site. */
body:not(.attendize) .btn-success,
body:not(.attendize) .btn-primary {
 background-color: var(--on-surface) !important;
 background-image: none !important;
 border-color: var(--on-surface) !important;
 color: #000000 !important;
 text-shadow: none !important;
}
body:not(.attendize) .btn-success:hover,
body:not(.attendize) .btn-success:focus,
body:not(.attendize) .btn-success:active,
body:not(.attendize) .btn-primary:hover,
body:not(.attendize) .btn-primary:focus,
body:not(.attendize) .btn-primary:active {
 background-color: var(--accent-hover) !important;
 border-color: var(--accent-hover) !important;
 color: var(--on-accent) !important;
}

/* Alerts (login failure notice via list-group, forgot/reset status,
 signup first_run hint, check-in "no attendees" hint). application.css
 forces `.alert{background:var(--on-surface) !important}` as a base rule with only
 the text color varying by type — need !important + higher specificity
 to beat that on the background too. */
body .alert {
 background: var(--surface) !important;
 border-color: var(--border);
}
body .alert-info {
 border-color: color-mix(in srgb, var(--accent) 35%, transparent);
 color: var(--accent) !important;
}
body .alert-success {
 border-color: rgba(107, 224, 138, .35);
 color: #6be08a !important;
}
body .alert-warning {
 border-color: color-mix(in srgb, var(--warning) 35%, transparent);
 color: var(--warning) !important;
}
body .alert-danger {
 border-color: var(--danger-fill);
 color: var(--danger) !important;
}
body .close {
 color: var(--on-surface);
 text-shadow: none;
}

/* .list-group / .list-group-item — used for the login-failure message, the
 SelectOrganiser account-switcher list, and doubles as the base class for
 CheckIn's attendee rows (.at) further down. */
body .list-group-item {
 background-color: var(--surface);
 border-color: var(--border);
 color: var(--on-surface);
}
body .list-group-item:hover,
body a.list-group-item:focus {
 background-color: var(--fill);
 color: var(--on-surface);
}

/* Signup terms-and-conditions checkbox (.custom-checkbox) */
body .custom-checkbox > label:before,
body .custom-radio > label:before {
 background-color: var(--fill);
 border-color: color-mix(in srgb, var(--on-surface) 28%, transparent);
}
body .custom-checkbox:hover > label:before,
body .custom-radio:hover > label:before {
 border-color: var(--accent);
}
body .custom-checkbox > input[type="checkbox"]:checked + label:before,
body .custom-radio > input[type="radio"]:checked + label:before {
 background-color: var(--accent);
 border-color: var(--accent);
}
body .custom-checkbox > input[type="checkbox"]:checked + label:after {
 color: #000000;
}

/* CreateOrganiser: facebook.com/ and twitter.com/ input-group prefixes —
 the blade view hardcodes style="background-color:#eee" inline, so this
 needs !important to win (a normal declaration can never beat an inline
 style, only an !important one can). */
body .input-group-addon {
 background-color: var(--fill) !important;
 border-color: var(--fill-16) !important;
 color: var(--on-surface-62) !important;
}

/* ================================================================
 CHECK-IN SCANNER SCREEN — ManageEvent/CheckIn.blade.php, its own
 standalone <html>/<style> shell + assets/stylesheet/check_in.css.
 Its inline body background was already the same dark navy
 (#2E3254 + tiled background.png) as the login screen — see the shared
 body rule at the top of this file, which already neutralizes it to flat
 black. Everything below is the fixed white search header and the white
 attendee-list cards on top of it, which check_in.css hardcodes as white
 regardless of theme today.
 ================================================================ */
body header {
 background-color: var(--surface);
 border-bottom: 1px solid var(--border);
}
body header .menuToggle {
 color: var(--fill-50);
}
body footer {
 background-color: var(--surface);
}
body .attendee_search {
 background-color: transparent;
 color: var(--on-surface);
}
body .attendee_search::placeholder {
 color: var(--on-surface-42);
}
body .qr_search {
 background-color: var(--fill);
 border-right-color: var(--fill-16);
 color: var(--on-surface);
}
body .clearSearch {
 color: var(--fill-50);
}
body .attendees_title {
 color: var(--on-surface-62);
}

/* Attendee rows (.at extends .list-group-item, styled above) — the
 arrived/not-arrived tint and the circular status badge (.ci) */
body .at:active {
 background-color: var(--fill-10) !important;
}
body .at.arrived {
 background-color: rgba(54, 241, 88, .14);
}
body .at.not_arrived .ci {
 background-color: var(--fill-10);
}
/* .at.arrived .ci keeps its bright #36F158 fill with a white checkmark —
 already high-contrast on black, no change needed. */

/* QR scanner overlay (.scannerModal and children) is a full-bleed layer
 drawn OVER the live camera feed, not the page background, and its
 colors (white buttons, translucent dashed aimer, semi-opaque result
 card) are already theme-independent by design — intentionally left
 unchanged here. */

/* ================================================================
 LEGACY QR CHECK-IN PAGE — ManageEvent/QrcodeCheckIn.blade.php. This is
 a separate, older standalone scanner (webqr.js canvas-based, not the
 Vue/getUserMedia one above) that loads only application.css + an empty
 qrcode-check-in.css — so #outdiv/#mainbody/.tsel/#help-text/#result
 carry NO project styling at all today, just browser defaults on a plain
 white page. The shared body rule + .logo/img filter above already carry
 most of this page into dark mode; only its one remaining inline style
 needs a targeted fix.
 ================================================================ */
body footer h5 {
 color: var(--on-surface-42) !important; /* overrides inline style="color:#6D717A" on the PoweredBy line */
}

/* NOTE: reCAPTCHA/hCaptcha (Public/LoginAndRegister/Partials/CaptchaRecaptcha
 & CaptchaHcaptcha) render inside a cross-origin iframe widget with its own
 light-themed chrome — cannot be recolored by this stylesheet. Fixing it
 requires passing data-theme="dark" (recaptcha) / data-theme="dark" attr
 (hcaptcha) into the widget div from the Blade template + JS render call,
 not a CSS change. */
/* NOTE: CreateOrganiser's "about" textarea (class="editable") is enhanced
 client-side into a rich-text editor by OrganiserCreateAndEditJS.blade.php
 ($('.editable').each(...)); its generated toolbar/iframe chrome is
 outside this stylesheet's reach and needs its own dark config if that
 editor supports one. */
/* NOTE: SelectOrganiser.blade.php and CreateOrganiser.blade.php each carry
 their own inline `.modal-header{color:#666 !important}` for a Bootstrap
 modal on those pages (target markup not present in the pages' own
 content, likely a shared delete/confirm modal partial) — left untouched
 since modal chrome is almost certainly owned by whichever lane covers
 Bootstrap modals admin-wide; flagging so it isn't missed. */
/* NOTE: the check-in scanner's live camera view (video#videoContainer,
 #qr-canvas) and QrcodeCheckIn's <canvas id="qr-canvas"> are drawn by the
 qrcode-scan JS libraries (llqrcode.js/webqr.js) — camera pixels and
 canvas frame captures, not themeable via CSS. */
/* Stat tiles (.stat-box) — dashboard KPI numbers (event count, tickets sold, revenue, views) */
body.attendize .stat-box {
 background-color: var(--surface);
 border-color: var(--border);
 color: var(--on-surface);
}
body.attendize .stat-box h3 {
 color: var(--on-surface);
}
body.attendize .stat-box span {
 color: var(--on-surface-62);
}

/* Dashboard panel/card chrome — wraps the 4 Morris chart panels, countdown, event-url, upcoming-events cards */
body.attendize .panel {
 background-color: var(--surface);
 border-color: var(--border);
 color: var(--on-surface);
}
body.attendize .panel-heading {
 border-color: var(--border);
}
body.attendize .panel-heading.panel-default,
body.attendize .panel-default > .panel-heading {
 background-color: var(--fill);
 color: var(--on-surface);
 border-color: var(--border);
}
body.attendize .panel-title {
 color: var(--on-surface);
}
body.attendize .panel-footer {
 background-color: var(--surface);
 border-top-color: var(--border);
 color: var(--on-surface-62);
}
body.attendize .panel-footer a {
 color: var(--accent);
}

/* Revenue/total figures hardcoded as inline style="color: green" on chart panel titles + recent-orders amounts */
body.attendize [style*="color: green"] {
 color: var(--accent) !important;
}

/* Morris.js hover tooltip (.morris-hover) — real HTML/CSS chrome around the SVG charts, not canvas-locked */
body.attendize .morris-hover.morris-default-style {
 background-color: var(--surface);
 border-color: var(--border);
 color: var(--on-surface);
}

/* Countdown + event-url side panels (.panel.panel-success) on the event dashboard */
body.attendize .panel.panel-success {
 border-color: var(--border);
 background-color: var(--surface);
}
body.attendize .panel-success > .panel-heading {
 background-color: var(--surface);
 border-color: var(--border);
 color: var(--accent);
}
body.attendize .panel-success > .panel-body {
 background-color: var(--surface);
 color: var(--on-surface-87);
}

/* Upcoming-events cards (.event.panel) on the organiser dashboard */
body.attendize .event.panel {
 border-color: var(--border);
}
/* Title/organiser links were rendering pure white regardless of theme —
   application.css sets .panel-heading color:#fff (correct against its own
   default colored heading fill), and that inherited value was beating
   our more general "body .panel a" rule for these two specifically.
   Direct, unambiguous override rather than chasing the exact cascade. */
body.attendize .event .event-title a {
 color: var(--accent);
}
body.attendize .event .event-title a:hover {
 color: var(--on-surface);
}
body.attendize .event .event-organiser,
body.attendize .event .event-organiser a {
 color: var(--on-surface-62);
}
body.attendize .event .event-organiser a {
 color: var(--accent);
}
/* Date badge — was a flat white box (border:1px solid var(--on-surface);
   background:var(--on-surface);color:#666), stark against the dark card. Restyled as a
   dark chip with a teal top accent, matching the calendar event chips. */
body.attendize .event-date {
 background-color: var(--surface-raised) !important;
 border-color: var(--accent-border) !important;
 border-top: 2px solid var(--accent) !important;
 box-shadow: 0 4px 12px var(--shadow-soft);
 color: var(--on-surface) !important;
}
body.attendize .event-date .month {
 color: var(--accent);
}
body.attendize .event-date .day {
 color: var(--on-surface);
}
body.attendize .event .nav-section > li > .section:after,
body.attendize .event .nav-section > li > a:after {
 background-image: linear-gradient(to bottom, var(--fill-0) 0%, var(--border) 50%, var(--fill-0) 100%);
}
body.attendize .event .section h4 {
 color: var(--on-surface);
}

/* Recent-orders list (.list-group-item) on the organiser dashboard sidebar */
body.attendize .list-group-item {
 background-color: var(--surface);
 border-color: var(--border);
 color: var(--on-surface);
}
body.attendize .list-group-item a {
 color: var(--accent);
}
body.attendize .list-group-item h6,
body.attendize .list-group-text {
 color: var(--on-surface-62);
}

/* Empty-state placeholders ("no upcoming events" / "no recent orders") */
body.attendize .alert-success {
 background-color: var(--fill) !important;
 border-color: var(--border);
 color: var(--on-surface-62);
}
body.attendize .alert-success a {
 color: var(--accent);
}

/* Event calendar widget (#calendar, FullCalendar 2.7.1 month view) */
body.attendize #calendar {
 background-color: var(--surface);
 border-color: var(--border);
}
body.attendize #calendar h2 {
 color: var(--on-surface);
}
body.attendize #calendar th,
body.attendize #calendar td,
body.attendize #calendar thead,
body.attendize #calendar tbody,
body.attendize #calendar .fc-divider,
body.attendize #calendar .fc-row,
body.attendize #calendar .fc-content,
body.attendize #calendar .fc-popover {
 border-color: var(--border-soft) !important;
}
/* Event pills: FullCalendar sets colour via an inline style
 (background-color:var(--badge-navy);border-color:var(--badge-navy)) from the dashboard's own
 JS config, not a class — only !important can beat an inline style. Swap
 the old flat purple for a translucent teal chip matching the accent used
 everywhere else (buttons, links, the today highlight below), instead of
 a solid loud fill that would be too heavy at this size. */
body.attendize #calendar .fc-event,
body.attendize #calendar .fc-event-dot {
 background-color: var(--accent-fill) !important;
 border-color: var(--accent-fill-strong) !important;
 border-left: 3px solid var(--accent) !important;
 border-radius: 6px !important;
 color: var(--on-accent-soft) !important;
 padding-left: 5px !important;
}
body.attendize #calendar .fc-event:hover {
 background-color: var(--accent-fill-hover) !important;
}
body.attendize #calendar .fc-event .fc-title,
body.attendize #calendar .fc-event .fc-time {
 color: var(--on-accent-soft) !important;
}
body.attendize #calendar .fc-popover {
 background-color: var(--surface);
}
body.attendize #calendar .fc-divider,
body.attendize #calendar .fc-popover .fc-header {
 background: var(--fill);
}
body.attendize #calendar .fc-popover .fc-header .fc-close {
 color: var(--on-surface-62);
}
body.attendize #calendar .fc-today {
 background: var(--accent-fill-soft);
}
body.attendize #calendar .fc-day-header,
body.attendize #calendar .fc-day-number {
 color: var(--on-surface);
}
body.attendize #calendar .fc-button {
 color: var(--on-surface);
}
body.attendize #calendar .fc-state-hover,
body.attendize #calendar .fc-state-down,
body.attendize #calendar .fc-state-active,
body.attendize #calendar .fc-state-disabled {
 background-color: var(--fill);
 color: var(--on-surface);
}

/* NOTE: The 4 Morris.js/Raphael charts (#theChart, #theChart2, #theChart3, #pieChart) render as inline SVG built by a <script> block at the bottom of resources/views/ManageEvent/Dashboard.blade.php (~lines 294-394) — grid lines, axis labels, and line/donut colors (e.g. hardcoded lineColors:['#0390b5','#0066ff']) are set as JS options / SVG attributes there, not via CSS, so they'll stay on their light-mode colors until that script's config is edited (out of scope for this CSS-only pass). */
/* NOTE: EventPanel.blade.php's .panel-heading carries a dead `data-style="background-color:...;background-image:url(...)"` attribute (should be `style=`) meant to tint each upcoming-event card with the event's own bg_color/bg_image — no JS ever reads it, so it's inert in both themes and the heading always falls back to the fixed .panel-success purple; not a dark-mode regression, just pre-existing dead code worth flagging. */
/* ===== Data display lane: tables, panels, alerts, labels/badges, pagination, modals, tooltips/popovers ===== */

/* Tables — base cell/border/text */
body.attendize .table>thead>tr>th,
body.attendize .table>tbody>tr>th,
body.attendize .table>tfoot>tr>th,
body.attendize .table>thead>tr>td,
body.attendize .table>tbody>tr>td,
body.attendize .table>tfoot>tr>td {
 border-color: var(--border);
 color: var(--on-surface-87);
}
body.attendize .table .table { background-color: transparent; }
body.attendize .table>tbody+tbody { border-top-color: var(--border); }
/* header row: was a hardcoded navy (#383d68), same leftover pattern as
 modal-header and .btn-default - replaced with the theme surface instead
 of keeping the old brand color. */
body.attendize .table tr>th {
 background-color: var(--surface-raised);
 color: var(--on-surface);
}
body.attendize .table>thead>tr>th {
 border-bottom: 2px solid var(--fill-18) !important;
}
body.attendize .table tr>th a,
body.attendize .table tr>th a:link,
body.attendize .table tr>th a:visited {
 color: var(--on-surface);
}
body.attendize .table tr>th a:hover { color: var(--accent); }

/* Small action-button pairs in table rows (e.g. Orders/Attendees:
 danger Cancel directly next to accent Details/Action) sit with zero
 margin between them - two fully-saturated, near-equal-brightness
 colors touching is genuinely hard on the eyes (reported live). Spacing
 alone does not fix that, so these row-level actions get the same
 soft-fill treatment as the label badges elsewhere in this file (tinted
 background + solid text, not a solid fill) - still clearly red vs
 teal, just far gentler at this small, frequently-repeated size.
 Full-size .btn-danger/.btn-primary (Cancel Order, Create Ticket - real
 CTAs) are untouched. */
body.attendize .table .btn-xs {
    margin: 2px 3px;
}
body.attendize .table .btn-xs.btn-danger {
    background-color: var(--danger-fill);
    border-color: transparent;
    color: var(--danger);
}
body.attendize .table .btn-xs.btn-danger:hover,
body.attendize .table .btn-xs.btn-danger:focus {
    background-color: var(--danger);
    color: var(--on-accent);
}
body.attendize .table .btn-xs.btn-primary,
body.attendize .table .btn-xs.btn-success {
    background-color: var(--accent-fill);
    border-color: transparent;
    color: var(--accent);
}
body.attendize .table .btn-xs.btn-primary:hover,
body.attendize .table .btn-xs.btn-primary:focus,
body.attendize .table .btn-xs.btn-success:hover,
body.attendize .table .btn-xs.btn-success:focus {
    background-color: var(--accent);
    color: var(--on-accent);
}

/* Table container border */
body.attendize .table-responsive {
 border-color: var(--border) !important;
}

/* Striped / hover row fills */
body.attendize .table-striped>tbody>tr:nth-child(odd)>td,
body.attendize .table-striped>tbody>tr:nth-child(odd)>th,
body.attendize .table-striped>tbody>tr.odd>td,
body.attendize .table-striped>tbody>tr.odd>th {
 background-color: var(--fill-soft);
}
body.attendize .table-hover>tbody>tr:hover>td,
body.attendize .table-hover>tbody>tr:hover>th {
 background-color: var(--fill);
}

/* Contextual row states (bootstrap .active/.success/.info/.warning/.danger applied to <tr>, e.g. Attendees.blade.php tr.danger for cancelled attendees) — reuse the app's existing brand hues (badge-success navy var(--badge-navy), badge-info cyan var(--info), badge-warning gold var(--warning), badge-danger coral var(--danger)) as tinted fills instead of the pale light-mode washes */
body.attendize .table>thead>tr.active>th,
body.attendize .table>tbody>tr.active>th,
body.attendize .table>tfoot>tr.active>th,
body.attendize .table>thead>tr.active>td,
body.attendize .table>tbody>tr.active>td,
body.attendize .table>tfoot>tr.active>td,
body.attendize .table-hover>tbody>tr.active:hover>td,
body.attendize .table-hover>tbody>tr.active:hover>th {
 background-color: var(--border-soft) !important;
 border-color: color-mix(in srgb, var(--on-surface) 14%, transparent) !important;
 color: var(--on-surface);
}
body.attendize .table>thead>tr.success>th,
body.attendize .table>tbody>tr.success>th,
body.attendize .table>tfoot>tr.success>th,
body.attendize .table>thead>tr.success>td,
body.attendize .table>tbody>tr.success>td,
body.attendize .table>tfoot>tr.success>td,
body.attendize .table-hover>tbody>tr.success:hover>td,
body.attendize .table-hover>tbody>tr.success:hover>th {
 background-color: rgba(94,102,166,.22) !important;
 border-color: rgba(94,102,166,.4) !important;
 color: #c2c5e8;
}
body.attendize .table>thead>tr.info>th,
body.attendize .table>tbody>tr.info>th,
body.attendize .table>tfoot>tr.info>th,
body.attendize .table>thead>tr.info>td,
body.attendize .table>tbody>tr.info>td,
body.attendize .table>tfoot>tr.info>td,
body.attendize .table-hover>tbody>tr.info:hover>td,
body.attendize .table-hover>tbody>tr.info:hover>th {
 background-color: color-mix(in srgb, var(--info) 14%, transparent) !important;
 border-color: color-mix(in srgb, var(--info) 35%, transparent) !important;
 color: var(--info);
}
body.attendize .table>thead>tr.warning>th,
body.attendize .table>tbody>tr.warning>th,
body.attendize .table>tfoot>tr.warning>th,
body.attendize .table>thead>tr.warning>td,
body.attendize .table>tbody>tr.warning>td,
body.attendize .table>tfoot>tr.warning>td,
body.attendize .table-hover>tbody>tr.warning:hover>td,
body.attendize .table-hover>tbody>tr.warning:hover>th {
 background-color: color-mix(in srgb, var(--warning) 14%, transparent) !important;
 border-color: color-mix(in srgb, var(--warning) 35%, transparent) !important;
 color: var(--warning);
}
body.attendize .table>thead>tr.danger>th,
body.attendize .table>tbody>tr.danger>th,
body.attendize .table>tfoot>tr.danger>th,
body.attendize .table>thead>tr.danger>td,
body.attendize .table>tbody>tr.danger>td,
body.attendize .table>tfoot>tr.danger>td,
body.attendize .table-hover>tbody>tr.danger:hover>td,
body.attendize .table-hover>tbody>tr.danger:hover>th {
 background-color: color-mix(in srgb, var(--danger) 14%, transparent) !important;
 border-color: var(--danger-fill) !important;
 color: var(--danger);
}
body.attendize .table>tbody>tr.stroke>td,
body.attendize .table>tbody>tr.stroke>th {
 background-color: var(--fill-05) !important;
 color: var(--on-surface-42) !important;
}

/* Row-level toolbar (hover action buttons shown per-row, e.g. Orders/Attendees row actions) */
body.attendize .table td .toolbar .btn.btn-link {
 color: var(--on-surface-62);
}

/* table-email list (Messages/Emails inbox-style table) */
body.attendize .table-email>tbody>tr>td.meta>.sender,
body.attendize .table-email>tbody>tr>td.message>.heading {
 color: var(--on-surface-87);
}
body.attendize .table-email>tbody>tr>td.meta>.date,
body.attendize .table-email>tbody>tr>td.message>.text {
 color: var(--on-surface-42);
}
body.attendize .table-email>tbody>tr:first-child>td {
 border-top-color: var(--border);
}

/* Panels (card-like containers wrapping tables, e.g. Orders.blade.php / Attendees.blade.php) */
body.attendize .panel {
 background-color: var(--surface);
 border-color: var(--border);
 color: var(--on-surface-62);
}
body.attendize .panel-body {
 color: var(--on-surface-87);
}
body.attendize .panel .table-responsive {
 border-color: var(--border);
}
body.attendize .panel>.panel-body+.table,
body.attendize .panel>.panel-body+.table-responsive {
 border-color: var(--border);
}
body.attendize .panel-heading {
 border-color: var(--border);
}
body.attendize .panel-default>.panel-heading,
body.attendize .panel-heading.panel-default {
 color: var(--on-surface-87);
 background-color: var(--fill-soft);
 border-color: var(--border);
}
body.attendize .panel-toolbar-wrapper {
 background-color: var(--fill-03);
 border-color: var(--fill-10);
}
body.attendize .panel .panel-toolbar .static-text {
 color: var(--on-surface-62);
}
body.attendize .panel.panel-default .panel-toolbar .btn-link,
body.attendize .panel.panel-default .panel-toolbar>.option>.btn {
 color: var(--on-surface-62);
}
body.attendize .panel.panel-default .panel-toolbar .btn-link:hover,
body.attendize .panel.panel-default .panel-toolbar>.option>.btn:hover {
 color: var(--on-surface);
}
body.attendize .panel .panel-toolbar>.nav-tabs>li.active>a,
body.attendize .panel .panel-toolbar>.nav-tabs>li.active>a:hover,
body.attendize .panel .panel-toolbar>.nav-tabs>li.active>a:active,
body.attendize .panel .panel-toolbar>.nav-tabs>li.active>a:focus {
 border-color: var(--border);
 border-bottom-color: transparent;
 background-color: var(--surface);
 color: var(--on-surface);
}
body.attendize .panel-default .panel-toolbar>.nav-tabs>li>a {
 color: var(--on-surface-42);
}
body.attendize .panel-default .panel-toolbar>.nav-tabs>li>a:hover,
body.attendize .panel-default .panel-toolbar>.nav-tabs>li.open>a {
 border-bottom-color: var(--border);
 color: var(--on-surface-87);
}
body.attendize .panel-footer {
 background-color: var(--fill-soft);
 border-top-color: var(--border);
 color: var(--on-surface-62);
}
/* panel-ribbon corner flags — flip the light triangle fill used behind the ribbon icon */
body.attendize .panel>.panel-ribbon:after {
 border-color: var(--surface) transparent transparent transparent;
}
body.attendize .panel>.panel-ribbon.pull-right:after {
 border-color: transparent var(--surface) transparent transparent;
}

/* Alerts — base .alert forces a white bg !important; flip to a dark surface and re-tint each variant's text/border using the app's existing brand hues so the semantic meaning (success/info/warning/danger) still reads */
body.attendize .alert {
 background: var(--surface) !important;
 border-color: var(--border);
 color: var(--on-surface-87);
}
body.attendize .alert h4 { color: inherit; }
body.attendize .alert-success {
 color: #b9bce0 !important;
 border-color: var(--badge-navy);
}
body.attendize .alert-success .alert-link { color: var(--on-surface); }
body.attendize .alert-info {
 color: var(--info) !important;
 border-color: #2f7c8c;
}
body.attendize .alert-info .alert-link { color: #9fe6f3; }
body.attendize .alert-warning {
 color: var(--warning) !important;
 border-color: #8a7332;
}
body.attendize .alert-warning .alert-link { color: #ffe9ab; }
body.attendize .alert-danger {
 color: var(--danger) !important;
 border-color: #8a3038;
}
body.attendize .alert-danger .alert-link { color: #ff8f9a; }
body.attendize .alert-boring {
 color: var(--on-surface-62) !important;
 background-color: var(--fill-soft) !important;
 border-color: var(--border) !important;
}

/* Labels & badges — these render as small self-contained colour pills (own bg + white text, e.g. Order status label in Orders.blade.php) that don't derive from page background, so their existing brand colours (navy/cyan/gold/coral) already read fine on black. No override needed. */

/* Pagination (Orders/Attendees list footer, Html paginator) */
body.attendize .pagination>li>a,
body.attendize .pagination>li>span,
body.attendize .pager>li>a,
body.attendize .pager>li>span {
 background-color: var(--surface);
 color: var(--accent);
 border-color: var(--border);
}
body.attendize .pagination>li>a:hover,
body.attendize .pagination>li>span:hover,
body.attendize .pagination>li>a:focus,
body.attendize .pagination>li>span:focus,
body.attendize .pager>li>a:hover,
body.attendize .pager>li>span:hover {
 background-color: var(--border-soft);
 border-color: var(--fill-18);
 color: var(--on-surface) !important;
}
body.attendize .pagination>.active>a,
body.attendize .pagination>.active>span,
body.attendize .pagination>.active>a:hover,
body.attendize .pagination>.active>span:hover,
body.attendize .pagination>.active>a:focus,
body.attendize .pagination>.active>span:focus,
body.attendize .pager>.active>a,
body.attendize .pager>.active>span {
 background-color: var(--accent);
 border-color: var(--accent);
 color: var(--on-accent) !important;
}
body.attendize .pagination>.disabled>a,
body.attendize .pagination>.disabled>a:hover,
body.attendize .pagination>.disabled>a:focus,
body.attendize .pagination>.disabled>span,
body.attendize .pagination>.disabled>span:hover,
body.attendize .pagination>.disabled>span:focus {
 background-color: var(--surface);
 border-color: var(--border);
 color: var(--on-surface-42);
}

/* Modals (Shared/Layouts/Modal.blade.php shell — used for order details, cancel/refund, message, invite, import, etc.) */
body.attendize .modal-content {
 background-color: var(--surface);
 border-color: var(--border);
 box-shadow: 0 3px 9px color-mix(in srgb, var(--canvas) 60%, transparent);
}
/* modal-header: was kept on its stock brand-navy fill (#404675) as
 "already dark, theme-independent" - true, but it stands out as a
 leftover next to the teal-accent design used everywhere else, so it
 gets the same surface-raised treatment as the rest of the modal shell. */
body.attendize .modal-header {
 background-color: var(--surface-raised);
 border-bottom: 1px solid var(--border);
 color: var(--on-surface);
}
body.attendize .modal-body {
 background-color: var(--surface);
 color: var(--on-surface-87);
}
body.attendize .modal-footer {
 background-color: var(--fill-soft);
 border-top-color: var(--border);
 color: var(--on-surface-62);
}
body.attendize .modal-backdrop {
 background: color-mix(in srgb, var(--canvas) 75%, transparent) !important;
}

/* Tooltips (bootstrap .tooltip-inner is already black-on-white text — theme independent, left as-is) */

/* Popovers */
body.attendize .popover {
 background-color: var(--surface);
 border-color: var(--fill-18);
 box-shadow: 0 5px 10px var(--shadow);
}
body.attendize .popover-title {
 background-color: var(--fill-soft);
 border-bottom-color: var(--border);
 color: var(--on-surface-87);
}
body.attendize .popover-content {
 color: var(--on-surface-87);
}
body.attendize .popover.top>.arrow { border-top-color: var(--fill-18); }
body.attendize .popover.top>.arrow:after { border-top-color: var(--surface); }
body.attendize .popover.bottom>.arrow { border-bottom-color: var(--fill-18); }
body.attendize .popover.bottom>.arrow:after { border-bottom-color: var(--surface); }
body.attendize .popover.left>.arrow { border-left-color: var(--fill-18); }
body.attendize .popover.left>.arrow:after { border-left-color: var(--surface); }
body.attendize .popover.right>.arrow { border-right-color: var(--fill-18); }
body.attendize .popover.right>.arrow:after { border-right-color: var(--surface); }

/* NOTE: no DataTables plugin classes found anywhere in application.css or resources/views/ManageEvent — the admin uses plain server-rendered .table + Laravel paginator, not the JS DataTables plugin. */
/* NOTE: no .tooltip/.popover instantiation found in ManageEvent views via grep — Bootstrap tooltip/popover JS may be unused in this section; rules above are included defensively since the CSS classes exist in application.css. */
/* NOTE: .alert-warning text color var(--warning) on a near-black surface has borderline contrast for small text (~3:1) — same relative contrast issue already existed in light mode (gold text on near-white bg); flagging in case a brighter gold is wanted later. */
/* ============================================================
 Theme toggle button — shared markup/behaviour, both admin layouts
 ============================================================ */
/* The li height here is NOT a fixed number anywhere - it is set by the
 sibling nav-link <a> tags height/line-height, which itself switches
 between two different LESS values (@header-height vs @header-height-md)
 at the md breakpoint (header-mq.less). Matching that height by copying
 a pixel number therefore breaks again at the other breakpoint. Instead,
 make the row a flex container (stretch is the flex default), so every
 li - including this one - is always exactly as tall as its tallest
 sibling, at any width, with no number to keep in sync. */
body.attendize .navbar-nav.navbar-right {
 display: flex;
}
.theme-toggle-wrap {
 display: flex;
}
.theme-toggle {
 background: none;
 border: none;
 cursor: pointer;
 display: flex;
 align-items: center;
 justify-content: center;
 width: 100%;
 height: 100%;
 padding: 0 15px;
 font-size: 16px;
 color: inherit;
 text-align: center;
 opacity: .75;
 transition: opacity .15s;
}
.theme-toggle:hover,
.theme-toggle:focus {
 opacity: 1;
 outline: none;
}
.theme-toggle i {
 vertical-align: middle;
}

/* ============================================================
 Modern flat pass — round + flatten to match the public frontpage's
 design language (rounded surfaces, no shadows on static elements,
 consistent teal accent). Dark mode only for now.
 ============================================================ */
body.attendize .panel {
 border-radius: 12px;
 box-shadow: none;
 overflow: hidden;
}
/* .event-date (the SEP/07 date badge) is deliberately position:absolute;
   top:-13px — it pokes out above the card on purpose. The overflow:hidden
   above (added for rounded corners) was clipping its top half. */
body.attendize .event.panel {
 overflow: visible;
}
body.attendize .event .panel-heading {
 overflow: visible;
 border-top-left-radius: 12px;
}
body.attendize .panel-heading {
 border-radius: 0;
}
body.attendize .btn {
 border-radius: 999px;
 box-shadow: none;
 font-weight: 600;
}
body.attendize .btn-success,
body.attendize .btn-primary {
 background-color: var(--accent);
 border-color: var(--accent);
 color: var(--on-accent);
}
body.attendize .btn-success:hover,
body.attendize .btn-success:focus,
body.attendize .btn-primary:hover,
body.attendize .btn-primary:focus {
 background-color: var(--accent-hover);
 border-color: var(--accent-hover);
 color: var(--on-accent);
}
body.attendize .form-control {
 border-radius: 10px;
}
body.attendize .modal-content {
 border-radius: 16px;
 box-shadow: 0 20px 50px color-mix(in srgb, var(--canvas) 60%, transparent);
}
body.attendize .label,
body.attendize .badge {
 border-radius: 999px;
}
body.attendize .alert {
 border-radius: 10px;
}
body.attendize .dropdown-menu {
 border-radius: 12px;
 box-shadow: 0 12px 30px var(--shadow);
 overflow: hidden;
}
body.attendize .stat-box {
 border-radius: 14px;
}

/* No custom CSS for .navbar-main / .navbar-nav.navbar-left here - reverted
 to original (this session added, then repeatedly re-fixed, a positioning
 override for the hamburger/"sandwich menu" toggle; removed entirely per
 explicit request instead of continuing to patch it). Stock application.css
 governs it as-is: shown as a stacked block below 992px, hidden above it. */

/* Mobile menu (< 992px), 2026-11-03. Replaces the stock slide-over (html.sidebar-open-ltr),
 whose overflow:hidden + transforms froze the page and made iOS Safari show black bars.
 The Menu button (.tl-menu-toggle) toggles html.tl-menu-open, which unfolds the sidebar in
 the page flow. Desktop keeps the fixed sidebar. */
@media (max-width: 991px) {
 /* Stock CSS pins the header at 55px and pads #main by 55px while the stacked toolbar rows
 spill below it; let the header take its real height so the menu can follow it in flow. */
 body.attendize #header.navbar { height: auto; }
 body.attendize #header.navbar ~ #main { padding-top: 0; }
 body.attendize .sidebar.sidebar-left.sidebar-menu {
 display: none;
 position: static;
 width: auto;
 height: auto;
 transform: none;
 border-bottom: 1px solid var(--border);
 }
 html.tl-menu-open body.attendize .sidebar.sidebar-left.sidebar-menu { display: block; }
 body.attendize .sidebar .content { height: auto; overflow: visible; }
 html.tl-menu-open .tl-menu-toggle { color: var(--accent) !important; }
}

/* Light mode: the navbar logo is ticketlink-logo-light.png (white-on-transparent,
 confirmed via pixel check) with no theme-conditional swap, rendered
 against light mode's white .navbar-header surface - invisible, reading
 as a blank gap above the page. ticketlink-logo-dark.png already exists as the
 correct light-surface counterpart (black wordmark, transparent bg);
 swap to it instead of guessing at a filter. */
html[data-theme="light"] body.attendize .navbar-brand img.logo {
 content: url('/assets/images/ticketlink-logo-dark.png?v=20261109');
}


/* Morris.js pie chart (#pieChart, "Registrations By Ticket") sets slice
   labels via a plain SVG fill="#000000" presentation attribute from its JS
   config — invisible on the dark panel. Presentation attributes sit below
   CSS in the cascade, so this wins without needing !important on inline
   style (there isn't one), same principle as the calendar fix. */
body.attendize .statChart svg text {
    fill: var(--on-surface) !important;
}

/* ============================================================
   Coverage sweep — gaps found by auditing all 48 admin pages
   against this file. Each block below is scoped to body.attendize
   and driven by the same CSS variables as everything else, so it
   applies correctly in both themes with no new logic.
   ============================================================ */

/* .text-muted: hardcoded color:#a2a2a2 !important in application.css,
   used across most list pages (Events, Highlights, Tickets, Waiting
   List, Check-in landing, etc.) for secondary/subtext. */
body.attendize .text-muted {
    color: var(--on-surface-42) !important;
}

/* .well / .well-sm / .well-lg: stock Bootstrap light-grey box
   (background:#f5f5f5), used for the affiliate/fee boxes on event
   Customize, the attendee summary on Manage/Cancel Order modals, and
   the header count on Print Attendees. */
body.attendize .well {
    background-color: var(--fill-soft);
    border-color: var(--border);
    color: var(--on-surface-62);
    box-shadow: none;
}
body.attendize .bgcolor-white {
    background-color: var(--surface) !important;
}

/* .label base rule ships a literal 1px solid #000 border in
   application.css; the variant backgrounds (info/warning/danger/
   default/success/primary) are already self-colored and readable in
   both themes, so only the black ring needs removing. */
body.attendize .label {
    border-color: transparent;
}

/* SimpleMDE/CodeMirror markdown editor — boots unconditionally on the
   organiser "about" field (Organiser Customize, Create Organiser) and
   the event description field (Create/Edit Event modal). Create
   Organiser has no .attendize (MasterWithoutMenus layout, always-dark
   like the rest of that layout), so this targets plain body too, not
   just body.attendize. */
body .CodeMirror {
    background: var(--surface-raised) !important;
    color: var(--on-surface) !important;
    border-color: var(--border) !important;
}
body .CodeMirror-gutters {
    background-color: var(--surface) !important;
    border-color: var(--border) !important;
}
body .CodeMirror-linenumber {
    color: var(--on-surface-42) !important;
}
body .CodeMirror-cursor {
    border-left-color: var(--on-surface) !important;
}
body .CodeMirror-selected {
    background: var(--fill-24) !important;
}
body .CodeMirror-activeline-background {
    background: var(--fill-soft) !important;
}
body .editor-toolbar {
    background: var(--surface) !important;
    border-color: var(--border) !important;
}
body .editor-toolbar a {
    color: var(--on-surface-62) !important;
}
body .editor-toolbar a:hover,
body .editor-toolbar a.active {
    background: var(--fill) !important;
    border-color: var(--border) !important;
    color: var(--on-surface) !important;
}
body .editor-toolbar i.separator {
    border-left-color: var(--border) !important;
    border-right-color: transparent !important;
}
body .editor-toolbar.disabled-for-preview a:not(.no-disable) {
    background: var(--surface) !important;
}
body .editor-statusbar {
    color: var(--on-surface-42) !important;
}
body .editor-preview,
body .editor-preview-side {
    background: var(--surface-raised) !important;
    color: var(--on-surface) !important;
    border-color: var(--border) !important;
}
body .editor-preview pre,
body .editor-preview-side pre {
    background: var(--fill) !important;
    color: var(--on-surface) !important;
}
body .editor-preview table td,
body .editor-preview table th,
body .editor-preview-side table td,
body .editor-preview-side table th {
    border-color: var(--border) !important;
}

/* DateTimePicker plugin (.dtpicker-*) — the sale-date fields on
   Create/Edit Ticket. The red action button is left alone, same as
   btn-success/btn-danger elsewhere: already saturated/self-colored. */
body.attendize .dtpicker-content {
    background: var(--surface) !important;
    color: var(--on-surface) !important;
}
body.attendize .dtpicker-cont {
    border-color: var(--border) !important;
}
body.attendize .dtpicker-header .dtpicker-title {
    color: var(--accent) !important;
}
body.attendize .dtpicker-components .dtpicker-compValue {
    background: var(--surface-raised) !important;
    color: var(--on-surface) !important;
    border-color: var(--border) !important;
}
body.attendize .dtpicker-overlay .dtpicker-compValue:focus {
    background: var(--fill) !important;
}
body.attendize .dtpicker-components .dtpicker-compButton {
    background: var(--surface-raised) !important;
}

/* Ticket Presets page (ManageOrganiser/TicketTemplates.blade.php) ships
   its own hardcoded light-mode <style> block for its entire content -
   these rules out-specify it (body.attendize + class beats a bare
   class selector) without touching that file directly. */
body.attendize .preset {
    background: var(--surface-raised);
    border-color: var(--border);
}
body.attendize .preset > .preset-head {
    border-bottom-color: var(--border);
}
body.attendize .tier-table th {
    color: var(--on-surface-42);
}
body.attendize .tier-trans {
    background: var(--fill-soft);
}
body.attendize .tier-trans .lang-row label {
    color: var(--on-surface-42);
}
body.attendize .preset-foot {
    background: var(--fill-soft);
    border-top-color: var(--border);
}
body.attendize .rules-hint {
    color: var(--on-surface-42);
}

/* Promote.blade.php - the entire page is one raw <pre>[PROMOTE PAGE]</pre>
 stub; application.css styles bare pre with a fixed light-grey box
 (color:#333, background:#f5f5f5, border:1px solid #ccc), unstyled here. */
body.attendize pre {
    background-color: var(--surface-raised);
    border-color: var(--border);
    color: var(--on-surface);
}

/* .create_organiser / .address-manual: an inline <style> block on the
 event Customize (and organiser create) forms sets a near-white fixed
 background (#fafafa) for the manual-address-entry fallback box - same
 out-of-reach-inline-style situation as Ticket Presets, same fix
 (body.attendize-prefixed beats the page's bare class on specificity). */
body.attendize .create_organiser,
body.attendize .address-manual {
    background-color: var(--surface-raised);
    border-color: var(--border);
    color: var(--on-surface);
}

/* Check-in App (ManageEvent/CheckIn.blade.php) previously never loaded
   this stylesheet at all - now wired in below. Its Bootstrap chrome
   (.input-group/.btn/.form-control/.list-group/.label/.alert) is
   already covered elsewhere in this file once body.attendize is
   present; only its own page-specific classes from check_in.css need
   overrides here. The outer body keeps its permanent dark-blue brand
   background in both themes (same choice already made for the login
   layout) - only the white content surfaces (header, list card) follow
   the theme, since in light mode they already match var(--surface).*/
body#app.attendize header,
body.attendize .attendeeList .container {
    background: var(--surface) !important;
}
body.attendize .attendeeList .container .attendee_list .attendees_title {
    color: var(--on-surface-62) !important;
}
body.attendize .qr_search {
    background: var(--surface) !important;
    color: var(--on-surface) !important;
    border-right-color: var(--border) !important;
}
body.attendize .at {
    background: var(--surface) !important;
    color: var(--on-surface) !important;
    border-bottom: 1px solid var(--border);
}
body.attendize .at:active {
    background-color: var(--fill) !important;
}
body.attendize .at.arrived {
    background-color: var(--accent-fill-soft) !important;
}
body.attendize .at.not_arrived .ci {
    background-color: var(--fill-16) !important;
}
body.attendize footer {
    background-color: var(--surface-raised) !important;
}
body.attendize .theme-toggle-checkin {
    color: var(--on-surface-62);
}
body.attendize .theme-toggle-checkin:hover {
    color: var(--on-surface);
}
