:root {
  --primary: #21356a;
  --primary-container: #4c4ea3;
  --surface: #f1f3f7;
  --surface-low: #e8ecf4;
  --surface-highest: #d9dfeb;
  --surface-lowest: #ffffff;
  --text-main: #1f3367;
  --text-muted: #1a6b87;
  --outline: #b9c3d9;
  --success: #1e9ba8;
  --warning: #6b63b5;
  --info: #1b8fb2;
  --danger: #cf4b6a;
  --shadow-soft: 0 0.625rem 1.875rem -0.3125rem rgba(17, 28, 45, 0.05), 0 0.3125rem 0.9375rem -0.1875rem rgba(17, 28, 45, 0.03);
}

* {
  box-sizing: border-box;
}

[x-cloak] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Inter", "Segoe UI", sans-serif;
  background: var(--surface);
  color: var(--text-main);
}

h1,
h2,
h3,
h4 {
  font-family: "Manrope", "Inter", sans-serif;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 350, "GRAD" 0, "opsz" 24;
  font-size: 1.25rem;
  line-height: 1;
}

.icon-btn,
.btn,
input,
select,
button {
  font: inherit;
}

.icon-btn {
  border: 0;
  border-radius: 0.625rem;
  background: transparent;
  color: var(--text-main);
  width: 2.5rem;
  height: 2.5rem;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.icon-btn:hover {
  background: rgba(79, 70, 229, 0.08);
}

.btn {
  border: 0;
  border-radius: 0.625rem;
  padding: 0.6rem 0.9rem;
  cursor: pointer;
  font-weight: 600;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-container));
  color: #fff;
}

.btn-soft {
  background: var(--surface-low);
  color: var(--text-main);
}

.app-layout {
  min-height: 100vh;
  display: flex;
  background: var(--surface-low);
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 28, 45, 0.45);
  z-index: 9998;
}

.sidebar {
  width: 16.25rem;
  background:
    linear-gradient(180deg, #e9edf7 0%, #e3e8f4 60%, #dde4f1 100%);
  border-right: 0.0625rem solid rgba(33, 53, 106, 0.1);
  padding: 1rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  transform: translateX(-100%);
  transition: transform 0.2s ease, width 0.2s ease;
  z-index: 9999;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(33, 53, 106, 0.2) transparent;
}

.sidebar::-webkit-scrollbar {
  width: 0.3125rem;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(33, 53, 106, 0.2);
  border-radius: 62.4375rem;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(33, 53, 106, 0.32);
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar.collapsed {
  width: 4.5rem;
}

.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.sidebar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-family: "Manrope", sans-serif;
}

.brand-badge,
.brand-mark {
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 0.625rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-container));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.sidebar-nav {
  display: grid;
  gap: 0.65rem;
  padding-bottom: 0.85rem;
}

.sidebar-group {
  display: grid;
  gap: 0.35rem;
}

