/* ==========================================================================
   SNADEK APPLICATION SHELL & DASHBOARD DESIGN SYSTEM
   RTL First • Mobile-Optimized • Premium Glassmorphic Palette
   ========================================================================== */

:root {
  --app-forest: #176b57;
  --app-forest-dark: #0d4f40;
  --app-forest-deep: #09372c;
  --app-forest-soft: #edf7f3;
  --app-forest-glow: rgba(23, 107, 87, 0.16);
  --app-gold: #c89b4b;
  --app-gold-dark: #9e7428;
  --app-gold-soft: #fcf6eb;
  --app-ink: #172b27;
  --app-ink-light: #2c3e39;
  --app-muted: #64756f;
  --app-line: #e3ebe7;
  --app-surface: #ffffff;
  --app-bg: #f5f8f6;
  --app-shadow-sm: 0 2px 8px rgba(13, 79, 64, 0.05);
  --app-shadow-md: 0 8px 24px rgba(13, 79, 64, 0.08);
  --app-shadow-lg: 0 16px 40px rgba(13, 79, 64, 0.12);
  --app-radius-sm: 10px;
  --app-radius-md: 14px;
  --app-radius-lg: 20px;
  --app-sidebar-width: 270px;
  --app-sidebar-collapsed-width: 76px;
  --app-topbar-height: 68px;
  --app-schoolbar-height: 58px;
  --app-bottom-nav-height: 62px;
  --app-transition: all 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -60px;
  right: 1rem;
  background: var(--app-forest);
  color: #fff !important;
  padding: 0.6rem 1.2rem;
  border-radius: var(--app-radius-sm);
  z-index: 2000;
  font-weight: 700;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 1rem;
}

/* App Body Base */
body.app-body {
  background-color: var(--app-bg);
  color: var(--app-ink);
  overflow-x: hidden;
  min-height: 100vh;
}

/* App Shell Grid Layout */
.app-shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
  position: relative;
}

.app-main-column {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background-color: var(--app-bg);
  transition: margin var(--app-transition);
}

@media (min-width: 992px) {
  .app-main-column {
    margin-right: var(--app-sidebar-width);
  }
  html.sidebar-collapsed .app-main-column {
    margin-right: var(--app-sidebar-collapsed-width);
  }
}

/* ==========================================================================
   SIDEBAR (لوحة جانبية للمهام والتنقل)
   ========================================================================== */
.app-sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: var(--app-sidebar-width);
  background: linear-gradient(180deg, var(--app-forest-dark) 0%, var(--app-forest-deep) 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  z-index: 1050;
  box-shadow: -4px 0 25px rgba(0, 0, 0, 0.12);
  transition: width var(--app-transition), right var(--app-transition);
  overflow: hidden;
}

.app-sidebar-head {
  height: var(--app-topbar-height);
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #ffffff !important;
  text-decoration: none !important;
  min-width: 0;
}

.app-brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
}

.app-brand-text {
  min-width: 0;
  line-height: 1.25;
}

.app-brand-text strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-brand-text small {
  display: block;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.app-sidebar-close {
  display: none;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.app-sidebar-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Sidebar Navigation Items */
.app-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  -webkit-overflow-scrolling: touch;
}

.app-nav::-webkit-scrollbar {
  width: 5px;
}
.app-nav::-webkit-scrollbar-track {
  background: transparent;
}
.app-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}
.app-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.32);
}

.app-nav-group {
  display: flex;
  flex-direction: column;
}

.app-nav-title {
  padding: 0 0.85rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
}

.app-nav-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.app-nav-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.65rem 0.9rem;
  min-height: 44px;
  border-radius: var(--app-radius-sm);
  color: rgba(255, 255, 255, 0.85) !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 0.92rem;
  transition: var(--app-transition);
  position: relative;
}

.app-nav-link i.bi {
  font-size: 1.15rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.75);
  transition: transform 0.2s, color 0.2s;
}

.app-nav-link .app-nav-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-nav-ext {
  font-size: 0.75rem !important;
  opacity: 0.55;
  width: auto !important;
}

.app-nav-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
}
.app-nav-link:hover i.bi {
  color: #ffffff;
  transform: translateX(-2px);
}

