:root {
  --cge-primary: #1a4f8a;
  --cge-primary-dark: #123662;
  --cge-primary-light: #2d6cb5;
  --cge-accent: #e8a317;
  --cge-accent-soft: #fff4dc;
  --cge-success: #0d9488;
  --cge-surface: #f4f7fb;
  --cge-card: #ffffff;
  --cge-text: #1e293b;
  --cge-text-muted: #64748b;
  --cge-sidebar-bg: linear-gradient(180deg, #0f2d52 0%, #1a4f8a 55%, #163d6e 100%);
  --cge-radius: 10px;
  --cge-shadow: 0 4px 18px rgba(15, 45, 82, 0.06);
  --cge-shadow-lg: 0 12px 32px rgba(15, 45, 82, 0.1);

  /* Compact layout scale (applies site-wide via rem) */
  --cge-font-size-base: 0.875rem;
  --cge-line-height: 1.45;
  --cge-space-xs: 0.25rem;
  --cge-space-sm: 0.5rem;
  --cge-space-md: 0.75rem;
  --cge-space-lg: 1rem;
  --cge-space-xl: 1.25rem;

  --cui-primary: var(--cge-primary);
  --cui-primary-rgb: 26, 79, 138;
  --cui-link-color: var(--cge-primary-light);
  --cui-link-hover-color: var(--cge-primary-dark);
  --cui-body-bg: var(--cge-surface);
  --cui-body-color: var(--cge-text);
  --cui-body-font-size: var(--cge-font-size-base);
  --cui-body-line-height: var(--cge-line-height);
  --cui-border-radius: 0.5rem;
  --cui-border-radius-lg: 0.65rem;
  --cui-font-sans-serif: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --cui-body-font-family: var(--cui-font-sans-serif);
}

html {
  font-size: 15px;
}

body {
  font-family: var(--cui-body-font-family);
  font-size: var(--cge-font-size-base);
  line-height: var(--cge-line-height);
  color: var(--cge-text);
  background: var(--cge-surface);
}

/* —— Global density (all admin pages using .wrapper) —— */
.wrapper {
  font-size: var(--cge-font-size-base);
}

.wrapper h1, .wrapper .h1 { font-size: 1.35rem; font-weight: 700; margin-bottom: var(--cge-space-sm); }
.wrapper h2, .wrapper .h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: var(--cge-space-sm); }
.wrapper h3, .wrapper .h3 { font-size: 1.05rem; font-weight: 650; margin-bottom: var(--cge-space-xs); }
.wrapper h4, .wrapper .h4 { font-size: 0.95rem; font-weight: 650; }
.wrapper h5, .wrapper .h5 { font-size: 0.875rem; font-weight: 600; }
.wrapper h6, .wrapper .h6 { font-size: 0.8125rem; font-weight: 600; }

.wrapper .body.flex-grow-1,
.wrapper > .body {
  padding: var(--cge-space-md) var(--cge-space-lg) var(--cge-space-xl) !important;
}

.wrapper .body.flex-grow-1.px-0 {
  padding-left: var(--cge-space-md) !important;
  padding-right: var(--cge-space-md) !important;
}

.wrapper .container,
.wrapper .container-lg,
.wrapper .container-fluid {
  padding-left: var(--cge-space-md);
  padding-right: var(--cge-space-md);
  max-width: 100%;
}

.wrapper .body p {
  text-indent: 0 !important;
  margin-bottom: var(--cge-space-sm);
  font-size: var(--cge-font-size-base);
  line-height: var(--cge-line-height);
}

.wrapper .mb-4 { margin-bottom: var(--cge-space-lg) !important; }
.wrapper .mb-3 { margin-bottom: var(--cge-space-md) !important; }
.wrapper .mt-4 { margin-top: var(--cge-space-lg) !important; }
.wrapper .mt-3 { margin-top: var(--cge-space-md) !important; }
.wrapper .my-4 { margin-top: var(--cge-space-lg) !important; margin-bottom: var(--cge-space-lg) !important; }
.wrapper .py-4 { padding-top: var(--cge-space-lg) !important; padding-bottom: var(--cge-space-lg) !important; }
.wrapper .py-3 { padding-top: var(--cge-space-md) !important; padding-bottom: var(--cge-space-md) !important; }
.wrapper .p-4 { padding: var(--cge-space-lg) !important; }
.wrapper .p-3 { padding: var(--cge-space-md) !important; }

.wrapper .row {
  --cui-gutter-x: 0.75rem;
  --cui-gutter-y: 0.75rem;
}

.wrapper .card {
  margin-bottom: var(--cge-space-md);
}

.wrapper .card-body {
  padding: var(--cge-space-md) var(--cge-space-lg);
}