.sidebar-group-title {
  margin: 0;
  padding: 0 0.5rem;
  color: #5f6f8d;
  font-size: 0.67rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.sidebar-list,
.sidebar-submenu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-list {
  display: grid;
  gap: 0.18rem;
}

.sidebar-list-item {
  display: block;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.62rem 0.72rem;
  border-radius: 0.75rem;
  color: #2a3950;
  font-size: 0.87rem;
  width: 100%;
  border: 0.0625rem solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.nav-label {
  white-space: normal;
  line-height: 1.2;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.52);
  border-color: rgba(33, 53, 106, 0.12);
}

.nav-item.active {
  background: rgba(33, 53, 106, 0.08);
  color: var(--primary);
  border-color: rgba(33, 53, 106, 0.22);
  box-shadow: none;
  font-weight: 700;
}

.sidebar-details > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.sidebar-details > summary::-webkit-details-marker {
  display: none;
}

.nav-item-parent .nav-caret {
  margin-left: auto;
  transition: transform 0.16s ease;
}

.nav-item-parent .nav-caret.rotated {
  transform: rotate(180deg);
}

.nav-item-parent {
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-weight: 600;
}

.sidebar-submenu {
  margin-top: 0.2rem;
  padding-left: 0.55rem;
  border-left: 0.125rem solid rgba(33, 53, 106, 0.2);
  margin-left: 1rem;
  display: grid;
  gap: 0.15rem;
}

.sidebar-submenu-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  border-radius: 0.625rem;
  color: #4f607f;
  font-size: 0.82rem;
  padding: 0.5rem 0.55rem;
  line-height: 1.2;
  border: 0.0625rem solid transparent;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.sidebar-submenu-item:hover {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(33, 53, 106, 0.1);
  color: var(--primary);
}

.sidebar-submenu-item.active {
  background: rgba(33, 53, 106, 0.08);
  border-color: rgba(33, 53, 106, 0.2);
  color: var(--primary);
  font-weight: 700;
}

.sidebar-collapsed-flyout {
  display: none;
}

.sidebar-collapsed-flyout-title {
  margin: 0;
  color: #5a6b8b;
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.sidebar-collapsed-flyout-list {
  list-style: none;
  margin: 0.45rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.2rem;
}

.sidebar-badge {
  margin-left: auto;
  background: rgba(27, 143, 178, 0.15);
  color: #17657e;
  border-radius: 62.4375rem;
  padding: 0.05rem 0.42rem;
  font-size: 0.68rem;
  font-weight: 700;
}

.sidebar-role-preview {
  margin-top: auto;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 0.625rem;
  padding: 0.4rem 0.5rem;
}

.sidebar-role-preview details > summary {
  cursor: pointer;
  list-style: none;
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 600;
}

.sidebar-role-preview details > summary::-webkit-details-marker {
  display: none;
}

.sidebar-role-preview-list {
  display: grid;
  gap: 0.2rem;
  margin-top: 0.45rem;
}

.sidebar-role-preview-list a {
  font-size: 0.76rem;
  border-radius: 0.375rem;
  padding: 0.35rem 0.45rem;
  color: var(--text-muted);
}

.sidebar-role-preview-list a:hover {
  background: rgba(33, 53, 106, 0.08);
  color: var(--primary);
}

.sidebar.collapsed .sidebar-group-title,
.sidebar.collapsed .sidebar-submenu {
  display: none !important;
}

.app-main {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.top-header {
  min-height: 4.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
  background: var(--surface-low);
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 0.0625rem solid rgba(33, 53, 106, 0.12);
  isolation: isolate;
}

.top-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--surface-low);
  z-index: -1;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.top-header-page h1 {
  font-size: 1.28rem;
  line-height: 1.2;
  margin: 0;
}

.top-header-page p {
  margin: 0.1rem 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.header-logo {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.profile-menu-wrap {
  position: relative;
}

.profile-trigger {
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  color: var(--text-main);
}

.avatar-with-badge {
  position: relative;
  display: inline-block;
}

.avatar {
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 62.4375rem;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, #c7c4ff, #e2dfff);
  color: #1d156e;
}

.notif-badge {
  position: absolute;
  top: -0.3125rem;
  right: -0.4375rem;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.2rem;
  border-radius: 62.4375rem;
  background: #e43d5c;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
}

.profile-trigger-meta {
  display: none;
  text-align: left;
}

.profile-trigger-meta strong {
  display: block;
  font-size: 0.8rem;
  line-height: 1.1;
  max-width: 13.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-trigger-meta small {
  display: block;
  color: var(--text-muted);
  font-size: 0.7rem;
  line-height: 1.1;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  min-width: 11.25rem;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: var(--shadow-soft);
  padding: 0.3rem;
  z-index: 30;
}

.profile-dropdown-item {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  border-radius: 0.5rem;
  color: var(--text-main);
  font-size: 0.84rem;
  padding: 0.55rem 0.65rem;
  cursor: pointer;
  display: block;
}

.profile-dropdown-item:hover {
  background: rgba(33, 53, 106, 0.08);
}

.profile-dropdown-item.danger {
  color: #a02626;
}

.content-wrap {
  padding: 1rem;
  display: grid;
  gap: 0.85rem;
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.breadcrumb .current {
  color: var(--text-main);
  font-weight: 600;
}

.page-header {
  padding: 0.35rem 0.1rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.page-header p {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.page-content {
  display: grid;
  gap: 1rem;
}

.module-shell {
  display: grid;
  gap: 0.9rem;
}

.module-stack {
  display: grid;
  gap: 1rem;
}

.stats-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.stat-card {
  background: var(--surface-lowest);
  border-radius: 0.875rem;
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
}

.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.stat-row h3 {
  font-size: 1.6rem;
}

.stat-trend {
  font-size: 0.78rem;
  padding: 0.25rem 0.45rem;
  border-radius: 62.4375rem;
  font-weight: 700;
}

.stat-trend.success {
  background: #e7f9f2;
  color: #0e9b6d;
}

.stat-trend.warning {
  background: #fff6e5;
  color: #b7791f;
}

.stat-trend.info {
  background: #e7f4fc;
  color: #057aa8;
}

.card {
  background: var(--surface-lowest);
  border-radius: 0.875rem;
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.card-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.chart-placeholder {
  min-height: 16.25rem;
  border-radius: 0.75rem;
  background: linear-gradient(180deg, #f0f3ff, #ffffff);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  border: 0.0625rem dashed rgba(119, 117, 135, 0.4);
}

.dashboard-grid {
  display: grid;
  gap: 1rem;
}

.activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.activity-list li {
  background: var(--surface-low);
  border-radius: 0.625rem;
  padding: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.activity-list span {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
}

.quick-action-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.action-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.action-toolbar-meta h2 {
  margin: 0;
  font-size: 1.08rem;
}

.action-toolbar-meta p {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.action-toolbar-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.students-module-actions .btn {
  font-size: 0.82rem;
}

.flash-stack {
  display: grid;
  gap: 0.45rem;
}

.flash-message {
  border-radius: 0.625rem;
  padding: 0.62rem 0.72rem;
  font-size: 0.84rem;
}

.flash-message.success {
  background: #e8f9f2;
  color: #0e7f5a;
}

.flash-message.warning {
  background: #fff4e6;
  color: #a66a00;
}

.flash-message.error {
  background: #fdeaea;
  color: #a02626;
}

.crud-popup-host {
  position: fixed;
  inset: 0;
  z-index: 90000;
  display: grid;
  place-items: center;
}

.crud-popup-host[hidden] {
  display: none !important;
  pointer-events: none !important;
}

.crud-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 28, 43, 0.3);
}

.crud-popup-card {
  position: relative;
  width: min(24rem, calc(100vw - 2rem));
  background: #fff;
  border-radius: 0.85rem;
  padding: 1.6rem 1.25rem 1.1rem;
  box-shadow: 0 1rem 2.5rem rgba(20, 33, 60, 0.2);
  text-align: center;
  transform: translateY(0.4rem) scale(0.98);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.crud-popup-host.show .crud-popup-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.crud-popup-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  border: 0;
  background: transparent;
  color: #6d7a95;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  cursor: pointer;
}

.crud-popup-ribbon {
  position: absolute;
  top: -0.65rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2.1rem;
  height: 2.2rem;
  border-radius: 0.35rem 0.35rem 0.2rem 0.2rem;
  display: grid;
  place-items: center;
}

.crud-popup-ribbon-dot {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.85rem;
}

.crud-popup-title {
  margin: 0.7rem 0 0.35rem;
  font-size: 1.18rem;
  font-family: "Manrope", "Inter", sans-serif;
}

.crud-popup-message {
  margin: 0;
  font-size: 0.92rem;
  color: #4f5f7d;
}

.crud-popup-meta {
  margin: 0.8rem 0 0;
  font-size: 0.78rem;
  color: #72819d;
}

.crud-popup-host.is-success .crud-popup-ribbon {
  background: #d9f6e7;
}

.crud-popup-host.is-success .crud-popup-ribbon-dot {
  background: #16a96f;
}

.crud-popup-host.is-error .crud-popup-ribbon {
  background: #fde3df;
}

.crud-popup-host.is-error .crud-popup-ribbon-dot {
  background: #d7382c;
}

.crud-popup-host.is-warning .crud-popup-ribbon {
  background: #ffeac7;
}

.crud-popup-host.is-warning .crud-popup-ribbon-dot {
  background: #f2a10b;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 62.4375rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.status-badge.success {
  background: #e8f9f2;
  color: #0f8a61;
}

.status-badge.info {
  background: #e7f4fc;
  color: #085f86;
}

.profile-header-card {
  background: var(--surface-lowest);
  border-radius: 0.875rem;
  box-shadow: var(--shadow-soft);
  padding: 1rem;
  display: grid;
  gap: 0.8rem;
}

.profile-header-main {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.profile-avatar {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.75rem;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-container));
}

.profile-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.profile-title-row h2 {
  margin: 0;
  font-size: 1.2rem;
}

.profile-header-main p,
.profile-header-main small {
  margin: 0.1rem 0 0;
  color: var(--text-muted);
}

.profile-header-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn.danger {
  color: #a02626;
}

.profile-action-icon {
  background: rgba(33, 53, 106, 0.1);
  border: 0.0625rem solid rgba(33, 53, 106, 0.12);
}

.profile-action-icon:hover {
  background: rgba(33, 53, 106, 0.18);
}

.profile-action-icon.danger {
  color: #a02626;
  background: rgba(207, 75, 106, 0.12);
  border-color: rgba(207, 75, 106, 0.25);
}

.profile-action-icon.danger:hover {
  background: rgba(207, 75, 106, 0.2);
}

.summary-stat-grid {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.summary-stat-card {
  border-radius: 0.75rem;
  padding: 0.7rem 0.8rem;
  border: 0.0625rem solid rgba(33, 53, 106, 0.12);
  background: rgba(255, 255, 255, 0.7);
}

.summary-stat-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.summary-stat-card h3 {
  margin: 0.35rem 0 0;
  font-size: 1.08rem;
}

.summary-stat-card.success {
  border-color: rgba(14, 127, 90, 0.28);
}

.summary-stat-card.warning {
  border-color: rgba(166, 106, 0, 0.3);
}

.summary-stat-card.info {
  border-color: rgba(8, 95, 134, 0.28);
}

.tab-nav {
  display: flex;
  gap: 0.45rem;
  overflow: auto;
  padding-bottom: 0.25rem;
  align-items: stretch;
  justify-content: flex-start;
}

.tab-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  text-align: left;
  border-radius: 62.4375rem;
  padding: 0.45rem 0.72rem;
  border: 0.0625rem solid rgba(33, 53, 106, 0.14);
  background: rgba(255, 255, 255, 0.62);
  font-size: 0.8rem;
  font-family: "Inter", "Segoe UI", sans-serif;
  font-weight: 500;
  white-space: nowrap;
}

.tab-link .material-symbols-outlined {
  font-size: 1rem;
}

.tab-link.active {
  background: rgba(33, 53, 106, 0.08);
  border-color: rgba(33, 53, 106, 0.24);
  color: var(--primary);
  font-weight: 700;
}

.detail-card-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.info-grid {
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.detail-info-card .card-head h3 {
  text-decoration: underline;
  text-underline-offset: 0.22rem;
}

.info-grid-row {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0.2rem;
  flex-wrap: wrap;
}

.info-grid dt {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin: 0;
}

.info-grid dt::after {
  content: ":";
  margin-left: 0.05rem;
}

.info-grid dd {
  margin: 0;
  font-size: 0.9rem;
  text-align: left;
}

.history-log-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.history-log-list li {
  border: 0.0625rem solid rgba(33, 53, 106, 0.12);
  border-radius: 0.625rem;
  background: rgba(255, 255, 255, 0.62);
  padding: 0.6rem 0.7rem;
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
}

.history-log-list li p {
  margin: 0.2rem 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.history-log-list li span {
  color: var(--text-muted);
  font-size: 0.75rem;
  white-space: nowrap;
}

.table-shell {
  width: 100%;
  overflow: auto;
}

.tl-table-section {
  width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  min-height: 32.5rem;
  max-height: 65vh;
  border: 0.0625rem solid rgba(33, 53, 106, 0.13);
  border-radius: 0.75rem;
  position: relative;
  isolation: isolate;
  z-index: 0;
}

.tl-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 57.5rem;
  background: rgba(255, 255, 255, 0.82);
  overflow: visible;
}

.tl-thead {
  background: #edf2fb;
  overflow: visible;
}

.tl-th {
  position: relative;
  padding: 0.62rem 0.45rem;
  border-bottom: 0.0625rem solid rgba(33, 53, 106, 0.12);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #4e5f7e;
  text-align: left;
  white-space: nowrap;
}

.tl-col-actions {
  position: static;
  min-width: 4.5rem;
  width: 4.5rem;
  background: #edf2fb;
}

.tl-th.sortable {
  cursor: pointer;
  user-select: none;
}

.tl-th .sort-ind {
  font-size: 0.72rem;
  margin-left: 0.2rem;
  color: #6b7f9f;
}

.tl-filter-row .tl-th {
  text-transform: none;
  letter-spacing: 0;
  background: rgba(237, 242, 251, 0.7);
}

.tl-filter-row .tl-col-actions {
  background: rgba(237, 242, 251, 0.9);
}

.tl-filter-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.tl-filter-input,
.tl-filter-select {
  width: 100%;
  border: 0.0625rem solid rgba(33, 53, 106, 0.16);
  border-radius: 0.5rem;
  background: #fff;
  padding: 0.42rem 0.5rem;
  font-size: 0.78rem;
}

.tl-filter-input:focus,
.tl-filter-select:focus {
  outline: none;
  border-color: rgba(33, 53, 106, 0.32);
}

.tl-filter-icon-btn {
  width: 1.75rem;
  height: 1.75rem;
  border: 0.0625rem solid rgba(33, 53, 106, 0.16);
  border-radius: 0.5rem;
  background: transparent;
  display: inline-grid;
  place-items: center;
  color: #5d6f8f;
  cursor: pointer;
}

.tl-filter-icon-btn .material-symbols-outlined {
  font-size: 1rem;
}

.tl-filter-icon-btn:hover {
  background: transparent;
}

.tl-filter-icon-btn.active {
  color: #1f3b7a;
  border-color: rgba(33, 53, 106, 0.34);
  background: transparent;
}

.tl-row:hover {
  background: rgba(33, 53, 106, 0.05);
}

.tl-cell {
  padding: 0.62rem 0.45rem;
  border-bottom: 0.0625rem solid rgba(33, 53, 106, 0.1);
  font-size: 0.83rem;
  vertical-align: top;
  color: #2d3d55;
}

.tl-cell.tl-col-actions {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: none;
}

.tl-cell-primary strong {
  display: block;
  line-height: 1.2;
}

.tl-cell-primary small {
  display: block;
  margin-top: 0.12rem;
  color: var(--text-muted);
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 700;
  color: #5e6f8f;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 62.4375rem;
  padding: 0.16rem 0.5rem;
  background: rgba(33, 53, 106, 0.1);
  color: #22386f;
  font-size: 0.72rem;
  font-weight: 700;
}

.tl-cell-actions {
  white-space: nowrap;
  text-align: right;
}

.tl-row-menu-wrap {
  position: relative;
  display: inline-block;
}

.tl-row-menu-btn {
  width: 1.875rem;
  height: 1.875rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: #465c80;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.tl-row-menu-btn .material-symbols-outlined {
  font-size: 1.125rem;
}

.tl-row-menu-btn:hover {
  background: transparent;
}

.tl-row-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.3rem);
  min-width: 7.5rem;
  border: 0.0625rem solid rgba(33, 53, 106, 0.16);
  border-radius: 0.625rem;
  overflow-y: auto;
  max-height: 18rem;
  background: #fff;
  box-shadow: 0 0.75rem 1.5rem rgba(2, 6, 23, 0.14);
  z-index: 1;
}

.tl-row-menu-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  padding: 0.5rem 0.65rem;
  font-size: 0.8rem;
  font-family: "Inter", "Segoe UI", sans-serif;
  font-weight: 500;
  text-align: left;
  color: #324866;
}

.tl-row-menu-item .material-symbols-outlined {
  font-size: 0.95rem;
}

.tl-row-menu-item:hover {
  background: rgba(33, 53, 106, 0.08);
}

.tl-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding-top: 0.7rem;
}

.tl-col-filter-popup {
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  z-index: 120;
  width: min(16.25rem, calc(100% - 1rem));
  border: 0.0625rem solid rgba(33, 53, 106, 0.18);
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 1rem 1.875rem rgba(2, 6, 23, 0.18);
  padding: 0.7rem;
  display: grid;
  gap: 0.6rem;
}

.tl-col-filter-popup[hidden] {
  display: none !important;
}

.tl-col-filter-head {
  font-size: 0.78rem;
  font-weight: 700;
  color: #324866;
}

.tl-col-filter-popup label {
  display: grid;
  gap: 0.25rem;
}

.tl-col-filter-popup label span {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.tl-col-filter-popup input,
.tl-col-filter-popup select {
  width: 100%;
  border: 0.0625rem solid rgba(33, 53, 106, 0.16);
  border-radius: 0.5rem;
  background: #fff;
  padding: 0.45rem 0.5rem;
  font-size: 0.78rem;
}

.tl-col-filter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
}

.tl-page-info {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.tl-page-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.tl-page-btn {
  min-width: 1.875rem;
  height: 1.875rem;
  padding: 0 0.48rem;
  border: 0.0625rem solid rgba(33, 53, 106, 0.16);
  border-radius: 0.5rem;
  background: #fff;
  color: #314763;
  cursor: pointer;
}

.tl-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.tl-page-btn.tl-page-active {
  background: rgba(33, 53, 106, 0.1);
  border-color: rgba(33, 53, 106, 0.3);
  color: #20366d;
  font-weight: 700;
}

.tl-draft-pill {
  display: inline-flex;
  align-items: center;
  margin-top: 0.24rem;
  border-radius: 62.4375rem;
  padding: 0.12rem 0.44rem;
  background: rgba(33, 53, 106, 0.1);
  color: #20366d;
  font-size: 0.68rem;
  font-weight: 600;
}

.module-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  background: rgba(17, 28, 45, 0.46);
  z-index: 50000;
}

#promotion-request-detail-backdrop {
  background:
    linear-gradient(135deg, rgba(33, 53, 106, 0.24), rgba(27, 143, 178, 0.18)),
    rgba(12, 24, 46, 0.2);
  backdrop-filter: blur(0.5rem) saturate(120%);
  -webkit-backdrop-filter: blur(0.5rem) saturate(120%);
}

.module-drawer-backdrop[hidden] {
  display: none !important;
  pointer-events: none !important;
}

.module-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100dvh;
  background: #fff;
  box-shadow: 0 0.75rem 1.5rem rgba(2, 6, 23, 0.18);
  display: grid;
  grid-template-rows: auto 1fr auto;
  z-index: 50010;
  transform: translateX(100%);
  transition: transform 0.22s ease;
}

.module-drawer-full {
  width: 100vw;
}

.module-drawer-half {
  width: min(50vw, 56rem);
  max-width: 50vw;
  min-width: 32rem;
}

.module-drawer-backdrop:not([hidden]) .module-drawer {
  transform: translateX(0);
}

.module-drawer-backdrop.submodule-overlay-elevated {
  z-index: 70000;
}

.module-drawer-backdrop.submodule-overlay-elevated .module-drawer {
  z-index: 70010;
}

.module-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  border-bottom: 0.0625rem solid rgba(33, 53, 106, 0.12);
  padding: 1rem 1.1rem;
}

.module-drawer-head h3 {
  margin: 0;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 1.05rem;
}

.drawer-detail-inline-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.drawer-detail-inline-head h3 {
  font-size: 1.02rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-header-action {
  width: 2rem;
  height: 2rem;
  background: rgba(33, 53, 106, 0.1);
  border: 0.0625rem solid rgba(33, 53, 106, 0.16);
}

.detail-header-action:hover {
  background: rgba(33, 53, 106, 0.18);
}

.detail-header-action.danger {
  color: #a02626;
  background: rgba(207, 75, 106, 0.12);
  border-color: rgba(207, 75, 106, 0.25);
}

.detail-header-action.danger:hover {
  background: rgba(207, 75, 106, 0.2);
}

.module-drawer-head p {
  margin: 0.3rem 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.drawer-form-student-meta {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.drawer-student-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.drawer-student-avatar {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-container));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.drawer-student-meta {
  min-width: 0;
}

.drawer-student-title-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.drawer-student-title-row h3 {
  margin: 0;
}

.drawer-student-meta p {
  margin: 0.2rem 0 0;
  color: #0c6f97;
  font-size: 1.0625rem;
}

.drawer-student-head small {
  margin-top: 0.15rem;
  display: block;
  color: #5b6c8c;
  font-size: 0.76rem;
}

.student-detail-drawer-head {
  align-items: center;
}

.student-detail-drawer-head .drawer-detail-header-actions {
  margin-left: auto;
  align-self: flex-end;
}

.student-detail-drawer-head #student-detail-drawer-title {
  font-size: 1.2rem;
}

.module-drawer-form {
  overflow: auto;
  padding: 1rem 1.1rem 1.2rem;
  display: grid;
  gap: 1rem;
  align-content: flex-start;
}

.module-stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  padding-bottom: 0.32rem;
  border-bottom: 0.0625rem solid rgba(33, 53, 106, 0.1);
}

.module-stepper-item {
  border: 0.0625rem solid rgba(33, 53, 106, 0.16);
  background: rgba(255, 255, 255, 0.86);
  border-radius: 62.4375rem;
  padding: 0.3rem 0.62rem;
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  cursor: pointer;
  color: #2a3f62;
}

.module-stepper-item.active {
  background: rgba(33, 53, 106, 0.1);
  border-color: rgba(33, 53, 106, 0.28);
  color: #20366d;
  font-weight: 700;
}

.module-stepper-index {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 62.4375rem;
  background: rgba(33, 53, 106, 0.12);
  display: inline-grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
}

.module-stepper-label {
  font-size: 0.78rem;
  font-family: "Inter", "Segoe UI", sans-serif;
}

.module-drawer-content {
  overflow: auto;
  padding: 1rem 1.1rem 1.2rem;
}

#promotion-request-detail-content {
  background: #f8fafd;
}

#promotion-request-detail-actions {
  border-top: 0.0625rem solid rgba(33, 53, 106, 0.12);
  padding: 0.85rem 1.1rem;
  background: #fff;
  justify-content: flex-end;
}

.module-drawer-content .page-content {
  background: transparent;
}

.module-drawer-loading {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.84rem;
}


.module-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 47.5rem;
}