.app-nav-link.active {
  background: linear-gradient(135deg, rgba(200, 155, 75, 0.28) 0%, rgba(200, 155, 75, 0.15) 100%);
  color: #ffffff !important;
  box-shadow: inset 0 0 0 1px rgba(200, 155, 75, 0.45);
}
.app-nav-link.active i.bi {
  color: var(--app-gold);
}
.app-nav-link.active::before {
  content: "";
  position: absolute;
  right: -0.85rem;
  top: 6px;
  bottom: 6px;
  width: 4px;
  background: var(--app-gold);
  border-radius: 4px 0 0 4px;
  box-shadow: 0 0 10px rgba(200, 155, 75, 0.6);
}

/* Sidebar Footer */
.app-sidebar-foot {
  padding: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.15);
}

.app-support-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--app-radius-sm);
  background: rgba(37, 211, 102, 0.16);
  border: 1px solid rgba(37, 211, 102, 0.35);
  color: #25d366 !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 0.86rem;
  transition: var(--app-transition);
}
.app-support-link:hover {
  background: #25d366;
  color: #09372c !important;
  transform: translateY(-1px);
}
.app-support-link i {
  font-size: 1.15rem;
  flex-shrink: 0;
}

.app-collapse-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--app-radius-sm);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  width: 100%;
  transition: var(--app-transition);
}
.app-collapse-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.app-collapse-btn i {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ==========================================================================
   DESKTOP COLLAPSED SIDEBAR (MINI RAIL)
   ========================================================================== */
@media (min-width: 992px) {
  html.sidebar-collapsed .app-sidebar {
    width: var(--app-sidebar-collapsed-width);
  }
  html.sidebar-collapsed .app-brand-text,
  html.sidebar-collapsed .app-nav-title,
  html.sidebar-collapsed .app-nav-label,
  html.sidebar-collapsed .app-nav-ext,
  html.sidebar-collapsed .app-sidebar-foot span {
    display: none !important;
  }
  html.sidebar-collapsed .app-sidebar-head {
    justify-content: center;
    padding: 0;
  }
  html.sidebar-collapsed .app-nav {
    padding: 1rem 0.5rem;
    align-items: center;
  }
  html.sidebar-collapsed .app-nav-group {
    width: 100%;
    align-items: center;
  }
  html.sidebar-collapsed .app-nav-group ul {
    width: 100%;
    align-items: center;
  }
  html.sidebar-collapsed .app-nav-link {
    width: 48px;
    height: 48px;
    padding: 0;
    justify-content: center;
    border-radius: 12px;
  }
  html.sidebar-collapsed .app-nav-link i.bi {
    margin: 0;
    font-size: 1.3rem;
  }
  html.sidebar-collapsed .app-nav-link.active::before {
    right: -0.5rem;
  }
  html.sidebar-collapsed .app-support-link,
  html.sidebar-collapsed .app-collapse-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    margin: 0 auto;
  }
  html.sidebar-collapsed .app-collapse-btn i {
    transform: rotate(180deg);
  }
}

/* ==========================================================================
   TOPBAR (شريط التنقل العلوي البسيط والواضح)
   ========================================================================== */
.app-topbar {
  height: var(--app-topbar-height);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--app-line);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 1020;
  transition: var(--app-transition);
}

.app-menu-btn {
  display: none;
  background: var(--app-forest-soft);
  border: 1px solid var(--app-line);
  color: var(--app-forest);
  width: 44px;
  height: 44px;
  border-radius: var(--app-radius-sm);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.4rem;
  transition: var(--app-transition);
}
.app-menu-btn:hover {
  background: var(--app-forest);
  color: #fff;
}

.app-topbar-brand {
  display: none;
}
.app-topbar-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.app-topbar-title {
  min-width: 0;
}
.app-topbar-title small {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--app-muted);
  line-height: 1;
  margin-bottom: 0.15rem;
}
.app-page-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--app-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

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

/* User Account Dropdown */
.app-user-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 0.65rem 0.35rem 0.45rem;
  border: 1px solid var(--app-line);
  border-radius: 999px;
  background: #ffffff;
  cursor: pointer;
  transition: var(--app-transition);
  text-align: right;
}
.app-user-btn:hover {
  border-color: var(--app-forest);
  box-shadow: 0 4px 14px var(--app-forest-glow);
}

.app-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--app-forest) 0%, var(--app-forest-dark) 100%);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px var(--app-forest-glow);
}
.app-avatar-lg {
  width: 46px;
  height: 46px;
  font-size: 1.2rem;
}

