:root {
  --erp-primary: #4f6ef7;
  --erp-primary-dark: #3f57cf;
  --erp-primary-soft: #eef2ff;
  --erp-secondary: #7b819a;
  --erp-surface: #ffffff;
  --erp-surface-soft: #f8faff;
  --erp-page-bg: #f5f7fb;
  --erp-border: #e7ebf3;
  --erp-border-strong: #dce2ef;
  --erp-text: #1a2340;
  --erp-text-soft: #67718d;
  --erp-sidebar-bg: #12182b;
  --erp-sidebar-border: #222b45;
  --erp-sidebar-text: #9ba7d2;
  --erp-sidebar-active-bg: linear-gradient(135deg, #415adf 0%, #5974ff 100%);
  --erp-sidebar-active-text: #ffffff;
  --erp-success: #22c55e;
  --erp-success-soft: #eafbf1;
  --erp-danger: #ef476f;
  --erp-danger-soft: #fff1f5;
  --erp-warning: #f59e0b;
  --erp-warning-soft: #fff7e6;
  --erp-info: #06b6d4;
  --erp-info-soft: #e8fbff;
  --erp-shadow-sm: 0 8px 24px rgba(28, 39, 84, 0.06);
  --erp-shadow-md: 0 18px 44px rgba(28, 39, 84, 0.1);
  --erp-radius-sm: 12px;
  --erp-radius-md: 18px;
  --erp-radius-lg: 24px;
  --erp-font: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

html,
body {
  min-height: 100%;
}

body,
.wrapper,
.app-wrapper,
.app-main,
.app-content {
  font-family: var(--erp-font);
  background: linear-gradient(180deg, #f8faff 0%, #f5f7fb 100%);
  color: var(--erp-text);
}

.app-wrapper {
  min-height: 100vh;
}

.app-content {
  padding-bottom: 2rem;
}

.app-content > .container-fluid,
.app-content-header > .container-fluid,
.app-header .container-fluid {
  max-width: 1480px;
}

.app-content-header {
  padding-top: 1.75rem;
  padding-bottom: 0.35rem;
}

.app-content-header h3,
.page-title {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--erp-text);
}

.text-muted {
  color: var(--erp-text-soft) !important;
}

a {
  color: var(--erp-primary);
  text-decoration: none;
}

a:hover {
  color: var(--erp-primary-dark);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.88) !important;
  border-bottom: 1px solid rgba(231, 235, 243, 0.85) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.app-header .navbar-brand {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--erp-text) !important;
}

.app-header .btn.btn-outline-primary.btn-sm {
  border: 1px solid var(--erp-border);
  background: var(--erp-surface);
  color: var(--erp-text-soft);
  border-radius: 999px;
  padding: 0.58rem 1rem;
  font-weight: 700;
  font-size: 0.8rem;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.app-header .btn.btn-outline-primary.btn-sm:hover {
  color: var(--erp-primary);
  border-color: rgba(79, 110, 247, 0.25);
  background: var(--erp-primary-soft);
  transform: translateY(-1px);
}

.app-sidebar {
  background: linear-gradient(180deg, #12182b 0%, #0f1526 100%) !important;
  border-right: 1px solid var(--erp-sidebar-border);
  box-shadow: 12px 0 36px rgba(9, 14, 29, 0.24) !important;
}

.sidebar-brand {
  background: transparent !important;
}

.brand-link {
  display: flex;
  align-items: center;
  min-height: 74px;
  padding: 1.25rem 1.5rem !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  color: #fff !important;
}

.brand-text {
  font-size: 1.1rem;
  font-weight: 800 !important;
  color: #fff;
}

.sidebar-wrapper {
  padding: 1rem 0.75rem 1.25rem;
}

.nav.sidebar-menu {
  gap: 0.3rem;
}

.nav.sidebar-menu .nav-item {
  margin-bottom: 0.15rem;
}

.nav.sidebar-menu .nav-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  color: var(--erp-sidebar-text);
  font-weight: 700;
  transition: all 0.18s ease;
}

.nav.sidebar-menu .nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.nav.sidebar-menu .nav-link.active {
  background: var(--erp-sidebar-active-bg);
  color: var(--erp-sidebar-active-text);
  box-shadow: 0 16px 30px rgba(79, 110, 247, 0.24);
}

.nav.sidebar-menu .nav-icon {
  width: 1.1rem;
  margin-right: 0.85rem;
  font-size: 0.95rem;
}

.card {
  overflow: hidden;
  border: 1px solid rgba(231, 235, 243, 0.95);
  border-radius: var(--erp-radius-md);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--erp-shadow-sm);
}

.card.card-outline {
  border-top: 0;
}

.card-header {
  padding: 1.2rem 1.4rem;
  background: transparent;
  border-bottom: 1px solid var(--erp-border);
}

.card-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--erp-text);
  letter-spacing: -0.02em;
}