.module-table th,
.module-table td {
  border-bottom: 0.0625rem solid rgba(33, 53, 106, 0.1);
  padding: 0.62rem 0.4rem;
  text-align: left;
  font-size: 0.82rem;
  vertical-align: top;
}

.module-table th {
  color: var(--text-muted);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.module-table td small {
  display: block;
  margin-top: 0.15rem;
  color: var(--text-muted);
}

.table-actions {
  display: flex;
  gap: 0.35rem;
  justify-content: flex-end;
  align-items: center;
}

.module-table th:last-child,
.module-table td:last-child {
  text-align: right;
}

.list-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.7rem;
}

.attendance-filter-chips {
  margin-top: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.attendance-filter-card {
  display: none !important;
}

.attendance-filter-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 62.4375rem;
  background: rgba(33, 53, 106, 0.08);
  color: #223f7c;
  padding: 0.38rem 0.7rem;
  font-size: 0.79rem;
  font-weight: 600;
}

.attendance-chart-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 1rem;
}

.attendance-filter-trigger {
  background: transparent;
  border: none;
  color: #1f356d;
  flex: 0 0 auto;
  width: auto;
  height: auto;
  border-radius: 0;
  padding: 0;
}

.attendance-filter-trigger i {
  width: 1.1rem;
  height: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
}

