/* GSE UI polish layer: shared visual improvements without changing workflows. */

:root {
  --gse-bg: #f5f7fb;
  --gse-surface: #ffffff;
  --gse-line: #dfe5ee;
  --gse-text: #263238;
  --gse-muted: #6b7785;
  --gse-primary: #2563eb;
  --gse-primary-hover: #1d4ed8;
  --gse-success: #0f9f6e;
  --gse-warning: #b7791f;
  --gse-danger: #dc2626;
  --gse-academic-navy: #1e3a8a;
  --gse-campus-green: #0f766e;
  --gse-module: #2563eb;
  --gse-module-hover: #1d4ed8;
  --gse-module-soft: #eff6ff;
  --gse-module-line: #bfdbfe;
  --gse-card-gutter: 30px;
  --gse-radius: 6px;
  --gse-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

body.gse-module-dashboard {
  --gse-module: #475569;
  --gse-module-hover: #334155;
  --gse-module-soft: #f1f5f9;
  --gse-module-line: #cbd5e1;
}

body.gse-module-students {
  --gse-module: #2563eb;
  --gse-module-hover: #1d4ed8;
  --gse-module-soft: #eff6ff;
  --gse-module-line: #bfdbfe;
}

body.gse-module-professors {
  --gse-module: #0f766e;
  --gse-module-hover: #0f5f59;
  --gse-module-soft: #ecfdf5;
  --gse-module-line: #a7f3d0;
}

body.gse-module-classes,
body.gse-module-learning,
body.gse-module-school {
  --gse-module: #1e40af;
  --gse-module-hover: #1e3a8a;
  --gse-module-soft: #eef2ff;
  --gse-module-line: #c7d2fe;
}

body.gse-module-registrations {
  --gse-module: #7c3aed;
  --gse-module-hover: #6d28d9;
  --gse-module-soft: #f5f3ff;
  --gse-module-line: #ddd6fe;
}

body.gse-module-finance {
  --gse-module: #b45309;
  --gse-module-hover: #92400e;
  --gse-module-soft: #fffbeb;
  --gse-module-line: #fde68a;
}

body.gse-module-schedule {
  --gse-module: #0369a1;
  --gse-module-hover: #075985;
  --gse-module-soft: #f0f9ff;
  --gse-module-line: #bae6fd;
}

body.gse-module-communication {
  --gse-module: #be123c;
  --gse-module-hover: #9f1239;
  --gse-module-soft: #fff1f2;
  --gse-module-line: #fecdd3;
}

.gse-admin-return-btn {
  margin-top: 10px;
  margin-left: 10px;
  background: #b45309 !important;
  border-color: #92400e !important;
  color: #fff !important;
}

.gse-admin-return-btn:hover,
.gse-admin-return-btn:focus {
  background: #92400e !important;
  border-color: #78350f !important;
  color: #fff !important;
}

.gse-professor-dashboard .gse-page-bar-clean {
  margin-bottom: 16px;
}

.gse-page-subtitle {
  color: var(--gse-muted);
  font-size: 13px;
  margin-top: 4px;
}

.gse-professor-hero {
  align-items: center;
  background: #fff;
  border: 1px solid var(--gse-line);
  border-left: 4px solid #0f766e;
  border-radius: var(--gse-radius);
  box-shadow: var(--gse-shadow);
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 20px;
}

.gse-professor-hero h2 {
  color: var(--gse-text);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 4px 0 6px;
}

.gse-professor-hero p {
  color: var(--gse-muted);
  margin: 0;
}

.gse-kicker {
  color: #0f766e;
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.gse-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.gse-stat-row {
  margin-bottom: 8px;
}

.gse-stat-card {
  align-items: center;
  background: #fff;
  border: 1px solid var(--gse-line);
  border-radius: var(--gse-radius);
  box-shadow: var(--gse-shadow);
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  margin-bottom: 15px;
  min-height: 76px;
  padding: 16px;
}

.gse-stat-card i {
  align-items: center;
  background: #ecfdf5;
  border-radius: 50%;
  color: #0f766e;
  display: flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.gse-stat-card span {
  color: var(--gse-muted);
  font-size: 13px;
}

.gse-stat-card strong {
  color: var(--gse-text);
  font-size: 26px;
  line-height: 1;
}

.gse-panel {
  background: #fff;
  border: 1px solid var(--gse-line);
  border-radius: var(--gse-radius);
  box-shadow: var(--gse-shadow);
  margin-bottom: 18px;
  padding: 18px;
}

.gse-panel-head {
  align-items: flex-start;
  border-bottom: 1px solid var(--gse-line);
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
}

.gse-panel-head h3 {
  color: var(--gse-text);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 4px;
}

.gse-panel-head p {
  color: var(--gse-muted);
  margin: 0;
}

.gse-clean-table {
  margin-bottom: 0;
}

.gse-clean-table thead th {
  background: #f8fafc;
  border-bottom: 1px solid var(--gse-line) !important;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.gse-clean-table td {
  color: var(--gse-text);
  vertical-align: middle !important;
}

.gse-empty-state {
  align-items: center;
  border: 1px dashed #cbd5e1;
  border-radius: var(--gse-radius);
  color: var(--gse-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
  min-height: 140px;
  padding: 22px;
  text-align: center;
}

.gse-empty-state i {
  color: #0f766e;
  font-size: 28px;
}

.gse-empty-state strong {
  color: var(--gse-text);
}

.gse-student-preview-list {
  display: grid;
  gap: 10px;
}

.gse-student-preview {
  align-items: center;
  border: 1px solid #eef2f7;
  border-radius: var(--gse-radius);
  display: grid;
  gap: 10px;
  grid-template-columns: 44px 1fr;
  padding: 10px;
}

.gse-student-preview img,
.gse-profile-avatar {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
}

.gse-student-preview img {
  height: 44px;
  width: 44px;
}

.gse-student-preview strong,
.gse-student-preview span,
.gse-student-preview small {
  display: block;
}

.gse-student-preview span,
.gse-student-preview small {
  color: var(--gse-muted);
}

.gse-profile-avatar {
  height: 160px;
  max-width: 160px;
  width: 160px;
}

.gse-space-page {
  color: var(--gse-text);
}

.gse-page-heading {
  align-items: center;
  background: #fff;
  border: 1px solid var(--gse-line);
  border-left: 4px solid #0f766e;
  border-radius: var(--gse-radius);
  box-shadow: var(--gse-shadow);
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 18px 20px;
}

.gse-page-heading h2 {
  color: var(--gse-text);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 4px 0 6px;
}

.gse-page-heading p {
  color: var(--gse-muted);
  margin: 0;
}

.gse-heading-with-action {
  gap: 16px;
}

.gse-form-panel .control-label {
  color: #475569;
  font-weight: 700;
}

.gse-form-actions {
  border-top: 1px solid var(--gse-line);
  display: flex;
  gap: 8px;
  margin-top: 8px;
  padding-top: 16px;
}

.gse-account-line {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--gse-line);
  border-radius: var(--gse-radius);
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
}

.gse-account-line i {
  color: #0f766e;
  font-size: 26px;
}

.gse-account-line span {
  color: var(--gse-muted);
  display: block;
  font-size: 12px;
}

.gse-account-line strong {
  color: var(--gse-text);
}

.gse-alert-inline {
  align-items: center;
  display: flex;
  gap: 8px;
}

.gse-detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gse-detail-list li + li {
  margin-top: 4px;
}

.gse-news-list {
  display: grid;
  gap: 14px;
}

.gse-news-item {
  border: 1px solid var(--gse-line);
  border-radius: var(--gse-radius);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(180px, 260px) 1fr;
  overflow: hidden;
}

.gse-news-item:not(:has(.gse-news-media)) {
  grid-template-columns: 1fr;
}

.gse-news-media img {
  height: 100%;
  min-height: 170px;
  object-fit: cover;
  width: 100%;
}

.gse-news-content {
  padding: 16px;
}

.gse-news-date {
  color: var(--gse-muted);
  font-size: 12px;
}

.gse-news-content h3 {
  color: var(--gse-text);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 8px 0;
}

.gse-news-text {
  color: #475569;
  line-height: 1.6;
}

.gse-space-page .card,
.gse-space-page .card-box,
.gse-space-page .panel {
  border-radius: var(--gse-radius);
}

@media (max-width: 767px) {
  .gse-professor-hero,
  .gse-panel-head {
    display: block;
  }

  .gse-hero-actions {
    justify-content: flex-start;
    margin-top: 14px;
  }

  .gse-stat-card {
    grid-template-columns: 42px 1fr;
  }

  .gse-stat-card strong {
    grid-column: 2;
  }

  .gse-page-heading,
  .gse-heading-with-action {
    display: block;
  }

  .gse-heading-with-action .btn {
    margin-top: 12px;
  }

  .gse-news-item {
    grid-template-columns: 1fr;
  }
}

body.page-content-white,
.page-content {
  background: var(--gse-bg);
  color: var(--gse-text);
}

.page-header.navbar,
.page-header {
  border: 0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.page-header .page-header-inner {
  min-height: 60px;
}

.page-logo {
  display: flex;
  align-items: center;
}

.page-logo a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-weight: 700;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.16);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.logo-icon.fa-rotate-45 {
  transform: none !important;
}

.sidebar-container,
.sidemenu-container,
.left-sidemenu {
  border-right: 1px solid var(--gse-line);
}

.sidemenu-container .sidemenu > li > a,
.sidemenu-container .sidemenu .sub-menu li > a {
  border-radius: 6px;
  margin: 2px 10px;
}

.sidemenu-container .sidemenu > li.active > a,
.sidemenu-container .sidemenu > li.open > a,
.sidemenu-container .sidemenu > li > a:hover,
.sidemenu-container .sidemenu .sub-menu li > a:hover {
  background: var(--gse-module-soft);
  color: var(--gse-module);
  box-shadow: inset 3px 0 0 var(--gse-module);
}

.sidemenu-container .sidemenu > li > a {
  min-height: 42px;
}

.sidemenu-container .sidemenu > li > a .title,
.sidemenu-container .sub-menu .title {
  font-weight: 500;
  letter-spacing: 0;
}

.sidebar-user-panel {
  margin: 8px 10px 14px;
  border: 1px solid var(--gse-line);
  border-radius: 8px;
  background: #f8fafc;
}

.page-content {
  padding: 18px 22px 28px;
}

.page-bar {
  margin: -18px -22px 22px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--gse-line);
  background: #eef3f8;
}

.gse-academic-app .page-bar {
  border-bottom-color: var(--gse-module-line);
  background: linear-gradient(135deg, var(--gse-module-soft) 0%, #fff 78%);
  box-shadow: inset 4px 0 0 var(--gse-module);
}

.page-title-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 44px;
  margin: 0 0 14px;
}

.page-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gse-text);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
}

.gse-page-title-icon,
.gse-card-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--gse-module);
  background: #fff;
  border: 1px solid var(--gse-module-line);
}