.wrapper .card-header {
  padding: var(--cge-space-sm) var(--cge-space-lg);
  font-size: 0.8125rem;
  font-weight: 650;
}

.wrapper .form-label,
.wrapper label.form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: var(--cge-text);
}

.wrapper .form-control,
.wrapper .form-select,
.wrapper .input-group-text {
  font-size: 0.8125rem;
  padding: 0.35rem 0.65rem;
  min-height: calc(1.5em + 0.5rem + 2px);
}

.wrapper .input-group-text {
  padding: 0.35rem 0.55rem;
}

.wrapper .form-group {
  margin-bottom: var(--cge-space-md);
}

.wrapper .btn {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  line-height: 1.35;
}

.wrapper .btn-sm,
.wrapper .btn.p-1 {
  padding: 0.2rem 0.45rem !important;
  font-size: 0.75rem;
}

.wrapper .btn.pl-3.pr-3.pt-1.pb-1,
.wrapper a.btn[style*="float:RIGHT"],
.wrapper a.btn[style*="float:right"] {
  float: none !important;
  margin-bottom: 0 !important;
}

.cge-page-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--cge-space-sm);
  margin-bottom: var(--cge-space-md);
  padding-bottom: var(--cge-space-sm);
  border-bottom: 1px solid rgba(26, 79, 138, 0.08);
}

.cge-page-toolbar .cge-page-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--cge-primary-dark);
  margin: 0;
}

.cge-page-toolbar .cge-page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--cge-space-sm);
  margin-left: auto;
}

.wrapper .dataTables_wrapper {
  font-size: 0.8125rem;
  padding-top: var(--cge-space-xs);
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

/* Export / print + search on one compact row */
.cge-dt-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
  width: 100%;
}

.cge-dt-export {
  flex: 0 1 auto;
}

.cge-dt-export .dt-buttons {
  float: none !important;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 !important;
}

.cge-dt-export .dt-button,
.cge-dt-export .btn {
  margin: 0 !important;
  padding: 0.28rem 0.55rem !important;
  font-size: 0.75rem !important;
  line-height: 1.25 !important;
}

.cge-dt-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem 1rem;
  margin-left: auto;
}

.cge-dt-meta .dataTables_length,
.cge-dt-meta .dataTables_filter {
  float: none !important;
  margin: 0 !important;
  text-align: left;
}

.cge-dt-meta .dataTables_filter label {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Legacy Bfrtip: reduce gap when buttons sit above controls */
.wrapper .dataTables_wrapper > .dt-buttons {
  float: none;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.35rem 0 !important;
}

.cge-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: var(--cge-space-sm);
}

.cge-table-wrap .table {
  width: 100% !important;
  max-width: 100%;
  margin-bottom: 0;
}

.cge-table-wrap table.dataTable {
  width: 100% !important;
}

