/* ============================================================
   F.A Silai Center Management System — Global Stylesheet
   Design: Modern Banking / Notion / Linear inspired
   ============================================================ */

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

/* ── Design Tokens ──────────────────────────────────────────── */
:root {
  --bg:          #FCFBF8;
  --card:        #FFFFFF;
  --sidebar-bg:  #F8F4EE;
  --sidebar-border: #EDE8E0;
  --primary:     #B76E5D;
  --primary-dark:#9B5847;
  --primary-light:#F5E6E1;
  --secondary:   #D9B382;
  --secondary-light: #FAF3E7;
  --success:     #4C8C6A;
  --success-light:#E8F5EE;
  --danger:      #D96C6C;
  --danger-light:#FDEAEA;
  --warning:     #D9A84E;
  --warning-light:#FDF5E4;
  --info:        #5B8DB8;
  --info-light:  #EBF3FB;
  --text:        #2B2B2B;
  --text-muted:  #7A7069;
  --text-light:  #A89E94;
  --border:      #ECE7DF;
  --border-light:#F5F0EB;
  --shadow-sm:   0 1px 3px rgba(183,110,93,0.08);
  --shadow-md:   0 4px 16px rgba(183,110,93,0.10);
  --shadow-lg:   0 8px 32px rgba(183,110,93,0.14);
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --sidebar-w:   260px;
  --transition:  all 0.2s ease;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 15px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; display: block; }

/* ── Login Page ─────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
  background: var(--bg);
}

.login-left {
  flex: 1;
  background: linear-gradient(135deg, #F5E6E1 0%, #FAF3E7 50%, #F0EAF4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.login-left::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(183,110,93,0.12) 0%, transparent 70%);
  top: -100px; right: -100px;
  border-radius: 50%;
}

.login-left::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(217,179,130,0.15) 0%, transparent 70%);
  bottom: -80px; left: -80px;
  border-radius: 50%;
}

.login-illustration {
  text-align: center;
  position: relative;
  z-index: 1;
}

.login-illustration .big-icon {
  font-size: 8rem;
  line-height: 1;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 8px 24px rgba(183,110,93,0.2));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.login-illustration h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.login-illustration p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 320px;
  margin: 0 auto;
}

.login-right {
  width: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem;
  background: var(--card);
  box-shadow: -8px 0 40px rgba(43,43,43,0.06);
}

.login-card {
  width: 100%;
  max-width: 400px;
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.login-logo .logo-mark {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: white;
  box-shadow: var(--shadow-sm);
}

.login-logo .logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.login-logo .logo-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

.login-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.login-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* Center Aligned Login Styles */
.login-centered-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #F5E6E1 0%, #FCFBF8 40%, #FAF3E7 100%);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.login-centered-wrapper::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(183,110,93,0.08) 0%, transparent 70%);
  top: -200px; right: -200px;
  border-radius: 50%;
}

.login-centered-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 48px rgba(43,43,43,0.10);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
}

.login-centered-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 99px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

/* ── Form Elements ───────────────────────────────────────────── */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}

.form-label .required { color: var(--danger); margin-left: 2px; }

.form-control, .form-select {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
  appearance: none;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(183,110,93,0.12);
}

.form-control::placeholder { color: var(--text-light); }

.form-control.is-invalid { border-color: var(--danger); }
.form-control.is-valid   { border-color: var(--success); }

.input-icon-wrap {
  position: relative;
}

.input-icon-wrap .form-control { padding-left: 2.6rem; }

.input-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 1rem;
  pointer-events: none;
}

textarea.form-control { resize: vertical; min-height: 100px; }