.gse-page-title-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  font-size: 17px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.gse-card-title-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  font-size: 13px;
}

.page-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
}

.gse-page-subtitle {
  margin-top: 4px;
  color: var(--gse-muted);
  font-size: 13px;
  line-height: 1.35;
}

.card,
.card-box,
.white-box,
.panel,
.profile-sidebar,
.profile-content,
.tabbable-line {
  border: 1px solid var(--gse-line);
  border-radius: var(--gse-radius);
  box-shadow: var(--gse-shadow);
}

.card,
.card-box {
  overflow: hidden;
  transition: box-shadow .18s ease, transform .18s ease;
}

.card:hover,
.card-box:hover {
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
}

.card-head,
.panel-heading {
  min-height: 48px;
  border-bottom: 1px solid var(--gse-line);
  background: var(--gse-surface);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.card-head header,
.panel-heading,
.box-title {
  color: var(--gse-text);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
}

.gse-list-card .card-head,
.gse-list-card .panel-heading {
  min-height: 52px;
  justify-content: flex-start;
  padding: 14px 18px;
  border-bottom-color: var(--gse-module-line);
  box-shadow: inset 0 3px 0 var(--gse-module);
}

.gse-list-card .card-head header,
.gse-list-card .panel-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  text-align: left;
}

.gse-list-card .card-body,
.gse-list-card .panel-body {
  background: #fff;
}

.card-body,
.panel-body {
  padding: 18px;
}

.gse-form-card .card-head,
.gse-form-card .panel-heading {
  min-height: 52px;
  justify-content: flex-start;
  padding: 14px 18px;
  border-bottom-color: var(--gse-module-line);
  box-shadow: inset 0 3px 0 var(--gse-module);
}

.gse-form-card .card-head header,
.gse-form-card .panel-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  text-align: left;
}

.gse-form-card .card-body,
.gse-form-card .panel-body {
  padding: 20px;
  background: #fff;
}

.gse-form-body {
  max-width: 1040px;
}

.no-padding {
  padding: 0 !important;
}

.height-9 {
  min-height: auto !important;
}

.btn {
  border-radius: 5px;
  font-weight: 500;
  letter-spacing: 0;
}

.btn-info,
.btn-primary {
  border-color: var(--gse-primary);
  background: var(--gse-primary);
}

.btn-info:hover,
.btn-primary:hover,
.btn-info:focus,
.btn-primary:focus {
  border-color: var(--gse-primary-hover);
  background: var(--gse-primary-hover);
}

.btn-default,
.btn-secondary {
  border-color: var(--gse-line);
  background: #fff;
  color: var(--gse-text);
}

.btn-xs {
  min-height: 27px;
  padding: 4px 8px;
  line-height: 1.25;
}

.btn-danger {
  border-color: var(--gse-danger);
  background: var(--gse-danger);
}

.btn-group .btn + .btn,
.btn + .btn {
  margin-left: 6px;
}

.form-horizontal .form-group,
.form-group.row {
  padding: 10px 0;
  margin-right: 0;
  margin-left: 0;
  border-bottom: 1px solid #eef2f7;
}

.form-horizontal .form-group:last-child,
.form-group.row:last-child {
  border-bottom: 0;
}

.control-label {
  color: var(--gse-text);
  font-weight: 600;
  line-height: 1.35;
}

.required {
  color: var(--gse-danger);
}

.form-control,
.input-height,
select.form-control {
  min-height: 38px;
  border-color: #cfd8e3;
  border-radius: 5px;
  box-shadow: none;
}

.form-control:focus,
.input-height:focus,
select.form-control:focus {
  border-color: var(--gse-module);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 16px;
}