.attendance-filter-trigger:hover {
  background: transparent;
  color: #162c5d;
}

.attendance-filter-trigger.active {
  background: transparent;
  color: #1e3a79;
}

.attendance-chart-stats {
  display: grid;
  gap: 0.45rem;
  width: 100%;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.attendance-chart-stat {
  border: 0.0625rem solid rgba(33, 53, 106, 0.14);
  border-radius: 0.7rem;
  padding: 0.45rem 0.62rem;
  background: rgba(255, 255, 255, 0.75);
}

.attendance-chart-stat p {
  margin: 0;
  color: #22688b;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.attendance-chart-stat h3 {
  margin: 0.28rem 0 0;
  font-size: 1.18rem;
  color: #223f7c;
}

.attendance-chart-stat.tone-present {
  border-color: rgba(15, 138, 97, 0.28);
}

.attendance-chart-stat.tone-absent {
  border-color: rgba(204, 90, 75, 0.28);
}

.attendance-chart-stat.tone-leave {
  border-color: rgba(14, 124, 166, 0.28);
}

.attendance-chart-stat.tone-percent {
  border-color: rgba(34, 63, 124, 0.28);
}

.attendance-chart-shell {
  margin-top: 0.2rem;
}

.attendance-highchart {
  min-height: 19rem;
  border: 0.0625rem solid rgba(33, 53, 106, 0.12);
  border-radius: 0.75rem;
  background: linear-gradient(180deg, #f4f7ff, #ffffff);
  padding: 0.35rem;
}

.attendance-filter-popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60000;
  background: rgba(17, 28, 45, 0.46);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.attendance-filter-popup-backdrop[hidden] {
  display: none !important;
  pointer-events: none !important;
}

.attendance-filter-popup {
  width: min(100%, 34rem);
  background: #fff;
  border-radius: 0.85rem;
  box-shadow: var(--shadow-soft);
  padding: 0.9rem;
  display: grid;
  gap: 0.75rem;
}

.attendance-filter-popup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.attendance-filter-popup-head h3 {
  margin: 0;
}

.attendance-filter-popup-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.attendance-filter-popup-grid label {
  display: grid;
  gap: 0.26rem;
}

.attendance-filter-popup-grid label span {
  color: var(--text-muted);
  font-size: 0.76rem;
}

.attendance-filter-popup-grid input,
.attendance-filter-popup-grid select {
  width: 100%;
  border: 0.0625rem solid rgba(33, 53, 106, 0.18);
  border-radius: 0.55rem;
  padding: 0.42rem 0.5rem;
  font-size: 0.82rem;
}

.attendance-filter-popup-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.document-preview-card .sectioned-form-head {
  margin-bottom: 0.35rem;
}

.document-preview-meta {
  display: grid;
  gap: 0.35rem;
}

.document-preview-meta p {
  margin: 0;
  font-size: 0.84rem;
  color: #2f4268;
}

.document-preview-shell {
  border: 0.0625rem solid rgba(33, 53, 106, 0.14);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.8);
  min-height: 22rem;
  overflow: hidden;
}

.document-preview-frame {
  width: 100%;
  height: 22rem;
  border: 0;
  display: block;
}

.document-preview-image {
  width: 100%;
  height: auto;
  max-height: 22rem;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.document-preview-fallback {
  border: 0.0625rem dashed rgba(33, 53, 106, 0.22);
  border-radius: 0.7rem;
  padding: 0.8rem;
  display: grid;
  gap: 0.5rem;
}

.document-preview-fallback p {
  margin: 0;
  color: #516482;
  font-size: 0.84rem;
}

.document-status-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.btn-compact {
  padding: 0.32rem 0.56rem;
  font-size: 0.74rem;
  border-radius: 0.5rem;
}

.student-form-stack {
  display: grid;
  gap: 0.9rem;
}

.sectioned-form-card {
  border: 0.0625rem solid rgba(33, 53, 106, 0.12);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.64);
  padding: 0.9rem;
  display: grid;
  gap: 0.7rem;
}

.sectioned-form-head h3 {
  margin: 0;
  font-size: 0.95rem;
}

.sectioned-form-head p {
  margin: 0.2rem 0 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.module-form-grid {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.module-form-field {
  display: grid;
  gap: 0.3rem;
}

.module-form-field.full {
  grid-column: 1 / -1;
}

.module-form-field span {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.required-asterisk {
  color: #c0392b;
  font-weight: 700;
}

.module-form-field em {
  font-style: normal;
  color: #6d7a95;
}

.module-form-field input,
.module-form-field select,
.module-form-field textarea {
  width: 100%;
  border: 0.0625rem solid rgba(33, 53, 106, 0.16);
  border-radius: 0.625rem;
  background: rgba(255, 255, 255, 0.85);
  padding: 0.58rem 0.62rem;
}

.combo-select-wrap {
  position: relative;
  display: grid;
  gap: 0.32rem;
}

.combo-inline-search {
  width: 100%;
  border: 0.0625rem solid rgba(33, 53, 106, 0.16);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.44rem 0.58rem;
  font-size: 0.78rem;
}

.combo-dropdown {
  position: absolute;
  top: calc(100% + 0.2rem);
  left: 0;
  right: 0;
  margin: 0;
  padding: 0.2rem 0;
  list-style: none;
  border: 0.0625rem solid rgba(33, 53, 106, 0.18);
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 0.5rem 1rem rgba(2, 6, 23, 0.12);
  max-height: 12rem;
  overflow: auto;
  z-index: 20;
}

.combo-dropdown li {
  padding: 0.42rem 0.58rem;
  font-size: 0.78rem;
  color: #2b3f61;
  cursor: pointer;
}

.combo-dropdown li:hover {
  background: rgba(33, 53, 106, 0.08);
}

.module-form-field.compact-checkbox {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.module-form-field.compact-checkbox span {
  margin: 0;
  order: 2;
}

.module-form-field.compact-checkbox input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin: 0;
  order: 1;
}

.academic-inline-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.8rem;
}

.academic-inline-row > .module-form-field {
  flex: 1 1 16rem;
}

.academic-inline-row .academic-inline-primary {
  flex: 0 0 50%;
  max-width: 50%;
}

.academic-inline-row .inline-checkbox {
  flex: 0 0 auto;
  min-height: 2.625rem;
}

@media (max-width: 48rem) {
  .module-drawer-half {
    width: 100vw;
    max-width: 100vw;
    min-width: 100vw;
  }

  .academic-inline-row .academic-inline-primary {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

.module-form-field input[readonly] {
  background: rgba(233, 237, 247, 0.9);
  color: #576785;
}

.module-form-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.module-form-grid .module-form-actions {
  grid-column: 1 / -1;
  justify-content: flex-end;
}

.page-content form.module-form-grid,
.page-content form.student-form-stack {
  width: 70%;
  margin: 0 auto;
}

.module-drawer:not(#student-drawer) form.module-drawer-form {
  width: 70%;
  margin: 0 auto;
}

.document-upload-block {
  width: 70%;
  margin: 0 auto;
}

.file-dropzone {
  border: 0.09375rem dashed rgba(33, 53, 106, 0.26);
  border-radius: 0.625rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(244, 247, 253, 0.92));
  padding: 0.9rem;
  display: grid;
  gap: 0.55rem;
  width: 100%;
  min-height: 8.5rem;
  align-content: center;
  justify-items: stretch;
  text-align: left;
}

.file-dropzone p {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

.file-dropzone p i {
  font-size: 1rem;
  margin-right: 0.2rem;
  vertical-align: -0.06rem;
}

.file-dropzone input[type="file"] {
  width: 100%;
  max-width: 100%;
  border: 0.0625rem solid rgba(33, 53, 106, 0.16);
  border-radius: 0.55rem;
  padding: 0.45rem 0.5rem;
  background: #fff;
}

.file-dropzone input[type="file"]::file-selector-button {
  border: 0.0625rem solid rgba(33, 53, 106, 0.2);
  border-radius: 0.45rem;
  background: #eef2fb;
  color: #1f3367;
  padding: 0.35rem 0.55rem;
  margin-right: 0.5rem;
  font-weight: 600;
  cursor: pointer;
}

.file-dropzone.is-dragover {
  border-color: rgba(33, 53, 106, 0.6);
  background: rgba(33, 53, 106, 0.08);
  box-shadow: inset 0 0 0 0.0625rem rgba(33, 53, 106, 0.25);
}

.file-dropzone-name {
  color: #5f6f8d;
  font-size: 0.76rem;
  text-align: center;
}

#student-drawer .module-drawer-head p,
#student-drawer .sectioned-form-head p {
  display: none;
}

#student-drawer .student-drawer-title-row {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

#student-drawer .student-drawer-title-row .material-symbols-outlined {
  font-size: 1.35rem;
  color: #1f3b7a;
}

#student-drawer .module-drawer-head #student-drawer-close {
  background: rgba(33, 53, 106, 0.1);
}

#student-drawer .module-drawer-head #student-drawer-close:hover {
  background: rgba(33, 53, 106, 0.18);
}

#student-drawer .module-drawer-head h3 {
  font-size: 1.35rem;
}

