* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --blue-normal: #002d62;
  --blue-normal-hover: #002958;
  --blue-normal-active: #00244e;
  --blue-light: #e6eaef;
  --blue-light-hover: #d9e0e7;
  --blue-light-active: #b0bece;
  --blue-dark: #00224a;
  --yellow-normal: #d4af37;
  --yellow-normal-hover: #bf9e32;
  --yellow-normal-active: #aa8c2c;
  --yellow-light: #FBF7EB;
  --yellow-normal-hover: #bf9e32;
  --gray-normal: #6c757d;
  --dark-black: #0b0a0a;
}

img {
  max-width: 100%;
  vertical-align: top;
}
body {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

/* Admin layout: lock to viewport; sidebar stays put, main column scrolls */
html:has(.dashboard-main) {
  height: 100%;
}

body:has(.dashboard-main) {
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}

/* Fixed top-right on all guest/auth screens (login, admin login, forgot/reset password, etc.) */
.login-page-language-switcher {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1050;
}

.login-main {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(
    45deg,
    #ffffff 0%,
    #ffffff 28%,
    #f2f4f7 40%,
    #e2e6ec 50%,
    #cdd6e0 60%,
    #bcc7d5 70%,
    #b6c3d2 80%,
    #c0cbd8 90%,
    #d2d9e1 100%
  );
}

.login-container {
  width: 100%;
  padding: 50px 200px 50px 150px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.login-left {
  width: 50%;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.login-left img {
  width: 150px;
}
.login-left h1 {
  font-family: "Poppins", sans-serif;
  font-size: 64px;
  font-weight: 300;
  font-style: italic;
  line-height: 1.2;
  color: var(--blue-normal);
}
.login-left h1 b,
.login-left h1 strong {
  /* Explicit weight: “bolder” fails when only one Poppins file is loaded */
  font-weight: 600;
}

.text-your-journey{
  color: var(--yellow-normal);
}

.login-right {
  width: 515px;
  background: #fff;
  display: flex;
  border-radius: 20px;
  flex-direction: column;
  padding: 50px;
}

.input-group {
  font-size: 1.1rem;
  position: relative;
  margin-bottom: 20px;
}

.login-right .input-group {
  margin-bottom: 15px;
}

.input-field {
  width: 100%;
  all: unset;
  transition: 0.3s;
  box-sizing: border-box;
}
.form-control {
  padding: 12px;
  height: 56px;
  font-size: 16px;
  color: #000000de;
  border: 1px solid #0000003b;
  border-radius: 4px;
}
.form-control:focus {
  border: 1px solid #0000003b;
  box-shadow: none;
}

.input-group label {
  position: absolute;
  top: 16px;
  left: 12px;
  color: #00000099;
  pointer-events: none;
  background: #fff;
  padding: 0 4px;
  transition: 0.3s;
  z-index: 5;
  font-size: 15px;
}

/* Floating effect */
.input-field:focus ~ label,
.input-field:not(:placeholder-shown) ~ label {
  transform: translateY(-27px) scale(0.8);
  left: 8px;
}
.login-right h2 {
  text-align: center;
  font-size: 32px;
  font-weight: 600;
  color: var(--blue-normal);
  margin-bottom: 35px;
}

/* Parsley + Laravel field errors: compact, no bullets, dark red */
.login-right .parsley-errors-list {
  list-style: none;
  padding: 0;
  margin: 2px 0 6px;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 400;
  color: #eb0f0f;
}

.login-right .parsley-errors-list li {
  list-style: none;
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.login-right .parsley-errors-list li::marker {
  content: none;
}

.parsley-errors-list li::marker {
  content: none;
}

.login-right .auth-field-errors:empty {
  display: none;
}

ul.parsley-errors-list {
  padding-left: 0 !important;
}

.login-right .auth-server-error {
  padding: 0;
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 400;
  color: #eb0f0f;
}

.login-right .auth-success-alert {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  margin: 0 0 20px;
  background-color: #e6f4ea;
  border: 1px solid #b7dfc9;
  border-radius: 8px;
  color: #1e7e34;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
}

.login-right .auth-error-alert {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  margin: 0;
  background-color: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  color: #dc2626;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
}

.login-right .auth-error-alert__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}

.login-right .auth-error-alert__warning {
  display: block;
  width: 22px;
  height: 22px;
}

.login-right .auth-error-alert__text {
  flex: 1;
  min-width: 0;
}

.login-right .auth-success-alert__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}

.login-right .auth-success-alert__check {
  display: block;
  width: 22px;
  height: 22px;
}

.login-right .auth-success-alert__text {
  flex: 1;
  min-width: 0;
}

ul.auth-input-error-list {
  list-style: none;
  list-style-type: none;
  padding: 0;
  margin: 2px 0 8px;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 400;
  color: #eb0f0f;
}

ul.auth-input-error-list li {
  list-style: none;
  list-style-type: none;
  padding: 0;
  margin: 0;
}

ul.auth-input-error-list li::marker {
  content: none;
}

ul.auth-input-error-list li + li {
  margin-top: 2px;
}

.toggle-password {
  position: absolute;
  right: 15px;
  top: 14px;
  cursor: pointer;
  z-index: 5;
}
.toggle-password svg {
  width: 20px;
  height: 20px;
  color: var(--yellow-normal);
}
#password {
  padding-right: 50px;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: auto;
  padding-left: 42px;
  font-size: 14px;
  color: #101010;
  cursor: pointer;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-switch-slider {
  position: absolute;
  cursor: pointer;
  width: 34px;
  height: 20px;
  left: 0;
  top: 0;
  background-color: var(--blue-light);
  -webkit-transition: 0.4s;
  transition: 0.4s;
  border-radius: 30px;
  color: var(--blue-normal-hover);
}

.toggle-switch-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: var(--blue-normal-hover);
  -webkit-transition: 0.4s;
  transition: 0.4s;
  border-radius: 30px;
}

.toggle-switch input:checked + .toggle-switch-slider::before {
  background-color:var(--blue-normal-hover);
}


.toggle-switch input:checked + .toggle-switch-slider:before {
  -webkit-transform: translateX(14px);
  -ms-transform: translateX(14px);
  transform: translateX(14px);
}

/* Rounded sliders */

.Remember-me {
  margin-bottom: 20px;
}

.btn {
  height: auto;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
}
.btn-primary {
  background-color: var(--blue-normal);
  border-color: var(--blue-normal);
}
.btn-primary:hover,
.btn-check:checked + .btn,
.btn.active,
.btn.show
{
  background-color: var(--blue-normal);
  border-color: var(--blue-normal);
}

/* Bootstrap checkboxes / radios — checked state matches brand green */
.form-check-input:checked {
  background-color: #34c759;
  border-color: #34c759;
}

.form-check-input:focus {
  border-color: #34c759;
  box-shadow: 0 0 0 0.25rem rgba(94, 109, 85, 0.25);
}

.form-check-input:checked:focus {
    border-color: #34c759;
  box-shadow: 0 0 0 0.25rem rgba(0, 45, 98, 0.35);
}

.dashboard-main {
  width: 100%;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  background: var(--blue-normal);
  padding: 20px;
  display: flex;
  overflow: hidden;
}
.content-right {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  /* Off-white so white cards + Bootstrap shadows read as depth (pure #fff on #fff hides shadow-sm). */
  background: #e4e6e1;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  /* Vertical breathing room between the welcome bar and the page content card */
  gap: 16px;
}

.page-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}

.user-profile-button{
  background-color: var(--yellow-normal);
  color: var(--blue-normal);
  border-color:var(--yellow-normal)  ;
}

.user-profile-button:hover,
.user-profile-button:active,
.user-profile-button:focus-visible{
  background-color: var(--yellow-normal-hover) !important;
  border-color:var(--yellow-normal-hover)  !important;
  color: var(--blue-normal) !important;
  box-shadow: none;
}
/* The outer .content-right already supplies the page gutter, so cancel the
   default Bootstrap .container-fluid gutters inside .page-content. This makes
   the card body content (e.g. "Program Details") line up with the welcome
   heading instead of sitting ~12px further to the right. */
.page-content > .container-fluid,
.page-content .container-fluid {
  padding-left: 0;
  padding-right: 0;
}

/* Groups flash + page so the form column does not stretch with empty space under the alert */
.admin-page-stack {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
}

.admin-page-stack > .admin-flash-stack,
.admin-page-stack > .app-flash-stack,
.student-dashboard__content > .app-flash-stack {
  flex: 0 0 auto;
}

/* With a session banner, keep the program/module card at natural height (extra space goes to bottom of .page-content) */
.admin-page-stack--with-flash > .program-create-page {
  flex: 0 1 auto;
}

/* Admin sidebar column (contains .nav-left); width lives here for desktop + off-canvas mobile */
.admin-sidebar {
  flex-shrink: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  width: 325px;
  min-height: 0;
}

.nav-left {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  padding: 0 20px 0 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.nav-left__brand {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.nav-left__brand .nav-logo-img {
  min-width: 0;
  max-width: calc(100% - 2.5rem);
}

.admin-sidebar-close {
  flex-shrink: 0;
  line-height: 0;
  margin-top: 0.65rem;
  color: #fff;
  background: transparent;
}

.admin-sidebar-close:hover,
.admin-sidebar-close:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 6px;
}

.nav-logo {
  width: 100%;
  margin-bottom: 20px;
  background: #fff;
  padding: 5px
}

.nav-menu ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sub-menu .menu-arrow {
  flex-shrink: 0;
  margin-left: auto;
}
.nav-menu li {
  position: relative;
}

.nav-menu a {
  display: flex;
  align-items: center;
  padding: 10px;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  /* font-size: 18px; */
  gap: 10px;
  border-radius: 6px;
}
.nav-menu a svg {
  margin-top: 0;
}

/* Sidebar custom icons: swap inactive (white) / active (brand green) with parent .active */
.nav-menu__item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
}

.nav-menu__item-icon img {
  width: 24px;
  height: 24px;
  display: block;
}

.nav-menu li > a .nav-menu__item-icon--active {
  display: none;
}

.nav-menu li.active > a .nav-menu__item-icon--inactive {
  display: none;
}

.nav-menu li.active > a .nav-menu__item-icon--active {
  display: block;
}
.nav-menu li ul {
  display: none; /* hidden by default */
  padding-left: 20px;
}
/* Tree-style connectors: trunk + L-branch on all rows; terminal dot only on active item */
.nav-menu li.sub-menu > ul {
  position: relative;
  --nav-submenu-connector: rgba(255, 255, 255, 0.5);
  --nav-submenu-connector-active: var(--yellow-normal);
  --nav-submenu-connector-w: 1px;
  --nav-submenu-stub: 25px;
  --nav-submenu-indent: 22px;
  margin: 0.4rem 0 0 0.35rem;
  padding: 0.1rem 0 0.25rem var(--nav-submenu-indent);
  border: none;
}
.nav-menu li.sub-menu > ul::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 0;
  width: 0;
  /* Stop near last row’s branch so the trunk does not overhang as much */
  height: calc(100% - 1.75rem);
  border-left: var(--nav-submenu-connector-w) solid var(--nav-submenu-connector);
  pointer-events: none;
  z-index: 0;
}
/* Yellow trunk overlay: height set from JS to the active row’s branch point */
.nav-menu li.sub-menu > ul:has(> li.active)::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 0;
  width: 0;
  height: var(--nav-submenu-trunk-active-height, 0);
  border-left: var(--nav-submenu-connector-w) solid var(--nav-submenu-connector-active);
  pointer-events: none;
  z-index: 1;
}
.nav-menu li.sub-menu > ul > li {
  position: relative;
  z-index: 0;
  margin-top: 0;
}
.nav-menu li.sub-menu > ul > li + li {
  margin-top: 4px;
}
/* Rounded L connecting trunk to row, plus horizontal stub toward the dot */
.nav-menu li.sub-menu > ul > li::before {
  content: "";
  position: absolute;
  left: -13px;
  top: 50%;
  width: var(--nav-submenu-stub);
  height: 10px;
  margin-top: -5px;
  box-sizing: border-box;
  border: 0 solid var(--nav-submenu-connector);
  border-left-width: var(--nav-submenu-connector-w);
  border-bottom-width: var(--nav-submenu-connector-w);
  border-bottom-left-radius: 7px;
  pointer-events: none;
  z-index: 0;
}
/* L-branches on the path to the active submenu row */
.nav-menu li.sub-menu > ul > li.active::before,
.nav-menu li.sub-menu > ul > li:has(~ li.active)::before {
  border-color: var(--nav-submenu-connector-active);
}
/* Terminal dot only on the active submenu row (matches current route) */
.nav-menu li.sub-menu > ul > li.active::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 53%;
  width: 9px;
  height: 9px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--yellow-normal);
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.08);
  pointer-events: none;
  z-index: 2;
  opacity: 0.9;
}
.nav-menu li.sub-menu > ul a {
  position: relative;
  z-index: 1;
  /* Inset the row so :hover / .active backgrounds do not cover the tree + dot */
  margin: 0 0 0 1.5rem;
  max-width: calc(100% - 1.5rem);
  padding: 8px 10px 8px 0.6rem;
  box-sizing: border-box;
  border-radius: 6px;
  transition: background-color 0.12s ease, color 0.12s ease;
}
/* Keep icons aligned to the right of the dot in submenu rows that include an icon */
.nav-menu li.sub-menu > ul a svg {
  position: relative;
  z-index: 1;
}
.nav-menu li ul li {
  margin-top: 5px;
}
.nav-menu li.sub-menu > ul li {
  margin-top: 0;
}

.nav-menu li ul .active a {
  background:var(--yellow-normal);
  color: var(--blue-normal);
  font-weight: 600;
}
.nav-menu li.active > ul {
  display: block; /* show when active */
}
.nav-menu li.active > a {
  color: var(--blue-normal);
  background: #fff;
  font-weight: 600;
}

.nav-menu__dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c62828;
  flex-shrink: 0;
  align-self: center;
  box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.22);
}

.nav-menu li > a > .nav-menu__dot {
  margin-left: auto;
}

.nav-menu li.sub-menu > a > .nav-menu__dot + .menu-arrow {
  margin-left: 0.4rem;
}

.nav-menu li.sub-menu > ul a .nav-menu__dot {
  margin-left: auto;
  margin-right: 0.15rem;
}
.welcome-section {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 12px;
  border-radius: 6px;
  background: var(--yellow-light);
}
.welcome-section__left {
  display: flex;
  align-items: center;
  gap: 0.4rem 0.75rem;
  min-width: 0;
  flex: 1 1 12rem;
}
.welcome-section h2 {
  font-size: 26px;
  color: #000;
  font-weight: normal;
  padding-left: 10px;
  margin: 0;
  min-width: 0;
}
.welcome-section__left h2 {
  padding-left: 0;
  overflow-wrap: anywhere;
}
.admin-sidebar-toggle {
  flex-shrink: 0;
  line-height: 0;
  color: var(--blue-normal);
  background: transparent;
}
.admin-sidebar-toggle:hover,
.admin-sidebar-toggle:focus-visible {
  color: var(--blue-normal-active);
  background: rgba(255, 255, 255, 0.5);
  border-radius: 6px;
}
.welcome-section h2 b {
  font-weight: 600;
  color: var(--blue-normal-active);
}
.head-profile-section {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.language-switcher {
  font-size: 13px;
  font-weight: 500;
}

.language-switcher__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  min-height: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--blue-normal);
  background-color: #edf0ee;
  border: 1px solid var(--blue-normal);
  border-radius: 5px;
  box-shadow: none;
  white-space: nowrap;
}

.language-switcher__toggle:hover,
.language-switcher__toggle:focus,
.language-switcher__toggle.show {
  color: var(--blue-normal);
  background-color: #e5e8e6;
  border-color: var(--blue-normal-active);
}

.language-switcher__toggle.dropdown-toggle::after {
  display: none;
}

.language-switcher__label {
  max-width: 10rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.language-switcher__chevron {
  flex-shrink: 0;
  color: var(--blue-normal);
  opacity: 0.85;
}

.language-switcher__flag-img {
  flex-shrink: 0;
  width: 21px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.language-switcher__menu {
  min-width: 10rem;
  padding: 6px;
  margin-top: 6px;
  border: 1px solid var(--blue-normal);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.language-switcher__item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--blue-normal);
  border-radius: 4px;
}

.language-switcher__item:hover,
.language-switcher__item:focus {
  color: var(--blue-normal-active);
  background-color: var(--green-light-hover);
}

.language-switcher__item.active {
  font-weight: 600;
  color: var(--blue-normal-active);
  background-color: var(--green-light);
}

.head-profile-section > .language-switcher {
  padding-right: 0.75rem;
  border-right: 1px solid #cfd2cf;
  border-color: var(--blue-normal);
}

.head-profile-section .dropdown:not(.language-switcher) button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px;
}
.head-profile-section .dropdown:not(.language-switcher) button img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.head-profile-section .dropdown:not(.language-switcher) button svg {
  width: 20px;
  margin-right: 10px;
}
.head-profile-section .dropdown-toggle::after {
  display: none;
}

/* -------------------------------------------------------------------------- */
/* Reset password form (inside guest / login-right)                           */
/* -------------------------------------------------------------------------- */

.auth-reset-lead {
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: #6b6b6b;
  margin: 0 0 16px;
  line-height: 1.45;
}

.auth-reset-intro {
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--dark-black);
  margin: 0 0 28px;
  line-height: 1.5;
}

.auth-reset-form .input-group {
  margin-bottom: 0;
}

.auth-reset-form .input-group:not(:last-of-type) {
  margin-bottom: 4px;
}

.auth-reset-form .form-control {
  border-radius: 8px;
  border-color: #c4c4c4;
  height: 56px;
}

.auth-reset-form .input-group:has(.toggle-password) .form-control {
  padding-right: 48px;
}

.auth-reset-form .input-group label .label-asterisk {
  color: #d92d20;
  font-weight: 600;
}

.password-rules-list {
  list-style: none;
  padding: 16px 0 20px;
  margin: 0;
}

.password-rule {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  line-height: 1.35;
  color: #6b6b6b;
  margin-bottom: 10px;
}

.password-rule:last-child {
  margin-bottom: 0;
}

.password-rule.is-met {
  color: #16a34a;
}