.gse-form-card .form-horizontal .gse-form-group {
  padding: 14px 0;
  margin-bottom: 0;
}

.gse-form-card .control-label {
  padding-top: 9px;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.gse-form-card .form-control,
.gse-form-card .input-height,
.gse-form-card select.form-control,
.gse-form-card .select2-container--bootstrap .select2-selection {
  min-height: 40px;
}

.gse-form-card .form-control,
.gse-form-card .input-height,
.gse-form-card .form-control-textarea,
.gse-form-card .gse-textarea-control {
  width: 100%;
}

.gse-form-card .form-control-textarea,
.gse-form-card .gse-textarea-control {
  min-height: 112px;
  padding: 10px 12px;
  border: 1px solid #cfd8e3;
  border-radius: 5px;
  color: var(--gse-text);
  resize: vertical;
  box-shadow: none;
}

.gse-form-card .gse-textarea-control:focus {
  border-color: var(--gse-primary);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.gse-form-card .input-group {
  width: 100%;
}

.gse-form-card .gse-date-field,
.gse-form-card .gse-file-field .compose-editor {
  width: 41.666667%;
  max-width: 440px;
  margin-left: 25%;
  padding-right: 15px;
  padding-left: 15px;
}

.gse-form-card .gse-date-field {
  display: flex;
  align-items: stretch;
}

.gse-form-card .gse-date-field .formDatePicker {
  width: 100%;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid #cfd8e3;
  border-radius: 5px 0 0 5px;
  background: #fff;
}

.gse-form-card .gse-date-field .add-on {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-height: 40px;
  border: 1px solid #cfd8e3;
  border-left: 0;
  border-radius: 0 5px 5px 0;
  background: #f8fafc;
  color: var(--gse-module);
}

.gse-form-card input[type="file"] {
  display: block;
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
  color: var(--gse-text);
}

.gse-form-card .gse-form-actions {
  display: block;
  margin-top: 8px;
  padding: 16px 0 0;
  border-top: 1px solid var(--gse-line);
}

.gse-form-card .gse-form-actions .row {
  width: 100%;
  margin-right: 0;
  margin-left: 0;
}

.gse-form-card .gse-form-actions .btn,
.gse-form-card .gse-form-actions a.btn {
  min-width: 118px;
  min-height: 38px;
}

.gse-primary-action {
  border-color: var(--gse-primary);
  background: var(--gse-primary);
  color: #fff;
}

.gse-form-card label.error,
.gse-form-card .error-message,
.gse-form-card .help-block {
  display: block;
  margin-top: 6px;
  color: var(--gse-danger);
  font-size: 12px;
  line-height: 1.35;
}

.table-responsive.gse-table-responsive {
  width: 100%;
  border: 1px solid var(--gse-line);
  border-radius: var(--gse-radius);
  background: #fff;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #c7d2e0 transparent;
}

.table-responsive.gse-table-responsive.gse-dropdown-open {
  overflow: visible;
}

.table-scrollable {
  overflow-x: auto;
}

table.table {
  margin-bottom: 0;
  background: #fff;
}

.gse-table-optimized {
  width: 100% !important;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.table > thead > tr > th,
.table thead th {
  border-bottom: 1px solid var(--gse-line);
  background: linear-gradient(180deg, #fff 0%, var(--gse-module-soft) 100%);
  color: #344054;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  white-space: nowrap;
  vertical-align: middle;
}

.gse-table-optimized thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 12px 12px;
}

.gse-table-optimized thead th:first-child {
  border-top-left-radius: var(--gse-radius);
}

.gse-table-optimized thead th:last-child {
  border-top-right-radius: var(--gse-radius);
}

.table > tbody > tr > td,
.table tbody td {
  vertical-align: middle;
  color: var(--gse-text);
}

.gse-table-optimized tbody td {
  padding: 10px 12px;
  border-top: 1px solid #edf2f7;
  line-height: 1.45;
}

.gse-table-optimized tbody td:first-child {
  color: var(--gse-muted);
  font-weight: 700;
}

.gse-table-optimized tbody td a:not(.btn) {
  color: var(--gse-primary);
  font-weight: 600;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: #fbfdff;
}

.table-hover tbody tr:hover {
  background-color: var(--gse-module-soft);
}

.gse-table-actions-cell {
  min-width: 116px;
  white-space: nowrap;
}

.gse-table-actions-cell .btn-group {
  justify-content: center;
}

.gse-table-actions-cell .btn,
.gse-table-actions-cell a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 32px;
}

.gse-table-actions-cell .dropdown-toggle {
  min-width: 92px;
}

.gse-status-action {
  min-width: 128px;
}

.label,
.badge {
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
}

.label-success,
.badge-success {
  background: var(--gse-success);
}

.label-danger,
.badge-danger {
  background: var(--gse-danger);
}

.label-warning,
.badge-warning {
  background: var(--gse-warning);
}

.alert {
  border-radius: var(--gse-radius);
  border-width: 1px;
}

.modal-content {
  border: 0;
  border-radius: var(--gse-radius);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
}

.modal-header {
  border-bottom: 1px solid var(--gse-line);
}

.modal-title {
  color: var(--gse-text);
  font-size: 17px;
  font-weight: 600;
}

.gse-empty-state {
  padding: 28px 16px;
  text-align: center;
  color: var(--gse-muted);
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: var(--gse-radius);
}

.gse-required-label:after {
  content: " *";
  color: var(--gse-danger);
}

.gse-page-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.gse-list-toolbar {
  align-items: center;
  margin-bottom: 14px;
}

.gse-helper-text {
  display: inline-block;
  color: var(--gse-muted);
  font-size: 13px;
  line-height: 1.35;
}

.gse-list-card .card-body > .row,
.gse-form-card .card-body > .row,
.gse-table-card .card-body > .row {
  margin-right: 0;
  margin-left: 0;
}

.gse-summary-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.gse-summary-row-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gse-summary-item {
  padding: 13px 14px;
  border: 1px solid var(--gse-module-line);
  border-left: 3px solid var(--gse-module);
  border-radius: var(--gse-radius);
  background: linear-gradient(180deg, #fff 0%, var(--gse-module-soft) 100%);
}

.gse-summary-item strong {
  display: block;
  margin-top: 4px;
  color: var(--gse-module);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
}

.gse-summary-label {
  color: var(--gse-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.gse-filter-panel {
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--gse-module-line);
  border-radius: var(--gse-radius);
  background: linear-gradient(180deg, #fff 0%, var(--gse-module-soft) 100%);
}

.gse-filter-form .form-group {
  margin-bottom: 0;
}

.gse-filter-form label {
  display: block;
  margin-bottom: 6px;
  color: var(--gse-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.gse-filter-grid {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(135px, 1fr));
  gap: 12px;
}

.gse-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.gse-students-table > tbody > tr > td {
  vertical-align: middle;
}

.gse-student-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.gse-student-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  overflow: hidden;
  border: 1px solid var(--gse-line);
  border-radius: 8px;
  background: #edf2f7;
}

.gse-student-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gse-student-main strong,
.gse-student-main span,
.gse-contact-stack span {
  display: block;
}

.gse-student-main strong {
  color: var(--gse-text);
  font-size: 14px;
}

.gse-student-main span,
.gse-contact-stack span {
  color: var(--gse-muted);
  font-size: 12px;
  line-height: 1.45;
}

.gse-contact-stack i {
  width: 14px;
  color: var(--gse-primary);
}

.gse-options-button {
  min-width: 112px;
}

.gse-empty-cell {
  padding: 28px 12px !important;
  color: var(--gse-muted);
}

.gse-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--gse-line);
}

.gse-pagination-info {
  color: var(--gse-muted);
  font-size: 13px;
}

.gse-pagination-bar .pagination {
  margin: 0;
}

.gse-import-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
  gap: 18px;
}

.gse-import-panel,
.gse-import-guide,
.gse-import-report {
  padding: 16px;
  border: 1px solid var(--gse-line);
  border-radius: var(--gse-radius);
  background: #fff;
}

.gse-import-guide h4,
.gse-import-report h4 {
  margin-top: 0;
  color: var(--gse-text);
  font-weight: 700;
}

.gse-import-report {
  margin-top: 14px;
  background: #f8fafc;
}

.gse-import-report ul {
  margin-bottom: 0;
  padding-left: 18px;
  color: var(--gse-danger);
}

.gse-import-note {
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 3px solid var(--gse-primary);
  background: #eef4ff;
  color: var(--gse-text);
  font-size: 13px;
  line-height: 1.45;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  border: 1px solid #cfd8e3;
  border-radius: 5px;
  min-height: 34px;
  padding: 4px 8px;
}

.dataTables_wrapper {
  padding: 14px;
}

.gse-datatable {
  border-radius: var(--gse-radius);
}

.gse-datatable .dt-buttons {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.gse-datatable .dt-buttons .dt-button,
.gse-datatable .dt-buttons .btn {
  border: 1px solid var(--gse-line);
  border-radius: 6px;
  background: #fff;
  color: var(--gse-text);
  font-weight: 600;
  box-shadow: none;
}

.gse-datatable .dt-buttons .dt-button:hover,
.gse-datatable .dt-buttons .btn:hover {
  border-color: var(--gse-primary);
  background: #eef4ff;
  color: var(--gse-primary);
}

.dataTables_wrapper .row:first-child {
  align-items: center;
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid var(--gse-module-line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, var(--gse-module-soft) 100%);
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  color: var(--gse-muted);
  font-size: 13px;
}

.dataTables_wrapper .dataTables_filter label,
.dataTables_wrapper .dataTables_length label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  color: var(--gse-muted);
  font-weight: 700;
}

.dataTables_wrapper .dataTables_filter {
  text-align: right;
}

.dataTables_wrapper .dataTables_filter input {
  min-width: 260px;
  min-height: 38px;
  margin-left: 8px;
  border-radius: 6px;
  background: #fff;
}

.dataTables_wrapper .dataTables_length select {
  min-width: 76px;
  min-height: 38px;
  border-radius: 6px;
  background: #fff;
}

.dataTables_wrapper .dataTables_info {
  padding-top: 10px;
}

.dataTables_wrapper .pagination {
  margin: 0;
}

.dataTables_wrapper .paginate_button .page-link,
.dataTables_wrapper .pagination .page-link {
  border-color: var(--gse-line);
  color: var(--gse-text);
}

.dataTables_wrapper .page-item.active .page-link {
  border-color: var(--gse-primary);
  background: var(--gse-primary);
}

.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
  border-color: var(--gse-primary);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.profile-userpic img,
.user-panel img,
.img-circle {
  object-fit: cover;
}

.gse-dashboard-kpis {
  margin-right: -10px;
  margin-bottom: 22px;
  margin-left: -10px;
}

.gse-dashboard-shell {
  display: block;
}

.gse-dashboard-shell > .row {
  margin-right: -10px;
  margin-left: -10px;
}

.gse-dashboard-shell > .row > [class*="col-"],
.gse-dashboard-kpis > [class*="col-"] {
  padding-right: 10px;
  padding-left: 10px;
}

.gse-dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.62fr);
  gap: 18px;
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid var(--gse-module-line);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff 0%, var(--gse-module-soft) 100%);
  box-shadow: var(--gse-shadow);
}