.app-user-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.app-user-meta strong {
  font-size: 0.85rem;
  color: var(--app-ink);
  font-weight: 800;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-user-meta small {
  font-size: 0.68rem;
  color: var(--app-muted);
  font-weight: 600;
}
.app-user-caret {
  font-size: 0.75rem;
  color: var(--app-muted);
  margin-right: 0.2rem;
}

.app-user-menu {
  width: 250px;
  padding: 0.5rem;
  border-radius: var(--app-radius-md);
  border: 1px solid var(--app-line);
  margin-top: 0.5rem !important;
  text-align: right;
}
.app-user-menu-head {
  padding: 0.75rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--app-line);
  margin-bottom: 0.4rem;
}
.app-user-menu-head strong {
  display: block;
  font-size: 0.92rem;
  color: var(--app-ink);
}
.app-user-menu-head small {
  display: block;
  font-size: 0.72rem;
  color: var(--app-muted);
}
.app-user-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--app-radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--app-ink);
  text-align: right;
  transition: background 0.15s;
}
.app-user-menu .dropdown-item:hover {
  background: var(--app-forest-soft);
  color: var(--app-forest);
}
.app-user-menu .dropdown-item i {
  font-size: 1.05rem;
  color: var(--app-muted);
}
.app-user-menu .dropdown-item:hover i {
  color: var(--app-forest);
}
.app-user-menu .dropdown-item.text-danger:hover {
  background: #fdebea;
  color: #ad4540 !important;
}
.app-user-menu .dropdown-item.text-danger:hover i {
  color: #ad4540;
}

/* ==========================================================================
   SCHOOL BAR (شريط المدارس في الأعلى بتناسق مناسب وسلس)
   ========================================================================== */
.school-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--app-line);
  padding: 0.45rem 1.5rem;
  position: sticky;
  top: var(--app-topbar-height);
  z-index: 1015;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.school-bar-inner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.school-bar-inner::-webkit-scrollbar {
  height: 3px;
}
.school-bar-inner::-webkit-scrollbar-thumb {
  background: rgba(23, 107, 87, 0.2);
  border-radius: 3px;
}

.school-bar-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--app-forest);
  background: var(--app-forest-soft);
  border: 1px solid rgba(23, 107, 87, 0.15);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.school-bar-label small {
  font-size: 0.7rem;
  opacity: 0.85;
}

.school-bar-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.school-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.42rem 0.85rem;
  border-radius: var(--app-radius-sm);
  background: #f8faf8;
  border: 1px solid var(--app-line);
  color: var(--app-ink) !important;
  text-decoration: none !important;
  font-size: 0.85rem;
  white-space: nowrap;
  transition: var(--app-transition);
  flex-shrink: 0;
}
.school-chip:hover {
  background: #ffffff;
  border-color: var(--app-forest);
  color: var(--app-forest) !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.school-chip-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--app-line);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  color: var(--app-muted);
  transition: var(--app-transition);
}

.school-chip-text strong {
  display: block;
  font-weight: 800;
  line-height: 1.2;
}
.school-chip-text small {
  display: block;
  font-size: 0.65rem;
  color: var(--app-muted);
  letter-spacing: 0.02em;
}

.school-chip.active {
  background: linear-gradient(135deg, var(--app-forest) 0%, var(--app-forest-dark) 100%);
  border-color: var(--app-forest);
  color: #ffffff !important;
  box-shadow: 0 4px 14px var(--app-forest-glow);
}
.school-chip.active .school-chip-icon {
  background: rgba(255, 255, 255, 0.2);
  border-color: transparent;
  color: #ffffff;
}
.school-chip.active .school-chip-text small {
  color: rgba(255, 255, 255, 0.75);
}

.school-bar-add {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.85rem;
  border-radius: var(--app-radius-sm);
  background: var(--app-forest-soft);
  border: 1.5px dashed var(--app-forest);
  color: var(--app-forest) !important;
  text-decoration: none !important;
  font-weight: 800;
  font-size: 0.82rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--app-transition);
}
.school-bar-add:hover {
  background: var(--app-forest);
  color: #ffffff !important;
  border-style: solid;
  transform: translateY(-1px);
}

/* ==========================================================================
   APP CONTENT CONTAINER
   ========================================================================== */