.form-text { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.3rem; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #C97E6D);
  color: white;
  box-shadow: 0 2px 8px rgba(183,110,93,0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  box-shadow: 0 4px 16px rgba(183,110,93,0.35);
  transform: translateY(-1px);
  color: white;
}

.btn-secondary {
  background: var(--secondary-light);
  color: var(--primary-dark);
  border: 1.5px solid var(--secondary);
}
.btn-secondary:hover {
  background: var(--secondary);
  color: white;
}

.btn-success {
  background: var(--success);
  color: white;
  box-shadow: 0 2px 8px rgba(76,140,106,0.3);
}
.btn-success:hover { background: #3d7358; color: white; }

.btn-danger {
  background: var(--danger);
  color: white;
}
.btn-danger:hover { background: #c05858; color: white; }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
}
.btn-outline:hover {
  background: var(--bg);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-light {
  background: var(--bg);
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-light:hover { background: var(--primary-light); color: var(--primary); }

.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.82rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

.btn-icon {
  width: 36px; height: 36px;
  padding: 0;
  justify-content: center;
  border-radius: var(--radius-sm);
}

/* ── App Layout ─────────────────────────────────────────────── */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ─────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 100;
  overflow-y: auto;
  transition: var(--transition);
}

.sidebar-brand {
  padding: 1.4rem 1.4rem 1rem;
  border-bottom: 1px solid var(--sidebar-border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-brand .brand-mark {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: white;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.sidebar-brand .brand-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.sidebar-brand .brand-role {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sidebar-nav {
  flex: 1;
  padding: 0.75rem 0.75rem;
}

.sidebar-section {
  margin-bottom: 0.5rem;
}

.sidebar-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  padding: 0.75rem 0.75rem 0.3rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  text-decoration: none;
}

.sidebar-link:hover {
  background: rgba(183,110,93,0.08);
  color: var(--primary);
}

.sidebar-link.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 3px;
  background: var(--primary);
  border-radius: 0 2px 2px 0;
}

.sidebar-link .nav-icon { font-size: 1rem; width: 20px; text-align: center; flex-shrink: 0; }

.sidebar-link .nav-badge {
  margin-left: auto;
  background: var(--danger);
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 99px;
  min-width: 18px;
  text-align: center;
}

/* Submenu */
.sidebar-submenu {
  padding-left: 1.5rem;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.sidebar-submenu.open { max-height: 400px; }

.sidebar-submenu .sidebar-link {
  font-size: 0.84rem;
  padding: 0.45rem 0.75rem;
}

.sidebar-toggle-btn {
  margin-left: auto;
  transition: transform 0.25s ease;
  font-size: 0.75rem;
  color: var(--text-light);
}

.sidebar-link.has-submenu.open .sidebar-toggle-btn {
  transform: rotate(180deg);
}

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid var(--sidebar-border);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.sidebar-user .user-avatar {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; color: white; font-weight: 600;
  flex-shrink: 0;
}

.sidebar-user .user-info .user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.sidebar-user .user-info .user-role {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: capitalize;
}

/* ── Main Content ─────────────────────────────────────────────── */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Topbar ──────────────────────────────────────────────────── */
.topbar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.topbar-left {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.page-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  list-style: none;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: '/';
  margin-right: 0.4rem;
  color: var(--border);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topbar-search {
  position: relative;
}

.topbar-search input {
  width: 220px;
  padding: 0.45rem 0.85rem 0.45rem 2.2rem;
  border: 1.5px solid var(--border);
  border-radius: 99px;
  background: var(--bg);
  font-size: 0.85rem;
  color: var(--text);
  outline: none;
  transition: var(--transition);
  font-family: inherit;
}

.topbar-search input:focus {
  width: 280px;
  border-color: var(--primary);
  background: var(--card);
}

.topbar-search .search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 0.85rem;
  pointer-events: none;
}

.search-results-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 200;
  max-height: 280px;
  overflow-y: auto;
}

.search-results-dropdown.show { display: block; }

.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
  cursor: pointer;
  color: var(--text);
}

.search-result-item:hover { background: var(--bg); color: var(--primary); }
.search-result-item:last-child { border-bottom: none; }

.notif-btn {
  position: relative;
  width: 38px; height: 38px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: var(--transition);
}

.notif-btn:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }

.notif-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--danger);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: 99px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
}

/* ── Page Body ────────────────────────────────────────────────── */
.page-body {
  padding: 1.75rem;
  flex: 1;
}

/* ── Alert / Flash Messages ──────────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  animation: slideDown 0.3s ease;
}

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

.alert-success { background: var(--success-light); color: var(--success); border-left: 3px solid var(--success); }
.alert-danger  { background: var(--danger-light);  color: var(--danger);  border-left: 3px solid var(--danger); }
.alert-warning { background: var(--warning-light); color: var(--warning); border-left: 3px solid var(--warning); }
.alert-info    { background: var(--info-light);    color: var(--info);    border-left: 3px solid var(--info); }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-body { padding: 1.25rem; }

.card-footer {
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

/* ── Stat Cards ──────────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient, linear-gradient(90deg, var(--primary), var(--secondary)));
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.stat-icon.primary   { background: var(--primary-light);  color: var(--primary); }
.stat-icon.success   { background: var(--success-light);  color: var(--success); }
.stat-icon.danger    { background: var(--danger-light);   color: var(--danger); }
.stat-icon.warning   { background: var(--warning-light);  color: var(--warning); }
.stat-icon.secondary { background: var(--secondary-light);color: var(--primary-dark); }
.stat-icon.info      { background: var(--info-light);     color: var(--info); }

.stat-content .stat-value {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-content .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  font-weight: 500;
}

/* ── Tables ──────────────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; }

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.table th {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
  background: var(--bg);
}

.table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
  vertical-align: middle;
}

.table tbody tr { transition: var(--transition); }
.table tbody tr:hover { background: rgba(183,110,93,0.03); }
.table tbody tr:last-child td { border-bottom: none; }

/* ── Badges ──────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-success { background: var(--success-light); color: var(--success); }
.badge-danger  { background: var(--danger-light);  color: var(--danger); }
.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge-info    { background: var(--info-light);    color: var(--info); }
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-muted   { background: var(--bg);            color: var(--text-muted); border: 1px solid var(--border); }

/* ── Grid & Flex Utilities ───────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.col-span-2 { grid-column: span 2; }

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* ── Spacing Utilities ───────────────────────────────────────── */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-auto { margin-top: auto; }
.ms-auto { margin-left: auto; }

/* ── Text Utilities ──────────────────────────────────────────── */
.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-danger  { color: var(--danger)  !important; }
.text-warning { color: var(--warning) !important; }
.text-muted   { color: var(--text-muted) !important; }
.text-small   { font-size: 0.82rem; }
.text-mono    { font-family: monospace; }
.fw-600       { font-weight: 600; }
.fw-700       { font-weight: 700; }

/* ── Student Profile Card ────────────────────────────────────── */
.student-profile-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.student-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: white;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
  border: 3px solid white;
  box-shadow: var(--shadow-md);
}