.gse-dashboard-eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
  color: var(--gse-module);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.gse-dashboard-hero h2 {
  margin: 0 0 8px;
  color: var(--gse-text);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.gse-dashboard-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--gse-muted);
  font-size: 14px;
  line-height: 1.45;
}

.gse-dashboard-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-self: stretch;
}

.gse-dashboard-hero-metrics > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 92px;
  padding: 13px;
  border: 1px solid var(--gse-module-line);
  border-radius: 8px;
  background: rgba(255,255,255,0.78);
}

.gse-dashboard-hero-metrics span {
  color: var(--gse-muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
}

.gse-dashboard-hero-metrics strong {
  margin-top: 6px;
  color: var(--gse-module);
  font-size: 26px;
  line-height: 1;
}

.gse-kpi-card {
  position: relative;
  min-height: 154px;
  border: 1px solid var(--gse-module-line);
  border-left: 4px solid var(--gse-module);
  border-radius: 8px;
  background: var(--gse-surface);
  box-shadow: var(--gse-shadow);
}

.gse-kpi-card .panel-body {
  padding: 18px;
}

.gse-kpi-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.gse-kpi-label {
  display: block;
  color: var(--gse-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.gse-kpi-value {
  display: block;
  margin-top: 4px;
  color: var(--gse-module);
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
}

.gse-kpi-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #fff;
  font-size: 18px;
  background: var(--gse-module);
}

.gse-kpi-card.is-students {
  --gse-kpi-color: #2563eb;
}

.gse-kpi-card.is-current {
  --gse-kpi-color: #0f766e;
}

.gse-kpi-card.is-alumni {
  --gse-kpi-color: #7c3aed;
}

.gse-kpi-card.is-risk {
  --gse-kpi-color: #b45309;
}

.gse-kpi-card.is-success {
  --gse-kpi-color: var(--gse-success);
}

.gse-kpi-card.is-warning {
  --gse-kpi-color: #d99b1d;
}

.gse-kpi-card.is-muted {
  --gse-kpi-color: #64748b;
}

.gse-kpi-card.is-students,
.gse-kpi-card.is-current,
.gse-kpi-card.is-alumni,
.gse-kpi-card.is-risk,
.gse-kpi-card.is-success,
.gse-kpi-card.is-warning,
.gse-kpi-card.is-muted {
  border-left-color: var(--gse-kpi-color);
}

.gse-kpi-card.is-students .gse-kpi-icon,
.gse-kpi-card.is-students .progress-bar,
.gse-kpi-card.is-current .gse-kpi-icon,
.gse-kpi-card.is-current .progress-bar,
.gse-kpi-card.is-alumni .gse-kpi-icon,
.gse-kpi-card.is-alumni .progress-bar,
.gse-kpi-card.is-risk .gse-kpi-icon,
.gse-kpi-card.is-risk .progress-bar,
.gse-kpi-card.is-success .gse-kpi-icon,
.gse-kpi-card.is-success .progress-bar,
.gse-kpi-card.is-warning .gse-kpi-icon,
.gse-kpi-card.is-warning .progress-bar,
.gse-kpi-card.is-muted .gse-kpi-icon,
.gse-kpi-card.is-muted .progress-bar {
  background: var(--gse-kpi-color);
}

.gse-kpi-card.is-students .gse-kpi-value,
.gse-kpi-card.is-current .gse-kpi-value,
.gse-kpi-card.is-alumni .gse-kpi-value,
.gse-kpi-card.is-risk .gse-kpi-value,
.gse-kpi-card.is-success .gse-kpi-value,
.gse-kpi-card.is-warning .gse-kpi-value,
.gse-kpi-card.is-muted .gse-kpi-value {
  color: var(--gse-kpi-color);
}

.gse-kpi-card .progress {
  height: 7px;
  margin: 0 0 12px;
  border-radius: 999px;
  background: #e8edf3;
  box-shadow: none;
}

.gse-kpi-caption {
  color: var(--gse-muted);
  font-size: 13px;
  line-height: 1.35;
}

.gse-chart-wrap {
  padding: 18px;
  min-height: 360px;
}

.gse-chart-wrap canvas {
  width: 100% !important;
  min-height: 320px;
}

.gse-dashboard-card {
  margin-bottom: 20px;
}

.gse-dashboard-card .card-head {
  border-bottom-color: var(--gse-module-line);
  box-shadow: inset 0 3px 0 var(--gse-module);
}

.gse-dashboard-card .card-head header {
  font-size: 15px;
}

.gse-dashboard-quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.gse-quick-action {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 13px;
  border: 1px solid var(--gse-line);
  border-radius: 8px;
  background: #fff;
  color: var(--gse-text);
  box-shadow: var(--gse-shadow);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.gse-quick-action:hover,
.gse-quick-action:focus {
  border-color: var(--gse-module);
  color: var(--gse-text);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}

.gse-quick-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 8px;
  color: #fff;
  background: var(--gse-module);
}

.gse-quick-action.is-students .gse-quick-icon {
  background: #2563eb;
}

.gse-quick-action.is-registrations .gse-quick-icon {
  background: #7c3aed;
}

.gse-quick-action.is-schedule .gse-quick-icon {
  background: #0369a1;
}

.gse-quick-action.is-finance .gse-quick-icon {
  background: #b45309;
}

.gse-quick-action strong,
.gse-quick-action small {
  display: block;
}

.gse-quick-action strong {
  color: var(--gse-text);
  font-size: 13px;
}

.gse-quick-action small {
  margin-top: 2px;
  color: var(--gse-muted);
  font-size: 12px;
  line-height: 1.35;
}

.gse-quick-arrow {
  margin-left: auto;
  color: var(--gse-muted);
}

.gse-priority-list {
  display: grid;
  gap: 10px;
}

.gse-priority-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--gse-line);
  border-radius: 8px;
  background: #fff;
}