.password-rule-marker {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.password-rule-check {
  width: 22px;
  height: 22px;
  display: block;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.password-rule.is-met .password-rule-check {
  opacity: 1;
  transform: scale(1);
}

.btn-reset-password-submit {
  position: relative;
  width: 100%;
  height: 52px;
  margin-top: 8px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background-color: var(--blue-normal);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-reset-password-submit:hover:not(:disabled) {
  background-color: var(--blue-normal-active);
}

.btn-reset-password-submit:disabled {
  opacity: 0.92;
  cursor: not-allowed;
}

.btn-reset-password-submit__spinner {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: auth-btn-spin 0.7s linear infinite;
}

.btn-reset-password-submit.is-loading .btn-reset-password-submit__text {
  opacity: 0;
}

.btn-reset-password-submit.is-loading .btn-reset-password-submit__spinner {
  display: block;
}

.btn-reset-password-submit:not(.is-loading) .btn-reset-password-submit__spinner {
  display: none;
}

@keyframes auth-btn-spin {
  to {
    transform: rotate(360deg);
  }
}

/* -------------------------------------------------------------------------- */
/* Admin — Program index (DataTables)                                         */
/* -------------------------------------------------------------------------- */

.program-page-header .btn-primary {
  height: auto;
  min-height: 44px;
  padding: 10px 18px;
  font-size: 15px;
}

.program-details-card table.dataTable thead th {
  font-weight: 600;
  font-size: 14px;
  /* border-bottom-width: 1px; */
  /* border-top-width: 1px; */
}

.program-details-card table.dataTable tbody td {
  font-size: 14px;
  vertical-align: middle;
}

/* Program list / modules: cards stretch under welcome bar (flex chain from .page-content) */
.program-index-page {
  min-height: 0;
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.program-modules-card,
.program-index-card {
  min-height: 0;
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

/* Keep list toolbars viewport-wide; wide DataTables scroll inside the wrap only */
.admin-dt-list-page {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  overflow-x: hidden;
}

.admin-dt-list-page .program-index-card,
.admin-dt-list-page .question-bank-header,
.admin-dt-list-page .program-page-header {
  min-width: 0;
  max-width: 100%;
}

.admin-dt-list-page .program-index-card__body {
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

/* Bootstrap .shadow-sm uses !important and is very light; reinforce so list/detail/form cards stay legible on .content-right. */
.content-right .program-details-card.card.shadow-sm,
.content-right .admin-form-card.program-create-card.shadow-sm,
.content-right .admin-form-card.program-module-create-card.shadow-sm {
  box-shadow: 0 2px 14px rgba(11, 10, 10, 0.09), 0 1px 4px rgba(11, 10, 10, 0.06) !important;
}

.content-right .card.border-0.shadow:not(.shadow-sm) {
  box-shadow: 0 4px 18px rgba(11, 10, 10, 0.1), 0 2px 6px rgba(11, 10, 10, 0.06) !important;
}

.program-modules-card__body,
.program-index-card__body {
  min-height: 0;
}

/* Admin — back navigation (arrow + label) */
.admin-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--blue-normal, #0f4c97);
  white-space: nowrap;
}

.admin-back-link:hover {
  color: var(--blue-normal-active, #0c3d79);
}

.admin-back-link .lucide-action {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.admin-page-header__actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 1.25rem;
}

.admin-page-header__actions .add-program-link {
  white-space: nowrap;
}

.admin-page-header__actions .admin-back-link + .add-program-link,
.admin-page-header__actions .admin-back-link + .btn,
.admin-page-header__actions .admin-back-link + form {
  padding-left: 1.25rem;
  border-left: 1px solid #d7e3f1;
}

.applications-show-card__head-main .admin-back-link {
  margin-top: 0.35rem;
}

.program-create-card,
.program-module-create-card {
  min-height: 0;
}

.program-create-card__body,
.program-module-create-card__body {
  min-height: 0;
}

/* Stretch create/edit/show/module cards to fill .admin-page-stack (parent is flex column) */
.admin-page-stack > .program-create-page {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0; /* allow flex child to shrink so nested content can’t force horizontal scroll */
  display: flex;
  flex-direction: column;
  align-self: stretch;
  width: 100%;
}

.admin-page-stack > .program-create-page > .admin-form-card.program-create-card {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
}

.admin-page-stack > .program-create-page > .admin-form-card .program-create-card__body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* Pin save/cancel (or actions) footer to bottom of card when content is short */
.admin-page-stack > .program-create-page > .admin-form-card.program-create-card .program-create-card__body > form,
.admin-page-stack > .program-create-page > .admin-form-card.program-create-card .program-create-card__body > .program-create-form {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.admin-page-stack > .program-create-page > .admin-form-card.program-create-card .program-create-card__body > form > .program-create-footer,
.admin-page-stack
  > .program-create-page
  > .admin-form-card.program-create-card
  .program-create-card__body
  > .program-create-form
  > .program-create-footer {
  margin-top: auto;
}

/* Question bank: keep action row with the fields (overrides margin-top: auto) + breathing room */
.admin-page-stack
  > .program-create-page
  > .admin-form-card.program-create-card
  .program-create-card__body
  > form.question-bank-create-form
  > .program-create-footer {
  margin-top: 1.5rem;
  margin-bottom: 0;
  padding-top: 1.25rem;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
}

/*
 * Question bank create/edit: the default program-create flex chain (flex:1 + min-height:0) makes
 * the form fill the viewport. When the form is taller than the viewport, the form's box stays
 * viewport-tall and the rest of the form (including the footer) overflows visually; the card's
 * white background only covers the non-overflowing box, so the actions look "outside" the card.
 * Size the page and card to the form content (same idea as .admin-page-stack--with-flash > .program-create-page).
 */
body[data-page="question-bank-create"] .admin-page-stack > .program-create-page,
body[data-page="question-bank-edit"] .admin-page-stack > .program-create-page {
  flex: 0 1 auto;
}

body[data-page="question-bank-create"]
  .admin-page-stack
  > .program-create-page
  > .admin-form-card.program-create-card,
body[data-page="question-bank-edit"]
  .admin-page-stack
  > .program-create-page
  > .admin-form-card.program-create-card {
  flex: 0 0 auto;
}

body[data-page="question-bank-create"]
  .admin-page-stack
  > .program-create-page
  > .admin-form-card
  .program-create-card__body,
body[data-page="question-bank-edit"]
  .admin-page-stack
  > .program-create-page
  > .admin-form-card
  .program-create-card__body {
  flex: 0 0 auto;
}

body[data-page="question-bank-create"]
  .admin-page-stack
  > .program-create-page
  > .admin-form-card
  .program-create-card__body
  > form.question-bank-create-form,
body[data-page="question-bank-edit"]
  .admin-page-stack
  > .program-create-page
  > .admin-form-card
  .program-create-card__body
  > form.question-bank-create-form {
  flex: 0 0 auto;
}

/* Program / voucher / marketing create/edit/show: card both fills the viewport when
 * the form is short AND grows with the form when content is taller than the viewport
 * (e.g. batch table, stacked mobile fields). `flex: 1 0 auto` = grow to fill,
 * never shrink, basis from content — avoids footer/fields painting outside the card. */
body[data-page="program-create"] .admin-page-stack > .program-create-page,
body[data-page="program-edit"] .admin-page-stack > .program-create-page,
body[data-page="program-show"] .admin-page-stack > .program-create-page,
body[data-page="marketing-banners-create"] .admin-page-stack > .program-create-page,
body[data-page="marketing-banners-edit"] .admin-page-stack > .program-create-page,
body[data-page="voucher-codes-create"] .admin-page-stack > .program-create-page,
body[data-page="voucher-codes-edit"] .admin-page-stack > .program-create-page,
body[data-page="voucher-codes-show"] .admin-page-stack > .program-create-page {
  flex: 1 0 auto;
}

body[data-page="program-create"]
  .admin-page-stack
  > .program-create-page
  > .admin-form-card.program-create-card,
body[data-page="program-edit"]
  .admin-page-stack
  > .program-create-page
  > .admin-form-card.program-create-card,
body[data-page="program-show"]
  .admin-page-stack
  > .program-create-page
  > .admin-form-card.program-create-card,
body[data-page="marketing-banners-create"]
  .admin-page-stack
  > .program-create-page
  > .admin-form-card.program-create-card,
body[data-page="marketing-banners-edit"]
  .admin-page-stack
  > .program-create-page
  > .admin-form-card.program-create-card,
body[data-page="voucher-codes-create"]
  .admin-page-stack
  > .program-create-page
  > .admin-form-card.program-create-card,
body[data-page="voucher-codes-edit"]
  .admin-page-stack
  > .program-create-page
  > .admin-form-card.program-create-card,
body[data-page="voucher-codes-show"]
  .admin-page-stack
  > .program-create-page
  > .admin-form-card.program-create-card {
  flex: 1 0 auto;
}

body[data-page="program-create"]
  .admin-page-stack
  > .program-create-page
  > .admin-form-card
  .program-create-card__body,
body[data-page="program-edit"]
  .admin-page-stack
  > .program-create-page
  > .admin-form-card
  .program-create-card__body,
body[data-page="program-show"]
  .admin-page-stack
  > .program-create-page
  > .admin-form-card
  .program-create-card__body,
body[data-page="marketing-banners-create"]
  .admin-page-stack
  > .program-create-page
  > .admin-form-card
  .program-create-card__body,
body[data-page="marketing-banners-edit"]
  .admin-page-stack
  > .program-create-page
  > .admin-form-card
  .program-create-card__body,
body[data-page="voucher-codes-create"]
  .admin-page-stack
  > .program-create-page
  > .admin-form-card
  .program-create-card__body,
body[data-page="voucher-codes-edit"]
  .admin-page-stack
  > .program-create-page
  > .admin-form-card
  .program-create-card__body,
body[data-page="voucher-codes-show"]
  .admin-page-stack
  > .program-create-page
  > .admin-form-card
  .program-create-card__body {
  flex: 1 0 auto;
}

body[data-page="program-create"]
  .admin-page-stack
  > .program-create-page
  > .admin-form-card
  .program-create-card__body
  > .program-create-form,
body[data-page="program-edit"]
  .admin-page-stack
  > .program-create-page
  > .admin-form-card
  .program-create-card__body
  > .program-create-form,
body[data-page="program-show"]
  .admin-page-stack
  > .program-create-page
  > .admin-form-card
  .program-create-card__body
  > .program-create-form,
body[data-page="marketing-banners-create"]
  .admin-page-stack
  > .program-create-page
  > .admin-form-card
  .program-create-card__body
  > .program-create-form,
body[data-page="marketing-banners-edit"]
  .admin-page-stack
  > .program-create-page
  > .admin-form-card
  .program-create-card__body
  > .program-create-form,
body[data-page="voucher-codes-create"]
  .admin-page-stack
  > .program-create-page
  > .admin-form-card
  .program-create-card__body
  > .program-create-form,
body[data-page="voucher-codes-edit"]
  .admin-page-stack
  > .program-create-page
  > .admin-form-card
  .program-create-card__body
  > .program-create-form,
body[data-page="voucher-codes-show"]
  .admin-page-stack
  > .program-create-page
  > .admin-form-card
  .program-create-card__body
  > .program-create-form {
  flex: 1 0 auto;
}

.btn-program-module {
  background-color: var(--blue-normal);
  border-color: var(--blue-normal);
  font-weight: 500;
  border-radius: 5px;
  font-size: 14px;
}

.btn-program-module:hover {
  background-color: var(--blue-normal-active);
  border-color: var(--blue-normal-active);
  color: #fff;
}

.program-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.program-action-btn .lucide-action {
  width: 20px;
  height: 20px;
}

.program-row-actions .program-action-btn.btn-link {
  text-decoration: none;
}

div.dt-container div.dt-processing {
  z-index: 3;
}

/* -------------------------------------------------------------------------- */
/* Admin — Create Program form (outlined fields, batch table, toggles)         */
/* -------------------------------------------------------------------------- */

.admin-form-card.program-create-card {
  background: #fff;
  border-radius: 12px;
  /* max-width: 1200px; */
}

.program-create-card__body {
  padding: 28px 1rem 32px;
}

@media (max-width: 767.98px) {
  .program-create-card__body {
    padding: 20px 1rem 24px;
  }
}

.program-create-title {
  color: var(--dark-black);
}

/* Payment configuration: grouped panel + divider lines between method / instalment / pay-later rows */
.payment-config-section {
  padding: 1.25rem 1.5rem 1.35rem;
  /* background: linear-gradient(180deg, #fbfcfb 0%, #f5f7f4 100%); */
  border: 1px solid #d5ddd2;
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.payment-config-section .payment-config-row--methods .exam-multiselect {
  max-width: 100%;
}

.payment-config-section .payment-config-pay-later-col {
  min-width: 0;
}

.payment-config-section .payment-config-row:not(:first-child) {
  margin-top: 0;
  /* padding-top: 1.25rem; */
  /* border-top: 1px solid rgba(94, 109, 85, 0.22); */
}

.program-time-bound-row .program-time-bound-inline {
  min-height: 2.5rem;
}

.program-inline-field-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark-black);
  white-space: nowrap;
  margin-bottom: 0;
  line-height: 1.2;
}

.program-course-time-inline {
  align-items: center;
}

/* Instalment row: count select + all instalment inputs on one horizontal row (scroll on narrow viewports) */
.payment-config-instalment-joined {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: visible;
  padding-top: 20px;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}

.payment-config-instalment-joined__count {
  flex: 0 0 auto;
  width: min(100%, 11.5rem);
  max-width: 11.5rem;
  border-radius: 8px;
  margin: 0;
}

.payment-config-instalment-inputs-host {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.75rem 1rem;
  min-width: 0;
}

.payment-config-instalment-inputs-host .admin-outlined-field {
  flex: 1 1 0;
  min-width: 4.75rem;
  border-radius: 5px;
  margin: 0;
}

/* Instalment field + its error stacked vertically (error below, not beside) */
.payment-config-instalment-cell {
  flex: 1 1 0;
  min-width: 4.75rem;
  max-width: 100%;
  display: flex;
  flex-direction: column;
}

.payment-config-instalment-cell > .admin-outlined-field {
  flex: 0 0 auto;
}

.payment-config-instalment-cell > .admin-field-error {
  flex: 0 0 auto;
}

.payment-config-instalment-cell > .admin-field-error:empty {
  display: none;
}

.payment-config-instalment-joined__count:focus-within,
.payment-config-instalment-inputs-host .admin-outlined-field:focus-within {
  z-index: 1;
}

.payment-config-row-instalment__fields {
  width: 100%;
}

.payment-config-section .admin-outlined-label {
  top: -11px;
  left: 11px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  white-space: normal;
  max-width: min(100%, calc(100% - 22px));
  word-wrap: break-word;
  overflow-wrap: break-word;
  background-color: #fff;
  z-index: 3;
}

.payment-config-sync-select {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.payment-config-dependent__pay-later {
  min-width: 10rem;
  max-width: 100%;
}

.admin-outlined-field {
  position: relative;
  border: 1px solid #c4c4c4;
  border-radius: 5px;
  padding: 10px 12px 8px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-outlined-field:focus-within {
  border-color: var(--blue-normal);
  box-shadow: 0 0 0 1px rgba(94, 109, 85, 0.2);
}


/* Currency / unit prefix shown inside an outlined input (e.g. "€").
   The field is laid out as a flex row so the prefix sits inline next to
   the input on the same baseline; the floating label still positions
   itself absolutely against the field's outer box. */
.admin-outlined-field--with-prefix {
  display: flex;
  align-items: center;
  gap: 4px;
}

.admin-outlined-prefix {
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 500;
  color: #5c5c5c;
  line-height: 1;
  padding-top: 4px;
  pointer-events: none;
  user-select: none;
}

.admin-outlined-input--with-prefix {
  flex: 1 1 auto;
  min-width: 0;
}

/* Hide the native number-spinner buttons so the € prefix isn't fighting
   for space with the up/down arrows on the right edge. */
.admin-outlined-input--with-prefix::-webkit-outer-spin-button,
.admin-outlined-input--with-prefix::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.admin-outlined-input--with-prefix[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.admin-outlined-label {
  position: absolute;
  top: -9px;
  left: 10px;
  padding: 0 6px;
  font-size: 12px;
  font-weight: 500;
  color: #5c5c5c;
  background: #fff;
  line-height: 1;
  z-index: 2;
}

.admin-outlined-input,
.admin-outlined-select,
.admin-outlined-textarea {
  display: block;
  width: 100%;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: inherit;
  color: var(--dark-black);
  background: transparent;
  padding: 4px 0 2px;
  min-height: 28px;
}

.admin-outlined-textarea {
  /* min-height: 96px; */
  resize: vertical;
  line-height: 1.45;
}

.admin-outlined-select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 32px;
  padding-left: 4px;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: right 6px center;
  background-size: 18px 18px;
  background-clip: padding-box;
  /* Inline SVG chevron to match Lucide style */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%234a4f4a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

.admin-outlined-select option {
  /* Note: option styling support varies by browser/OS */
  padding: 6px 10px;
}

.admin-outlined-select::-ms-expand {
  display: none;
}

.admin-outlined-select:focus {
  outline: none;
}

.admin-outlined-select:disabled {
  cursor: not-allowed;
  opacity: 0.75;
}

/* Voucher form: Auto-generate matches sibling .admin-outlined-field height + chrome */
.voucher-code-autogenerate-btn.btn {
  min-width: 0;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
  /* Match .admin-outlined-field padding (10px 12px 8px) + same border radius */
  padding: 10px 12px 8px;
  color: #fff;
  background: var(--blue-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.voucher-code-autogenerate-btn.btn:hover {
  background: var(--blue-dark);
  color: #fff;
}

/* -------------------------------------------------------------------------- */
/* Exam form — multi-select dropdown (program-wise)                            */
/* -------------------------------------------------------------------------- */

.exam-multiselect__dropdown {
  width: 100%;
}

.exam-multiselect__button {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0 2px;
  min-height: 28px;
  font-size: 15px;
  font-family: inherit;
  color: var(--dark-black);
}

.exam-multiselect__button:focus {
  outline: none;
}

.exam-multiselect__value {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

.exam-multiselect__placeholder {
  display: block;
  padding: 2px 0;
  color: #8a8f8a;
}

.exam-multiselect__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.exam-multiselect__chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--dark-black);
  background: #e9ecef;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.exam-multiselect__chevron {
  width: 18px;
  height: 18px;
  color: #4a4f4a;
  flex: 0 0 auto;
}

.exam-multiselect__menu {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #c5d0bd;
  padding: 10px 10px 8px;
  max-height: 260px;
  overflow: auto;
  box-shadow: 0 6px 18px rgba(11, 10, 10, 0.12);
}

.exam-multiselect__options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exam-multiselect__item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  cursor: pointer;
  user-select: none;
  padding: 6px 8px;
  border-radius: 8px;
}

.exam-multiselect__item:hover {
  background: var(--green-light);
}

.exam-multiselect__checkbox {
  margin-top: 0;
}

.exam-multiselect__text {
  font-size: 14px;
  color: var(--dark-black);
}

.exam-multiselect__hidden {
  display: none;
}

.exam-multiselect--disabled .exam-multiselect__button {
  cursor: not-allowed;
  opacity: 0.55;
  color: #8a95a5;
}

.exam-multiselect--disabled .exam-multiselect__chevron {
  color: #b0b8b0;
}

.exam-multiselect--disabled .exam-multiselect__item {
  cursor: not-allowed;
  opacity: 0.65;
}

.exam-multiselect--disabled .exam-multiselect__item:hover {
  background: transparent;
}

/* Instructor form: intl-tel-input (flag + dial + number) inside admin-outlined field */
.admin-outlined-field--phone {
  /* Allow absolutely positioned parts to extend; overlap is handled by portaling the list to body. */
  overflow: visible;
}

.admin-outlined-field--phone .iti {
  display: block;
  width: 100%;
  position: relative;
}

.admin-outlined-field--phone .iti__country-container {
  z-index: 1;
}

.admin-outlined-field--phone .iti__selected-dial-code {
  font-size: 15px;
  color: var(--dark-black);
  font-weight: 500;
}

/* Inline dropdown (only if dropdownContainer is not used) — keep above siblings’ floating labels. */
.admin-outlined-field--phone .iti--inline-dropdown:not(.iti--container) .iti__dropdown-content {
  z-index: 20;
}

/* Portaled list (body): library uses .iti--container; keep above admin labels / Bootstrap layers. */
.iti.iti--container.instructor-iti {
  z-index: 2000;
}

.admin-outlined-field--phone .iti__tel-input,
.admin-outlined-field--phone input.iti__tel-input[type="tel"] {
  font-size: 15px;
  font-family: inherit;
  color: var(--dark-black);
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  outline: none;
  min-height: 28px;
}

/* ==========================================================================
   flatpickr — shared calendar theming (used by every date input across the
   app via `resources/js/features/datepicker.js`).
   Flatpickr's stylesheet is bundled by Vite and injected as an inline <style>
   tag at runtime, so it loads AFTER any <link>-loaded CSS. We scope rules
   under `body` to win specificity over the runtime-injected defaults without
   needing !important everywhere.
   ========================================================================== */

body .flatpickr-calendar {
  z-index: 2000;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(31, 41, 33, 0.18);
  border: 1px solid #e2e6dd;
  font-family: inherit;
}

body .flatpickr-day {
  color: var(--dark-black, #1f2921);
}

/* Flatpickr defaults disabled/other-month days to ~10% opacity — nearly
   invisible on white. Keep them muted but readable. */
body .flatpickr-day.prevMonthDay,
body .flatpickr-day.nextMonthDay,
body .flatpickr-day.flatpickr-disabled {
  color: rgba(31, 41, 33, 0.35);
}

body .flatpickr-day.selected,
body .flatpickr-day.selected:hover,
body .flatpickr-day.selected:focus,
body .flatpickr-day.startRange,
body .flatpickr-day.endRange,
body .flatpickr-day.selected.startRange,
body .flatpickr-day.selected.endRange,
body .flatpickr-day.selected.inRange,
body .flatpickr-day.startRange.inRange,
body .flatpickr-day.endRange.inRange {
  background: var(--blue-normal);
  border-color: var(--blue-normal);
  color: #fff;
}

body .flatpickr-day:hover,
body .flatpickr-day:focus {
  background: #f6f7f4;
  border-color: #e2e6dd;
}

body .flatpickr-day.today:not(.selected) {
  border-color: var(--blue-normal);
}

body .flatpickr-day.today:not(.selected):hover,
body .flatpickr-day.today:not(.selected):focus {
  background: var(--blue-normal);
  color: #fff;
}

body .flatpickr-months .flatpickr-month,
body .flatpickr-current-month .flatpickr-monthDropdown-months,
body .flatpickr-weekdays,
body span.flatpickr-weekday {
  color: var(--dark-black, #1f2921);
  background: transparent;
  fill: var(--dark-black, #1f2921);
}

body .flatpickr-months .flatpickr-prev-month,
body .flatpickr-months .flatpickr-next-month {
  color: var(--dark-black, #1f2921);
  fill: var(--dark-black, #1f2921);
}

body .flatpickr-months .flatpickr-prev-month:hover svg,
body .flatpickr-months .flatpickr-next-month:hover svg {
  fill: var(--blue-normal);
}

/* Shrink the month/year header (flatpickr default is 135%). */
body .flatpickr-current-month {
  font-size: 14px;
  padding: 6px 0 4px;
  line-height: 1.2;
  height: auto;
}

body .flatpickr-current-month .flatpickr-monthDropdown-months,
body .flatpickr-current-month input.cur-year {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

/* Smaller nav arrows so they balance the smaller header text. */
body .flatpickr-months .flatpickr-prev-month svg,
body .flatpickr-months .flatpickr-next-month svg {
  width: 12px;
  height: 12px;
}

/* Weekday row + day cells: tighten to a consistent 12.5px. */
body .flatpickr-weekdays,
body span.flatpickr-weekday,
body .flatpickr-day {
  font-size: 12.5px;
}

/* Inputs that have been upgraded to flatpickr should retain the pointer
 * cursor since they are no longer the native date picker. */
input.flatpickr-input {
  cursor: pointer;
  background-color: #fff;
}


.question-bank-locale-block__head {
  margin-bottom: 0.65rem;
}

/* Card shell: tab strip + content read as one control */
.question-bank-locale-shell {
  border: 1px solid #c5d0bd;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(11, 10, 10, 0.05);
  overflow: hidden;
}

/* Segmented language switcher */
.question-bank-locale-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  /* background: linear-gradient(180deg, #e8ede6 0%, #dfe5dc 100%); */
  border-bottom: 1px solid #c5d0bd;
}

.question-bank-locale-nav .nav-item {
  flex: 1;
  min-width: 0;
  margin: 0;
}

.question-bank-locale-nav .nav-link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 2.5rem;
  border: none;
  border-bottom: 2px solid transparent;
  margin: 0;
  color: #4a4f4a;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  transition:
    color 0.15s ease,
    background 0.15s ease;
}

.question-bank-locale-nav .nav-item + .nav-item .nav-link {
  box-shadow: -1px 0 0 rgba(0, 0, 0, 0.06);
}

.question-bank-locale-nav .nav-link:hover {
  color: var(--blue-normal, #0d5c3d);
  background: rgba(255, 255, 255, 0.35);
}

.question-bank-locale-nav .nav-link.active {
  color: white;
  background: var(--blue-normal);
  font-weight: 600;
  border-bottom-color: var(--blue-normal);
  box-shadow: 0 1px 0 0 #fff;
}

.question-bank-locale-nav__label {
  white-space: nowrap;
}

.question-bank-locale-nav__req {
  font-size: 1.05em;
  line-height: 1;
}

/* Tab body: question text only (options follow below) */
.question-bank-locale-shell__body {
  padding: 1rem 1rem 1.05rem;
  background: #fafbfa;
}

.file-upload-locale-shell__body {
  padding: 1rem 1rem 1.05rem;
  background: #fafbfa;
  border: 1px solid #c5d0bd;
  border-radius: 6px;
}

.admin-locale-panels .admin-outlined-field .admin-outlined-textarea {
  min-height: 1.5rem;
}

/* Question bank — option row (outlined input + correct checkbox) */
.question-bank-option-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px 8px;
  min-width: 0;
  max-width: 100%;
}

.question-bank-option-row .admin-outlined-field {
  min-width: 0;
}

/* Default .form-check uses float + negative margin-left; as a flex item that can collapse
   and draw the checkbox outside the card on narrow viewports. Use flex for this cell only. */
.question-bank-option-row__correct.form-check {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  padding-left: 0;
  margin-bottom: 0;
  /* align checkbox with the outlined input (below “Option A” label) */
  width: 2.75rem;
  min-width: 2.75rem;
  box-sizing: border-box;
}

.question-bank-option-row__correct .form-check-input {
  float: none;
  margin-left: 0;
  margin-top: 0;
}

@media (max-width: 575.98px) {
  .question-bank-option-row {
    flex-wrap: wrap;
  }

  .question-bank-option-row__correct.form-check {
    margin-top: 0;
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
  }
}

/* Let the form shrink inside padded card (flex parents need min-width: 0) */
form.question-bank-create-form {
  min-width: 0;
  max-width: 100%;
}

.admin-outlined-input--bare {
  min-height: 32px;
  text-align: center;
}

.admin-outlined-field--view {
  pointer-events: none;
  padding-top: 16px;
  padding-bottom: 10px;
}

.admin-outlined-field--view a,
.admin-outlined-field--view button {
  pointer-events: auto;
}

.admin-outlined-field--view:focus-within {
  border-color: #c4c4c4;
  box-shadow: none;
}

.admin-outlined-field--view .admin-outlined-label {
  position: absolute;
  top: -11px;
  left: 11px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  color: #5c5c5c;
  z-index: 2;
  white-space: normal;
  max-width: min(100%, calc(100% - 22px));
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.admin-outlined-static-value {
  display: block;
  width: 100%;
  font-size: 15px;
  font-family: inherit;
  color: var(--dark-black);
  padding: 4px 0 2px;
  min-height: 28px;
}

.admin-outlined-static-value--center {
  text-align: center;
}

/* Program show (read-only): section rhythm, payment panel, instalment chips */
.program-show-page .program-show-form {
  min-width: 0;
  max-width: 100%;
}

.program-show-page .program-show-choice-field {
  margin-bottom: 0;
}

.program-show-page .program-show-choice-field__body {
  min-height: 1.75rem;
  padding: 2px 0 0;
}

.program-show-page .program-show-mode-row {
  align-items: flex-end;
}

.program-show-payment-panel .payment-config-row + .program-show-payment-details-row,
.program-show-payment-panel .program-show-payment-details-row + .program-show-payment-instalments-row {
  margin-top: 0.25rem;
}

.program-show-payment-panel .program-show-payment-chips {
  padding-top: 2px;
}

.program-show-payment-panel .program-show-instalment-boxes {
  flex-wrap: wrap;
  overflow-x: visible;
}

.program-show-payment-panel .program-show-instalment-boxes .program-show-instalment-box {
  width: min(100%, 11rem);
  max-width: 11rem;
}

.program-show-payment-panel .program-show-instalment-boxes .admin-outlined-field {
  width: 100%;
}

.program-show-payment-panel .payment-config-instalment-hint {
  max-width: 52rem;
  line-height: 1.45;
}

.program-show-header {
  width: 100%;
  min-width: 0;
}

.program-show-delete-btn.btn {
    /* min-height: 32px; */
    padding: 8px 11px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 2px;
    background-color: rgba(220, 53, 69, 0.08);
    color: #f7041c;
    border-color: #f7041c;
}

.program-show-delete-btn.btn:hover {
  background-color: rgba(216, 173, 177, 0.08);
  border-color: #f7041c;
  color: #f7041c;
}

.program-show-section {
  margin-bottom: 0;
  padding-bottom: 1.5rem;
}

.program-show-section + .program-show-section {
  margin-top: 0;
  padding-top: 1.5rem;
  border-top: 1px solid #dfe4df;
}

.program-show-section--payment {
  padding: 1.25rem 1.5rem 1.35rem;
  margin-left: 0;
  margin-right: 0;
  background: linear-gradient(180deg, #fbfcfb 0%, #f5f7f4 100%);
  border: 1px solid #d5ddd2;
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.program-show-section--payment + .program-show-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #dfe4df;
}

.program-show-section:not(.program-show-section--payment) + .program-show-section--payment {
  margin-top: 1.5rem;
  padding-top: 0;
  border-top: none;
}

.program-show-instalment-row {
  margin-top: 0.25rem;
}

.program-show-payment-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.6rem;
  padding: 4px 0 2px;
  min-height: 28px;
}

.program-show-payment-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark-black);
  background: #fff;
  border: 1px solid #d8dcd8;
  border-radius: 8px;
  line-height: 1.25;
}

.program-show-instalment-boxes {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.9rem;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}

.program-show-instalment-boxes .program-show-instalment-box {
  flex: 0 0 auto;
  width: min(100%, 10.5rem);
  max-width: 12rem;
}

.program-show-batch-add.is-disabled {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

.program-show-instalment-values {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 4px 0 2px;
  min-height: 28px;
}

.program-show-instalment-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark-black);
  background: #fff;
  border: 1px solid #d8dcd8;
  border-radius: 8px;
  line-height: 1.3;
}

.program-show-section.program-batch-section {
  padding-top: 1.25rem;
  margin-bottom: 0;
  border-top: none;
}

.program-show-section--status {
  padding-bottom: 0.25rem;
}

.toggle-switch.toggle-switch--static {
  cursor: default;
  pointer-events: none;
}

.toggle-switch--static .toggle-switch-slider--on:before {
  -webkit-transform: translateX(14px);
  -ms-transform: translateX(14px);
  transform: translateX(14px);
  background-color: var(--blue-normal);
}

.admin-outlined-field--split .admin-split-inputs {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 2px;
}

.admin-split-divider {
  width: 1px;
  background: #e0e0e0;
  flex-shrink: 0;
  margin: 4px 0;
}

.admin-field-error {
  font-size: 12px;
  color: #dc3545;
  margin-top: 6px;
}

/* Schedule class — modern time range picker */
.schedule-time-range {
  position: relative;
  z-index: 2;
}

.schedule-time-range.is-open {
  z-index: 30;
  border-color: var(--blue-normal);
  box-shadow: 0 0 0 1px rgba(0, 45, 98, 0.18);
}

.schedule-time-range__trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 28px;
  margin: 0;
  padding: 4px 0 2px;
  border: 0;
  background: transparent;
  color: var(--dark-black);
  font: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}

.schedule-time-range__clock,
.schedule-time-range__chevron {
  flex: 0 0 auto;
  color: #6b7280;
}

.schedule-time-range__summary {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #9ca3af;
}

.schedule-time-range.has-value .schedule-time-range__summary {
  color: var(--dark-black);
  font-weight: 500;
}

.schedule-time-range__badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e8f1fb;
  color: #1d4f91;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.schedule-time-range__chevron {
  transition: transform 0.18s ease;
}

.schedule-time-range.is-open .schedule-time-range__chevron {
  transform: rotate(180deg);
}

.schedule-time-range__panel {
  position: absolute;
  top: calc(100% + 10px);
  left: auto;
  right: 0;
  width: min(420px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.schedule-time-range__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.schedule-time-range__field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
}

.schedule-time-range__hm {
  display: flex;
  align-items: center;
  gap: 6px;
}

.schedule-time-range__select {
  flex: 1 1 0;
  min-width: 0;
  height: 40px;
  padding: 0 28px 0 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 14px;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--dark-black);
  cursor: pointer;
}

.schedule-time-range__select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.schedule-time-range__colon {
  flex: 0 0 auto;
  font-size: 16px;
  font-weight: 600;
  color: #6b7280;
}

.schedule-time-range__quick {
  margin-top: 16px;
}

.schedule-time-range__quick-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
}

.schedule-time-range__quick-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.schedule-time-range__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  color: var(--dark-black);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.schedule-time-range__chip:hover {
  border-color: #9ca3af;
  background: #f9fafb;
}

.schedule-time-range__chip.is-active {
  border-color: var(--blue-normal);
  background: #eef3f9;
  color: var(--blue-normal);
}

.schedule-time-range__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #eef0f3;
}

.schedule-time-range__footer-duration {
  font-size: 13px;
  font-weight: 500;
  color: #4b5563;
  white-space: nowrap;
}

.schedule-time-range__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.schedule-time-range__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.schedule-time-range__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.schedule-time-range__btn--ghost {
  border-color: #d1d5db;
  background: #fff;
  color: var(--blue-normal);
}

.schedule-time-range__btn--ghost:hover {
  background: #f9fafb;
}

.schedule-time-range__btn--primary {
  background: var(--blue-normal);
  border-color: var(--blue-normal);
  color: #fff;
}

.schedule-time-range__btn--primary:hover:not(:disabled) {
  background: var(--blue-normal-active);
  border-color: var(--blue-normal-active);
}

@media (max-width: 575.98px) {
  .schedule-time-range__fields {
    grid-template-columns: 1fr;
  }

  .schedule-time-range__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .schedule-time-range__actions {
    justify-content: stretch;
  }

  .schedule-time-range__btn {
    flex: 1 1 0;
  }

  .schedule-time-range__panel {
    left: 0;
    right: 0;
    width: auto;
  }
}

/* Payment configuration: keep validation messages aligned and avoid layout jump */
.payment-config-section .admin-field-error {
  margin-top: 6px;
}

.admin-toggle-heading {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark-black);
}

.admin-toggle-ends {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-toggle-ends--compact {
  gap: 6px;
}

.admin-toggle-end {
  font-size: 14px;
  font-weight: 500;
  color: var(--blue-normal);
  min-width: 1.25rem;
  text-align: center;
}

.admin-toggle-end.is-muted {
  color: #9aa0a6;
  font-weight: 400;
}

.admin-toggle-end.is-active {
  color: var(--blue-normal);
  font-weight: 600;
}

.program-batch-section {
  border-top: 1px solid #ececec;
  padding-top: 20px;
  min-width: 0;
  max-width: 100%;
}

.program-batch-add {
  color: var(--blue-normal) !important;
  font-size: 15px;
}

.program-create-page .program-batch-section .admin-dt-table-wrap {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  border: 1px solid #e0e0e0;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.program-create-page .program-batch-section .admin-dt-table-wrap > table > thead > tr > th:first-child {
  border-top-left-radius: 9px;
}

.program-create-page .program-batch-section .admin-dt-table-wrap > table > thead > tr > th:last-child {
  border-top-right-radius: 9px;
}

.program-batch-table {
  font-size: 14px;
  margin: 0 !important;
}

.program-batch-table thead th {
  background-color: var(--blue-light) !important;
  color: var(--blue-normal) !important;
  font-weight: 600;
  border-bottom: 1px solid #e0e0e0;
  padding: 12px 14px;
  white-space: nowrap;
}

.program-batch-table tbody td {
  padding: 10px 12px;
  vertical-align: middle;
  border-color: #e6e6e6;
}

.program-batch-table.table-hover tbody tr:hover > * {
  --bs-table-hover-bg: #f6f6f6;
}

.program-batch-table .batch-display-text {
  font-size: 14px;
  color: var(--dark-black);
}

.batch-status-pill,
.admin-status-pill,
.marketing-banner-show__pill,
.instructor-account-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  background: #fff;
  border: 1px solid #e6e6e6;
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.04);
}

.batch-status-pill::before,
.admin-status-pill::before,
.marketing-banner-show__pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.batch-status-pill.is-active,
.admin-status-pill.is-active,
.marketing-banner-show__pill.is-active,
.instructor-account-status.is-active {
  color: var(--blue-normal);
}

.batch-status-pill.is-active::before,
.admin-status-pill.is-active::before,
.marketing-banner-show__pill.is-active::before,
.instructor-account-status.is-active .instructor-account-status__dot {
  background: #2d8a3e;
}

.batch-status-pill.is-inactive,
.admin-status-pill.is-inactive,
.marketing-banner-show__pill.is-inactive,
.instructor-account-status.is-inactive {
  color: #667085;
}

.batch-status-pill.is-inactive::before,
.admin-status-pill.is-inactive::before,
.marketing-banner-show__pill.is-inactive::before,
.instructor-account-status.is-inactive .instructor-account-status__dot {
  background: #e11d48;
}

.admin-status-pill.is-cancelled {
  color: #b42318;
  border-color: #fecdca;
  background: #fef3f2;
}

.admin-status-pill.is-cancelled::before {
  background: #d92d20;
}

.instructor-contact-cell {
  line-height: 1.4;
  max-width: 20rem;
  margin: 0 auto;
}

.instructor-account-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.instructor-view-link {
  color: var(--blue-normal, #1f5c2a);
  font-weight: 600;
}

.instructor-view-link:hover {
  text-decoration: underline;
}

.instructor-show-dl dt,
.instructor-show-dl dd {
  padding: 0.4rem 0;
  border-bottom: 1px solid #eee;
}

.program-batch-modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.program-batch-modal-dialog {
  max-width: 560px;
}

.program-batch-modal__header {
  position: relative;
  justify-content: center;
  padding: 1.35rem 2.5rem 0.75rem 1.5rem;
}

.program-batch-modal__title {
  width: 100%;
  margin: 0;
  text-align: center;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dark-black);
  letter-spacing: 0.01em;
}

.program-batch-modal__close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  margin: 0;
  opacity: 0.55;
}

.program-batch-modal__close:hover {
  opacity: 1;
}

.program-batch-modal__body {
  padding: 0.5rem 1.5rem 1.25rem;
}

.program-batch-modal .admin-outlined-field {
  margin-bottom: 0;
}

.program-batch-modal .admin-outlined-input--date {
  min-height: 36px;
  padding-top: 2px;
  padding-bottom: 2px;
  color-scheme: light;
}

.program-batch-modal__error {
  color: #dc3545;
  text-align: center;
}

.program-batch-modal__footer {
  justify-content: center;
  padding: 0 1.5rem 1.5rem;
}

.program-batch-modal__submit {
  min-width: 200px;
  height: 48px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  background-color: var(--blue-normal);
  border-color: var(--blue-normal);
  color: #fff;
}

.program-batch-modal__submit:hover,
.program-batch-modal__submit:focus {
  background-color: var(--blue-normal-active);
  border-color: var(--blue-normal-active);
}

.program-batch-modal__submit--secondary {
  background-color: #fff;
  border: 1px solid #c4c4c4;
  color: #555;
}

.program-batch-modal__submit--secondary:hover,
.program-batch-modal__submit--secondary:focus {
  background-color: #f8f8f8;
  border-color: #b0b0b0;
  color: #333;
}

.program-batch-modal__submit:disabled,
.program-batch-modal__submit.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}
.program-batch-modal__submit:disabled:hover,
.program-batch-modal__submit:disabled:focus,
.program-batch-modal__submit.disabled:hover,
.program-batch-modal__submit.disabled:focus {
  background-color: var(--blue-normal);
  border-color: var(--blue-normal);
}

.program-create-footer__btn {
  min-width: 140px;
  height: auto;
  font-size: 15px;
  font-weight: 500;
  border-radius: 0;
}

.program-create-footer .btn-outline-secondary {
  color: #555;
  border-color: #c4c4c4;
  background: #fff;
}

.program-create-footer .btn-outline-secondary:hover {
  background: #f8f8f8;
  border-color: #b0b0b0;
  color: #333;
}

.program-create-footer .btn-primary {
  background-color: var(--blue-normal);
  border-color: var(--blue-normal);
}

.program-create-footer .btn-primary:hover {
  background-color: var(--blue-normal-active);
  border-color: var(--blue-normal-active);
}

.add-program-link{
  color: var(--blue-normal);
  font-weight: 600;
}

/* -------------------------------------------------------------------------- */
/* Admin — Create program module (tabs, list rows, upload modals)              */
/* -------------------------------------------------------------------------- */

/* Videos / Note tabs use .applications-tabs--locale (same as locale pickers) */
.program-module-tabs-row .applications-tabs--locale {
  flex-shrink: 0;
}

.program-module-tab-count {
  font-weight: 600;
  opacity: 0.85;
}

.program-module-media-summary {
  align-self: center;
}

/* Translatable field: one outlined input per locale (no tabs) */
.admin-translatable-field {
  margin-bottom: 0.25rem;
}

.admin-translatable-field__head {
  margin-bottom: 15px;
}

.admin-translatable-field__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--dark-black);
  line-height: 1.3;
  margin: 0 0 4px;
}

.admin-translatable-field__hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #6b6b6b;
  max-width: 52rem;
}