.app-content {
  flex: 1;
  padding: 1.75rem 2rem 2.5rem;
  min-width: 0;
}

.app-footer {
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--app-line);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--app-muted);
  flex-wrap: wrap;
}
.app-footer nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.app-footer nav a {
  color: var(--app-muted) !important;
  text-decoration: none;
  transition: color 0.2s;
}
.app-footer nav a:hover {
  color: var(--app-forest) !important;
  text-decoration: underline;
}

/* ==========================================================================
   MOBILE BOTTOM NAVIGATION (التجاوب مع الجوال)
   ========================================================================== */
.app-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--app-bottom-nav-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--app-line);
  z-index: 1040;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

.app-bottom-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  color: var(--app-muted) !important;
  text-decoration: none !important;
  font-size: 0.72rem;
  font-weight: 700;
  border: none;
  background: transparent;
  padding: 0.4rem 0;
  cursor: pointer;
  transition: var(--app-transition);
  touch-action: manipulation;
}

.app-bottom-link i.bi {
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 0.2s, color 0.2s;
}

.app-bottom-link:hover,
.app-bottom-link:active {
  color: var(--app-forest) !important;
}

.app-bottom-link.active {
  color: var(--app-forest) !important;
}
.app-bottom-link.active i.bi {
  transform: translateY(-2px);
  color: var(--app-forest);
}
.app-bottom-link.active span {
  font-weight: 800;
}

/* ==========================================================================
   RESPONSIVENESS (الجوال والشاشات المتوسطة والصغيرة)
   ========================================================================== */
@media (max-width: 991.98px) {
  /* Sidebar off-canvas drawer */
  .app-sidebar {
    right: -320px;
    width: min(300px, 86vw);
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.35);
  }
  .app-sidebar.show {
    right: 0;
  }
  .app-sidebar-close {
    display: flex;
  }
  .app-collapse-btn {
    display: none;
  }

  /* Backdrop overlay */
  .app-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(13, 31, 26, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1045;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .app-sidebar-backdrop.show {
    opacity: 1;
    display: block !important;
  }

  .app-main-column {
    margin-right: 0 !important;
  }

  .app-topbar {
    padding: 0 1rem;
  }
  .app-menu-btn {
    display: flex;
  }
  .app-topbar-brand {
    display: block;
  }
  .app-topbar-title {
    margin-right: 0.25rem;
  }
  .app-page-title {
    font-size: 1.1rem;
  }
  .app-user-meta {
    display: none;
  }
  .app-user-caret {
    display: none;
  }
  .app-user-btn {
    padding: 2px;
    border-radius: 50%;
  }

  .school-bar {
    padding: 0.4rem 1rem;
  }
  .school-bar-label span {
    display: none;
  }
  .school-chip-text small {
    display: none;
  }

  .app-content {
    padding: 1.25rem 1rem;
  }
}

@media (max-width: 767.98px) {
  body.has-bottom-nav .app-content {
    padding-bottom: calc(var(--app-bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 1.5rem);
  }
  body.has-bottom-nav .app-footer {
    display: none; /* Mobile uses clean bottom padding instead */
  }

  .app-bottom-nav {
    display: flex;
  }

  .app-topbar {
    height: 60px;
  }
  :root {
    --app-topbar-height: 60px;
  }

  /* Button Harmonization on Mobile */
  .ops-hero-links {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem !important;
    width: 100%;
  }
  .ops-hero-links .btn {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    font-size: 0.85rem !important;
    padding: 0.5rem 0.75rem !important;
  }
  .ops-hero-links .btn:first-child:nth-last-child(odd) {
    grid-column: 1 / -1;
  }

  .action-tools {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important;
    width: 100% !important;
  }
  .action-tools .btn {
    width: 100% !important;
    min-height: 44px !important;
  }
  .ops-action-cta {
    width: 100% !important;
    align-items: stretch !important;
  }
  .ops-action-cta > div {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  .ops-action-cta .btn {
    width: 100% !important;
    min-height: 44px !important;
    justify-content: center !important;
  }
}

@media (max-width: 480px) {
  .ops-hero-links {
    grid-template-columns: 1fr !important;
  }
  .school-bar-label {
    padding: 0.4rem;
  }
  .school-bar-label i {
    font-size: 1rem;
  }
  .school-chip {
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
  }
  .school-bar-add span {
    display: none;
  }
}