.gse-priority-item > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 8px;
  color: var(--gse-module);
  background: var(--gse-module-soft);
}

.gse-priority-item strong,
.gse-priority-item small {
  display: block;
}

.gse-priority-item strong {
  color: var(--gse-text);
  font-size: 14px;
}

.gse-priority-item small {
  margin-top: 2px;
  color: var(--gse-muted);
  font-size: 12px;
}

.gse-dashboard-note {
  margin-top: 14px;
  padding: 12px;
  border-left: 3px solid var(--gse-module);
  border-radius: 0 6px 6px 0;
  background: var(--gse-module-soft);
  color: var(--gse-text);
  font-size: 13px;
  line-height: 1.45;
}

.gse-dashboard-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.gse-dashboard-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #eef2f7;
}

.gse-dashboard-list li:last-child {
  border-bottom: 0;
}

.gse-dashboard-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  overflow: hidden;
  border: 1px solid var(--gse-line);
  border-radius: 8px;
  background: #edf2f7;
}

.gse-dashboard-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gse-dashboard-list-content {
  min-width: 0;
  flex: 1 1 auto;
}

.gse-dashboard-list-content strong,
.gse-dashboard-list-content span {
  display: block;
}

.gse-dashboard-list-content strong {
  color: var(--gse-text);
  font-size: 13px;
}

.gse-dashboard-list-content span {
  color: var(--gse-muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gse-list-count {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--gse-module);
  background: var(--gse-module-soft);
  font-size: 11px;
  font-weight: 700;
}

.gse-dashboard-empty-line {
  color: var(--gse-muted);
  font-size: 13px;
}

.gse-dashboard-full-link {
  width: 100%;
  margin-top: 12px;
}

.gse-table-card .card-body {
  padding: 0;
}

.gse-table-card .gse-summary-row {
  padding: 20px var(--gse-card-gutter) 0;
  margin-right: 0;
  margin-left: 0;
}

.gse-table-card .card-body > .row {
  padding: 0 var(--gse-card-gutter) 18px;
  margin-right: 0;
  margin-left: 0;
}

.gse-table-card .card-body > .row > [class*="col-"] {
  padding-right: 0;
  padding-left: 0;
}

.gse-table-card .gse-helper-text {
  display: block;
  max-width: 780px;
  margin-top: 8px;
}

.gse-table-card .table-scrollable {
  margin: 0 var(--gse-card-gutter) var(--gse-card-gutter);
}

.gse-table-card .table-scrollable .dataTables_wrapper {
  margin: 0;
}

#calendar {
  margin-top: 16px;
  border: 1px solid var(--gse-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--gse-shadow);
}

#calendar table {
  margin-bottom: 0;
}

#calendar .fc-head-container,
#calendar .fc-day-header {
  border-color: var(--gse-line);
}

#calendar .fc-day-header {
  padding: 10px 8px;
  background: var(--gse-module-soft);
  color: #344054;
  font-size: 12px;
  font-weight: 700;
}

#calendar .fc-widget-content {
  border-color: #edf1f6;
}

#calendar .fc-day-grid-container {
  background: #fff;
}

#calendar .fc-event,
#calendar a.fc-event {
  border: 0;
  border-radius: 6px;
  background: var(--gse-module);
  color: #fff;
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.2);
}

/* Source UI system: generic CRUD/list/form improvements for all modules. */
.card-topline-red,
.card-topline-aqua,
.card-topline-yellow,
.card-topline-green,
.card-topline-purple {
  border-top: 0 !important;
}

.card-body > .row:first-child,
.panel-body > .row:first-child {
  margin-bottom: 14px;
}

.btn-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-group > .btn,
.btn-group > a.btn {
  margin-left: 0 !important;
}

.btn-circle {
  border-radius: 6px !important;
}

.btn i {
  margin-right: 5px;
}

.btn-xs i,
.btn-icon-only i {
  margin-right: 0;
}

.table .btn-xs {
  margin: 2px;
}

.table .dropdown-menu {
  min-width: 190px;
}

.table .dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table td small,
.table .txt-info {
  color: var(--gse-muted) !important;
  font-size: 12px;
}

.table td .badge,
.table td .label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  margin: 2px;
}

.table td .list-divided {
  margin: 0;
  padding-left: 16px;
}

.table td .list-divided li {
  margin-bottom: 4px;
  color: var(--gse-text);
  line-height: 1.4;
}

.form-group[class*="col-md-"],
.form-group[class*="col-sm-"],
.form-group[class*="col-lg-"] {
  border-bottom: 0;
}

.form-group .help-block,
.form-group .help-inline {
  color: var(--gse-muted);
  font-size: 12px;
}

.select2-container .select2-selection--single,
.select2-container--bootstrap .select2-selection {
  min-height: 38px;
  border-color: #cfd8e3;
  border-radius: 5px;
}