.cge-student-thumb {
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.cge-col-actions {
  white-space: nowrap;
  width: 1%;
}

.cge-col-actions .list-inline {
  margin-bottom: 0;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}

.cge-col-actions .list-inline-item {
  margin: 0 !important;
}

.wrapper .dataTables_wrapper .dataTables_length,
.wrapper .dataTables_wrapper .dataTables_filter {
  margin-bottom: var(--cge-space-sm);
}

.wrapper .dataTables_wrapper .dataTables_length select,
.wrapper .dataTables_wrapper .dataTables_filter input {
  font-size: 0.8125rem;
  padding: 0.25rem 0.5rem;
}

.wrapper .dataTables_wrapper .dataTables_info,
.wrapper .dataTables_wrapper .dataTables_paginate {
  font-size: 0.75rem;
  margin-top: var(--cge-space-sm);
}

.wrapper .dataTables_wrapper .page-link {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

.wrapper .modal-header {
  padding: var(--cge-space-sm) var(--cge-space-md);
}

.wrapper .modal-body {
  padding: var(--cge-space-md);
  font-size: var(--cge-font-size-base);
}

.wrapper .modal-footer {
  padding: var(--cge-space-sm) var(--cge-space-md);
}

.wrapper .breadcrumb {
  font-size: 0.75rem;
  margin-bottom: var(--cge-space-sm);
}

.wrapper .font,
.wrapper .font1 {
  font-size: 0.8125rem !important;
}


.wrapper.bg-light {
  background: linear-gradient(160deg, #eef3f9 0%, #f8fafc 45%, #edf2f7 100%) !important;
}

/* —— Sidebar —— */
.sidebar.sidebar-dark {
  background: var(--cge-sidebar-bg) !important;
  border-right: none;
  box-shadow: 4px 0 24px rgba(15, 45, 82, 0.15);
}

.sidebar .sidebar-nav .nav-link {
  border-radius: 8px;
  margin: 1px 8px;
  padding: 0.4rem 0.65rem;
  color: rgba(255, 255, 255, 0.82) !important;
  font-weight: 500;
  font-size: 0.8125rem;
  line-height: 1.35;
  transition: background 0.2s ease, color 0.2s ease;
}

.sidebar .sidebar-nav .nav-group-toggle {
  padding: 0.45rem 0.65rem;
  font-size: 0.8125rem;
}

.sidebar .sidebar-nav .nav-link:hover,
.sidebar .sidebar-nav .nav-link.active {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
}

.sidebar .sidebar-nav .nav-group-items .nav-link {
  padding-left: 1.85rem;
  font-size: 0.78rem;
  font-weight: 450;
  padding-top: 0.32rem;
  padding-bottom: 0.32rem;
}

.sidebar .nav-icon {
  opacity: 0.9;
  color: var(--cge-accent);
}

.cge-sidebar-brand {
  flex-direction: column;
  align-items: flex-start !important;
  padding: 0.85rem 0.75rem 0.65rem !important;
  min-height: auto !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 0.25rem;
}

.cge-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cge-accent) 0%, #f5c542 100%);
  color: var(--cge-primary-dark);
  font-weight: 800;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.04em;
  margin-bottom: 0.45rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.cge-brand-title {
  color: #fff;
  font-weight: 700;
  font-size: 0.8125rem;
  line-height: 1.2;
  margin: 0;
}

.cge-brand-branch {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.68rem;
  line-height: 1.3;
  margin-top: 0.25rem;
  max-width: 100%;
}

/* —— Header —— */
.header.header-sticky.cge-app-header {
  position: relative;
  background: linear-gradient(105deg, #0f2d52 0%, #1a4f8a 48%, #1e5a96 100%) !important;
  border-bottom: none;
  box-shadow: 0 4px 20px rgba(15, 45, 82, 0.22);
  min-height: auto;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
}

.header.header-sticky.cge-app-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 120% at 100% -20%, rgba(232, 163, 23, 0.18) 0%, transparent 55%);
  pointer-events: none;
}

.header.header-sticky.mb-4 {
  margin-bottom: 0.65rem !important;
}

.cge-app-header .container-fluid {
  position: relative;
  z-index: 1;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.cge-header-accent-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--cge-accent) 0%, #f5c542 45%, var(--cge-accent) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12);
}

.cge-header-toggler,
.cge-app-header .header-toggler {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
}

.cge-header-toggler:hover,
.cge-app-header .header-toggler:hover {
  background: rgba(255, 255, 255, 0.18);
}

.cge-header-brand {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.cge-header-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.cge-header-subtitle {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
}

.cge-header-branch-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: min(100%, 280px);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cge-header-branch-icon {
  width: 0.9rem;
  height: 0.9rem;
  flex-shrink: 0;
  color: var(--cge-accent);
}

.cge-header-prefs {
  margin-left: auto;
}

.cge-header-pref {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0;
}

.cge-header-pref-label {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.75);
}

.cge-header-select {
  min-width: 7.5rem;
  border-radius: 8px;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.95);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cge-primary-dark);
}

@media (max-width: 767.98px) {
  .cge-header-prefs {
    width: 100%;
    order: 3;
  }
  .cge-header-pref {
    flex: 1 1 45%;
  }
  .cge-header-select {
    width: 100%;
  }
}

/* —— Main content —— */
.body.flex-grow-1 {
  padding-top: 0 !important;
}

.container-lg > p:first-of-type,
.body > .container-lg > p,
.wrapper .body > p:first-of-type {
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--cge-primary-dark);
  margin-bottom: var(--cge-space-sm);
}

/* —— Cards —— */
.card {
  border: none;
  border-radius: var(--cge-radius);
  box-shadow: var(--cge-shadow);
  overflow: hidden;
}

.card-header {
  background: #fff;
  border-bottom: 1px solid rgba(26, 79, 138, 0.08);
  font-weight: 700;
  color: var(--cge-primary-dark);
}

.cge-stat-card {
  border: none;
  border-radius: var(--cge-radius);
  padding: var(--cge-space-md) var(--cge-space-lg);
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 96px;
  box-shadow: var(--cge-shadow);
}

.cge-stat-card .cge-stat-value {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.cge-stat-card .cge-stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.92;
  margin-top: 0.2rem;
}

.cge-quick-link {
  display: flex;
  align-items: center;
  gap: var(--cge-space-sm);
  padding: var(--cge-space-sm) var(--cge-space-md);
  border-radius: var(--cge-radius);
  background: var(--cge-card);
  border: 1px solid rgba(26, 79, 138, 0.08);
  text-decoration: none !important;
  color: var(--cge-text) !important;
  font-weight: 600;
  font-size: 0.8125rem;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 1px 4px rgba(15, 45, 82, 0.04);
}