.admin-translatable-field__shell .admin-outlined-field {
  background: #fff;
}

/* Program create / edit: program name (EN/ SK) in one row; then other fields on following rows, top-aligned */
.program-form-name-row {
  align-items: start;
}

.program-form-name-row > [class*="col-"] {
  min-width: 0;
}

.program-form-name-row .admin-translatable-field {
  margin-bottom: 0;
}

.program-form-name-row .admin-translatable-field__shell {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.program-form-name-row .admin-translatable-field__head {
  margin-bottom: 8px;
}

.program-form-name-row .admin-translatable-field__hint {
  margin-bottom: 6px;
  font-size: 12px;
  line-height: 1.4;
}

.program-form-name-row .admin-translatable-field__inputs {
  --bs-gutter-y: 0.65rem;
  margin-top: 0;
}

.program-form-name-row .admin-outlined-field {
  width: 100%;
}

.program-category-add-btn.btn {
  min-width: 5.5rem;
  height: 100%;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
  padding: 10px 16px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.program-module-add-link {
  color: var(--blue-normal);
  font-weight: 600;
}

/* Module edit: keep scroll inside the card (live class list), not on the grey page gutter */
body[data-page="program-module-edit"] .page-content {
  overflow: hidden;
}

body[data-page="program-module-edit"] .admin-page-stack > .program-create-page {
  flex: 1 1 auto;
  min-height: 0;
}

body[data-page="program-module-edit"]
  .admin-page-stack
  > .program-create-page
  > .admin-form-card.program-module-create-card {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

body[data-page="program-module-edit"] .program-module-create-card > .program-create-card__body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

body[data-page="program-module-edit"] .program-module-form {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

body[data-page="program-module-edit"] .program-module-tabs-row {
  flex-shrink: 0;
}

body[data-page="program-module-edit"] .program-module-list-scroll {
  flex: 1 1 auto;
  min-height: 12rem;
  max-height: min(52vh, calc(100vh - 22rem));
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-right: 4px;
  margin-bottom: 0.5rem;
}

body[data-page="program-module-edit"] .program-module-form-footer {
  flex-shrink: 0;
  margin-top: auto;
  background: #fff;
}

.program-module-item-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.program-module-item-row {
  padding: 14px 16px;
  border: 1px solid #e4e4e4;
  border-radius: 10px;
  background: #fff;
}

.program-module-item-row--sortable.sortable-ghost {
  opacity: 0.55;
  background: #f6f8fb;
}

.program-module-item-row--sortable.sortable-chosen {
  border-color: rgba(17, 74, 131, 0.35);
  box-shadow: 0 10px 24px rgba(17, 74, 131, 0.08);
}

.program-module-item-row--sortable.is-reorder-disabled .program-module-reorder-handle {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.program-module-item-thumb {
  width: 96px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 8px;
  background: #e8e8e8;
  overflow: hidden;
}

.program-module-item-thumb__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.program-module-item-thumb--title {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  background: #e8e8e8;
}

.program-module-item-thumb__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-align: center;
  color: #4b5563;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.25;
  word-break: break-word;
}

.program-module-item-thumb--file {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 6px;
  background: #eef1f5;
  color: #475569;
}

.program-module-item-thumb__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.program-module-item-thumb__ext {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.program-module-item-thumb--pdf {
  background: #fef2f2;
  color: #dc2626;
}

.program-module-item-thumb--word {
  background: #eff6ff;
  color: #2563eb;
}

.program-module-item-thumb--ppt {
  background: #fff7ed;
  color: #ea580c;
}

.program-module-thumbnail-field__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.program-module-thumbnail-field__slot {
  flex: 1 1 auto;
  min-width: 0;
}

.program-module-thumbnail-field__preview {
  flex: 0 0 auto;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 8px;
  overflow: hidden;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
}

.program-module-thumbnail-field__preview-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.program-module-thumbnail-input {
  max-width: 100%;
  padding:15px !important;
}

.program-module-reorder-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  color: #7d8790;
  cursor: grab;
  text-decoration: none;
}

.program-module-reorder-handle:hover,
.program-module-reorder-handle:focus {
  color: var(--blue-normal);
}

.program-module-reorder-handle:active {
  cursor: grabbing;
}

.program-module-list-help {
  line-height: 1.4;
}

.program-module-item-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--dark-black);
}

.program-module-item-duration {
  white-space: nowrap;
}

.program-module-item-row--done {
  border-color: #d4e8d4;
}

.program-module-item-done-badge {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.program-module-view-recording {
  color: var(--blue-normal);
  white-space: nowrap;
}

.program-module-view-recording:hover {
  color: var(--blue-normal);
  text-decoration: underline !important;
}

.program-module-item-row--empty {
  border-style: dashed;
  background: #fafafa;
}

.program-module-item-row--uploading {
  border-color: #cdd5c8;
  background: var(--green-light);
}

.program-module-item-row--upload-failed {
  border-color: #f5c2c7;
  background: #fff8f8;
}

/* Module list: upload progress matches admin olive palette (not default Bootstrap blue) */
.program-module-upload-progress {
  height: 0.7625rem;
  background-color: #e4e6e2;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid #d5d9d2;
}

.program-module-upload-progress .program-module-upload-progress__bar {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  background-color: var(--blue-normal);
  color: #fff;
  font-size: 0.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  transition: width 0.2s ease;
}

.program-module-upload-progress .program-module-upload-progress__bar--failed {
  background-color: #b94a48 !important;
  color: #fff;
}

.program-module-item-row--uploading .program-module-upload-phase {
  color: var(--blue-normal);
}

.program-module-item-row--uploading .program-module-upload-side-status {
  color: var(--blue-normal);
  opacity: 0.88;
}

.program-module-upload-modal-dialog {
  max-width: 640px;
}

.program-module-dropzone {
  position: relative;
  border: 2px dashed #c8c8c8;
  border-radius: 10px;
  padding: 2rem 1.25rem 1.75rem;
  text-align: center;
  background: var(--blue-light);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.program-module-dropzone--drag {
  border-color: var(--blue-normal);
  background: #f0f4ef;
}

.program-module-dropzone.is-invalid {
  border-color: #dc3545;
  border-style: dashed;
  background: #fff8f8;
}

/* Note upload modal: cloud icon, bold headline, supported-types + max size (reference layout) */
.program-module-dropzone--note {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 11rem;
  padding: 2rem 1.5rem 1.75rem;
  border-color: #9ca3af;
  background: #f3f4f6;
}

.program-module-dropzone--note.program-module-dropzone--drag {
  border-color: var(--blue-normal);
  background: #eef1ec;
}

.program-module-dropzone--note .program-module-dropzone-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 0.75rem;
  color: var(--blue-normal);
}

.program-module-dropzone--note .program-module-dropzone-text {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.35;
}

.program-module-dropzone--note .program-module-dropzone-hint--note {
  margin-top: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 400;
  color: #6b7280;
  line-height: 1.45;
  max-width: 24rem;
}

.program-module-dropzone--note .program-module-dropzone-hint--note-max {
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: #868e96;
}

.program-module-dropzone--note .program-module-dropzone-filename {
  margin-top: 0.75rem;
}

.program-module-dropzone--note.is-invalid {
  border-color: #dc3545;
  background: #fff8f8;
}

.program-module-dropzone-icon {
  width: 40px;
  height: 40px;
  color: #6b8cae;
  margin-bottom: 0.5rem;
}

.program-module-dropzone-text {
  font-size: 14px;
  color: #444;
}

.program-module-dropzone-link {
  color: #0d6efd;
  font-weight: 600;
}

.program-module-dropzone-link:hover {
  color: #0a58ca;
}

/* Dismissible alerts: smaller close control, vertically centered (non-auth screens) */
.alert-dismissible:not(.app-flash):not(.admin-flash) {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-right: 1rem;
}

.alert-dismissible .btn-close {
  --bs-btn-close-width: 0.6em;
  --bs-btn-close-height: 0.6em;
  padding: 0.25rem;
  opacity: 0.6;
  flex-shrink: 0;
}

.alert-dismissible:not(.app-flash):not(.admin-flash) .btn-close {
  position: static;
  top: auto;
  right: auto;
  transform: none;
  margin: 0 0 0 auto;
}

.alert-dismissible .btn-close:hover,
.alert-dismissible .btn-close:focus {
  opacity: 0.85;
}

/* App flash / admin flash: compact row; close button aligned on the right */
.app-flash,
.admin-flash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 0;
  padding: 0.375rem 0.75rem;
  padding-right: 2.25rem;
  font-size: 0.875rem;
  line-height: 1.35;
}

.app-flash .btn-close,
.admin-flash .btn-close {
  position: static;
  top: auto;
  right: auto;
  transform: none;
  flex: 0 0 auto;
  margin: 0;
  padding: 0.2rem;
  opacity: 0.6;
}

.app-flash .btn-close:hover,
.admin-flash .btn-close:hover {
  opacity: 1;
}

.admin-flash__message {
  flex: 1 1 auto;
  min-width: 0;
}

.admin-flash__close {
  position: static;
  flex: 0 0 auto;
  margin: 0;
  padding: 0.2rem;
  opacity: 0.6;
}

.admin-flash__close:hover {
  opacity: 1;
}

/* SweetAlert2 above Bootstrap modals (z-index 1055) so upload-progress dialogs are visible */
body.swal2-shown .swal2-container {
  z-index: 12000 !important;
}

/* sweet alert small classes */
.swal2-title {
  font-size: 18px;
}

.swal-text-small {
  font-size: 15px;
}

.swal-btn-small {
  font-size: 15px;
  padding: 6px 10px;
}
.swal2-warning {
  width: 50px;
  height: 50px;
}
.swal2-icon-content {
  font-size:50px !important;
}

.swal2-confirm {
  font-size: 15px;
  padding: 6px 10px;
}
.swal2-cancel {
  font-size: 15px;
  padding: 6px 10px;
}
.swal2-confirm:hover {
  background-color: var(--blue-normal-active);
  border-color: var(--blue-normal-active);
}
.swal2-cancel:hover {
  background-color: #dc3545;
  border-color: #dc3545;
}

/* .swal2-x-mark{
  font-size:10px !important;
} */
/* Admin: module video file preview (Video.js) */
.module-file-preview {
  margin: 0 auto;
}

/* EN + SK as Bootstrap tabs: one pane visible at a time */
.module-file-preview--tabs {
  min-height: 0;
}
.module-file-preview__tabs {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.module-file-preview__nav {
  flex-shrink: 0;
  border-bottom: 1px solid #dee2e6;
  margin-bottom: 0;
}
.module-file-preview__nav .nav-item {
  margin-bottom: -1px;
}
.module-file-preview__nav .nav-link {
  color: #495057;
  border: 1px solid transparent;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
  padding: 0.5rem 0.9rem;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
}
.module-file-preview__nav .nav-link:hover {
  border-color: #e9ecef #e9ecef #dee2e6;
  isolation: isolate;
}
.module-file-preview__nav .nav-link.active {
  color: #212529;
  background: #fff;
  border-color: #dee2e6 #dee2e6 #fff;
}
.module-file-preview__tab-content {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-top: 0.75rem;
}
.module-file-preview__tab-content > .tab-pane {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.module-file-preview__player-wrap {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #0f0f0f;
  box-shadow: 0 0.35rem 1.25rem rgba(0, 0, 0, 0.12);
}

.module-file-preview__video.video-js {
  width: 100%;
}

.module-file-preview__video.video-js .vjs-tech {
  outline: none;
}

/* Darker control bar, closer to LMS-style players */
.module-file-preview__video.video-js .vjs-control-bar {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.45) 55%,
    transparent 100%
  );
  height: 3.25em;
  padding-top: 0.35em;
}

.module-file-preview__video.video-js .vjs-progress-control .vjs-play-progress {
  background-color: #fff;
}

.module-file-preview__video.video-js .vjs-load-progress div {
  background: rgba(255, 255, 255, 0.35);
}

.module-file-preview__overlay {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 3.75rem;
  z-index: 1;
  pointer-events: none;
  text-align: left;
}

.module-file-preview__overlay-line {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

.module-file-preview__overlay-sub {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.8rem;
  margin-top: 0.15rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

.module-file-preview__description-body {
  font-size: 0.95rem;
  line-height: 1.55;
}

.module-file-preview__pdf-wrap {
  background: #f8f9fa;
  min-height: 70vh;
}

.module-file-preview__pdf-frame {
  display: block;
  width: 100%;
  min-height: 70vh;
  border: 0;
  background: #fff;
}

.module-file-preview__external-wrap {
  background: #f8f9fa;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

.module-file-preview__external-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 26rem;
  width: 100%;
}

.module-file-preview__external-icon {
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 1rem;
  border-radius: 0.75rem;
  background: #fff;
  border: 1px solid #dee2e6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e293b;
  box-shadow: 0 0.15rem 0.5rem rgba(15, 23, 42, 0.06);
}

.module-file-preview__external-icon [data-lucide] {
  width: 2rem;
  height: 2rem;
}

.module-file-preview__external-type {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #64748b;
}

.module-file-preview__external-name {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: #212529;
  word-break: break-word;
}

.module-file-preview__external-hint {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #6c757d;
}

.module-file-preview__external-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: auto;
  min-width: 10rem;
  padding: 0.55rem 1.35rem;
  font-weight: 600;
}

.module-file-preview__external-btn [data-lucide] {
  width: 1rem;
  height: 1rem;
}

/* Module file preview: fill admin column to viewport, video/PDF without page scroll */
body[data-page='program-module-file-preview'] .page-content {
  min-height: 0;
}
body[data-page='program-module-file-preview'] .admin-page-stack {
  flex: 1 1 auto;
  min-height: 0;
}

body[data-page='program-module-file-preview']
  .admin-page-stack
  > .program-modules-card.program-details-card {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body[data-page='program-module-file-preview'] .program-modules-card__body--file-preview {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  overflow: hidden;
}

body[data-page='program-module-file-preview'] .module-file-preview {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  align-self: stretch;
  width: 100%;
  /* margin: 0 auto on .module-file-preview + column flex parent shrinks this box to content width */
  margin-left: 0;
  margin-right: 0;
  overflow: hidden;
}

/* Let video/note blocks consume remaining height under the title row (tab panes can flex-fill) */
body[data-page='program-module-file-preview'] .module-file-preview .module-file-preview__block--note,
body[data-page='program-module-file-preview'] .module-file-preview .module-file-preview__block--video {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  overflow: hidden;
}
body[data-page='program-module-file-preview'] .module-file-preview__block--note > h2,
body[data-page='program-module-file-preview'] .module-file-preview__block--note > p,
body[data-page='program-module-file-preview'] .module-file-preview__block--video > p {
  flex-shrink: 0;
}
body[data-page='program-module-file-preview'] .module-file-preview__block--note .module-file-preview__tabs,
body[data-page='program-module-file-preview'] .module-file-preview__block--video .module-file-preview__tabs {
  flex: 1 1 auto;
  min-height: 0;
}

body[data-page='program-module-file-preview'] .module-file-preview--tabs {
  justify-content: flex-start;
  overflow: hidden;
}
/* Tab panes: use flex (Bootstrap defaults to block) so video + PDF fill the card */
body[data-page='program-module-file-preview'] .module-file-preview__tab-content > .tab-pane {
  display: none;
}
body[data-page='program-module-file-preview'] .module-file-preview__tab-content > .tab-pane.active.show {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
body[data-page='program-module-file-preview'] .module-file-preview--tabs .module-file-preview__block--note .module-file-preview__tab-content,
body[data-page='program-module-file-preview'] .module-file-preview--tabs .module-file-preview__block--video .module-file-preview__tab-content {
  flex: 1 1 auto;
  min-height: 0;
}
body[data-page='program-module-file-preview'] .module-file-preview--tabs .module-file-preview__player-wrap {
  flex: 1 1 auto;
  min-height: 0;
  align-self: stretch;
  width: 100%;
  max-height: none;
}
/* Tab body line above the PDF: keep it small so the grow area is the frame */
body[data-page='program-module-file-preview'] .module-file-preview--tabs .module-file-preview__line-meta {
  flex-shrink: 0;
  margin-bottom: 0.5rem !important;
}

body[data-page='program-module-file-preview'] .module-file-preview > h2 {
  flex-shrink: 0;
}

body[data-page='program-module-file-preview'] .module-file-preview__player-wrap {
  flex: 1 1 auto;
  min-height: 0;
  align-self: stretch;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

body[data-page='program-module-file-preview'] .module-file-preview__video.video-js {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
}

body[data-page='program-module-file-preview'] .module-file-preview__video.video-js .vjs-tech {
  object-fit: contain;
}

/* Long descriptions scroll inside the card, not the whole page */
body[data-page='program-module-file-preview'] .module-file-preview__description {
  flex: 0 1 auto;
  align-self: stretch;
  width: 100%;
  max-width: 100%;
  max-height: min(28vh, 14rem);
  overflow-y: auto;
  margin-top: 1rem !important;
}

/*
 * PDF preview: the wrapper fills flex space; iframe is absolutely filled so
 * height:100% works (iframe % height is unreliable in nested flex without this).
 * clamp() keeps a usable minimum when the parent flex size is not yet resolved.
 */
body[data-page='program-module-file-preview'] .module-file-preview__pdf-wrap {
  position: relative;
  box-sizing: border-box;
  flex: 1 1 auto;
  /* At least half the viewport; flex:1 can grow to fill the card when the chain has height */
  min-height: max(18rem, 48vh);
  display: block;
  overflow: hidden;
}

body[data-page='program-module-file-preview'] .module-file-preview__pdf-frame {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: #fff;
}

body[data-page='program-module-file-preview'] .module-file-preview__external-wrap {
  flex: 1 1 auto;
  min-height: max(18rem, 48vh);
  align-self: stretch;
  width: 100%;
}

/* -------------------------------------------------------------------------- */
/* Admin — Question bank index (toolbar, outlined filters, DataTables footer) */
/* -------------------------------------------------------------------------- */

.question-bank-page .question-bank-card {
  background: #fff;
  border-radius: 12px;
}

/* DataTables + admin list tables — header row */
table.dataTable > thead > tr > th,
table.dataTable > thead > tr > td,
table.dataTable thead th,
table.dataTable thead td,
.admin-dt-list-page .admin-dt-table-wrap table > thead > tr > th,
.admin-dt-list-page .admin-dt-table-wrap table > thead > tr > td,
.admin-dt-list-page .admin-dt-table-wrap .table > thead.table-light > tr > th,
.admin-dt-list-page .admin-dt-table-wrap .table > thead.table-light > tr > td,
.program-create-page .program-batch-section .admin-dt-table-wrap table > thead > tr > th,
.program-create-page .program-batch-section .admin-dt-table-wrap table > thead > tr > td,
.program-create-page .program-batch-section .admin-dt-table-wrap .table > thead.table-light > tr > th,
.program-create-page .program-batch-section .admin-dt-table-wrap .table > thead.table-light > tr > td {
  background-color: var(--blue-light) !important;
  color: var(--blue-normal) !important;
  font-weight: 600;
}

/* Avoid spurious horizontal scroll (flex + DataTables width); keep vertical scroll for long lists */
.admin-dt-list-page .admin-dt-table-wrap {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  /* Bottom only: keeps left/right flush with toolbar + page heading (same card padding) */
  margin: 0 0 0.75rem;
  border: 1px solid #e0e0e0;
  padding: 0;
  padding-bottom: 10px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.admin-dt-list-page .admin-dt-table-wrap .dt-container {
  width: 100% !important;
  min-width: 0;
  overflow: visible;
}

.admin-dt-list-page .admin-dt-table-wrap table.dataTable {
  width: 100% !important;
  margin: 0 !important;
}

/* Rounded top corners on header row (table + border-radius clip) */
.admin-dt-list-page .admin-dt-table-wrap table.dataTable > thead > tr > th:first-child {
  border-top-left-radius: 9px;
}

.admin-dt-list-page .admin-dt-table-wrap table.dataTable > thead > tr > th:last-child {
  border-top-right-radius: 9px;
}

/* Centered columns: keep sort arrows after the title (overrides dt-type-numeric row-reverse) */
.admin-dt-list-page table.dataTable th.dt-center div.dt-column-header,
.admin-dt-list-page table.dataTable th.dt-center.dt-type-numeric div.dt-column-header,
.admin-dt-list-page table.dataTable th.dt-center.dt-type-date div.dt-column-header {
  flex-direction: row;
  justify-content: center;
}

.admin-dt-list-page table.dataTable th.dt-center,
.admin-dt-list-page table.dataTable td.dt-center,
.admin-dt-list-page table.dataTable th.dt-center.dt-type-numeric,
.admin-dt-list-page table.dataTable td.dt-center.dt-type-numeric {
  text-align: center;
}

/* Server-rendered Bootstrap tables in the same wrap (e.g. applications list) */
.admin-dt-list-page .admin-dt-table-wrap .table-responsive > table > thead > tr > th:first-child,
.admin-dt-list-page .admin-dt-table-wrap > table > thead > tr > th:first-child {
  border-top-left-radius: 9px;
}

.admin-dt-list-page .admin-dt-table-wrap .table-responsive > table > thead > tr > th:last-child,
.admin-dt-list-page .admin-dt-table-wrap > table > thead > tr > th:last-child {
  border-top-right-radius: 9px;
}

.question-bank-toolbar {
  display: flex;
  gap: 1rem;
}

.question-bank-header__top {
  width: 100%;
}

.question-bank-header__actions {
  flex-shrink: 0;
  margin-left: auto;
}

.question-bank-bulk-actions {
  padding-right: 0.75rem;
  margin-right: 0.25rem;
  border-right: 1px solid #d7e3f1;
}

.question-bank-header__actions:not(:has(.question-bank-bulk-actions)) .question-bank-add-btn,
.question-bank-header__actions .question-bank-bulk-actions:empty {
  border-right: none;
  padding-right: 0;
  margin-right: 0;
}

.question-bank-header__actions:not(:has(.question-bank-bulk-actions)) {
  gap: 0.5rem;
}

.question-bank-header__actions:not(:has(.question-bank-add-btn)) .question-bank-bulk-actions {
  border-right: none;
  padding-right: 0;
  margin-right: 0;
}

.question-bank-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  white-space: nowrap;
  border-radius: 5px;
  padding: 0.4rem 0.85rem;
}

.question-bank-action-btn__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.question-bank-action-btn.btn-outline-secondary {
  color: var(--blue-normal);
  border-color: #c5d4e8;
  background-color: #fff;
}

.question-bank-action-btn.btn-outline-secondary:hover,
.question-bank-action-btn.btn-outline-secondary:focus {
  color: var(--blue-normal-active);
  border-color: var(--blue-normal);
  background-color: #f4f8fc;
}

.question-bank-import-step__label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
}

.question-bank-import-step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background-color: var(--blue-normal);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  flex-shrink: 0;
}

.question-bank-import-step__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue-normal);
}

.question-bank-import-template-btn {
  width: 100%;
  justify-content: center;
  padding: 0.55rem 0.85rem;
}

.question-bank-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  white-space: nowrap;
  border-radius: 8px;
  padding: 0.4rem 1rem;
  background-color: var(--blue-normal);
  border-color: var(--blue-normal);
}

.question-bank-add-btn:hover,
.question-bank-add-btn:focus {
  background-color: var(--blue-normal-active);
  border-color: var(--blue-normal-active);
}

.question-bank-filters {
  border-color: #e8eef5 !important;
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.question-bank-filters .question-bank-search-wrap {
  flex: 1 1 220px;
  max-width: 360px;
}

@media (max-width: 767.98px) {
  .question-bank-header__actions {
    width: 100%;
    margin-left: 0;
  }

  .question-bank-bulk-actions {
    width: 100%;
    border-right: none;
    padding-right: 0;
    margin-right: 0;
    padding-bottom: 0.5rem;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid #e8eef5;
  }

  .question-bank-add-btn {
    width: 100%;
    justify-content: center;
  }

  /* Stack search + toolbar selects so they stay inside the card on narrow screens */
  .question-bank-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .question-bank-filters .question-bank-search-wrap,
  .question-bank-filters .admin-outlined-field--toolbar {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .question-bank-filters .admin-outlined-field--toolbar .admin-outlined-select {
    width: 100%;
    max-width: 100%;
  }
}

.question-bank-title {
  color: var(--dark-black);
}

.question-bank-toolbar__controls {
  flex: 1 1 auto;
  justify-content: flex-end;
}

.question-bank-search-wrap {
  position: relative;
  flex: 1 1 220px;
  max-width: 320px;
  min-width: 180px;
  box-sizing: border-box;
}

.question-bank-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--blue-normal);
  pointer-events: none;
}

.question-bank-search-input {
  display: block;
  width: 100%;
  border: none;
  border-radius: 8px;
  background: #f0f0f0;
  padding: 10px 14px 10px 42px;
  font-size: 15px;
  font-family: inherit;
  color: var(--dark-black);
  outline: none;
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.question-bank-search-input::placeholder {
  color: #8a8a8a;
}

.question-bank-search-input:focus {
  background: #ebebeb;
  box-shadow: 0 0 0 2px rgba(71, 82, 64, 0.2);
}

.admin-outlined-field--toolbar {
  flex: 0 0 auto;
  min-width: 132px;
  padding: 8px 10px 6px;
  max-width: 100%;
  box-sizing: border-box;
}

.admin-outlined-field--toolbar .admin-outlined-label {
  font-size: 11px;
}

.admin-outlined-field--toolbar .admin-outlined-select {
  padding: 2px 28px 2px 0;
  padding-left: 2px;
  font-size: 14px;
  background-position: right 4px center;
  background-size: 16px 16px;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/*
 * Mobile list filters: must come AFTER .question-bank-search-wrap /
 * .admin-outlined-field--toolbar so min-width / flex: 0 0 auto cannot win.
 * Native <select> intrinsic min-width otherwise blows past the card.
 */
@media (max-width: 767.98px) {
  .admin-dt-list-page.program-index-page,
  .admin-dt-list-page .program-index-card,
  .admin-dt-list-page .question-bank-header,
  .admin-dt-list-page .question-bank-filters {
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .admin-dt-list-page .program-index-card {
    overflow-x: hidden;
  }

  .admin-dt-list-page .question-bank-filters,
  .question-bank-filters {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    width: 100% !important;
  }

  .admin-dt-list-page .question-bank-filters > .question-bank-search-wrap,
  .admin-dt-list-page .question-bank-filters > .admin-outlined-field--toolbar,
  .question-bank-filters > .question-bank-search-wrap,
  .question-bank-filters > .admin-outlined-field--toolbar {
    flex: 0 0 auto !important;
    align-self: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .admin-dt-list-page .question-bank-filters .question-bank-search-input,
  .admin-dt-list-page .question-bank-filters .admin-outlined-select,
  .question-bank-filters .question-bank-search-input,
  .question-bank-filters .admin-outlined-select {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
}

.question-bank-add-link {
  white-space: nowrap;
  align-self: center;
  padding-bottom: 2px;
}

.question-bank-action-placeholder {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

.admin-dt-list-page .admin-dt-footer {
  margin-top: 1rem !important;
}

/* DataTables v2 uses .dt-container, .dt-paging, .dt-paging-button (not .dataTables_wrapper) */
.admin-dt-list-page .dt-container .dt-length select,
.admin-dt-list-page .dt-container .dt-length select.dt-input {
  border-radius: 6px;
  border: 1px solid #c4c4c4;
  padding: 4px 8px 4px 8px;
  font-size: 14px;
  background: #fff;
}

.admin-dt-list-page .dt-container .dt-info {
  font-size: 14px;
  color: #444;
  padding-top: 0.35em;
}

.admin-dt-list-page .admin-dt-list-footer .dt-info {
  padding: 0;
  line-height: 2.125rem;
}

/* Buttons live inside nav; gap on .dt-paging alone does not space them */
.admin-dt-list-page .dt-container .dt-paging {
  padding-top: 0;
}

.admin-dt-list-page .dt-container .dt-paging nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.admin-dt-list-page .dt-container .dt-paging .dt-paging-button {
  box-sizing: border-box;
  border-radius: 6px !important;
  border: 1px solid #d8d8d8 !important;
  background: #f5f5f5 !important;
  background-image: none !important;
  color: #3a3a3a !important;
  margin: 0 0 0 0 !important;
  min-width: 2.125rem;
  min-height: 2.125rem;
  padding: 0 0.4rem;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: none !important;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
}

.admin-dt-list-page .dt-container .dt-paging .dt-paging-button:hover {
  background: #ebebeb !important;
  background-image: none !important;
  border-color: #c4c4c4 !important;
  color: #222 !important;
  box-shadow: none !important;
}

.admin-dt-list-page .dt-container .dt-paging .dt-paging-button.current,
.admin-dt-list-page .dt-container .dt-paging .dt-paging-button.current:hover {
  background: var(--blue-normal) !important;
  background-image: none !important;
  border-color: var(--blue-normal) !important;
  color: #fff !important;
}

.admin-dt-list-page .dt-container .dt-paging .dt-paging-button.disabled,
.admin-dt-list-page .dt-container .dt-paging .dt-paging-button.disabled:hover,
.admin-dt-list-page .dt-container .dt-paging .dt-paging-button.disabled:active {
  opacity: 0.45;
  cursor: default;
  background: #f5f5f5 !important;
  background-image: none !important;
  color: #666 !important;
  border-color: #e0e0e0 !important;
  box-shadow: none !important;
}

.admin-dt-list-page .dt-container .dt-paging .ellipsis {
  display: inline-block;
  border: none;
  background: none;
  min-width: auto;
  padding: 0 0.35em;
  color: #555;
  cursor: default;
}

/* Footer row: “Items per page” + label alignment (all admin list tables) */
.admin-dt-list-page .admin-dt-list-footer .dt-length {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 14px;
  color: #444;
  white-space: nowrap;
}

/* Match reference: table header fill + subtle row lines */
.question-bank-page .question-bank-table thead th {
  font-size: 14px;
  border-bottom: 1px solid #d9d9d9;
  /* padding: 0.65rem 0.75rem; */
  vertical-align: middle;
}

.question-bank-page .question-bank-col-no,
.question-bank-page .question-bank-table thead th.question-bank-col-no,
.question-bank-page .question-bank-table thead th:first-child,
.question-bank-page .admin-dt-table-wrap table.dataTable.table thead th.question-bank-col-no,
.question-bank-page .admin-dt-table-wrap table.dataTable.table thead th:first-child,
.question-bank-page .admin-dt-table-wrap table.dataTable.table tbody td.question-bank-col-no,
.question-bank-page .admin-dt-table-wrap table.dataTable.table tbody td:first-child {
  text-align: center !important;
}

.question-bank-page .question-bank-table.table-hover tbody tr:hover > * {
  --bs-table-hover-bg: #f6f6f6;
}

.question-bank-page .admin-dt-table-wrap table.dataTable.table tbody td {
  font-size: 15px;
  border-color: #e6e6e6;
  /* padding: 0.6rem 0.75rem; */
  vertical-align: middle;
}

/* Question column: single-line ellipsis so long prompts keep row height tidy */
.question-bank-page .question-bank-table {
  table-layout: fixed;
}

.question-bank-page .question-bank-table .question-bank-col-question {
  width: 36%;
  max-width: 36%;
  text-align: start;
}

.question-bank-page .question-bank-cell-question {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.question-bank-page .question-bank-col-module,
.question-bank-page .question-bank-col-program {
  width: 18%;
}

.question-bank-page .question-bank-col-action {
  width: 88px;
  white-space: nowrap;
}

@media (max-width: 991.98px) {
  .question-bank-page .question-bank-table .question-bank-col-question,
  .question-bank-page .admin-dt-table-wrap table.dataTable .question-bank-col-question {
    width: auto;
    max-width: none;
    min-width: 0;
  }

  .question-bank-page .admin-dt-table-wrap table.dataTable .question-bank-col-no {
    width: 52px;
  }

  .question-bank-page .admin-dt-table-wrap table.dataTable .question-bank-col-action {
    width: 88px;
    white-space: nowrap;
  }
}

/* Instructor list — program assigned column */
.instructor-list-page #instructors-table {
  table-layout: fixed;
}

.instructor-list-page .instructor-col-programs {
  width: 22%;
  max-width: 22%;
}

.instructor-programs-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  max-width: 100%;
}

.instructor-programs-cell__primary {
  display: inline-block;
  max-width: min(11rem, 100%);
  vertical-align: middle;
}

.instructor-programs-cell__more {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  border: 0;
  padding: 0.25em 0.55em;
}

.instructor-programs-popover-list {
  text-align: start;
  max-width: 16rem;
}

.instructor-programs-popover-list li + li {
  margin-top: 0.2rem;
}

.popover .instructor-programs-popover-list {
  font-size: 0.875rem;
}

.category-programs-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  max-width: 100%;
  gap: 0.35rem 0.4rem;
}

.category-programs-pills__pill {
  display: inline-flex;
  align-items: center;
  max-width: 14rem;
  padding: 0.28rem 0.7rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--blue-normal);
  background: var(--blue-light, #eef2f8);
  border: 1px solid rgba(0, 34, 88, 0.12);
  border-radius: 999px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-programs-pills__toggle {
  display: inline;
  padding: 0;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--blue-normal);
  background: transparent;
  border: 0;
  text-decoration: underline;
  cursor: pointer;
}

.category-programs-pills__toggle:hover,
.category-programs-pills__toggle:focus {
  color: var(--blue-normal-active, var(--blue-normal));
  text-decoration: underline;
  background: transparent;
}

/* -------------------------------------------------------------------------- */
/* Responsive — admin shell, auth, tables (viewport meta required in layouts) */
/* -------------------------------------------------------------------------- */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Mobile: off-canvas admin nav; full-width main column */
@media (max-width: 991.98px) {
  .dashboard-main {
    padding: 8px 10px;
  }

  .content-right {
    padding: 12px;
  }

  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1050;
    width: min(20.5rem, 86vw);
    max-width: 100%;
    padding: max(0.75rem, env(safe-area-inset-top, 0px)) 0.5rem
      max(0.75rem, env(safe-area-inset-bottom, 0px)) 0.75rem;
    background: var(--blue-normal);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.18);
    transform: translateX(-102%);
    transition: transform 0.28s ease;
    -webkit-overflow-scrolling: touch;
  }

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

  .admin-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(11, 10, 10, 0.45);
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
  }

  .admin-sidebar .nav-left {
    padding: 0 0 0 0;
  }

  .nav-left__brand {
    align-items: center;
  }

  .admin-sidebar-close {
    margin-top: 0;
  }

  .nav-logo {
    margin-bottom: 12px;
  }

  .nav-menu a {
    font-size: 16px;
  }

  .nav-menu li ul a {
    font-size: 15px;
  }

  .welcome-section h2 {
    font-size: clamp(1.05rem, 4.2vw, 1.45rem);
    line-height: 1.3;
  }

  .head-profile-section .dropdown:not(.language-switcher) .btn.dropdown-toggle {
    max-width: min(100%, 10rem);
  }

  .head-profile-section .dropdown:not(.language-switcher) .btn.dropdown-toggle span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
  }
}

/* Desktop: no backdrop, sidebar in flow */
@media (min-width: 992px) {
  .admin-sidebar-backdrop {
    display: none !important;
  }
}

/* Login & guest pages */
@media (max-width: 991.98px) {
  .login-page-language-switcher {
    top: 0.75rem;
    right: 0.75rem;
  }

  .login-main {
    min-height: 100%;
    background-size: cover;
  }

  .login-container {
    flex-direction: column;
    padding: 28px 1.25rem 40px;
    align-items: stretch;
    justify-content: flex-start;
  }

  .login-left {
    width: 100%;
    text-align: center;
    align-items: center;
  }

  .login-left img {
    width: 120px;
  }

  .login-left h1 {
    font-size: clamp(1.75rem, 6.5vw, 2.75rem);
  }

  .login-right {
    width: 100%;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
    padding: 28px 1.25rem 36px;
  }

  .login-right h2 {
    font-size: 1.4rem;
    margin-bottom: 24px;
  }
}

@media (max-width: 575.98px) {
  .login-right {
    padding: 20px 1rem 28px;
    border-radius: 14px;
  }

  .dashboard-main {
    padding: 4px 6px;
  }

  .content-right {
    padding: 10px;
  }
}

/* Program / module list cards already use .table-responsive */
.page-content .table-responsive {
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

/* -------------------------------------------------------------------------- */
/* Marketing banner admin form (Add / Edit)                                   */
/* -------------------------------------------------------------------------- */

.marketing-banner-form__header {
  align-items: center;
}

.marketing-banner-form__status .admin-toggle-heading {
  margin-bottom: 0;
}

.marketing-banner-dropzone {
  position: relative;
  display: block;
  border: 2px dashed #d0d4cc;
  border-radius: 8px;
  background: var(--blue-light);
  padding: 36px 20px;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
  overflow: hidden;
}

.marketing-banner-dropzone:hover,
.marketing-banner-dropzone.is-dragover {
  border-color: var(--blue-normal);
  background: var(--green-light);
}

.marketing-banner-dropzone.has-preview {
  padding: 0;
  background: #f0f2f5;
  border-style: solid;
  border-color: #e4e6e1;
  cursor: default;
}

.marketing-banner-dropzone.has-preview:hover,
.marketing-banner-dropzone.has-preview.is-dragover {
  border-color: var(--blue-normal);
  background: #f0f2f5;
}

.marketing-banner-dropzone__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.marketing-banner-dropzone__empty {
  display: block;
  margin: 0;
  cursor: pointer;
}

.marketing-banner-dropzone__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.marketing-banner-dropzone__icon {
  width: 40px;
  height: 40px;
  color: var(--blue-normal);
}

.marketing-banner-dropzone__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--dark-black);
}