.select2-container--bootstrap .select2-selection--single .select2-selection__rendered {
  padding-top: 4px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--gse-line);
}

.dropdown-menu {
  border: 1px solid var(--gse-line);
  border-radius: 8px;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.14);
}

.dropdown-menu > li > a {
  padding: 8px 14px;
  color: var(--gse-text);
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
  background: #eef4ff;
  color: var(--gse-primary);
}

.docListWindow {
  width: 100%;
  padding: 0;
  margin: 0;
}

.docListWindow li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eef2f7;
}

.docListWindow li:last-child {
  border-bottom: 0;
}

.prog-avatar img,
.patient-img img {
  border-radius: 8px;
  object-fit: cover;
}

@media (max-width: 767px) {
  :root {
    --gse-card-gutter: 14px;
  }

  .page-content {
    padding: 12px;
  }

  .page-title-breadcrumb {
    display: block;
  }

  .page-title {
    margin-bottom: 10px;
    font-size: 19px;
  }

  .card-head {
    min-height: auto;
    align-items: flex-start;
    padding: 14px 16px;
  }

  .card-head header {
    max-width: 100%;
    font-size: 16px;
    line-height: 1.25;
  }

  .card-body,
  .panel-body {
    padding: 14px;
  }

  .gse-form-card .card-body,
  .gse-form-card .panel-body {
    padding: 14px;
  }

  .gse-form-card .form-horizontal .gse-form-group {
    padding: 12px 0;
  }

  .gse-form-card .control-label {
    display: block;
    padding-top: 0;
    margin-bottom: 7px;
    text-align: left !important;
  }

  .gse-form-card .form-group.row > [class*="col-"],
  .gse-form-card .gse-date-field,
  .gse-form-card .gse-file-field .compose-editor {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    padding-right: 0;
    padding-left: 0;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .form-actions .btn,
  .form-actions a.btn {
    width: 100%;
    margin-left: 0;
  }

  .gse-form-card .gse-form-actions .btn,
  .gse-form-card .gse-form-actions a.btn {
    width: 100%;
    margin: 0 0 8px !important;
  }

  .gse-table-card .gse-summary-row {
    padding-top: 14px;
  }

  .gse-table-card .card-body > .row {
    padding-bottom: 14px;
  }

  .gse-table-card .table-scrollable {
    margin-bottom: 14px;
  }

  .gse-summary-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .gse-dashboard-shell > .row {
    margin-right: 0;
    margin-left: 0;
  }

  .gse-dashboard-kpis {
    margin-right: 0;
    margin-bottom: 12px;
    margin-left: 0;
  }

  .gse-dashboard-shell > .row > [class*="col-"],
  .gse-dashboard-kpis > [class*="col-"] {
    padding-right: 0;
    padding-left: 0;
  }

  .gse-dashboard-hero {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }

  .gse-dashboard-hero h2 {
    font-size: 20px;
  }

  .gse-dashboard-hero-metrics {
    grid-template-columns: 1fr;
  }

  .gse-dashboard-hero-metrics > div {
    min-height: 72px;
  }

  .gse-dashboard-quick-actions {
    grid-template-columns: 1fr;
  }

  .gse-quick-action {
    min-height: 68px;
  }

  .gse-chart-wrap {
    min-height: 300px;
    padding: 14px;
  }

  .gse-chart-wrap canvas {
    min-height: 270px;
  }

  .gse-dashboard-list li {
    align-items: flex-start;
  }

  .gse-list-count {
    margin-top: 4px;
  }

  .gse-summary-item {
    padding: 11px 12px;
  }

  .gse-summary-item strong {
    font-size: 20px;
  }

  .gse-list-toolbar .text-right {
    margin-top: 10px;
    text-align: left !important;
  }

  .gse-filter-grid,
  .gse-import-layout {
    grid-template-columns: 1fr;
  }

  .gse-filter-form .form-group {
    margin-bottom: 10px;
  }

  .gse-filter-actions .btn,
  .gse-filter-actions a.btn,
  .gse-list-toolbar .btn-group,
  .gse-list-toolbar .btn {
    width: 100%;
  }

  .gse-student-cell {
    min-width: 0;
  }

  .gse-pagination-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .gse-pagination-bar .pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }

  .card-body > .row > .col-6,
  .card-body > .row > [class*="col-6"] {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .dataTables_wrapper {
    padding: 10px;
  }

  .dataTables_wrapper .row:first-child,
  .dataTables_wrapper .row:last-child {
    gap: 10px;
    margin-right: 0;
    margin-left: 0;
  }

  .dataTables_wrapper .dataTables_filter,
  .dataTables_wrapper .dataTables_length,
  .dataTables_wrapper .dataTables_info,
  .dataTables_wrapper .dataTables_paginate {
    width: 100%;
    text-align: left;
  }

  .dataTables_wrapper .dataTables_filter label,
  .dataTables_wrapper .dataTables_length label {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .dataTables_wrapper .dataTables_filter input,
  .dataTables_wrapper .dataTables_length select {
    width: 100%;
    min-width: 0;
    margin-left: 0;
  }

  .gse-table-responsive {
    border: 0;
    background: transparent;
    overflow: visible;
  }

  .gse-table-optimized {
    min-width: 0;
    table-layout: auto !important;
  }

  .gse-table-optimized colgroup,
  .gse-table-optimized col {
    display: none !important;
  }

  .gse-table-optimized,
  .gse-table-optimized thead,
  .gse-table-optimized tbody,
  .gse-table-optimized tr,
  .gse-table-optimized th,
  .gse-table-optimized td {
    display: block !important;
    width: 100% !important;
  }

  .gse-table-optimized thead {
    display: none !important;
    position: absolute;
    width: 1px !important;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .gse-table-optimized tbody tr {
    margin: 0 0 12px;
    border: 1px solid var(--gse-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--gse-shadow);
    overflow: visible;
  }

  .gse-table-optimized tbody td {
    display: block !important;
    box-sizing: border-box;
    min-height: 42px;
    padding: 9px 10px;
    border: 0 !important;
    border-top: 1px solid #edf2f7 !important;
    text-align: left !important;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .gse-table-optimized tbody td.sorting_1 {
    background: transparent !important;
  }

  .gse-table-optimized tbody td:first-child {
    border-top: 0;
  }

  .gse-table-optimized tbody td:before {
    content: attr(data-label);
    display: block;
    margin-bottom: 5px;
    color: var(--gse-muted);
    font-size: 11px;
    font-weight: 800;
    text-align: left;
    text-transform: uppercase;
  }

  .gse-table-actions-cell {
    min-width: 0;
    white-space: normal;
  }

  .gse-table-actions-cell .dropdown,
  .gse-table-actions-cell .btn-group {
    display: flex;
    position: relative;
    width: 100%;
  }

  .gse-table-actions-cell .btn,
  .gse-table-actions-cell a.btn {
    min-width: 36px;
    min-height: 34px;
    margin-top: 4px;
  }

  .gse-status-action {
    width: auto;
    min-width: 0;
  }

  .gse-table-actions-cell .dropdown-toggle {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }

  .gse-table-actions-cell .dropdown-menu {
    position: static;
    float: none;
    width: 100%;
    min-width: 0;
    margin-top: 8px;
    border-radius: 7px;
  }

  .gse-table-actions-cell .btn-group {
    gap: 8px;
    justify-content: flex-start;
  }

  .page-breadcrumb {
    width: 100%;
    justify-content: flex-start;
    margin-top: 10px;
  }

  .btn-group {
    display: flex;
    width: 100%;
  }

  .btn-group .btn,
  .btn-group a.btn {
    flex: 1 1 100%;
  }
}

@media (max-width: 360px) {
  .gse-summary-row {
    grid-template-columns: 1fr;
  }
}

.gse-student-space .page-content {
  background: #f6f8fb;
}

.gse-student-space .page-bar {
  margin-bottom: 18px;
  border: 1px solid #e7edf4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.05);
}

.gse-student-space .page-title {
  color: #172033;
  font-weight: 800;
}

.gse-student-space .card,
.gse-student-space .card-box {
  border: 1px solid #e7edf4;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.06);
}

.gse-student-space .card-head,
.gse-student-space .card-header {
  min-height: 52px;
  border-bottom: 1px solid #e7edf4;
  background: #fff;
}

.gse-student-space .card-head header,
.gse-student-space .card-header {
  color: #172033;
  font-weight: 800;
}

.gse-student-space .card-body {
  color: #243044;
}

.gse-student-space .form-control,
.gse-student-space .input-height,
.gse-student-space select,
.gse-student-space textarea {
  border-color: #d9e2ec;
  border-radius: 7px;
  box-shadow: none;
}

.gse-student-space .form-control:focus,
.gse-student-space .input-height:focus,
.gse-student-space select:focus,
.gse-student-space textarea:focus {
  border-color: #28a6c8;
  box-shadow: 0 0 0 3px rgba(40, 166, 200, 0.12);
}

.gse-student-space .control-label {
  color: #374151;
  font-weight: 700;
}

.gse-student-space .btn {
  border-radius: 7px;
  font-weight: 700;
}

.gse-student-space .table-responsive,
.gse-student-space .table-scrollable {
  border-color: #e7edf4;
}

.gse-student-space table.table,
.gse-student-space .mdl-data-table {
  border-color: #e7edf4;
  color: #243044;
}

.gse-student-space table.table thead th,
.gse-student-space .mdl-data-table thead th {
  border-bottom: 1px solid #d9e2ec;
  background: #f8fafc;
  color: #526174;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.gse-student-space table.table tbody td,
.gse-student-space .mdl-data-table tbody td {
  vertical-align: middle;
}

.gse-student-space .alert {
  border-radius: 8px;
}

.gse-student-login-label {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid #e7edf4;
  border-radius: 8px;
  background: #f8fafc;
  color: #526174;
  font-size: 15px;
  font-weight: 700;
}

.gse-student-password-card .card-body {
  padding: 22px;
}

.gse-news-card .card-head header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.gse-news-card .card-head header small {
  flex-basis: 100%;
  margin-left: 27px;
  color: #718096;
  font-size: 12px;
  font-weight: 600;
  text-transform: none;
}

.gse-news-card .card-body {
  padding: 22px;
}

.gse-news-list {
  display: grid;
  gap: 16px;
}

.gse-news-item {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  border: 1px solid #e7edf4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.05);
}

.gse-news-media {
  min-height: 140px;
  border-radius: 8px;
  background: #eef4ff;
  overflow: hidden;
}

.gse-news-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
  object-position: center;
}

.gse-news-content {
  min-width: 0;
}

.gse-news-meta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: #718096;
  font-size: 12px;
  font-weight: 700;
}

.gse-news-meta i {
  color: #087f9c;
}

.gse-news-content h3 {
  margin: 0 0 10px;
  color: #172033;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
}

.gse-news-text {
  color: #374151;
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.gse-news-text p:last-child {
  margin-bottom: 0;
}

.gse-news-empty {
  padding: 34px 18px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  text-align: center;
}

.gse-news-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 12px;
  border-radius: 50%;
  color: #087f9c;
  background: #e6f8fc;
  font-size: 22px;
}

.gse-news-empty h4 {
  margin: 0 0 6px;
  color: #172033;
  font-weight: 800;
}

.gse-news-empty p {
  margin: 0;
  color: #718096;
}

.gse-news-pagination {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e7edf4;
}

.gse-news-pagination .pagination {
  margin-bottom: 0;
}

.gse-schedule-card .card-head header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.gse-schedule-card .card-head header small {
  flex-basis: 100%;
  margin-left: 28px;
  color: #718096;
  font-size: 12px;
  font-weight: 600;
  text-transform: none;
}

.gse-schedule-card .card-body {
  padding: 22px;
}

.gse-schedule-filter {
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid #e7edf4;
  border-radius: 8px;
  background: #fbfdff;
}

.gse-schedule-filter .form-group {
  margin-bottom: 12px;
}

.gse-schedule-filter .control-label {
  margin-bottom: 6px;
}

.gse-schedule-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 0;
}

.gse-schedule-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
}

.gse-schedule-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e7edf4;
}

