/**
 * Portal chrome — minimalist compact sidebar + top header.
 * Maps the uniform typography refresh onto RemoEd class names:
 *   .sidebar      → .remoed-sidebar
 *   .top-header   → .nav-header
 *   .user-name    → .remoed-username
 *   .user-profile → .sidebar-user / .sidebar-user-inner
 *   .user-avatar  → #remoed-avatar
 *   .action-btn   → .time-btn-mini, .nav-icon
 * Load after teacher-sidebar.css / style.css page chrome so these win.
 */

/* Force crisp dark charcoal/black for maximum readability */
.remoed-sidebar .remoed-menu li:not(.active):not(#logout-nav),
.remoed-sidebar .remoed-menu li:not(.active):not(#logout-nav) .menu-label,
.remoed-sidebar .remoed-username,
.nav-header h1,
.nav-header .page-title,
.nav-left h1 {
  color: #111827 !important;
}

/* Sidebar menu items: professional, compact sizing */
.remoed-sidebar .remoed-menu li {
  font-size: 14px !important;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 12px !important;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  border-radius: 6px;
  gap: 10px;
}

.remoed-sidebar .remoed-menu li .menu-label {
  font-size: 14px;
  font-weight: 500;
}

/* Keep active / logout contrast */
.remoed-sidebar .remoed-menu li.active,
.remoed-sidebar .remoed-menu li.active .menu-label {
  color: #ffffff !important;
}

.remoed-sidebar .remoed-menu li#logout-nav,
.remoed-sidebar .remoed-menu li#logout-nav .menu-label {
  color: #e74c3c !important;
}

/* Compact the user profile block */
.remoed-sidebar .sidebar-user {
  padding: 8px 12px !important;
}

.remoed-sidebar .sidebar-user-inner {
  display: flex;
  align-items: center;
  gap: 8px;
}

.remoed-sidebar .remoed-username {
  font-size: 13px !important;
  font-weight: 500;
  line-height: 1.2;
}

/* Slightly smaller avatar to save vertical space */
.remoed-sidebar #remoed-avatar,
.remoed-sidebar .remoed-avatar {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50%;
}

/* Slimmer sidebar header / brand block */
.remoed-sidebar .sidebar-header-inner,
.remoed-sidebar .sidebar-header-inner.logo-section {
  padding: 10px 12px !important;
}

.remoed-sidebar .sidebar-logo-img {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  object-fit: contain !important;
  border-radius: 10px !important;
  flex-shrink: 0;
}

/* Page titles: match Dashboard header (black, 18px, weight 600) — all portals */
body[class*="page-teacher-"] .nav-header h1,
body[class*="page-teacher-"] .nav-left h1,
body[class*="page-teacher-"] .remoed-content > .header > h1,
body[class*="page-teacher-"] .remoed-content .header > h1,
body[class*="page-teacher-"] .remoed-content > .remoed-header > h1,
body[class*="page-teacher-"] .remoed-content .remoed-header > h1,
body[class*="page-teacher-"] .remoed-content > .page-header > h1,
body[class*="page-teacher-"] .remoed-content .page-header > h1,
body[class*="page-teacher-"] .remoed-content > .page-head > h1,
body[class*="page-teacher-"] .remoed-content .page-head > h1,
body[class*="page-teacher-"] .chat-list-header h1,
body[class*="page-student-"] .nav-header h1,
body[class*="page-student-"] .nav-left h1,
body[class*="page-student-"] .remoed-content > .header > h1,
body[class*="page-student-"] .remoed-content .header > h1,
body[class*="page-student-"] .remoed-content > .remoed-header > h1,
body[class*="page-student-"] .remoed-content .remoed-header > h1,
body[class*="page-student-"] .remoed-content > .page-header > h1,
body[class*="page-student-"] .remoed-content .page-header > h1,
body[class*="page-student-"] .remoed-content > .page-head > h1,
body[class*="page-student-"] .remoed-content .page-head > h1,
body[class*="page-student-"] .chat-list-header h1,
body[class*="page-admin-"] .nav-header h1,
body[class*="page-admin-"] .nav-left h1,
body[class*="page-admin-"] .remoed-content > .header > h1,
body[class*="page-admin-"] .remoed-content .header > h1,
body[class*="page-admin-"] .remoed-content > .remoed-header > h1,
body[class*="page-admin-"] .remoed-content .remoed-header > h1,
body[class*="page-admin-"] .remoed-content > .page-header > h1,
body[class*="page-admin-"] .remoed-content .page-header > h1,
body[class*="page-admin-"] .remoed-content > .page-head > h1,
body[class*="page-admin-"] .remoed-content .page-head > h1,
body.page-teacher-lessons-library .page-header h1,
body.page-teacher-performance-indicator .page-header h1,
body.page-teacher-professional-development .page-header h1,
body.page-teacher-referrals .page-head h1,
body.page-teacher-messages .chat-list-header h1,
body.page-teacher-class-table .remoed-header h1,
body.page-teacher-schedule .header h1,
body.page-teacher-open-class .header h1,
body.page-teacher-service-fee .service-header h1,
body.page-teacher-attendance-analysis .page-header h1,
body.page-teacher-peer-learning-connections .page-header h1,
body.page-teacher-profile .page-header h1,
body.page-teacher-assessment .header h1,
body.student-portal .nav-header h1,
body.student-portal .nav-left h1,
body.student-portal .page-header h1,
body.student-portal .remoed-header h1,
body.student-portal .header h1 {
  color: #111827 !important;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  margin: 0 !important;
  letter-spacing: normal !important;
  text-shadow: none !important;
  filter: none !important;
}

body.page-device-check .device-title {
  color: #111827 !important;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  text-shadow: none !important;
}
body[class*="page-teacher-"] .device-title,
body[class*="page-student-"] .device-title {
  color: #111827 !important;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  text-shadow: none !important;
}

/* Compact profile headers (teacher / student / admin) */
body.page-teacher-profile .profile-header,
body.page-student-profile .profile-header,
body.student-portal.page-student-profile .profile-header {
  padding: 16px 20px !important;
  gap: 16px !important;
  margin-bottom: 16px !important;
}

body.page-teacher-profile .profile-avatar-large,
body.page-student-profile .profile-avatar-large,
body.student-portal.page-student-profile .profile-avatar-large {
  width: 88px !important;
  height: 88px !important;
  font-size: 2rem !important;
  border-width: 3px !important;
  box-shadow: 0 4px 12px rgba(71, 188, 62, 0.22) !important;
}

body.page-teacher-profile .profile-name-large,
body.page-student-profile .profile-name-large,
body.student-portal.page-student-profile .profile-name-large,
body.page-teacher-profile h1.profile-name-large {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #111827 !important;
  margin: 0 0 4px 0 !important;
  text-shadow: none !important;
  line-height: 1.3 !important;
}

body.page-teacher-profile .profile-email-large,
body.page-student-profile .profile-email-large,
body.student-portal.page-student-profile .profile-email-large {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #4b5563 !important;
  margin: 0 0 10px 0 !important;
  opacity: 1 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  max-width: 100% !important;
}

body.page-teacher-profile .section-title,
body.page-student-profile .section-title,
body.student-portal.page-student-profile .section-title,
body.page-teacher-profile .info-card .section-title {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #111827 !important;
}

body.page-teacher-profile .profile-avatar-large #profile-avatar-text,
body.page-teacher-profile .profile-avatar-large span[style*="font-size"],
body.page-student-profile .profile-avatar-large span,
body.student-portal.page-student-profile .profile-avatar-large span {
  font-size: 1.75rem !important;
}

/* Performance Indicator — compact metrics + black headers */
body.page-teacher-performance-indicator .page-header h1,
body.page-teacher-performance-indicator .breakdown-header {
  color: #111827 !important;
  font-size: 18px !important;
  font-weight: 600 !important;
}

body.page-teacher-performance-indicator .breakdown-header {
  font-size: 15px !important;
  margin-bottom: 12px !important;
  padding-bottom: 8px !important;
}

body.page-teacher-performance-indicator .stats-grid {
  gap: 14px !important;
  margin-bottom: 20px !important;
}

body.page-teacher-performance-indicator .stat-card,
body.page-teacher-performance-indicator .metrics-section,
body.page-teacher-performance-indicator .breakdown-section {
  padding: 14px 16px !important;
  margin-bottom: 16px !important;
  border-radius: 10px !important;
}

body.page-teacher-performance-indicator .stat-label,
body.page-teacher-performance-indicator .metric-label {
  font-size: 12px !important;
  margin-bottom: 4px !important;
}

body.page-teacher-performance-indicator .stat-value {
  font-size: 1.35rem !important;
  font-weight: 700 !important;
}

body.page-teacher-performance-indicator .metric-value {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #111827 !important;
}

body.page-teacher-performance-indicator .metrics-grid {
  gap: 14px !important;
}

body.page-teacher-performance-indicator .remoed-content {
  padding: 20px 24px !important;
}

body.page-teacher-performance-indicator .page-header {
  margin-bottom: 18px !important;
}


/* Slim header height — beat page-scoped .nav-header rules in style.css */
.nav-header,
body[class*="page-teacher-"] .nav-header,
body[class*="page-student-"] .nav-header,
body[class*="page-admin-"] .nav-header,
body.page-teacher-dashboard .nav-header,
body.page-student-dashboard .nav-header,
body.page-admin-dashboard .nav-header {
  height: 56px !important;
  min-height: 56px !important;
  max-height: 56px !important;
  padding: 0 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-bottom: 1px solid #e5e7eb !important;
  box-sizing: border-box;
}

/* Content offset under fixed 56px header */
body.page-teacher-dashboard .remoed-content,
body.page-student-dashboard .remoed-content,
body.page-admin-dashboard .remoed-content,
body[class*="page-admin-"].has-admin-page-header .remoed-content {
  margin-top: 56px !important;
}

/* Scale down header action buttons (Clock In/Out, Notifications) */
.nav-header .time-btn-mini,
.nav-header .action-btn {
  padding: 6px 12px !important;
  font-size: 13px !important;
  height: 32px !important;
  display: inline-flex !important;
  align-items: center !important;
  box-sizing: border-box;
}

.nav-header .nav-icon {
  width: 32px !important;
  height: 32px !important;
}

.nav-header .nav-icon svg {
  width: 16px !important;
  height: 16px !important;
}

.nav-header .time-tracking-mini {
  gap: 8px;
}

.nav-header .time-status-mini {
  font-size: 12px;
}

/* Compact menu icons to match 14px labels */
.remoed-sidebar .remoed-menu svg {
  width: 18px;
  height: 18px;
}

/* Collapsed mini-rail: keep centered compact hits */
.remoed-sidebar.sidebar-collapsed .remoed-menu {
  align-items: center;
  padding-left: 0 !important;
  padding-right: 0 !important;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.remoed-sidebar.sidebar-collapsed .remoed-menu::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.remoed-sidebar.sidebar-collapsed .remoed-menu li {
  justify-content: center;
  align-items: center;
  padding: 0 !important;
  gap: 0;
  width: 40px !important;
  height: 40px !important;
  margin: 2px auto !important;
  border-left: none !important;
  transform: none !important;
  box-sizing: border-box;
}

/* Student logo block: less top padding so menu fits one screen */
body.student-portal .remoed-sidebar .logo-section,
body.student-portal .remoed-sidebar .sidebar-header-inner.logo-container.logo-section {
  padding: 16px 12px 10px 12px !important;
}

body.student-portal .remoed-sidebar .sidebar-user {
  padding: 12px !important;
}

/* Override global-portal teacher expanded menu size to match compact chrome */
body[class*="page-teacher-"] nav.remoed-sidebar:not(.sidebar-collapsed) .remoed-menu li {
  font-size: 14px !important;
  line-height: 1.25 !important;
}

body[class*="page-teacher-"] nav.remoed-sidebar:not(.sidebar-collapsed) .remoed-menu li:not(.active):not(#logout-nav) {
  color: #111827 !important;
}

body[class*="page-admin-"] nav.remoed-sidebar:not(.sidebar-collapsed) .remoed-menu li {
  font-size: 14px !important;
  line-height: 1.25 !important;
}

/* —— Portal top bar (Dashboard reference): icon + black 18px title, lavender circular actions —— */
.nav-header,
.student-page-nav-header {
  background: #ffffff !important;
  border-bottom: 1px solid #e5e7eb !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.nav-header .nav-left,
.student-page-nav-header .nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.nav-header .nav-left h1,
.student-page-nav-header .nav-left h1 {
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #000000 !important;
  letter-spacing: normal !important;
  text-shadow: none !important;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-header .nav-title-icon,
.student-page-nav-header .nav-title-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: #008fc4;
}

.nav-header .nav-title-text,
.student-page-nav-header .nav-title-text {
  color: #000000 !important;
  font-size: 18px !important;
  font-weight: 600 !important;
}

/* Admin page top titles (hub + tools): black 18px — keep existing labels */
body[class*="page-admin-"].has-admin-page-header .nav-header .nav-title-text,
body.admin-hub-page.has-admin-page-header .nav-header .nav-title-text {
  color: #000000 !important;
  font-size: 18px !important;
  font-weight: 600 !important;
}

/* Hide duplicate in-content page title when sticky header is present */
body[class*="page-admin-"].has-admin-page-header.admin-hub-page .remoed-content > .remoed-section > .remoed-section-title:first-child {
  display: none !important;
}

/* Admin header time mini (shared across pages, not only dashboard) */
body[class*="page-admin-"] .nav-header .time-tracking-mini,
.nav-header .time-tracking-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px;
  background: #ffffff;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
}
body[class*="page-admin-"] .nav-header .time-status-mini,
.nav-header .time-status-mini {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
body[class*="page-admin-"] .nav-header .time-status-mini.clocked-in,
.nav-header .time-status-mini.clocked-in {
  background: #dcfce7;
  color: #166534;
}
body[class*="page-admin-"] .nav-header .time-status-mini.not-clocked,
.nav-header .time-status-mini.not-clocked {
  background: #f1f5f9;
  color: #64748b;
}
body[class*="page-admin-"] .nav-header .time-btn-mini,
.nav-header .time-btn-mini {
  border: none;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}
body[class*="page-admin-"] .nav-header .time-btn-mini.clock-in.primary,
.nav-header .time-btn-mini.clock-in.primary {
  background: #00aeef;
  color: #fff;
}
body[class*="page-admin-"] .nav-header .time-btn-mini.clock-out,
.nav-header .time-btn-mini.clock-out {
  background: #dc3545;
  color: #fff;
}

body[class*="page-admin-"] .nav-header .nav-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
body[class*="page-admin-"] .nav-header .nav-dropdown,
body[class*="page-admin-"] .remoed-app-actions .nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  max-height: 360px;
  overflow: auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  z-index: var(--z-dropdown);
}
@media (max-width: 768px) {
  body[class*="page-admin-"] .nav-header .nav-dropdown,
  body[class*="page-admin-"] .remoed-app-actions .nav-dropdown {
    position: fixed;
    width: auto;
  }
}
body[class*="page-admin-"] .nav-header .nav-dropdown.show,
body[class*="page-admin-"] .remoed-app-actions .nav-dropdown.show {
  display: block;
}
body[class*="page-admin-"] .nav-header .nav-dropdown-header {
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  font-weight: 600;
  color: #0f172a;
}
body[class*="page-admin-"] .nav-header .nav-dropdown-content {
  padding: 8px 0;
}

.nav-header .nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-header .nav-icon,
.student-page-nav-header .nav-icon,
.teacher-page-nav-header .nav-icon,
.remoed-app-actions .nav-icon {
  position: relative;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: #eef0ff !important;
  border: none !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  box-shadow: none !important;
  overflow: visible !important;
  z-index: 2;
  pointer-events: auto !important;
  flex-shrink: 0;
}

.nav-header .nav-icon > svg,
.student-page-nav-header .nav-icon > svg,
.teacher-page-nav-header .nav-icon > svg,
.remoed-app-actions .nav-icon > svg,
.remoed-app-actions .nav-icon svg {
  pointer-events: none;
  width: 18px !important;
  height: 18px !important;
  display: block;
}

/* Shared notification dropdown (student + teacher headers outside dashboard-only CSS) */
.nav-header .nav-dropdown,
.student-page-nav-header .nav-dropdown,
.teacher-page-nav-header .nav-dropdown,
.remoed-app-actions .nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
  min-width: min(360px, 86vw);
  max-width: min(420px, 92vw);
  max-height: 420px;
  overflow-x: hidden;
  overflow-y: auto;
  z-index: var(--z-dropdown);
  display: none;
  pointer-events: auto;
  box-sizing: border-box;
}

.nav-header .nav-dropdown.show,
.student-page-nav-header .nav-dropdown.show,
.teacher-page-nav-header .nav-dropdown.show,
.remoed-app-actions .nav-dropdown.show {
  display: block;
}

.nav-header .nav-dropdown-header,
.student-page-nav-header .nav-dropdown-header,
.teacher-page-nav-header .nav-dropdown-header,
.remoed-app-actions .nav-dropdown-header {
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.nav-header .nav-dropdown-content,
.student-page-nav-header .nav-dropdown-content,
.teacher-page-nav-header .nav-dropdown-content,
.remoed-app-actions .nav-dropdown-content {
  padding: 8px 0;
}

.nav-header .nav-dropdown-item,
.student-page-nav-header .nav-dropdown-item,
.teacher-page-nav-header .nav-dropdown-item,
.remoed-app-actions .nav-dropdown-item {
  padding: 10px 16px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.88rem;
  cursor: pointer;
}

.nav-header .nav-dropdown-footer,
.teacher-page-nav-header .nav-dropdown-footer,
.remoed-app-actions .nav-dropdown-footer {
  padding: 10px 16px;
  border-top: 1px solid #e2e8f0;
  font-size: 0.85rem;
}

.nav-header .nav-badge,
.student-page-nav-header .nav-badge,
.teacher-page-nav-header .nav-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 3;
}

.nav-header .nav-icon:hover,
.student-page-nav-header .nav-icon:hover,
.teacher-page-nav-header .nav-icon:hover,
.remoed-app-actions .nav-icon:hover {
  background: rgba(0, 174, 239, 0.12) !important;
}

.nav-header .nav-icon svg,
.student-page-nav-header .nav-icon svg,
.teacher-page-nav-header .nav-icon svg,
.remoed-app-actions .nav-icon svg {
  width: 18px !important;
  height: 18px !important;
  color: #008fc4 !important;
  fill: currentColor;
}

.nav-header .nav-icon.primary svg,
.remoed-app-actions .nav-icon.primary svg {
  color: #008fc4 !important;
}

body.teacher-portal .remoed-app-actions .nav-icon {
  background: #eefceb !important;
}

body.teacher-portal .remoed-app-actions .nav-icon:hover {
  background: rgba(71, 188, 62, 0.16) !important;
}

body.teacher-portal .remoed-app-actions .nav-icon svg,
body.teacher-portal .remoed-app-actions .nav-icon.primary svg {
  color: #2e9a28 !important;
}

body.admin-portal .remoed-app-actions .nav-icon,
body[class*="page-admin-"] .remoed-app-actions .nav-icon {
  background: #eef2ff !important;
}

body.admin-portal .remoed-app-actions .nav-icon svg,
body[class*="page-admin-"] .remoed-app-actions .nav-icon svg {
  color: #2563eb !important;
}

body.student-portal.has-student-page-header .nav-header,
body.student-portal.has-student-page-header .student-page-nav-header {
  position: fixed;
  top: 0;
  left: 260px;
  right: 0;
  height: 56px !important;
  z-index: 50;
  padding: 0 20px !important;
  box-sizing: border-box;
  transition: left 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

body.student-portal.has-student-page-header.student-sidebar-collapsed .nav-header,
body.student-portal.has-student-page-header.student-sidebar-collapsed .student-page-nav-header {
  left: 72px;
  transition: left 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

body.student-portal.has-student-page-header .remoed-content {
  margin-top: 56px !important;
}

@media (max-width: 768px) {
  body.student-portal.has-student-page-header .nav-header,
  body.student-portal.has-student-page-header .student-page-nav-header {
    left: 0;
  }

  body.student-portal.has-student-page-header .nav-header.remoed-nav-header--adopted,
  body.student-portal.has-student-page-header .student-page-nav-header.remoed-nav-header--adopted {
    display: none !important;
  }

  body.student-portal.has-student-page-header.remoed-has-app-shell .remoed-content {
    margin-top: 0 !important;
  }
}

/* Teacher portal fixed top bar (same design) */
body[class*="page-teacher-"].has-teacher-page-header .nav-header,
body[class*="page-teacher-"].has-teacher-page-header .teacher-page-nav-header {
  position: fixed;
  top: 0;
  left: 260px;
  right: 0;
  height: 56px !important;
  z-index: 50;
  padding: 0 20px !important;
  box-sizing: border-box;
  transition: left 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

body[class*="page-teacher-"].has-teacher-page-header.teacher-sidebar-collapsed .nav-header,
body[class*="page-teacher-"].has-teacher-page-header.teacher-sidebar-collapsed .teacher-page-nav-header {
  left: 72px;
  transition: left 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

body[class*="page-teacher-"].has-teacher-page-header .remoed-content {
  margin-top: 56px !important;
}

@media (max-width: 768px) {
  body[class*="page-teacher-"].has-teacher-page-header .nav-header,
  body[class*="page-teacher-"].has-teacher-page-header .teacher-page-nav-header {
    left: 0;
  }

  body[class*="page-teacher-"].has-teacher-page-header .nav-header.remoed-nav-header--adopted,
  body[class*="page-teacher-"].has-teacher-page-header .teacher-page-nav-header.remoed-nav-header--adopted {
    display: none !important;
  }

  body.remoed-has-app-shell[class*="page-teacher-"].has-teacher-page-header .remoed-content {
    margin-top: 0 !important;
  }
}


/* Admin Messages: fill viewport under fixed header — no page scroll to reach composer */
@media (min-width: 769px) {
  html body.page-admin-messages {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }
  html body.page-admin-messages .remoed-main {
    min-height: 0 !important;
    height: 100%;
    max-height: 100dvh;
    overflow: hidden;
  }
  html body.page-admin-messages.has-admin-page-header .remoed-content,
  html body.page-admin-messages .remoed-content {
    margin-top: 56px !important;
    height: calc(100vh - 56px);
    height: calc(100dvh - 56px);
    max-height: calc(100dvh - 56px);
    padding: 12px 16px !important;
    box-sizing: border-box;
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
  }
  html body.page-admin-messages .messenger {
    min-height: 0 !important;
    height: 100% !important;
    max-height: 100%;
    flex: 1 1 auto;
    align-self: stretch;
  }
  html body.page-admin-messages .chat-list,
  html body.page-admin-messages .chat-pane {
    min-height: 0;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
  }
  html body.page-admin-messages .chat-scroll {
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  /* Keep short threads near the composer so chats are immediately readable */
  html body.page-admin-messages .chat-scroll:has(.message-wrap) {
    justify-content: flex-end;
  }
}

/* Admin portal fixed top bar (Teacher SoT parity) */
body[class*="page-admin-"].has-admin-page-header .nav-header {
  position: fixed;
  top: 0;
  left: 260px;
  right: 0;
  height: 56px !important;
  min-height: 56px !important;
  max-height: 56px !important;
  z-index: 50;
  padding: 0 20px !important;
  box-sizing: border-box;
}
body[class*="page-admin-"].has-admin-page-header.admin-sidebar-collapsed .nav-header {
  left: 70px;
}
body[class*="page-admin-"].has-admin-page-header .remoed-content {
  margin-top: 56px !important;
}

/* Profile Settings: keep title left / actions right on the sticky bar */
body.page-admin-profile-settings.has-admin-page-header .nav-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100%;
}
body.page-admin-profile-settings.has-admin-page-header .nav-header .nav-right {
  display: flex !important;
  gap: 15px !important;
  align-items: center !important;
  margin-left: auto;
}

@media (max-width: 768px) {
  body[class*="page-admin-"].has-admin-page-header .nav-header {
    left: 0;
  }

  body[class*="page-admin-"].has-admin-page-header .nav-header.remoed-nav-header--adopted {
    display: none !important;
  }

  body.remoed-has-app-shell[class*="page-admin-"].has-admin-page-header .remoed-content {
    margin-top: 0 !important;
  }
}

/* ==========================================================================
   Compact Profile / Performance badges / Referrals (Career Growth proportions)
   ========================================================================== */

/* —— Phase 1: Teacher Profile —— */
body.page-teacher-profile .profile-header {
  margin-bottom: 12px !important;
  padding: 14px 16px !important;
  gap: 14px !important;
}

body.page-teacher-profile .remoed-content {
  padding: 16px 20px !important;
}

body.page-teacher-profile .profile-content-grid {
  gap: 14px !important;
}

body.page-teacher-profile .profile-sidebar-card,
body.page-teacher-profile .profile-main-card {
  padding: 16px !important;
  border-radius: 12px !important;
}

body.page-teacher-profile .info-section {
  margin-bottom: 15px !important;
}

body.page-teacher-profile .section-title,
body.page-teacher-profile .info-section-title,
body.page-teacher-profile .profile-sidebar-card .section-title {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #111827 !important;
  margin-bottom: 10px !important;
  padding-bottom: 6px !important;
}

body.page-teacher-profile .form-grid {
  gap: 12px !important;
}

body.page-teacher-profile .form-group {
  margin-bottom: 12px !important;
}

body.page-teacher-profile .form-input,
body.page-teacher-profile .form-textarea {
  padding: 8px 12px !important;
  border-radius: 6px !important;
  font-size: 14px !important;
}

body.page-teacher-profile .form-textarea {
  min-height: 80px !important;
}

body.page-teacher-profile .info-row {
  padding: 8px 0 !important;
}

body.page-teacher-profile .info-card {
  padding: 12px 14px !important;
}

body.page-teacher-profile .back-btn,
body.page-teacher-profile .edit-btn,
body.page-teacher-profile .save-btn,
body.page-teacher-profile .cancel-btn,
body.page-teacher-profile .add-btn,
body.page-teacher-profile .video-upload-btn,
body.page-teacher-profile .preview-btn,
body.page-teacher-profile #preview-profile-btn {
  padding: 6px 16px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  border-radius: 6px !important;
  line-height: 1.3 !important;
}

body.page-teacher-profile .preview-btn,
body.page-teacher-profile #preview-profile-btn {
  background: linear-gradient(135deg, #2E9A28, #47BC3E) !important;
  color: #fff !important;
  border: none !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

body.page-teacher-profile .video-upload-section {
  margin-top: 12px !important;
}

body.page-teacher-profile .video-upload-btn svg {
  width: 18px !important;
  height: 18px !important;
}

body.page-teacher-profile .file-upload-label {
  padding: 10px 12px !important;
  border-width: 2px !important;
  font-size: 13px !important;
}

body.page-teacher-profile #profile-completion-indicator {
  padding: 12px 14px !important;
  margin-bottom: 15px !important;
  border-radius: 10px !important;
}

body.page-teacher-profile .tab-container {
  margin-bottom: 12px !important;
}

body.page-teacher-profile .tab-buttons {
  gap: 4px !important;
  margin-bottom: 12px !important;
}

body.page-teacher-profile .tab-button {
  padding: 8px 12px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

body.page-teacher-profile .profile-footer-actions,
body.page-teacher-profile .education-item {
  margin-top: 12px !important;
  margin-bottom: 12px !important;
  padding: 12px !important;
}

body.page-teacher-profile .assessment-notice,
body.page-teacher-profile .skill-assessment-card {
  padding: 12px 14px !important;
  margin-bottom: 15px !important;
}

/* —— Phase 2: Performance Indicator — Achievement Badges —— */
body.page-teacher-performance-indicator .badges-section {
  padding: 16px !important;
  margin-bottom: 15px !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 12px rgba(71, 188, 62, 0.22) !important;
}

body.page-teacher-performance-indicator .badges-header {
  margin-bottom: 12px !important;
}

body.page-teacher-performance-indicator .badges-header h2 {
  font-size: 18px !important;
  font-weight: 600 !important;
  margin: 0 0 4px 0 !important;
  gap: 8px !important;
}

body.page-teacher-performance-indicator .badges-header p {
  font-size: 12px !important;
  line-height: 1.35 !important;
}

body.page-teacher-performance-indicator .badges-grid {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
  gap: 10px !important;
  margin-top: 12px !important;
}

body.page-teacher-performance-indicator .badge-card {
  padding: 12px !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

body.page-teacher-performance-indicator .badge-card.earned {
  transform: none !important;
  border-width: 2px !important;
  box-shadow: 0 2px 10px rgba(40, 167, 69, 0.28) !important;
}

body.page-teacher-performance-indicator .badge-icon {
  font-size: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  margin: 0 auto 8px !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}

body.page-teacher-performance-indicator .badge-icon img,
body.page-teacher-performance-indicator .badge-icon svg {
  max-width: 48px !important;
  max-height: 48px !important;
  width: 48px !important;
  height: 48px !important;
  object-fit: contain !important;
}

body.page-teacher-performance-indicator .badge-progress {
  margin-top: 6px !important;
  height: 3px !important;
}

body.page-teacher-performance-indicator .badge-status {
  margin-top: 4px !important;
  font-size: 11px !important;
}

body.page-teacher-performance-indicator .badge-progress-label {
  font-size: 11px !important;
}

body.page-teacher-performance-indicator .badge-name {
  font-size: 14px !important;
  font-weight: 600 !important;
  margin-bottom: 4px !important;
  line-height: 1.25 !important;
}

body.page-teacher-performance-indicator .badge-description {
  font-size: 11px !important;
  line-height: 1.35 !important;
  margin-bottom: 4px !important;
}

body.page-teacher-performance-indicator .badge-status,
body.page-teacher-performance-indicator .badge-progress,
body.page-teacher-performance-indicator .badge-card .progress-text,
body.page-teacher-performance-indicator .badge-card small {
  font-size: 11px !important;
}

body.page-teacher-performance-indicator .attendance-analysis-section {
  margin-top: 15px !important;
}

body.page-teacher-performance-indicator .attendance-analysis-section .section-title {
  font-size: 15px !important;
  margin-bottom: 12px !important;
  padding-bottom: 6px !important;
  border-bottom-width: 2px !important;
}

body.page-teacher-performance-indicator .charts-grid-secondary,
body.page-teacher-performance-indicator .stats-grid {
  margin-bottom: 15px !important;
}

body.page-teacher-performance-indicator .period-btn {
  padding: 6px 14px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  border-radius: 6px !important;
}

/* —— Phase 3: Referral Rewards —— */
body.page-teacher-referrals .remoed-content {
  padding: 16px 20px 20px !important;
}

body.page-teacher-referrals .page-head {
  margin-bottom: 12px !important;
}

body.page-teacher-referrals .page-head p {
  margin: 6px 0 0 !important;
  font-size: 0.85rem !important;
}

body.page-teacher-referrals .banner-info {
  padding: 8px 12px !important;
  margin-bottom: 12px !important;
  border-radius: 8px !important;
  font-size: 0.82rem !important;
  line-height: 1.4 !important;
}

body.page-teacher-referrals .link-card {
  padding: 12px 14px !important;
  margin-bottom: 12px !important;
  border-radius: 10px !important;
}

body.page-teacher-referrals .link-card h2 {
  margin: 0 0 8px !important;
  font-size: 0.95rem !important;
}

body.page-teacher-referrals .code-row {
  gap: 8px !important;
  margin-bottom: 8px !important;
}

body.page-teacher-referrals .code-pill {
  padding: 6px 10px !important;
  border-radius: 6px !important;
  font-size: 0.85rem !important;
}

body.page-teacher-referrals .btn,
body.page-teacher-referrals .filters button,
body.page-teacher-referrals button.btn {
  padding: 6px 16px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  border-radius: 6px !important;
}

body.page-teacher-referrals .grid-stats {
  gap: 10px !important;
  margin-bottom: 12px !important;
}

body.page-teacher-referrals .grid-stats .stat-card {
  padding: 12px 14px !important;
  border-radius: 10px !important;
}

body.page-teacher-referrals .grid-stats .stat-card h3 {
  margin: 0 0 4px !important;
  font-size: 0.8rem !important;
}

body.page-teacher-referrals .grid-stats .stat-card .big {
  font-size: 1.3rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

body.page-teacher-referrals .filters {
  gap: 10px !important;
  margin-bottom: 12px !important;
}

body.page-teacher-referrals .empty {
  padding: 20px !important;
}

body.page-teacher-referrals .table-wrap {
  max-height: 420px !important;
}

/* Widescreen: referral link | stats stack */
body.page-teacher-referrals .referral-link-stats-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 12px;
}

body.page-teacher-referrals .referral-link-stats-row .link-card {
  margin-bottom: 0 !important;
  height: 100%;
}

body.page-teacher-referrals .referral-link-stats-row .grid-stats {
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  margin-bottom: 0 !important;
}

@media (max-width: 992px) {
  body.page-teacher-referrals .referral-link-stats-row {
    grid-template-columns: 1fr;
  }

  body.page-teacher-referrals .referral-link-stats-row .grid-stats {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 800px) {
  body.page-teacher-referrals .referral-link-stats-row .grid-stats {
    grid-template-columns: 1fr !important;
  }
}

/* —— Teacher / Admin Dashboard: Time Log | Announcements —— */
body.page-teacher-dashboard .dashboard-top-row,
body.page-admin-dashboard .dashboard-top-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 16px;
  align-items: stretch;
}

body.page-teacher-dashboard .dashboard-top-row > .remoed-section,
body.page-admin-dashboard .dashboard-top-row > .remoed-section {
  margin-bottom: 0;
  height: 100%;
}

body.page-teacher-dashboard .time-log-actions-row {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

body.page-teacher-dashboard .time-log-status-panel {
  flex: 0 1 auto;
  min-width: 200px;
}

body.page-teacher-dashboard .time-log-buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

@media (max-width: 992px) {
  body.page-teacher-dashboard .dashboard-top-row,
  body.page-admin-dashboard .dashboard-top-row {
    grid-template-columns: 1fr;
  }
}

/* —— Lessons Library: inline title edit —— */
body.page-teacher-lessons-library .lesson-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

body.page-teacher-lessons-library .lesson-title-row #lesson-title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

body.page-teacher-lessons-library .lesson-title-edit-btn,
body.page-teacher-lessons-library .lesson-title-save-btn,
body.page-teacher-lessons-library .lesson-title-cancel-btn {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  line-height: 1;
}

body.page-teacher-lessons-library .lesson-title-edit-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

body.page-teacher-lessons-library .lesson-title-save-btn {
  background: #47BC3E;
  border-color: #47BC3E;
  color: #fff;
}

body.page-teacher-lessons-library .lesson-title-save-btn:hover {
  background: #2E9A28;
}

body.page-teacher-lessons-library .lesson-title-input {
  display: block;
  width: 100%;
  max-width: 480px;
  margin: 0 0 10px 0;
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  box-sizing: border-box;
}

body.page-teacher-lessons-library .lesson-title-input[hidden],
body.page-teacher-lessons-library .lesson-title-edit-btn[hidden],
body.page-teacher-lessons-library .lesson-title-save-btn[hidden],
body.page-teacher-lessons-library .lesson-title-cancel-btn[hidden],
body.page-teacher-lessons-library #lesson-title[hidden] {
  display: none !important;
}

/* —— Phase 4: shared block spacing / no forced min-heights —— */
body.page-teacher-profile .profile-header,
body.page-teacher-profile .profile-content-grid,
body.page-teacher-performance-indicator .page-header,
body.page-teacher-performance-indicator .charts-grid-secondary,
body.page-teacher-performance-indicator .badges-section,
body.page-teacher-referrals .banner-info,
body.page-teacher-referrals .link-card,
body.page-teacher-referrals .grid-stats {
  min-height: 0 !important;
}

body.page-teacher-profile .profile-main-card,
body.page-teacher-profile .profile-sidebar-card,
body.page-teacher-performance-indicator .stat-card,
body.page-teacher-performance-indicator .metrics-section,
body.page-teacher-referrals .link-card,
body.page-teacher-referrals .grid-stats .stat-card {
  min-height: 0 !important;
}

/* Phone: teacher pages must scroll the document, not snap to the bottom.
   Messages is a single-column app panel between the top bar and tab bar. */
@media (max-width: 768px) {
  body.teacher-portal:not(.page-teacher-messages) .remoed-main,
  body[class*="page-teacher-"]:not(.page-teacher-messages) .remoed-main,
  body.student-portal:not(.page-student-messages) .remoed-main {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overflow-anchor: none;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }

  body[class*="page-teacher-"].has-teacher-page-header .remoed-content {
    margin-top: 0 !important;
  }

  html body.page-teacher-messages.remoed-has-app-shell .remoed-main,
  html body.page-student-messages.remoed-has-app-shell .remoed-main,
  html body.page-admin-messages.remoed-has-app-shell .remoed-main {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
  }

  html body.page-teacher-messages .remoed-content,
  html body.page-student-messages .remoed-content,
  html body.page-admin-messages .remoed-content {
    margin: 0 !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
    max-width: 100% !important;
    padding: 0 !important;
    min-height: 0 !important;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  html body.page-teacher-messages .messenger,
  html body.page-student-messages .messenger,
  html body.page-admin-messages .messenger {
    display: flex !important;
    flex-direction: column;
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
    height: 100%;
    flex: 1 1 auto;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
  }

  html body.page-teacher-messages .chat-list,
  html body.page-student-messages .chat-list,
  html body.page-admin-messages .chat-list {
    min-width: 0 !important;
    width: 100% !important;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    border-right: none !important;
  }

  html body.page-teacher-messages .chat-items,
  html body.page-student-messages .chat-items,
  html body.page-admin-messages .chat-items {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  html body.page-teacher-messages .chat-pane,
  html body.page-student-messages .chat-pane,
  html body.page-admin-messages .chat-pane {
    display: none;
    min-width: 0;
    min-height: 0;
  }

  html body.page-teacher-messages .messenger.show-chat .chat-list,
  html body.page-student-messages .messenger.show-chat .chat-list,
  html body.page-admin-messages .messenger.show-chat .chat-list {
    display: none !important;
  }

  html body.page-teacher-messages .messenger.show-chat .chat-pane,
  html body.page-student-messages .messenger.show-chat .chat-pane,
  html body.page-admin-messages .messenger.show-chat .chat-pane {
    display: flex !important;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
  }

  html body.page-teacher-messages .chat-scroll,
  html body.page-student-messages .chat-scroll,
  html body.page-admin-messages .chat-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  html body.page-teacher-messages .composer,
  html body.page-student-messages .composer,
  html body.page-admin-messages .composer {
    position: relative !important;
    bottom: auto !important;
    flex-wrap: nowrap !important;
    width: 100%;
    box-sizing: border-box;
    gap: 8px;
    padding: 10px 12px;
    flex-shrink: 0;
  }

  html body.page-teacher-messages .composer textarea,
  html body.page-student-messages .composer textarea,
  html body.page-admin-messages .composer textarea {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    width: auto !important;
  }

  html body.page-teacher-messages .send-btn,
  html body.page-student-messages .send-btn,
  html body.page-admin-messages .send-btn {
    flex-shrink: 0;
    white-space: nowrap;
  }

  /* Class schedule: document scrolls; do not trap the week grid in 60vh. */
  html body.page-teacher-class-table .remoed-schedule-container,
  html body.page-student-class-table .weekly-grid {
    max-height: none !important;
    min-height: 0 !important;
    height: auto !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    overflow-anchor: none;
  }

  html body.page-teacher-class-table .remoed-content,
  html body.page-student-class-table .remoed-content {
    overflow: visible !important;
    min-height: 0 !important;
    margin-left: 0 !important;
    max-width: 100% !important;
  }

  html body.page-teacher-class-table .remoed-action-buttons {
    position: static !important;
    bottom: auto !important;
  }

  /* Profile: stack Quick Info + main card. style.css two-column never
     collapses because `.page-teacher-profile @media` is invalid CSS. */
  html body.page-teacher-profile .profile-content-grid,
  html body.page-student-profile .profile-content-grid {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  html body.page-teacher-profile .profile-sidebar-card,
  html body.page-student-profile .profile-sidebar-card,
  html body.page-teacher-profile .profile-main-card,
  html body.page-student-profile .profile-main-card {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  html body.page-teacher-profile .form-grid,
  html body.page-student-profile .form-grid {
    grid-template-columns: 1fr !important;
  }

  html body.page-teacher-profile .profile-header,
  html body.page-student-profile .profile-header {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
}

/* Menu icons share one vertical line — student, teacher, and admin.
   Do not center an icon+label group in a full-width row (longer names shove the icon). */
.remoed-sidebar:not(.sidebar-collapsed) .remoed-menu li {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

.remoed-sidebar .remoed-menu li svg,
.remoed-sidebar .sidebar-logout-btn svg {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  flex: 0 0 20px !important;
  margin: 0 !important;
  display: block !important;
}

@media (min-width: 769px) and (max-width: 1024px) {
  body:not(.student-portal) .remoed-sidebar > .remoed-menu,
  body:not(.student-portal) .remoed-sidebar .sidebar-logout-footer {
    align-items: center !important;
  }

  body:not(.student-portal) .remoed-sidebar .sidebar-logout-footer {
    display: flex !important;
    justify-content: center !important;
  }

  body:not(.student-portal) .remoed-sidebar .remoed-menu li,
  body:not(.student-portal) .remoed-sidebar .sidebar-logout-btn {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    margin: 2px auto !important;
    padding: 0 !important;
    gap: 0 !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  body:not(.student-portal) .remoed-sidebar .remoed-menu .menu-label,
  body:not(.student-portal) .remoed-sidebar .sidebar-logout-btn .menu-label {
    display: none !important;
  }
}