.card-title i,
.section-title-icon {
  color: var(--erp-primary);
  margin-right: 0.55rem;
}

.card-body {
  padding: 1.35rem 1.4rem;
}

.card-footer {
  background: transparent;
  border-top: 1px solid var(--erp-border);
  padding: 1rem 1.4rem 1.25rem;
}

.btn {
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 0.72rem 1.2rem;
  transition: all 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  border-color: var(--erp-primary);
  background: linear-gradient(135deg, var(--erp-primary) 0%, #6f85ff 100%);
  box-shadow: 0 14px 28px rgba(79, 110, 247, 0.22);
}

.btn-primary:hover,
.btn-primary:focus {
  border-color: var(--erp-primary-dark);
  background: linear-gradient(135deg, var(--erp-primary-dark) 0%, var(--erp-primary) 100%);
}

.btn-dark {
  background: #20252c;
  border-color: #20252c;
  box-shadow: 0 14px 28px rgba(32, 37, 44, 0.18);
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-danger,
.btn-light,
.btn-default {
  border-color: var(--erp-border-strong);
  background: #fff;
}

.btn-outline-primary {
  color: var(--erp-primary);
}

.btn-outline-primary:hover {
  background: var(--erp-primary-soft);
  color: var(--erp-primary-dark);
  border-color: rgba(79, 110, 247, 0.24);
}

.btn-outline-secondary {
  color: var(--erp-text-soft);
}

.btn-outline-secondary:hover {
  color: var(--erp-text);
  background: #f7f9fc;
}

.btn-outline-danger {
  color: var(--erp-danger);
  border-color: #ffd3dd;
}

.btn-outline-danger:hover {
  color: #fff;
  background: var(--erp-danger);
  border-color: var(--erp-danger);
}

.btn-sm {
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  font-size: 0.82rem;
}

.form-control,
.form-select,
.select2-selection,
.form-check-input {
  border-color: var(--erp-border-strong);
  border-radius: 14px;
  min-height: 48px;
  box-shadow: none !important;
}

.form-control,
.form-select {
  padding: 0.75rem 0.95rem;
  color: var(--erp-text);
  background: #fff;
}

.form-control::placeholder {
  color: #a0abc3;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(79, 110, 247, 0.45);
  box-shadow: 0 0 0 4px rgba(79, 110, 247, 0.08) !important;
}

.form-label,
label {
  margin-bottom: 0.55rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--erp-text);
}

.alert {
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 1rem 1.15rem;
  box-shadow: none;
}

.alert-info {
  color: #0c5d77;
  background: #daf6ff;
  border-color: #b6ebfb;
}

.alert-success {
  color: #0d6b39;
  background: #e8fbf0;
  border-color: #c8f3d8;
}

.table {
  --bs-table-bg: transparent;
}

.table thead th {
  padding: 1rem 1rem;
  border-top: 0;
  border-bottom: 1px solid var(--erp-border);
  color: var(--erp-text-soft);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(248, 250, 255, 0.85);
}

.table tbody td {
  padding: 1rem;
  border-color: var(--erp-border);
  color: var(--erp-text);
  vertical-align: middle;
}

.table tbody tr:hover {
  background: rgba(248, 250, 255, 0.8);
}

.badge,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.78rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.status-pill::before {
  content: "";
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: currentColor;
}

.status-pill--active {
  color: var(--erp-success);
  background: var(--erp-success-soft);
}

.status-pill--inactive,
.status-pill--dropped,
.status-pill--suspended {
  color: var(--erp-danger);
  background: var(--erp-danger-soft);
}

.status-pill--graduated {
  color: var(--erp-primary);
  background: var(--erp-primary-soft);
}

.student-filter-card .card-body {
  padding-bottom: 1.1rem;
}

.student-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.35rem;
}