.gse-schedule-section-title span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #172033;
  font-size: 15px;
  font-weight: 800;
}

.gse-schedule-section-title i {
  color: #087f9c;
}

.gse-schedule-section-title small {
  color: #718096;
  font-weight: 700;
}

.gse-schedule-week-title {
  margin-top: 22px;
}

.gse-schedule-day-table {
  margin-bottom: 6px;
  border-radius: 8px;
  overflow: hidden;
}

.gse-schedule-day-table td:first-child {
  min-width: 170px;
  font-weight: 800;
}

.gse-schedule-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin: 4px 4px 0 0;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.gse-schedule-status-current {
  color: #065f73;
  background: #dff7fb;
}

.gse-schedule-status-present {
  color: #167346;
  background: #e5f8ee;
}

.gse-schedule-status-absent {
  color: #a93636;
  background: #fdecec;
}

.gse-schedule-status-ended {
  color: #526174;
  background: #eef2f7;
}

.gse-schedule-status-waiting {
  color: #9a5c00;
  background: #fff3d8;
}

.gse-schedule-empty {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 24px 16px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #718096;
  text-align: center;
}

.gse-schedule-empty span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #087f9c;
  background: #e6f8fc;
  font-size: 20px;
}

.gse-schedule-empty strong {
  color: #172033;
  font-size: 15px;
}

.gse-schedule-empty small {
  font-weight: 600;
}

.gse-schedule-scroll {
  padding: 10px;
  border: 1px solid #e7edf4;
  border-radius: 8px;
  background: #fff;
  overflow-x: auto;
}

.gse-schedule-scroll #calendar,
.gse-schedule-scroll .fc-toolbar,
.gse-schedule-scroll .fc-view-container,
.gse-schedule-scroll .fc-view {
  max-width: none;
}

.gse-schedule-scroll .fc-head-container,
.gse-schedule-scroll .fc-widget-content,
.gse-schedule-scroll .fc-day-header {
  border-color: #e7edf4;
}

.gse-schedule-scroll .fc-day-header {
  height: 46px;
  background: #f1f7f6;
  color: #526174;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  vertical-align: middle;
}

.gse-schedule-scroll .gse-schedule-corner {
  position: sticky;
  left: 0;
  z-index: 6;
  background: #e8f5f3;
  color: #087f9c;
  text-transform: uppercase;
}

.gse-schedule-scroll .gse-schedule-hour span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #dbe8ef;
}