#student-drawer .module-drawer-form {
  width: 70%;
  margin: 0 auto;
  height: calc(100dvh - 5.5rem);
  max-height: calc(100dvh - 5.5rem);
  overflow: hidden;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
}

#student-drawer .module-stepper-item {
  border: 0.0625rem solid rgba(33, 53, 106, 0.16);
}

#student-drawer .student-form-stack {
  overflow: auto;
  padding-right: 0.2rem;
  align-content: start;
  align-items: start;
}

#student-drawer .sectioned-form-card {
  border: none;
  box-shadow: none;
  gap: 0.55rem;
  align-self: start;
  align-content: start;
}

#student-drawer .student-step-panel[hidden] {
  display: none !important;
}

#student-drawer .student-step-panel.student-step-enter {
  animation: student-step-enter 220ms ease;
}

#student-drawer .sectioned-form-head h3 {
  text-decoration: underline;
  text-underline-offset: 0.22rem;
}

#student-drawer .module-form-actions {
  position: sticky;
  bottom: 0;
  justify-content: flex-end;
  padding-top: 0.55rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 48%);
}

#student-drawer .student-autosave-status {
  margin: 0;
  text-align: right;
  color: #4f607f;
  font-size: 0.76rem;
}

@media (max-width: 48rem) {
  .page-content form.module-form-grid,
  .page-content form.student-form-stack,
  .module-drawer:not(#student-drawer) form.module-drawer-form {
    width: 100%;
  }

  .document-upload-block {
    width: 100%;
  }

  #student-drawer .module-drawer-form {
    width: 100%;
    height: calc(100dvh - 5rem);
    max-height: calc(100dvh - 5rem);
  }
}