.cge-quick-link:hover {
  transform: translateY(-1px);
  box-shadow: var(--cge-shadow);
  border-color: rgba(26, 79, 138, 0.2);
  color: var(--cge-primary) !important;
}

.cge-quick-link-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cge-accent-soft);
  color: var(--cge-primary);
  flex-shrink: 0;
}

.cge-page-hero {
  background: linear-gradient(120deg, #fff 0%, #f0f6ff 100%);
  border-radius: var(--cge-radius);
  padding: var(--cge-space-lg);
  margin-bottom: var(--cge-space-md);
  border: 1px solid rgba(26, 79, 138, 0.08);
  box-shadow: var(--cge-shadow);
}

.cge-page-hero h1 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--cge-primary-dark);
  margin-bottom: 0.25rem;
  letter-spacing: -0.03em;
}

.cge-page-hero p {
  color: var(--cge-text-muted);
  margin: 0;
  font-size: 0.8125rem;
  line-height: var(--cge-line-height);
}

/* —— Dashboard main menu boxes —— */
.cge-menu-search {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
  padding: 0.45rem 0.75rem;
  background: #fff;
  border: 1px solid rgba(26, 79, 138, 0.1);
  border-radius: 12px;
  box-shadow: var(--cge-shadow);
}

.cge-menu-search-icon {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 1.05rem;
  fill: var(--cge-primary);
}

.cge-menu-search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--cge-text);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.28rem 0;
}

.cge-menu-search input::placeholder {
  color: var(--cge-text-muted);
  font-weight: 450;
}

.cge-menu-search input::-webkit-search-cancel-button {
  display: none;
}

.cge-menu-search-clear {
  border: 0;
  background: var(--cge-accent-soft);
  color: var(--cge-primary-dark);
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
}

.cge-menu-search-empty {
  margin: 0 0 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: #fff;
  color: var(--cge-text-muted);
  font-size: 0.85rem;
  box-shadow: var(--cge-shadow);
}

.cge-menu-box[hidden],
.cge-menu-section-col[hidden] {
  display: none !important;
}

.cge-menu-sections {
  padding-bottom: var(--cge-space-md);
}

.cge-menu-section {
  border: none;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(15, 45, 82, 0.08);
  overflow: hidden;
  background: #fff;
}

.cge-menu-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(26, 79, 138, 0.06);
  padding: 0.75rem 1rem;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
}

.cge-menu-section-header:hover {
  background: #f8fafc;
}

.cge-menu-section-header:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.35);
}

.cge-menu-section-header-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.cge-section-chevron {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 79, 138, 0.06);
  color: var(--cge-primary);
  transition: transform 0.25s ease, background 0.15s ease;
}

.cge-section-chevron .icon {
  width: 1rem;
  height: 1rem;
}

.cge-menu-section-header[aria-expanded="false"] .cge-section-chevron {
  transform: rotate(-90deg);
}

.cge-menu-section-header[aria-expanded="false"] .cge-section-chevron {
  background: rgba(26, 79, 138, 0.1);
}

.cge-menu-section-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.cge-menu-section-icon {
  width: 1.35rem;
  height: 1.35rem;
  color: #fff;
}

.cge-menu-section-title {
  color: var(--cge-primary-dark);
  letter-spacing: -0.02em;
}

.cge-menu-section .card-body {
  padding: 0.85rem 1rem 1rem;
  background: #eef3f9;
}

.cge-menu-box-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 0.65rem;
}

.cge-menu-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 0.5rem;
  min-height: 108px;
  padding: 0.85rem 0.55rem 0.65rem;
  border-radius: 12px;
  background: #f0f4fa;
  border: 1px solid rgba(26, 79, 138, 0.14);
  text-decoration: none !important;
  color: var(--cge-text) !important;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease, background 0.2s ease;
  box-shadow: 0 2px 10px rgba(15, 45, 82, 0.06);
}

.cge-menu-box:hover {
  transform: translateY(-4px);
  border-color: rgba(26, 79, 138, 0.22);
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 45, 82, 0.14);
  color: var(--cge-primary-dark) !important;
}

.cge-menu-box-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.cge-menu-box:hover .cge-menu-box-icon {
  transform: scale(1.06);
}

.cge-menu-box-svg,
.cge-menu-box-icon .icon {
  width: 1.5rem;
  height: 1.5rem;
  color: #fff;
  fill: currentColor;
}

.cge-menu-box-label {
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.3;
  max-width: 100%;
  word-break: break-word;
  padding: 0 0.15rem;
}

.cge-menu-box-arrow {
  position: absolute;
  top: 0.45rem;
  right: 0.5rem;
  font-size: 0.7rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  color: var(--cge-primary-light);
  font-weight: 700;
}