.student-avatar img { width: 100%; height: 100%; object-fit: cover; }

.student-name { font-size: 1.3rem; font-weight: 700; color: var(--text); }
.student-meta { font-size: 0.85rem; color: var(--text-muted); }

/* ── Fee Status Indicator ────────────────────────────────────── */
.fee-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
}

.fee-status.paid    { background: var(--success-light); color: var(--success); }
.fee-status.pending { background: var(--warning-light); color: var(--warning); }
.fee-status.overdue { background: var(--danger-light);  color: var(--danger); }

/* ── Attendance Cards ────────────────────────────────────────── */
.attendance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
}

.attendance-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: var(--transition);
  cursor: pointer;
}

.attendance-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }

.attendance-card.is-absent {
  border-color: var(--danger);
  background: var(--danger-light);
}

.attendance-card .student-initials {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700;
  flex-shrink: 0;
}

.attendance-card.is-absent .student-initials {
  background: var(--danger);
}

.attendance-card .student-info .s-name { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.attendance-card .student-info .s-batch { font-size: 0.76rem; color: var(--text-muted); }

.absence-toggle {
  margin-left: auto;
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 2px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
  font-size: 0.7rem;
  color: transparent;
}

.attendance-card.is-absent .absence-toggle {
  background: var(--danger);
  border-color: var(--danger);
  color: white;
}

/* ── Receipt ─────────────────────────────────────────────────── */
.receipt {
  max-width: 560px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.receipt-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 1.5rem;
  text-align: center;
}

.receipt-header h2 { font-size: 1.3rem; font-weight: 700; }
.receipt-header p  { font-size: 0.85rem; opacity: 0.85; }
.receipt-number    { font-size: 0.8rem; opacity: 0.75; margin-top: 0.4rem; }

.receipt-body { padding: 1.5rem; }

.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.9rem;
}

.receipt-row:last-child { border-bottom: none; }
.receipt-row .label { color: var(--text-muted); }
.receipt-row .value { font-weight: 600; color: var(--text); }