.gse-schedule-scroll .fc-day {
  background: #fff;
  color: #172033;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  vertical-align: middle;
}

.gse-schedule-scroll .gse-schedule-day-label {
  position: sticky;
  left: 0;
  z-index: 5;
  background: #f8fafc;
  color: #172033;
  box-shadow: 8px 0 18px rgba(15, 23, 42, 0.06);
}

.gse-schedule-scroll .gse-schedule-day-spacer {
  position: sticky;
  left: 0;
  z-index: 4;
  background: transparent;
}

.gse-schedule-scroll .gse-schedule-grid-cell {
  background-image: linear-gradient(180deg, rgba(8, 127, 156, 0.04), rgba(8, 127, 156, 0));
}

.gse-schedule-scroll .fc-event-container {
  padding: 6px;
  vertical-align: middle;
}

.gse-schedule-week-table {
  table-layout: fixed;
  margin-bottom: 0;
  border-collapse: collapse;
}

.gse-schedule-week-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 42px;
  background: #f8fafc;
  color: #526174;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.gse-schedule-week-table th,
.gse-schedule-week-table td {
  border-color: #e7edf4 !important;
}

.gse-schedule-day-name {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #f8fafc;
  color: #172033;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  vertical-align: middle !important;
}

.gse-schedule-week-slot {
  height: 58px;
  padding: 6px !important;
  background: #fff;
  vertical-align: middle !important;
}

.gse-schedule-week-slot-filled {
  background: #fbfdff;
}

.gse-schedule-event {
  display: grid;
  gap: 2px;
  min-height: 42px;
  padding: 7px 9px;
  border: 0 !important;
  border-radius: 7px;
  color: #fff !important;
  box-shadow: 0 6px 14px rgba(17, 24, 39, 0.14);
}

.gse-schedule-event .fc-content {
  display: grid;
  gap: 2px;
  min-width: 0;
  white-space: normal;
}

.gse-schedule-event span,
.gse-schedule-event strong,
.gse-schedule-event small {
  display: block;
  color: #fff;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gse-schedule-event span {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.92;
}

.gse-schedule-event strong {
  font-size: 12px;
  font-weight: 800;
}

.gse-schedule-event small {
  font-size: 11px;
  opacity: 0.9;
}

.gse-student-profile-card .card-body {
  padding: 26px;
}

.gse-student-profile-card .row {
  display: flex;
  align-items: center;
}

.gse-student-avatar-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 164px;
  height: 164px;
  margin-right: auto;
  margin-bottom: 0;
  margin-left: auto;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #f1f5f9;
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.14);
  overflow: hidden;
}

.gse-student-profile-avatar {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.gse-student-profile-main {
  margin-bottom: 18px;
}

.gse-profile-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 8px;
  padding: 5px 12px;
  border: 1px solid #c7ebf6;
  border-radius: 999px;
  color: #087f9c;
  background: #eefbff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.gse-student-profile-name {
  margin-bottom: 4px;
  color: #172033;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
}

.gse-student-profile-subtitle {
  color: #627287;
  font-size: 14px;
  font-weight: 600;
}

.gse-profile-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.gse-profile-info-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  column-gap: 10px;
  min-height: 72px;
  padding: 13px;
  border: 1px solid #e7edf4;
  border-radius: 8px;
  background: #fbfdff;
}

.gse-profile-info-icon {
  display: inline-flex;
  grid-row: span 2;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  font-size: 17px;
}

.gse-profile-info-icon-warning {
  color: #9a5c00;
  background: #fff3d8;
}

.gse-profile-info-icon-success {
  color: #167346;
  background: #e5f8ee;
}

.gse-profile-info-icon-teal {
  color: #087f9c;
  background: #e6f8fc;
}

.gse-profile-info-icon-danger {
  color: #a93636;
  background: #fdecec;
}

.gse-profile-info-icon-primary {
  color: #225ab8;
  background: #ebf2ff;
}

.gse-profile-label {
  color: #718096;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.gse-profile-value {
  min-width: 0;
  color: #243044;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.gse-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gse-profile-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  border-radius: 7px;
  font-weight: 700;
}

.gse-profile-actions .gse-secondary-action {
  border-color: #c7ebf6;
  color: #087f9c;
  background: #eefbff;
}

.gse-profile-actions .gse-secondary-action:hover,
.gse-profile-actions .gse-secondary-action:focus {
  border-color: #28a6c8;
  color: #065f73;
  background: #def5fb;
}

.gse-student-form-card .card-head header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: #172033;
  font-weight: 800;
}

.gse-student-form-card .card-head header small {
  flex-basis: 100%;
  margin-left: 26px;
  color: #718096;
  font-size: 12px;
  font-weight: 600;
  text-transform: none;
}

.gse-student-form-grid .form-group {
  margin-bottom: 18px;
}

.gse-student-form-grid .control-label {
  margin-bottom: 6px;
  color: #374151;
  font-weight: 700;
}

.gse-student-form-grid .form-control,
.gse-student-form-grid .input-height,
.gse-student-form-grid select,
.gse-student-form-grid .form-control-textarea {
  border-color: #d9e2ec;
  border-radius: 7px;
  box-shadow: none;
}

.gse-student-form-grid .form-control:focus,
.gse-student-form-grid .input-height:focus,
.gse-student-form-grid select:focus,
.gse-student-form-grid .form-control-textarea:focus {
  border-color: #28a6c8;
  box-shadow: 0 0 0 3px rgba(40, 166, 200, 0.12);
}

.gse-student-form-grid .required {
  color: #d64545;
  font-weight: 800;
}

.gse-profile-submit {
  min-height: 40px;
  border-radius: 7px;
  font-weight: 800;
}

@media (max-width: 767px) {
  .gse-student-profile-card .card-body {
    padding: 18px;
  }

  .gse-student-profile-card .row {
    display: block;
  }

  .gse-student-avatar-wrap,
  .gse-student-profile-main {
    text-align: center;
  }

  .gse-student-avatar-wrap {
    width: 128px;
    height: 128px;
    margin-bottom: 16px;
  }

  .gse-student-profile-name {
    font-size: 22px;
    text-align: center !important;
  }

  .gse-student-profile-subtitle {
    text-align: center !important;
  }

  .gse-profile-info-grid {
    grid-template-columns: 1fr;
  }

  .gse-profile-actions .btn,
  .gse-profile-actions a.btn {
    width: 100%;
    justify-content: center;
  }

  .gse-student-form-card .card-head header small {
    margin-left: 0;
  }

  .gse-news-card .card-head header small {
    margin-left: 0;
  }

  .gse-news-card .card-body {
    padding: 16px;
  }

  .gse-news-item {
    grid-template-columns: 1fr;
    padding: 13px;
  }

  .gse-news-media,
  .gse-news-image {
    min-height: 180px;
  }

  .gse-news-pagination {
    justify-content: center;
  }

  .gse-schedule-card .card-head header small {
    margin-left: 0;
  }

  .gse-schedule-card .card-body {
    padding: 16px;
  }

  .gse-schedule-filter {
    padding: 13px;
  }

  .gse-schedule-actions .btn,
  .gse-schedule-actions a.btn {
    width: 100%;
    justify-content: center;
  }

  .gse-schedule-section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .gse-schedule-day-table {
    min-width: 760px;
  }

  .gse-schedule-scroll {
    padding: 8px;
  }
}
