/* ==========================================================================
   Smart Exam Seating & Attendance System — theme
   Palette: deep academic navy + warm amber accent on a soft slate canvas.
   Display face: Poppins (headings, brand, nav). Body face: Inter.
   ========================================================================== */

:root {
  --ink-900: #0F1B3D;
  --ink-800: #16234F;
  --ink-700: #1E2E63;
  --primary: #2C4A9B;
  --primary-dark: #1B2F6B;
  --primary-light: #4A6FD1;
  --accent: #F2A93B;
  --accent-dark: #D98E1F;
  --success: #16A34A;
  --danger: #E4572E;
  --info: #2E8FCC;
  --bg: #F3F5FB;
  --surface: #FFFFFF;
  --text: #1B2540;
  --muted: #64748B;
  --border: #E4E8F2;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(15, 27, 61, .06);
  --shadow-md: 0 8px 24px rgba(15, 27, 61, .08);
  --shadow-lg: 0 16px 40px rgba(15, 27, 61, .14);
  --shadow-xl: 0 24px 60px rgba(15, 27, 61, .18);
  --glow-accent: 0 0 0 4px rgba(242, 169, 59, .16);
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--ink-800) 100%);
  --gradient-hero: linear-gradient(135deg, #152653 0%, #263d7a 55%, #2C4A9B 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  --gradient-surface: linear-gradient(160deg, #ffffff 0%, #f7f9fd 100%);
  --font-display: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

* { scrollbar-color: var(--primary-light) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #C7D2ED; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  font-family: var(--font-body);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* Subtle page-load fade for the main content area */
.main-content { animation: pageFadeIn .38s ease both; }
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .card-header b {
  font-family: var(--font-display);
  color: var(--ink-900);
  letter-spacing: -.01em;
}

h4.mb-3, h4.mb-4 { font-weight: 700; }

a { color: var(--primary); }
a:hover { color: var(--primary-dark); }

/* Generic centered-card background (used by Access Denied screen) */
.login-bg {
  background:
    radial-gradient(1100px 550px at 12% -10%, rgba(242, 169, 59, .18), transparent 60%),
    radial-gradient(900px 600px at 100% 110%, rgba(74, 111, 209, .28), transparent 55%),
    linear-gradient(160deg, var(--ink-900), var(--primary-dark) 60%, var(--primary) 130%);
  position: relative;
  overflow: hidden;
}
.login-bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 30%, black, transparent 75%);
  pointer-events: none;
}
.login-bg .card {
  border-radius: 20px;
  backdrop-filter: blur(6px);
  animation: loginRise .5s ease both;
}
.login-bg .card-body { padding: 2.4rem 2.2rem !important; }
.login-badge {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  box-shadow: var(--shadow-md);
}
.login-badge-danger { background: linear-gradient(135deg, #F17A52, var(--danger)); }
.login-bg h4 { font-weight: 800; }

/* ---------------------------------------------------------------------- */
/* Login screen — split-panel, brand + form                                */
/* ---------------------------------------------------------------------- */
body.login-page {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  background: var(--bg);
}
.login-shell {
  display: flex;
  min-height: 100vh;
}

/* Left brand panel */
.login-panel-left {
  position: relative;
  flex: 1 1 46%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(242, 169, 59, .22), transparent 60%),
    radial-gradient(800px 600px at 100% 115%, rgba(74, 111, 209, .30), transparent 55%),
    linear-gradient(160deg, var(--ink-900), var(--primary-dark) 55%, var(--primary) 130%);
}
.login-panel-left::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 35%, black, transparent 75%);
  pointer-events: none;
}
.login-left-glow {
  position: absolute;
  width: 420px; height: 420px;
  right: -140px; bottom: -140px;
  background: radial-gradient(circle, rgba(242,169,59,.28), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.login-left-inner {
  position: relative;
  z-index: 1;
  max-width: 460px;
  color: #fff;
  animation: loginRise .6s ease both;
}
.login-logo-wrap {
  width: 84px; height: 84px;
  border-radius: 20px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 26px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.login-logo-img { width: 60%; height: 60%; object-fit: contain; }
.login-logo-fallback {
  width: 100%; height: 100%;
  align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800; font-size: 26px; letter-spacing: .04em;
  color: #fff;
}
.login-hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 12px;
  color: #fff;
}
.login-hero-sub {
  font-size: 1.02rem;
  color: rgba(255,255,255,.78);
  margin-bottom: 34px;
}
.login-feature-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 16px;
}
.login-feature-list li {
  display: flex; align-items: center; gap: 12px;
  font-size: .95rem;
  color: rgba(255,255,255,.9);
  font-weight: 500;
}
.login-feature-list .lf-ico {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.login-feature-list .lf-ico::before {
  content: ""; width: 12px; height: 12px; border-radius: 4px;
}
.lf-ico-slate::before { background: linear-gradient(135deg, #CBD5E1, #64748B); }
.lf-ico-plum::before  { background: linear-gradient(135deg, #E9A6F0, #C026D3); }
.lf-ico-green::before { background: linear-gradient(135deg, #6EE7B7, #10B981); }
.lf-ico-gold::before  { background: linear-gradient(135deg, #FBD98A, var(--accent)); }
.lf-ico-slate, .lf-ico-plum, .lf-ico-green, .lf-ico-gold {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.2);
}

/* Right form panel */
.login-panel-right {
  flex: 1 1 54%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--surface);
}
.login-form-card {
  width: 100%;
  max-width: 400px;
  animation: loginRise .5s .1s ease both;
}
.login-form-badge-mobile {
  display: none;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--gradient-primary);
  align-items: center; justify-content: center;
  margin-bottom: 18px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.login-form-badge-mobile img { width: 60%; height: 60%; object-fit: contain; }
.login-logo-fallback-sm {
  width: 100%; height: 100%;
  align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 18px;
}
.login-form-card h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
}
.login-field label { font-weight: 600; font-size: .88rem; color: var(--text); margin-bottom: 6px; }
.login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.login-input-ico {
  position: absolute; left: 16px;
  width: 7px; height: 7px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  pointer-events: none;
}
.login-input-wrap .form-control {
  padding: 11px 14px 11px 42px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  font-size: .95rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.login-input-wrap .form-control:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(74, 111, 209, .12);
}
.login-pw-toggle {
  position: absolute; right: 8px;
  border: none; background: transparent;
  font-size: .72rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  line-height: 1; color: var(--primary);
  padding: 8px 10px; cursor: pointer;
  border-radius: 8px;
  opacity: .75;
}
.login-pw-toggle:hover { opacity: 1; background: var(--bg); }
.login-submit-btn {
  margin-top: 6px;
  padding: 11px;
  border-radius: 12px;
  font-weight: 700;
  font-size: .98rem;
  background: var(--gradient-primary);
  border: none;
  box-shadow: var(--shadow-md);
  transition: transform .15s ease, box-shadow .15s ease;
}
.login-submit-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.login-alert { border-radius: 12px; font-size: .9rem; }
.login-hint {
  font-size: 12.5px;
  background: var(--bg);
  border-radius: 10px;
  padding: 10px 12px;
}
.login-hint code { color: var(--primary-dark); font-weight: 600; }

@keyframes loginRise {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 900px) {
  .login-panel-left { display: none; }
  .login-panel-right { flex: 1 1 100%; }
  .login-form-badge-mobile { display: flex; }
}

/* ---------------------------------------------------------------------- */
/* Topbar                                                                   */
/* ---------------------------------------------------------------------- */
.topbar {
  background: linear-gradient(100deg, var(--ink-900), var(--primary-dark) 55%, var(--primary));
  box-shadow: 0 2px 14px rgba(15, 27, 61, .25);
  min-height: 60px;
  position: sticky; top: 0; z-index: 1030;
  border-bottom: 1px solid rgba(255,255,255,.06);
  overflow: hidden;
}
.topbar::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.06), transparent 60%);
}
.navbar-brand {
  display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem;
  flex: 1 1 auto; min-width: 0; overflow: hidden; text-decoration: none; color: #fff !important;
}
.navbar-brand .brand-text {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; display: inline-block; max-width: 100%;
}
.navbar-brand .brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: rgba(255,255,255,.12); font-size: 17px;
}
.navbar-logo-img {
  width: 32px; height: 32px; object-fit: contain; flex-shrink: 0;
  border-radius: 7px; background: rgba(255,255,255,.1); padding: 3px;
}
.navbar-brand .brand-sub { font-weight: 400; opacity: .75; font-size: .85em; }
.admin-chip {
  background: rgba(255,255,255,.1); padding: 5px 12px; border-radius: 999px;
  font-size: .85rem; font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
}
.admin-chip-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #F2A93B, #D98E1F);
  box-shadow: 0 0 0 2px rgba(255,255,255,.25);
}
.topbar .btn-outline-light { border-radius: 999px; font-weight: 500; }
.topbar .btn-outline-light:hover { background: var(--accent); border-color: var(--accent); color: var(--ink-900); }

.sidebar-toggle-btn {
  width: 38px; height: 34px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px; padding: 0;
  background: rgba(255,255,255,.08); border-radius: 8px; border: none;
}
.sidebar-toggle-btn span { width: 18px; height: 2px; background: #fff; border-radius: 2px; }

.sidebar-backdrop {
  display: none; position: fixed; inset: 0; z-index: 1035;
  background: rgba(15, 27, 61, .45); backdrop-filter: blur(1px);
}
.sidebar-backdrop.show { display: block; }

/* ---------------------------------------------------------------------- */
/* Sidebar                                                                  */
/* ---------------------------------------------------------------------- */
.sidebar {
  width: 250px; min-width: 250px; min-height: calc(100vh - 60px);
  background: linear-gradient(180deg, var(--ink-900), var(--ink-800));
  padding: 18px 14px 30px;
  box-shadow: 2px 0 12px rgba(15, 27, 61, .08);
}
.nav-group { margin: 4px 0; }
.nav-group-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: transparent; border: none; color: #8A96C2; font-family: var(--font-display);
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 12px 10px 8px; cursor: pointer;
}
.nav-group-toggle:hover { color: #fff; }
.nav-group-toggle .chevron {
  display: inline-block; width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid #8A96C2;
  transition: transform .2s ease, border-top-color .2s ease;
}
.nav-group-toggle.collapsed .chevron { transform: rotate(-90deg); }
.nav-group-toggle:not(.collapsed) .chevron { border-top-color: var(--accent); }
.nav-group-body { list-style: none; padding-left: 0; margin: 0; }
.sidebar .nav-link {
  color: #C9D3E8; padding: 10px 12px; border-radius: 10px; margin-bottom: 3px;
  font-size: .92rem; font-weight: 500; display: flex; align-items: center; gap: 10px;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.sidebar .nav-link .nav-ico {
  display: inline-block; width: 10px; height: 10px; border-radius: 3px;
  flex-shrink: 0; margin-right: 2px;
  box-shadow: 0 0 0 3px rgba(255,255,255,.04);
}
.nav-ico-navy   { background: linear-gradient(135deg, #4A6FD1, #1B2F6B); }
.nav-ico-gold   { background: linear-gradient(135deg, #F2A93B, #B9720F); }
.nav-ico-teal   { background: linear-gradient(135deg, #2DD4BF, #0F766E); }
.nav-ico-indigo { background: linear-gradient(135deg, #6366F1, #3730A3); }
.nav-ico-plum   { background: linear-gradient(135deg, #C026D3, #701A75); }
.nav-ico-slate  { background: linear-gradient(135deg, #94A3B8, #475569); }
.nav-ico-green  { background: linear-gradient(135deg, #34D08A, #0E7A48); }
.sidebar .nav-link:hover { background: rgba(255,255,255,.06); color: #fff; transform: translateX(2px); }
.sidebar .nav-link.active {
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  color: var(--ink-900); font-weight: 700;
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(242,169,59,.35), 0 4px 14px rgba(242,169,59,.25);
}

.main-content { width: 100%; min-width: 0; }

/* ---------------------------------------------------------------------- */
/* Cards                                                                    */
/* ---------------------------------------------------------------------- */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease;
}
.card:hover { box-shadow: var(--shadow-md); }
.card-header { border-radius: var(--radius) var(--radius) 0 0 !important; font-family: var(--font-display); }
.card-header.bg-white { background: var(--surface) !important; border-bottom: 1px solid var(--border); }

.card-stat {
  border: 0; border-radius: 18px; color: #fff; position: relative; overflow: hidden;
  box-shadow: var(--shadow-md);
  padding: 20px 20px 18px !important;
  min-height: 128px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .22s cubic-bezier(.2,.8,.3,1.1), box-shadow .22s ease;
}
.card-stat:hover { transform: translateY(-6px) scale(1.015); box-shadow: var(--shadow-xl); }

/* Soft decorative orb + fine grid texture for depth */
.card-stat::after {
  content: ""; position: absolute; right: -22px; top: -26px; width: 110px; height: 110px;
  background: rgba(255,255,255,.14); border-radius: 50%;
  transition: transform .3s ease;
}
.card-stat:hover::after { transform: scale(1.15) translate(-4px, 4px); }
.card-stat::before {
  content: ""; position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,.28) 40%, transparent 60%);
  transform: translateX(-60%);
}
.card-stat:hover::before { animation: cardSheen 1.1s ease; }
@keyframes cardSheen {
  from { transform: translateX(-60%); opacity: 1; }
  to   { transform: translateX(60%); opacity: 0; }
}

/* Frosted-glass icon badge */
.card-stat .stat-ico {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; font-size: 1.28rem;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 13px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 4px 10px rgba(0,0,0,.08);
  backdrop-filter: blur(2px);
  transition: transform .25s cubic-bezier(.3,1.4,.5,1), background .2s ease;
}
.card-stat:hover .stat-ico { transform: translateY(-2px) rotate(-4deg) scale(1.08); background: rgba(255,255,255,.24); }

.card-stat small {
  position: relative; z-index: 1;
  display: block; margin-top: 14px;
  opacity: .88; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .68rem;
}
.card-stat h2 {
  position: relative; z-index: 1;
  font-weight: 800; font-family: var(--font-display); margin: 2px 0 0; font-size: 2rem;
  line-height: 1.1; letter-spacing: -.02em;
  text-shadow: 0 2px 10px rgba(0,0,0,.12);
}

.card-stat-navy   { background: linear-gradient(150deg, var(--primary-light) 0%, var(--primary) 45%, var(--ink-800) 100%); }
.card-stat-green  { background: linear-gradient(150deg, #34D08A 0%, #1FAE6B 45%, #0E7A48 100%); }
.card-stat-coral  { background: linear-gradient(150deg, #F17A52 0%, #E4572E 45%, #B23A17 100%); }
.card-stat-violet { background: linear-gradient(150deg, #A78BFA 0%, #8B5CF6 45%, #5B32A8 100%); }
.card-stat-amber  { background: linear-gradient(150deg, #F6C36B 0%, var(--accent) 45%, var(--accent-dark) 100%); }
.card-stat-teal   { background: linear-gradient(150deg, #34D6C7 0%, #14B8A6 45%, #0D7A70 100%); }

/* Staggered entrance for the dashboard stat row */
.dashboard-stats .card-stat { animation: statPop .45s cubic-bezier(.2,.7,.3,1.15) both; }
.dashboard-stats .col-6:nth-child(1) .card-stat { animation-delay: .02s; }
.dashboard-stats .col-6:nth-child(2) .card-stat { animation-delay: .07s; }
.dashboard-stats .col-6:nth-child(3) .card-stat { animation-delay: .12s; }
.dashboard-stats .col-6:nth-child(4) .card-stat { animation-delay: .17s; }
.dashboard-stats .col-6:nth-child(5) .card-stat { animation-delay: .22s; }
.dashboard-stats .col-6:nth-child(6) .card-stat { animation-delay: .27s; }
@keyframes statPop {
  from { opacity: 0; transform: translateY(10px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .dashboard-stats .card-stat { animation: none; }
}

/* ---------------------------------------------------------------------- */
/* Dashboard content cards — premium headers                               */
/* (scoped to dashboard.php only: dash-card / dash-table / dash-badge /    */
/*  dash-chip / section-tile classes are not used elsewhere)               */
/* ---------------------------------------------------------------------- */
.dash-card { border: 1px solid var(--border); overflow: hidden; }
.dash-card-header {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 22px; background: var(--gradient-surface);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.dash-card-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent) 55%, transparent);
}
.dash-card-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dash-card-title b { font-family: var(--font-display); color: var(--ink-900); font-size: 1rem; }
.dash-card-sub { font-size: .76rem; color: var(--muted); font-weight: 500; margin-top: 1px; }
.dash-card-icon {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, #EEF2FF, #E2E9FB);
  box-shadow: inset 0 0 0 1px rgba(44,74,155,.1);
  position: relative;
}
.dash-card-icon::before { content: ""; width: 14px; height: 14px; border-radius: 5px; }
.dash-card-icon-navy::before { background: linear-gradient(135deg, #4A6FD1, #1B2F6B); }
.dash-card-icon-plum::before { background: linear-gradient(135deg, #C026D3, #701A75); }
.dash-card-icon-teal::before { background: linear-gradient(135deg, #2DD4BF, #0F766E); }
.dash-chip {
  flex-shrink: 0; font-size: .74rem; font-weight: 700; color: var(--primary);
  background: rgba(44,74,155,.08); padding: 6px 13px; border-radius: 999px;
  letter-spacing: .02em;
}

/* Section-wise Student Count — professional stat tiles */
.section-tile-row { animation: statPop .4s cubic-bezier(.2,.7,.3,1.1) both; }
.section-tile {
  position: relative; overflow: hidden;
  border-radius: 14px; padding: 18px 17px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.section-tile::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,.6), transparent 55%);
  pointer-events: none;
}
.section-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.section-tile-crown {
  position: absolute; top: 10px; right: -30px;
  background: linear-gradient(120deg, var(--accent), var(--accent-dark));
  color: #fff; font-size: .62rem; font-weight: 800; letter-spacing: .03em;
  padding: 3px 34px; transform: rotate(38deg);
  box-shadow: 0 2px 6px rgba(217,142,31,.4);
}
.section-tile-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; position: relative; z-index: 1; }
.section-avatar {
  width: 38px; height: 38px; border-radius: 11px; color: #fff; font-weight: 800; font-size: .92rem;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-display);
}
.section-tile-pct {
  font-size: .7rem; font-weight: 700; color: var(--muted);
  background: var(--bg); padding: 3px 9px; border-radius: 999px;
}
.section-tile-name {
  font-weight: 700; color: var(--ink-800); font-size: .84rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  position: relative; z-index: 1;
  letter-spacing: .01em;
}
.section-tile-count {
  font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; color: var(--ink-900);
  margin-top: 3px; display: flex; align-items: baseline; gap: 6px;
  position: relative; z-index: 1;
}
.section-tile-count small { font-size: .66rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.section-tile-bar { margin-top: 12px; height: 7px; border-radius: 999px; background: var(--bg); overflow: hidden; position: relative; z-index: 1; }
.section-tile-bar span { display: block; height: 100%; border-radius: 999px; transition: width .6s cubic-bezier(.2,.7,.3,1); }

/* Refined, corporate-toned palette (navy / indigo / gold / slate / teal / plum) */
.section-tile-navy   { border-top-color: #2C4A9B; }
.section-tile-navy   .section-avatar { background: linear-gradient(135deg, #4A6FD1, #1B2F6B); }
.section-tile-navy   .section-tile-bar span { background: linear-gradient(90deg, #4A6FD1, #1B2F6B); }

.section-tile-indigo { border-top-color: #4338CA; }
.section-tile-indigo .section-avatar { background: linear-gradient(135deg, #6366F1, #3730A3); }
.section-tile-indigo .section-tile-bar span { background: linear-gradient(90deg, #6366F1, #3730A3); }

.section-tile-gold   { border-top-color: #D98E1F; }
.section-tile-gold   .section-avatar { background: linear-gradient(135deg, #F2A93B, #B9720F); }
.section-tile-gold   .section-tile-bar span { background: linear-gradient(90deg, #F2A93B, #B9720F); }

.section-tile-slate  { border-top-color: #475569; }
.section-tile-slate  .section-avatar { background: linear-gradient(135deg, #64748B, #334155); }
.section-tile-slate  .section-tile-bar span { background: linear-gradient(90deg, #64748B, #334155); }

.section-tile-teal   { border-top-color: #0F766E; }
.section-tile-teal   .section-avatar { background: linear-gradient(135deg, #2DD4BF, #0F766E); }
.section-tile-teal   .section-tile-bar span { background: linear-gradient(90deg, #2DD4BF, #0F766E); }

.section-tile-plum   { border-top-color: #86198F; }
.section-tile-plum   .section-avatar { background: linear-gradient(135deg, #C026D3, #701A75); }
.section-tile-plum   .section-tile-bar span { background: linear-gradient(90deg, #C026D3, #701A75); }

/* Dashboard table + badge polish */
.dash-table thead th {
  background: #F7F9FD; font-size: .72rem; letter-spacing: .04em;
}
.dash-table tbody tr { transition: background .15s ease; }
.dash-badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700;
  background: rgba(44,74,155,.08); color: var(--primary);
}

/* ---------------------------------------------------------------------- */
/* Buttons                                                                  */
/* ---------------------------------------------------------------------- */
.btn { border-radius: 10px; font-weight: 600; font-size: .9rem; letter-spacing: .01em; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease; }
.btn-sm { border-radius: 8px; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary-light), var(--primary) 60%, var(--primary-dark));
  border-color: var(--primary); box-shadow: 0 4px 14px rgba(44,74,155,.28);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-color: var(--primary-dark); box-shadow: 0 6px 18px rgba(44,74,155,.36); }
.btn-primary:focus, .btn:focus { box-shadow: 0 0 0 .2rem rgba(44, 74, 155, .25); }
.btn-success { background: linear-gradient(135deg, #22C55E, var(--success)); border-color: var(--success); box-shadow: 0 4px 14px rgba(22,163,74,.24); }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); }
.btn-outline-success:hover { background: var(--success); }
.btn:not(.sidebar-toggle-btn):hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* ---------------------------------------------------------------------- */
/* Universal single "Back" navigation button — premium pill style          */
/* Used across the app (e.g. Administration module) via .page-back-wrap    */
/* ---------------------------------------------------------------------- */
.page-back-wrap { margin: 0 0 18px; }
.page-back-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px 9px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--ink-800); font-weight: 600; font-size: .88rem; text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.page-back-btn:hover {
  color: #fff; background: var(--gradient-primary); border-color: var(--primary-dark);
  box-shadow: var(--shadow-md); transform: translateX(-2px) translateY(-1px);
}
.page-back-btn .pbb-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(44,74,155,.1); color: var(--primary);
  font-weight: 800; transition: background .15s ease, color .15s ease, transform .15s ease;
}
.page-back-btn:hover .pbb-ico { background: rgba(255,255,255,.18); color: #fff; transform: translateX(-2px); }

/* ---------------------------------------------------------------------- */
/* Forms                                                                    */
/* ---------------------------------------------------------------------- */
.form-label { font-weight: 600; font-size: .85rem; color: var(--ink-800); }
.form-control, .form-select {
  border-radius: 10px; border: 1px solid var(--border); padding: .55rem .8rem; font-size: .92rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary-light); box-shadow: 0 0 0 .2rem rgba(74, 111, 209, .18);
}

/* ---------------------------------------------------------------------- */
/* Tables                                                                   */
/* ---------------------------------------------------------------------- */
.table { border-color: var(--border); vertical-align: middle; }
.table thead th, .table thead.table-light th {
  background: #F0F3FB; color: var(--ink-800); font-weight: 700; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .04em; border-bottom: 2px solid var(--border);
}
.table-hover tbody tr:hover { background: #F4F7FE; }
.table-bordered { border: 1px solid var(--border); }
.table-bordered th, .table-bordered td { border-color: var(--border); }

/* ---------------------------------------------------------------------- */
/* Alerts & badges                                                          */
/* ---------------------------------------------------------------------- */
.alert { border-radius: var(--radius-sm); border: 1px solid transparent; border-left-width: 4px; }
.alert-success { border-left-color: var(--success); }
.alert-danger  { border-left-color: var(--danger); }
.alert-warning { border-left-color: var(--accent-dark); }
.alert-info    { border-left-color: var(--info); }
.badge { border-radius: 7px; font-weight: 600; }

/* ---------------------------------------------------------------------- */
/* Seat grid / seating chart                                               */
/* ---------------------------------------------------------------------- */
.seat-grid { display: inline-block; }
.seat-cell {
  width: 120px; height: 90px; border: 2px solid var(--border); display: inline-flex; flex-direction: column;
  align-items: center; justify-content: center; font-size: 22px; font-weight: 700; margin: 4px;
  border-radius: 10px; background: var(--surface);
}
.seat-empty { background: #F4F6FB; color: #A8B1C7; font-size: 14px; font-weight: 400; }

.seating-grid-wrap { overflow-x: auto; padding: 6px 0 16px; }
.seating-grid { display: inline-grid; gap: 10px; align-items: stretch; justify-items: stretch; margin: 0 auto; }
.seating-grid .corner-label { min-width: 90px; }
.seating-grid .col-label,
.seating-grid .row-label {
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; color: var(--ink-800); text-transform: uppercase; letter-spacing: .04em;
}
.seating-grid .row-label { justify-content: flex-end; padding-right: 10px; min-width: 90px; text-align: right; }
.seating-grid .seat-cell {
  width: auto; height: 90px; min-width: 130px; margin: 0;
  border: 2px solid var(--primary); border-radius: 10px; background: linear-gradient(160deg, #fff, #F3F6FE);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 800; letter-spacing: .02em; color: var(--ink-900);
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease;
}
.seating-grid .seat-cell:hover { transform: translateY(-2px); }
.seating-grid .seat-cell.seat-empty {
  border-style: dashed; border-color: #C7CCD4; background: #F7F8FA; color: #AAB0BB; font-size: 14px; font-weight: 500;
  box-shadow: none;
}

/* ---------------------------------------------------------------------- */
/* Administration module — premium shared styles                           */
/* (single source of truth, used by admin/index.php, settings.php,         */
/*  lookups.php, labels.php, activity_log.php)                             */
/* ---------------------------------------------------------------------- */
.admin-wrap, .activity-wrap { max-width: 1400px; margin: 0 auto; padding: 8px 0 30px; }
.admin-hero, .activity-hero {
  position: relative; overflow: hidden;
  background: var(--gradient-hero);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  color: #fff;
  margin-bottom: 26px;
  box-shadow: var(--shadow-lg);
}
.admin-hero::before, .activity-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(420px 220px at 100% -20%, rgba(242,169,59,.28), transparent 60%),
    radial-gradient(360px 200px at -10% 120%, rgba(74,111,209,.35), transparent 60%);
}
.admin-hero h1, .activity-hero h1 { font-weight: 800; margin: 0 0 8px; font-size: 28px; position: relative; }
.admin-hero p, .activity-hero p { margin: 0; opacity: .85; position: relative; max-width: 640px; }

.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.admin-card {
  background: var(--gradient-surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 26px; min-height: 190px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative; overflow: hidden;
}
.admin-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--gradient-accent); opacity: 0; transition: opacity .2s ease;
}
.admin-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #d7dfef; }
.admin-card:hover::before { opacity: 1; }
.admin-icon {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #eef2ff, #e2e9fb); margin-bottom: 18px;
  box-shadow: inset 0 0 0 1px rgba(44,74,155,.08);
  position: relative;
}
.admin-icon::before { content: ""; width: 18px; height: 18px; border-radius: 6px; }
.admin-icon-navy::before { background: linear-gradient(135deg, #4A6FD1, #1B2F6B); }
.admin-icon-teal::before { background: linear-gradient(135deg, #2DD4BF, #0F766E); }
.admin-icon-gold::before { background: linear-gradient(135deg, #F2A93B, #B9720F); }
.admin-icon-plum::before { background: linear-gradient(135deg, #C026D3, #701A75); }
.admin-card h3 { font-size: 19px; color: var(--ink-900); margin: 0 0 8px; font-weight: 800; font-family: var(--font-display); }
.admin-card p { color: var(--muted); margin: 0; line-height: 1.55; font-size: .92rem; }
.admin-link { display: block; text-decoration: none; color: inherit; }

.admin-section, .activity-filter, .activity-table {
  background: var(--surface); border-radius: 16px; border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.admin-section-head {
  padding: 20px 26px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; gap: 15px;
}
.admin-section-head h2 { margin: 0; color: var(--ink-900); font-weight: 800; font-size: 21px; }
.admin-section-body, .activity-filter { padding: 26px; }
.admin-form-label, .activity-filter .form-label { font-weight: 700; color: var(--ink-800); margin-bottom: 7px; font-size: .85rem; }
.admin-input { border-radius: 10px !important; border: 1px solid var(--border) !important; min-height: 44px; }
.admin-input:focus { border-color: var(--primary-light) !important; box-shadow: 0 0 0 .2rem rgba(74,111,209,.16) !important; }
.admin-btn { border: 0; border-radius: 10px; padding: 11px 20px; font-weight: 700; }
.admin-btn-primary { background: linear-gradient(135deg, var(--primary-light), var(--primary-dark)); color: #fff; box-shadow: 0 4px 14px rgba(44,74,155,.28); }
.admin-btn-primary:hover { filter: brightness(1.06); color: #fff; }

.admin-table, .activity-table table { margin: 0; }
.admin-table thead th, .activity-table th {
  background: #F0F3FB; color: var(--ink-800); font-weight: 800; border-bottom: 0; padding: 14px;
  text-transform: uppercase; letter-spacing: .03em; font-size: .74rem; white-space: nowrap;
}
.admin-table tbody td, .activity-table td, .activity-table th { padding: 13px 14px; vertical-align: middle; }
.admin-badge, .activity-badge {
  display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700;
}
.admin-badge-active, .activity-success { background: #E8F7EE; color: #18794E; }
.admin-badge-inactive, .activity-failed { background: #FEF0F0; color: #B42318; }

/* Activity Log table: full-detail visibility, no data cut off ------------- */
/* The card keeps overflow:hidden (above) only for its own rounded corners.
   Horizontal scrolling itself lives on this INNER wrapper so a wide table
   scrolls smoothly instead of being clipped by the card's rounded-corner rule. */
.activity-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.activity-log-table { min-width: 1080px; width: 100%; }
.activity-row { cursor: pointer; }
.activity-row:focus-visible { outline: 2px solid var(--primary-light); outline-offset: -2px; }
.activity-desc-cell { max-width: 320px; white-space: normal; word-break: break-word; vertical-align: top; }
.activity-desc-text {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.4;
}
.activity-view-more {
  display: inline-block; margin-top: 4px; border: 0; background: none; padding: 0;
  color: var(--primary-light); font-weight: 700; font-size: .8rem; cursor: pointer;
}
.activity-view-more:hover { text-decoration: underline; }
.activity-detail-list { display: grid; grid-template-columns: 160px 1fr; row-gap: 14px; column-gap: 16px; margin: 0; }
.activity-detail-list dt { font-weight: 700; color: var(--ink-800); }
.activity-detail-list dd { margin: 0; color: var(--ink-900); word-break: break-word; }
.activity-detail-desc { white-space: pre-wrap; }

@media (max-width: 700px) {
  .activity-detail-list { grid-template-columns: 1fr; row-gap: 4px; }
  .activity-detail-list dt { margin-top: 10px; }
}

@media (max-width: 700px) {
  .admin-hero, .activity-hero { padding: 22px; }
  .admin-section-body, .activity-filter { padding: 16px; }
  .admin-section-head { padding: 18px; display: block; }
  .admin-section-head .btn { margin-top: 12px; }
}

/* ---------------------------------------------------------------------- */
/* Responsive                                                               */
/* ---------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .sidebar {
    position: fixed; left: 0; top: 60px; bottom: 0; z-index: 1040;
    transform: translateX(-102%); transition: transform .22s ease;
    overflow-y: auto; box-shadow: var(--shadow-lg);
  }
  .sidebar.show { transform: translateX(0); }
  .main-content { padding: 1.2rem !important; }
  .navbar-brand .brand-sub { display: none; }
}

@media (max-width: 575.98px) {
  .navbar-brand { font-size: .92rem; gap: 6px; }
  .navbar-brand .brand-mark { width: 28px; height: 28px; font-size: 14px; }
  .admin-chip { display: none; }
  .main-content { padding: .9rem !important; }
  .card-body { padding: 1rem !important; }
  h4.mb-3, h4.mb-4 { font-size: 1.15rem; }
  .btn { font-size: .85rem; }
  .table { font-size: .84rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------------------------------------------------------------------- */
/* Room Builder — attractive Rows x Columns input with live seat preview   */
/* ---------------------------------------------------------------------- */
.room-builder {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gradient-surface);
}
.room-builder-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: flex-end;
  padding: 20px 22px;
  border-bottom: 1px dashed var(--border);
}
.rb-field { display: flex; flex-direction: column; min-width: 140px; }
.rb-field .form-label { font-weight: 600; font-size: .85rem; margin-bottom: 6px; }
.rb-stepper {
  display: flex; align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}
.rb-step-btn {
  width: 38px; height: 42px; flex-shrink: 0;
  border: none;
  background: var(--bg);
  color: var(--primary-dark);
  font-size: 18px; font-weight: 700;
  cursor: pointer;
  transition: background .15s ease;
}
.rb-step-btn:hover { background: var(--primary-light); color: #fff; }
.rb-step-btn:active { transform: scale(.94); }
.rb-input {
  border: none !important;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  width: 64px;
  box-shadow: none !important;
  border-radius: 0 !important;
  -moz-appearance: textfield;
}
.rb-input::-webkit-outer-spin-button, .rb-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rb-capacity {
  display: flex; align-items: center; gap: 12px;
  margin-left: auto;
  padding: 10px 20px;
  border-radius: 14px;
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.rb-capacity-num { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; line-height: 1; }
.rb-capacity-label { font-size: .72rem; font-weight: 600; opacity: .9; line-height: 1.3; }
.rb-capacity-label span { font-weight: 400; opacity: .75; }

.room-builder-preview { padding: 20px 22px 24px; }
.rb-preview-label { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 12px; }
.rb-preview-scaled { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--accent-dark); }
.rb-preview-grid {
  display: grid;
  gap: 5px;
  max-height: 260px;
  overflow: auto;
  padding: 4px;
}
.rb-seat {
  aspect-ratio: 1 / 1;
  min-width: 14px;
  border-radius: 4px;
  background: linear-gradient(150deg, var(--primary-light), var(--primary));
  box-shadow: 0 1px 2px rgba(15,27,61,.15);
  animation: seatPop .3s ease both;
}
@keyframes seatPop { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: scale(1); } }

@media (max-width: 640px) {
  .room-builder-controls { flex-direction: column; align-items: stretch; }
  .rb-capacity { margin-left: 0; justify-content: center; }
}

/* ---------------------------------------------------------------------- */
/* Dashboard hero banner + due badges                                       */
/* ---------------------------------------------------------------------- */
.dash-hero {
  position: relative;
  display: flex; flex-wrap: wrap; gap: 20px;
  align-items: center; justify-content: space-between;
  padding: 28px 30px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(700px 300px at 100% -20%, rgba(242,169,59,.25), transparent 60%),
    radial-gradient(600px 400px at -10% 120%, rgba(74,111,209,.28), transparent 55%),
    linear-gradient(120deg, var(--ink-900), var(--primary-dark) 55%, var(--primary) 130%);
  color: #fff;
  animation: statPop .45s cubic-bezier(.2,.7,.3,1.15) both;
}
.dash-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(circle at 85% 20%, black, transparent 70%);
  pointer-events: none;
}
.dash-hero-text { position: relative; z-index: 1; min-width: 260px; }
.dash-hero-greeting { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; }
.dash-hero-date { font-size: .85rem; color: rgba(255,255,255,.75); font-weight: 500; margin-top: 2px; }
.dash-hero-sub { font-size: .9rem; color: rgba(255,255,255,.85); margin: 10px 0 0; max-width: 420px; }
.dash-hero-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; }
.dash-quick-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(4px);
  color: #fff; text-decoration: none;
  font-weight: 600; font-size: .85rem;
  transition: background .15s ease, transform .15s ease;
}
.dash-quick-btn:hover { background: rgba(255,255,255,.22); color: #fff; transform: translateY(-2px); }
.dqb-ico { display: inline-block; width: 9px; height: 9px; border-radius: 3px; }
.dqb-ico-gold  { background: linear-gradient(135deg, #F2A93B, #D98E1F); }
.dqb-ico-plum  { background: linear-gradient(135deg, #E9A6F0, #C026D3); }
.dqb-ico-slate { background: linear-gradient(135deg, #CBD5E1, #94A3B8); }
.dqb-ico-teal  { background: linear-gradient(135deg, #5EEAD4, #2DD4BF); }

.dash-due {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.dash-due-today { background: rgba(228,87,46,.14); color: var(--danger); }
.dash-due-soon  { background: rgba(242,169,59,.16); color: var(--accent-dark); }
.dash-due-later { background: rgba(44,74,155,.1); color: var(--primary); }

@media (max-width: 700px) {
  .dash-hero { padding: 22px; }
  .dash-hero-actions { width: 100%; }
  .dash-quick-btn { flex: 1 1 calc(50% - 10px); justify-content: center; }
}

/* ---------------------------------------------------------------------- */
/* Print (unchanged behaviour, kept intact)                                 */
/* ---------------------------------------------------------------------- */
@media print {
  .no-print { display:none !important; }
  .sidebar, .topbar, .sidebar-backdrop { display:none !important; }
  .main-content { width:100% !important; margin:0 !important; padding:0 !important; }
  .seat-cell { width:90px !important; height:65px !important; font-size:16px !important; margin:2px !important;
    break-inside: avoid; page-break-inside: avoid; }
  .seat-row { break-inside: avoid; page-break-inside: avoid; }
  .seating-grid .seat-cell { height:70px !important; min-width:100px !important; font-size:16px !important; }
  .seating-grid { gap:6px !important; }
  .card { border:none !important; box-shadow:none !important; }
}
@page {
  margin: 8mm;
}
