/* ============================================================================
   EventHub ACG — Interface Design from d:\FYP\eventhub + Bootstrap 5 Responsive
   ============================================================================ */
:root,
[data-bs-theme="light"] {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #dbe7ff;
  --brand: #2563eb;
  --brand-hover: #1d4ed8;
  --brand-soft: #dbe7ff;
  --pink: #0891b2;
  --pink-bg: #cffafe;
  --bg: #eef3fb;
  --surface: #ffffff;
  --border: #e3e8f0;
  --text: #111827;
  --muted: #6b7280;
  --green: #16a34a;
  --green-soft: #dcfce7;
  --red: #dc2626;
  --red-soft: #fee2e2;
  --amber: #d97706;
  --amber-soft: #fef3c7;
  --blue-soft: #dbeafe;
  --purple: #7c3aed;
  --purple-soft: #ede9fe;
  --teal: #0891b2;
  --teal-soft: #cffafe;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 1px 3px rgba(16, 24, 40, 0.06);
  --sidebar-w: 232px;
  --bs-primary: #2563eb;
  --bs-primary-rgb: 37, 99, 235;
  --bs-body-bg: #eef3fb;
  --bs-body-color: #111827;
  --bs-border-color: #e3e8f0;
}

[data-bs-theme="dark"] {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --primary-soft: rgba(59, 130, 246, 0.2);
  --brand: #3b82f6;
  --brand-hover: #2563eb;
  --brand-soft: rgba(59, 130, 246, 0.18);
  --pink: #22d3ee;
  --pink-bg: rgba(34, 211, 238, 0.16);
  --bg: #0b1120;
  --surface: #111827;
  --border: #1e293b;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --bs-primary: #3b82f6;
  --bs-primary-rgb: 59, 130, 246;
  --bs-body-bg: #0b1120;
  --bs-body-color: #f1f5f9;
  --bs-border-color: #1e293b;
}

body {
  font-family: Inter, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.btn-primary {
  --bs-btn-bg: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: var(--primary-dark);
  --bs-btn-hover-border-color: var(--primary-dark);
  font-weight: 600;
}

/* ---------- EventHub Shell & Sidebar (from d:\FYP\eventhub) ---------- */
.eh-shell {
  background: var(--bg);
}

.eh-sidebar {
  width: var(--sidebar-w);
  background: linear-gradient(180deg, #f3f7fd, #e9f0fb);
  border-right: 1px solid var(--border);
  padding: 16px 13px;
}
[data-bs-theme="dark"] .eh-sidebar {
  background: linear-gradient(180deg, #0f172a, #111827);
}

.eh-brand-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.3px;
  color: var(--text);
}

.eh-brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.3);
}

.eh-role-chip {
  margin: 4px 6px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--primary-dark);
  background: var(--primary-soft);
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  align-self: flex-start;
}
[data-bs-theme="dark"] .eh-role-chip {
  color: #93c5fd;
}

.eh-ws-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 4px 8px;
  padding: 7px 11px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--primary-dark);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s ease;
  text-align: left;
}
.eh-ws-back:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
}
[data-bs-theme="dark"] .eh-ws-back {
  color: #93c5fd;
}

.eh-ws-event-card {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #fff;
  border-radius: 11px;
  padding: 11px 13px;
  margin: 0 4px 12px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.22);
}
.eh-ws-event-card .eyebrow {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  opacity: 0.82;
}
.eh-ws-event-card b {
  display: block;
  font-size: 13.5px;
  margin: 2px 0 3px;
  line-height: 1.3;
}
.eh-ws-event-card small {
  display: block;
  font-size: 11px;
  opacity: 0.88;
}
.eh-ws-event-card .ws-badges {
  display: flex;
  gap: 6px;
  margin-top: 7px;
}

.eh-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.eh-nav-group-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 6px 10px 4px;
}