.cge-menu-box:hover .cge-menu-box-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Section accent colors */
.cge-menu-section--blue .cge-menu-section-badge {
  background: linear-gradient(135deg, #1a4f8a, #3b82f6);
}
.cge-menu-section--blue .cge-menu-box-icon {
  background: linear-gradient(145deg, #1e5a9e, #2563eb);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.cge-menu-section--teal .cge-menu-section-badge {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
}
.cge-menu-section--teal .cge-menu-box-icon {
  background: linear-gradient(145deg, #0d9488, #2dd4bf);
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.35);
}

.cge-menu-section--purple .cge-menu-section-badge {
  background: linear-gradient(135deg, #5b21b6, #8b5cf6);
}
.cge-menu-section--purple .cge-menu-box-icon {
  background: linear-gradient(145deg, #6d28d9, #a78bfa);
  box-shadow: 0 6px 16px rgba(109, 40, 217, 0.35);
}

.cge-menu-section--indigo .cge-menu-section-badge {
  background: linear-gradient(135deg, #3730a3, #6366f1);
}
.cge-menu-section--indigo .cge-menu-box-icon {
  background: linear-gradient(145deg, #4338ca, #818cf8);
  box-shadow: 0 6px 16px rgba(67, 56, 202, 0.35);
}

.cge-menu-section--orange .cge-menu-section-badge {
  background: linear-gradient(135deg, #c2410c, #f97316);
}
.cge-menu-section--orange .cge-menu-box-icon {
  background: linear-gradient(145deg, #ea580c, #fb923c);
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.35);
}

.cge-menu-section--gold .cge-menu-section-badge {
  background: linear-gradient(135deg, #b45309, #eab308);
}
.cge-menu-section--gold .cge-menu-box-icon {
  background: linear-gradient(145deg, #d97706, #fbbf24);
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.35);
}

.cge-menu-section--slate .cge-menu-section-badge {
  background: linear-gradient(135deg, #334155, #64748b);
}
.cge-menu-section--slate .cge-menu-box-icon {
  background: linear-gradient(145deg, #475569, #94a3b8);
  box-shadow: 0 6px 16px rgba(71, 85, 105, 0.35);
}

.cge-menu-section--blue { border-top: 3px solid #2563eb; }
.cge-menu-section--blue .card-body { background: #e8f0fb; }
.cge-menu-section--blue .cge-menu-box { background: #dce8f7; border-color: rgba(37, 99, 235, 0.2); }

.cge-menu-section--teal { border-top: 3px solid #14b8a6; }
.cge-menu-section--teal .card-body { background: #e6f7f5; }
.cge-menu-section--teal .cge-menu-box { background: #d0f0eb; border-color: rgba(20, 184, 166, 0.22); }

.cge-menu-section--purple { border-top: 3px solid #8b5cf6; }
.cge-menu-section--purple .card-body { background: #f0ebfc; }
.cge-menu-section--purple .cge-menu-box { background: #e4d9fa; border-color: rgba(139, 92, 246, 0.22); }

.cge-menu-section--indigo { border-top: 3px solid #6366f1; }
.cge-menu-section--indigo .card-body { background: #eceefd; }
.cge-menu-section--indigo .cge-menu-box { background: #dde1fc; border-color: rgba(99, 102, 241, 0.22); }

.cge-menu-section--orange { border-top: 3px solid #f97316; }
.cge-menu-section--orange .card-body { background: #fff1e8; }
.cge-menu-section--orange .cge-menu-box { background: #ffe4d1; border-color: rgba(249, 115, 22, 0.22); }

.cge-menu-section--gold { border-top: 3px solid #eab308; }
.cge-menu-section--gold .card-body { background: #fef8e7; }
.cge-menu-section--gold .cge-menu-box { background: #fcefc2; border-color: rgba(234, 179, 8, 0.28); }

.cge-menu-section--slate { border-top: 3px solid #64748b; }
.cge-menu-section--slate .card-body { background: #eef1f5; }
.cge-menu-section--slate .cge-menu-box { background: #e2e8f0; border-color: rgba(100, 116, 139, 0.25); }

@media (min-width: 992px) {
  .cge-menu-box-grid {
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  }
}

@media (max-width: 575.98px) {
  .cge-menu-box-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cge-menu-box {
    min-height: 100px;
  }
  .cge-menu-box-icon {
    width: 46px;
    height: 46px;
  }
}

.cge-stat-card.cge-stat-primary {
  background: linear-gradient(135deg, #1a4f8a, #2563a8);
}

.cge-stat-card.cge-stat-teal {
  background: linear-gradient(135deg, #0d9488, #14b8a6);
}

.cge-stat-card.cge-stat-gold {
  background: linear-gradient(135deg, #b45309, #e8a317);
}

.cge-stat-card.cge-stat-indigo {
  background: linear-gradient(135deg, #4338ca, #6366f1);
}

/* —— Buttons —— */
.btn {
  font-weight: 600;
  border-radius: 8px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.35;
  transition: transform 0.12s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cge-primary) 0%, var(--cge-primary-light) 100%);
  border: none;
  box-shadow: 0 4px 14px rgba(26, 79, 138, 0.35);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, var(--cge-primary-dark) 0%, var(--cge-primary) 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(26, 79, 138, 0.4);
}

.btn-success {
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  border: none;
}

.btn-warning {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  border: none;
  color: #fff !important;
}

/* —— Forms & tables —— */
.form-control,
.form-select,
.input-group-text {
  border-radius: 10px !important;
  border-color: rgba(26, 79, 138, 0.15);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--cge-primary-light);
  box-shadow: 0 0 0 0.2rem rgba(26, 79, 138, 0.15);
}

.table {
  border-collapse: separate;
  border-spacing: 0;
}

.table thead th,
table.dataTable thead th {
  background: linear-gradient(180deg, #1a4f8a, #2563a8) !important;
  color: #fff !important;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: none !important;
  padding: 0.5rem 0.55rem !important;
  white-space: nowrap;
}

.table thead th:first-child {
  border-radius: 10px 0 0 0;
}

.table thead th:last-child {
  border-radius: 0 10px 0 0;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: rgba(26, 79, 138, 0.03);
}

.table tbody td {
  vertical-align: middle;
  border-color: rgba(26, 79, 138, 0.06);
  font-size: 0.8125rem;
  padding: 0.45rem 0.55rem !important;
}

#example_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_filter input {
  border-radius: 999px;
  padding: 0.35rem 1rem;
  border: 1px solid rgba(26, 79, 138, 0.15);
}

/* Hide autofill decoys + kill Chrome yellow email autofill on search boxes */
.cge-autofill-decoy {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.dataTables_filter input:-webkit-autofill,
.dataTables_filter input:-webkit-autofill:hover,
.dataTables_filter input:-webkit-autofill:focus,
.bs-searchbox input:-webkit-autofill,
.cge-menu-search input:-webkit-autofill,
input[data-cge-search="1"]:-webkit-autofill,
input[data-cge-search="1"]:-webkit-autofill:hover,
input[data-cge-search="1"]:-webkit-autofill:focus {
  -webkit-text-fill-color: inherit !important;
  caret-color: inherit;
  transition: background-color 99999s ease-in-out 0s;
  box-shadow: 0 0 0 1000px #fff inset !important;
}

/* —— Footer —— */
.footer {
  background: transparent;
  border-top: 1px solid rgba(26, 79, 138, 0.08);
  padding: 0.5rem 1rem;
  font-size: 0.72rem;
  color: var(--cge-text-muted);
}

.cge-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.cge-footer-brand {
  font-weight: 700;
  color: var(--cge-primary-dark);
}

/* —— Auth (login) —— */
.cge-auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem;
  font-size: var(--cge-font-size-base);
  background:
    radial-gradient(ellipse at 10% 20%, rgba(232, 163, 23, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 80%, rgba(26, 79, 138, 0.2) 0%, transparent 45%),
    linear-gradient(145deg, #0f2d52 0%, #1a4f8a 40%, #163d6e 100%);
}

.cge-auth-shell {
  width: 100%;
  max-width: 880px;
}

.cge-auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--cge-shadow-lg);
  background: #fff;
}

@media (max-width: 767.98px) {
  .cge-auth-grid {
    grid-template-columns: 1fr;
  }

  .cge-auth-panel-brand {
    padding: 1.25rem 1rem !important;
  }

  .cge-auth-panel-form {
    padding: 1.25rem 1rem !important;
  }
}

.cge-auth-panel-brand {
  background: linear-gradient(160deg, rgba(15, 45, 82, 0.95), rgba(26, 79, 138, 0.88)),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  color: #fff;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cge-auth-panel-brand h2 {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.cge-auth-panel-brand p {
  opacity: 0.88;
  font-size: 0.8125rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.cge-auth-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cge-auth-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  margin-bottom: 0.45rem;
  opacity: 0.92;
}

.cge-auth-features li::before {
  content: "✓";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(232, 163, 23, 0.9);
  color: #123662;
  font-size: 0.62rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cge-auth-panel-form {
  padding: 1.75rem 1.5rem;
}

.cge-auth-panel-form h1 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--cge-primary-dark);
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.cge-auth-panel-form .text-medium-emphasis {
  color: var(--cge-text-muted) !important;
  font-size: 0.8125rem;
  margin-bottom: 1rem !important;
}

.cge-auth-panel-form .form-control,
.cge-auth-panel-form .input-group-text {
  font-size: 0.8125rem;
  padding: 0.35rem 0.65rem;
}

.cge-auth-panel-form .input-group {
  margin-bottom: 0.65rem !important;
}

.cge-auth-forgot {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cge-primary-light) !important;
  text-decoration: none;
}

.cge-auth-forgot:hover {
  color: var(--cge-primary-dark) !important;
  text-decoration: underline;
}

/* —— Alerts / modals —— */
#msgBox .modal-content {
  background: linear-gradient(135deg, #b91c1c, #dc2626) !important;
  border: none;
  border-radius: 12px;
  box-shadow: var(--cge-shadow-lg);
}

.modal-content {
  border-radius: var(--cge-radius);
  border: none;
  box-shadow: var(--cge-shadow-lg);
}

/* —— Sidebar narrow (icon rail) + persisted toggle —— */
@media (min-width: 768px) {
  html[data-cge-sidebar="narrow"] .sidebar#sidebar:not(.sidebar-narrow) {
    flex: 0 0 var(--cui-sidebar-narrow-width, 4rem);
    width: var(--cui-sidebar-narrow-width, 4rem);
  }

  html[data-cge-sidebar="narrow"] .sidebar#sidebar:not(.sidebar-narrow):not(.sidebar-end) ~ * {
    --cui-sidebar-occupy-start: 4rem;
  }

  .sidebar.sidebar-narrow .cge-brand-title,
  .sidebar.sidebar-narrow .cge-brand-branch {
    display: none !important;
  }

  .sidebar.sidebar-narrow .cge-sidebar-brand {
    align-items: center !important;
    padding: 0.55rem 0.25rem !important;
  }

  .sidebar.sidebar-narrow .cge-brand-mark {
    margin-bottom: 0;
  }

  .sidebar.sidebar-narrow .nav-link {
    font-size: 0;
    line-height: 0;
    justify-content: center;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .sidebar.sidebar-narrow .nav-link .nav-icon,
  .sidebar.sidebar-narrow .nav-link svg.nav-icon {
    font-size: 1rem;
    margin: 0 auto !important;
    flex-shrink: 0;
  }
}

.sidebar-toggler.cge-sidebar-menu-toggle::before {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='rgba(255,255,255,0.88)' d='M64 128h384v32H64zm0 128h384v32H64zm0 128h384v32H64z'/%3E%3C/svg%3E");
  background-size: 1.1rem auto;
  transform: none !important;
}

@media (min-width: 768px) {
  html:not([dir=rtl]) .sidebar-narrow .sidebar-toggler.cge-sidebar-menu-toggle::before,
  html:not([dir=rtl]) .sidebar-narrow-unfoldable:not(:hover) .sidebar-toggler.cge-sidebar-menu-toggle::before {
    transform: none !important;
  }
}

.sidebar-toggler.cge-sidebar-menu-toggle:hover::before {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23ffffff' d='M64 128h384v32H64zm0 128h384v32H64zm0 128h384v32H64z'/%3E%3C/svg%3E");
}

.sidebar.sidebar-narrow .nav-group.cge-flyout-open > .nav-group-toggle {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #fff !important;
}

.cge-sidebar-flyout {
  position: fixed;
  z-index: 1045;
  min-width: 15.5rem;
  max-width: 18.5rem;
  max-height: calc(100vh - 16px);
  overflow: auto;
  padding: 0.45rem;
  color: #fff;
  background: linear-gradient(180deg, #0f2d52 0%, #1a4f8a 70%, #163d6e 100%);
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(15, 45, 82, 0.32);
}

.cge-sidebar-flyout-title {
  padding: 0.35rem 0.55rem 0.45rem;
  margin-bottom: 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.cge-sidebar-flyout-list,
.cge-sidebar-flyout .nav-group-items {
  list-style: none;
  margin: 0;
  padding: 0.2rem 0 0;
}

.cge-sidebar-flyout .nav-link {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 1px 0;
  padding: 0.42rem 0.55rem;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  white-space: normal;
}

.cge-sidebar-flyout .nav-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.cge-sidebar-flyout .nav-icon {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 1.05rem;
  color: var(--cge-accent);
}

.cge-sidebar-flyout .nav-group:not(.show) > .nav-group-items {
  display: none;
}

.cge-sidebar-flyout .nav-group.show > .nav-group-items {
  display: block;
  padding-left: 0.35rem;
}

.cge-sidebar-flyout .nav-group-toggle::after {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  margin-left: auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  flex: 0 0 auto;
}

.cge-sidebar-flyout .nav-group.show > .nav-group-toggle::after {
  transform: rotate(-135deg);
  margin-top: 0.2rem;
}

/* —— Student admission form —— */
.cge-admit {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-family: "Noto Sans Devanagari", "Plus Jakarta Sans", system-ui, sans-serif;
}

.cge-admit-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  background: linear-gradient(120deg, #0f2d52 0%, #1a4f8a 62%, #2d6cb5 100%);
  color: #fff;
  border-radius: var(--cge-radius);
  box-shadow: var(--cge-shadow);
}

.cge-admit-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  padding: 6px;
}

.cge-admit-kicker {
  margin: 0 0 0.15rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f6d48a;
}

.cge-admit-head h1 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.3;
}

.cge-admit-head p {
  margin: 0.2rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
}

.cge-admit-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.cge-admit-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.72rem;
  font-weight: 600;
}

.cge-admit-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  margin: 0;
}

.cge-admit-photo img {
  width: 92px;
  height: 108px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: #e8eef6;
}

.cge-admit-photo span {
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff4dc;
}

.cge-admit-section {
  background: #fff;
  border: 1px solid rgba(26, 79, 138, 0.08);
  border-radius: var(--cge-radius);
  box-shadow: var(--cge-shadow);
  overflow: hidden;
}

.cge-admit-section h2 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
  padding: 0.65rem 1rem;
  background: #f7fafc;
  border-bottom: 1px solid rgba(26, 79, 138, 0.08);
  color: var(--cge-primary-dark);
  font-size: 0.86rem;
  font-weight: 700;
}

.cge-admit-section h2 small {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--cge-text-muted);
}

.cge-admit-body {
  padding: 0.9rem 1rem 1rem;
}

.cge-admit-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.7rem 0.75rem;
}

.cge-span-3 { grid-column: span 3; }
.cge-span-4 { grid-column: span 4; }
.cge-span-6 { grid-column: span 6; }
.cge-span-8 { grid-column: span 8; }
.cge-span-12 { grid-column: span 12; }

.cge-admit .form-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 0.22rem;
}

.cge-admit .form-label em {
  font-style: normal;
  font-weight: 600;
  font-size: 0.7rem;
  color: var(--cge-text-muted);
}

.cge-admit .form-control,
.cge-admit .form-select {
  background: #fff;
  border-color: rgba(26, 79, 138, 0.16);
}

.cge-admit .form-control:focus,
.cge-admit .form-select:focus {
  border-color: var(--cge-primary-light);
  box-shadow: 0 0 0 3px rgba(26, 79, 138, 0.12);
}

.cge-pledge {
  margin: 0;
  padding: 0.85rem 0.95rem;
  background: #f8fbff;
  border: 1px solid rgba(26, 79, 138, 0.1);
  border-radius: 8px;
  line-height: 2.15;
  font-size: 0.86rem;
  color: var(--cge-text);
}

.cge-pledge .form-control,
.cge-pledge .form-select {
  display: inline-block;
  width: auto;
  min-width: 9.5rem;
  margin: 0 0.25rem;
  vertical-align: middle;
}

.cge-docs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cge-docs li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
  padding: 0.5rem 0.65rem;
  background: var(--cge-surface);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
}

.cge-docs b {
  flex: 0 0 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--cge-primary);
  color: #fff;
  font-size: 0.68rem;
}

.cge-sign-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.cge-sign-grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cge-sign {
  padding: 0.75rem 0.8rem 0.85rem;
  border: 1px dashed rgba(26, 79, 138, 0.28);
  border-radius: 10px;
  background: #fcfdff;
}

.cge-sign strong {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.78rem;
  color: var(--cge-primary-dark);
}

.cge-sign-line {
  height: 42px;
  margin-bottom: 0.55rem;
  border-bottom: 1px solid rgba(30, 41, 59, 0.25);
}

.cge-office {
  background: linear-gradient(180deg, #fffaf0 0%, #fff 40%);
}

.cge-office-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
  font-size: 0.86rem;
  line-height: 1.5;
}

.cge-office-line .form-control,
.cge-office-line .form-select {
  width: auto;
  min-width: 8.5rem;
}

.cge-office-line .cge-adm-no {
  width: 5.5rem;
  min-width: 5.5rem;
  text-align: center;
  font-weight: 700;
}

.cge-admit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding-top: 0.15rem;
}

.cge-note {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  color: var(--cge-text-muted);
}

@media (max-width: 991.98px) {
  .cge-span-3, .cge-span-4 { grid-column: span 6; }
  .cge-admit-head { grid-template-columns: auto 1fr; }
  .cge-admit-photo { grid-column: 1 / -1; flex-direction: row; }
}

@media (max-width: 767.98px) {
  .cge-span-3, .cge-span-4, .cge-span-6, .cge-span-8 { grid-column: span 12; }
  .cge-sign-grid, .cge-sign-grid.cols-2 { grid-template-columns: 1fr; }
  .cge-admit-head { grid-template-columns: 1fr; }
  .cge-pledge .form-control, .cge-pledge .form-select { display: block; width: 100%; margin: 0.25rem 0; }
}