.marketing-banner-dropzone__hint {
  font-size: 13px;
  color: #6b6f66;
}

.marketing-banner-dropzone__preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  width: 100%;
}

.marketing-banner-dropzone__preview-img {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  background: #f0f2f5;
}

.marketing-banner-dropzone__file-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 200px;
  padding: 28px 20px;
}

.marketing-banner-dropzone__file-icon {
  width: 40px;
  height: 40px;
  color: var(--blue-normal);
}

.marketing-banner-dropzone__file-name {
  max-width: 90%;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark-black);
}

.marketing-banner-dropzone__actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.marketing-banner-dropzone__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 1px solid #e4e6e1;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  color: var(--dark-black);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.marketing-banner-dropzone__action svg {
  width: 18px;
  height: 18px;
}

.marketing-banner-dropzone__action--update:hover {
  border-color: var(--blue-normal);
  color: var(--blue-normal);
  background: var(--blue-light);
}

.marketing-banner-dropzone__action--remove {
  color: #c0392b;
}

.marketing-banner-dropzone__action--remove:hover {
  border-color: #c0392b;
  background: #fdecea;
  color: #a93226;
}

.marketing-banner-file-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.marketing-banner-file-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #e4e6e1;
  border-radius: 8px;
  background: #fff;
}