.eh-nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 9px 11px;
  border-radius: 9px;
  font-weight: 500;
  font-size: 13.5px;
  color: var(--text);
  text-align: left;
  transition: background 0.12s ease;
}
.eh-nav-link:hover {
  background: rgba(37, 99, 235, 0.08);
}
.eh-nav-link.active {
  background: var(--primary);
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.eh-badge-count {
  margin-left: auto;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 999px;
}
.eh-nav-link.active .eh-badge-count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.eh-sidebar-foot {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 8px;
}

/* ---------- EventHub Sticky Topbar & Search ---------- */
.eh-topbar {
  min-height: 66px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 8px 22px;
  z-index: 20;
}

.eh-search {
  flex: 1;
  max-width: 390px;
  position: relative;
}
.eh-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}
.eh-search input {
  width: 100%;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 0 12px 0 36px;
  font: inherit;
  background: var(--surface);
  color: var(--text);
}
.eh-search input:focus {
  outline: 2px solid var(--primary-soft);
  border-color: var(--primary);
}

.eh-search-results {
  position: absolute;
  top: 44px;
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.14);
  z-index: 45;
  padding: 6px;
  max-height: 360px;
  overflow-y: auto;
}
.eh-search-hit {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 8px 10px;
  border-radius: 7px;
  color: var(--text);
}
.eh-search-hit:hover {
  background: rgba(37, 99, 235, 0.08);
}
.eh-search-hit .grow {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  font-size: 13px;
}
.eh-search-hit small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 11.5px;
}

.eh-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eh-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: inline-grid;
  place-items: center;
  color: var(--text);
}
.eh-icon-btn:hover {
  background: rgba(37, 99, 235, 0.06);
}

.eh-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  color: #fff;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
  font-size: 12.5px;
  flex-shrink: 0;
}

.eh-user-role {
  font-size: 11px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  padding: 1px 8px;
  border-radius: 999px;
  display: inline-block;
  font-weight: 600;
}
[data-bs-theme="dark"] .eh-user-role {
  color: #93c5fd;
}

/* ---------- Page Content, Cards & Stat Cards ---------- */
.eh-content {
  padding: 14px 16px 28px;
  max-width: 100%;
}
@media (max-width: 768px) {
  .eh-content {
    padding: 12px 10px 24px;
  }
}

.eh-page-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--text);
}
.eh-page-sub {
  color: var(--muted);
  font-size: 12.5px;
}

.eh-card {
  background: var(--surface);
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow);
  padding: 13px 15px;
}
.eh-card-head {
  margin-bottom: 10px;
}
.eh-card-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
}

.eh-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 11px 14px;
}
.eh-stat-card.warn {
  background: #fff7e6;
  border-color: #fde3a7;
}
.eh-stat-label {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
}
.eh-stat-value {
  font-size: 22px;
  font-weight: 800;
  margin-top: 3px;
  letter-spacing: -0.4px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--text);
}
.eh-stat-value small {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: 0;
}

/* ---------- Stat Chips & Filter Toolbar (from d:\FYP\eventhub) ---------- */
.eh-stat-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.eh-stat-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
  transition: 0.12s ease;
}
.eh-stat-chip b {
  font-size: 17px;
  margin-right: 6px;
  color: var(--primary);
}
.eh-stat-chip.on {
  border-color: var(--primary);
  background: #f2f6ff;
  box-shadow: 0 0 0 2px var(--primary-soft);
}
[data-bs-theme="dark"] .eh-stat-chip.on {
  background: rgba(37, 99, 235, 0.18);
}

.eh-toolbar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow);
}

.eh-filter-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 4px;
}

.eh-field {
  border-radius: 8px !important;
  border-color: var(--border) !important;
}
.eh-field:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px var(--primary-soft) !important;
}

/* ---------- Bulk Action Bar & Table (from d:\FYP\eventhub) ---------- */
.eh-bulk-bar {
  padding: 9px 14px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 9px;
}
[data-bs-theme="dark"] .eh-bulk-bar {
  background: #161f33;
}