@keyframes student-step-enter {
  from {
    opacity: 0;
    transform: translateX(0.5rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.notice-card {
  border: 0.0625rem solid rgba(33, 53, 106, 0.14);
}

.notice-card.info {
  background: #eef6ff;
}

.notice-card.warning {
  background: #fff7e8;
}

.notice-card.danger {
  background: #fff0f1;
}

.notice-card ul {
  margin: 0.45rem 0 0;
  padding-left: 1rem;
}

.confirm-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(17, 28, 45, 0.5);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.confirm-modal {
  width: min(100%, 27.5rem);
  background: #fff;
  border-radius: 0.875rem;
  padding: 1rem;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 0.7rem;
}

.confirm-modal p {
  margin: 0;
  color: #4d5f80;
  font-size: 0.84rem;
}

.confirm-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.app-footer {
  margin-top: auto;
  padding: 1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.auth-layout {
  min-height: 100vh;
  padding: 1rem;
  background:
    radial-gradient(circle at 14% 10%, rgba(76, 78, 163, 0.15), transparent 42%),
    radial-gradient(circle at 88% 82%, rgba(27, 143, 178, 0.12), transparent 35%),
    var(--surface);
}

.auth-main-shell {
  min-height: calc(100vh - 2rem);
  max-width: 35rem;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.auth-main {
  display: grid;
  gap: 0.75rem;
  align-content: center;
  justify-items: center;
}

.auth-panel {
  width: min(100%, 31.25rem);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(0.75rem);
  border-radius: 1rem;
  padding: 1.4rem;
  box-shadow: var(--shadow-soft);
}

.auth-legend {
  display: grid;
  place-items: center;
  margin: -2.25rem 0 0.75rem;
}

.auth-legend-badge {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 62.4375rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-container));
  color: #fff;
  display: grid;
  place-items: center;
  font-family: "Manrope", sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

.auth-intro h1 {
  margin-bottom: 0.35rem;
}

.auth-intro p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.auth-messages {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.auth-alert {
  font-size: 0.82rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.625rem;
}

.auth-alert.info {
  background: #e7f4fc;
  color: #045f82;
}

.auth-alert.success {
  background: #e8f9f2;
  color: #0e7f5a;
}

.auth-alert.error {
  background: #fdeaea;
  color: #a02626;
}

.auth-form {
  display: grid;
  gap: 0.8rem;
}

.auth-form label {
  display: grid;
  gap: 0.35rem;
}

.auth-form label span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.field-error {
  color: #a02626;
  font-size: 0.76rem;
}

.auth-form input {
  border: 0;
  border-bottom: 0.125rem solid rgba(119, 117, 135, 0.25);
  border-radius: 0;
  padding: 0.55rem 0.2rem;
  background: transparent;
  outline: 0;
}

.auth-form input:focus {
  border-bottom-color: var(--primary);
}

.password-input-wrap {
  position: relative;
  width: 100%;
  display: block;
}

.password-input-wrap input {
  width: 100%;
  padding-right: 2.2rem;
}

.password-toggle-btn {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2.125rem;
  height: 2.125rem;
  display: grid;
  place-items: center;
}

.password-toggle-btn:hover {
  color: var(--primary);
}

.caps-hint {
  margin-top: 0.2rem;
  color: #a65f00;
  font-size: 0.74rem;
}

.auth-submit {
  margin-top: 0.3rem;
}

.auth-meta-row {
  display: flex;
}

.auth-meta-row--spread {
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.auth-form .remember-me-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-main);
  font-size: 0.84rem;
  grid-auto-flow: column;
  justify-content: start;
}

.remember-me-wrap input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--primary);
}

.auth-link {
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.auth-actions {
  display: flex;
}

.auth-footer-note {
  color: var(--text-muted);
  font-size: 0.75rem;
  padding-left: 0.25rem;
}

.desktop-only {
  display: none;
}

.mobile-only {
  display: inline-grid;
}

.theme-dark {
  filter: invert(0.96) hue-rotate(180deg);
}

@media (min-width: 48rem) {
  .top-header {
    padding: 0.6rem 1.2rem;
  }

  .profile-trigger-meta {
    display: block;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .attendance-chart-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 50rem;
  }

  .attendance-filter-popup-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .module-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (min-width: 64rem) {
  .sidebar {
    position: sticky;
    transform: translateX(0);
    top: 0;
    height: 100vh;
  }

  .sidebar-overlay,
  .mobile-only {
    display: none !important;
  }

  .desktop-only {
    display: inline-grid;
  }

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

  .dashboard-grid {
    grid-template-columns: 2fr 1fr;
  }

  .content-wrap {
    padding: 1.2rem 1.4rem;
  }

  .detail-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar.collapsed .sidebar-list-item.has-children {
    position: relative;
  }

  .sidebar.collapsed .sidebar-list-item.has-children:hover > .sidebar-collapsed-flyout,
  .sidebar.collapsed .sidebar-list-item.has-children:focus-within > .sidebar-collapsed-flyout {
    display: block;
  }

  .sidebar.collapsed .sidebar-collapsed-flyout {
    position: absolute;
    left: calc(100% + 0.55rem);
    top: -0.2rem;
    width: min(21.25rem, 72vw);
    max-height: min(70vh, 40rem);
    overflow-y: auto;
    background: #f8faff;
    border: 0.0625rem solid rgba(33, 53, 106, 0.18);
    border-radius: 0.75rem;
    box-shadow: 0 1rem 2.375rem -0.875rem rgba(17, 28, 45, 0.28);
    padding: 0.68rem;
    z-index: 45;
    scrollbar-width: thin;
    scrollbar-color: rgba(33, 53, 106, 0.2) transparent;
  }

  .sidebar.collapsed .sidebar-collapsed-flyout::-webkit-scrollbar {
    width: 0.3125rem;
  }

  .sidebar.collapsed .sidebar-collapsed-flyout::-webkit-scrollbar-track {
    background: transparent;
  }

  .sidebar.collapsed .sidebar-collapsed-flyout::-webkit-scrollbar-thumb {
    background: rgba(33, 53, 106, 0.2);
    border-radius: 62.4375rem;
  }

}

/* Public site */
.public-site {
  min-height: 100vh;
  background: linear-gradient(180deg, #f5f8ff 0%, #f8faff 40%, #ffffff 100%);
  color: #1b2b4a;
}

.public-main {
  overflow: hidden;
}

.public-container {
  width: min(92vw, 75rem);
  margin-inline: auto;
}

.public-section {
  padding: clamp(2.8rem, 5vw, 4.8rem) 0;
}

.public-section-contrast {
  background: #f3f7ff;
}

.public-message-wrap {
  padding-bottom: 0;
}

.public-message {
  border-radius: 0.85rem;
  border: 0.0625rem solid #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.public-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(0.5rem);
  background: rgba(245, 248, 255, 0.92);
  border-bottom: 0.0625rem solid rgba(27, 43, 74, 0.08);
}

.public-nav {
  min-height: 4.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.1rem;
  padding: 0.65rem 0;
}

.public-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: "Manrope", "Inter", sans-serif;
  font-weight: 800;
  color: #16284c;
}

.public-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  flex-shrink: 0;
}

.public-brand-logo {
  height: clamp(2rem, 4vw, 2.4rem);
  width: auto;
  max-width: clamp(6.4rem, 16vw, 9rem);
  object-fit: contain;
  display: block;
}

.public-brand-fallback {
  display: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.625rem;
  place-items: center;
  background: linear-gradient(140deg, #1d4ed8, #312e81);
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 800;
}

.public-nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  order: 3;
  gap: 1.15rem;
  color: #374151;
  font-weight: 600;
  font-size: 0.88rem;
}

.public-nav-links a:hover {
  color: #1d4ed8;
}

.public-nav-cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.public-btn {
  border-radius: 0.7rem;
  padding: 0.58rem 0.95rem;
  font-weight: 700;
  font-size: 0.88rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
}

.public-btn:hover {
  transform: translateY(-0.05rem);
}

.public-btn-primary {
  background: linear-gradient(135deg, #1d4ed8, #312e81);
  color: #ffffff;
  box-shadow: 0 0.5rem 1rem -0.65rem rgba(29, 78, 216, 0.45);
}

.public-btn-soft {
  background: #e9efff;
  color: #1e3a8a;
}

.public-hero {
  padding-top: clamp(3.3rem, 8vw, 5.4rem);
}

.public-hero-grid {
  display: grid;
  gap: 1.8rem;
  align-items: center;
}

.public-eyebrow {
  margin: 0 0 0.7rem;
  color: #1d4ed8;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.72rem;
  font-weight: 800;
}

.public-hero h1 {
  font-size: clamp(1.7rem, 4.8vw, 3rem);
  line-height: 1.15;
  color: #12233f;
}

.public-lead {
  font-size: clamp(1rem, 2vw, 1.08rem);
  line-height: 1.65;
  color: #42526b;
  max-width: 39rem;
  margin: 1rem 0 0;
}

.public-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.45rem;
}

.public-hero-visual {
  min-height: 14rem;
}

.visual-shell {
  border-radius: 1rem;
  border: 0.0625rem solid #d7e2ff;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5ff 100%);
  box-shadow: 0 1.2rem 2rem -1.5rem rgba(17, 24, 39, 0.35);
  overflow: hidden;
}

.visual-bar {
  min-height: 2.2rem;
  background: linear-gradient(135deg, #e0e7ff, #dbeafe);
  border-bottom: 0.0625rem solid #c7d2fe;
}

.visual-grid {
  padding: 1rem;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.visual-grid span {
  min-height: 4.3rem;
  border-radius: 0.75rem;
  background: #e8efff;
  border: 0.0625rem dashed #bfcefa;
}

.public-section-head {
  max-width: 45rem;
  margin-bottom: 1.3rem;
}

.public-section-head h2 {
  font-size: clamp(1.35rem, 3.3vw, 2rem);
  line-height: 1.25;
  color: #12233f;
}

.public-section-head p {
  margin: 0.85rem 0 0;
  color: #42526b;
  line-height: 1.7;
}

.public-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.public-pill-grid span {
  border: 0.0625rem solid #dbe4ff;
  border-radius: 999rem;
  background: #ffffff;
  color: #1e3a8a;
  font-weight: 600;
  padding: 0.46rem 0.84rem;
  font-size: 0.85rem;
}

.public-card-grid {
  display: grid;
  gap: 0.9rem;
}

.public-card {
  border: 0.0625rem solid #dbe4ff;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 0.75rem 1.7rem -1.5rem rgba(15, 23, 42, 0.4);
  padding: 1.1rem;
}

.public-card h3 {
  font-size: 1rem;
  color: #1f335d;
}

.public-card p {
  margin: 0.55rem 0 0;
  color: #51627d;
  line-height: 1.6;
  font-size: 0.92rem;
}

.module-grid,
.why-grid {
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.role-grid {
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.role-card ul {
  margin: 0.7rem 0 0;
  padding-left: 1.05rem;
  color: #42526b;
  display: grid;
  gap: 0.35rem;
}

.screen-grid {
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.screen-card {
  min-height: 11rem;
  display: grid;
  place-items: center;
  text-align: center;
  background: linear-gradient(180deg, #f8faff 0%, #eef3ff 100%);
}

.screen-card span {
  color: #334155;
  font-weight: 700;
}

.screen-coming-banner {
  text-align: center;
  padding: clamp(2rem, 6vw, 3.2rem);
  background: linear-gradient(135deg, #eef4ff 0%, #e4ecff 55%, #f7f9ff 100%);
  border-style: dashed;
}

.screen-coming-kicker {
  margin: 0;
  color: #1d4ed8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 800;
}

.screen-coming-banner h3 {
  margin: 0.7rem auto 0;
  max-width: 38rem;
  color: #1f335d;
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
}

.screen-coming-banner span {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  border-radius: 999rem;
  border: 0.0625rem solid #bdd0ff;
  background: #ffffff;
  color: #1e3a8a;
  padding: 0.4rem 0.85rem;
  font-size: 0.83rem;
  font-weight: 700;
}

.contact-wrap {
  display: grid;
  gap: 1.2rem;
}

.public-contact-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  border: 0.0625rem solid #dbe4ff;
  border-radius: 1rem;
  background: #ffffff;
  padding: 1rem;
}

.public-contact-form label {
  display: grid;
  gap: 0.36rem;
}

.public-contact-form span {
  font-weight: 700;
  color: #22446a;
  font-size: 0.84rem;
}

.public-contact-form input,
.public-contact-form textarea {
  width: 100%;
  border: 0.0625rem solid #cdd8ee;
  border-radius: 0.7rem;
  padding: 0.68rem 0.75rem;
  background: #fdfefe;
  color: #12233f;
}

.public-contact-form input:focus,
.public-contact-form textarea:focus {
  border-color: #2563eb;
  outline: 0.12rem solid rgba(37, 99, 235, 0.16);
}

.public-contact-form .full {
  grid-column: 1 / -1;
}

.public-contact-actions {
  display: flex;
  justify-content: flex-start;
}

.public-footer {
  margin-top: 1rem;
  border-top: 0.0625rem solid #dbe4ff;
  background: #f8faff;
  padding-top: 2.1rem;
}

.public-footer-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.public-foot-note {
  margin-top: 0.75rem;
  color: #4b5563;
  line-height: 1.7;
}

.public-footer h3 {
  font-size: 0.95rem;
  margin: 0 0 0.7rem;
}

.public-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.48rem;
  color: #4b5563;
}

.public-footer a:hover {
  color: #1d4ed8;
}

.public-copyright {
  border-top: 0.0625rem solid #dbe4ff;
  margin-top: 1.35rem;
  padding: 1rem 0 1.4rem;
  color: #60708c;
  font-size: 0.88rem;
}

@media (min-width: 48rem) {
  .public-nav-links {
    width: auto;
    order: 0;
    font-size: 1rem;
  }

  .public-hero-grid {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 2rem;
  }

  .public-contact-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 1.3rem;
  }
}

/* 2026 visual refresh layer */
:root {
  --glass-bg: rgba(255, 255, 255, 0.58);
  --glass-bg-strong: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.55);
  --elev-1: 0 0.625rem 1.5rem rgba(12, 24, 46, 0.08), 0 0.125rem 0.5rem rgba(12, 24, 46, 0.05);
  --elev-2: 0 1rem 2rem rgba(12, 24, 46, 0.11), 0 0.375rem 0.875rem rgba(12, 24, 46, 0.06);
  --input-ring: 0 0 0 0.1875rem rgba(76, 78, 163, 0.16);
}

html {
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Inter", "Segoe UI Variable Text", "Segoe UI", "SF Pro Text", sans-serif;
  letter-spacing: 0.01em;
  background:
    radial-gradient(circle at 20% 0%, rgba(76, 78, 163, 0.08) 0%, rgba(76, 78, 163, 0) 40%),
    radial-gradient(circle at 100% 20%, rgba(30, 155, 168, 0.08) 0%, rgba(30, 155, 168, 0) 38%),
    linear-gradient(180deg, #edf2fb 0%, #e8eef8 100%);
}

.app-layout,
.app-main {
  background: transparent;
}

.top-header {
  background: rgba(232, 236, 245, 0.7);
  backdrop-filter: blur(0.625rem);
  -webkit-backdrop-filter: blur(0.625rem);
}

.top-header::before {
  background: rgba(232, 236, 245, 0.7);
}

.card,
.profile-header-card,
.summary-stat-card,
.tl-table,
.module-drawer,
.tl-col-filter-popup,
.profile-dropdown {
  background: var(--glass-bg);
  border: 0.0625rem solid var(--glass-border);
  box-shadow: var(--elev-1);
  backdrop-filter: blur(0.625rem);
  -webkit-backdrop-filter: blur(0.625rem);
}

.card {
  border-radius: 1rem;
}

.module-drawer {
  box-shadow: var(--elev-2);
}

#student-drawer {
  background: #ffffff;
  border: 0.0625rem solid rgba(33, 53, 106, 0.12);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#student-drawer .module-drawer-head,
#student-drawer .module-drawer-form {
  background: #ffffff;
}

#student-detail-drawer {
  background: #ffffff;
  width: 100vw;
  max-width: 100vw;
  min-width: 100vw;
  border: 0.0625rem solid rgba(33, 53, 106, 0.12);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#student-detail-drawer .module-drawer-head,
#student-detail-drawer .module-drawer-content {
  background: #ffffff;
}

.parent-drawer-headline {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

#parent-drawer .module-drawer-form {
  width: min(78rem, 96%);
  margin: 0 auto;
}

#parent-drawer {
  background: #ffffff;
  border: 0.0625rem solid rgba(33, 53, 106, 0.12);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#parent-drawer .module-drawer-head,
#parent-drawer .module-drawer-form,
#parent-drawer #parent-drawer-actions {
  background: #ffffff;
}

#parent-detail-drawer {
  background: #ffffff;
  border: 0.0625rem solid rgba(33, 53, 106, 0.12);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#parent-detail-drawer .module-drawer-head,
#parent-detail-drawer .module-drawer-content {
  background: #ffffff;
}

#parent-detail-drawer .module-drawer-head {
  align-items: center;
  padding: 0.95rem 1.15rem;
  min-height: 5.1rem;
}

#parent-detail-drawer .drawer-student-head {
  align-items: center;
}

#parent-detail-drawer .drawer-student-meta {
  overflow: hidden;
}

