/* ================================================================
   Joy Zone CRM — Dashboard CSS
   Bootstrap 5.3 RTL | Mobile-First | No Glass Effects
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

/* ── Root Variables ── */
:root {
  --jz-sidebar:        270px;
  --jz-navbar:         62px;
  --jz-font:           'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
  --jz-radius:         12px;
  --jz-radius-sm:      8px;
  --jz-t:              0.22s cubic-bezier(0.4, 0, 0.2, 1);

  /* Sidebar colors (always dark) */
  --sb-bg:             #0d1526;
  --sb-hover:          rgba(255,255,255,0.06);
  --sb-active:         rgba(99,102,241,0.2);
  --sb-border:         rgba(255,255,255,0.07);
  --sb-text:           #94a3b8;
  --sb-text-active:    #e2e8f0;
}

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Apply Cairo only to text-rendering elements — NOT pseudo-elements that FA uses */
body, input, button, select, textarea, label, p, h1, h2, h3, h4, h5, h6,
span, a, div, li, td, th, small, strong, em {
  font-family: var(--jz-font);
}

/* ── CRITICAL: Protect FontAwesome glyph rendering ──
   Cairo font does NOT contain FA unicode glyphs (e.g. \f095).
   We must explicitly restore FA font on all icon elements.
   Without this, Cairo overrides ::before and renders ☐ boxes.
   ───────────────────────────────────────────────────────────── */
.fa, .fas, .far, .fab, .fal, .fat, .fad,
.fa-solid, .fa-regular, .fa-light, .fa-thin,
.fa-duotone, .fa-brands,
i[class*="fa-"] {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands",
               "FontAwesome" !important;
}

html, body {
  min-height: 100vh;
  overflow-x: clip;
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
}

/* RTL Cairo Font Protection — Never break cursive ligatures with letter-spacing */
html[dir="rtl"],
:root:not([dir="ltr"]),
html[dir="rtl"] body,
html[dir="rtl"] * {
  letter-spacing: normal !important;
}

html[dir="ltr"] body {
  letter-spacing: -0.01em;
}

/* Ensure no text-clipping on descenders in truncated items or Cairo font */
.text-truncate {
  padding-bottom: 3px;
  line-height: 1.45;
}

/* Headings font clipping protection (protects Hamza & Arabic dots) */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  line-height: 1.35 !important;
  padding-top: 1px;
  padding-bottom: 2px;
}

/* Button font protection */
.btn {
  line-height: 1.35 !important;
}

/* Protect Arabic descenders, diacritics and dots in Badges */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  line-height: 1.35 !important;
  padding: 0.35em 0.65em;
  letter-spacing: normal !important;
}

.badge.d-none,
.badge[hidden] {
  display: none !important;
}

.badge i, .badge svg {
  line-height: 1 !important;
  vertical-align: middle;
}

/* ================================================================
   LAYOUT
   ================================================================ */
.dashboard-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
  position: relative;
}

/* ── Main Content ── */
.main-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  width: 100%;
  /* transitions for sidebar collapse */
  transition: margin-right var(--jz-t), margin-left var(--jz-t), width var(--jz-t);
}

/* ── Content Body ── */
.content-body {
  padding: 16px;
  flex: 1;
}

/* ================================================================
   SIDEBAR — Mobile First (hidden by default)
   ================================================================ */
.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  width: var(--jz-sidebar);
  max-width: 85vw;
  background: var(--sb-bg);
  color: var(--sb-text);
  z-index: 1055;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform var(--jz-t);
}

/* RTL Sidebar (Default) */
html[dir="rtl"] .sidebar,
:root:not([dir="ltr"]) .sidebar {
  right: 0;
  left: auto;
  border-left: 1px solid var(--sb-border);
  border-right: none;
  transform: translateX(110%);
  box-shadow: -8px 0 40px rgba(0,0,0,0.4);
}

/* LTR Sidebar (English) */
html[dir="ltr"] .sidebar {
  left: 0;
  right: auto;
  border-right: 1px solid var(--sb-border);
  border-left: none;
  transform: translateX(-110%);
  box-shadow: 8px 0 40px rgba(0,0,0,0.4);
}

.sidebar.show {
  transform: translateX(0) !important;
}

/* Backdrop — offcanvas overlay for mobile */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--jz-t);
}

.sidebar-backdrop.show {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

/* ── Sidebar Brand / Header ── */
.sidebar-brand {
  height: var(--jz-navbar);
  min-height: var(--jz-navbar);
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--sb-border);
  flex-shrink: 0;
}

.sidebar-logo-icon {
  width: 36px;
  height: 36px;
  background: #6366f1;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
}

/* ── Sidebar Search Box ── */
.sidebar-search-box {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 10px 14px 12px;
}

.sidebar-search-inner {
  height: 38px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease-in-out;
}

.sidebar-search-inner:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.sidebar-search-inner:focus-within {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2) !important;
}

.sidebar-search-inner .sidebar-search-icon {
  font-size: 13px;
  color: #94a3b8;
  flex-shrink: 0;
  transition: color 0.2s;
}

.sidebar-search-inner:focus-within .sidebar-search-icon {
  color: #38bdf8;
}

.sidebar-search-input {
  font-size: 13px;
  color: #ffffff;
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  min-width: 0;
  line-height: 1.5;
  font-family: inherit;
}

.sidebar-search-input::placeholder {
  color: #94a3b8;
  font-size: 12.5px;
  opacity: 0.85;
}

.sidebar-search-clear {
  color: #94a3b8;
  font-size: 13px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.15s;
}

.sidebar-search-clear:hover {
  color: #f87171 !important;
}

/* ── Sidebar Scrollable Menu ── */
.sidebar-menu {
  flex: 1;
  padding: 12px 8px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #1e293b transparent;
}

.sidebar-menu::-webkit-scrollbar { width: 3px; }
.sidebar-menu::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 2px; }

/* ── Section Label ── */
.sidebar-label {
  font-size: 10px;
  text-transform: uppercase;
  color: #475569;
  font-weight: 700;
  padding: 10px 14px 4px;
  letter-spacing: 1px;
}

/* ── Level 1 Accordion Button ── */
.menu-accordion-btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--sb-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  font-family: var(--jz-font);
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 3px;
}

html[dir="rtl"] .menu-accordion-btn,
:root:not([dir="ltr"]) .menu-accordion-btn {
  text-align: right;
}

html[dir="ltr"] .menu-accordion-btn {
  text-align: left;
}

.menu-accordion-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.09);
  color: var(--sb-text-active);
}

.menu-accordion-btn[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--sb-text-active);
}

/* Category Dot Indicator */
.cat-dot {
  display: inline-block !important;
  width: 9px !important;
  height: 9px !important;
  min-width: 9px !important;
  min-height: 9px !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
  margin-inline-end: 2px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-accordion-btn:hover .cat-dot {
  transform: scale(1.3);
}

.cat-title {
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: -0.01em;
}

.cat-count {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  margin-inline-start: 4px;
}

.accordion-arrow {
  font-size: 10px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.55);
  margin-inline-start: auto;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), color 0.18s ease;
}

.menu-accordion-btn[aria-expanded="true"] .accordion-arrow {
  transform: rotate(180deg);
  color: var(--cat-accent, #38bdf8);
}

/* ── Level 2 Submenu & Hierarchy Tree ── */
.submenu-container {
  position: relative;
  margin-top: 4px;
  margin-bottom: 6px;
  transition: all 0.2s ease;
}

html[dir="rtl"] .submenu-container,
:root:not([dir="ltr"]) .submenu-container {
  margin-right: 17px;
  margin-left: 0;
  padding-right: 0;
  padding-left: 0;
  border-right: 1.5px solid rgba(255, 255, 255, 0.22) !important; /* Vertical Tree Trunk */
  border-left: none;
}

html[dir="ltr"] .submenu-container {
  margin-left: 17px;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  border-left: 1.5px solid rgba(255, 255, 255, 0.22) !important; /* Vertical Tree Trunk */
  border-right: none;
}

.sub-menu-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  color: #f1f5f9;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 4px;
}

html[dir="rtl"] .sub-menu-link,
:root:not([dir="ltr"]) .sub-menu-link {
  margin-right: 13px;
  margin-left: 4px;
}

html[dir="ltr"] .sub-menu-link {
  margin-left: 13px;
  margin-right: 4px;
}

/* Horizontal Tree Branch connecting to menu item */
.sub-menu-link::before {
  content: '' !important;
  position: absolute !important;
  top: 50% !important;
  height: 1.5px !important;
  background: rgba(255, 255, 255, 0.22) !important;
  transform: translateY(-50%) !important;
  transition: all 0.18s ease !important;
  pointer-events: none;
}

html[dir="rtl"] .sub-menu-link::before,
:root:not([dir="ltr"]) .sub-menu-link::before {
  right: -13px !important;
  width: 13px !important;
}

html[dir="ltr"] .sub-menu-link::before {
  left: -13px !important;
  width: 13px !important;
}

/* Submenu Icon */
.sub-menu-icon {
  width: 16px;
  font-size: 13px;
  flex-shrink: 0;
  text-align: center;
  transition: transform 0.2s ease, filter 0.2s ease;
}

/* Submenu Text */
.sub-menu-text {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: #f1f5f9;
  transition: color 0.15s ease;
}

/* ── Hover State ── */
.sub-menu-link:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.sub-menu-link:hover .sub-menu-text {
  color: #ffffff !important;
}

.sub-menu-link:hover .sub-menu-icon {
  transform: scale(1.15);
  filter: brightness(1.3);
}