.eh-table-wrap {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow-x: auto;
}

.eh-tbl th {
  font-weight: 700;
  color: #374151;
  padding: 7px 8px !important;
  background: #f8fafc !important;
  border-bottom: 1px solid var(--border) !important;
  font-size: 11px;
  line-height: 1.25;
}
[data-bs-theme="dark"] .eh-tbl th {
  background: #161f33 !important;
  color: #cbd5e1;
}

.eh-tbl td {
  padding: 7px 8px !important;
  border-bottom: 1px solid var(--border) !important;
  font-size: 12px;
  line-height: 1.35;
}

.eh-tbl th.eh-col-actions,
.eh-tbl td.eh-col-actions {
  position: sticky;
  right: 0;
  z-index: 2;
  background: var(--surface);
  box-shadow: -3px 0 8px rgba(15, 23, 42, 0.06);
}
.eh-tbl thead th.eh-col-actions {
  background: #f8fafc !important;
  z-index: 3;
}
[data-bs-theme="dark"] .eh-tbl thead th.eh-col-actions {
  background: #161f33 !important;
}
[data-bs-theme="dark"] .eh-tbl td.eh-col-actions {
  background: var(--surface);
}

.eh-row-selected > td {
  background-color: #e8f0ff !important;
}
[data-bs-theme="dark"] .eh-row-selected > td {
  background-color: rgba(37, 99, 235, 0.22) !important;
}

.acg-row-mine > td {
  background-color: #f0f9ff !important;
}
[data-bs-theme="dark"] .acg-row-mine > td {
  background-color: rgba(8, 145, 178, 0.18) !important;
}

/* ---------- EventHub Pills & Badges ---------- */
.eh-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  text-transform: capitalize;
}
.eh-pill.green,
.acg-badge.live,
.acg-badge.approved,
.acg-badge.paid,
.acg-badge.done,
.acg-badge.resolved,
.acg-badge.checked_in,
.acg-badge.issued,
.acg-badge.ok,
.acg-badge.allocated,
.acg-badge.free {
  background: var(--green-soft);
  color: #15803d;
}

.eh-pill.blue,
.acg-badge.upcoming,
.acg-badge.doing,
.acg-badge.med,
.acg-badge.event,
.acg-badge.available,
.acg-badge.manager,
.acg-badge.exhibitor {
  background: var(--blue-soft);
  color: #1d4ed8;
}

.eh-pill.amber,
.acg-badge.pending,
.acg-badge.todo,
.acg-badge.unpaid,
.acg-badge.open,
.acg-badge.partial,
.acg-badge.doujin {
  background: var(--amber-soft);
  color: #b45309;
}

.eh-pill.red,
.acg-badge.rejected,
.acg-badge.high,
.acg-badge.conflict {
  background: var(--red-soft);
  color: #b91c1c;
}

.eh-pill.purple,
.acg-badge.organizer,
.acg-badge.cosplayer,
.acg-badge.performer,
.acg-badge.personal {
  background: var(--purple-soft);
  color: var(--purple);
}

.eh-pill.gray,
.acg-badge.staff,
.acg-badge.low,
.acg-badge.ended {
  background: #f1f5f9;
  color: #475569;
}

.acg-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 7px;
  flex-shrink: 0;
}

/* ---------- Floor Plan & Booth Grid (from d:\FYP\eventhub .fp-canvas & .booth-cell) ---------- */
.eh-fp-canvas {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}
[data-bs-theme="dark"] .eh-fp-canvas {
  background: #0f172a;
}