.marketing-banner-file-row__icon {
  display: flex;
  color: var(--blue-normal);
  flex-shrink: 0;
}

.marketing-banner-file-row__icon svg {
  width: 22px;
  height: 22px;
}

.marketing-banner-file-row__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark-black);
  max-width: 100%;
}

.marketing-banner-file-row__size {
  font-size: 12px;
}

.marketing-banner-file-row__progress {
  height: 6px;
  border-radius: 999px;
  background: #e8ebe4;
  overflow: hidden;
}

.marketing-banner-file-row__progress-inner {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: #2b6cb0;
  transition: width 0.1s linear;
}

.marketing-banner-file-row__remove svg {
  width: 20px;
  height: 20px;
}

/* -------------------------------------------------------------------------- */
/* Marketing banner — view (preview, same tab pattern as module file preview) */
/* -------------------------------------------------------------------------- */

.marketing-banner-show-card__body {
  min-height: 0;
}

.marketing-banner-show__meta-card {
  border: 1px solid #e4e6e1;
  border-radius: 10px;
  background: #fafbfa;
  padding: 12px 14px;
  height: 100%;
}

.marketing-banner-show__meta-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b6f66;
  margin-bottom: 4px;
}

.marketing-banner-show__meta-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark-black, #0b0a0a);
}

.marketing-banner-show__preview-heading {
  letter-spacing: 0.04em;
}

.marketing-banner-show__preview .marketing-banner-show__title {
  color: var(--dark-black, #0b0a0a);
}

.marketing-banner-show__img-wrap {
  max-height: min(70vh, 520px);
}

.marketing-banner-show__preview-img {
  display: block;
  max-width: 100%;
  max-height: min(70vh, 520px);
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.marketing-banner-show__pdf-wrap.module-file-preview__pdf-wrap {
  min-height: 55vh;
}

.marketing-banner-show__pdf-wrap .module-file-preview__pdf-frame {
  min-height: 55vh;
}

.marketing-banner-show__empty {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

body[data-page="marketing-banners-show"] .admin-page-stack .marketing-banner-show-card.program-details-card {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body[data-page="marketing-banners-show"] .marketing-banner-show-card__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

body[data-page="marketing-banners-show"] .marketing-banner-show__preview.module-file-preview--tabs {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

body[data-page="marketing-banners-show"] .marketing-banner-show__preview .module-file-preview__tabs {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

body[data-page="marketing-banners-show"] .marketing-banner-show__preview .module-file-preview__tab-content > .tab-pane.active.show {
  overflow: auto;
}

/* -------------------------------------------------------------------------- */
/* Instructor — view                                                         */
/* -------------------------------------------------------------------------- */

body[data-page="instructor-show"] .admin-page-stack > .instructor-show-page {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.instructor-show-card {
  --instructor-show-border: #e3e6e0;
  --instructor-show-shadow: 0 2px 14px rgba(11, 10, 10, 0.09), 0 1px 4px rgba(11, 10, 10, 0.06);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--instructor-show-border);
  box-shadow: var(--instructor-show-shadow);
}

.instructor-show-card__hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1.35rem 1.5rem;
  background: linear-gradient(135deg, #f8f9f6 0%, #fff 55%, var(--yellow-light, #fbf7eb) 100%);
  border-bottom: 1px solid var(--instructor-show-border);
}

.instructor-show-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  flex: 1 1 auto;
}

.instructor-show-profile__avatar {
  width: 4.25rem;
  height: 4.25rem;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--blue-normal);
  background: var(--yellow-light, #fbf7eb);
  border: 2px solid var(--yellow-normal, #d4af37);
  box-shadow: 0 2px 8px rgba(0, 45, 98, 0.08);
}

.instructor-show-profile__name {
  margin: 0 0 0.2rem;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--blue-normal);
  font-family: Montserrat, system-ui, sans-serif;
}

.instructor-show-profile__subtitle {
  font-size: 0.875rem;
  color: #667085;
  font-weight: 500;
}

.instructor-show-profile__code {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--blue-normal);
  background: rgba(0, 45, 98, 0.07);
}

.instructor-show-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.instructor-show-card__body {
  min-height: 0;
  padding: 1.35rem 1.5rem 1.5rem;
  overflow: auto;
}

.instructor-show-meta {
  margin-bottom: 1.5rem;
}

.instructor-show__meta-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border: 1px solid var(--instructor-show-border);
  border-radius: 10px;
  background: #fff;
  padding: 1rem 1.05rem;
  height: 100%;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.instructor-show__meta-card:hover {
  border-color: #d0d5cb;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.instructor-show__meta-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  color: var(--blue-normal);
  background: var(--yellow-light, #fbf7eb);
}

.instructor-show__meta-icon [data-lucide] {
  display: block;
}

.instructor-show__meta-content {
  min-width: 0;
  flex: 1 1 auto;
}

.instructor-show__meta-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6b6f66;
  margin-bottom: 0.25rem;
}

.instructor-show__meta-value {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--dark-black, #0b0a0a);
}

.instructor-show__meta-link {
  color: var(--blue-normal);
  text-decoration: none;
}

.instructor-show__meta-link:hover {
  color: var(--blue-normal-active);
  text-decoration: underline;
}

.instructor-show__meta-value .instructor-account-status {
  margin-top: 0.1rem;
}

.instructor-show__block {
  border: 1px solid var(--instructor-show-border);
  border-radius: 10px;
  background: #fafbfa;
  padding: 1.15rem 1.25rem 1.25rem;
}

.instructor-show__block-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.instructor-show__heading {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-normal);
  font-family: Montserrat, system-ui, sans-serif;
}

.instructor-show__count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue-normal);
  background: #fff;
  border: 1px solid var(--instructor-show-border);
}

.instructor-show__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 2rem 1rem;
  text-align: center;
  color: #667085;
  font-size: 0.875rem;
  background: #fff;
  border: 1px dashed #d0d5cb;
  border-radius: 8px;
}

.instructor-show__empty [data-lucide] {
  color: #98a2b3;
  opacity: 0.85;
}