/* When hovered, branch line lights up with item color (no glow) */
.sub-menu-link:hover::before {
  background: var(--item-color, #38bdf8) !important;
  height: 2.5px !important;
  box-shadow: none !important;
}

/* ── Active / Selected State ── */
.sub-menu-link.active {
  background: var(--cat-active-bg, linear-gradient(135deg, #2BB3B8, #0ea5e9)) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}

.sub-menu-link.active .sub-menu-text {
  color: #ffffff !important;
  font-weight: 700 !important;
}

.sub-menu-link.active .sub-menu-icon {
  color: #ffffff !important;
  transform: scale(1.08);
  filter: none !important;
}

/* When active, the branch line lights up cleanly without blur glow */
.sub-menu-link.active::before {
  background: var(--cat-accent, #2BB3B8) !important;
  height: 2.5px !important;
  box-shadow: none !important;
}

/* ── Level 1 Direct Link ── */
.nav-link-custom {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  color: #e2e8f0;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.18s ease;
  margin-bottom: 3px;
}

.nav-link-custom:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
}

.nav-link-custom.active {
  color: #ffffff !important;
  background: var(--cat-active-bg, linear-gradient(135deg, #2BB3B8, #0ea5e9)) !important;
  font-weight: 700;
  box-shadow: none !important;
}

.nav-link-custom.active i,
.nav-link-custom.active span {
  color: #ffffff !important;
}

/* ── Sidebar User Footer ── */
.sidebar-user-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--sb-border);
  flex-shrink: 0;
}

/* ================================================================
   TOP NAVBAR (Sticky across all portals & pages)
   ================================================================ */
.top-navbar {
  height: var(--jz-navbar);
  background: var(--bs-body-bg);
  border-bottom: 1px solid var(--bs-border-color);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1030;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.navbar-page-subtitle { display: none; }

/* ================================================================
   DESKTOP ≥ 992px
   ================================================================ */
@media (min-width: 992px) {

  /* RTL Desktop Docking (Default) */
  html[dir="rtl"] .sidebar,
  :root:not([dir="ltr"]) .sidebar {
    transform: translateX(0);
    right: 0;
    left: auto;
    border-left: 1px solid var(--sb-border);
    border-right: none;
    box-shadow: none;
  }
  html[dir="rtl"] .main-content,
  :root:not([dir="ltr"]) .main-content {
    margin-right: var(--jz-sidebar);
    margin-left: 0;
    width: calc(100% - var(--jz-sidebar));
  }
  html[dir="rtl"] body.sidebar-collapsed .sidebar,
  :root:not([dir="ltr"]) body.sidebar-collapsed .sidebar {
    transform: translateX(110%);
  }
  html[dir="rtl"] body.sidebar-collapsed .main-content,
  :root:not([dir="ltr"]) body.sidebar-collapsed .main-content {
    margin-right: 0;
    margin-left: 0;
    width: 100%;
  }

  /* LTR Desktop Docking (English) */
  html[dir="ltr"] .sidebar {
    transform: translateX(0);
    left: 0;
    right: auto;
    border-right: 1px solid var(--sb-border);
    border-left: none;
    box-shadow: none;
  }
  html[dir="ltr"] .main-content {
    margin-left: var(--jz-sidebar);
    margin-right: 0;
    width: calc(100% - var(--jz-sidebar));
  }
  html[dir="ltr"] body.sidebar-collapsed .sidebar {
    transform: translateX(-110%);
  }
  html[dir="ltr"] body.sidebar-collapsed .main-content {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }

  /* Backdrop never on desktop */
  .sidebar-backdrop { display: none !important; pointer-events: none !important; }

  .top-navbar { padding: 0 24px; }
  .content-body { padding: 24px 28px; }
  .navbar-page-subtitle { display: block; }
}

/* ── iPad Landscape & Medium Screens (992px to 1199.98px) ── */
@media (min-width: 992px) and (max-width: 1199.98px) {
  :root {
    --jz-sidebar: 230px;
  }
  .content-body {
    padding: 16px 18px !important;
  }
  .top-navbar {
    padding: 0 16px !important;
  }
  .card.p-4 {
    padding: 16px 18px !important;
  }
}

/* ── iPad Portrait & Tablets (768px to 991.98px) ── */
@media (min-width: 768px) and (max-width: 991.98px) {
  .content-body {
    padding: 14px 16px !important;
  }
  .top-navbar {
    padding: 0 14px !important;
  }
  .card.p-4 {
    padding: 14px 16px !important;
  }
}

/* ── Mobile Devices (<768px) ── */
@media (max-width: 767.98px) {
  .content-body {
    padding: 10px 12px !important;
  }
  .top-navbar {
    padding: 0 10px !important;
  }
  .card.p-4 {
    padding: 12px 10px !important;
  }
  /* Navbar live activity stats compact on mobile */
  .jz-navbar-stat span[data-i18n-en],
  .jz-navbar-stat span[data-i18n-ar] {
    display: none !important;
  }
  .jz-navbar-stat {
    padding: 3px 6px !important;
  }
}

@media (max-width: 575.98px) {
  #navbarLiveActivityWrap {
    display: none !important;
  }
  .breadcrumb-item:not(.active) {
    display: none !important;
  }
}

/* Show backdrop only on mobile when opened, hide closed sidebar from touch events */
@media (max-width: 991.98px) {
  .sidebar:not(.show) {
    visibility: hidden;
    pointer-events: none;
  }
  .sidebar-backdrop { display: none; pointer-events: none; }
  .sidebar-backdrop.show { display: block; pointer-events: auto; }
}

/* ================================================================
   CARDS & WIDGETS
   ================================================================ */
.card {
  background: var(--bs-card-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: var(--jz-radius);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
  transition: box-shadow 0.2s;
}

.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }

.card-header {
  background: transparent;
  border-bottom: 1px solid var(--bs-border-color);
  padding: 14px 20px;
  font-weight: 700;
  font-size: 14px;
}

.card-body { padding: 20px; }

/* ── KPI Stat Widget ── */
.stat-widget {
  background: var(--bs-card-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: var(--jz-radius);
  padding: 18px 20px;
  height: 100%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: transform 0.15s, box-shadow 0.15s;
}

.stat-widget:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.stat-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}

.stat-icon.bg-primary,
.stat-icon.bg-primary.bg-opacity-10 {
  background-color: rgba(var(--bs-primary-rgb, 99, 102, 241), 0.12) !important;
  color: var(--bs-primary, #6366f1) !important;
}

.stat-icon.bg-info,
.stat-icon.bg-info.bg-opacity-10 {
  background-color: rgba(var(--bs-info-rgb, 6, 182, 212), 0.12) !important;
  color: var(--bs-info, #06b6d4) !important;
}

.stat-icon.bg-success,
.stat-icon.bg-success.bg-opacity-10 {
  background-color: rgba(var(--bs-success-rgb, 16, 185, 129), 0.12) !important;
  color: var(--bs-success, #10b981) !important;
}

.stat-icon.bg-warning,
.stat-icon.bg-warning.bg-opacity-10 {
  background-color: rgba(var(--bs-warning-rgb, 245, 158, 11), 0.12) !important;
  color: var(--bs-warning, #f59e0b) !important;
}

.stat-icon.bg-danger,
.stat-icon.bg-danger.bg-opacity-10 {
  background-color: rgba(var(--bs-danger-rgb, 239, 68, 68), 0.12) !important;
  color: var(--bs-danger, #ef4444) !important;
}

/* ── Refined Action Buttons Cluster ── */
.menu-item-card .btn-outline-primary,
.menu-item-card .btn-outline-success,
.menu-item-card .btn-outline-danger,
.menu-item-card .btn-outline-secondary {
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.menu-item-card .btn-outline-primary:hover {
  background-color: var(--bs-primary) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(var(--bs-primary-rgb, 99, 102, 241), 0.3);
}

.menu-item-card .btn-outline-success:hover {
  background-color: var(--bs-success) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(var(--bs-success-rgb, 16, 185, 129), 0.3);
}

.menu-item-card .btn-outline-danger:hover {
  background-color: var(--bs-danger) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(var(--bs-danger-rgb, 239, 68, 68), 0.3);
}

.menu-item-card .btn-outline-secondary:hover {
  background-color: var(--bs-secondary) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* ── Enterprise Banners ── */
.enterprise-banner {
  border-radius: var(--jz-radius);
  padding: 22px 24px;
  color: #fff;
}

.banner-operator, .banner-operators { background: #0f172a; border: 1px solid #1e293b; }
.banner-superadm { background: #1e1b4b; border: 1px solid #312e81; }
.banner-owners   { background: #064e3b; border: 1px solid #065f46; }

/* Micro-spacing utilities */
.gap-1\.5 { gap: 0.375rem !important; }
.gap-2\.5 { gap: 0.625rem !important; }
.p-2\.5 { padding: 0.625rem !important; }

/* ================================================================
   TABLES & RESPONSIVE DATA GRIDS
   ================================================================ */
.table-responsive {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.6) transparent;
  border-radius: var(--jz-radius-sm);
  border: 1px solid var(--bs-border-color);
  background-color: var(--bs-body-bg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  margin-bottom: 1rem;
  position: relative;
}

/* Custom sleek scrollbar for table-responsive across all devices */
.table-responsive::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}
.table-responsive::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.04);
  border-radius: 4px;
}
[data-bs-theme="dark"] .table-responsive::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
}
.table-responsive::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.6);
  border-radius: 4px;
  border: 1px solid transparent;
  background-clip: padding-box;
  transition: background 0.2s ease;
}
.table-responsive::-webkit-scrollbar-thumb:hover {
  background: var(--bs-primary, #6366f1);
}

.table {
  --bs-table-bg: transparent;
  width: 100%;
  margin-bottom: 0;
  vertical-align: middle;
  border-collapse: separate;
  border-spacing: 0;
}

.table thead th {
  font-size: 12px;
  font-weight: 700;
  color: var(--bs-secondary-color);
  background-color: var(--bs-tertiary-bg);
  padding: 12px 14px;
  border-bottom: 2px solid var(--bs-border-color);
  border-top: none;
  white-space: nowrap;
  vertical-align: middle;
  letter-spacing: normal !important;
}

html[dir="ltr"] .table thead th {
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table tbody td {
  font-size: 13px;
  vertical-align: middle;
  padding: 12px 14px;
  border-bottom: 1px solid var(--bs-border-color);
  color: var(--bs-body-color);
  line-height: 1.45;
  transition: background-color 0.15s ease;
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table-hover tbody tr:hover td {
  background-color: var(--bs-tertiary-bg);
}

/* Explicit Index column (#) — only when flagged, NOT generic first-child */
.table-col-index,
.table th.table-col-index,
.table td.table-col-index,
.table th.col-index,
.table td.col-index {
  width: 48px !important;
  min-width: 48px !important;
  max-width: 56px !important;
  text-align: center !important;
}

/* Dedicated Action buttons column in data tables */
.table-actions-col,
.table th.table-actions-col,
.table td.table-actions-col,
.table th.col-actions,
.table td.col-actions {
  white-space: nowrap !important;
  width: 1% !important;
  min-width: 140px !important;
  text-align: end !important;
  vertical-align: middle !important;
}

.table-actions-col > div,
.table td.table-actions-col > div,
.table td.col-actions > div {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 4px !important;
  flex-wrap: nowrap !important;
}

/* General Right-Aligned Table Headers & Cells (Numbers, Dates, Currencies) */
.table th.text-end,
.table td.text-end {
  text-align: end !important;
  /* Natural width: never force 180px on numbers/amounts */
}

/* When table-responsive is inside a card that already has borders, seamlessly integrate */
.card > .table-responsive,
.card-body > .table-responsive:only-child {
  border: none !important;
  border-radius: inherit;
  margin-bottom: 0 !important;
  box-shadow: none !important;
}

/* Responsive Table Adjustments for Tablets (iPad) and Mobile */
@media (max-width: 991.98px) {
  .table thead th,
  .table tbody td {
    padding: 9px 10px !important;
    font-size: 12px !important;
  }
  .table-actions-col,
  .table td.table-actions-col {
    min-width: 110px !important;
  }
  .table-actions-col .btn,
  .table td.table-actions-col .btn {
    padding: 3px 6px !important;
    font-size: 11.5px !important;
  }
}

/* ================================================================
   DASHBOARD FOOTER
   ================================================================ */
.dashboard-footer {
  padding: 12px 28px;
  border-top: 1px solid var(--bs-border-color);
  font-size: 12px;
  color: var(--bs-secondary-color);
}

/* ================================================================
   FORMS
   ================================================================ */
.form-control:focus, .form-select:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.18);
}

/* ================================================================
   HTMX
   ================================================================ */
.htmx-indicator { display: none !important; }
.htmx-request .htmx-indicator { display: inline-block !important; }

/* ================================================================
   DARK MODE OVERRIDES
   ================================================================ */
[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .stat-widget {
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* ================================================================
   SWEETALERT2 & TOAST STYLING (Cairo Font, Theme Modes & Unified Typography)
   ================================================================ */
.swal2-container {
  font-family: var(--jz-font), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  z-index: 9999 !important;
}

html[dir="rtl"] .swal2-container,
:root:not([dir="ltr"]) .swal2-container {
  direction: rtl !important;
}

html[dir="ltr"] .swal2-container {
  direction: ltr !important;
}

.swal2-popup {
  border-radius: var(--jz-radius) !important;
  font-family: var(--jz-font), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* Modal Popup Class */
.swal-custom-popup {
  padding: 1.5rem !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.2) !important;
}

/* ── SweetAlert2 Close (✕) Button — shown when showCloseButton: true ── */
.swal-custom-popup .swal2-close,
.swal-close-btn {
  position: absolute !important;
  top: 0.6rem !important;
  right: 0.7rem !important;
  width: 28px !important;
  height: 28px !important;
  font-size: 18px !important;
  line-height: 1 !important;
  color: var(--bs-secondary-color, #6c757d) !important;
  background: transparent !important;
  border: none !important;
  border-radius: 6px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: background 0.15s ease, color 0.15s ease !important;
  z-index: 10 !important;
}

.swal-custom-popup .swal2-close:hover,
.swal-close-btn:hover {
  background: var(--bs-danger-bg-subtle, rgba(220, 53, 69, 0.1)) !important;
  color: var(--bs-danger, #dc3545) !important;
}

[data-bs-theme="dark"] .swal-custom-popup .swal2-close,
[data-bs-theme="dark"] .swal-close-btn {
  color: rgba(255, 255, 255, 0.55) !important;
}

[data-bs-theme="dark"] .swal-custom-popup .swal2-close:hover,
[data-bs-theme="dark"] .swal-close-btn:hover {
  background: rgba(220, 53, 69, 0.18) !important;
  color: #ff7b8a !important;
}

/* ── Toast Notifications (Unified Font Sizes & Proportions in EN / AR) ── */
.swal2-toast {
  border-radius: var(--jz-radius-sm, 8px) !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
  padding: 0.65rem 1rem !important;
  min-height: 48px !important;
  width: auto !important;
  max-width: 420px !important;
  display: flex !important;
  align-items: center !important;
  overflow: hidden !important;
  position: relative !important;
}

/* Unified Toast Title Font Size (Arabic & English) */
.swal2-toast .swal2-title {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  margin: 0 !important;
  padding: 0.15rem 0.4rem !important;
  color: var(--bs-body-color, #1e293b) !important;
  font-family: var(--jz-font), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* Unified Toast HTML/Subtitle Content Font Size */
.swal2-toast .swal2-html-container {
  font-size: 12.5px !important;
  line-height: 1.4 !important;
  margin: 0.2rem 0 0 !important;
  padding: 0 0.4rem !important;
  color: var(--bs-secondary-color, #64748b) !important;
  font-family: var(--jz-font), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* Unified Toast Icon Size & Spacing */
.swal2-toast .swal2-icon {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  margin: 0 6px !important;
}

.swal2-toast .swal2-icon .swal2-icon-content {
  font-size: 14px !important;
}

/* ── Increased Progress Bar Height & Styling ── */
.swal2-timer-progress-bar,
.swal2-toast .swal2-timer-progress-bar {
  height: 5px !important;
  background: var(--bs-primary, #6366f1) !important;
  border-radius: 0 0 var(--jz-radius-sm, 8px) var(--jz-radius-sm, 8px) !important;
  opacity: 0.9 !important;
}

.swal2-toast.swal2-icon-success .swal2-timer-progress-bar {
  background: var(--bs-success, #10b981) !important;
}

.swal2-toast.swal2-icon-error .swal2-timer-progress-bar {
  background: var(--bs-danger, #ef4444) !important;
}

.swal2-toast.swal2-icon-warning .swal2-timer-progress-bar {
  background: var(--bs-warning, #f59e0b) !important;
}

.swal2-toast.swal2-icon-info .swal2-timer-progress-bar {
  background: var(--bs-info, #06b6d4) !important;
}

/* Dark Theme Overrides for SweetAlert2 */
[data-bs-theme="dark"] .swal2-popup {
  background-color: #1e293b !important;
  color: #f1f5f9 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

[data-bs-theme="dark"] .swal2-title {
  color: #f1f5f9 !important;
}

[data-bs-theme="dark"] .swal2-html-container {
  color: #94a3b8 !important;
}

[data-bs-theme="dark"] .swal2-toast {
  background-color: #0f172a !important;
  color: #f8fafc !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

/* ================================================================
   FIXED BOTTOM FOOTER
   ================================================================ */
.dashboard-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 44px;
  background: var(--bs-body-bg);
  border-top: 1px solid var(--bs-border-color);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--bs-secondary-color);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.04);
  z-index: 1020;
  transition: margin-right var(--jz-t), margin-left var(--jz-t), width var(--jz-t);
}

.content-body {
  padding-bottom: 60px !important;
}

@media (min-width: 992px) {
  html[dir="rtl"] .dashboard-footer,
  :root:not([dir="ltr"]) .dashboard-footer {
    margin-right: var(--jz-sidebar);
    margin-left: 0;
    width: calc(100% - var(--jz-sidebar));
    padding: 0 24px;
  }
  html[dir="rtl"] body.sidebar-collapsed .dashboard-footer,
  :root:not([dir="ltr"]) body.sidebar-collapsed .dashboard-footer {
    margin-right: 0;
    width: 100%;
  }

  html[dir="ltr"] .dashboard-footer {
    margin-left: var(--jz-sidebar);
    margin-right: 0;
    width: calc(100% - var(--jz-sidebar));
    padding: 0 24px;
  }
  html[dir="ltr"] body.sidebar-collapsed .dashboard-footer {
    margin-left: 0;
    width: 100%;
  }
}

/* ================================================================
   DYNAMIC MENU TREE MANAGEMENT COLLAPSE / EXPAND & COLUMN ALIGNMENT
   ================================================================ */
.btn-collapse-tree {
  width: 26px;
  height: 26px;
  background-color: var(--bs-body-bg);
  color: var(--bs-secondary-color);
  border: 1px solid var(--bs-border-color);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.btn-collapse-tree:hover {
  background-color: var(--bs-primary-bg-subtle, rgba(99, 102, 241, 0.15));
  color: var(--bs-primary);
  border-color: var(--bs-primary);
}

.btn-collapse-tree i {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}

.btn-collapse-tree.collapsed i {
  transform: rotate(-90deg);
}

html[dir="rtl"] .btn-collapse-tree.collapsed i,
:root:not([dir="ltr"]) .btn-collapse-tree.collapsed i {
  transform: rotate(90deg);
}

/* Columnar Alignment for Menu Management rows */
.menu-col-url {
  min-width: 170px;
  max-width: 220px;
}

.menu-col-role {
  min-width: 165px;
  max-width: 200px;
}

@media (max-width: 991.98px) {
  .menu-col-url,
  .menu-col-role {
    min-width: auto;
    max-width: 100%;
  }
}


/* ================================================================
   TOP NAVBAR & BREADCRUMBS
   ================================================================ */
.top-navbar {
  height: var(--jz-navbar);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bs-body-bg);
  border-bottom: 1px solid var(--bs-border-color);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.breadcrumb-item {
  display: inline-flex !important;
  align-items: center !important;
}

.breadcrumb-item a {
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none;
}

.breadcrumb-item i {
  margin-inline-end: 7px !important;
  display: inline-block;
  flex-shrink: 0;
}

/* ================================================================
   MOBILE EXTRAS
   ================================================================ */
@media (max-width: 575.98px) {
  .content-body { padding: 12px; padding-bottom: 58px !important; }
  .enterprise-banner { padding: 16px; }
  .card-body { padding: 14px; }
  .card-header { padding: 12px 14px; }
  .enterprise-banner h3 { font-size: 1.1rem; }
  .dashboard-footer { font-size: 11px; padding: 0 10px; }
}


/* ================================================================
   GLOBAL MULTI-VIEW SWITCHER  (.jz-view-btn)
   Applied consistently across: Employees, Packages, Themes, Delegation
   Reference Sample: /superadm/theme-config/
   ================================================================ */

/* Container pill */
[id$="ViewSwitcher"],
[id$="viewSwitcher"] {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: var(--bs-tertiary-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 10px;
}

/* Base button state — transparent, muted icon-only button with tooltips */
.jz-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  min-width: 34px;
  height: 30px;
  font-size: 13px;
  font-weight: 600;
  border: none !important;
  border-radius: 7px !important;
  background: transparent !important;
  color: var(--bs-secondary-color) !important;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
  cursor: pointer;
}

.jz-view-btn:hover:not(.active) {
  background: var(--bs-body-bg) !important;
  color: var(--bs-body-color) !important;
}

/* Active button — solid primary fill */
.jz-view-btn.active {
  background: var(--bs-primary) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(var(--bs-primary-rgb), 0.35) !important;
}

/* Dark mode: slightly softer shadow */
[data-bs-theme="dark"] .jz-view-btn.active {
  box-shadow: 0 2px 10px rgba(var(--bs-primary-rgb), 0.45) !important;
}

/* ── Dynamic Cards Density Controls (.jz-grid-cols-select & data-grid-cols) ── */
.jz-grid-cols-wrapper {
  display: inline-flex;
  align-items: center;
}

/* Point 2: Show Columns Density Selector ONLY in Grid View */
[data-active-view="list"] .jz-grid-cols-wrapper,
[data-active-view="table"] .jz-grid-cols-wrapper,
.view-mode-list .jz-grid-cols-wrapper,
.view-mode-table .jz-grid-cols-wrapper,
.jz-grid-cols-wrapper.d-none {
  display: none !important;
}

.jz-grid-cols-select {
  padding-inline-start: 4px !important;
  padding-inline-end: 22px !important;
  font-weight: 600;
  font-size: 12px !important;
  cursor: pointer;
  background-position: right 6px center !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: inherit !important;
}
[dir="rtl"] .jz-grid-cols-select {
  background-position: left 6px center !important;
}

/* Native select options styling across light and dark themes */
html[data-bs-theme="dark"],
[data-bs-theme="dark"] {
  color-scheme: dark;
}
html[data-bs-theme="light"],
[data-bs-theme="light"] {
  color-scheme: light;
}

[data-bs-theme="dark"] select option,
[data-bs-theme="dark"] .jz-grid-cols-select option {
  background-color: #0d1526 !important;
  color: #f1f5f9 !important;
}

[data-bs-theme="light"] select option,
[data-bs-theme="light"] .jz-grid-cols-select option {
  background-color: #ffffff !important;
  color: #0f172a !important;
}

[data-bs-theme="dark"] .jz-grid-cols-select {
  background-color: transparent !important;
  color: var(--bs-body-color, #e2e8f0) !important;
}

@media (min-width: 992px) {
  /* 2 Columns per row (Grid view only) */
  [data-grid-cols="2"] [id*="ViewGrid"] .row > [class*="col-"],
  [data-grid-cols="2"] .row[id*="ViewGrid"] > [class*="col-"],
  [data-grid-cols="2"] [id*="GridView"] .row > [class*="col-"],
  [data-grid-cols="2"] .row[id*="GridView"] > [class*="col-"],
  [data-grid-cols="2"] [id*="viewGrid"] .row > [class*="col-"],
  [data-grid-cols="2"] .row[id*="viewGrid"] > [class*="col-"],
  [data-grid-cols="2"] [id*="gridView"] .row > [class*="col-"],
  [data-grid-cols="2"] .row[id*="gridView"] > [class*="col-"],
  [data-grid-cols="2"] [data-view-pane="grid"] .row > [class*="col-"],
  [data-grid-cols="2"] .jz-grid-cols-target .row > [class*="col-"],
  [data-grid-cols="2"] .row.jz-grid-cols-target > [class*="col-"],
  [data-grid-cols="2"] .jz-card-grid > [class*="col-"],
  [data-grid-cols="2"] #reportsViewGrid .report-item-col,
  [data-grid-cols="2"] #branchesViewGrid .branch-item-col,
  [data-grid-cols="2"] #usersViewGrid .user-item-col,
  [data-grid-cols="2"] #themesViewGrid .theme-item-col {
    flex: 0 0 auto !important;
    width: 50% !important;
    max-width: 50% !important;
  }

  /* 3 Columns per row (Grid view only) */
  [data-grid-cols="3"] [id*="ViewGrid"] .row > [class*="col-"],
  [data-grid-cols="3"] .row[id*="ViewGrid"] > [class*="col-"],
  [data-grid-cols="3"] [id*="GridView"] .row > [class*="col-"],
  [data-grid-cols="3"] .row[id*="GridView"] > [class*="col-"],
  [data-grid-cols="3"] [id*="viewGrid"] .row > [class*="col-"],
  [data-grid-cols="3"] .row[id*="viewGrid"] > [class*="col-"],
  [data-grid-cols="3"] [id*="gridView"] .row > [class*="col-"],
  [data-grid-cols="3"] .row[id*="gridView"] > [class*="col-"],
  [data-grid-cols="3"] [data-view-pane="grid"] .row > [class*="col-"],
  [data-grid-cols="3"] .jz-grid-cols-target .row > [class*="col-"],
  [data-grid-cols="3"] .row.jz-grid-cols-target > [class*="col-"],
  [data-grid-cols="3"] .jz-card-grid > [class*="col-"],
  [data-grid-cols="3"] #reportsViewGrid .report-item-col,
  [data-grid-cols="3"] #branchesViewGrid .branch-item-col,
  [data-grid-cols="3"] #usersViewGrid .user-item-col,
  [data-grid-cols="3"] #themesViewGrid .theme-item-col {
    flex: 0 0 auto !important;
    width: 33.33333333% !important;
    max-width: 33.33333333% !important;
  }

  /* 4 Columns per row (Default - Grid view only) */
  [data-grid-cols="4"] [id*="ViewGrid"] .row > [class*="col-"],
  [data-grid-cols="4"] .row[id*="ViewGrid"] > [class*="col-"],
  [data-grid-cols="4"] [id*="GridView"] .row > [class*="col-"],
  [data-grid-cols="4"] .row[id*="GridView"] > [class*="col-"],
  [data-grid-cols="4"] [id*="viewGrid"] .row > [class*="col-"],
  [data-grid-cols="4"] .row[id*="viewGrid"] > [class*="col-"],
  [data-grid-cols="4"] [id*="gridView"] .row > [class*="col-"],
  [data-grid-cols="4"] .row[id*="gridView"] > [class*="col-"],
  [data-grid-cols="4"] [data-view-pane="grid"] .row > [class*="col-"],
  [data-grid-cols="4"] .jz-grid-cols-target .row > [class*="col-"],
  [data-grid-cols="4"] .row.jz-grid-cols-target > [class*="col-"],
  [data-grid-cols="4"] .jz-card-grid > [class*="col-"],
  [data-grid-cols="4"] #reportsViewGrid .report-item-col,
  [data-grid-cols="4"] #branchesViewGrid .branch-item-col,
  [data-grid-cols="4"] #usersViewGrid .user-item-col,
  [data-grid-cols="4"] #themesViewGrid .theme-item-col {
    flex: 0 0 auto !important;
    width: 25% !important;
    max-width: 25% !important;
  }

  /* 5 Columns per row (Grid view only) */
  [data-grid-cols="5"] [id*="ViewGrid"] .row > [class*="col-"],
  [data-grid-cols="5"] .row[id*="ViewGrid"] > [class*="col-"],
  [data-grid-cols="5"] [id*="GridView"] .row > [class*="col-"],
  [data-grid-cols="5"] .row[id*="GridView"] > [class*="col-"],
  [data-grid-cols="5"] [id*="viewGrid"] .row > [class*="col-"],
  [data-grid-cols="5"] .row[id*="viewGrid"] > [class*="col-"],
  [data-grid-cols="5"] [id*="gridView"] .row > [class*="col-"],
  [data-grid-cols="5"] .row[id*="gridView"] > [class*="col-"],
  [data-grid-cols="5"] [data-view-pane="grid"] .row > [class*="col-"],
  [data-grid-cols="5"] .jz-grid-cols-target .row > [class*="col-"],
  [data-grid-cols="5"] .row.jz-grid-cols-target > [class*="col-"],
  [data-grid-cols="5"] .jz-card-grid > [class*="col-"],
  [data-grid-cols="5"] #reportsViewGrid .report-item-col,
  [data-grid-cols="5"] #branchesViewGrid .branch-item-col,
  [data-grid-cols="5"] #usersViewGrid .user-item-col,
  [data-grid-cols="5"] #themesViewGrid .theme-item-col {
    flex: 0 0 auto !important;
    width: 20% !important;
    max-width: 20% !important;
  }
}

/* ================================================================
   Point 3: Strictly 100% Full Width for List and Table Views
   ================================================================ */
div[id$="ViewList"], div[id$="viewList"], div[id$="ListView"], div[id$="listView"],
div[id$="ViewTable"], div[id$="viewTable"], div[id$="TableView"], div[id$="tableView"],
.users-view-container:not(#usersViewGrid),
.branches-view-container:not(#branchesViewGrid),
.themes-view-container:not(#themesViewGrid),
.duty-view-pane:not(#dutyViewGrid),
.qr-view-container:not(#qrLinksViewGrid),
.inv-view-section:not(#invGridView),
.jz-view-list, .jz-view-table {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
}

div[id$="ViewList"] .card,
div[id$="viewList"] .card,
div[id$="ListView"] .card,
div[id$="listView"] .card,
div[id$="ViewList"] > div > .card,
.users-view-container:not(#usersViewGrid) .card,
.branches-view-container:not(#branchesViewGrid) .card,
.themes-view-container:not(#themesViewGrid) .card,
.duty-view-pane:not(#dutyViewGrid) .card,
.qr-view-container:not(#qrLinksViewGrid) .card,
.jz-view-list .card {
  width: 100% !important;
  max-width: 100% !important;
  flex: 1 1 100% !important;
}

/* Data tables in table views have min-width 820px to prevent cramped columns on tablet/mobile */
div[id$="ViewTable"] table,
div[id$="viewTable"] table,
div[id$="TableView"] table,
div[id$="tableView"] table,
.users-view-container:not(#usersViewGrid) table,
.branches-view-container:not(#branchesViewGrid) table,
.themes-view-container:not(#themesViewGrid) table,
.duty-view-pane:not(#dutyViewGrid) table,
.jz-view-table table,
.jz-data-table {
  width: 100% !important;
  min-width: 100% !important;
}

div[id$="ViewTable"] .table-responsive,
div[id$="viewTable"] .table-responsive,
div[id$="TableView"] .table-responsive,
div[id$="tableView"] .table-responsive,
.users-view-container:not(#usersViewGrid) .table-responsive,
.branches-view-container:not(#branchesViewGrid) .table-responsive,
.themes-view-container:not(#themesViewGrid) .table-responsive,
.duty-view-pane:not(#dutyViewGrid) .table-responsive,
.jz-view-table .table-responsive {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
}

.text-purple {
  color: #8b5cf6 !important;
}

/* ── Movement Filter Pills (.movement-filter-btn) ── */
.movement-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid transparent !important;
  border-radius: 7px !important;
  background: transparent !important;
  color: var(--bs-secondary-color) !important;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
  cursor: pointer;
}

.movement-filter-btn:hover:not(.active) {
  background: var(--bs-body-bg) !important;
  color: var(--bs-body-color) !important;
}

.movement-filter-btn.active {
  background: var(--bs-primary) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px rgba(var(--bs-primary-rgb), 0.35) !important;
}

.movement-filter-btn.active i {
  color: #ffffff !important;
}

.movement-filter-btn.active .badge {
  background-color: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}

/* ── Purple & Info Badge Text Color Standard ──
   Ensure that any badge or element with purple background has crisp white text */
.badge.bg-info,
.badge.bg-purple,
.badge-purple,
.text-bg-info,
.bg-info.text-dark {
  color: #ffffff !important;
}

.bg-purple,
[style*="background-color: #72539E"],
[style*="background-color: #8b5cf6"],
[style*="background-color: #7c3aed"],
[style*="background: #72539E"],
[style*="background: #8b5cf6"],
[style*="background: #7c3aed"] {
  color: #ffffff !important;
}

/* ================================================================
   ROLE TOGGLE BUTTON GROUP (Single Row, High Aesthetics)
   ================================================================ */
.role-toggle-group {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.role-toggle-group .btn-outline-primary {
  border-color: var(--bs-border-color);
  color: var(--bs-body-color);
  background-color: var(--bs-body-bg);
  font-size: 0.84rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.role-toggle-group .btn-outline-primary:hover {
  background-color: var(--bs-primary-bg-subtle);
  color: var(--bs-primary);
  border-color: var(--bs-primary);
}

.role-toggle-group .btn-check:checked + .btn-outline-primary {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb, 43, 179, 184), 0.28);
  font-weight: 700;
}

/* Global Radio & Checkbox Toggle Buttons (.btn-check) Active Contrast */
.btn-check:checked + .btn-outline-primary,
.btn-check:active + .btn-outline-primary,
.btn-outline-primary.active,
.btn-outline-primary:active {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
  color: #ffffff !important;
}

.btn-check:checked + .btn-outline-primary *,
.btn-check:active + .btn-outline-primary *,
.btn-outline-primary.active *,
.btn-outline-primary:active * {
  color: #ffffff !important;
}

/* ================================================================
   TEAL ROLE SEGMENTED CONTROL (As requested in Owner Portal)
   ================================================================ */
.role-segmented-container {
  border: 1.5px solid #14b8a6;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  width: 100%;
  background-color: var(--bs-body-bg, #ffffff);
}
.role-segmented-item {
  flex: 1;
  text-align: center;
  position: relative;
  border-inline-end: 1.5px solid #14b8a6;
}
.role-segmented-item:last-child {
  border-inline-end: none;
}
.role-segmented-item input.btn-check {
  position: absolute;
  clip: rect(0, 0, 0, 0);
  pointer-events: none;
}
.role-segmented-item label.role-segmented-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  margin: 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 13.5px;
  color: #0d9488;
  background-color: transparent;
  transition: all 0.2s ease-in-out;
  width: 100%;
  height: 100%;
}
.role-segmented-item label.role-segmented-label i {
  font-size: 14px;
  color: #0d9488;
  transition: color 0.2s ease-in-out;
}
.role-segmented-item input.btn-check:checked + label.role-segmented-label {
  background-color: #14b8a6 !important;
  color: #ffffff !important;
}
.role-segmented-item input.btn-check:checked + label.role-segmented-label i {
  color: #ffffff !important;
}
.role-segmented-item input.btn-check:not(:checked) + label.role-segmented-label:hover {
  background-color: rgba(20, 184, 166, 0.08);
}

/* ── Distinct Role Colors for Profiles (Superadmin, Owner, Supervisor, Operator) ── */
.role-badge-superadmin {
  background-color: rgba(239, 68, 68, 0.12) !important;
  color: #ef4444 !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
}
.role-avatar-superadmin {
  background-color: rgba(239, 68, 68, 0.1) !important;
  color: #ef4444 !important;
  border-color: #ef4444 !important;
}
.role-strip-superadmin {
  background-color: #ef4444 !important;
}

.role-badge-owner {
  background-color: rgba(99, 102, 241, 0.14) !important;
  color: #6366f1 !important;
  border: 1px solid rgba(99, 102, 241, 0.35) !important;
}
[data-bs-theme="dark"] .role-badge-owner {
  color: #818cf8 !important;
  background-color: rgba(99, 102, 241, 0.2) !important;
}
.role-avatar-owner {
  background-color: rgba(99, 102, 241, 0.1) !important;
  color: #6366f1 !important;
  border-color: #6366f1 !important;
}
[data-bs-theme="dark"] .role-avatar-owner {
  color: #818cf8 !important;
  border-color: #818cf8 !important;
}
.role-strip-owner {
  background-color: #6366f1 !important;
}

.role-badge-supervisor {
  background-color: rgba(245, 158, 11, 0.12) !important;
  color: #d97706 !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
}
[data-bs-theme="dark"] .role-badge-supervisor {
  color: #fbbf24 !important;
  background-color: rgba(245, 158, 11, 0.2) !important;
}
.role-avatar-supervisor {
  background-color: rgba(245, 158, 11, 0.1) !important;
  color: #d97706 !important;
  border-color: #f59e0b !important;
}
[data-bs-theme="dark"] .role-avatar-supervisor {
  color: #fbbf24 !important;
  border-color: #fbbf24 !important;
}
.role-strip-supervisor {
  background-color: #f59e0b !important;
}

.role-badge-operator {
  background-color: rgba(16, 185, 129, 0.12) !important;
  color: #059669 !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
}
[data-bs-theme="dark"] .role-badge-operator {
  color: #34d399 !important;
  background-color: rgba(16, 185, 129, 0.2) !important;
}
.role-avatar-operator {
  background-color: rgba(16, 185, 129, 0.1) !important;
  color: #059669 !important;
  border-color: #10b981 !important;
}
[data-bs-theme="dark"] .role-avatar-operator {
  color: #34d399 !important;
  border-color: #34d399 !important;
}
.role-strip-operator {
  background-color: #10b981 !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   GENDER TOGGLE CONTROL (Standard Gender Colors: Boy #0284c7 / Girl #ec4899)
   ───────────────────────────────────────────────────────────────────────────── */
.gender-toggle-group {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 38px;
  min-height: 38px;
  padding: 3px;
  background-color: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: var(--jz-radius-sm, 8px);
  gap: 4px;
  box-sizing: border-box;
}

.gender-toggle-btn {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: calc(var(--jz-radius-sm, 8px) - 2px);
  font-size: 13px;
  font-weight: 700;
  color: var(--bs-secondary-color);
  cursor: pointer;
  transition: all 0.18s ease-in-out;
  padding: 0 8px;
  line-height: 1;
  user-select: none;
  white-space: nowrap;
}

/* Boy (Male) — Standard Boy Blue */
.gender-toggle-btn.btn-boy:hover:not(.active) {
  color: #0284c7;
  background-color: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.25);
}

.gender-toggle-btn.btn-boy.active {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff !important;
  border-color: #0284c7;
  box-shadow: 0 2px 5px rgba(2, 132, 199, 0.35);
}

/* Girl (Female) — Standard Girl Pink */
.gender-toggle-btn.btn-girl:hover:not(.active) {
  color: #ec4899;
  background-color: rgba(236, 72, 153, 0.08);
  border-color: rgba(236, 72, 153, 0.25);
}

.gender-toggle-btn.btn-girl.active {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
  color: #ffffff !important;
  border-color: #ec4899;
  box-shadow: 0 2px 5px rgba(236, 72, 153, 0.35);
}

[data-bs-theme="dark"] .gender-toggle-group {
  background-color: var(--bs-tertiary-bg);
  border-color: var(--bs-border-color);
}

/* ─────────────────────────────────────────────────────────────────────────────
   LIVE HALL SESSION CARDS  (.lh-card system)
   ───────────────────────────────────────────────────────────────────────────── */

/* ── Base Card ── */
.lh-card {
  border-width: 2px !important;
  border-style: solid !important;
  border-color: var(--bs-border-color) !important;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}
.lh-card__header { min-height: 42px; }
.lh-card__body { min-height: 145px; }
.lh-parent-line { font-size: 11.5px; }
.lh-parent-line i { color: #94a3b8; font-size: 10px; }
.lh-time-row { font-size: 11px; }
.lh-overtime-fee { color: #dc2626; font-size: 11px; }
.lh-time-progress { height: 5px; overflow: hidden; border-radius: 999px; background: var(--bs-border-color); }
.lh-time-progress > div { height: 100%; border-radius: inherit; }
.lh-time-progress--overtime { background: rgba(220,38,38,0.15); }
.lh-time-progress--overtime > div { width: 100%; background: #dc2626; animation: lhPulse 1.4s ease-in-out infinite; }
.lh-canteen-badge { font-size: 10.5px; background: rgba(245,158,11,0.12); color: #b45309; border: 1px solid rgba(245,158,11,0.3); }
.lh-fixed-badge { font-size: 10.5px; background: rgba(6,182,212,0.10); color: #0e7490; border: 1px solid rgba(6,182,212,0.25); }
.lh-voucher-badge { font-size: 10.5px; background: rgba(20,184,166,0.10); color: #0f766e; border: 1px solid rgba(20,184,166,0.25); }
.lh-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1) !important;
  transform: translateY(-2px);
}

.lh-card--boy {
  border-width: 5px !important;
  border-color: #0ea5e9 !important;
  box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.15);
}
.lh-card--girl {
  border-width: 5px !important;
  border-color: #ec4899 !important;
  box-shadow: inset 0 0 0 1px rgba(236, 72, 153, 0.15);
}

/* ── Top Status Stripe ── */
.lh-card__stripe {
  height: 4px;
  border-radius: 16px 16px 0 0;
  flex-shrink: 0;
}

/* ── Status Variants ── */
.lh-card--active .lh-card__stripe         { background: #22c55e; }
.lh-card--warning .lh-card__stripe        { background: #f59e0b; }
.lh-card--overtime .lh-card__stripe       { background: #ef4444; }
.lh-card--fixed .lh-card__stripe          { background: #06b6d4; }

.lh-card--overtime { border-color: rgba(239,68,68,0.9) !important; }
.lh-card--warning  { border-color: rgba(245,158,11,0.9) !important; }

/* ── Wristband Badge ── */
.lh-wristband-badge {
  background: var(--bs-body-tertiary);
  color: var(--bs-secondary-color);
  border: 1px solid var(--bs-border-color);
}

/* ── Checkout Button (Primary CTA - Top of card) ── */
.lh-checkout-btn {
  background: #7c3aed;
  color: #fff !important;
  border: none;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}
.lh-checkout-btn:hover {
  background: #6d28d9;
  box-shadow: 0 3px 10px rgba(124, 58, 237, 0.4);
  color: #fff !important;
}
/* Overtime: red checkout button */
.lh-card--overtime .lh-checkout-btn {
  background: #dc2626;
}
.lh-card--overtime .lh-checkout-btn:hover {
  background: #b91c1c;
  box-shadow: 0 3px 10px rgba(220, 38, 38, 0.4);
}
/* Warning: amber checkout button */
.lh-card--warning .lh-checkout-btn {
  background: #d97706;
}
.lh-card--warning .lh-checkout-btn:hover {
  background: #b45309;
  box-shadow: 0 3px 10px rgba(217, 119, 6, 0.4);
}

/* ── Gender Avatar Dots (standard colors) ── */
.lh-gender-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lh-gender-dot--boy {
  background: rgba(2, 132, 199, 0.15);
  color: #0284c7;
  border: 1.5px solid rgba(2, 132, 199, 0.3);
}
.lh-gender-dot--girl {
  background: rgba(236, 72, 153, 0.15);
  color: #ec4899;
  border: 1.5px solid rgba(236, 72, 153, 0.3);
}

/* ── Offer Badge ── */
.lh-offer-badge {
  background: var(--bs-body-tertiary);
  color: var(--bs-secondary-color);
  border: 1px solid var(--bs-border-color);
}

/* ── Progress Bar ── */
.lh-progress-bar {
  transition: width 0.8s ease;
}
.lh-card--active  .lh-progress-bar { background: #22c55e; }
.lh-card--warning .lh-progress-bar { background: #f59e0b; }
.lh-card--fixed   .lh-progress-bar { background: #06b6d4; }

/* ── Remaining Label Color ── */
.lh-card--active  .lh-remaining-label { color: #16a34a; }
.lh-card--warning .lh-remaining-label { color: #d97706; }
.lh-card--fixed   .lh-remaining-label { color: #0891b2; }

/* ── Toggle Fixed Button ── */
.lh-toggle-fixed-btn {
  background: var(--bs-body-tertiary);
  color: var(--bs-secondary-color);
  border: 1px solid var(--bs-border-color);
  transition: all 0.15s ease;
}
.lh-toggle-fixed-btn:hover {
  background: rgba(6, 182, 212, 0.1);
  color: #0891b2;
  border-color: rgba(6, 182, 212, 0.3);
}
.lh-card--fixed .lh-toggle-fixed-btn {
  background: rgba(6, 182, 212, 0.08);
  color: #0891b2;
  border-color: rgba(6, 182, 212, 0.25);
}

/* ── Card Footer ── */
.lh-card__footer {
  background: rgba(148, 163, 184, 0.05);
  border-top: 1px solid var(--bs-border-color) !important;
}

.lh-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1 1 0;
  min-width: 0;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.2;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.lh-action-btn:hover {
  transform: translateY(-1px);
}
.lh-action-btn--info {
  background: rgba(34, 211, 238, 0.10);
  color: #0f766e;
  border-color: rgba(34, 211, 238, 0.25);
}
.lh-action-btn--time,
.lh-action-btn--ot-running {
  background: rgba(16, 185, 129, 0.12) !important;
  color: #059669 !important;
  border-color: rgba(16, 185, 129, 0.30) !important;
}
.lh-action-btn--ot-running:hover,
.lh-action-btn--time:hover {
  background: rgba(16, 185, 129, 0.22) !important;
  color: #047857 !important;
}
[data-bs-theme="dark"] .lh-action-btn--time,
[data-bs-theme="dark"] .lh-action-btn--ot-running {
  background: rgba(16, 185, 129, 0.22) !important;
  color: #34d399 !important;
  border-color: rgba(52, 211, 153, 0.45) !important;
}

.lh-action-btn--ot-stopped {
  background: rgba(234, 88, 12, 0.12) !important;
  color: #ea580c !important;
  border-color: rgba(234, 88, 12, 0.30) !important;
}
.lh-action-btn--ot-stopped:hover {
  background: rgba(234, 88, 12, 0.22) !important;
  color: #c2410c !important;
}
[data-bs-theme="dark"] .lh-action-btn--ot-stopped {
  background: rgba(234, 88, 12, 0.22) !important;
  color: #fb923c !important;
  border-color: rgba(251, 146, 60, 0.45) !important;
}
.lh-action-btn--pos {
  background: rgba(14, 165, 233, 0.10);
  color: #075985;
  border-color: rgba(14, 165, 233, 0.28);
}
.lh-action-btn--out {
  background: rgba(239, 68, 68, 0.10);
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.25);
}

.lh-detail-header { min-height: 96px; }
.lh-detail-icon { width: 42px; height: 56px; display: inline-flex; align-items: center; justify-content: center; }
.lh-detail-body { background: var(--bs-body-bg); }
.lh-detail-metric { min-height: 94px; display: flex; flex-direction: column; justify-content: center; }
.lh-detail-actions { min-height: 80px; align-items: center; }
.lh-audit-list { background: var(--bs-body-bg); }
.lh-audit-row { min-height: 47px; background: transparent; border-color: var(--bs-border-color); }
.lh-detail-footer { background: var(--bs-body-bg); }
.lh-premium-footer {
  background: var(--bs-body-bg);
  align-items: center !important;
}
.lh-footer-tools,
.lh-footer-primary-actions,
.lh-replace-form { align-items: center; }
.lh-premium-input {
  width: 148px;
  min-height: 36px;
  padding-inline: 12px;
  border: 1px solid var(--bs-border-color);
  border-radius: 10px;
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  font-size: 11px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.lh-premium-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .14);
  outline: 0;
}
.lh-premium-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0 13px;
  font-family: var(--jz-font);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  vertical-align: middle;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.lh-premium-btn:hover {
  transform: none;
  box-shadow: none;
}
.lh-premium-btn--replace {
  border-color: #cbd5e1;
  background: var(--bs-body-bg);
  color: #334155;
}
.lh-premium-btn--replace:hover { background: #f1f5f9; border-color: #94a3b8; }
.lh-premium-btn--fixed {
  border-color: #67e8f9;
  background: #ecfeff;
  color: #0e7490;
}
.lh-premium-btn--fixed:hover { background: #cffafe; border-color: #22d3ee; }
.lh-premium-btn--close {
  border-color: #cbd5e1;
  background: var(--bs-body-bg);
  color: #334155;
}
.lh-premium-btn--close:hover { background: #f1f5f9; border-color: #94a3b8; }
.lh-premium-btn--checkout {
  min-width: 164px;
  background: #6366f1;
  color: #fff;
}
.lh-premium-btn--checkout:hover {
  background: #4f46e5;
}
@media (max-width: 575.98px) {
  .lh-footer-tools,
  .lh-replace-form,
  .lh-footer-primary-actions { width: 100%; }
  .lh-premium-input { flex: 1; width: auto; }
  .lh-footer-primary-actions { justify-content: flex-end; }
}
.lh-session-detail-dialog { max-width: 780px; }
.lh-audit-list {
  max-height: 230px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}
.lh-kpi-number {
  display: block;
  font-size: 1.15rem !important;
  line-height: 1.25;
  white-space: nowrap;
}
.lh-kpi-package {
  display: block;
  font-size: 0.9rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.lh-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.lh-kpi-grid .lh-detail-metric { height: 100%; padding: 12px !important; }
@media (max-width: 767.98px) {
  .lh-session-detail-dialog { max-width: calc(100% - 1rem); }
  .lh-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

[data-bs-theme="dark"] .lh-canteen-badge { color: #fbbf24; }
[data-bs-theme="dark"] .lh-fixed-badge { color: #67e8f9; }
[data-bs-theme="dark"] .lh-voucher-badge { color: #5eead4; }

/* ── Overtime Pulse Animation ── */
@keyframes lhPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

/* ── Dark mode ── */
[data-bs-theme="dark"] .lh-card {
  border-color: var(--bs-border-color) !important;
}
[data-bs-theme="dark"] .lh-card--overtime {
  border-color: rgba(239, 68, 68, 0.4) !important;
}
[data-bs-theme="dark"] .lh-card--warning {
  border-color: rgba(245, 158, 11, 0.4) !important;
}
[data-bs-theme="dark"] .lh-offer-badge,
[data-bs-theme="dark"] .lh-wristband-badge {
  background: var(--bs-tertiary-bg);
  border-color: var(--bs-border-color);
}

/* ─────────────────────────────────────────────────────────────────────────────
   LIVE ACTIVE PLAYERS BADGE  (.jz-active-count-badge)
   ───────────────────────────────────────────────────────────────────────────── */
.jz-active-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.18);
  color: #16a34a;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.sidebar-live-menu-link { position: relative; overflow: visible; }
.sidebar-live-menu-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-inline-start: auto;
  line-height: 1;
  z-index: 2;
}
.jz-live-activity {
  height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 9px;
  background: rgba(34, 197, 94, 0.06);
  color: #16a34a;
}
.jz-live-activity-wrap { z-index: 1040; }

/* ── Live Hall Navbar Inline Stats Bar (Side-by-Side) ── */
.jz-live-activity-bar {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 38px;
  padding: 0 5px;
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 9px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  user-select: none;
}
.jz-live-activity-bar:hover {
  background: var(--bs-body-tertiary);
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.jz-navbar-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.jz-navbar-stat--active {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.25);
}
[data-bs-theme="dark"] .jz-navbar-stat--active {
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.3);
}

.jz-navbar-stat--near {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.25);
}
[data-bs-theme="dark"] .jz-navbar-stat--near {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.3);
}

.jz-navbar-stat--checkout {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.25);
}
[data-bs-theme="dark"] .jz-navbar-stat--checkout {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.3);
}

.jz-navbar-stat--fixed {
  background: rgba(6, 182, 212, 0.12);
  color: #0891b2;
  border: 1px solid rgba(6, 182, 212, 0.25);
}
[data-bs-theme="dark"] .jz-navbar-stat--fixed {
  background: rgba(6, 182, 212, 0.18);
  color: #22d3ee;
  border-color: rgba(34, 211, 238, 0.3);
}

/* Category pulse dot inside each pill (matches category color) */
.jz-stat-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  animation: jzStatPulse 1.8s infinite ease-in-out;
}
.jz-stat-dot--active {
  background: #16a34a;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.25);
}
[data-bs-theme="dark"] .jz-stat-dot--active {
  background: #4ade80;
  box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.3);
}

.jz-stat-dot--near {
  background: #d97706;
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.25);
}
[data-bs-theme="dark"] .jz-stat-dot--near {
  background: #fbbf24;
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.3);
}

.jz-stat-dot--checkout {
  background: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.25);
}
[data-bs-theme="dark"] .jz-stat-dot--checkout {
  background: #f87171;
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.3);
}

.jz-stat-dot--fixed {
  background: #0891b2;
  box-shadow: 0 0 0 2px rgba(8, 145, 178, 0.25);
}
[data-bs-theme="dark"] .jz-stat-dot--fixed {
  background: #22d3ee;
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.3);
}

@keyframes jzStatPulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.jz-live-activity__signal {
  display: none;
}
.jz-live-activity__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  display: none;
  min-width: 145px;
  padding: 6px;
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  background: var(--bs-body-bg);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
  z-index: 2;
  text-align: start;
}
.jz-live-activity__menu.is-open { display: grid; gap: 2px; }
.jz-live-activity__menu .jz-live-activity__category {
  justify-content: space-between;
  gap: 18px;
  padding: 5px 7px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.jz-live-activity__menu strong { font-weight: 800; }
.jz-live-activity__readout {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.jz-live-activity__total {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  background: #21b7c6;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.jz-live-activity__categories {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--bs-secondary-color);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.jz-live-activity__category { display: inline-flex; align-items: center; }
.jz-live-activity__category--active { color: #22c55e; }
.jz-live-activity__category--near { color: #f59e0b; }
.jz-live-activity__category--checkout { color: #ef4444; }
.jz-live-activity__category--fixed { color: #06b6d4; }
.sidebar-live-menu-count .jz-live-activity-bar {
  border: none;
  background: transparent;
  padding: 0;
  height: auto;
  box-shadow: none;
}
.sidebar-live-menu-count .jz-navbar-stat-group {
  display: none !important;
}
.sidebar-live-menu-count .jz-sidebar-total-badge {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.3);
  font-size: 11px;
  font-weight: 700;
}
[data-bs-theme="dark"] .sidebar-live-menu-count .jz-sidebar-total-badge {
  color: #4ade80;
  background: rgba(34, 197, 94, 0.2);
}
.sidebar-live-menu-count .jz-live-activity__categories {
  position: absolute;
  top: 27px;
  inset-inline-end: -8px;
  padding: 3px 6px;
  border: 1px solid var(--bs-border-color);
  border-radius: 6px;
  background: var(--bs-body-bg);
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.18);
  font-size: 8px;
  gap: 3px;
  pointer-events: none;
}
@keyframes jzLiveDotHeartbeat {
  0%, 100% { opacity: 0.35; transform: scale(1); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.35); }
  35% { opacity: 0.7; transform: scale(1.45); box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.08); }
}
[data-bs-theme="dark"] .jz-live-activity__categories { color: #cbd5e1; }
[data-bs-theme="dark"] .jz-active-count-badge {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.25);
}

/* ─────────────────────────────────────────────────────────────────────────────
   CHECK-IN PROGRESSIVE DISCLOSURE
   ───────────────────────────────────────────────────────────────────────────── */
@keyframes checkinReveal {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.checkin-step-reveal {
  animation: checkinReveal 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ─────────────────────────────────────────────────────────────────────────────
   CHILD INPUT CARD — UNIFORM ELEMENT HEIGHT
   ───────────────────────────────────────────────────────────────────────────── */
.selected-offer-box {
  min-height: 38px !important;
  height: auto;
}
.gender-toggle-group {
  min-height: 38px;
  height: 38px;
}
.child-input-row input[type="date"].form-control {
  height: 38px;
  min-height: 38px;
}
.child-input-row input[type="text"].child-name-input {
  height: 38px;
  min-height: 38px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   THERMAL RECEIPT MONOSPACE STYLING (80mm / 58mm POS)
   ───────────────────────────────────────────────────────────────────────────── */
.receipt-simulator-wrap {
  display: flex;
  justify-content: center;
}

.receipt-paper {
  background: #ffffff !important;
  color: #111111 !important;
  border: 1px dashed #aaa;
  border-radius: 4px;
  padding: 14px 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
  position: relative;
  box-sizing: border-box;
  height: auto !important;
  max-height: none !important;
  min-height: min-content !important;
  overflow-x: hidden;
  overflow-y: visible;
  font-family: 'Cairo', system-ui, -apple-system, sans-serif !important;
  line-height: 1.35;
}

.receipt-paper.width-80 { width: 302px; max-width: 100%; }
.receipt-paper.width-58 { width: 218px; max-width: 100%; }

.receipt-paper.font-small  { font-size: 10px; }
.receipt-paper.font-medium { font-size: 12px; }
.receipt-paper.font-large  { font-size: 14px; }

.receipt-paper * {
  color: #111111 !important;
  box-sizing: border-box !important;
}

.receipt-paper[dir="ltr"],
.receipt-paper [dir="ltr"],
.receipt-paper .font-monospace,
.receipt-paper code,
.receipt-paper pre {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace !important;
}

.receipt-paper[dir="rtl"] {
  font-family: 'Cairo', system-ui, -apple-system, sans-serif !important;
}

@media print {
  .receipt-paper {
    border: none !important;
    box-shadow: none !important;
    margin: 0 auto !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
}

.receipt-paper .rct-watermark {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) rotate(-30deg) !important;
  font-size: 2.8rem !important;
  font-weight: 900 !important;
  font-family: 'Arial Black', Impact, sans-serif !important;
  letter-spacing: 4px !important;
  text-transform: uppercase !important;
  color: #94a3b8 !important; /* Soft Gray */
  opacity: 0.35 !important;
  pointer-events: none !important;
  user-select: none !important;
  white-space: nowrap !important;
  z-index: 1 !important;
  border: 3.5px dashed #94a3b8 !important;
  padding: 6px 20px !important;
  border-radius: 8px !important;
}

.rct-biz-name   { font-size: 1.2em; font-weight: 700; letter-spacing: 1px; }
.rct-branch     { font-size: .9em; }
.rct-address, .rct-phone { font-size: .85em; color: #444 !important; }
.rct-phones-merged {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 4px !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  line-height: 1.4 !important;
}
.rct-phones-merged .rct-phone-part {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  white-space: nowrap !important;
}
.rct-phones-merged .rct-phones-divider {
  color: #000000 !important;
  font-weight: 700 !important;
  padding: 0 2px !important;
  opacity: 0.7;
}
.rct-divider    { color: #888 !important; font-size: .9em; margin: 4px 0; overflow: hidden; letter-spacing: -1px; text-align: center; }
.rct-type-label { text-align: center; font-weight: 700; font-size: 1em; margin: 4px 0; letter-spacing: .5px; }
.rct-section-title { font-weight: 700; font-size: .9em; margin: 4px 0 2px; }
.rct-row        { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; margin: 2px 0; font-size: .9em; width: 100%; box-sizing: border-box; }
.rct-row.indent { padding-inline-start: 10px; }
.rct-label      { color: #333 !important; flex: 1 1 auto; min-width: 0; word-break: break-word; }
.rct-val        { text-align: end; flex-shrink: 0; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rct-total      { font-weight: 700; font-size: 1.05em; }
.rct-logo-wrap  { display: flex; justify-content: center; }
.rct-logo       { max-height: none; max-width: 100%; object-fit: contain; }
.rct-code-block {
  text-align: center;
  font-size: 1.15em;
  font-weight: 700;
  background: #f0f0f0 !important;
  border: 1px dashed #999;
  padding: 6px;
  margin: 6px 0;
  letter-spacing: 2px;
}
.rct-instructions { font-size: .85em; color: #444 !important; line-height: 1.6; margin: 4px 0; }
.rct-footer    { font-size: .85em; color: #444 !important; padding: 4px 0 2px; }
.rct-cut-line  { color: #bbb !important; font-size: .8em; margin-top: 8px; text-align: center; }
.rct-qr-box {
  display: inline-block;
  width: 70px; height: 70px;
  border: 2px solid #999;
  line-height: 70px;
  font-size: 11px;
  color: #888 !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   LIVE HALL SESSION CARD V2 (Compact Modern Aesthetic - Image 2)
   ───────────────────────────────────────────────────────────────────────────── */
/* ─────────────────────────────────────────────────────────────────────────────
   LIVE HALL SESSION CARD V2 (Exact Match to User Reference Photo)
   ───────────────────────────────────────────────────────────────────────────── */
.lh-card-v2 {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 24px !important;
  border: 3px solid #e2e8f0;
  background-color: var(--bs-card-bg, #ffffff);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: border-color 0.25s ease;
}
.lh-card-v2:hover {
  transform: none !important;
}
.lh-card-v2.lh-card--boy {
  border-color: #0ea5e9;
}
.lh-card-v2.lh-card--girl {
  border-color: #ec4899;
}
[data-bs-theme="dark"] .lh-card-v2 {
  background-color: #1e293b;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
[data-bs-theme="dark"] .lh-card-v2.lh-card--boy {
  border-color: #0284c7;
}
[data-bs-theme="dark"] .lh-card-v2.lh-card--girl {
  border-color: #db2777;
}

/* ══════════════════════════════════════════════════════════════════
   LIVE HALL LIST VIEW ROW STYLES (Clean, Comfortable, Eye-Friendly)
   ══════════════════════════════════════════════════════════════════ */
.lh-list-row {
  border: 1px solid var(--bs-border-color) !important;
  border-inline-start-width: 4px !important;
  border-radius: 12px !important;
  transition: all 0.2s ease-in-out;
  background-color: var(--bs-card-bg, #ffffff);
  animation: none !important;
}
.lh-list-row:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06) !important;
  transform: translateY(-1px);
}
.lh-list-row.lh-list-row--boy {
  border-inline-start: 4px solid #0ea5e9 !important;
}
.lh-list-row.lh-list-row--girl {
  border-inline-start: 4px solid #ec4899 !important;
}
.lh-list-row.lh-list-row--active {
  border-inline-start-color: #22c55e !important;
}
.lh-list-row.lh-list-row--warning {
  border-inline-start-color: #f59e0b !important;
  background-color: rgba(245, 158, 11, 0.02) !important;
}
.lh-list-row.lh-list-row--overtime {
  border-inline-start-color: #ef4444 !important;
  background-color: rgba(239, 68, 68, 0.035) !important;
}
.lh-list-row.lh-list-row--fixed {
  border-inline-start-color: #06b6d4 !important;
}

[data-bs-theme="dark"] .lh-list-row {
  border-color: rgba(255, 255, 255, 0.08) !important;
}
[data-bs-theme="dark"] .lh-list-row.lh-list-row--boy {
  border-inline-start-color: #0284c7 !important;
}
[data-bs-theme="dark"] .lh-list-row.lh-list-row--girl {
  border-inline-start-color: #db2777 !important;
}
[data-bs-theme="dark"] .lh-list-row.lh-list-row--overtime {
  border-inline-start-color: #ef4444 !important;
  background-color: rgba(239, 68, 68, 0.07) !important;
}
[data-bs-theme="dark"] .lh-list-row.lh-list-row--warning {
  border-inline-start-color: #f59e0b !important;
  background-color: rgba(245, 158, 11, 0.07) !important;
}

/* Diagonal Red Overtime Corner Ribbon */
.lh-corner-ribbon {
  position: absolute;
  top: 18px;
  right: -38px;
  width: 145px;
  height: 30px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff !important;
  font-family: 'Cairo', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(45deg);
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.45);
  z-index: 5;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
[dir="rtl"] .lh-corner-ribbon {
  right: auto;
  left: -38px;
  transform: rotate(-45deg);
}

/* Diagonal Offer Corner Ribbon (Matching Live Hall Card V2 Spec) */
.offer-corner-ribbon {
  position: absolute;
  top: 18px;
  right: -38px;
  width: 145px;
  height: 30px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff !important;
  font-family: 'Cairo', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(45deg);
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.45);
  z-index: 5;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}
[dir="rtl"] .offer-corner-ribbon {
  right: auto;
  left: -38px;
  transform: rotate(-45deg);
}

/* Top Child Header Box (Pastel Blue for Boys, Pastel Pink for Girls) */
.lh-child-box {
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  border-radius: 18px;
  padding: 10px 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.lh-child-box--boy,
.lh-card--boy .lh-child-box {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
}
.lh-child-box--girl,
.lh-card--girl .lh-child-box {
  background: #fdf2f8 !important;
  border-color: #fbcfe8 !important;
}
[data-bs-theme="dark"] .lh-child-box--boy,
[data-bs-theme="dark"] .lh-card--boy .lh-child-box {
  background: rgba(30, 58, 138, 0.22) !important;
  border-color: rgba(96, 165, 250, 0.3) !important;
}
[data-bs-theme="dark"] .lh-child-box--girl,
[data-bs-theme="dark"] .lh-card--girl .lh-child-box {
  background: rgba(131, 24, 67, 0.22) !important;
  border-color: rgba(244, 114, 182, 0.3) !important;
}

/* Child Avatar & Gender Attached Badge */
.lh-avatar-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}
.lh-avatar-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 2px solid #ffffff;
  overflow: hidden;
}
[data-bs-theme="dark"] .lh-avatar-circle {
  background: #0f172a;
  border-color: #334155;
}
.lh-gender-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  z-index: 2;
}
[dir="rtl"] .lh-gender-badge {
  right: auto;
  left: -2px;
}
.lh-gender-badge--male {
  border: 2px solid #0284c7;
  color: #0284c7;
}
.lh-gender-badge--female {
  border: 2px solid #ec4899;
  color: #ec4899;
}
[data-bs-theme="dark"] .lh-gender-badge {
  background: #1e293b;
}

/* Child Names */
.lh-child-name-ar {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.15;
  color: #0f172a;
  font-family: 'Cairo', sans-serif;
  letter-spacing: -0.3px;
}
.lh-child-name-en {
  font-size: 0.95rem;
  font-weight: 600;
  color: #475569;
  line-height: 1;
}
.lh-session-start-time {
  font-size: 0.84rem;
  font-weight: 600;
  color: #64748b;
  display: block;
  min-width: 0;
  line-height: 1.25;
}
.lh-child-age {
  color: #64748b;
  font-family: inherit;
  font-weight: 600;
}
[data-bs-theme="dark"] .lh-child-name-ar {
  color: #f8fafc;
}
[data-bs-theme="dark"] .lh-child-name-en {
  color: #94a3b8;
}
[data-bs-theme="dark"] .lh-session-start-time {
  color: #94a3b8;
}
[data-bs-theme="dark"] .lh-child-age {
  color: #cbd5e1;
}

/* Middle Content Layout: Left details + Right anchored Circular Dial */
/* Middle Content Layout: Responsive flex container without hardcoded padding */
.lh-middle-content {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  width: 100% !important;
  min-height: 96px !important;
  position: relative !important;
}
.lh-details-list {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  padding: 0 !important;
  font-size: 11px !important;
  line-height: 1.4 !important;
}
[dir="rtl"] .lh-details-list {
  padding: 0 !important;
}

/* Big Circular Gauge Timer Anchored inside flex container */
.lh-gauge-dial-wrap {
  position: relative !important;
  right: auto !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  width: 58px !important;
  height: 58px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  z-index: 2 !important;
}
[dir="rtl"] .lh-gauge-dial-wrap {
  right: auto !important;
  left: auto !important;
}

/* High-Precision 360° Circular SVG Gauge Dial */
.lh-gauge-dial {
  width: 58px !important;
  height: 58px !important;
  border-radius: 50% !important;
  border: none !important;
  background: #ffffff !important;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.15) !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  transition: all 0.3s ease !important;
}
[data-bs-theme="dark"] .lh-gauge-dial {
  background: #0f172a !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
}
.lh-dial-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.lh-dial-track {
  stroke: #e0f2fe;
}
[data-bs-theme="dark"] .lh-dial-track {
  stroke: #1e293b;
}
.lh-dial-progress {
  stroke: #0284c7;
  transition: stroke-dashoffset 0.8s linear, stroke 0.3s ease;
}
.lh-card--girl .lh-dial-progress {
  stroke: #ec4899;
}
.lh-card--girl .lh-dial-track {
  stroke: #fce7f3;
}
[data-bs-theme="dark"] .lh-card--girl .lh-dial-track {
  stroke: #3f1d2e;
}
.lh-gauge-dial--overtime,
[data-status="overtime"] .lh-gauge-dial {
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.25) !important;
}
.lh-gauge-dial--overtime .lh-dial-track,
[data-status="overtime"] .lh-gauge-dial .lh-dial-track {
  stroke: #ffe4e6 !important;
}
[data-bs-theme="dark"] .lh-gauge-dial--overtime .lh-dial-track,
[data-bs-theme="dark"] [data-status="overtime"] .lh-gauge-dial .lh-dial-track {
  stroke: #3f1d24 !important;
}
.lh-gauge-dial--overtime .lh-dial-progress,
[data-status="overtime"] .lh-gauge-dial .lh-dial-progress {
  stroke: #f43f5e !important;
}
.lh-gauge-dial .lh-dial-text {
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  letter-spacing: -0.3px !important;
  font-family: 'Cairo', system-ui, sans-serif !important;
  line-height: 1 !important;
  position: relative !important;
  z-index: 3 !important;
  white-space: nowrap !important;
  text-align: center !important;
}
[data-bs-theme="dark"] .lh-gauge-dial .lh-dial-text {
  color: #f8fafc !important;
}
/* Overtime & Long Format Timers (HH:MM:SS e.g. 08:49:32) fit comfortably inside the circle without touching the border */
.lh-gauge-dial--overtime .lh-dial-text,
.lh-gauge-dial--long .lh-dial-text,
.lh-gauge-dial .lh-dial-text--long,
[data-status="overtime"] .lh-gauge-dial .lh-dial-text {
  font-size: 0.58rem !important;
  letter-spacing: -0.4px !important;
}

/* Unified metadata row label width for perfect vertical colon alignment */
.lh-row-label {
  display: inline-block !important;
  width: 44px !important;
  min-width: 44px !important;
  flex-shrink: 0 !important;
  text-align: start !important;
}

/* Action Buttons Grid: Responsive, Single-Row Equal-Width & Never Wrapping */
.lh-pill-actions-grid {
  display: grid !important;
  grid-auto-flow: column !important;
  grid-auto-columns: minmax(0, 1fr) !important;
  gap: 6px !important;
  width: 100% !important;
}
.lh-pill-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  height: 32px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  border-width: 1.5px !important;
  border-style: solid !important;
  transition: all 0.2s ease !important;
  width: 100% !important;
  min-width: 0 !important;
  text-decoration: none !important;
}
.lh-pill-btn i {
  font-size: 13px !important;
}
.lh-pill-btn:hover {
  transform: translateY(-2px);
  filter: brightness(0.95);
}
.lh-pill-btn:disabled,
.lh-pill-btn[disabled],
.lh-action-btn:disabled,
.lh-action-btn[disabled] {
  opacity: 0.32 !important;
  cursor: not-allowed !important;
  pointer-events: auto !important;
  filter: grayscale(0.7) !important;
  box-shadow: none !important;
  transform: none !important;
}
.lh-pill-btn:disabled:hover,
.lh-pill-btn[disabled]:hover,
.lh-action-btn:disabled:hover,
.lh-action-btn[disabled]:hover {
  transform: none !important;
  filter: grayscale(0.7) !important;
}
.lh-pill-btn--info {
  background: #f5f3ff !important;
  color: #7c3aed !important;
  border-color: #ddd6fe !important;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.12);
}
.lh-pill-btn--time,
.lh-pill-btn--ot-running {
  background: #ecfdf5 !important;
  color: #059669 !important;
  border-color: #a7f3d0 !important;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.12);
}
.lh-pill-btn--ot-running:hover,
.lh-pill-btn--time:hover {
  background: #d1fae5 !important;
  color: #047857 !important;
  border-color: #6ee7b7 !important;
}

.lh-pill-btn--ot-stopped {
  background: #fff7ed !important;
  color: #ea580c !important;
  border-color: #fed7aa !important;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.12);
}
.lh-pill-btn--ot-stopped:hover {
  background: #ffedd5 !important;
  color: #c2410c !important;
  border-color: #fdba74 !important;
}

.lh-pill-btn--pos {
  background: #fefce8 !important;
  color: #b45309 !important;
  border-color: #fde68a !important;
  box-shadow: 0 2px 8px rgba(180, 83, 9, 0.12);
}
.lh-pill-btn--out {
  background: #fff1f2 !important;
  color: #e11d48 !important;
  border-color: #fecdd3 !important;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.12);
}
[data-bs-theme="dark"] .lh-pill-btn--info {
  background: rgba(124, 58, 237, 0.18) !important;
  color: #c4b5fd !important;
  border-color: rgba(167, 139, 250, 0.4) !important;
}
[data-bs-theme="dark"] .lh-pill-btn--time,
[data-bs-theme="dark"] .lh-pill-btn--ot-running {
  background: rgba(5, 150, 105, 0.22) !important;
  color: #34d399 !important;
  border-color: rgba(52, 211, 153, 0.45) !important;
}
[data-bs-theme="dark"] .lh-pill-btn--ot-running:hover,
[data-bs-theme="dark"] .lh-pill-btn--time:hover {
  background: rgba(5, 150, 105, 0.32) !important;
  color: #6ee7b7 !important;
}

[data-bs-theme="dark"] .lh-pill-btn--ot-stopped {
  background: rgba(234, 88, 12, 0.22) !important;
  color: #fb923c !important;
  border-color: rgba(251, 146, 60, 0.45) !important;
}
[data-bs-theme="dark"] .lh-pill-btn--ot-stopped:hover {
  background: rgba(234, 88, 12, 0.32) !important;
  color: #fdba74 !important;
}
[data-bs-theme="dark"] .lh-pill-btn--pos {
  background: rgba(180, 83, 9, 0.18) !important;
  color: #fcd34d !important;
  border-color: rgba(251, 191, 36, 0.4) !important;
}
[data-bs-theme="dark"] .lh-pill-btn--out {
  background: rgba(225, 29, 72, 0.18) !important;
  color: #fda4af !important;
  border-color: rgba(251, 113, 133, 0.4) !important;
}


/* ── Live Hall Card Alert Animations (Enhanced Suite) ── */
/* Configurable via CSS custom properties (injected from GameConfiguration): */
/*   --jz-alert-color   : hex border/glow color  (default: #f43f5e)          */
/*   --jz-speed-factor  : animation speed divisor (default: 1)                */
[class*="lh-card-anim--"] {
  transition: none !important;
}

/* 1. Pulse (Smooth scale breathing + expanding ring) */
@keyframes lh-pulse-anim {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--jz-alert-color, #f43f5e) 70%, transparent), 0 8px 24px rgba(0, 0, 0, 0.08);
  }
  50% {
    transform: scale(1.025);
    box-shadow: 0 0 0 10px color-mix(in srgb, var(--jz-alert-color, #f43f5e) 0%, transparent), 0 16px 36px color-mix(in srgb, var(--jz-alert-color, #f43f5e) 28%, transparent);
  }
}
.lh-card-v2.lh-card-anim--pulse,
.lh-compact-card.lh-card-anim--pulse,
#demoSessionCard.lh-card-anim--pulse,
.lh-card-anim--pulse {
  animation: lh-pulse-anim calc(1.4s / var(--jz-speed-factor, 1)) infinite ease-in-out !important;
  border-color: var(--jz-alert-color, #f43f5e) !important;
}

/* 2. Heartbeat (Classic dual-thump cardiac rhythm) */
@keyframes lh-heartbeat-anim {
  0%   { transform: scale(1); }
  14%  { transform: scale(1.035); }
  28%  { transform: scale(1); }
  42%  { transform: scale(1.045); }
  70%  { transform: scale(1); }
  100% { transform: scale(1); }
}
.lh-card-v2.lh-card-anim--heartbeat,
.lh-compact-card.lh-card-anim--heartbeat,
#demoSessionCard.lh-card-anim--heartbeat,
.lh-card-anim--heartbeat {
  animation: lh-heartbeat-anim calc(1.3s / var(--jz-speed-factor, 1)) infinite cubic-bezier(0.215, 0.61, 0.355, 1) !important;
  border-color: var(--jz-alert-color, #f43f5e) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--jz-alert-color, #f43f5e) 30%, transparent), 0 14px 32px color-mix(in srgb, var(--jz-alert-color, #f43f5e) 22%, transparent) !important;
}

/* 3. Shake (Snappy, high-frequency alert vibration) */
@keyframes lh-shake-anim {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  12%, 36%, 60%, 84% { transform: translateX(-4px) rotate(-0.6deg); }
  24%, 48%, 72% { transform: translateX(4px) rotate(0.6deg); }
}
.lh-card-v2.lh-card-anim--shake,
.lh-compact-card.lh-card-anim--shake,
#demoSessionCard.lh-card-anim--shake,
.lh-card-anim--shake {
  animation: lh-shake-anim calc(0.65s / var(--jz-speed-factor, 1)) infinite ease-in-out !important;
  border-color: var(--jz-alert-color, #f59e0b) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--jz-alert-color, #f59e0b) 35%, transparent), 0 12px 28px color-mix(in srgb, var(--jz-alert-color, #f59e0b) 20%, transparent) !important;
}

/* 4. Bounce (Energetic vertical lift-off) */
@keyframes lh-bounce-anim {
  0%, 100% { transform: translateY(0); }
  35% { transform: translateY(-10px); }
  55% { transform: translateY(-4px); }
}
.lh-card-v2.lh-card-anim--bounce,
.lh-compact-card.lh-card-anim--bounce,
#demoSessionCard.lh-card-anim--bounce,
.lh-card-anim--bounce {
  animation: lh-bounce-anim calc(1.1s / var(--jz-speed-factor, 1)) infinite cubic-bezier(0.28, 0.84, 0.42, 1) !important;
  border-color: var(--jz-alert-color, #38bdf8) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--jz-alert-color, #38bdf8) 30%, transparent), 0 16px 32px color-mix(in srgb, var(--jz-alert-color, #38bdf8) 25%, transparent) !important;
}

/* 5. Flash (Vivid theme-aware alert flash strobe) */
@keyframes lh-flash-anim {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
    border-color: var(--jz-alert-color, #f59e0b);
    background-color: var(--bs-card-bg, #ffffff);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }
  20%, 35% {
    transform: scale(1.035);
    opacity: 0.92;
    border-color: var(--jz-alert-color, #ef4444);
    background-color: color-mix(in srgb, var(--jz-alert-color, #ef4444) 12%, #ffffff);
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--jz-alert-color, #ef4444) 55%, transparent), 0 14px 36px color-mix(in srgb, var(--jz-alert-color, #ef4444) 35%, transparent);
    filter: brightness(1.1);
  }
  50% {
    transform: scale(1);
    opacity: 1;
    border-color: var(--jz-alert-color, #f59e0b);
    background-color: var(--bs-card-bg, #ffffff);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }
  70%, 85% {
    transform: scale(1.035);
    opacity: 0.92;
    border-color: var(--jz-alert-color, #f59e0b);
    background-color: color-mix(in srgb, var(--jz-alert-color, #f59e0b) 10%, #ffffff);
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--jz-alert-color, #f59e0b) 60%, transparent), 0 14px 36px color-mix(in srgb, var(--jz-alert-color, #f59e0b) 35%, transparent);
    filter: brightness(1.1);
  }
}
@keyframes lh-flash-anim-dark {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
    border-color: var(--jz-alert-color, #f59e0b);
    background-color: #1e293b;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }
  20%, 35% {
    transform: scale(1.035);
    opacity: 0.94;
    border-color: var(--jz-alert-color, #ef4444);
    background-color: color-mix(in srgb, var(--jz-alert-color, #ef4444) 25%, #0f172a);
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--jz-alert-color, #ef4444) 60%, transparent), 0 14px 36px color-mix(in srgb, var(--jz-alert-color, #ef4444) 45%, transparent);
    filter: brightness(1.2);
  }
  50% {
    transform: scale(1);
    opacity: 1;
    border-color: var(--jz-alert-color, #f59e0b);
    background-color: #1e293b;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }
  70%, 85% {
    transform: scale(1.035);
    opacity: 0.94;
    border-color: var(--jz-alert-color, #f59e0b);
    background-color: color-mix(in srgb, var(--jz-alert-color, #f59e0b) 20%, #0f172a);
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--jz-alert-color, #f59e0b) 60%, transparent), 0 14px 36px color-mix(in srgb, var(--jz-alert-color, #f59e0b) 45%, transparent);
    filter: brightness(1.2);
  }
}
.lh-card-v2.lh-card-anim--flash,
.lh-compact-card.lh-card-anim--flash,
#demoSessionCard.lh-card-anim--flash,
.lh-card-anim--flash {
  animation: lh-flash-anim calc(0.9s / var(--jz-speed-factor, 1)) infinite ease-in-out !important;
  border-color: var(--jz-alert-color, #f59e0b) !important;
}
[data-bs-theme="dark"] .lh-card-v2.lh-card-anim--flash,
[data-bs-theme="dark"] .lh-compact-card.lh-card-anim--flash,
[data-bs-theme="dark"] #demoSessionCard.lh-card-anim--flash,
[data-bs-theme="dark"] .lh-card-anim--flash {
  animation: lh-flash-anim-dark calc(0.9s / var(--jz-speed-factor, 1)) infinite ease-in-out !important;
}

/* 6. Glow (Deep neon radiance & aura halo) */
@keyframes lh-glow-anim {
  0%, 100% {
    transform: scale(1);
    border-color: var(--jz-alert-color, #f59e0b);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--jz-alert-color, #f59e0b) 40%, transparent),
                0 0 18px color-mix(in srgb, var(--jz-alert-color, #f59e0b) 60%, transparent),
                0 0 36px color-mix(in srgb, var(--jz-alert-color, #f59e0b) 25%, transparent);
    filter: drop-shadow(0 0 6px color-mix(in srgb, var(--jz-alert-color, #f59e0b) 40%, transparent));
  }
  50% {
    transform: scale(1.025);
    border-color: color-mix(in srgb, var(--jz-alert-color, #f59e0b) 50%, #8b5cf6);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--jz-alert-color, #f59e0b) 55%, transparent),
                0 0 32px color-mix(in srgb, var(--jz-alert-color, #f59e0b) 85%, transparent),
                0 0 60px color-mix(in srgb, var(--jz-alert-color, #f59e0b) 45%, transparent),
                inset 0 0 15px color-mix(in srgb, var(--jz-alert-color, #f59e0b) 20%, transparent);
    filter: drop-shadow(0 0 16px color-mix(in srgb, var(--jz-alert-color, #f59e0b) 75%, transparent)) brightness(1.05);
  }
}
.lh-card-v2.lh-card-anim--glow,
.lh-compact-card.lh-card-anim--glow,
#demoSessionCard.lh-card-anim--glow,
.lh-card-anim--glow {
  animation: lh-glow-anim calc(1.6s / var(--jz-speed-factor, 1)) infinite ease-in-out !important;
  border-color: var(--jz-alert-color, #f59e0b) !important;
}

/* 7. Wobble (Playful side-to-side wiggle) */
@keyframes lh-wobble-anim {
  0%, 100% { transform: rotate(0deg) scale(1); }
  15% { transform: rotate(-2.5deg) scale(1.02); }
  30% { transform: rotate(2.5deg) scale(1.02); }
  45% { transform: rotate(-1.5deg) scale(1.01); }
  60% { transform: rotate(1.5deg) scale(1.01); }
  75% { transform: rotate(-0.5deg) scale(1); }
}
.lh-card-v2.lh-card-anim--wobble,
.lh-compact-card.lh-card-anim--wobble,
#demoSessionCard.lh-card-anim--wobble,
.lh-card-anim--wobble {
  animation: lh-wobble-anim calc(1.1s / var(--jz-speed-factor, 1)) infinite ease-in-out !important;
  border-color: var(--jz-alert-color, #06b6d4) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--jz-alert-color, #06b6d4) 30%, transparent), 0 12px 28px color-mix(in srgb, var(--jz-alert-color, #06b6d4) 22%, transparent) !important;
}

/* 8. Radar (Expanding ripple waves) */
@keyframes lh-radar-anim {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--jz-alert-color, #f43f5e) 80%, transparent), 0 0 0 0 color-mix(in srgb, var(--jz-alert-color, #f43f5e) 40%, transparent);
  }
  50% {
    transform: scale(1.015);
    box-shadow: 0 0 0 10px color-mix(in srgb, var(--jz-alert-color, #f43f5e) 40%, transparent), 0 0 0 20px color-mix(in srgb, var(--jz-alert-color, #f43f5e) 15%, transparent);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 20px color-mix(in srgb, var(--jz-alert-color, #f43f5e) 0%, transparent), 0 0 0 32px color-mix(in srgb, var(--jz-alert-color, #f43f5e) 0%, transparent);
  }
}
.lh-card-v2.lh-card-anim--radar,
.lh-compact-card.lh-card-anim--radar,
#demoSessionCard.lh-card-anim--radar,
.lh-card-anim--radar {
  animation: lh-radar-anim calc(1.4s / var(--jz-speed-factor, 1)) infinite cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  border-color: var(--jz-alert-color, #f43f5e) !important;
}

/* 9. RubberBand (Playful stretching elasticity) */
@keyframes lh-rubber-anim {
  0%, 100% { transform: scale3d(1, 1, 1); }
  30% { transform: scale3d(1.06, 0.94, 1); }
  40% { transform: scale3d(0.94, 1.06, 1); }
  50% { transform: scale3d(1.04, 0.96, 1); }
  65% { transform: scale3d(0.98, 1.02, 1); }
  75% { transform: scale3d(1.01, 0.99, 1); }
}
.lh-card-v2.lh-card-anim--rubber,
.lh-compact-card.lh-card-anim--rubber,
#demoSessionCard.lh-card-anim--rubber,
.lh-card-anim--rubber {
  animation: lh-rubber-anim calc(1.3s / var(--jz-speed-factor, 1)) infinite !important;
  border-color: var(--jz-alert-color, #10b981) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--jz-alert-color, #10b981) 30%, transparent), 0 14px 30px color-mix(in srgb, var(--jz-alert-color, #10b981) 22%, transparent) !important;
}

/* 10. Tilt (Subtle three-dimensional sway) */
@keyframes lh-tilt-anim {
  0%, 100% { transform: perspective(700px) rotateX(0deg) rotateY(0deg) scale(1); }
  25% { transform: perspective(700px) rotateX(2deg) rotateY(-2.5deg) scale(1.015); }
  50% { transform: perspective(700px) rotateX(0deg) rotateY(0deg) scale(1); }
  75% { transform: perspective(700px) rotateX(-2deg) rotateY(2.5deg) scale(1.015); }
}
.lh-card-v2.lh-card-anim--tilt,
.lh-compact-card.lh-card-anim--tilt,
#demoSessionCard.lh-card-anim--tilt,
.lh-card-anim--tilt {
  animation: lh-tilt-anim calc(1.8s / var(--jz-speed-factor, 1)) infinite ease-in-out !important;
  border-color: var(--jz-alert-color, #0ea5e9) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--jz-alert-color, #0ea5e9) 28%, transparent), 0 12px 28px color-mix(in srgb, var(--jz-alert-color, #0ea5e9) 20%, transparent) !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   LIVE HALL TABLE & LIST ROW FADE-IN/OUT BACKGROUND PULSE ANIMATIONS
   Pulsating fade-in/out on table rows when player is in overtime or nearing expiration
   ───────────────────────────────────────────────────────────────────────────── */
@keyframes lhRowOvertimeFade {
  0%, 100% {
    background-color: rgba(239, 68, 68, 0.05);
  }
  50% {
    background-color: rgba(239, 68, 68, 0.16);
  }
}

@keyframes lhRowWarningFade {
  0%, 100% {
    background-color: rgba(245, 158, 11, 0.04);
  }
  50% {
    background-color: rgba(245, 158, 11, 0.14);
  }
}

tr.lh-row-overtime-pulse {
  background-color: transparent !important;
}

tr.lh-row-overtime-pulse > td,
tr.lh-row-overtime-pulse > th,
.card.lh-row-overtime-pulse {
  animation: lhRowOvertimeFade calc(1.2s / var(--jz-speed-factor, 1)) ease-in-out infinite !important;
  transition: background-color 0.2s ease-in-out !important;
}

tr.lh-row-overtime-pulse:hover > td,
tr.lh-row-overtime-pulse:hover > th {
  background-color: rgba(239, 68, 68, 0.22) !important;
}

tr.lh-row-overtime-pulse > td:first-child {
  border-inline-start: 3.5px solid var(--bs-danger, #ef4444) !important;
}

tr.lh-row-warning-pulse {
  background-color: transparent !important;
}

tr.lh-row-warning-pulse > td,
tr.lh-row-warning-pulse > th,
.card.lh-row-warning-pulse {
  animation: lhRowWarningFade calc(1.2s / var(--jz-speed-factor, 1)) ease-in-out infinite !important;
  transition: background-color 0.2s ease-in-out !important;
}

tr.lh-row-warning-pulse:hover > td,
tr.lh-row-warning-pulse:hover > th {
  background-color: rgba(245, 158, 11, 0.2) !important;
}

tr.lh-row-warning-pulse > td:first-child {
  border-inline-start: 3.5px solid var(--bs-warning, #f59e0b) !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   LIVE HALL SESSION DETAIL MODAL (Modern Royal Purple Theme - Image 2 Spec)
   ───────────────────────────────────────────────────────────────────────────── */
.lh-session-detail-dialog .modal-content {
  border-radius: 20px !important;
  overflow: hidden !important;
  border: none !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22) !important;
  background-color: var(--bs-card-bg, #ffffff) !important;
}

/* Modal Header: Royal Purple Gradient */
.lh-modal-header {
  background: linear-gradient(135deg, #4f2d68 0%, #633882 100%) !important;
  color: #ffffff !important;
  padding: 20px 24px !important;
  border: none !important;
  border-top-left-radius: 20px !important;
  border-top-right-radius: 20px !important;
}
.lh-modal-header .btn-close-white-custom {
  background: transparent;
  border: none;
  color: #ffffff;
  opacity: 0.85;
  font-size: 1.25rem;
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.lh-modal-header .btn-close-white-custom:hover {
  opacity: 1;
  transform: scale(1.1);
}
.lh-modal-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.85);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

/* Sub-Header Pills: Parent ID & Child ID */
.lh-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}
.lh-badge-pill--parent {
  background: #f0fdfa;
  border: 1.5px solid #2dd4bf;
  color: #0f766e;
}
[data-bs-theme="dark"] .lh-badge-pill--parent {
  background: rgba(13, 148, 136, 0.15);
  border-color: rgba(45, 212, 191, 0.4);
  color: #2dd4bf;
}
.lh-badge-pill--child {
  background: #faf5ff;
  border: 1.5px solid #c084fc;
  color: #7e22ce;
}
[data-bs-theme="dark"] .lh-badge-pill--child {
  background: rgba(126, 34, 206, 0.15);
  border-color: rgba(192, 132, 252, 0.4);
  color: #c084fc;
}

/* 5 Top-Accented Themed KPI Metric Cards */
.lh-modal-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
@media (max-width: 991px) {
  .lh-modal-kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 576px) {
  .lh-modal-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.lh-metric-box {
  background: var(--bs-card-bg, #ffffff);
  border: 1.5px solid var(--bs-border-color, #e2e8f0);
  border-top-width: 4px !important;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lh-metric-box:hover {
  transform: translateY(-2px);
}
.lh-metric-box--prepaid {
  border-top-color: #0d9488 !important;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.08);
}
.lh-metric-box--canteen {
  border-top-color: #f59e0b !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.08);
}
.lh-metric-box--loyalty {
  border-top-color: #4f46e5 !important;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.08);
}
.lh-metric-box--package {
  border-top-color: #06b6d4 !important;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.08);
}
.lh-metric-box--overtime {
  border-top-color: #f43f5e !important;
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.12);
}

/* Orders and Activities Section Cards */
.lh-section-card {
  background: var(--bs-card-bg, #ffffff);
  border: 1.5px solid var(--bs-border-color, #e2e8f0);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}
.lh-section-card-header {
  padding: 11px 16px;
  font-size: 13.5px;
  font-weight: 700;
  border-bottom: 1px solid var(--bs-border-color, #f1f5f9);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lh-order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--bs-border-color, #f1f5f9);
  font-size: 13.5px;
}
.lh-order-row:last-child {
  border-bottom: none;
}

/* Modal Footer */
.lh-modal-footer-custom {
  padding: 14px 24px !important;
  border-top: 1px solid var(--bs-border-color, #e2e8f0) !important;
  background: var(--bs-body-bg, #ffffff) !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.lh-btn-close-outline {
  background: var(--bs-card-bg, #ffffff);
  border: 1.5px solid var(--bs-border-color, #cbd5e1);
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  color: var(--bs-body-color, #334155);
  padding: 7px 18px;
  transition: all 0.2s ease;
}
.lh-btn-close-outline:hover {
  background: var(--bs-tertiary-bg, #f1f5f9);
  border-color: #94a3b8;
}
.lh-btn-teal {
  background: #0d9488 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  padding: 7px 16px !important;
  transition: filter 0.2s ease;
}
.lh-btn-teal:hover {
  filter: brightness(0.92);
}
.lh-btn-mint,
.lh-btn-ot-running {
  background: #ccfbf1 !important;
  color: #0f766e !important;
  border: 1px solid #99f6e4 !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  padding: 7px 16px !important;
  transition: all 0.2s ease;
}
.lh-btn-mint:hover,
.lh-btn-ot-running:hover {
  background: #99f6e4 !important;
  color: #115e59 !important;
}
[data-bs-theme="dark"] .lh-btn-mint,
[data-bs-theme="dark"] .lh-btn-ot-running {
  background: rgba(13, 148, 136, 0.2) !important;
  color: #2dd4bf !important;
  border-color: rgba(45, 212, 191, 0.4) !important;
}
[data-bs-theme="dark"] .lh-btn-ot-running:hover {
  background: rgba(13, 148, 136, 0.35) !important;
  color: #5eead4 !important;
}

.lh-btn-ot-stopped {
  background: #fff7ed !important;
  color: #ea580c !important;
  border: 1px solid #fed7aa !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  padding: 7px 16px !important;
  transition: all 0.2s ease;
}
.lh-btn-ot-stopped:hover {
  background: #ffedd5 !important;
  color: #c2410c !important;
  border-color: #fdba74 !important;
}
[data-bs-theme="dark"] .lh-btn-ot-stopped {
  background: rgba(234, 88, 12, 0.22) !important;
  color: #fb923c !important;
  border-color: rgba(251, 146, 60, 0.45) !important;
}
[data-bs-theme="dark"] .lh-btn-ot-stopped:hover {
  background: rgba(234, 88, 12, 0.35) !important;
  color: #fdba74 !important;
}
.lh-btn-purple-checkout {
  background: #50316e !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  padding: 7px 20px !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: filter 0.2s ease;
}
.lh-btn-purple-checkout:hover {
  filter: brightness(1.1);
  color: #ffffff;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Game Configuration Tabs (Exact Match to Card-Header Tabs Standard)
   ───────────────────────────────────────────────────────────────────────────── */
.gc-tabs-header {
  background-color: var(--bs-body-bg, #f8fafc) !important;
  border-bottom: 1px solid var(--bs-border-color, #e2e8f0) !important;
  padding: 8px 16px 0 16px !important;
}
.gc-tabs .nav-link {
  color: #2563eb !important;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent !important;
  border-top-left-radius: 8px !important;
  border-top-right-radius: 8px !important;
  padding: 9px 18px !important;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent !important;
  transition: all 0.2s ease;
}
.gc-tabs .nav-link i {
  color: #2563eb !important;
  font-size: 0.95rem;
}
.gc-tabs .nav-link:hover {
  color: #1d4ed8 !important;
  background-color: rgba(37, 99, 235, 0.06) !important;
}
.gc-tabs .nav-link:hover i {
  color: #1d4ed8 !important;
}
.gc-tabs .nav-link.active {
  color: var(--bs-body-color, #0f172a) !important;
  background-color: var(--bs-card-bg, #ffffff) !important;
  border-color: var(--bs-border-color, #e2e8f0) var(--bs-border-color, #e2e8f0) var(--bs-card-bg, #ffffff) !important;
  border-bottom: 1px solid var(--bs-card-bg, #ffffff) !important;
  box-shadow: none !important;
}
.gc-tabs .nav-link.active i {
  color: var(--bs-body-color, #0f172a) !important;
}
[data-bs-theme="dark"] .gc-tabs .nav-link {
  color: #60a5fa !important;
}
[data-bs-theme="dark"] .gc-tabs .nav-link i {
  color: #60a5fa !important;
}
[data-bs-theme="dark"] .gc-tabs .nav-link:hover {
  background-color: rgba(96, 165, 250, 0.1) !important;
}
[data-bs-theme="dark"] .gc-tabs .nav-link.active {
  color: #f8fafc !important;
  background-color: var(--bs-card-bg) !important;
  border-color: var(--bs-border-color) var(--bs-border-color) var(--bs-card-bg) !important;
}
[data-bs-theme="dark"] .gc-tabs .nav-link.active i {
  color: #f8fafc !important;
}

/* ─────────────────────────────────────────────────────────────────────────
   Checkout & Safety Wristband Matching Scanner (Theme Integrated)
   ───────────────────────────────────────────────────────────────────────── */
.safety-scanner-card {
  border-radius: 1rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.safety-matching-box {
  border: 2px dashed var(--bs-primary, #6366f1);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  background: rgba(var(--bs-primary-rgb, 99, 102, 241), 0.03);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.safety-matching-box.is-verified {
  border-color: #10b981 !important;
  background: rgba(16, 185, 129, 0.06) !important;
}

.member-wristband-row {
  border-radius: 0.75rem;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.member-wristband-row:hover {
  border-color: var(--bs-primary, #6366f1) !important;
  background-color: var(--bs-secondary-bg) !important;
}

.member-wristband-row.is-verified-row {
  border-color: rgba(16, 185, 129, 0.5) !important;
  background: rgba(16, 185, 129, 0.05) !important;
}

.payment-segmented-control .btn-check:checked + .btn {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(var(--bs-primary-rgb), 0.25);
}

/* ─────────────────────────────────────────────────────────────────────────
   GLOBAL MODAL SCROLL CONTAINMENT (AGENTS.md Standard)
   Ensures modal pop-ups NEVER overflow the viewport or scroll the background page.
   The header and footer stay pinned; scrolling occurs strictly inside .modal-body.
   ───────────────────────────────────────────────────────────────────────── */
.modal-dialog {
  max-height: calc(100vh - 2rem);
  margin: 1rem auto;
}

@media (min-width: 576px) {
  .modal-dialog {
    max-height: calc(100vh - 3.5rem);
    margin: 1.75rem auto;
  }
}

.modal-dialog-centered {
  min-height: calc(100% - 2rem);
}

@media (min-width: 576px) {
  .modal-dialog-centered {
    min-height: calc(100% - 3.5rem);
  }
}

.modal-dialog .modal-content {
  max-height: calc(100vh - 2rem);
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

@media (min-width: 576px) {
  .modal-dialog .modal-content {
    max-height: calc(100vh - 3.5rem);
  }
}

.modal-dialog .modal-header {
  flex-shrink: 0 !important;
  position: relative;
  z-index: 2;
}

.modal-dialog .modal-footer {
  flex-shrink: 0 !important;
  position: relative;
  z-index: 2;
}

/* Ensure forms wrapping modal-body and modal-footer behave as flexible columns */
.modal-dialog form,
.modal-content > form {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  margin-bottom: 0 !important;
}

/* Internal smooth scrolling exclusively on modal body */
.modal-dialog .modal-body,
.modal-dialog-scrollable .modal-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
}

/* Sleek custom scrollbar for modal body */
.modal-dialog .modal-body::-webkit-scrollbar {
  width: 6px;
}
.modal-dialog .modal-body::-webkit-scrollbar-track {
  background: transparent;
}
.modal-dialog .modal-body::-webkit-scrollbar-thumb {
  background-color: rgba(148, 163, 184, 0.4);
  border-radius: 10px;
}
.modal-dialog .modal-body::-webkit-scrollbar-thumb:hover {
  background-color: rgba(100, 116, 139, 0.7);
}

/* Lock background page against scroll leaks when any modal is open */
body.modal-open {
  overflow: hidden !important;
}

/* ==============================================================================
   UNIVERSAL REPORTING & ANALYTICS FILTER TOOLBAR HARMONIZATION
   ============================================================================== */
.jz-filter-capsule {
  height: 36px !important;
  background-color: var(--bs-card-bg) !important;
  border: 1px solid var(--bs-border-color) !important;
  border-radius: 50rem !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
}

.jz-filter-capsule:focus-within {
  border-color: var(--bs-primary) !important;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15) !important;
}

.jz-filter-capsule .form-control,
.jz-filter-capsule .form-select {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background-color: transparent !important;
  color: var(--bs-body-color) !important;
  height: 100% !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
}

.jz-filter-capsule input[type="date"] {
  cursor: pointer !important;
  padding: 0 6px !important;
  width: 125px !important;
  text-align: center !important;
}

.jz-filter-capsule input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer !important;
  opacity: 0.65;
  transition: opacity 0.2s ease;
}

.jz-filter-capsule input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

.jz-preset-btn {
  height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  border-radius: 50rem !important;
  padding: 0 1rem !important;
  transition: all 0.2s ease-in-out !important;
}

.jz-action-capsule-btn {
  height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50rem !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
}

/* ==============================================================================
   REPORTING BI PORTAL CARDS & DIRECTORY ENHANCEMENTS
   ============================================================================== */
.report-portal-card {
  position: relative !important;
  border-radius: 14px !important;
  border: 1px solid var(--bs-border-color) !important;
  background-color: var(--bs-card-bg) !important;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease, border-color 0.2s ease !important;
  overflow: hidden !important;
  text-decoration: none !important;
  padding: 1.25rem !important;
  text-align: start !important;
  min-height: 220px !important;
}

/* List View Ergonomic Horizontal Layout Override (Removes 220px min-height void) */
#reportsViewList .report-portal-card,
.report-portal-card.report-portal-card--list {
  min-height: auto !important;
  height: auto !important;
  padding: 0.85rem 1.25rem !important;
  border-radius: 12px !important;
}

#reportsViewList .report-portal-card:hover,
.report-portal-card.report-portal-card--list:hover {
  transform: translateY(-2px) !important;
}

#reportsViewList .report-portal-card .card-accent-line,
.report-portal-card.report-portal-card--list .card-accent-line {
  top: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  right: auto !important;
  width: 4px !important;
  height: 100% !important;
  transition: width 0.2s ease !important;
}

html[dir="rtl"] #reportsViewList .report-portal-card .card-accent-line,
html[dir="rtl"] .report-portal-card.report-portal-card--list .card-accent-line,
:root:not([dir="ltr"]) #reportsViewList .report-portal-card .card-accent-line,
:root:not([dir="ltr"]) .report-portal-card.report-portal-card--list .card-accent-line {
  left: auto !important;
  right: 0 !important;
}

#reportsViewList .report-portal-card:hover .card-accent-line,
.report-portal-card.report-portal-card--list:hover .card-accent-line {
  width: 6px !important;
  height: 100% !important;
}

.report-portal-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.1), 0 3px 8px -2px rgba(0, 0, 0, 0.04) !important;
  border-color: var(--bs-primary) !important;
}

[data-bs-theme="dark"] .report-portal-card:hover {
  box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.45), 0 3px 8px -2px rgba(0, 0, 0, 0.25) !important;
}

.report-portal-card .card-accent-line {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 3.5px !important;
  transition: height 0.2s ease !important;
}

.report-portal-card:hover .card-accent-line {
  height: 4.5px !important;
}

.report-portal-card .portal-icon-box {
  width: 42px !important;
  height: 42px !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.15rem !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  flex-shrink: 0 !important;
}

.report-portal-card:hover .portal-icon-box {
  transform: scale(1.08) !important;
}

.report-portal-card .action-arrow {
  transition: transform 0.2s ease !important;
  display: inline-block !important;
}

.report-portal-card:hover .action-arrow {
  transform: translateX(4px) !important;
}

html[dir="rtl"] .report-portal-card:hover .action-arrow,
:root:not([dir="ltr"]) .report-portal-card:hover .action-arrow {
  transform: translateX(-4px) !important;
}

/* Direction-aware RTL Flip */
html[dir="rtl"] .rtl-flip,
:root:not([dir="ltr"]) .rtl-flip {
  transform: scaleX(-1) !important;
  display: inline-block !important;
}

/* ================================================================
   UNIVERSAL MULTI-VIEW PRESENTATION CONTAINERS (AGENTS.md Section 3C)
   Enforces Grid, List, Table view display instantly via data-active-view
   Zero layout flicker and zero view reset on HTMX partial updates
   ================================================================ */
[data-active-view="grid"] [id$="ViewGrid"],
[data-active-view="grid"] .jz-view-grid {
  display: block !important;
}
[data-active-view="grid"] [id$="ViewGrid"].row,
[data-active-view="grid"] .jz-view-grid.row {
  display: flex !important;
  flex-wrap: wrap !important;
}
[data-active-view="grid"] [id$="ViewCompact"],
[data-active-view="grid"] .jz-view-compact,
[data-active-view="grid"] [id$="ViewList"],
[data-active-view="grid"] .jz-view-list,
[data-active-view="grid"] [id$="ViewTable"],
[data-active-view="grid"] .jz-view-table {
  display: none !important;
}

[data-active-view="compact"] [id$="ViewCompact"],
[data-active-view="compact"] .jz-view-compact {
  display: block !important;
}
[data-active-view="compact"] [id$="ViewCompact"].row,
[data-active-view="compact"] .jz-view-compact.row {
  display: flex !important;
  flex-wrap: wrap !important;
}
[data-active-view="compact"] [id$="ViewGrid"],
[data-active-view="compact"] .jz-view-grid,
[data-active-view="compact"] [id$="ViewList"],
[data-active-view="compact"] .jz-view-list,
[data-active-view="compact"] [id$="ViewTable"],
[data-active-view="compact"] .jz-view-table {
  display: none !important;
}

[data-active-view="list"] [id$="ViewGrid"],
[data-active-view="list"] .jz-view-grid,
[data-active-view="list"] [id$="ViewCompact"],
[data-active-view="list"] .jz-view-compact {
  display: none !important;
}
[data-active-view="list"] [id$="ViewList"],
[data-active-view="list"] .jz-view-list {
  display: block !important;
}
[data-active-view="list"] #notificationsViewList {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.25rem !important;
}
[data-active-view="list"] [id$="ViewTable"],
[data-active-view="list"] .jz-view-table {
  display: none !important;
}

[data-active-view="table"] [id$="ViewGrid"],
[data-active-view="table"] .jz-view-grid,
[data-active-view="table"] [id$="ViewCompact"],
[data-active-view="table"] .jz-view-compact,
[data-active-view="table"] [id$="ViewList"],
[data-active-view="table"] .jz-view-list {
  display: none !important;
}
[data-active-view="table"] [id$="ViewTable"],
[data-active-view="table"] .jz-view-table {
  display: block !important;
}

/* ================================================================
   COMPACT LIVE HALL CARD DESIGN (AGENTS.md Section 3C Compliant)
   Sleek, modern, ergonomic mini card layout with zero visual clutter
   ================================================================ */
.lh-compact-card {
  border: 1.5px solid var(--bs-border-color) !important;
  border-top-width: 4px !important;
  border-radius: 16px !important;
  background-color: var(--bs-card-bg) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease !important;
  cursor: pointer !important;
  overflow: hidden;
  user-select: none;
}
.lh-compact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
}
.lh-compact-card:active {
  transform: translateY(0);
}
.lh-compact-card.lh-compact--boy {
  border-top-color: #0ea5e9 !important;
}
.lh-compact-card.lh-compact--girl {
  border-top-color: #ec4899 !important;
}
.lh-compact-card.lh-compact--overtime {
  border-top-color: #ef4444 !important;
  border-color: rgba(239, 68, 68, 0.45) !important;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.12) !important;
}

.lh-compact-header {
  padding: 8px 12px;
  background: var(--bs-tertiary-bg);
  border-bottom: 1px solid var(--bs-border-color);
  border-radius: 14px 14px 0 0;
}
.lh-compact-card.lh-compact--boy .lh-compact-header {
  background: rgba(14, 165, 233, 0.06);
}
.lh-compact-card.lh-compact--girl .lh-compact-header {
  background: rgba(236, 72, 153, 0.06);
}
.lh-compact-card.lh-compact--overtime .lh-compact-header {
  background: rgba(239, 68, 68, 0.08);
}

.lh-compact-body {
  padding: 10px 14px;
}

.lh-compact-footer {
  padding: 8px 14px;
  border-top: 1px solid var(--bs-border-color);
  background: var(--bs-tertiary-bg);
  border-radius: 0 0 14px 14px;
}

/* ================================================================
   Approval Workflow Matrix Pills (AGENTS.md Compliant)
   ================================================================ */
.role-choice-pill,
.user-choice-pill {
  transition: all 0.16s ease-in-out;
  cursor: pointer;
  position: relative;
  line-height: 1.25;
  box-sizing: border-box;
}

.role-choice-pill:hover,
.user-choice-pill:hover {
  border-color: var(--bs-primary-border-subtle) !important;
  background-color: var(--bs-secondary-bg) !important;
}

.role-choice-pill:has(input:checked),
.user-choice-pill:has(input:checked) {
  border-color: var(--bs-primary) !important;
  background-color: rgba(var(--bs-primary-rgb), 0.08) !important;
  box-shadow: 0 0 0 1px var(--bs-primary);
}

.role-choice-pill:has(input:checked) span,
.user-choice-pill:has(input:checked) span.fw-semibold {
  color: var(--bs-primary) !important;
}

.role-choice-pill .form-check-input,
.user-choice-pill .form-check-input {
  cursor: pointer;
  width: 1.05rem;
  height: 1.05rem;
}

/* ================================================================
   Digital Voucher Card (AGENTS.md & Image 2 Architecture)
   ================================================================ */
.voucher-card-preview {
  width: min(100%, 350px);
  min-height: 410px;
  margin: 0 auto;
  padding: 24px;
  border: 2px solid #f0b900;
  border-radius: 18px;
  background: #211832;
  box-shadow: 0 14px 30px rgba(33, 24, 50, .28);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.voucher-brand-logo {
  display: block;
  max-width: 180px;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.voucher-card-preview h3 {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.voucher-offer-preview {
  color: #ffc107;
  font-size: 1.05rem;
  font-weight: 700;
  min-height: 24px;
}
.voucher-preview-customer {
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: #cfc7da;
  font-size: 0.9rem;
  line-height: 1.8;
}
.voucher-preview-customer strong {
  font-weight: 600;
  color: #fff;
  overflow-wrap: anywhere;
}
.voucher-preview-validity {
  display: block;
  line-height: 1.5;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}
.voucher-preview-code {
  color: #20c6c1;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 2.5px;
  white-space: nowrap;
  font-family: var(--bs-font-monospace, monospace);
}
.voucher-preview-barcode-wrap {
  background: #ffffff;
  padding: 10px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.voucher-preview-barcode {
  height: 48px;
  width: 100%;
  background-color: #fff;
  background-image: repeating-linear-gradient(90deg, #111 0 2px, transparent 2px 4px, #111 4px 5px, transparent 5px 8px, #111 8px 12px, transparent 12px 14px);
  background-position: center;
  background-repeat: no-repeat;
  background-size: auto 100%;
}

/* Digital Voucher Card Modal Action Buttons Single-Row Styling */
.jz-voucher-card-actions {
  min-width: 0;
}
.jz-voucher-card-actions .btn {
  white-space: nowrap;
  font-size: 0.84rem;
  letter-spacing: -0.2px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}
.jz-voucher-btn-print {
  background-color: #0891b2 !important;
  border-color: #0891b2 !important;
  color: #ffffff !important;
}
.jz-voucher-btn-print:hover,
.jz-voucher-btn-print:focus {
  background-color: #0e7490 !important;
  border-color: #0e7490 !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(8, 145, 178, 0.35);
}
.jz-voucher-btn-whatsapp {
  background-color: #25D366 !important;
  border-color: #22c55e !important;
  color: #ffffff !important;
}
.jz-voucher-btn-whatsapp:hover,
.jz-voucher-btn-whatsapp:focus {
  background-color: #16a34a !important;
  border-color: #15803d !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.35);
}
.jz-voucher-btn-copy {
  background-color: #6366f1 !important;
  border-color: #4f46e5 !important;
  color: #ffffff !important;
}
.jz-voucher-btn-copy:hover,
.jz-voucher-btn-copy:focus {
  background-color: #4f46e5 !important;
  border-color: #4338ca !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.35);
}
.jz-voucher-btn-close {
  background-color: #64748b !important;
  border-color: #475569 !important;
  color: #ffffff !important;
}
.jz-voucher-btn-close:hover,
.jz-voucher-btn-close:focus {
  background-color: #475569 !important;
  border-color: #334155 !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(100, 116, 139, 0.35);
}
@media (max-width: 480px) {
  .jz-voucher-card-actions .btn {
    padding-left: 6px !important;
    padding-right: 6px !important;
    font-size: 0.74rem !important;
    gap: 3px !important;
  }
}

/* Fractional Spacing Resilience Utilities */
.p-3\.5 { padding: 1.25rem !important; }
.py-2\.5 { padding-top: 0.625rem !important; padding-bottom: 0.625rem !important; }
.px-2\.5 { padding-left: 0.625rem !important; padding-right: 0.625rem !important; }
.pt-1\.5 { padding-top: 0.375rem !important; }
.pb-1\.5 { padding-bottom: 0.375rem !important; }
.gap-1\.5 { gap: 0.375rem !important; }
.gap-2\.5 { gap: 0.625rem !important; }
.mb-0\.5 { margin-bottom: 0.125rem !important; }
.mb-1\.5 { margin-bottom: 0.375rem !important; }

/* ═══════════════════════════════════════════════════════════════════════════
   UNIVERSAL SEARCH INPUT & PILL ERGONOMICS (Gold Standard - Image 4)
   ═══════════════════════════════════════════════════════════════════════════ */
.position-relative > i.fa-magnifying-glass + input.rounded-pill,
.position-relative > input.rounded-pill:has(+ i.fa-magnifying-glass),
.position-relative:has(> i.fa-magnifying-glass) > input.form-control.rounded-pill,
.jz-search-box .form-control,
.jz-search-input {
  padding-inline-start: 36px !important;
  padding-inline-end: 16px !important;
  min-height: 33px !important;
  font-size: 12.5px !important;
}

.position-relative > i.fa-magnifying-glass,
.jz-search-box > i.fa-magnifying-glass,
.jz-search-icon {
  position: absolute !important;
  inset-inline-start: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  font-size: 12.5px !important;
  color: var(--bs-secondary-color) !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

/* Fix for Select Dropdowns styled as rounded pills (Image 2 Chevron Overlap Fix) */
.filter-dropdown-pill,
select.form-select.rounded-pill {
  border-radius: 999px !important;
  padding-top: 5px !important;
  padding-bottom: 5px !important;
  padding-inline-start: 14px !important;
  padding-inline-end: 32px !important; /* Preserves dropdown chevron space */
  font-size: 12.5px !important;
  border: 1px solid var(--bs-border-color) !important;
  background-color: var(--bs-body-bg) !important;
  color: var(--bs-body-color) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SMART SEARCHABLE SELECT ARCHITECTURE (Tom Select Enterprise Standard)
   ═══════════════════════════════════════════════════════════════════════════ */
.ts-wrapper {
  width: 100% !important;
  font-family: inherit !important;
  position: relative !important;
}

.ts-control {
  background-color: var(--bs-body-bg) !important;
  color: var(--bs-body-color) !important;
  border: 1px solid var(--bs-border-color) !important;
  border-radius: var(--bs-border-radius, 8px) !important;
  min-height: 38px !important;
  padding: 0.375rem 0.75rem !important;
  font-size: 0.875rem !important;
  box-shadow: none !important;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
}

.ts-wrapper.focus .ts-control {
  border-color: #86b7fe !important;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.2) !important;
}

.ts-control > input {
  color: var(--bs-body-color) !important;
  font-family: inherit !important;
  font-size: 0.875rem !important;
  background: transparent !important;
}

.ts-control > input::placeholder {
  color: var(--bs-secondary-color) !important;
  opacity: 0.8 !important;
}

/* RTL Orientation */
[dir="rtl"] .ts-control {
  text-align: right !important;
  direction: rtl !important;
  padding-left: 2.25rem !important;
  padding-right: 0.75rem !important;
}

[dir="rtl"] .ts-wrapper.single .ts-control {
  background-position: left 0.75rem center !important;
}

.plugin-clear_button .clear-button {
  top: 50% !important;
  transform: translateY(-50%) !important;
  font-size: 14px !important;
  line-height: 1 !important;
  color: var(--bs-secondary-color, #6c757d) !important;
  opacity: 0.6 !important;
  transition: opacity 0.2s ease !important;
  z-index: 5 !important;
}

.plugin-clear_button:hover .clear-button {
  opacity: 1 !important;
}

[dir="rtl"] .plugin-clear_button .clear-button {
  left: 1.75rem !important;
  right: auto !important;
}

/* LTR Orientation */
[dir="ltr"] .ts-control {
  text-align: left !important;
  direction: ltr !important;
  padding-right: 2.25rem !important;
  padding-left: 0.75rem !important;
}

[dir="ltr"] .plugin-clear_button .clear-button {
  right: 1.75rem !important;
  left: auto !important;
}

/* Dropdown Menu Container */
.ts-dropdown {
  background-color: var(--bs-body-bg) !important;
  color: var(--bs-body-color) !important;
  border: 1px solid var(--bs-border-color) !important;
  border-radius: var(--bs-border-radius, 8px) !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.15) !important;
  z-index: 1075 !important;
  margin-top: 4px !important;
  padding: 4px !important;
  overflow: hidden !important;
}

.ts-dropdown-content {
  max-height: 240px !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
}

/* Dropdown Option Items */
.ts-dropdown .option {
  color: var(--bs-body-color) !important;
  padding: 7px 12px !important;
  border-radius: 6px !important;
  font-size: 0.875rem !important;
  cursor: pointer !important;
  transition: background-color 0.12s ease, color 0.12s ease !important;
}

.ts-dropdown .option:hover,
.ts-dropdown .option.active {
  background-color: var(--bs-primary-bg-subtle, rgba(13, 110, 253, 0.12)) !important;
  color: var(--bs-primary) !important;
}

.ts-dropdown .option.selected {
  background-color: var(--bs-primary) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
}

.ts-dropdown .highlight {
  background-color: rgba(var(--bs-primary-rgb), 0.25) !important;
  color: inherit !important;
  border-radius: 2px !important;
  padding: 0 2px !important;
}

.ts-dropdown .no-results {
  padding: 10px 14px !important;
  color: var(--bs-secondary-color) !important;
  font-size: 0.85rem !important;
  text-align: center !important;
}

/* Multi-Select Tags / Pills */
.ts-wrapper.multi .ts-control > div.item {
  background: var(--bs-primary-bg-subtle, rgba(13, 110, 253, 0.12)) !important;
  color: var(--bs-primary) !important;
  border: 1px solid rgba(var(--bs-primary-rgb), 0.3) !important;
  border-radius: 6px !important;
  padding: 2px 8px !important;
  margin: 2px 4px 2px 0 !important;
  font-size: 0.825rem !important;
  font-weight: 500 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

[dir="rtl"] .ts-wrapper.multi .ts-control > div.item {
  margin: 2px 0 2px 4px !important;
}

.ts-wrapper.plugin-remove_button .item .remove {
  border: none !important;
  color: inherit !important;
  opacity: 0.65 !important;
  font-size: 13px !important;
  margin-inline-start: 4px !important;
  padding: 0 2px !important;
  border-radius: 3px !important;
}

.ts-wrapper.plugin-remove_button .item .remove:hover {
  opacity: 1 !important;
  background-color: rgba(0, 0, 0, 0.1) !important;
}

/* Dark Mode Overrides */
[data-bs-theme="dark"] .ts-control {
  background-color: var(--bs-body-bg) !important;
  border-color: var(--bs-border-color) !important;
  color: var(--bs-body-color) !important;
}

[data-bs-theme="dark"] .ts-control > input {
  color: var(--bs-body-color) !important;
}

[data-bs-theme="dark"] .ts-dropdown {
  background-color: #162032 !important;
  border-color: #27354f !important;
  color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .ts-dropdown .option {
  color: #cbd5e1 !important;
}

[data-bs-theme="dark"] .ts-dropdown .option:hover,
[data-bs-theme="dark"] .ts-dropdown .option.active {
  background-color: rgba(99, 102, 241, 0.22) !important;
  color: #a5b4fc !important;
}

[data-bs-theme="dark"] .ts-dropdown .option.selected {
  background-color: #6366f1 !important;
  color: #ffffff !important;
}

[data-bs-theme="dark"] .ts-wrapper.multi .ts-control > div.item {
  background: rgba(99, 102, 241, 0.22) !important;
  color: #c7d2fe !important;
  border-color: rgba(99, 102, 241, 0.45) !important;
}

[data-bs-theme="dark"] .ts-wrapper.plugin-remove_button .item .remove:hover {
  background-color: rgba(255, 255, 255, 0.15) !important;
}

/* Wrapper Reset: Remove Bootstrap form-select chevron from wrapper */
.ts-wrapper,
.ts-wrapper.form-select,
.ts-wrapper.form-control {
  background: transparent !important;
  background-image: none !important;
}

/* Caret Arrow Styling in Dark and Light */
.ts-wrapper.single .ts-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%236c757d' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.85rem center !important;
  background-size: 12px 8px !important;
}

[dir="rtl"] .ts-wrapper.single .ts-control {
  background-position: left 0.85rem center !important;
}

[dir="ltr"] .ts-wrapper.single .ts-control {
  background-position: right 0.85rem center !important;
}

[data-bs-theme="dark"] .ts-wrapper.single .ts-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-size: 12px 8px !important;
}

[data-bs-theme="dark"][dir="rtl"] .ts-wrapper.single .ts-control,
[data-bs-theme="dark"] [dir="rtl"] .ts-wrapper.single .ts-control {
  background-position: left 0.85rem center !important;
}

/* Multi-select has NO chevron arrow */
.ts-wrapper.multi .ts-control {
  background-image: none !important;
}

/* Size Variants */
.form-select-sm + .ts-wrapper .ts-control,
.ts-wrapper.form-select-sm .ts-control {
  min-height: 31px !important;
  padding: 0.25rem 0.5rem !important;
  font-size: 0.785rem !important;
}

.form-select-lg + .ts-wrapper .ts-control,
.ts-wrapper.form-select-lg .ts-control {
  min-height: 48px !important;
  padding: 0.5rem 1rem !important;
  font-size: 1rem !important;
}

/* Modals Compatibility: ensure dropdowns inside modals are visible above all body elements */
.modal-body .ts-dropdown {
  z-index: 1075 !important;
}

/* Input Group Integration with TomSelect (Single Row, No Wrap, Zero Shift) */
.input-group > .ts-wrapper {
  flex: 1 1 auto !important;
  width: 1% !important;
  min-width: 0 !important;
  position: relative !important;
}

.input-group > .ts-wrapper .ts-control {
  min-height: 42px !important;
  height: 42px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  display: flex !important;
  align-items: center !important;
  box-shadow: none !important;
}

[dir="rtl"] .input-group > .input-group-text:first-child + .ts-wrapper .ts-control {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  border-top-left-radius: 0.5rem !important;
  border-bottom-left-radius: 0.5rem !important;
  border-right: 0 !important;
}

[dir="rtl"] .input-group > .input-group-text:first-child {
  border-top-right-radius: 0.5rem !important;
  border-bottom-right-radius: 0.5rem !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

[dir="ltr"] .input-group > .input-group-text:first-child + .ts-wrapper .ts-control {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-top-right-radius: 0.5rem !important;
  border-bottom-right-radius: 0.5rem !important;
  border-left: 0 !important;
}

[dir="ltr"] .input-group > .input-group-text:first-child {
  border-top-left-radius: 0.5rem !important;
  border-bottom-left-radius: 0.5rem !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.input-group > .input-group-text {
  height: 42px !important;
  min-height: 42px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

/* ==========================================================================
   Voucher Compensation Reasons: Global Buttons, Color Identifiers & Badges
   ========================================================================== */
.voucher-reason-btn {
  box-sizing: border-box;
  width: 100%;
  height: 54px !important;
  min-height: 54px;
  border-radius: 12px !important;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: .35rem .75rem !important;
  text-align: start;
  user-select: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--bs-body-bg);
}
.voucher-reason-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}
.voucher-reason-icon-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 13px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.voucher-reason-btn .voucher-reason-label {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
}
.voucher-reason-btn:has(input:checked) {
  padding-inline-end: 2rem !important;
}
.voucher-reason-btn:has(input:checked)::after {
  content: "✓";
  position: absolute;
  inset-inline-end: .65rem;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff !important;
  line-height: 1;
}
.voucher-reason-btn:has(input:checked) .voucher-reason-icon-pill {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #fff !important;
}
.voucher-reason-btn:has(input:focus-visible) {
  outline: 3px solid rgba(var(--bs-primary-rgb), .35);
  outline-offset: 2px;
}

/* 1. Technical Fault (Amber / Warning) */
.voucher-reason-btn.voucher-reason-technical_fault {
  border: 1.5px solid rgba(245, 158, 11, 0.45) !important;
  background-color: rgba(245, 158, 11, 0.05);
}
.voucher-reason-btn.voucher-reason-technical_fault .voucher-reason-icon-pill {
  background-color: rgba(245, 158, 11, 0.15);
  color: #d97706;
}
.voucher-reason-btn.voucher-reason-technical_fault:hover {
  border-color: #f59e0b !important;
  background-color: rgba(245, 158, 11, 0.1);
}
.voucher-reason-btn.voucher-reason-technical_fault:has(input:checked) {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  border-color: #d97706 !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35) !important;
}

/* 2. Overcrowding (Cyan / Info) */
.voucher-reason-btn.voucher-reason-overcrowding {
  border: 1.5px solid rgba(6, 182, 212, 0.45) !important;
  background-color: rgba(6, 182, 212, 0.05);
}
.voucher-reason-btn.voucher-reason-overcrowding .voucher-reason-icon-pill {
  background-color: rgba(6, 182, 212, 0.15);
  color: #0891b2;
}
.voucher-reason-btn.voucher-reason-overcrowding:hover {
  border-color: #06b6d4 !important;
  background-color: rgba(6, 182, 212, 0.1);
}
.voucher-reason-btn.voucher-reason-overcrowding:has(input:checked) {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%) !important;
  border-color: #0891b2 !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(8, 145, 178, 0.35) !important;
}

/* 3. Emergency Exit (Red / Danger) */
.voucher-reason-btn.voucher-reason-emergency_exit {
  border: 1.5px solid rgba(239, 68, 68, 0.45) !important;
  background-color: rgba(239, 68, 68, 0.05);
}
.voucher-reason-btn.voucher-reason-emergency_exit .voucher-reason-icon-pill {
  background-color: rgba(239, 68, 68, 0.15);
  color: #dc2626;
}
.voucher-reason-btn.voucher-reason-emergency_exit:hover {
  border-color: #ef4444 !important;
  background-color: rgba(239, 68, 68, 0.1);
}
.voucher-reason-btn.voucher-reason-emergency_exit:has(input:checked) {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  border-color: #dc2626 !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35) !important;
}

/* 4. Complaint (Purple / Violet) */
.voucher-reason-btn.voucher-reason-complaint {
  border: 1.5px solid rgba(139, 92, 246, 0.45) !important;
  background-color: rgba(139, 92, 246, 0.05);
}
.voucher-reason-btn.voucher-reason-complaint .voucher-reason-icon-pill {
  background-color: rgba(139, 92, 246, 0.15);
  color: #7c3aed;
}
.voucher-reason-btn.voucher-reason-complaint:hover {
  border-color: #8b5cf6 !important;
  background-color: rgba(139, 92, 246, 0.1);
}
.voucher-reason-btn.voucher-reason-complaint:has(input:checked) {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
  border-color: #7c3aed !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35) !important;
}

/* 5. Power Outage (Orange / Burnt Amber) */
.voucher-reason-btn.voucher-reason-power_outage {
  border: 1.5px solid rgba(249, 115, 22, 0.45) !important;
  background-color: rgba(249, 115, 22, 0.05);
}
.voucher-reason-btn.voucher-reason-power_outage .voucher-reason-icon-pill {
  background-color: rgba(249, 115, 22, 0.15);
  color: #ea580c;
}
.voucher-reason-btn.voucher-reason-power_outage:hover {
  border-color: #f97316 !important;
  background-color: rgba(249, 115, 22, 0.1);
}
.voucher-reason-btn.voucher-reason-power_outage:has(input:checked) {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  border-color: #ea580c !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35) !important;
}

/* 6. Goodwill (Emerald / Success) */
.voucher-reason-btn.voucher-reason-goodwill {
  border: 1.5px solid rgba(16, 185, 129, 0.45) !important;
  background-color: rgba(16, 185, 129, 0.05);
}
.voucher-reason-btn.voucher-reason-goodwill .voucher-reason-icon-pill {
  background-color: rgba(16, 185, 129, 0.15);
  color: #059669;
}
.voucher-reason-btn.voucher-reason-goodwill:hover {
  border-color: #10b981 !important;
  background-color: rgba(16, 185, 129, 0.1);
}
.voucher-reason-btn.voucher-reason-goodwill:has(input:checked) {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  border-color: #059669 !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35) !important;
}

/* 7. Safety Incident (Rose / Crimson) */
.voucher-reason-btn.voucher-reason-safety_incident {
  border: 1.5px solid rgba(225, 29, 72, 0.45) !important;
  background-color: rgba(225, 29, 72, 0.05);
}
.voucher-reason-btn.voucher-reason-safety_incident .voucher-reason-icon-pill {
  background-color: rgba(225, 29, 72, 0.15);
  color: #e11d48;
}
.voucher-reason-btn.voucher-reason-safety_incident:hover {
  border-color: #e11d48 !important;
  background-color: rgba(225, 29, 72, 0.1);
}
.voucher-reason-btn.voucher-reason-safety_incident:has(input:checked) {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%) !important;
  border-color: #be123c !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35) !important;
}

/* 8. Custom Reason (Slate / Secondary) */
.voucher-reason-btn.voucher-reason-custom {
  border: 1.5px solid rgba(100, 116, 139, 0.45) !important;
  background-color: rgba(100, 116, 139, 0.05);
}
.voucher-reason-btn.voucher-reason-custom .voucher-reason-icon-pill {
  background-color: rgba(100, 116, 139, 0.15);
  color: #64748b;
}
.voucher-reason-btn.voucher-reason-custom:hover {
  border-color: #64748b !important;
  background-color: rgba(100, 116, 139, 0.1);
}
.voucher-reason-btn.voucher-reason-custom:has(input:checked) {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%) !important;
  border-color: #475569 !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(71, 85, 105, 0.35) !important;
}

/* Dark Theme Reason Pill Icons */
[data-bs-theme="dark"] .voucher-reason-btn.voucher-reason-technical_fault .voucher-reason-icon-pill { color: #fbbf24; }
[data-bs-theme="dark"] .voucher-reason-btn.voucher-reason-overcrowding .voucher-reason-icon-pill { color: #22d3ee; }
[data-bs-theme="dark"] .voucher-reason-btn.voucher-reason-emergency_exit .voucher-reason-icon-pill { color: #f87171; }
[data-bs-theme="dark"] .voucher-reason-btn.voucher-reason-complaint .voucher-reason-icon-pill { color: #a78bfa; }
[data-bs-theme="dark"] .voucher-reason-btn.voucher-reason-power_outage .voucher-reason-icon-pill { color: #fb923c; }
[data-bs-theme="dark"] .voucher-reason-btn.voucher-reason-goodwill .voucher-reason-icon-pill { color: #34d399; }
[data-bs-theme="dark"] .voucher-reason-btn.voucher-reason-safety_incident .voucher-reason-icon-pill { color: #fb7185; }
[data-bs-theme="dark"] .voucher-reason-btn.voucher-reason-custom .voucher-reason-icon-pill { color: #94a3b8; }
/* ================================================================
   UNIVERSAL RESPONSIVE & FIT-TO-WIDTH TABLE ARCHITECTURE
   Mobile-First | RTL/LTR Aware | Bootstrap 5.3 Native Theming
   ================================================================ */

/* Container Full-Width & Touch Scroll Standards */
.table-responsive {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.6) transparent;
  margin-bottom: 0;
  position: relative;
}

/* Elegant Slim Themed Scrollbar for Tables */
.table-responsive::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}
.table-responsive::-webkit-scrollbar-track {
  background: var(--bs-tertiary-bg, rgba(0, 0, 0, 0.04));
  border-radius: 4px;
}
[data-bs-theme="dark"] .table-responsive::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
}
.table-responsive::-webkit-scrollbar-thumb {
  background: var(--bs-secondary-bg, rgba(148, 163, 184, 0.6));
  border-radius: 4px;
  border: 1px solid transparent;
  background-clip: padding-box;
  transition: background 0.2s ease;
}
[data-bs-theme="dark"] .table-responsive::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.5);
}
.table-responsive::-webkit-scrollbar-thumb:hover {
  background: var(--bs-primary, #6366f1) !important;
}

/* Fit-To-Width Table Defaults */
.table {
  width: 100% !important;
  min-width: 100%;
  max-width: 100% !important;
  margin-bottom: 0 !important;
  border-color: var(--bs-border-color);
  color: var(--bs-body-color);
  vertical-align: middle;
}

/* Ensure Multi-View Table Containers Stretch 100% Across All Devices */
div[id$="ViewTable"],
div[id$="viewTable"],
div[id$="TableView"],
div[id$="tableView"],
.table-view-container {
  width: 100% !important;
  max-width: 100% !important;
}

/* Table Header Standards */
.table thead th {
  font-weight: 600;
  color: var(--bs-secondary-color, #64748b);
  border-bottom: 1px solid var(--bs-border-color);
  background-color: var(--bs-tertiary-bg, rgba(0, 0, 0, 0.02));
  white-space: nowrap;
}

/* Sticky Headers in Dark/Light Modes */
.table-responsive thead.sticky-top,
.table-responsive thead.table-light.sticky-top,
.table-responsive thead.sticky-top th,
.table-responsive thead.sticky-top tr {
  background-color: var(--bs-card-bg, var(--bs-body-bg)) !important;
  z-index: 2;
}
[data-bs-theme="dark"] .table-responsive thead.sticky-top,
[data-bs-theme="dark"] .table-responsive thead.table-light.sticky-top,
[data-bs-theme="dark"] .table-responsive thead.sticky-top th,
[data-bs-theme="dark"] .table-responsive thead.sticky-top tr {
  background-color: var(--bs-card-bg, #1e293b) !important;
  color: var(--bs-body-color);
}

/* Column Proportion Helpers */
.table .table-col-index,
.table th.table-col-index,
.table td.table-col-index {
  width: 1% !important;
  min-width: 44px;
  text-align: center;
  white-space: nowrap;
}

.table .table-actions-col,
.table th.table-actions-col,
.table td.table-actions-col,
.table th:last-child:not([data-sortable="true"]):not(.jz-sortable-th):has(.btn),
.table td:last-child:has(.btn-group, .btn) {
  white-space: nowrap;
}

/* Text & Data Cells Wrap Prevention for Compact Precision */
.table td .badge,
.table td .font-monospace,
.table td .btn,
.table td time,
.table td [data-cell-nowrap] {
  white-space: nowrap;
}

/* Mobile & Tablet Progressive Ergonomics */
@media (max-width: 767.98px) {
  .table > :not(caption) > * > * {
    padding: 0.6rem 0.65rem;
    font-size: 0.85rem;
  }
  .jz-sortable-th {
    min-height: 40px;
  }
}
@media (min-width: 768px) and (max-width: 1199.98px) {
  .table > :not(caption) > * > * {
    padding: 0.7rem 0.75rem;
  }
}
@media (min-width: 1200px) {
  .table > :not(caption) > * > * {
    padding: 0.8rem 0.95rem;
  }
}

/* ─────────────────────────────────────────────────────────────
   UNIVERSAL TABLE SORTING STYLING
   ───────────────────────────────────────────────────────────── */
.jz-sortable-th {
  cursor: pointer !important;
  user-select: none !important;
  -webkit-user-select: none;
  transition: background-color 0.15s ease, color 0.15s ease;
  position: relative;
}

.jz-sortable-th:hover {
  background-color: rgba(var(--bs-primary-rgb, 99, 102, 241), 0.08) !important;
}

.jz-sortable-th:focus-visible {
  outline: 2px solid var(--bs-primary);
  outline-offset: -2px;
}

/* Sort Icon Container */
.jz-sort-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-inline-start: 6px;
  font-size: 11px;
  line-height: 1;
  vertical-align: middle;
  opacity: 0.45;
  transition: opacity 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

.jz-sortable-th:hover .jz-sort-icon {
  opacity: 0.85;
}

/* Active Ascending / Descending Header */
.jz-sortable-th.jz-sorted-asc,
.jz-sortable-th.jz-sorted-desc {
  color: var(--bs-primary) !important;
  font-weight: 700 !important;
  background-color: rgba(var(--bs-primary-rgb, 99, 102, 241), 0.06) !important;
}

.jz-sortable-th.jz-sorted-asc .jz-sort-icon,
.jz-sortable-th.jz-sorted-desc .jz-sort-icon {
  opacity: 1 !important;
  color: var(--bs-primary) !important;
}

/* ── Eye-Catching Acquisition Source Pill Button (#btnAcquisitionSourceModal) ── */
.btn-acquisition-pill {
  background: var(--bs-primary) !important;
  border: 1.5px solid var(--bs-primary) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 12.5px !important;
  padding: 6px 14px !important;
  border-radius: 50rem !important;
  box-shadow: 0 2px 10px rgba(var(--bs-primary-rgb), 0.28) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  cursor: pointer !important;
}

.btn-acquisition-pill i,
.btn-acquisition-pill span {
  color: #ffffff !important;
  transition: color 0.2s ease;
}

.btn-acquisition-pill i {
  font-size: 13px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.btn-acquisition-pill:hover {
  background: transparent !important;
  border-color: var(--bs-primary) !important;
  color: var(--bs-primary) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(var(--bs-primary-rgb), 0.25) !important;
}

.btn-acquisition-pill:hover i,
.btn-acquisition-pill:hover span {
  color: var(--bs-primary) !important;
}

.btn-acquisition-pill:hover i {
  transform: rotate(-10deg) scale(1.1);
}

/* Responsive quick source choices on the check-in customer form */
.checkin-acquisition-quick {
  min-width: 0;
}

.checkin-acquisition-quick-options {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 6px;
  min-width: 0;
}

.checkin-acquisition-options-list {
  display: flex;
  align-items: stretch;
  flex: 1 1 auto;
  gap: 6px;
  min-width: 0;
}

.checkin-acquisition-options-list > div {
  flex: 0 0 auto;
  min-width: 0;
}

.checkin-acquisition-options-list > div[hidden] {
  display: none !important;
}

.checkin-acquisition-options-list > div:hover {
  position: relative;
  z-index: 2;
}

.acq-card.checkin-acquisition-card {
  width: max-content;
  max-width: 100%;
  justify-content: flex-start;
  height: 26px;
  min-height: 26px;
  padding: 0 8px;
  gap: 5px;
  border: 1px solid color-mix(in srgb, var(--brand-color) 22%, var(--bs-border-color)) !important;
  border-radius: 999px;
  background-color: color-mix(in srgb, var(--brand-color) 7%, var(--bs-card-bg));
  white-space: nowrap;
}

.acq-card.checkin-acquisition-card > .d-flex:first-child {
  justify-content: flex-start;
  gap: 5px !important;
}

.acq-card.checkin-acquisition-card .text-truncate {
  min-width: max-content;
  color: var(--brand-color) !important;
  font-size: 11px;
  line-height: 1;
}

.acq-card.checkin-acquisition-card .acq-card-icon-box {
  width: 14px;
  height: 14px;
  min-width: 14px;
  border-radius: 50%;
  background-color: var(--brand-color);
  color: #fff;
  font-size: 8px;
}

.acq-card.checkin-acquisition-card:hover {
  border-color: var(--brand-color, var(--bs-primary)) !important;
  transform: none;
}

.checkin-acquisition-card:focus-visible {
  outline: 2px solid var(--bs-primary);
  outline-offset: 2px;
}

.checkin-acquisition-other {
  flex: 0 0 auto;
  align-self: center;
  font: inherit;
  text-align: inherit;
  color: var(--bs-body-color);
  --brand-color: var(--bs-primary);
  --brand-bg: rgba(var(--bs-primary-rgb), 0.1);
}

.checkin-acquisition-other .acq-card-icon-box {
  color: var(--bs-primary);
}

.checkin-acquisition-toggle:checked + .acq-card.checkin-acquisition-card,
.checkin-acquisition-other.is-selected {
  border-color: var(--brand-color) !important;
  background-color: var(--brand-color) !important;
  background: var(--brand-color) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--brand-color) 35%, transparent) !important;
}

.checkin-acquisition-toggle:checked + .acq-card.checkin-acquisition-card .text-truncate,
.checkin-acquisition-other.is-selected .text-truncate {
  color: #ffffff !important;
}

.checkin-acquisition-toggle:checked + .acq-card.checkin-acquisition-card .acq-card-icon-box,
.acq-card.checkin-acquisition-other.is-selected .acq-card-icon-box {
  background-color: #ffffff !important;
  color: var(--brand-color) !important;
}

[data-bs-theme="dark"] .btn-acquisition-pill {
  background: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4) !important;
}

[data-bs-theme="dark"] .btn-acquisition-pill:hover {
  background: rgba(var(--bs-primary-rgb), 0.15) !important;
  border-color: var(--bs-primary) !important;
  color: var(--bs-primary) !important;
}

/* ── Modern Premium Segmented Relationship Control (.jz-rel-segmented) ── */
.jz-rel-segmented {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  background: var(--bs-tertiary-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 50rem;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

[data-bs-theme="dark"] .jz-rel-segmented {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.jz-rel-segmented .btn-check + .jz-rel-btn {
  border: 0 !important;
  border-radius: 50rem !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  padding: 3.5px 12px !important;
  color: var(--bs-secondary-color) !important;
  background: transparent !important;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  user-select: none;
  line-height: 1.3;
}

.jz-rel-segmented .btn-check + .jz-rel-btn i {
  font-size: 11px;
  color: var(--bs-secondary-color);
  transition: color 0.2s ease;
}

.jz-rel-segmented .btn-check + .jz-rel-btn:hover {
  color: var(--bs-primary) !important;
  background: rgba(var(--bs-primary-rgb), 0.1) !important;
}

.jz-rel-segmented .btn-check + .jz-rel-btn:hover i {
  color: var(--bs-primary) !important;
}

/* Active State for Family */
.jz-rel-segmented .btn-check:checked + .jz-rel-btn.jz-rel-family {
  background: var(--bs-primary) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(var(--bs-primary-rgb), 0.35) !important;
}

.jz-rel-segmented .btn-check:checked + .jz-rel-btn.jz-rel-family i,
.jz-rel-segmented .btn-check:checked + .jz-rel-btn.jz-rel-family span {
  color: #ffffff !important;
}

/* Active State for Friend */
.jz-rel-segmented .btn-check:checked + .jz-rel-btn.jz-rel-friend {
  background: linear-gradient(135deg, var(--bs-primary), #0284c7) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(var(--bs-primary-rgb), 0.35) !important;
}

.jz-rel-segmented .btn-check:checked + .jz-rel-btn.jz-rel-friend i,
.jz-rel-segmented .btn-check:checked + .jz-rel-btn.jz-rel-friend span {
  color: #ffffff !important;
}

/* ==========================================================================
   POS Target Selector Modal & Responsive Cart Target Cards
   ========================================================================== */
.pos-segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: var(--bs-tertiary-bg);
  border: 1.5px solid var(--bs-border-color) !important;
  border-radius: 12px;
  margin-bottom: 12px;
}
.pos-segment button {
  min-width: 0;
  border: 0;
  border-radius: 9px;
  padding: 8px 10px;
  color: var(--bs-body-color) !important;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}
.pos-segment button i {
  font-size: 13px;
  color: var(--bs-secondary-color);
  transition: color 0.2s ease;
}
.pos-segment button:hover:not(.active) {
  background: color-mix(in srgb, var(--bs-primary) 10%, transparent);
  color: var(--bs-primary) !important;
}
.pos-segment button:hover:not(.active) i {
  color: var(--bs-primary) !important;
}
.pos-segment button.active {
  color: #ffffff !important;
  font-weight: 700 !important;
}
.pos-segment button.active i,
.pos-segment button.active span {
  color: #ffffff !important;
}
.pos-segment button[data-modal-target-mode="customer"].active,
.pos-segment button[data-toys-modal-mode="customer"].active,
.pos-segment button[data-target-mode="customer"].active,
.pos-segment button#modalTargetCustomerTab.active,
.pos-segment button#modalToysTargetCustomerTab.active {
  background: linear-gradient(135deg, #0284c7, #0ea5e9) !important;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.35) !important;
}
.pos-segment button[data-modal-target-mode="employee"].active,
.pos-segment button[data-toys-modal-mode="employee"].active,
.pos-segment button[data-target-mode="employee"].active,
.pos-segment button#modalTargetEmployeeTab.active,
.pos-segment button#modalToysTargetEmployeeTab.active {
  background: linear-gradient(135deg, #059669, #10b981) !important;
  box-shadow: 0 2px 10px rgba(5, 150, 105, 0.35) !important;
}
.pos-segment button:not(.active) {
  color: var(--bs-body-color) !important;
  background: transparent !important;
  box-shadow: none !important;
}
.pos-segment button:not(.active) span {
  color: var(--bs-body-color) !important;
}
.pos-segment button:not(.active) i {
  color: var(--bs-secondary-color) !important;
}

.pos-target-modal-btn {
  transition: all 0.2s ease;
  border-style: dashed !important;
  border-width: 1.5px !important;
  background: color-mix(in srgb, var(--pos-teal, var(--bs-primary)) 7%, var(--bs-card-bg)) !important;
  border-color: color-mix(in srgb, var(--pos-teal, var(--bs-primary)) 45%, var(--bs-border-color)) !important;
  color: var(--bs-body-color) !important;
}
.pos-target-modal-btn:hover {
  background: color-mix(in srgb, var(--pos-teal, var(--bs-primary)) 14%, var(--bs-card-bg)) !important;
  border-color: var(--pos-teal, var(--bs-primary)) !important;
  color: var(--pos-teal, var(--bs-primary)) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--pos-teal, var(--bs-primary)) 20%, transparent);
}
.pos-modal-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  cursor: pointer;
  background: var(--bs-card-bg);
  border: 1px solid var(--bs-border-color) !important;
  user-select: none;
}
.pos-modal-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  border-color: var(--pos-teal, var(--bs-primary)) !important;
}
.pos-modal-card.active {
  border-color: var(--pos-teal, var(--bs-primary)) !important;
  background: color-mix(in srgb, var(--pos-teal, var(--bs-primary)) 10%, var(--bs-card-bg)) !important;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--pos-teal, var(--bs-primary)) 35%, transparent);
}
.pos-modal-avatar {
  width: 42px;
  height: 42px;
  font-size: 16px;
  flex-shrink: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pos-modal-card-child.card-boy .pos-modal-avatar {
  background: color-mix(in srgb, #0284c7 16%, var(--bs-card-bg));
  color: #0284c7;
}
.pos-modal-card-child.card-girl .pos-modal-avatar {
  background: color-mix(in srgb, #ec4899 16%, var(--bs-card-bg));
  color: #ec4899;
}
.pos-modal-card-employee .pos-modal-avatar {
  background: color-mix(in srgb, var(--pos-role-color, #059669) 16%, var(--bs-card-bg));
  color: var(--pos-role-color, #059669);
}
.pos-selected-target-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 8px;
  border: 1.5px solid var(--pos-teal, var(--bs-primary));
  background: color-mix(in srgb, var(--pos-teal, var(--bs-primary)) 8%, var(--bs-card-bg));
  transition: all 0.2s ease;
}
.pos-selected-target-card.target-boy {
  border-color: #0284c7 !important;
  background: color-mix(in srgb, #0284c7 10%, var(--bs-card-bg)) !important;
}
.pos-selected-target-card.target-girl {
  border-color: #ec4899 !important;
  background: color-mix(in srgb, #ec4899 10%, var(--bs-card-bg)) !important;
}

/* WhatsApp Phone Picker Quick Selection Buttons */
.jz-phone-pick-btn {
  transition: all 0.18s ease-in-out;
  cursor: pointer;
  font-size: 12px !important;
}
.jz-phone-pick-btn:hover {
  transform: translateY(-1px);
}
.jz-phone-pick-btn.active {
  box-shadow: 0 2px 8px rgba(25, 135, 84, 0.25) !important;
}

/* ==========================================================================
   Acquisition Source Modal Cards & Modern Channel Selector (AGENTS.md Compliant)
   ========================================================================== */
.acq-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background-color: var(--bs-card-bg);
  border: 1.5px solid var(--bs-border-color) !important;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 60px;
  user-select: none;
}

.acq-card:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--bs-primary-rgb), 0.5) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
  background-color: color-mix(in srgb, var(--brand-color, var(--bs-primary)) 4%, var(--bs-card-bg));
}

.acq-card-icon-box {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--brand-bg, rgba(var(--bs-primary-rgb), 0.08));
  color: var(--brand-color, var(--bs-primary));
  font-size: 18px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.acq-card:hover .acq-card-icon-box {
  transform: scale(1.08);
}

.acq-radio-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--bs-border-color);
  background: transparent;
  transition: all 0.2s ease;
}

/* Checked State when associated input:checked */
.btn-check:checked + .acq-card {
  border-color: var(--brand-color, var(--bs-primary)) !important;
  border-width: 2px !important;
  background: color-mix(in srgb, var(--brand-color, var(--bs-primary)) 10%, var(--bs-card-bg)) !important;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--brand-color, var(--bs-primary)) 24%, transparent) !important;
}

.btn-check:checked + .acq-card .acq-card-icon-box {
  background-color: var(--brand-color, var(--bs-primary)) !important;
  color: #ffffff !important;
  box-shadow: 0 3px 10px color-mix(in srgb, var(--brand-color, var(--bs-primary)) 40%, transparent);
}

.btn-check:checked + .acq-card .acq-radio-circle {
  display: none !important;
}

.btn-check:checked + .acq-card .check-mark-icon {
  display: inline-block !important;
  color: var(--brand-color, var(--bs-primary)) !important;
}

.acq-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--bs-border-color-translucent);
}

.acq-section-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* ==========================================================================
   Package Mode Switcher, Card Morphing & Expand/Collapse Transition Animations
   ========================================================================== */

/* ── Gliding Indicator for Top Desk Segmented Control (.jz-segmented-deck) ── */
.jz-segmented-deck {
  position: relative !important;
  background: var(--bs-tertiary-bg);
  border: 1.5px solid var(--bs-border-color) !important;
  border-radius: 50rem;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  isolation: isolate;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-bs-theme="dark"] .jz-segmented-deck {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.jz-segment-glider {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 0;
  border-radius: 50rem;
  background: linear-gradient(135deg, #7c3aed, #9333ea);
  box-shadow: 0 2px 12px rgba(124, 58, 237, 0.45);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              width 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.3s ease,
              box-shadow 0.3s ease,
              opacity 0.2s ease;
}

.jz-segment-btn {
  position: relative !important;
  z-index: 2 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--bs-secondary-color) !important;
  font-weight: 700 !important;
  font-size: 12.5px !important;
  padding: 5px 15px !important;
  border-radius: 50rem !important;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.22s ease, transform 0.18s ease;
  line-height: 1.25;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.jz-segment-btn:hover:not(.active) {
  color: var(--bs-body-color) !important;
}

.jz-segment-btn:hover:not(.active) i {
  transform: scale(1.12);
}

.jz-segment-btn.active {
  color: #ffffff !important;
}

.jz-segment-btn.active i,
.jz-segment-btn.active span {
  color: #ffffff !important;
}

.jz-segment-btn i {
  font-size: 12px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.jz-segment-btn:active {
  transform: scale(0.95);
}

/* ── Modern Segmented Mode Toggle Control (.jz-offer-mode-segmented) ── */
.jz-offer-split-divider {
  transition: all 0.25s ease;
}

@media (min-width: 992px) {
  .jz-offer-split-divider {
    border-inline-start: 1.5px dashed var(--bs-border-color) !important;
    padding-inline-start: 1.25rem !important;
  }
}

.jz-offer-mode-segmented {
  position: relative !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  background: var(--bs-card-bg, #ffffff);
  border: 1.5px solid var(--bs-border-color);
  border-radius: 50rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  isolation: isolate;
  overflow: hidden;
}

[data-bs-theme="dark"] .jz-offer-mode-segmented {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.jz-offer-glider {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 0;
  border-radius: 50rem;
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  box-shadow: 0 2px 12px rgba(13, 148, 136, 0.4);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              width 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.3s ease,
              box-shadow 0.3s ease,
              opacity 0.2s ease;
}

.jz-offer-mode-segmented .btn-check + .jz-mode-btn {
  position: relative !important;
  z-index: 2 !important;
  border: 0 !important;
  border-radius: 50rem !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 7px 18px !important;
  color: var(--bs-body-color, #1e293b) !important;
  background: transparent !important;
  cursor: pointer;
  transition: color 0.22s ease, transform 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  line-height: 1.3;
}

.jz-offer-mode-segmented .btn-check + .jz-mode-btn i {
  font-size: 13px;
  color: var(--bs-primary);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.jz-offer-mode-segmented .btn-check + .jz-mode-btn:hover {
  color: var(--bs-primary) !important;
}

.jz-offer-mode-segmented .btn-check + .jz-mode-btn:hover i {
  color: var(--bs-primary) !important;
  transform: scale(1.12);
}

/* Fallback solid styles when checked */
.jz-offer-mode-segmented .btn-check:checked + .jz-mode-btn.jz-mode-unified {
  color: #ffffff !important;
  font-weight: 700 !important;
  background: linear-gradient(135deg, #0d9488, #14b8a6) !important;
  box-shadow: 0 2px 10px rgba(13, 148, 136, 0.3);
}

.jz-offer-mode-segmented .btn-check:checked + .jz-mode-btn.jz-mode-custom {
  color: #ffffff !important;
  font-weight: 700 !important;
  background: linear-gradient(135deg, #0891b2, #06b6d4) !important;
  box-shadow: 0 2px 10px rgba(8, 145, 178, 0.3);
}

.jz-offer-mode-segmented .btn-check:checked + .jz-mode-btn.jz-mode-unified i,
.jz-offer-mode-segmented .btn-check:checked + .jz-mode-btn.jz-mode-unified span,
.jz-offer-mode-segmented .btn-check:checked + .jz-mode-btn.jz-mode-custom i,
.jz-offer-mode-segmented .btn-check:checked + .jz-mode-btn.jz-mode-custom span {
  color: #ffffff !important;
}

/* When glider is active (positioned by JS), clear button fallback background so glider shows cleanly */
.jz-offer-mode-segmented.glider-active .btn-check:checked + .jz-mode-btn {
  background: transparent !important;
  box-shadow: none !important;
}

.jz-offer-mode-segmented .jz-mode-btn:active {
  transform: scale(0.96);
}

/* ── Pill Action Button: Apply 1st Child's Package to All (.btn-apply-first-child) ── */
.btn-apply-first-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(8, 145, 178, 0.08) !important;
  border: 1.5px solid #0891b2 !important;
  color: #0891b2 !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  padding: 5px 14px !important;
  border-radius: 50rem !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  white-space: nowrap;
  animation: jzSlideFadeIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  line-height: 1.25;
}

.btn-apply-first-child i {
  font-size: 11.5px;
  color: #0891b2;
  transition: transform 0.25s ease, color 0.25s ease;
}

.btn-apply-first-child:hover {
  background: #0891b2 !important;
  color: #ffffff !important;
  box-shadow: 0 3px 12px rgba(8, 145, 178, 0.32) !important;
  transform: translateY(-1px);
}

.btn-apply-first-child:hover i,
.btn-apply-first-child:hover span {
  color: #ffffff !important;
}

.btn-apply-first-child:hover i {
  transform: rotate(-10deg) scale(1.15);
}

.btn-apply-first-child:active {
  transform: scale(0.96);
}

[data-bs-theme="dark"] .btn-apply-first-child {
  background: rgba(8, 145, 178, 0.15) !important;
  border-color: #06b6d4 !important;
  color: #22d3ee !important;
}

[data-bs-theme="dark"] .btn-apply-first-child i {
  color: #22d3ee;
}

[data-bs-theme="dark"] .btn-apply-first-child:hover {
  background: #0891b2 !important;
  color: #ffffff !important;
}

[data-bs-theme="dark"] .btn-apply-first-child:hover i,
[data-bs-theme="dark"] .btn-apply-first-child:hover span {
  color: #ffffff !important;
}

/* ── Slide & Fade Animation for Dynamic Actions ── */
@keyframes jzSlideFadeIn {
  from {
    opacity: 0;
    transform: translateX(12px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

html[dir="ltr"] @keyframes jzSlideFadeIn {
  from {
    opacity: 0;
    transform: translateX(-12px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* ── Smooth Expand/Collapse for Child Package Rows (.child-offer-row) ── */
@keyframes jzChildOfferExpand {
  0% {
    opacity: 0;
    max-height: 0;
    transform: translateY(-8px);
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  100% {
    opacity: 1;
    max-height: 140px;
    transform: translateY(0);
    margin-top: 12px !important;
    padding-top: 12px !important;
  }
}

@keyframes jzChildOfferCollapse {
  0% {
    opacity: 1;
    max-height: 140px;
    transform: translateY(0);
    margin-top: 12px !important;
    padding-top: 12px !important;
  }
  100% {
    opacity: 0;
    max-height: 0;
    transform: translateY(-8px);
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}

.child-offer-row.jz-expand-anim {
  overflow: hidden;
  animation: jzChildOfferExpand 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.child-offer-row.jz-collapse-anim {
  overflow: hidden;
  animation: jzChildOfferCollapse 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ── Card Mode Switch Pulse Animation ── */
#selectedOfferCard {
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#selectedOfferCard.jz-mode-morphing {
  animation: jzCardPulse 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes jzCardPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.006); }
  100% { transform: scale(1); }
}

/* ── Price Value Highlight Bump ── */
.jz-price-bump {
  animation: jzPriceBumpAnim 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes jzPriceBumpAnim {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); filter: brightness(1.2); }
  100% { transform: scale(1); }
}

/* ── Wristband Availability Live Feedback Alert ── */
.wristband-availability-feedback {
  font-size: 11.5px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  margin-top: 6px !important;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-start;
  text-align: start;
  animation: jzFeedbackFadeIn 0.22s ease-out forwards;
}

.wristband-availability-feedback.d-none {
  display: none !important;
}

.wristband-availability-feedback i {
  font-size: 11.5px !important;
  flex-shrink: 0;
}

@keyframes jzFeedbackFadeIn {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Cash & Payment Input Groups - Exact Identical Pixel Height & Symmetry
   ========================================================================== */
.jz-cash-input-group {
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  display: flex !important;
  align-items: stretch !important;
  border-radius: 0.625rem !important;
}

.jz-cash-input-group > .input-group-text,
.jz-cash-input-group > .form-control {
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  line-height: 1.2 !important;
  box-sizing: border-box !important;
}

.jz-cash-input-group > .input-group-text {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
  padding: 0 !important;
  text-align: center !important;
  font-size: 1.15rem !important;
  flex-shrink: 0 !important;
}

.jz-cash-input-group > .input-group-text i {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.15rem !important;
  line-height: 1 !important;
  width: auto !important;
}

.jz-cash-input-group > .form-control {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  display: block !important;
  font-size: 1.2rem !important;
  line-height: 46px !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  box-sizing: border-box !important;
}

/* Unified Logical Border-Radius */
.jz-cash-input-group > :first-child {
  border-start-start-radius: 0.625rem !important;
  border-end-start-radius: 0.625rem !important;
  border-start-end-radius: 0 !important;
  border-end-end-radius: 0 !important;
}

.jz-cash-input-group > :last-child {
  border-start-end-radius: 0.625rem !important;
  border-end-end-radius: 0.625rem !important;
  border-start-start-radius: 0 !important;
  border-end-start-radius: 0 !important;
}

/* Physical Fallbacks for RTL and LTR */
[dir="rtl"] .jz-cash-input-group > :first-child,
html[lang="ar"] .jz-cash-input-group > :first-child {
  border-top-right-radius: 0.625rem !important;
  border-bottom-right-radius: 0.625rem !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

[dir="rtl"] .jz-cash-input-group > :last-child,
html[lang="ar"] .jz-cash-input-group > :last-child {
  border-top-left-radius: 0.625rem !important;
  border-bottom-left-radius: 0.625rem !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

[dir="ltr"] .jz-cash-input-group > :first-child,
html:not([dir="rtl"]) .jz-cash-input-group > :first-child {
  border-top-left-radius: 0.625rem !important;
  border-bottom-left-radius: 0.625rem !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

[dir="ltr"] .jz-cash-input-group > :last-child,
html:not([dir="rtl"]) .jz-cash-input-group > :last-child {
  border-top-right-radius: 0.625rem !important;
  border-bottom-right-radius: 0.625rem !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

/* Clean border seam between text and control */
[dir="rtl"] .jz-cash-input-group > .input-group-text,
html[lang="ar"] .jz-cash-input-group > .input-group-text {
  border-left: 0 !important;
}

[dir="ltr"] .jz-cash-input-group > .input-group-text,
html:not([dir="rtl"]) .jz-cash-input-group > .input-group-text {
  border-right: 0 !important;
}

/* Remove spin-buttons on number inputs in cash input group */
.jz-cash-input-group input[type="number"]::-webkit-inner-spin-button,
.jz-cash-input-group input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

.jz-cash-input-group input[type="number"] {
  -moz-appearance: textfield !important;
  appearance: textfield !important;
}

/* ==========================================================================
   POS Modal Role & Sub-filter Dynamic Toggle Track & Animations
   ========================================================================== */
.pos-role-filter-track {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px;
  background: var(--bs-tertiary-bg);
  border: 1px solid var(--pos-line, var(--bs-border-color));
  border-radius: 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.pos-role-filter-track::-webkit-scrollbar {
  display: none;
}

.pos-role-pill {
  position: relative;
  border: 0;
  outline: none;
  background: transparent;
  border-radius: 9px;
  padding: 6px 13px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--bs-body-color) !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.pos-role-pill i {
  font-size: 12px;
  color: var(--bs-secondary-color);
  transition: transform 0.2s ease, color 0.2s ease;
}

.pos-role-pill .badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 20px;
  background: var(--bs-card-bg);
  color: var(--bs-secondary-color);
  border: 1px solid var(--bs-border-color);
  transition: all 0.2s ease;
}

.pos-role-pill:hover:not(.active) {
  background: color-mix(in srgb, var(--bs-primary) 10%, transparent);
  color: var(--bs-primary) !important;
  transform: translateY(-1px);
}

.pos-role-pill:hover:not(.active) i {
  color: var(--bs-primary) !important;
  transform: scale(1.1);
}

.pos-role-pill.active {
  color: #ffffff !important;
  font-weight: 700;
  transform: translateY(-1px);
}

.pos-role-pill.active i,
.pos-role-pill.active span:not(.badge) {
  color: #ffffff !important;
}

.pos-role-pill.active .badge {
  background: rgba(255, 255, 255, 0.28) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
}

/* Specific Active Gradients by Role */
.pos-role-pill[data-role="all"].active {
  background: linear-gradient(135deg, #059669, #10b981) !important;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.38) !important;
}

.pos-role-pill[data-role="operator"].active {
  background: linear-gradient(135deg, #059669, #10b981) !important;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.38) !important;
}

.pos-role-pill[data-role="supervisor"].active {
  background: linear-gradient(135deg, #d97706, #f59e0b) !important;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.38) !important;
}

.pos-role-pill[data-role="owner"].active {
  background: linear-gradient(135deg, #6366f1, #818cf8) !important;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.38) !important;
}

.pos-role-pill[data-role="superadmin"].active {
  background: linear-gradient(135deg, #ef4444, #f87171) !important;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.38) !important;
}

/* Kids subfilters */
.pos-role-pill[data-gender="all"].active {
  background: linear-gradient(135deg, #0284c7, #0ea5e9) !important;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.38) !important;
}

.pos-role-pill[data-gender="boy"].active {
  background: linear-gradient(135deg, #0284c7, #38bdf8) !important;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.38) !important;
}

.pos-role-pill[data-gender="girl"].active {
  background: linear-gradient(135deg, #db2777, #ec4899) !important;
  box-shadow: 0 2px 10px rgba(219, 39, 119, 0.38) !important;
}

/* Smooth Card Entrance Animation */
@keyframes posModalCardEntrance {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.pos-modal-card-animated {
  animation: posModalCardEntrance 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ==========================================================================
   POS Product Cards & Dynamic Top-Left Quantity Badge
   ========================================================================== */
.pos-product {
  color: var(--bs-body-color);
  border: 1.5px solid color-mix(in srgb, var(--pos-violet, #7c3aed) 18%, var(--bs-border-color));
  border-radius: 16px !important;
  background: linear-gradient(180deg, var(--bs-card-bg) 0%, color-mix(in srgb, var(--bs-tertiary-bg) 35%, var(--bs-card-bg)) 100%);
  overflow: hidden;
  min-width: 0;
  position: relative !important;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  cursor: pointer;
  user-select: none;
}

.pos-product:hover:not(:disabled) {
  border-color: var(--pos-teal, #0891b2) !important;
  background-color: var(--pos-card-hover-color, color-mix(in srgb, var(--pos-teal, #0891b2) 6%, var(--bs-card-bg))) !important;
  transform: translateY(-3px) scale(1.015) !important;
  box-shadow: 0 10px 24px -4px color-mix(in srgb, var(--pos-violet, #7c3aed) 16%, transparent),
              0 3px 8px rgba(0, 0, 0, 0.04) !important;
}

.pos-product:active:not(:disabled) {
  transform: scale(0.97) !important;
}

.pos-product.pos-product-selected {
  border-color: var(--pos-teal, #0891b2) !important;
  border-width: 2px !important;
  background: linear-gradient(180deg, color-mix(in srgb, var(--pos-teal, #0891b2) 10%, var(--bs-card-bg)) 0%, color-mix(in srgb, var(--pos-teal, #0891b2) 4%, var(--bs-card-bg)) 100%) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pos-teal, #0891b2) 22%, transparent),
              0 8px 20px -4px color-mix(in srgb, var(--pos-teal, #0891b2) 20%, transparent) !important;
}

.pos-product:disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
  filter: grayscale(0.5);
}

.pos-card-emoji-wrap {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--pos-violet, #7c3aed) 9%, var(--bs-tertiary-bg));
  border: 1px solid color-mix(in srgb, var(--pos-violet, #7c3aed) 18%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  margin-bottom: 2px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.pos-product:hover .pos-card-emoji-wrap {
  transform: scale(1.08) rotate(-3deg);
  background: color-mix(in srgb, var(--pos-teal, #0891b2) 12%, var(--bs-card-bg));
  border-color: color-mix(in srgb, var(--pos-teal, #0891b2) 32%, transparent);
  box-shadow: 0 4px 10px color-mix(in srgb, var(--pos-teal, #0891b2) 20%, transparent);
}

.pos-product.pos-product-selected .pos-card-emoji-wrap {
  background: color-mix(in srgb, var(--pos-teal, #0891b2) 16%, var(--bs-card-bg));
  border-color: var(--pos-teal, #0891b2);
}

/* Top-Left Selected Quantity Badge */
.pos-product-qty-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  min-width: 25px;
  height: 25px;
  padding: 0 6px;
  border-radius: 20px;
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: #ffffff !important;
  font-size: 12.5px;
  font-weight: 800;
  font-family: system-ui, -apple-system, sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(2, 132, 199, 0.45);
  border: 2px solid #ffffff;
  z-index: 5;
  pointer-events: none;
  animation: posQtyBadgePop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.35) both;
}

[data-bs-theme="dark"] .pos-product-qty-badge {
  border-color: #1e293b;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.2);
}

@keyframes posQtyBadgePop {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(-15deg);
  }
  70% {
    transform: scale(1.22) rotate(4deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.pos-badge-bump {
  animation: posBadgeBump 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.35);
}

@keyframes posBadgeBump {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}

/* ==========================================================================
   Ledger Filter Pill Buttons - Subtle Hover State
   ========================================================================== */
.jz-filter-pill-btn {
  background-color: transparent !important;
  color: var(--bs-secondary-color, #64748b) !important;
  transition: all 0.15s ease-in-out !important;
}

.jz-filter-pill-btn:hover {
  background-color: var(--bs-tertiary-bg, #f1f5f9) !important;
  color: var(--bs-body-color, #0f172a) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}