.eh-fp-stage {
  background: #dbeafe;
  border: 1px dashed #60a5fa;
  color: #1e40af;
  text-align: center;
  font-weight: 700;
  font-size: 12px;
  padding: 8px;
  border-radius: 8px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.eh-booth-cell {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  background: var(--surface);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  min-height: 78px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.eh-booth-cell:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}
.eh-booth-cell .b-id {
  font-weight: 800;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #0f172a;
}
.eh-booth-cell .b-cat {
  font-size: 11px;
  color: #64748b;
}
.eh-booth-cell .b-vendor {
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #1e293b;
}
.eh-booth-cell.st-Available {
  background: #f0fdf4;
  border-color: #86efac;
}
.eh-booth-cell.st-Allocated {
  background: #eff6ff;
  border-color: #93c5fd;
}
.eh-booth-cell.mine {
  outline: 2.5px solid #0891b2;
  background: #ecfeff;
}

.eh-fp-gates {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 600;
}
.eh-fp-gates span {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 6px;
}

/* ---------- Login Card (from d:\FYP\eventhub .login-page & .login-card) ---------- */
.eh-login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: radial-gradient(1200px 600px at 10% -10%, var(--primary-soft), transparent), var(--bg);
}

.eh-login-card {
  width: 480px;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(30, 64, 175, 0.12);
  padding: 30px;
}

.eh-demo-box {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.eh-demo-title {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.eh-demo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
@media (max-width: 480px) {
  .eh-demo-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.eh-demo-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #f8fafc;
  border-radius: 9px;
  padding: 8px 10px;
  text-align: left;
  transition: 0.12s ease;
}
[data-bs-theme="dark"] .eh-demo-pill {
  background: #1e293b;
}
.eh-demo-pill:hover {
  border-color: var(--primary);
  background: #f0f6ff;
}
.eh-demo-pill b {
  font-size: 12.5px;
  color: var(--text);
}
.eh-demo-pill small {
  font-size: 11px;
  color: var(--muted);
}

/* ---------- CSV Dropzone (from d:\FYP\eventhub) ---------- */
.csv-dropzone {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 22px 16px;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
}
.csv-dropzone:hover {
  border-color: var(--primary);
  background: #eff6ff;
}
.csv-dropzone-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: #e0f2fe;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
}
.csv-file-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: #e0e7ff;
  color: #3730a3;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  margin-top: 8px;
}
.csv-preview-table-wrap {
  max-height: 210px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
}
.csv-preview-table-wrap table {
  width: 100%;
  border-collapse: collapse;
}
.csv-preview-table-wrap th {
  background: #f1f5f9;
  padding: 6px 10px;
  text-align: left;
  font-weight: 600;
  font-size: 11px;
  color: #475569;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
}
.csv-preview-table-wrap td {
  padding: 6px 10px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
}

/* ---------- Digital Pass Card ---------- */
.acg-pass-card {
  background: linear-gradient(135deg, #0b1b3f 0%, #1e3a8a 58%, #2563eb 100%);
  color: #fff;
}
.acg-barcode rect {
  fill: #fff;
}

/* ---------- Toast Stack (from d:\FYP\eventhub) ---------- */
.eh-toasts {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1095;
}
.eh-toast {
  background: #111827;
  color: #fff;
  padding: 10px 18px;
  border-radius: 9px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  font-weight: 500;
  font-size: 13.5px;
}
.eh-toast.err {
  background: #b91c1c;
}

/* ---------- Executive Print Document Styling (from d:\FYP\eventhub) ---------- */
#ehPrintArea {
  display: none;
}

.print-preview-wrap {
  background: #cbd5e1;
  padding: 20px;
  border-radius: 10px;
  max-height: 62vh;
  overflow-y: auto;
}

.print-doc {
  background: #ffffff;
  color: #0f172a;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.45;
  font-size: 12.5px;
  padding: 32px 36px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
  max-width: 1020px;
  margin: 0 auto;
}

.print-accent-bar {
  height: 6px;
  background: linear-gradient(90deg, #1e3a8a, #2563eb 50%, #38bdf8);
  border-radius: 4px 4px 0 0;
  margin-bottom: 20px;
}

.print-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 16px;
}