.instructor-show-programs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 0.65rem;
}

.instructor-show-programs__item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--instructor-show-border);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--dark-black, #0b0a0a);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.instructor-show-programs__item [data-lucide] {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: var(--blue-normal);
}

body[data-page="instructor-show"] .admin-page-stack .instructor-show-card.program-details-card {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body[data-page="instructor-show"] .instructor-show-card__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

@media (max-width: 575.98px) {
  .instructor-show-card__hero {
    padding: 1.1rem 1rem;
  }

  .instructor-show-card__body {
    padding: 1rem;
  }

  .instructor-show-card__actions {
    width: 100%;
  }

  .instructor-show-card__actions .instructor-show-card__btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .instructor-show-programs {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------------------- */
/* Global loader (AJAX/DataTables/Axios)                                      */
/* -------------------------------------------------------------------------- */

.global-loader {
  position: fixed;
  inset: 0;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  z-index: 11000; /* above bootstrap modals */
  display: grid;
  place-items: center;
  pointer-events: auto;
  touch-action: none;
}

/* Full-page overlay: dim entire viewport, center GIF + label (no small card) */
.global-loader:not(.global-loader--local) .global-loader__backdrop {
  z-index: 0;
  background: rgba(248, 250, 246, 0.88);
  backdrop-filter: blur(8px);
}

.global-loader:not(.global-loader--local) .global-loader__panel {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  height: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: min(48px, 6vw);
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  text-align: center;
}

.global-loader:not(.global-loader--local) .global-loader__text {
  font-size: 16px;
  color: #1a2416;
  max-width: 28rem;
  line-height: 1.45;
}

.global-loader:not(.global-loader--local) .global-loader__gif {
  /* Wide dot-strip GIF: size by width so it reads at “original” scale on full page */
  width: min(500px, 90vw);
  height: auto;
  max-height: min(200px, 30vh);
  object-fit: contain;
}

.global-loader.global-loader--local {
  position: absolute;
  inset: 0;
  z-index: 30;
}

.global-loader[hidden] {
  display: none !important;
}

.global-loader__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(11, 10, 10, 0.28);
  backdrop-filter: blur(3px);
}

.global-loader.global-loader--local .global-loader__backdrop {
  background: rgba(11, 10, 10, 0.18);
  backdrop-filter: blur(2px);
}

.global-loader__panel {
  position: relative;
  z-index: 1;
  min-width: 220px;
  max-width: min(92vw, 360px);
  padding: 20px 22px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(228, 230, 225, 0.9);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
}

.global-loader.global-loader--local .global-loader__panel {
  min-width: 190px;
  padding: 14px 16px 12px;
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
}

/* GIF only — no extra frame; scale up so dots stay visible */
.global-loader__gif {
  display: block;
  flex-shrink: 0;
  width: min(320px, 82vw);
  height: auto;
  max-height: min(120px, 22vh);
  object-fit: contain;
}

.global-loader__spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(18, 79, 58, 0.22);
  border-top-color: var(--blue-normal, #16a34a);
  animation: global-loader-spin 0.7s linear infinite;
  flex: 0 0 auto;
}

.global-loader__text {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: #0b0a0a;
}

@keyframes global-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Hide DataTables default "Processing..." overlay */
div.dataTables_processing,
div.dt-processing,
.dt-processing {
  display: none !important;
}


.banner-default-btn.btn {
  /* min-height: 32px; */
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 2px;
  background-color: rgba(132, 180, 87, 0.08);
  color: #214d17;
}

.banner-default-btn.btn:hover {
background-color: rgba(172, 159, 160, 0.08);
color: #214d17;
}

/* -------------------------------------------------------------------------- */
/* Admin — Program applications (student / new applicant lists)               */
/* -------------------------------------------------------------------------- */

.applications-page__hint {
  max-width: 42rem;
  line-height: 1.45;
}

.applications-page__filters .question-bank-search-wrap {
  min-width: 12rem;
  flex: 1 1 12rem;
  max-width: 22rem;
}

.applications-page__filters .question-bank-search-input {
  width: 100%;
}

/* Keep toolbar/filters viewport-wide; table scrolls inside card body only */
.applications-page.admin-dt-list-page {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  overflow-x: hidden;
}

.applications-page .program-index-card {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  overflow: hidden;
}

.applications-page__header {
  flex-shrink: 0;
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.applications-page .program-page-header,
.applications-page__toolbar {
  min-width: 0;
  max-width: 100%;
}

.applications-page__filters {
  min-width: 0;
  max-width: 100%;
  flex: 0 1 auto;
}

.applications-page .program-index-card__body {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.applications-page .admin-dt-table-wrap {
  max-width: 100%;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.applications-page .admin-dt-table-wrap .dt-container {
  max-width: none;
  min-width: 100%;
}

@media (min-width: 992px) {
  .applications-page__toolbar {
    align-items: flex-start;
  }

  .applications-page__filters {
    justify-content: flex-end;
    margin-left: auto;
  }

  .applications-page .admin-outlined-field--toolbar {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    min-width: 132px;
  }
}

.applications-tabs {
  --applications-tab-olive: var(--blue-normal);
  --applications-tab-inactive-bg: #f8f9fa;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  padding: 0;
  background: transparent;
  border: none;
}

.applications-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid var(--applications-tab-olive);
  background: var(--applications-tab-inactive-bg);
  color: var(--applications-tab-olive);
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
  position: relative;
}

.applications-tab__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  flex-shrink: 0;
  align-self: center;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: #c62828;
}

.applications-tab--active .applications-tab__count {
  background: #ff5252;
  color: #fff;
}

.applications-tab + .applications-tab {
  margin-left: -1px;
}

.applications-tab:first-child {
  border-radius: 6px 0 0 6px;
}

.applications-tab:last-child {
  border-radius: 0 6px 6px 0;
}

.applications-tab svg,
.applications-tab [data-lucide] {
  flex-shrink: 0;
  color: inherit;
}

.applications-tab svg {
  stroke: currentColor;
}

.applications-tab:not(.applications-tab--active):hover,
.applications-tab:not(.applications-tab--active):focus-visible {
  background: #eef0ed;
  color: var(--applications-tab-olive);
  z-index: 0;
}

.applications-tab--active {
  position: relative;
  z-index: 1;
  background: var(--applications-tab-olive);
  color: #fff;
  border-color: var(--applications-tab-olive);
}

.applications-tab--active:hover,
.applications-tab--active:focus-visible {
  background: var(--blue-normal-hover);
  color: #fff;
  border-color: var(--blue-normal-hover);
}

button.applications-tab {
  cursor: pointer;
  font-family: inherit;
  line-height: inherit;
  appearance: none;
  -webkit-appearance: none;
}

/* User Management — page tabs (Application Students / New Applications) */
.applications-tabs--page {
  display: flex;
  width: 100%;
  max-width: 100%;
  flex-wrap: nowrap;
}

@media (max-width: 991.98px) {
  /* Let the page scroll as one surface — nested card scroll is too short under stacked filters */
  .applications-page.admin-dt-list-page,
  .applications-page .program-index-card {
    flex: 0 0 auto !important;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .applications-page .program-index-card__body {
    flex: 0 0 auto;
    overflow: visible;
  }

  .applications-tabs--page {
    border: 1px solid var(--applications-tab-olive);
    border-radius: 8px;
    overflow: hidden;
    background: var(--applications-tab-inactive-bg);
  }

  .applications-tabs--page .applications-tab {
    flex: 1 1 0;
    min-width: 0;
    margin-left: 0 !important;
    border: none;
    border-radius: 0 !important;
    padding: 0.6rem 0.75rem;
    font-size: 0.8125rem;
    line-height: 1.25;
    white-space: nowrap;
    text-align: center;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
  }

  .applications-tabs--page .applications-tab span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .applications-tabs--page .applications-tab svg,
  .applications-tabs--page .applications-tab [data-lucide] {
    width: 16px;
    height: 16px;
  }

  .applications-tabs--page .applications-tab + .applications-tab {
    border-left: 1px solid var(--applications-tab-olive);
  }

  .applications-tabs--page .applications-tab--active {
    border-left-color: var(--applications-tab-olive);
  }

  .applications-page__toolbar {
    flex-direction: column;
    align-items: stretch !important;
  }

  .applications-page__filters {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .applications-page__filters .question-bank-search-wrap,
  .applications-page__filters .admin-outlined-field--toolbar {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex: 1 1 auto;
  }

  .applications-page .admin-outlined-field--toolbar {
    flex: 1 1 auto;
    min-width: 0;
  }

  .applications-page .admin-outlined-field--toolbar .admin-outlined-select {
    width: 100%;
    max-width: 100%;
  }
}

body[data-page='student-applications'] .page-content,
body[data-page='student-applications'] .content-right {
  overflow-x: hidden;
  max-width: 100%;
}

body[data-page='student-applications'] .page-content {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Admin mobile: stop wide tables from stretching filters; fix native select picker */
@media (max-width: 991.98px) {
  .content-right .admin-outlined-field {
    width: 100%;
    max-width: 100%;
    min-width: 0 !important;
    box-sizing: border-box;
  }

  .content-right .admin-outlined-field .admin-outlined-select,
  .content-right .admin-outlined-field .admin-outlined-input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* appearance:none + custom arrow breaks select popup width/position on mobile */
  .content-right .admin-outlined-select {
    appearance: menulist;
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
    background-image: none !important;
    padding-right: 1.5rem;
    font-size: 16px;
  }

  .admin-dt-list-page .program-index-card__body {
    contain: inline-size;
  }

  .applications-page .program-index-card__body {
    contain: none;
  }

  .admin-dt-list-page .admin-outlined-field--toolbar {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .admin-dt-list-page .admin-dt-table-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .admin-dt-list-page .admin-dt-table-wrap .dt-container {
    overflow: visible;
    max-width: none;
    min-width: 100%;
  }

  .admin-dt-list-page .dataTables_scroll,
  .admin-dt-list-page .dataTables_scrollHead,
  .admin-dt-list-page .dataTables_scrollBody {
    max-width: 100%;
  }
}

@media (max-width: 575.98px) {
  .applications-tabs--page .applications-tab {
    padding: 0.55rem 0.45rem;
    font-size: 0.75rem;
    gap: 0.3rem;
  }
}

/* Locale segmented tabs — active = blue (matches student list / applications tabs) */
.admin-locale-tabs-field__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 400;
  color: #6c757d;
  margin-bottom: 0.5rem;
}

.applications-tabs--locale {
  border: 1px solid var(--blue-normal);
  border-radius: 6px;
  overflow: hidden;
}

.applications-tabs--locale .applications-tab {
  gap: 0.35rem;
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  background: var(--applications-tab-inactive-bg);
  color: var(--applications-tab-olive);
  border-color: var(--applications-tab-olive);
}

.applications-tabs--locale .applications-tab:not(.applications-tab--active):hover,
.applications-tabs--locale .applications-tab:not(.applications-tab--active):focus-visible {
  background: #eef0ed;
  color: var(--applications-tab-olive);
  border-color: var(--applications-tab-olive);
  z-index: 0;
}

.applications-tabs--locale .applications-tab--active {
  position: relative;
  z-index: 1;
  background: var(--applications-tab-olive);
  color: #fff;
  font-weight: 600;
  border-color: var(--applications-tab-olive);
}

.applications-tabs--locale .applications-tab--active:hover,
.applications-tabs--locale .applications-tab--active:focus-visible {
  background: var(--blue-normal-hover);
  color: #fff;
  border-color: var(--blue-normal-hover);
}

.admin-locale-panels,
.marketing-banner-locale-panels {
  margin-top: 0.75rem;
}

.applications-contact-cell {
  line-height: 1.4;
  max-width: 14rem;
}

.applications-student-cell__name {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.applications-docs-pending-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #c62828;
  box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.2);
}

.applications-docs-pending-badge {
  font-size: 0.6rem;
  font-weight: 600;
  color: #c62828;
  margin-top: 0.2rem;
}

.applications-repeat-badge {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--blue-normal);
  margin-top: 0.2rem;
}

.applications-dt-table thead th {
  font-weight: 600;
}

.applications-account-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  background: #fff;
  color: #374151;
}

.applications-account-pill__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.applications-account-pill--active .applications-account-pill__dot {
  background: #22c55e;
}

.applications-account-pill--inactive .applications-account-pill__dot {
  background: #ef4444;
}

.applications-account-pill--pending .applications-account-pill__dot {
    background: #9ca3af;
}

.applications-account-pill--rejected .applications-account-pill__dot {
    background: #dc2626;
}

.applications-view-link {
  color: var(--blue-normal);
  border-radius: 8px;
  min-width: 2.25rem;
  min-height: 2.25rem;
}

.applications-view-link:hover {
  background: var(--green-light);
  color: var(--blue-normal-active);
}

.applications-actions-toggle {
  color: var(--blue-normal);
  border: 0;
  background: transparent;
  border-radius: 8px;
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0;
  line-height: 1;
  box-shadow: none;
}

.applications-actions-toggle:hover,
.applications-actions-toggle:focus-visible,
.applications-actions-toggle.show {
  background: var(--green-light);
  color: var(--blue-normal-active);
  box-shadow: none;
}

.applications-actions-menu {
  min-width: 10.5rem;
  padding: 0.45rem;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  z-index: 1080;
}

.applications-actions-menu > li + li {
  margin-top: 0.3rem;
}

.applications-actions-menu .dropdown-item.applications-actions-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  margin: 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
}

.applications-actions-menu .dropdown-item.applications-actions-btn:hover,
.applications-actions-menu .dropdown-item.applications-actions-btn:focus,
.applications-actions-menu .dropdown-item.applications-actions-btn:active {
  text-decoration: none;
}

.applications-actions-menu .dropdown-item.applications-actions-btn svg {
  flex-shrink: 0;
}

.applications-actions-btn--accept {
  color: #166534;
  background: #ecfdf3;
  border-color: #bbf7d0;
}

.applications-actions-btn--accept:hover,
.applications-actions-btn--accept:focus,
.applications-actions-btn--accept:active {
  color: #14532d;
  background: #dcfce7;
  border-color: #86efac;
}

.applications-actions-btn--reject {
  color: #b91c1c;
  background: #fef2f2;
  border-color: #fecaca;
}

.applications-actions-btn--reject:hover,
.applications-actions-btn--reject:focus,
.applications-actions-btn--reject:active {
  color: #991b1b;
  background: #fee2e2;
  border-color: #fca5a5;
}

.applications-actions-btn--view {
  color: var(--blue-normal);
  background: #eff6ff;
  border-color: #bfdbfe;
}

.applications-actions-btn--view:hover,
.applications-actions-btn--view:focus,
.applications-actions-btn--view:active {
  color: var(--blue-normal-active);
  background: #dbeafe;
  border-color: #93c5fd;
}

.applications-refund-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.55rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--blue-normal);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  white-space: nowrap;
  border-radius: 6px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.applications-refund-link:hover,
.applications-refund-link:focus-visible {
  color: var(--blue-normal-active);
  background: var(--green-light);
  text-decoration: underline;
}

.applications-refund-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
  color: #166534;
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  white-space: nowrap;
  cursor: default;
  user-select: none;
}

.applications-dt-col--refund-action {
  min-width: 5.5rem;
  white-space: nowrap;
  text-align: center;
  vertical-align: middle;
}

.applications-dt-col--view-details {
  min-width: 2.75rem;
  white-space: nowrap;
  text-align: center;
  vertical-align: middle;
}

.applications-dt-col--select {
  width: 2.75rem;
  min-width: 2.75rem;
  max-width: 2.75rem;
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
  text-align: center !important;
  vertical-align: middle !important;
}

.applications-dt-table thead th.applications-dt-col--select,
.applications-dt-table tbody td.applications-dt-col--select {
  text-align: center !important;
}

.applications-dt-table .applications-select-check {
  float: none;
  position: static;
  display: inline-block;
  vertical-align: middle;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  padding: 0;
  cursor: pointer;
}

.applications-dt-table .applications-row-check-na {
  display: inline-block;
  width: 1.05rem;
  line-height: 1.05rem;
  text-align: center;
  vertical-align: middle;
  font-size: 0.875rem;
  color: #9ca3af;
  user-select: none;
}

.applications-bulk-bar {
  padding: 0.7rem 0.9rem;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #eff6ff;
}

.applications-bulk-bar__count {
  font-size: 0.875rem;
  color: #1e3a8a;
}

.applications-bulk-bar__clear {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--blue-normal);
  text-decoration: none;
}

.applications-bulk-bar__clear:hover,
.applications-bulk-bar__clear:focus-visible {
  color: var(--blue-normal-active);
  text-decoration: underline;
}

.applications-bulk-bar__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  border-radius: 8px;
}

.applications-bulk-bar__btn--accept {
  color: #166534;
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
}

.applications-bulk-bar__btn--accept:hover,
.applications-bulk-bar__btn--accept:focus-visible {
  color: #14532d;
  background: #dcfce7;
  border-color: #86efac;
}

.applications-bulk-bar__btn--reject {
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.applications-bulk-bar__btn--reject:hover,
.applications-bulk-bar__btn--reject:focus-visible {
  color: #991b1b;
  background: #fee2e2;
  border-color: #fca5a5;
}

.applications-dt-table td.applications-dt-col--refund-action,
.applications-dt-table td.applications-dt-col--view-details {
  overflow: visible;
  text-align: center;
}

.applications-dt-action-na {
  display: inline-block;
  min-width: 1ch;
}

/* Application detail — pay-later mark-as-done card (after basic details) */
.applications-show-section--pay-later {
  margin-top: 1.25rem;
}

.applications-pay-later-card {
  margin-top: 0;
}

.applications-pay-later-mark-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px solid #e8ebe4;
}

.applications-pay-later-mark-row__label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark-black, #0b0a0a);
  line-height: 1.35;
  flex-shrink: 0;
}

a.applications-pay-later-invoice-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--blue-normal, #002147);
  text-decoration: none;
}

a.applications-pay-later-invoice-link:hover,
a.applications-pay-later-invoice-link:focus-visible {
  color: var(--blue-normal-active, #0c3d79);
  text-decoration: underline;
}

a.applications-pay-later-invoice-link [data-lucide],
a.applications-pay-later-invoice-link svg {
  flex-shrink: 0;
}

.applications-pay-later-toggle.toggle-switch {
  position: relative;
  display: block;
  width: 34px;
  height: 20px;
  padding: 0;
  margin: 0;
  line-height: 0;
}

.applications-pay-later-toggle:not(.toggle-switch--static) {
  cursor: pointer;
}

.applications-pay-later-toggle--busy {
  opacity: 0.65;
  pointer-events: none;
}

.applications-pay-later-toggle input:checked + .toggle-switch-slider {
  background-color: var(--blue-normal, #5d6d54);
}

.applications-pay-later-toggle input:checked + .toggle-switch-slider::before {
  background-color: #fff;
}

/* Application detail — resend approval email row */
.applications-resend-email-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px solid #e8ebe4;
}

.applications-resend-email-row__main {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1 1 12rem;
}

.applications-resend-email-row__label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark-black, #0b0a0a);
  line-height: 1.35;
}

.applications-resend-email-row__email {
  font-size: 0.8125rem;
  font-weight: 400;
  color: #6b7280;
  line-height: 1.35;
}

.applications-resend-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--blue-normal, #0f4c97);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.applications-resend-email-btn:hover,
.applications-resend-email-btn:focus-visible {
  color: var(--blue-normal-active, #0c3d79);
  text-decoration: underline;
}

.applications-resend-email-btn .lucide-action {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Application detail — payment history */
.applications-show-section--payment-history {
  margin-top: 1.25rem;
}

.applications-payment-history {
  background: linear-gradient(180deg, #fafbf9 0%, #fff 48%);
  border-color: #e2e8de;
  padding: 0;
  overflow: hidden;
}

.applications-payment-history__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 1.15rem 0 1rem;
  border-bottom: 1px solid #e8ebe4;
  background: #fff;
}

@media (min-width: 768px) {
  .applications-payment-history__head {
    padding: 1.25rem 0 1.05rem;
  }
}

.applications-payment-history__title {
  margin-bottom: 0 !important;
}

.applications-payment-history__summary {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  padding: 0.35rem 0.75rem 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--green-light, #eff0ee);
  border: 1px solid #dfe5d8;
}

.applications-payment-history__summary-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue-normal, #475240);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.applications-payment-history__table-wrap {
  /* padding: 0.85rem 1rem 1rem; */
  background: #fff;
}

@media (min-width: 768px) {
  .applications-payment-history__table-wrap {
    padding: 1rem 0 1.15rem;
  }
}

.applications-payment-history-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.8125rem;
}

.applications-payment-history-table thead th {
  padding: 0.65rem 0.85rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blue-normal);
  background: var(--blue-light-active);
  border-bottom: 2px solid #d4ddd0;
  white-space: nowrap;
}

.applications-payment-history-table thead th:first-child {
  border-radius: 8px 0 0 0;
}

.applications-payment-history-table thead th:last-child {
  border-radius: 0 8px 0 0;
}

.applications-payment-history-table__col--label {
  min-width: 7.5rem;
}

.applications-payment-history-table__col--amount {
  text-align: right;
}