.student-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid var(--erp-border);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  box-shadow: var(--erp-shadow-sm);
}

.student-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--erp-border);
}

.student-card__admission {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--erp-primary);
  letter-spacing: -0.02em;
}

.student-card__body {
  padding: 1.15rem 1.1rem 1rem;
}

.student-card__identity {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem;
  margin-bottom: 1rem;
  border-radius: 18px;
  background: linear-gradient(135deg, #f7f9ff 0%, #fbfcff 100%);
}

.student-card__avatar,
.profile-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--erp-primary) 0%, #7f8dff 100%);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  box-shadow: 0 16px 28px rgba(79, 110, 247, 0.22);
  overflow: hidden;
}

.student-card__avatar img,
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.student-card__name {
  margin: 0 0 0.2rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.student-card__subtitle {
  color: var(--erp-text-soft);
  font-size: 0.88rem;
}

.student-card__subtitle i {
  color: var(--erp-primary);
  margin-right: 0.3rem;
}

.student-card__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.student-card__meta-item {
  padding: 0.75rem 0;
  border-top: 1px dashed var(--erp-border);
}

.student-card__meta-label {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--erp-text-soft);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.student-card__meta-label i,
.detail-label i,
.profile-summary-label i {
  margin-right: 0.35rem;
  color: var(--erp-primary);
}

.student-card__meta-value {
  font-size: 0.95rem;
  font-weight: 700;
}

.student-card__contact {
  min-height: 2.8rem;
  margin-bottom: 1rem;
  color: var(--erp-text-soft);
  font-size: 0.9rem;
}

.student-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0 1.1rem 1.1rem;
}

.student-card__actions .btn {
  flex: 1 1 auto;
}

.student-empty-state {
  padding: 3.5rem 1rem;
  text-align: center;
  color: var(--erp-text-soft);
}

.student-profile-shell {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 1.5rem;
}

.student-profile-sidebar .card,
.student-profile-main .card {
  height: 100%;
}

.profile-card__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.profile-avatar {
  width: 108px;
  height: 108px;
  border-radius: 28px;
  font-size: 2rem;
}

.profile-name {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.profile-code {
  color: var(--erp-primary);
  font-size: 1rem;
  font-weight: 800;
}

.profile-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.profile-summary-item {
  padding: 1rem;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
  border: 1px solid var(--erp-border);
}

.profile-summary-label {
  display: block;
  color: var(--erp-text-soft);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.profile-summary-value {
  font-size: 1rem;
  font-weight: 800;
}

.profile-contact-list,
.info-list {
  display: grid;
  gap: 0.9rem;
}

.profile-contact-item,
.info-list__item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: #f9fbff;
  border: 1px solid var(--erp-border);
}

.profile-contact-icon,
.info-list__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 12px;
  background: var(--erp-primary-soft);
  color: var(--erp-primary);
}

.profile-section-title {
  margin: 0 0 0.9rem;
  font-size: 1.2rem;
  font-weight: 800;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.detail-item {
  padding: 1rem 1.05rem;
  border-radius: 16px;
  border: 1px solid var(--erp-border);
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.detail-item--wide {
  grid-column: span 3;
}

.detail-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--erp-text-soft);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.detail-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--erp-text);
}