.print-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.print-logo-mark {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #ffffff;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.print-brand-text h1 {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}
.print-brand-text p {
  font-size: 12px;
  color: #64748b;
  margin: 2px 0 0;
}

.print-meta-badge {
  text-align: right;
  font-size: 11.5px;
  color: #475569;
}

.print-official-pill {
  display: inline-block;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 10.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.print-scope-bar {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 9px 14px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11.5px;
  color: #334155;
}

.print-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-bottom: 20px;
}
.print-tbl th {
  background: #0f172a;
  color: #f8fafc;
  font-weight: 600;
  text-align: left;
  padding: 9px 10px;
  font-size: 11px;
  text-transform: uppercase;
  border: 1px solid #0f172a;
}
.print-tbl td {
  padding: 9px 10px;
  border: 1px solid #e2e8f0;
}
.print-tbl tbody tr:nth-child(even) {
  background: #f8fafc;
}

.print-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.print-card-item {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
}
.print-card-item .hd {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 6px;
  margin-bottom: 8px;
}
.print-pill-cat {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 600;
}

.print-sign-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed #cbd5e1;
}
.print-sign-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 14px;
}
.print-sign-line {
  border-bottom: 1px solid #94a3b8;
  height: 32px;
  margin: 6px 0;
}
.print-doc-foot {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: #94a3b8;
}