.applications-payment-history-table__col--status {
  text-align: center;
}

.applications-payment-history-table__col--charged {
  min-width: 7.5rem;
}

.applications-payment-history-table tbody tr {
  transition: background-color 0.15s ease;
}

.applications-payment-history-table tbody tr:nth-child(even) {
  background: #fafbf9;
}

.applications-payment-history-table tbody tr:hover {
  background: #f3f6f1;
}

.applications-payment-history-table tbody td {
  padding: 0.8rem 0.85rem;
  vertical-align: middle;
  border-bottom: 1px solid #eef1eb;
  color: #374151;
}

.applications-payment-history-table tbody tr:last-child td {
  border-bottom: none;
}

.applications-payment-history-table__row--refund {
  background: #fef8f6 !important;
}

.applications-payment-history-table__row--refund:hover {
  background: #fdf2ef !important;
}

.applications-payment-history-table__instalment-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--blue-normal, #475240);
  white-space: nowrap;
}

.applications-payment-history-table__amount {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--dark-black, #0b0a0a);
  white-space: nowrap;
}

.applications-payment-history-table__amount--refund {
  color: #b45309;
}

.applications-payment-history-table__cell--amount {
  text-align: right;
}

.applications-payment-history-table__cell--date {
  color: #4b5563;
  white-space: nowrap;
}

.applications-payment-history-table__cell--label {
  font-weight: 500;
}

.applications-payment-history-table__cell--status {
  text-align: center;
}

.applications-payment-history-table__item-label {
  font-weight: 600;
  color: var(--dark-black, #0b0a0a);
}

.applications-payment-history-table__charged {
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
  font-weight: 500;
  color: #374151;
  white-space: nowrap;
}

.applications-payment-history-table__charged-time {
  font-size: 0.6875rem;
  font-weight: 500;
  color: #9ca3af;
}

.applications-payment-history-table__na {
  color: #d1d5db;
}

.applications-payment-history-table__empty {
  padding: 2rem 1rem !important;
  text-align: center;
  color: #9ca3af;
  font-style: italic;
}

.applications-payment-history__footnote {
  margin: 0;
  padding: 0.85rem 1.25rem 1.1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #6b7280;
  line-height: 1.5;
  border-top: 1px solid #e8ebe4;
  background: var(--green-light, #eff0ee);
}

@media (min-width: 768px) {
  .applications-payment-history__footnote {
    padding: 0.9rem 1.5rem 1.15rem;
  }
}

.applications-payment-status,
.applications-instalment-status {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.35;
  border-radius: 999px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border: 1px solid transparent;
}

.applications-payment-status--paid,
.applications-instalment-status--paid {
  color: #166534;
  background: #ecfdf3;
  border-color: #bbf7d0;
}

.applications-payment-status--pending_capture,
.applications-instalment-status--pending_capture {
  color: #92400e;
  background: #fffbeb;
  border-color: #fde68a;
}

.applications-payment-status--card_saved,
.applications-instalment-status--card_saved {
  color: #1e40af;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.applications-payment-status--failed,
.applications-instalment-status--failed {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fecaca;
}

.applications-payment-status--refunded,
.applications-instalment-status--refunded {
  color: #4b5563;
  background: #f3f4f6;
  border-color: #e5e7eb;
}

.applications-instalment-status--skipped {
  color: #4b5563;
  background: #f3f4f6;
  border-color: #e5e7eb;
}

@media (max-width: 767.98px) {
  .applications-payment-history-table thead {
    display: none;
  }

  .applications-payment-history-table tbody tr {
    display: block;
    margin-bottom: 0.75rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid #e8ebe4;
    border-radius: 10px;
    background: #fff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  }

  .applications-payment-history-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .applications-payment-history-table tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.45rem 0;
    border-bottom: 1px dashed #eef1eb;
    text-align: right;
  }

  .applications-payment-history-table tbody td:last-child {
    border-bottom: none;
  }

  .applications-payment-history-table tbody td::before {
    content: attr(data-label);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--blue-normal, #475240);
    text-align: left;
    flex-shrink: 0;
  }

  .applications-payment-history-table__cell--label,
  .applications-payment-history-table__cell--status,
  .applications-payment-history-table__cell--amount {
    text-align: right;
  }

  .applications-payment-history-table__empty {
    display: block;
    border: none;
    box-shadow: none;
  }
}

/* Application detail — Application Information (mock-aligned) */
body[data-page='student-application-show'] .page-content {
  background: #f0f2f5;
  overflow: hidden;
}

.applications-show-page {
  width: 100%;
  padding-bottom: 0;
}

/* Fill admin column height: scroll inside card body; footer stays at bottom of card */

body[data-page='student-application-show']
  .admin-page-stack
  > .program-create-page.applications-show-page {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

body[data-page='student-application-show']
  .program-create-page.applications-show-page
  > .admin-form-card.program-create-card.applications-show-card {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body[data-page='student-application-show'] .applications-show-card__head,
body[data-page='student-application-show'] .applications-show-card__toolbar {
  flex-shrink: 0;
}

body[data-page='student-application-show'] .applications-show-card__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.applications-show-card {
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.applications-show-card__head {
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: none;
}

.applications-show-card__head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.applications-show-card__head-main {
  flex: 1 1 auto;
  min-width: 12rem;
}

.applications-show-card__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  color: #0f2d5c;
  font-family: Montserrat, system-ui, sans-serif;
}

.applications-repeat-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  flex: 0 1 22rem;
  max-width: 100%;
  margin: 0 !important;
  padding: 0.7rem 2rem 0.7rem 0.85rem;
  border-radius: 6px;
  border: 1px solid #f5c2c7 !important;
  background: #fef2f2 !important;
  color: #b91c1c;
  position: relative;
}

.applications-repeat-alert__icon {
  flex-shrink: 0;
  color: #dc2626;
  margin-top: 1px;
}

.applications-repeat-alert__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.applications-repeat-alert__title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #991b1b;
  line-height: 1.3;
}

.applications-repeat-alert__body {
  font-size: 0.8125rem;
  font-weight: 400;
  color: #b91c1c;
  line-height: 1.35;
}

.applications-repeat-alert__close {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  --bs-btn-close-width: 0.6em;
  --bs-btn-close-height: 0.6em;
  padding: 0.2rem;
  opacity: 0.45;
}

.applications-repeat-alert__close:hover {
  opacity: 0.75;
}

.applications-show-btn-reject {
  min-width: 7.5rem;
  padding: 0.55rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 4px;
  color: #fff !important;
  background: #dc2626 !important;
  border: 1px solid #dc2626 !important;
}

.applications-show-btn-reject:hover,
.applications-show-btn-reject:focus-visible {
  background: #b91c1c !important;
  border-color: #b91c1c !important;
  color: #fff !important;
}

.applications-show-btn-reject--solid {
  min-width: 8rem;
}

.applications-show-btn-accept {
  min-width: 7.5rem;
  padding: 0.55rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 4px;
  color: #fff !important;
  background: #16a34a !important;
  border: 1px solid #16a34a !important;
}

.applications-show-btn-accept:hover,
.applications-show-btn-accept:focus-visible {
  background: #15803d !important;
  border-color: #15803d !important;
  color: #fff !important;
}

/* Padding comes from .program-create-card__body when both classes are present */

.applications-show-card__footer {
  flex-shrink: 0;
  margin-top: auto;
  padding: 1rem 1.5rem 1.35rem;
  border-top: 1px solid #e8ebe4;
  background: #fff;
}

.applications-show-decision-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  margin: 0;
}

.applications-show-section--review-notes .applications-show-review-notes__label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--dark-black, #0b0a0a);
}

.applications-show-section--review-notes .applications-show-review-notes__textarea {
  border-radius: 5px;
  resize: vertical;
  min-height: 5.5rem;
  width: 100%;
  font-size: 0.8125rem;  
}

body[data-page='student-application-show']
  .applications-show-card__body.program-create-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
}

body[data-page='student-application-show']
  .applications-show-card__body
  > .applications-show-section:not(:first-child) {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.applications-show-basic-card {
  border: 1px solid #e8ecef;
  border-radius: 8px;
  background: #fff;
  padding: 1.35rem 1.5rem 1.5rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

/* Single outer card: inner sections are flat blocks with dividers (mock) */
body[data-page='student-application-show'] .applications-show-card .applications-show-basic-card {
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
}


.applications-show-basic-card__title {
  margin: 0 0 1.25rem;
}

.applications-show-section {
  margin-top: 1.25rem;
}

.applications-show-section:first-of-type,
body[data-page='student-application-show'] .applications-show-card__body > .applications-show-section:first-child {
  margin-top: 0;
}

body[data-page='student-application-show'] .applications-show-card__body > .applications-show-section {
  margin-top: 0;
}


.applications-show-section__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1.15rem;
  font-family: Montserrat, system-ui, sans-serif;
}

.applications-show-details-grid {
  --bs-gutter-y: 1.15rem;
}

.applications-show-section__title--sm {
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
}

.applications-detail-field {
  min-height: 100%;
}

.applications-detail-field__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.applications-detail-field__value {
  display: block;
  font-size: 0.875rem;
  font-weight: 400;
  color: #6b7280;
  line-height: 1.45;
}

.applications-detail-field--notes .applications-detail-field__label,
.applications-detail-field--documents .applications-detail-field__label {
  margin-bottom: 0.5rem;
}

.applications-detail-field__note {
  font-size: 0.875rem;
  font-weight: 400;
  color: #4b5563;
  line-height: 1.55;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  min-height: 0;
  white-space: pre-wrap;
}

.applications-documents-empty{
  font-size: 0.8125rem;
  font-weight: 500;
  color: #6b7280;
}
/* Application detail — document cards with verify actions */
.admin-doc-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
}

.admin-doc-list__item {
  margin: 0;
}

.admin-doc-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fafafa;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-doc-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.admin-doc-card__badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0.2rem 0.35rem;
  border-radius: 8px;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1;
}

.admin-doc-card__badge--pdf {
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.admin-doc-card__badge--doc {
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.admin-doc-card__badge--image {
  color: #7c3aed;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
}

.admin-doc-card__badge--file {
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.admin-doc-card__body {
  flex: 1 1 auto;
  min-width: 0;
}

.admin-doc-card__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark-black, #0b0a0a);
  line-height: 1.35;
}

.admin-doc-card__meta {
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: #6b7280;
}

.admin-doc-card__meta--rejected {
  color: #b91c1c;
}

.admin-doc-card__status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.35rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.2;
}

.admin-doc-card__status--verified {
  color: #15803d;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
}

.admin-doc-card__status--pending {
  color: #c2410c;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.admin-doc-card__actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.45rem;
}

.admin-doc-card__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #6b7280;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.admin-doc-card__action:hover {
  color: #2563eb;
  border-color: #bfdbfe;
  background: #eff6ff;
}

.admin-doc-card__action:disabled {
  cursor: default;
  opacity: 1;
}

.admin-doc-card__action--verify {
  color: #2563eb;
  border-color: #bfdbfe;
  background: #eff6ff;
}

.admin-doc-card__action--verify:hover {
  color: #1d4ed8;
  border-color: #93c5fd;
  background: #dbeafe;
}

.admin-doc-card__action--reject {
  color: #dc2626;
  border-color: #fecaca;
  background: #fef2f2;
}

.admin-doc-card__action--reject:hover {
  color: #b91c1c;
  border-color: #fca5a5;
  background: #fee2e2;
}

.admin-doc-card__action--verified,
.admin-doc-card__action--verified:hover {
  color: #15803d;
  border-color: #bbf7d0;
  background: #ecfdf5;
}

.admin-doc-card__action--rejected,
.admin-doc-card__action--rejected:hover {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fef2f2;
}

.admin-doc-card__verify-form {
  margin: 0;
}

.admin-doc-card__verify-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: none;
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  background: var(--blue-normal);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.admin-doc-card__verify-btn:hover {
  background: var(--blue-dark);
}

.admin-doc-card__verify-btn:active {
  transform: translateY(1px);
}

.admin-doc-card__verify-btn--verified,
.admin-doc-card__verify-btn--verified:hover,
.admin-doc-card__verify-btn--verified:active {
  background: #ecfdf5;
  color: #15803d;
  border: 1px solid #bbf7d0;
  cursor: default;
  transform: none;
  opacity: 1;
}

.applications-detail-field--documents .admin-doc-list {
  margin-top: 0.35rem;
}

@media (max-width: 575.98px) {
  .admin-doc-card {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .admin-doc-card__actions {
    width: 100%;
    justify-content: flex-end;
    padding-top: 0.15rem;
  }
}

.applications-history-empty {
  font-size: 0.8125rem;
}

.applications-history-list {
  border: none;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

.applications-history-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.applications-history-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.applications-history-row:first-child {
  padding-top: 0;
}

.applications-history-marker {
  position: relative;
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.applications-history-marker__ring {
  position: absolute;
  inset: 0;
  border: 2px solid #9ca3af;
  border-radius: 50%;
  background: #fff;
}

.applications-history-marker__dot {
  position: relative;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #6b7280;
}

.applications-history-main {
  flex: 1 1 auto;
  min-width: 0;
}

.applications-history-title {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #111827;
  text-decoration: none;
  line-height: 1.35;
}

.applications-history-title:hover {
  color: var(--blue-normal);
  text-decoration: underline;
}

.applications-history-date {
  margin-top: 0.2rem;
  font-size: 0.8125rem;
  font-weight: 400;
  color: #9ca3af;
  line-height: 1.3;
}

.applications-history-status-wrap {
  flex-shrink: 0;
  margin-left: auto;
}

.applications-history-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.2;
}

.applications-history-status--accepted {
  color: #15803d;
  border: 1px solid #86efac;
  background: #f0fdf4;
}

.applications-history-status--rejected {
  color: #dc2626;
  border: 1px solid #fca5a5;
  background: #fef2f2;
}

.applications-history-status--pending {
  color: #6b7280;
  border: 1px solid #d1d5db;
  background: #f9fafb;
}

@media (max-width: 767.98px) {
  .applications-show-card__head-row {
    flex-direction: column;
  }

  .applications-repeat-alert {
    flex: 1 1 100%;
    width: 100%;
  }

  .applications-history-row {
    flex-wrap: wrap;
  }

  .applications-history-status-wrap {
    width: 100%;
    margin-left: 2.2rem;
  }
}

.applications-reject-modal .modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 12px 40px rgba(11, 10, 10, 0.14);
}

/* Application student — User Details (full-height mock layout) */
body[data-page='student-user-details'] .page-content {
  overflow: hidden;
}

body[data-page='student-user-details'] .admin-page-stack > .user-details-page {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.user-details-page {
  width: 100%;
  min-height: 0;
}

.user-details-shell {
  --user-details-olive: --var(blue-normal);
  --user-details-border: #e3e6e0;
  --user-details-card-shadow: 0 2px 14px rgba(11, 10, 10, 0.09), 0 1px 4px rgba(11, 10, 10, 0.06);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  min-height: 0;
}

.user-details-shell__head {
  padding: 1rem 1.25rem 0;
  border-bottom: none;
}

@media (min-width: 768px) {
  .user-details-shell__head {
    padding: 1.15rem 1.5rem 0;
  }
}

.user-details-shell__title {
  color: var(--dark-black, #0b0a0a);
}

.user-details-shell__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  margin-top: 0.35rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #6b7280;
}

.user-details-shell__student-name {
  font-weight: 600;
  color: var(--dark-black, #0b0a0a);
}

.user-details-shell__student-email {
  color: #4b5563;
}

.user-details-shell__student-email--secondary {
  color: #9ca3af;
}

.user-details-shell__body {
  padding: 0 1.25rem 1.25rem;
  min-height: 0;
}

@media (min-width: 768px) {
  .user-details-shell__body {
    padding: 0 1.5rem 1.5rem;
  }
}

/* Pill bar — same olive palette as .applications-tabs on the student list */
.user-details-tabs {
  --user-details-tab-olive: var(--blue-normal);
  --user-details-tab-active-bg: #f0f1ef;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  margin-bottom: 1rem;
  background: var(--user-details-tab-olive);
  border-radius: 8px;
}

.user-details-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  padding: 0.55rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.user-details-tab svg,
.user-details-tab [data-lucide] {
  flex-shrink: 0;
  color: inherit;
  stroke: currentColor;
}

.user-details-tab:not(.user-details-tab--active):hover,
.user-details-tab:not(.user-details-tab--active):focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.user-details-tab--active {
  position: relative;
  z-index: 1;
  background: var(--user-details-tab-active-bg);
  color: var(--user-details-tab-olive);
  border-color: var(--user-details-tab-olive);
}

.user-details-tab--active:hover,
.user-details-tab--active:focus-visible {
  background: #eef0ed;
  color: var(--user-details-tab-olive);
  border-color: var(--user-details-tab-olive);
}

.user-details-content {
  position: relative;
  z-index: 1;
  border: none;
  border-radius: 0;
  background: transparent;
  min-height: 0;
  overflow: hidden;
}

.user-details-panel {
  display: none;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.user-details-panel--active {
  display: flex;
}

.user-details-panel[hidden] {
  display: none !important;
}

.user-details-basic-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  padding: 1rem;
  overflow: hidden;
}

@media (min-width: 1200px) {
  .user-details-basic-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
  }
}

.user-details-basic-grid__left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 0;
  overflow: hidden;
}

@media (min-width: 1200px) {
  .user-details-basic-grid__left {
    padding: 5px;
    padding-right: 10px;
    padding-top: 10px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.user-details-basic-grid__right {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

@media (min-width: 1200px) {
  .user-details-basic-grid__right {
    padding: 5px;
    padding-top: 10px;
  }
}

.user-details-card {
  border: 1px solid var(--user-details-border);
  border-radius: 8px;
  background: #fff;
  padding: 5px;
  box-shadow: var(--user-details-card-shadow);
}

@media (min-width: 768px) {
  .user-details-card {
    padding: 1.25rem 1.35rem 1.3rem;
  }
}

.user-details-card--flat {
  border: none;
  border-radius: 0;
  padding: 1.25rem 1.5rem;
  box-shadow: none;
}

.user-details-card--history {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--user-details-border);
  border-radius: 8px;
  padding: 1.25rem 1.35rem 1.3rem;
  background: #fff;
}

.user-details-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark-black, #0b0a0a);
  margin-bottom: 0.85rem;
}

.user-details-card--history .user-details-card__title {
  flex-shrink: 0;
}

.user-details-card__section + .user-details-card__section {
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--user-details-border);
}

.user-details-empty {
  font-size: 0.8125rem;
}

.user-details-profile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.user-details-card--profile {
  padding: 1.35rem 1.4rem 1.4rem;
  flex-shrink: 0;
}

.user-details-card--secondary {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.user-details-card__section--documents {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.user-details-card__section--documents .user-details-card__title {
  flex-shrink: 0;
  margin-bottom: 0;
}

.user-details-card__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-shrink: 0;
  margin-bottom: 0.85rem;
}

.user-details-card__view-all {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--blue-normal, #002147);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  white-space: nowrap;
  cursor: pointer;
}

.user-details-card__view-all:hover,
.user-details-card__view-all:focus-visible {
  color: var(--blue-dark, #00152e);
}

.student-documents-modal__dialog {
  max-width: 42rem;
}

.student-documents-modal__header {
  padding: 1.15rem 1.25rem 0.65rem;
}

.student-documents-modal__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark-black, #0b0a0a);
}

.student-documents-modal__body {
  padding: 0.5rem 1.25rem 1.25rem;
}

.admin-doc-list--modal {
  max-height: min(70vh, 32rem);
  overflow-y: auto;
  padding-right: 0.25rem;
}

.admin-doc-list--modal .admin-doc-list__item + .admin-doc-list__item {
  margin-top: 0.65rem;
}

.user-details-card__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  margin-right: -0.15rem;
  padding-right: 0.15rem;
}

.user-details-card__section--status {
  flex-shrink: 0;
  margin-top: 1rem;
  padding-top: 1rem;
}

.user-details-profile__avatar {
  position: relative;
  width: 6rem;
  height: 6rem;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: #e8ebe4;
  border: 2px solid var(--yellow-normal, var(--yellow-light));
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-details-profile__avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.user-details-profile__avatar-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue-normal);
  letter-spacing: 0.04em;
  background: var(--yellow-light);
}

.user-details-profile__avatar-photo[src*='student.svg'] {
  opacity: 0;
}

.user-details-profile__avatar-photo[src*='student.svg'] + .user-details-profile__avatar-fallback {
  display: flex;
}

.user-details-profile__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.15rem;
  width: 100%;
}

.user-details-profile__col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

@media (max-width: 767.98px) {
  .user-details-profile__grid {
    grid-template-columns: 1fr;
  }
}

.user-details-page .admin-outlined-field--readonly {
  border: 1px solid #d8dde3;
  border-radius: 6px;
  padding: 0.55rem 0.75rem 0.5rem;
  background: #fff;
}

.user-details-page .admin-outlined-field--readonly .admin-outlined-input {
  color: #374151;
  cursor: default;
  padding-top: 2px;
}

.user-details-page .admin-outlined-field--readonly .admin-outlined-label {
  color: #6b7280;
  font-size: 11px;
}

.user-details-page .admin-outlined-field--readonly .admin-outlined-label .text-danger {
  color: #dc2626 !important;
}