#parent-detail-drawer .drawer-student-title-row h3 {
  line-height: 1.2;
}

.parent-form-sections {
  display: grid;
  gap: 1.5rem;
}

.parent-form-section {
  border: 0;
  padding: 0;
  background: transparent;
}

.parent-form-section .section-title {
  margin: 0 0 0.7rem;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #435779;
  text-decoration: underline;
  text-underline-offset: 0.22rem;
}

#parent-drawer-actions {
  border-top: 0.0625rem solid rgba(33, 53, 106, 0.12);
  padding: 0.85rem 1.1rem;
  background: #fff;
}

.detail-form-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-form-field {
  display: grid;
  gap: 0.25rem;
}

.detail-form-field span {
  font-size: 0.74rem;
  color: #607594;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.detail-form-value {
  border: 0.0625rem solid rgba(33, 53, 106, 0.16);
  border-radius: 0.62rem;
  padding: 0.55rem 0.62rem;
  background: #fff;
  font-size: 0.88rem;
  color: #1f3367;
}

@media (max-width: 56rem) {
  .detail-form-grid {
    grid-template-columns: 1fr;
  }
}

.btn {
  border: 0.0625rem solid rgba(33, 53, 106, 0.12);
  border-radius: 0.75rem;
  box-shadow: 0 0.25rem 0.75rem rgba(14, 24, 45, 0.08);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.btn:hover {
  transform: translateY(-0.0625rem);
  box-shadow: 0 0.5rem 1rem rgba(14, 24, 45, 0.12);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  box-shadow: 0 0.5rem 1rem rgba(33, 53, 106, 0.32);
}

input,
select,
textarea,
.tl-filter-input,
.tl-filter-select,
.combo-inline-search,
.module-form-field input,
.module-form-field select,
.module-form-field textarea {
  border: 0.0625rem solid rgba(33, 53, 106, 0.2);
  border-radius: 0.72rem;
  background: rgba(255, 255, 255, 0.84);
}

input:focus,
select:focus,
textarea:focus,
.tl-filter-input:focus,
.tl-filter-select:focus,
.combo-inline-search:focus,
.module-form-field input:focus,
.module-form-field select:focus,
.module-form-field textarea:focus {
  border-color: rgba(76, 78, 163, 0.7);
  outline: none;
  box-shadow: var(--input-ring);
}

.module-form-field span {
  letter-spacing: 0.02em;
}

.tl-table-section {
  border: 0.0625rem solid rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 0 0.0625rem rgba(33, 53, 106, 0.06);
}

.tl-th {
  background: rgba(237, 242, 251, 0.74);
}

.tl-filter-row .tl-th {
  background: rgba(237, 242, 251, 0.58);
}

.module-drawer-head {
  border-bottom: 0.0625rem solid rgba(33, 53, 106, 0.14);
  background: rgba(255, 255, 255, 0.58);
}

#promotion-request-detail-content {
  padding-top: 1.15rem;
}