@media print {
  @page {
    size: landscape;
    margin: 8mm 10mm;
  }
  html, body {
    background: #ffffff !important;
    color: #0f172a !important;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    overflow: visible !important;
  }
  body > *:not(#ehPrintArea) {
    display: none !important;
  }
  #root, .eh-shell, .eh-sidebar, .eh-topbar, .eh-content, .modal, .modal-backdrop, .eh-toasts {
    display: none !important;
  }
  #ehPrintArea {
    display: block !important;
    position: static !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
  }
  .print-doc {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    max-width: 100% !important;
  }
  .print-tbl th,
  .print-accent-bar,
  .print-logo-mark,
  .print-official-pill,
  .print-pill-cat,
  .print-scope-bar,
  .print-sign-box,
  .acg-pass-card {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  tr {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
  thead {
    display: table-header-group !important;
  }
}

/* ---------- Modal Scrolling & Compact Button / Interface Resize Fixes ---------- */
.modal.eh-modal-backdrop {
  overflow-x: hidden;
  overflow-y: auto !important;
}

.modal-dialog {
  margin: 1rem auto;
}

.modal-dialog-scrollable {
  max-height: calc(100vh - 2rem) !important;
}

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

.modal-content > form,
.modal-content > div:not(.modal-header):not(.modal-body):not(.modal-footer) {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  max-height: calc(100vh - 4.75rem);
  overflow: hidden;
}

.modal-content .modal-body {
  overflow-y: auto !important;
  overflow-x: hidden;
  flex: 1 1 auto;
  min-height: 0;
  max-height: calc(100vh - 10.5rem);
}

.modal-content .modal-header,
.modal-content .modal-footer {
  flex-shrink: 0;
}

/* Clean, compact button & interface sizing */
.btn {
  font-size: 0.8rem;
  padding: 0.34rem 0.72rem;
  line-height: 1.3;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
}

.btn-sm,
.btn-group-sm > .btn {
  font-size: 0.74rem !important;
  padding: 0.24rem 0.56rem !important;
  line-height: 1.25 !important;
  border-radius: 6px;
}

.eh-tbl td .btn,
.eh-tbl td .btn-sm,
.eh-table td .btn,
.eh-table td .btn-sm {
  font-size: 0.71rem !important;
  padding: 0.18rem 0.44rem !important;
  line-height: 1.2 !important;
  border-radius: 5px;
}

.eh-tbl td,
.eh-table td {
  vertical-align: middle;
  font-size: 12px;
  padding: 7px 8px;
}

.eh-tbl th,
.eh-table th {
  font-size: 11px;
  padding: 7px 8px;
}

.btn:disabled,
.btn.disabled {
  opacity: 0.48 !important;
  cursor: not-allowed !important;
  pointer-events: auto !important;
  filter: grayscale(25%);
}

.eh-page-header .btn,
.eh-card-header .btn,
.eh-filter-bar .btn {
  font-size: 0.76rem;
  padding: 0.28rem 0.62rem;
}

/* ---------- Non-Scrollable Parent & Child Sidebar Accordion ---------- */
@media (min-width: 992px) {
  .eh-sidebar {
    height: 100vh;
    max-height: 100vh;
    overflow: hidden !important;
    padding: 12px 11px;
  }
  .eh-sidebar .eh-nav {
    overflow: hidden !important;
  }
}

.eh-ws-event-card.compact {
  padding: 8px 11px;
  margin: 0 4px 8px;
}
.eh-ws-event-card.compact b {
  display: block;
  font-size: 13px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.eh-ws-event-card.compact small {
  display: block;
  font-size: 10.5px;
  opacity: 0.88;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eh-nav-parent {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  margin-bottom: 2px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease;
}
.eh-nav-parent:hover {
  background: rgba(37, 99, 235, 0.08);
}
.eh-nav-parent.open {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-dark);
}
[data-bs-theme="dark"] .eh-nav-parent.open {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.16);
}
.eh-nav-parent.has-active {
  color: var(--primary);
  font-weight: 700;
}
.eh-nav-chevron {
  margin-left: auto;
  font-size: 10px;
  opacity: 0.7;
  transition: transform 0.16s ease;
}
.eh-nav-parent.open .eh-nav-chevron {
  transform: rotate(90deg);
}

.eh-nav-children {
  margin: 1px 0 5px 14px;
  padding-left: 8px;
  border-left: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.eh-nav-child {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5.5px 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.12s ease;
}
.eh-nav-child:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--text);
}
.eh-nav-child.active {
  background: var(--primary);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

/* ---------- Quick Check-In Auto-Dismiss Flash Banner ---------- */
@keyframes ehCountdownShrink {
  from { width: 100%; }
  to { width: 0%; }
}

.eh-quick-flash {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
  transition: all 0.2s ease;
}
.eh-quick-flash-bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.35);
  width: 100%;
}
.eh-quick-flash-bar > div {
  height: 100%;
  background: currentColor;
  animation-name: ehCountdownShrink;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

/* ---------- Status Pills & Dual-QR Visual Distinction ---------- */
.acg-badge.expired,
.eh-pill.expired {
  background: #e2e8f0;
  color: #475569;
}
.acg-badge.suspended,
.eh-pill.suspended {
  background: var(--amber-soft);
  color: var(--amber);
}
.acg-badge.archived,
.eh-pill.archived {
  background: #f1f5f9;
  color: #64748b;
  border: 1px dashed #94a3b8;
}
.acg-badge.redeemed,
.eh-pill.redeemed {
  background: var(--purple-soft);
  color: var(--purple);
}
.acg-badge.lost,
.eh-pill.lost {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #f87171;
  font-weight: 700;
}

.eh-qr-redemption-box {
  border: 2px solid #d97706;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
  border-radius: 14px;
  padding: 16px;
}
[data-bs-theme="dark"] .eh-qr-redemption-box {
  background: linear-gradient(180deg, rgba(217, 119, 6, 0.14) 0%, #111827 100%);
  border-color: #f59e0b;
}

.eh-qr-checkin-box {
  border: 2px solid #16a34a;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
  border-radius: 14px;
  padding: 16px;
}
[data-bs-theme="dark"] .eh-qr-checkin-box {
  background: linear-gradient(180deg, rgba(22, 163, 74, 0.14) 0%, #111827 100%);
  border-color: #22c55e;
}