.user-details-phone-display {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  padding-right: 1.75rem;
  position: relative;
}

.user-details-phone-display__country {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  padding-right: 0.5rem;
  margin-right: 0.35rem;
  border-right: 1px solid #e5e7eb;
}

.user-details-phone-display__country img {
  display: block;
  border-radius: 2px;
  object-fit: cover;
}

.user-details-phone-display__dial {
  font-size: 14px;
  font-weight: 500;
  color: var(--dark-black, #0b0a0a);
}

.user-details-phone-display__number {
  flex: 1 1 auto;
  min-width: 0;
  border: none !important;
  padding-left: 0 !important;
}

.user-details-phone-display__valid {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #22c55e;
  display: inline-flex;
}

.user-details-doc-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.user-details-doc-list__item {
  margin: 0;
}

.user-details-doc-box {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--user-details-border);
  border-radius: 8px;
  background: #fff;
}

.user-details-doc-list__badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  min-height: 2.35rem;
  padding: 0.2rem 0.3rem;
  border-radius: 5px;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1;
}

.user-details-doc-list__badge--pdf {
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.user-details-doc-list__badge--doc {
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.user-details-doc-list__badge--file {
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.user-details-doc-list__body {
  flex: 1 1 auto;
  min-width: 0;
}

.user-details-doc-list__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark-black, #0b0a0a);
  line-height: 1.35;
}

.user-details-doc-list__meta {
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: #6b7280;
}

.user-details-doc-list__download {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.15s ease;
}

.user-details-doc-list__download:hover {
  color: var(--user-details-olive);
}

.user-details-doc-list__meta--verified {
  color: #15803d;
  font-weight: 600;
}

.user-details-doc-list__actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.35rem;
}

.user-details-doc-list__verify-form {
  margin: 0;
}

.user-details-doc-list__verify-btn {
  border: 1px solid var(--user-details-olive, #6b7c3a);
  background: #fff;
  color: var(--user-details-olive, #6b7c3a);
  border-radius: 6px;
  padding: 0.3rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.user-details-doc-list__verify-btn:hover {
  background: var(--user-details-olive, #6b7c3a);
  color: #fff;
}

.user-details-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-height: 1.75rem;
}

.user-details-status-label {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--dark-black, #0b0a0a);
}

.user-details-status-control {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

.user-details-status-toggle-group {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.user-details-status-toggle-group:not(.user-details-status-toggle-group--static) {
  cursor: pointer;
}

.user-details-status-toggle-group:not(.user-details-status-toggle-group--static)
  .user-details-status-side-label {
  cursor: pointer;
}

.user-details-status-side-label {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  color: #9ca3af;
  user-select: none;
  white-space: nowrap;
}

.user-details-status-toggle-group--active .user-details-status-side-label--active {
  color: var(--blue-normal, #5d6d54);
}

.user-details-status-toggle-group:not(.user-details-status-toggle-group--active)
  .user-details-status-side-label--inactive {
  color: #4b5563;
}

.user-details-status-toggle.toggle-switch {
  position: relative;
  display: block;
  width: 34px;
  height: 20px;
  padding: 0;
  margin: 0;
  line-height: 0;
  flex-shrink: 0;
}

.user-details-status-toggle:not(.toggle-switch--static) {
  cursor: pointer;
}

.user-details-status-toggle-group--static {
  opacity: 0.85;
}

.user-details-status-toggle-group--busy,
.user-details-status-toggle--busy {
  opacity: 0.65;
  pointer-events: none;
}

.user-details-status-toggle .toggle-switch-slider {
  top: 0;
  left: 0;
  margin: 0;
  background-color: #c8d0dc;
}

.user-details-status-toggle .toggle-switch-slider::before {
  background-color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.user-details-status-toggle input:checked + .toggle-switch-slider {
  background-color: var(--blue-normal, #5d6d54);
}

.user-details-status-toggle input:checked + .toggle-switch-slider::before {
  background-color: #fff;
}

.user-details-history {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.user-details-history > li {
  border-bottom: 1px solid var(--user-details-border);
}

.user-details-history > li:first-child .user-details-history__item {
  padding-top: 0.15rem;
}

.user-details-history > li:last-child {
  border-bottom: none;
}

.user-details-history > li:last-child .user-details-history__item {
  padding-bottom: 0.15rem;
}

a.user-details-history__item {
  display: flex;
  align-items: center;
  gap: 0.65rem 0.75rem;
  padding: 0.75rem 0.65rem 0.75rem 0.55rem;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.15s ease;
  border-left: 3px solid transparent;
  border-radius: 6px;
}

a.user-details-history__item--attention {
  /* background-color: #fff5f5;
  border-left-color: #c62828; */
}

a.user-details-history__item:hover {
  background-color: #fff5f5;
}

a.user-details-history__item--attention:hover {
  background-color: #ffecec;
}

a.user-details-history__item:focus-visible {
  outline: 2px solid var(--user-details-olive, #5d6d54);
  outline-offset: -2px;
}

.user-details-history__view {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  overflow: visible;
  position: relative;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.user-details-history__view img {
  width: 2.35rem;
  height: 2.35rem;
  object-fit: contain;
  border-radius: 50%;
}

.user-details-history__attention-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #c62828;
  box-shadow: 0 0 0 2px #fff;
  z-index: 1;
}

a.user-details-history__item:hover .user-details-history__view {
  border-color: #c5cdc0;
  box-shadow: 0 0 0 2px rgba(93, 109, 84, 0.12);
}

a.user-details-history__item--attention:hover .user-details-history__view {
  border-color: #e39aa1;
  box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.12);
}

.user-details-history__main {
  flex: 1 1 6rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.user-details-history__title {
  display: block;
  width: 100%;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark-black, #0b0a0a);
  line-height: 1.35;
}

.user-details-history__date {
  display: block;
  width: 100%;
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.3;
}

.user-details-history__status {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  margin-left: auto;
}

.user-details-history__status--accepted {
  color: #15803d;
  border: 1px solid #86efac;
  background: #ecfdf3;
}

.user-details-history__status--rejected {
  color: #dc2626;
  border: 1px solid #fca5a5;
  background: #fef2f2;
}

.user-details-history__status--pending {
  color: #92400e;
  border: 1px solid #fcd34d;
  background: #fffbeb;
}

/* Student user details — allow page scroll when content exceeds viewport */
@media (max-width: 1199.98px), (max-height: 900px) {
  body[data-page='student-user-details'] .page-content {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body[data-page='student-user-details'] .admin-page-stack,
  body[data-page='student-user-details'] .admin-page-stack > .user-details-page,
  body[data-page='student-user-details'] .user-details-page,
  body[data-page='student-user-details'] .user-details-shell {
    flex: 0 1 auto !important;
    min-height: auto !important;
  }

  body[data-page='student-user-details'] .user-details-shell {
    overflow: visible;
  }

  body[data-page='student-user-details'] .user-details-shell__body,
  body[data-page='student-user-details'] .user-details-content {
    overflow: visible;
    min-height: auto;
    flex: 0 1 auto !important;
  }

  body[data-page='student-user-details'] .user-details-panel--active {
    height: auto;
    overflow: visible;
    flex: 0 1 auto !important;
  }

  .user-details-basic-grid {
    height: auto;
    overflow: visible;
  }

  .user-details-basic-grid__left,
  .user-details-basic-grid__right {
    overflow: visible;
    min-height: auto;
  }

  .user-details-card--secondary {
    overflow: visible;
    min-height: auto;
    flex: none;
  }

  .user-details-card__section--documents {
    overflow: visible;
    min-height: auto;
    flex: none;
  }

  .user-details-card__scroll {
    max-height: none;
    flex: none;
    overflow: visible;
  }

  .user-details-card--history {
    flex: none;
    min-height: auto;
  }

  .user-details-history {
    flex: none;
    max-height: none;
    overflow: visible;
  }
}

/* Student user details — stacked single-column layout on narrower screens */
@media (max-width: 1199.98px) {
  .user-details-basic-grid {
    padding: 0.75rem;
    gap: 1rem;
  }

  .user-details-basic-grid__left,
  .user-details-basic-grid__right {
    padding: 0 !important;
  }

  body[data-page='student-user-details'] .user-details-card {
    padding: 1rem 1.1rem 1.15rem;
  }

  .user-details-card--history {
    padding: 1rem 1.1rem 1.15rem;
  }

  .user-details-card__section--status {
    border-top: 1px solid var(--user-details-border);
  }

  .user-details-tabs {
    display: flex;
    width: 100%;
    flex-wrap: nowrap;
    gap: 0.35rem;
    padding: 0.35rem;
    border-radius: 8px;
  }

  .user-details-tab {
    flex: 1 1 0;
    min-width: 0;
    padding: 0.5rem 0.4rem;
    font-size: 0.75rem;
    line-height: 1.25;
    white-space: normal;
    text-align: center;
    border-radius: 6px !important;
  }

  .user-details-tab span {
    display: block;
    line-height: 1.25;
  }

  .user-details-tab [data-lucide] {
    width: 16px;
    height: 16px;
  }

  a.user-details-history__item {
    flex-wrap: wrap;
    row-gap: 0.35rem;
    padding: 0.75rem 0;
  }

  .user-details-history__status {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }

  .user-details-history__main {
    flex: 1 1 calc(100% - 3rem);
  }
}

@media (max-width: 575.98px) {
  .user-details-shell__head .d-flex {
    align-items: flex-start !important;
  }

  .user-details-shell__title {
    font-size: 1.15rem;
  }

  .user-details-profile {
    align-items: stretch;
  }

  .user-details-profile__avatar {
    align-self: center;
  }

  .user-details-phone-display {
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .user-details-phone-display__number {
    min-width: 0;
    flex: 1 1 8rem;
  }

  .user-details-doc-box {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .user-details-status-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }
}

/* Student user details — Program Details (offline) */
.user-details-card--program {
  padding: 1rem 1.15rem 1.25rem;
  overflow: auto;
}

@media (min-width: 768px) {
  .user-details-card--program {
    padding: 1.15rem 1.35rem 1.5rem;
  }
}

.spd__select {
  max-width: 22rem;
}

.spd-summary {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 576px) {
  .spd-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .spd-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.spd-summary-card {
  display: flex;
  flex-direction: column;
  min-height: 7.5rem;
  border: 1px solid var(--user-details-border, #e3e6e0);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--user-details-card-shadow);
}

.spd-summary-card__body {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: flex-end;
  padding: 1rem 1rem 0.85rem;
  min-height: 5.25rem;
}

.spd-summary-card__icon {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-normal, #002147);
  opacity: 0.85;
}

.spd-summary-card__icon [data-lucide],
.spd-summary-card__icon svg {
  display: block;
}

.spd-summary-card__value {
  margin: 0;
  padding-right: 2rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark-black, #0b0a0a);
  word-break: break-word;
}

.spd-summary-card__foot {
  margin: 0;
  padding: 0.55rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  background: var(--blue-normal, #002147);
  text-align: left;
}

.spd-modules__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.spd-modules__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--dark-black, #0b0a0a);
}

.spd-modules__percent {
  flex-shrink: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--blue-normal, #002147);
}

.spd-modules__bar {
  height: 6px;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: #e8ebe6;
  overflow: hidden;
}

.spd-modules__bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue-normal, #002147);
  transition: width 0.25s ease;
}

.spd-modules__list {
  border: 1px solid var(--user-details-border, #e3e6e0);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.spd-modules__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--user-details-border, #e3e6e0);
}

.spd-modules__item:last-child {
  border-bottom: none;
}

.spd-modules__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark-black, #0b0a0a);
  min-width: 0;
}

.spd-modules__status {
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.spd-modules__item--done .spd-modules__status {
  color: #374151;
}

.spd-modules__item--in_progress .spd-modules__status {
  color: var(--blue-normal, #002147);
}

.spd-modules__item--locked .spd-modules__status {
  color: #9ca3af;
}

.spd-modules__empty {
  font-size: 0.875rem;
  padding: 0.5rem 0;
}

.spd-summary-card__value--link {
  color: var(--blue-normal, #002147);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.spd-attendance__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--dark-black, #0b0a0a);
}

.spd-attendance__percent {
  flex-shrink: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--blue-normal, #002147);
}

.spd-attendance__table-wrap {
  border: 1px solid var(--user-details-border, #e3e6e0);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.spd-attendance__table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}

.spd-attendance__table thead th {
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--blue-normal, #002147);
  background: #f3f4f6;
  border-bottom: 1px solid var(--user-details-border, #e3e6e0);
  white-space: nowrap;
}

.spd-attendance__table tbody td {
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  color: var(--dark-black, #0b0a0a);
  border-bottom: 1px solid var(--user-details-border, #e3e6e0);
  vertical-align: middle;
}

.spd-attendance__table tbody tr:last-child td {
  border-bottom: none;
}

.spd-attendance__empty {
  text-align: center;
  color: #6b7280;
  font-size: 0.875rem;
  padding: 1.25rem 1rem !important;
}

.spd-attendance__status {
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.spd-attendance__status--present {
  color: #15803d;
}

.spd-attendance__status--absent {
  color: #dc2626;
}

.spd-attendance__footer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  align-items: center;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .spd-attendance__footer {
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
  }
}

.spd-attendance__per-page {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.spd-attendance__per-page-label {
  margin: 0;
  font-size: 0.875rem;
  color: #444;
  white-space: nowrap;
}

.spd-attendance__per-page-select {
  min-width: 4.5rem;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.spd-attendance__paging {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.spd-attendance__page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.45rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  color: #444;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.spd-attendance__page-btn:hover:not(.spd-attendance__page-btn--disabled):not(.spd-attendance__page-btn--active) {
  background: #f5f5f5;
  color: var(--blue-normal, #002147);
  border-color: #c5c5c5;
}

.spd-attendance__page-btn--active {
  background: var(--blue-normal, #002147) !important;
  border-color: var(--blue-normal, #002147) !important;
  color: #fff !important;
}

.spd-attendance__page-btn--disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
  background: #f5f5f5;
  color: #666;
}

.spd-attendance__ellipsis {
  display: inline-flex;
  align-items: center;
  padding: 0 0.25rem;
  color: #555;
  font-size: 0.875rem;
}

.spd-attendance__info {
  font-size: 0.875rem;
  color: #444;
  text-align: center;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .spd-attendance__info {
    text-align: right;
  }
}

/* Student user details — Payment Details tab */
.user-details-card--payment {
  padding: 1rem 1.15rem 1.25rem;
  overflow: auto;
}

@media (min-width: 768px) {
  .user-details-card--payment {
    padding: 1.15rem 1.35rem 1.5rem;
  }
}

.spay__select {
  max-width: 22rem;
}

.spay__empty {
  font-size: 0.875rem;
}

.spay-summary {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

@media (min-width: 576px) {
  .spay-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .spay-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.spay-summary-card {
  display: flex;
  flex-direction: column;
  min-height: 7.5rem;
  border: 1px solid var(--user-details-border, #e3e6e0);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--user-details-card-shadow);
}

.spay-summary-card__body {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.4rem;
  padding: 0.85rem 1rem 0.85rem;
  min-height: 5.25rem;
}

.spay-summary-card__icon {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: inline-flex;
  color: var(--blue-normal, #002147);
  opacity: 0.85;
}

.spay-summary-card__label {
  margin: 0;
  padding-right: 2rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  color: #4b5563;
}

.spay-summary-card__value {
  margin: 0;
  padding-right: 2rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark-black, #0b0a0a);
}

.spay-summary-card__value--danger {
  color: #dc2626;
}

.spay-summary-card__value--warning {
  color: #d97706;
}

.spay-summary-card__foot {
  margin: 0;
  padding: 0.55rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  background: var(--blue-normal, #002147);
}

.spay-voucher {
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid #c5d4e8;
  border-radius: 8px;
  background: #eef4fc;
}

.spay-voucher__text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark-black, #0b0a0a);
}

.spay-voucher__code {
  display: inline-block;
  margin: 0 0.2rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #f5c842;
  color: var(--dark-black, #0b0a0a);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.spay-table-section__title {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--blue-normal, #002147);
}

.spay-table-wrap {
  border: 1px solid var(--user-details-border, #e3e6e0);
  border-radius: 8px;
  overflow: auto;
  background: #fff;
}

.spay-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  min-width: 52rem;
}

.spay-table thead th {
  padding: 0.75rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--blue-normal, #002147);
  background: #f3f4f6;
  border-bottom: 1px solid var(--user-details-border, #e3e6e0);
  white-space: nowrap;
}

.spay-table tbody td {
  padding: 0.8rem 0.85rem;
  font-size: 0.875rem;
  color: var(--dark-black, #0b0a0a);
  border-bottom: 1px solid var(--user-details-border, #e3e6e0);
  vertical-align: middle;
}

.spay-table tbody tr:last-child td {
  border-bottom: none;
}

.spay-table__empty {
  text-align: center;
  color: #6b7280;
  padding: 1.25rem !important;
}

.spay-status {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
}

.spay-status--received {
  color: #15803d;
  border-color: #86efac;
  background: #ecfdf3;
}

.spay-status--due {
  color: #dc2626;
  border-color: #fca5a5;
  background: #fef2f2;
}

.spay-status--upcoming {
  color: #d97706;
  border-color: #fcd34d;
  background: #fffbeb;
}

.spay-status--refunded {
  color: #6b7280;
  border-color: #d1d5db;
  background: #f9fafb;
}

.spay-invoice-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--blue-normal, #002147);
  cursor: not-allowed;
  opacity: 0.55;
}

a.spay-invoice-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--blue-normal, #002147);
  text-decoration: none;
  white-space: nowrap;
}

a.spay-invoice-link:hover,
a.spay-invoice-link:focus-visible {
  color: var(--blue-normal-active, #0c3d79);
  text-decoration: underline;
}

a.spay-invoice-link [data-lucide],
a.spay-invoice-link svg {
  flex-shrink: 0;
}

.user-details-payment-wrap {
  padding: 0.25rem 0.5rem 0.5rem;
}

body[data-page='student-user-details'] .user-details-panel .applications-show-section--payment-history {
  margin-top: 0;
}

body[data-page='student-user-details'] .user-details-panel .applications-show-section--payment-history .applications-show-basic-card {
  border: 1px solid var(--user-details-border);
  border-radius: 8px;
}

/* Admin dashboard KPI cards */
.admin-dashboard-page .admin-dashboard__toolbar {
  flex-shrink: 0;
}

.admin-dashboard-page .admin-dashboard__summary {
  margin-bottom: 0;
}

@media (min-width: 992px) {
  .admin-dashboard-page .admin-dashboard__summary.spd-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.admin-dashboard-page a.admin-dashboard__card--link {
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-dashboard-page a.admin-dashboard__card--link:hover,
.admin-dashboard-page a.admin-dashboard__card--link:focus-visible {
  border-color: #b8c4d4;
  box-shadow: 0 0.35rem 0.85rem rgba(0, 45, 98, 0.08);
}

.admin-dashboard-page .spd-summary-card__foot {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-height: 3.1rem;
}

.admin-dashboard-page .admin-dashboard__card-label {
  display: block;
}

.admin-dashboard-page .admin-dashboard__card-period {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  opacity: 0.85;
}

/* Admin dashboard action-needed alerts */
.admin-action-alerts__heading {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-normal, #002d62);
  font-family: Montserrat, system-ui, sans-serif;
}

.admin-action-alerts__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.admin-action-alerts__item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  border: 1px solid #f1c0c4;
  background: #fff5f5;
  box-shadow: var(--user-details-card-shadow);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.admin-action-alerts__item:hover,
.admin-action-alerts__item:focus-visible {
  border-color: #e39aa1;
  background: #ffecec;
  box-shadow: 0 0.35rem 0.85rem rgba(0, 45, 98, 0.08);
  color: inherit;
}

.admin-action-alerts__item:focus-visible {
  outline: 2px solid var(--blue-normal, #002d62);
  outline-offset: 2px;
}

.admin-action-alerts__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  flex-shrink: 0;
  color: red;
  background: rgba(0, 45, 98, 0.06);
}

.admin-action-alerts__body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  flex: 1 1 auto;
}

.admin-action-alerts__count {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark-black, #0b0a0a);
  font-family: Montserrat, system-ui, sans-serif;
}

.admin-action-alerts__message {
  font-size: 0.875rem;
  color: #4b5563;
}

.admin-action-alerts__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--blue-normal, #002d62);
  background: var(--blue-normal, #002d62);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.admin-action-alerts__item:hover .admin-action-alerts__cta,
.admin-action-alerts__item:focus-visible .admin-action-alerts__cta {
  background: var(--blue-normal-hover, #002958);
  border-color: var(--blue-normal-hover, #002958);
}

@media (max-width: 575.98px) {
  .admin-action-alerts__item {
    flex-wrap: wrap;
  }

  .admin-action-alerts__cta {
    width: 100%;
    justify-content: center;
  }
}


.new-user-action{
  background: var(--blue-normal) !important;
  border-color: var(--blue-normal) !important;
  color: #fff !important;
}

.white-icon{
  color: #fff !important;
}

.nav-logo-img{
  filter: brightness(0) invert(1);
  height: 100px;
  width: auto;
}