.promotion-detail-sections {
  display: grid;
  gap: 1.35rem;
}

.promotion-detail-section {
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 0.35rem 0;
  box-shadow: none;
}

.promotion-detail-section + .promotion-detail-section {
  position: relative;
}

.promotion-detail-section + .promotion-detail-section::before {
  content: "";
  position: absolute;
  top: -0.46rem;
  left: 0.4rem;
  right: 0.4rem;
  height: 0.0625rem;
  background: linear-gradient(90deg, rgba(33, 53, 106, 0), rgba(33, 53, 106, 0.24), rgba(33, 53, 106, 0));
}

.promotion-detail-section .section-title {
  margin: 0 0 0.62rem;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #435779;
  text-decoration: underline;
  text-underline-offset: 0.22rem;
}

.promotion-detail-section .field-list {
  display: grid;
  gap: 0.42rem;
}

.promotion-detail-section .field-row {
  display: grid;
  grid-template-columns: minmax(8.5rem, 10.5rem) minmax(0, 1fr);
  align-items: center;
  gap: 0.62rem;
  border-bottom: 0.0625rem dashed rgba(33, 53, 106, 0.15);
  padding-bottom: 0.35rem;
}

.promotion-detail-section .field-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.promotion-detail-section .field-label {
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #607594;
}

.promotion-detail-section .field-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1f3367;
  min-width: 0;
  word-break: break-word;
}

@media (max-width: 56rem) {
  .promotion-detail-section .field-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}