.guardian-list {
  display: grid;
  gap: 1rem;
}

.guardian-card {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) repeat(4, minmax(120px, 1fr));
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border: 1px solid var(--erp-border);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.guardian-card__person {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.guardian-card__avatar {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, #dde6ff 0%, #eef2ff 100%);
  color: var(--erp-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.guardian-card__name {
  font-size: 1rem;
  font-weight: 800;
}

.guardian-card__role,
.guardian-card__muted {
  color: var(--erp-text-soft);
  font-size: 0.88rem;
}

.guardian-chip-list {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.info-note {
  color: var(--erp-text-soft);
  line-height: 1.7;
}

.timetable-filter-bar,
.timetable-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.js-slot-cell {
  min-height: 104px;
  border-radius: 18px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  transition: all 0.18s ease;
}

.js-slot-cell:hover {
  transform: translateY(-2px);
  border-color: rgba(79, 110, 247, 0.24) !important;
  box-shadow: 0 14px 28px rgba(31, 41, 55, 0.08);
}

.table td .js-slot-cell {
  box-shadow: none;
}

#assignSlotModal .modal-content {
  border: 0;
  border-radius: 24px;
  box-shadow: var(--erp-shadow-md);
}

#assignSlotModal .modal-header,
#assignSlotModal .modal-footer {
  border-color: var(--erp-border);
  padding: 1.2rem 1.35rem;
}

#assignSlotModal .modal-body {
  padding: 1.35rem;
}

.pagination .page-link {
  min-width: 40px;
  height: 40px;
  border: 1px solid var(--erp-border);
  border-radius: 12px !important;
  margin: 0 0.2rem;
  color: var(--erp-text-soft);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.pagination .active .page-link,
.pagination .page-link:hover {
  color: #fff;
  background: var(--erp-primary);
  border-color: var(--erp-primary);
}

.dashboard-hero {
  position: relative;
  overflow: hidden;
  border: 0;
  background: linear-gradient(135deg, #243b7b 0%, #3657d9 55%, #6d86ff 100%);
  box-shadow: 0 24px 48px rgba(53, 88, 230, 0.22);
}

.dashboard-hero::before,
.dashboard-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.dashboard-hero::before {
  top: -42px;
  right: 80px;
  width: 180px;
  height: 180px;
}

.dashboard-hero::after {
  right: -30px;
  bottom: -50px;
  width: 220px;
  height: 220px;
}

.dashboard-hero .card-body {
  padding: 2rem 2rem;
}

.dashboard-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.dashboard-eyebrow {
  display: inline-block;
  margin-bottom: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.dashboard-hero__title {
  margin: 0 0 0.75rem;
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.dashboard-hero__text {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  line-height: 1.7;
}

.dashboard-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.dashboard-hero__actions .btn-outline-secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.dashboard-hero__actions .btn-outline-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.dashboard-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
}

.dashboard-stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.2rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--erp-border);
  box-shadow: var(--erp-shadow-sm);
}

.dashboard-stat-card__icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  flex: 0 0 58px;
}

.dashboard-stat-card--primary .dashboard-stat-card__icon {
  background: linear-gradient(135deg, #4f6ef7 0%, #7f92ff 100%);
}

.dashboard-stat-card--success .dashboard-stat-card__icon {
  background: linear-gradient(135deg, #22c55e 0%, #5ddb8f 100%);
}

.dashboard-stat-card--warning .dashboard-stat-card__icon {
  background: linear-gradient(135deg, #f59e0b 0%, #f8bc51 100%);
}

.dashboard-stat-card--info .dashboard-stat-card__icon {
  background: linear-gradient(135deg, #06b6d4 0%, #57d9ee 100%);
}

.dashboard-stat-card__label {
  color: var(--erp-text-soft);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.dashboard-stat-card__value {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--erp-text);
}

.dashboard-stat-card__meta {
  margin-top: 0.25rem;
  color: var(--erp-text-soft);
  font-size: 0.84rem;
}

.dashboard-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.dashboard-mini-card {
  padding: 1.1rem;
  border-radius: 18px;
  border: 1px solid var(--erp-border);
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.dashboard-mini-card__label {
  color: var(--erp-text-soft);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.dashboard-mini-card__value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--erp-text);
}

.dashboard-status-list {
  display: grid;
  gap: 0.9rem;
}

.dashboard-status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  border: 1px solid var(--erp-border);
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.dashboard-status-item__label {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--erp-text);
  margin-bottom: 0.5rem;
}

.dashboard-status-item__value {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--erp-text);
}

.dashboard-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

.dashboard-quick-grid__item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid var(--erp-border);
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  color: var(--erp-text);
  font-weight: 700;
}

.dashboard-quick-grid__item:hover {
  border-color: rgba(79, 110, 247, 0.2);
  background: var(--erp-primary-soft);
  color: var(--erp-primary-dark);
  transform: translateY(-1px);
}

.dashboard-quick-grid__icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4f6ef7 0%, #7f92ff 100%);
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background: #ced6ea;
  border-radius: 999px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

@media (max-width: 1399.98px) {
  .student-grid,
  .dashboard-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1199.98px) {
  .student-profile-shell {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-item--wide {
    grid-column: span 2;
  }

  .guardian-card {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-summary-grid,
  .dashboard-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .student-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-hero__content {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 767.98px) {
  .app-header .container-fluid {
    gap: 0.75rem;
  }

  .app-header .ms-auto {
    width: 100%;
  }

  .student-grid,
  .dashboard-summary-grid,
  .dashboard-mini-grid,
  .dashboard-quick-grid,
  .profile-summary-grid,
  .detail-grid,
  .guardian-card {
    grid-template-columns: 1fr;
  }

  .detail-item--wide {
    grid-column: span 1;
  }

  .student-card__actions {
    flex-direction: column;
  }
}
.campus-sidebar-toggle {
  width: 42px;
  height: 42px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 12px;
}

.campus-sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 14, 29, 0.52);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  z-index: 1038;
}

@media (max-width: 991.98px) {
  body {
    overflow-x: hidden;
  }

  .campus-sidebar-toggle {
    display: inline-flex;
  }

  .campus-header .container-fluid {
    align-items: flex-start;
  }

  .campus-header__title-wrap {
    min-width: 0;
  }

  .app-header .navbar-brand {
    font-size: 1rem;
    white-space: normal;
    line-height: 1.25;
  }

  .campus-user-badge {
    max-width: 100%;
    white-space: normal;
  }

  .app-sidebar.campus-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 300px !important;
    min-width: 300px !important;
    max-width: 82vw !important;
    margin-left: 0 !important;
    inset-inline-start: 0 !important;
    z-index: 1039 !important;
    transform: translateX(-105%) !important;
    transition: transform 0.24s ease !important;
    overflow-x: hidden;
  }

  .app-sidebar.campus-sidebar .sidebar-brand,
  .app-sidebar.campus-sidebar .sidebar-wrapper,
  .app-sidebar.campus-sidebar .sidebar-menu {
    width: 100% !important;
  }

  .campus-sidebar-open .app-sidebar.campus-sidebar,
  .sidebar-open .app-sidebar.campus-sidebar {
    transform: translateX(0) !important;
  }

  .campus-sidebar-open .campus-sidebar-overlay,
  .sidebar-open .campus-sidebar-overlay {
    opacity: 1;
    visibility: visible;
  }

  .campus-sidebar-open,
  .sidebar-open {
    overflow: hidden;
  }

  .app-main {
    margin-left: 0 !important;
  }
}

@media (max-width: 575.98px) {
  .app-header .container-fluid {
    gap: 0.6rem;
  }

  .campus-header__actions {
    width: 100%;
    justify-content: space-between;
  }

  .campus-user-badge {
    font-size: 0.7rem;
    padding: 0.45rem 0.8rem !important;
  }
}