.receipt-total {
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.receipt-total .label { font-weight: 600; color: var(--primary-dark); font-size: 0.95rem; }
.receipt-total .value { font-size: 1.4rem; font-weight: 700; color: var(--primary); }

.receipt-footer {
  background: var(--bg);
  padding: 1rem 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* ── Friday Holiday Banner ───────────────────────────────────── */
.holiday-banner {
  background: linear-gradient(135deg, var(--warning-light), #FFF8E6);
  border: 1.5px solid var(--warning);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
}

.holiday-banner .holiday-icon { font-size: 3rem; margin-bottom: 1rem; }
.holiday-banner h3 { font-size: 1.3rem; font-weight: 700; color: var(--warning); margin-bottom: 0.4rem; }
.holiday-banner p  { color: var(--text-muted); }

/* ── Charts Section ──────────────────────────────────────────── */
.charts-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

/* ── Timeline ────────────────────────────────────────────────── */
.timeline { position: relative; padding-left: 1.5rem; }

.timeline::before {
  content: '';
  position: absolute;
  left: 0.6rem; top: 0; bottom: 0;
  width: 1.5px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 1.25rem;
  padding-left: 0.75rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -0.65rem;
  top: 0.35rem;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--card);
  box-shadow: 0 0 0 2px var(--primary);
}

.timeline-time { font-size: 0.75rem; color: var(--text-light); margin-bottom: 0.2rem; }
.timeline-text { font-size: 0.88rem; color: var(--text); }
.timeline-text b { color: var(--primary); }

/* ── Pagination ──────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  list-style: none;
}

.page-item .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text);
  transition: var(--transition);
}

.page-item .page-link:hover { border-color: var(--primary); color: var(--primary); }
.page-item.active .page-link { background: var(--primary); color: white; border-color: var(--primary); }
.page-item.disabled .page-link { opacity: 0.4; pointer-events: none; }

/* ── Filter Bar ──────────────────────────────────────────────── */
.filter-bar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.filter-bar select, .filter-bar input {
  padding: 0.45rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: var(--transition);
}

.filter-bar select:focus, .filter-bar input:focus {
  border-color: var(--primary);
  background: var(--card);
}

/* ── Empty State ─────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
}

.empty-state .empty-icon { font-size: 3.5rem; margin-bottom: 1rem; opacity: 0.4; }
.empty-state h3 { font-size: 1.1rem; font-weight: 600; color: var(--text); margin-bottom: 0.4rem; }
.empty-state p  { color: var(--text-muted); font-size: 0.9rem; }

/* ── Divider ──────────────────────────────────────────────────── */
hr.divider { border: none; border-top: 1px solid var(--border); margin: 1.25rem 0; }

/* ── Info Rows ───────────────────────────────────────────────── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.info-row { display: flex; flex-direction: column; gap: 0.15rem; }
.info-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-light); }
.info-value { font-size: 0.92rem; font-weight: 500; color: var(--text); }

/* ── Percentage Ring ─────────────────────────────────────────── */
.percent-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
  border: 4px solid;
}

.percent-ring.high   { border-color: var(--success); color: var(--success); background: var(--success-light); }
.percent-ring.medium { border-color: var(--warning); color: var(--warning); background: var(--warning-light); }
.percent-ring.low    { border-color: var(--danger);  color: var(--danger);  background: var(--danger-light); }

/* ── Sidebar Mobile Toggle ───────────────────────────────────── */
.sidebar-toggle {
  display: none;
  width: 36px; height: 36px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  font-size: 1.1rem;
}



.text-center {
  text-align: center !important;
}

/* Custom responsive grids */
.grid-split {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1.5rem;
}
.grid-form-inline {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr auto;
  gap: 1rem;
  align-items: end;
}
.filter-grid {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
}

/* ── Print Styles ─────────────────────────────────────────────── */
@media print {
  .sidebar, .topbar, .btn, .filter-bar, .no-print { display: none !important; }
  .main-content { margin-left: 0 !important; }
  .receipt { border: 1px solid #ccc; box-shadow: none; }
  body { background: white; }
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .charts-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }

  .sidebar {
    transform: translateX(-100%);
    width: 260px;
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-lg);
  }

  .main-content { margin-left: 0; }

  .sidebar-toggle { display: flex; }

  .login-left { display: none; }
  .login-right { width: 100%; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .attendance-grid { grid-template-columns: 1fr; }
  .charts-grid { grid-template-columns: 1fr; }

  .page-body { padding: 1rem; }
  .topbar-search { display: none; }

  /* Ensure date picker is on the next line below the title text on mobile */
  .attendance-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 0.75rem !important;
    width: 100% !important;
  }
  .attendance-header h2 {
    font-size: 1.15rem !important;
    white-space: normal !important;
  }
  .attendance-header form {
    margin-left: 0 !important;
    width: 100% !important;
  }
  .attendance-header form input[type="date"] {
    width: 100% !important;
  }

  /* Hide the daily attendance tip card on mobile */
  .attendance-tip {
    display: none !important;
  }

  /* Transform tables into cards */
  .table-wrapper {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  .table-responsive {
    border: none !important;
  }
  .table {
    display: block !important;
    width: 100% !important;
  }
  .table thead {
    display: none !important;
  }
  .table tbody, .table tfoot {
    display: block !important;
    width: 100% !important;
  }
  .table tr {
    display: block !important;
    width: 100% !important;
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
    padding: 1rem !important;
    margin-bottom: 1rem !important;
    box-shadow: var(--shadow-sm) !important;
    box-sizing: border-box !important;
  }
  .table td {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.6rem 0 !important;
    border-top: none !important;
    border-bottom: 1px dashed var(--border-light) !important;
    text-align: right !important;
    width: 100% !important;
    box-sizing: border-box !important;
    font-size: 0.9rem !important;
  }
  .table td:last-child {
    border-bottom: none !important;
    justify-content: flex-end !important;
  }
  .table td::before {
    content: "";
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    float: left;
    text-align: left;
  }
  .table td.text-center::before {
    display: none !important;
    content: none !important;
  }
  .col-span-2 {
    grid-column: span 1 !important;
  }

  /* Table Specific Labels (Fallback Tables) */
  .table-attendance-history td:nth-child(1)::before { content: "Date"; }
  .table-attendance-history td:nth-child(2)::before { content: "Present"; }
  .table-attendance-history td:nth-child(3)::before { content: "Absent"; }
  .table-attendance-history td:nth-child(4)::before { content: "Status"; }
  .table-attendance-history td:nth-child(5)::before { content: "Action"; }

  .table-attendance-student td:nth-child(1)::before { content: "Date"; }
  .table-attendance-student td:nth-child(2)::before { content: "Day"; }
  .table-attendance-student td:nth-child(3)::before { content: "Status"; }
  .table-attendance-student td:nth-child(4)::before { content: "Remarks"; }

  .table-staff td:nth-child(1)::before { content: "Name / Username"; }
  .table-staff td:nth-child(2)::before { content: "Role"; }
  .table-staff td:nth-child(3)::before { content: "Contact"; }
  .table-staff td:nth-child(4)::before { content: "Status"; }
  .table-staff td:nth-child(5)::before { content: "Last Login"; }
  .table-staff td:nth-child(6)::before { content: "Action"; }

  .table-defaulters td:nth-child(1)::before { content: "Student"; }
  .table-defaulters td:nth-child(2)::before { content: "Admission No"; }
  .table-defaulters td:nth-child(3)::before { content: "Contact"; }
  .table-defaulters td:nth-child(4)::before { content: "Overdue"; }
  .table-defaulters td:nth-child(5)::before { content: "Outstanding"; }

  .table-student-payments td:nth-child(1)::before { content: "Cycle Period"; }
  .table-student-payments td:nth-child(2)::before { content: "Status"; }
  .table-student-payments td:nth-child(3)::before { content: "Receipt"; }
  .table-student-payments td:nth-child(4)::before { content: "Date Paid"; }

  .table-other-payments td:nth-child(1)::before { content: "Receipt"; }
  .table-other-payments td:nth-child(2)::before { content: "Date"; }
  .table-other-payments td:nth-child(3)::before { content: "Type"; }
  .table-other-payments td:nth-child(4)::before { content: "Amount"; }


  /* ── Custom High-End Mobile Layouts ── */

  /* 1. Daily Attendance Marking: Clean Row Layout */
  .table-attendance-daily {
    display: block !important;
  }
  .table-attendance-daily tr {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.85rem 1rem !important;
    margin-bottom: 0.75rem !important;
    gap: 1rem !important;
  }
  .table-attendance-daily td {
    border: none !important;
    padding: 0 !important;
    display: block !important;
    width: auto !important;
  }
  .table-attendance-daily td::before {
    display: none !important;
  }
  .table-attendance-daily td:nth-child(1) {
    flex: 1 !important;
    text-align: left !important;
  }
  .table-attendance-daily td:nth-child(2) {
    display: none !important;
  }
  .table-attendance-daily td:nth-child(3) {
    display: flex !important;
    justify-content: flex-end !important;
  }

  /* 2. Students List: Clean Profile Card Layout */
  .table-students {
    display: block !important;
  }
  .table-students tr {
    display: flex !important;
    flex-direction: column !important;
    padding: 1.25rem 1rem !important;
    position: relative !important;
    gap: 0.6rem !important;
  }
  .table-students td {
    border: none !important;
    padding: 0 !important;
    display: block !important;
    width: auto !important;
    text-align: left !important;
  }
  .table-students td::before {
    display: none !important;
  }
  .table-students td:nth-child(2) {
    width: 100% !important;
  }
  .table-students td:nth-child(4) {
    position: absolute !important;
    top: 1.25rem !important;
    right: 1rem !important;
  }
  .table-students td:nth-child(1) {
    display: inline-flex !important;
    font-size: 0.85rem !important;
    color: var(--text-muted) !important;
  }
  .table-students td:nth-child(1)::before {
    content: "ID: " !important;
    display: inline !important;
    font-weight: 600 !important;
  }
  .table-students td:nth-child(3) {
    display: inline-flex !important;
    font-size: 0.85rem !important;
    color: var(--text) !important;
  }
  .table-students td:nth-child(3)::before {
    content: "📞 " !important;
    display: inline !important;
  }
  .table-students td:nth-child(5) {
    border-top: 1px solid var(--border-light) !important;
    padding-top: 0.75rem !important;
    margin-top: 0.25rem !important;
    display: flex !important;
    justify-content: flex-end !important;
    width: 100% !important;
  }

  /* 3. Pending Fees: Clean Collection Card Layout */
  .table-pending {
    display: block !important;
  }
  .table-pending tr {
    display: flex !important;
    flex-direction: column !important;
    padding: 1.25rem 1rem !important;
    position: relative !important;
    gap: 0.6rem !important;
  }
  .table-pending td {
    border: none !important;
    padding: 0 !important;
    display: block !important;
    width: auto !important;
    text-align: left !important;
  }
  .table-pending td::before {
    display: none !important;
  }
  .table-pending td:nth-child(1) {
    width: calc(100% - 100px) !important;
  }
  .table-pending td:nth-child(5) {
    position: absolute !important;
    top: 1.25rem !important;
    right: 1rem !important;
    text-align: right !important;
  }
  .table-pending td:nth-child(2) {
    display: inline-flex !important;
    font-size: 0.85rem !important;
    color: var(--text-muted) !important;
  }
  .table-pending td:nth-child(2)::before {
    content: "📞 " !important;
    display: inline !important;
  }
  .table-pending td:nth-child(3) {
    display: inline-flex !important;
    font-size: 0.85rem !important;
  }
  .table-pending td:nth-child(3)::before {
    content: "Overdue: " !important;
    font-weight: 600 !important;
  }
  .table-pending td:nth-child(4) {
    display: inline-flex !important;
    font-size: 0.85rem !important;
    color: var(--text-muted) !important;
    margin-left: 0.75rem !important;
  }
  .table-pending td:nth-child(4)::before {
    content: "Fee: " !important;
    font-weight: 600 !important;
  }
  .table-pending td:nth-child(6) {
    border-top: 1px solid var(--border-light) !important;
    padding-top: 0.75rem !important;
    margin-top: 0.25rem !important;
    display: flex !important;
    justify-content: flex-end !important;
    width: 100% !important;
  }

  /* 4. Payment History: Clean Receipt Card Layout */
  .table-payments {
    display: block !important;
  }
  .table-payments tr {
    display: flex !important;
    flex-direction: column !important;
    padding: 1.25rem 1rem !important;
    position: relative !important;
    gap: 0.6rem !important;
  }
  .table-payments td {
    border: none !important;
    padding: 0 !important;
    display: block !important;
    width: auto !important;
    text-align: left !important;
  }
  .table-payments td::before {
    display: none !important;
  }
  .table-payments td:nth-child(3) {
    width: calc(100% - 100px) !important;
  }
  .table-payments td:nth-child(6) {
    position: absolute !important;
    top: 1.25rem !important;
    right: 1rem !important;
    text-align: right !important;
    font-size: 1.1rem !important;
    color: var(--success) !important;
  }
  .table-payments td:nth-child(1) {
    font-size: 0.85rem !important;
    color: var(--text-muted) !important;
  }
  .table-payments td:nth-child(2) {
    font-size: 0.85rem !important;
    font-family: monospace !important;
  }
  .table-payments td:nth-child(2)::before {
    content: "Receipt: " !important;
    font-family: sans-serif !important;
    font-weight: 600 !important;
  }
  .table-payments td:nth-child(4) {
    display: inline-flex !important;
    font-size: 0.85rem !important;
  }
  .table-payments td:nth-child(4)::before {
    content: "Type: " !important;
    font-weight: 600 !important;
  }
  .table-payments td:nth-child(5) {
    display: inline-flex !important;
    font-size: 0.85rem !important;
    color: var(--text-muted) !important;
    margin-left: 0.75rem !important;
  }
  .table-payments td:nth-child(5)::before {
    content: "By: " !important;
    font-weight: 600 !important;
  }
  .table-payments td:nth-child(7) {
    border-top: 1px solid var(--border-light) !important;
    padding-top: 0.75rem !important;
    margin-top: 0.25rem !important;
    display: flex !important;
    justify-content: flex-end !important;
    width: 100% !important;
  }


  /* Table Footer / Summary adjustments */
  .table tfoot {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  .table tfoot tr {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border) !important;
  }
  .table tfoot th {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.6rem 0 !important;
    border: none !important;
    text-align: right !important;
    width: 100% !important;
  }

  .grid-split, .grid-form-inline {
    grid-template-columns: 1fr !important;
  }

  .text-center {
    justify-content: center !important;
  }

  .filter-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.75rem !important;
  }
  .filter-grid button {
    grid-column: span 2 !important;
    width: 100% !important;
    justify-content: center !important;
  }
}

