.admin-only,
.admin-accountant-only {
  display: none !important;
}

.menu-toggle {
  display: none;
}

.sidebar-overlay {
  display: none;
}

body {
  background: #f6f5f5;
}

tbody tr:hover {
  background: #f8fafc;
}

.profile-section {
  text-align: center;
  margin-bottom: 30px;
}

.profile-section img {
  margin-bottom: 5px;
}

.profile-section h3 {
  margin-bottom: 10px;
}

.sidebar-school-name {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.4;
  margin: 12px 14px 20px;
  padding: 11px 12px;
  overflow-wrap: anywhere;
  text-align: left;
}

.sidebar-school-name[hidden] {
  display: none !important;
}

/* Keep the shared school mark sized while route-specific stylesheets switch. */
.sidebar .logo img {
  width: 55px;
  height: 55px;
  flex: 0 0 55px;
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
}

@media screen and (max-width: 768px) {
.toast{
  border-radius: 10px;
}

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    top: 15px;
    left: 15px;
    position: fixed;
    background: #1d4ed8;
    color: #ffffff;
    border: none;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: left 0.3s ease;
  }

  input[type="date"],
  input[type="datetime-local"],
  input[type="time"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;

    min-height: 48px;
    line-height: normal;
    display: flex;
    align-items: center;
    padding: 0 12px;
  }

  .details-item label {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 6px;
  }

  .details-item p {
    font-weight: 500;
    color: #111827;
  }

  .details-item.full-width {
    grid-column: span 2;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 260px;
    height: 100vh;
    z-index: 1000;
    transition: left 0.3s ease-in-out;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
  }

  .sidebar.active {
    left: 0;
  }

  html.spa-navigating .sidebar {
    left: -280px !important;
    visibility: hidden !important;
    transition: none !important;
  }

  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
  }

  .sidebar-overlay.active {
    display: block;
    opacity: 1;
    visibility: visible;
  }

  html.spa-navigating .sidebar-overlay {
    display: none !important;
  }

  .settings-main-content,
  .academics-main-content,
  .dashboard-main-content,
  .finances-main-content,
  .books-main-content,
  .reports-main-content,
  .students-main-content,
  .teachers-main-content {
    margin-left: 0 !important;
    width: 100% !important;
    padding-top: 70px;
  }

  .menu li a,
  .sidebar-school-name {
    border-radius: 10px;
  }
}

.toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2147483647 !important;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.toast {
  min-width: 250px;
  padding: 12px 18px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s ease-in-out;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-success {
  background-color: #10b981;
}

.toast-error {
  background-color: #ef4444;
}

.toast-info {
  background-color: #3b82f6;
}

.toast-warning {
  background-color: #d97706;
}

.details-item label {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 6px;
}

.details-item p {
  font-weight: 500;
  color: #111827;
}

.details-item.full-width {
  grid-column: span 2;
}
/* Keep button icons in sync with their button text, including white icons on blue buttons. */
button i,
button .fa,
button svg,
a[class*="btn"] i,
a[class*="btn"] .fa,
a[class*="btn"] svg {
  color: inherit !important;
}

html.auth-welcome-open,
html.auth-welcome-open body {
  overflow: hidden !important;
  overscroll-behavior: none !important;
  touch-action: none;
}