@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr; }
  .login-right { padding: 2rem 1.5rem; }
}

/* Responsive visibility utilities */
@media (min-width: 769px) {
  .hide-desktop {
    display: none !important;
  }
}
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
}

/* ── Staff Bottom Navigation (mobile only) ──────────────────── */
.staff-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: var(--card);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: stretch;
  z-index: 200;
  box-shadow: 0 -4px 16px rgba(43,43,43,0.08);
}

.sbn-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  transition: var(--transition);
  padding: 0.4rem 0;
}

.sbn-item i {
  font-size: 1.25rem;
  line-height: 1;
}

.sbn-item:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.sbn-item.active {
  color: var(--primary);
  font-weight: 600;
}

.sbn-item.active::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 2.5px;
  background: var(--primary);
  border-radius: 0 0 4px 4px;
}

.sbn-dot {
  position: absolute;
  top: 6px;
  right: calc(50% - 12px);
  width: 7px; height: 7px;
  background: var(--danger);
  border-radius: 50%;
  border: 1.5px solid var(--card);
}

.sbn-item.sbn-logout {
  color: var(--danger);
}
.sbn-item.sbn-logout:hover {
  background: var(--danger-light);
  color: var(--danger);
}

/* Add padding to body so page content doesn't hide behind bottom nav */
@media (max-width: 768px) {
  body.has-bottom-nav .page-body {
    padding-top: 1.5rem !important;
    padding-bottom: 80px !important;
  }

  /* Hide the sidebar entirely for staff on mobile (no hamburger) */
  body.has-bottom-nav .sidebar {
    display: none !important;
  }
}

/* Make sure the staff bottom nav itself shows on mobile (overrides .hide-desktop on small screens) */
@media (max-width: 768px) {
  nav.staff-bottom-nav {
    display: flex !important;
  }
}
