/* Colors for different modes (Night/Day or EAA) */
:root {
  color-scheme: light;

  --app-bg: #f6faf7;
  --app-bg-alt: #ffffff;
  --app-bg-deep: #0f1f17;

  --app-text-main: #14231b;
  --app-text-muted: #5f6f65;
  --app-text-invert: #f9fafb;

  --app-primary: #058c96;
  --app-primary-soft: rgba(5, 150, 126, 0.14);
  --app-primary-border: rgba(5, 150, 143, 0.38);

  --app-outline: #d97706;
  --app-outline-soft: rgba(217, 119, 6, 0.12);
  --app-outline-border: rgba(217, 119, 6, 0.34);

  --app-card-border: rgba(18, 56, 42, 0.10);
  --app-shadow-soft: 0 10px 24px rgba(10, 61, 46, 0.30);

  --app-input-bg: #fbfcfb;
  --app-input-border: #cfdad3;
  --app-footer-bg: rgba(16, 41, 32, 0.96);
  --app-footer-text: #a7b4ad;

  --hex-ffffff: #ffffff;
  --hex-000000: #000000;
  --hex-333333: #333333;
  --hex-999999: #999999;
  --hex-aaaaaa: #aaaaaa;
  --hex-cccccc: #cccccc;
  --hex-dddddd: #dddddd;
  --hex-eeeeee: #eeeeee;
  --hex-efefef: #efefef;
  --hex-3489cd: #2b8a82;
  --hex-004499: #0f6b54;
  --hex-edfced: #ecfaf2;
  --hex-f2e7e2: #f8eee1;
  --rgb-255-155-0: rgb(217, 119, 6);
  --rgb-245-255-255: rgb(247, 252, 248);
  --rgb-255-245-230: rgb(252, 246, 236);
  --rgb-198-206-216: rgb(198, 210, 203);
  --rgba-192-192-192--0-75: rgba(192, 192, 192, .75);
  --rgba-0-0-0--0-03: rgba(0, 0, 0, .03);
  --rgba-0-0-0--0-15: rgba(0, 0, 0, .15);
  --rgba-0-0-0--0-25: rgba(0, 0, 0, .25);
  --rgba-0-0-0--0-3: rgba(0, 0, 0, .3);
  --rgba-140-210-210-2: rgba(120, 190, 160, 0.2);
  --rgba-210-140-140-2: rgba(210, 165, 110, 0.2);
  --rgba-30-90-200-3: rgba(5, 150, 105, 0.22);
  --rgba-15-45-100-3: rgba(217, 119, 6, 0.18);
  --rgba-15-23-42-06: rgba(5, 150, 105, 0.08);
  --rgba-15-23-42-30: rgba(5, 150, 105, 0.24);
  --pag-btn-bg: rgba(255,255,255,0.96);
  --pag-btn-border: rgba(18, 56, 42, 0.14);
  --pag-btn-hover-bg: var(--rgba-15-23-42-06);
  --pag-btn-hover-border: var(--rgba-15-23-42-30);

  /* Bootstrap custom variables */
  --bs-box-my-shadow-sm: 0 0.25rem 0.5rem rgba(9, 30, 23, 0.40);
  --bs-box-shadow-sm: 0 0.15rem 0.30rem rgba(9, 30, 23, 0.24);
  --bs-box-shadow-md: 0 0.5rem 1rem rgba(9, 30, 23, 0.44);
  --bs-primary: #05968f;
  --bs-body-bg: #fff;
  --bs-body-color: #14231b;
}
.dark-mode {
  color-scheme: dark;

  --app-bg: #071510;
  --app-bg-alt: #071510;
  --app-bg-deep: #04100c;

  --app-text-main: #e5efe8;
  --app-text-muted: #9cb1a6;
  --app-text-invert: #f9fafb;

  --app-primary: #34d3d3;
  --app-primary-soft: rgba(52, 211, 153, 0.16);
  --app-primary-border: rgba(52, 211, 153, 0.42);

  --app-outline: #f59e0b;
  --app-outline-soft: rgba(245, 158, 11, 0.14);
  --app-outline-border: rgba(245, 158, 11, 0.42);

  --app-card-border: rgba(123, 154, 150, 0.26);
  --app-shadow-soft: 0 16px 34px rgba(0, 0, 0, 0.42);

  --app-input-bg: #091914;
  --app-input-border: #1d3a2f;
  --app-footer-bg: #020906;
  --app-footer-text: #9cb1a6;

  --hex-ffffff: #121714;
  --hex-000000: #ffffff;
  --hex-333333: #c9d5ce;
  --hex-999999: #66766d;
  --hex-aaaaaa: #aab6b0;
  --hex-cccccc: #ccd6d1;
  --hex-dddddd: #1a2420;
  --hex-eeeeee: #121916;
  --hex-efefef: #101613;
  --hex-3489cd: #58bfc2;
  --hex-004499: #d4b276;
  --hex-edfced: #062416;
  --hex-f2e7e2: #2a1f11;
  --rgb-255-155-0: rgb(245, 158, 11);
  --rgb-245-255-255: rgb(11, 18, 14);
  --rgb-255-245-230: rgb(24, 19, 12);
  --rgb-198-206-216: rgb(46, 63, 56);
  --rgba-192-192-192--0-75: rgba(63, 63, 63, .75);
  --rgba-0-0-0--0-03: rgba(255, 255, 255, .03);
  --rgba-0-0-0--0-15: rgba(255, 255, 255, .15);
  --rgba-0-0-0--0-25: rgba(255, 255, 255, .25);
  --rgba-0-0-0--0-3: rgba(255, 255, 255, .3);
  --rgba-140-210-210-2: rgba(52, 130, 102, 0.2);
  --rgba-210-140-140-2: rgba(150, 110, 52, 0.2);
  --rgba-30-90-200-3: rgba(52, 211, 153, 0.24);
  --rgba-15-45-100-3: rgba(245, 158, 11, 0.22);
  --rgba-15-23-42-06: rgba(52, 211, 153, 0.16);
  --rgba-15-23-42-30: rgba(52, 211, 153, 0.36);
  --pag-btn-bg: rgba(7,21,16,0.88);
  --pag-btn-border: rgba(123,154,139,0.30);
  --pag-btn-hover-bg: var(--rgba-15-23-42-06);
  --pag-btn-hover-border: var(--rgba-15-23-42-30);

  /* Bootstrap custom variables */
  --bs-primary: #34d399;
  --bs-body-bg: #121714;
  --bs-body-color: #e5efe8;
}

/* Adjustment for footer and containers */
html {
  height:100%;
  scrollbar-gutter: stable;
}

/* Avoid white space in top/bottom and left/right of the page */
body {
  margin: 0 !important;
  padding: 0 !important;
  overflow-y: scroll;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", "Roboto", "Ubuntu", "Cantarell",
               "Noto Sans", sans-serif;
  font-size: 1rem; /* 15px */
  line-height: 1.5;
  background: radial-gradient(circle at top, rgba(5, 150, 105, 0.14), transparent 52%),
              radial-gradient(circle at bottom, rgba(217, 119, 6, 0.09), transparent 50%),
              var(--app-bg);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: 100% 100%, 100% 100%, auto;
  color: var(--app-text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
@media screen and (max-width: 991.98px) {
  body { background-attachment: scroll; }
}
body.prev-ver {
  color: var(--app-text-main);
}
/* Prevent scrolling while a modal dialog is open */
/* .noscroll { position: fixed; top: var(--scrolltop, 0); inline-size: 100%; overflow-y: hidden; } */
.noscroll { overflow: hidden; overscroll-behavior: none; }
@media screen and (max-width: 767.98px) {
  /* If on mobile the scrolling is required to display the schedule modal */
  /* .noscroll { position: static; top: auto; inline-size: auto; overflow-y: visible; } */
}

/* Smooth loading page */
.trandiv {
  width: 100%;
  opacity: 0; /* 0 in production for fade load effect */
  transition: opacity 0.5s ease;
  -webkit-transition: opacity 0.5s ease;
}
.trandiv.is-loaded { opacity: 1; }
.htitle {
  display: block;
  margin: 0.0vh 0 2vh;
  width: 100%;
  height: 2px;
  border: 0;
  background-color: rgba(0,0,0,0.85);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.0s ease;
  transition-delay: 0.1s;
  will-change: transform;
}
.htitle.is-loaded { transform: scaleX(1); }

.app-main-hero-img-a { background-image: url("images/bg-etraining.jpg"); }
.app-main-hero-img-b { background-image: url("images/bg-etraining-2.jpg"); }
.app-main-hero {
  position: relative; background-size: cover; background-position: center center; background-repeat: no-repeat;
}
.app-main-hero::before {
  content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.15); pointer-events: none;
}
body.app-main-hero.dark-mode::before { background: rgba(15, 23, 42, 0.85); }
@media (max-width: 991.98px) {
  .app-main-hero { background-position: center top; }
}
@media (max-width: 767.98px) {
  .app-main-hero { background-size: cover; }
}

.app-main-hero-img-top { position: relative; }
.app-main-hero-img-top::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; opacity: 0.10; z-index: -4;
  background-image: var(--app-hero-top-bg);
  background-size: cover; background-position: center center; background-repeat: no-repeat;
}
.app-main-hero-img-top-a { --app-hero-top-bg: url("images/bg-etraining.jpg"); }
.app-main-hero-img-top-b { --app-hero-top-bg: url("images/bg-etraining-3.jpg"); }
@media (max-width: 991.98px) {
  /* Used for table/touchscreen where background image leaves gaps at the bottom */
  .app-main-hero-img-top::after { position: absolute; inset: 0; }
}

.app-header.h-wide { width: 100%; }

/* Page background effects */
.mobBackStyleC {
  position: fixed;
  top: 0;
  left: 0;
  overflow: hidden;
  z-index: -3;
  opacity: 0.25;
  background: url(images/ego_etraining.png);
  background-position: 50% 70%;
  background-size: 30vh;
  background-repeat: no-repeat;
}

.app-card-org-logo-wrap { text-align: center; margin-top: 1rem; }
.app-card-org-logo { display: inline-block; max-width: 180px; width: 100%; height: auto; }

.hero-digits { position: fixed; inset: 0; pointer-events: none; z-index: -2; overflow: hidden; }
.hero-digits span {
  position: absolute; color: rgba(140, 220, 255, 0.58); font-size: 1rem; letter-spacing: 0.25rem;
  font-family: "Consolas", "Courier New", monospace; text-shadow: 0 0 8px rgba(100, 210, 255, 0.40);
  animation: hero-digit-float 11s linear infinite;
}
.hero-digits span:nth-child(1) { left: 4%; top: 78%; animation-delay: 0s; }
.hero-digits span:nth-child(2) { left: 14%; top: 66%; animation-delay: -2s; }
.hero-digits span:nth-child(3) { left: 28%; top: 82%; animation-delay: -4s; }
.hero-digits span:nth-child(4) { left: 38%; top: 72%; animation-delay: -1s; }
.hero-digits span:nth-child(5) { left: 54%; top: 62%; animation-delay: -5s; }
.hero-digits span:nth-child(6) { left: 64%; top: 80%; animation-delay: -3s; }
@keyframes hero-digit-float {
  0% { transform: translateY(30px); opacity: 0; }
  15% { opacity: 0.9; }
  85% { opacity: 0.9; }
  100% { transform: translateY(-40px); opacity: 0; }
}
body.dark-mode .hero-digits span { color: rgba(140, 220, 255, 0.14); }
@media screen and (max-width: 991.98px) {
  .hero-digits span { font-size: 0.8rem; letter-spacing: 0.15rem; }
}

/* Basic links */
.href-blue { text-decoration: none; color: #1364b4; }
.href-blue:visited { text-decoration: none; color: #1364b4; }
.href-blue:hover { text-decoration: none; color: #1a8cff; }
.href-blue:active { text-decoration: none; color: #1a8cff; }
body.dark-mode .href-blue { text-decoration: none; color: #ffffff; }
.href-none { text-decoration: none; }
.href-none:visited { text-decoration: none; }
.href-none:hover { text-decoration: none; color: #1a8cff; }
.href-none:active { text-decoration: none; color: #1a8cff; }
body.dark-mode .href-none { text-decoration: none; color: #ffffff; }
.btn-href { padding: 0; font-weight: 500; margin-top: -4px; }
.buttons-spinwrap.btn-inline-small { display: inline-flex; vertical-align: middle; margin-left: 0.5rem; }
.buttons-spinwrap.btn-inline-small .btn {
  height: 25px; font-size: 0.9rem; padding: 0 10px 0 10px; box-shadow: none !important;
  background-color: transparent; color: var(--hex-004499);
}
.buttons-spinwrap.btn-inline-small .btn:hover { color: var(--rgb-255-155-0); }

/* Max container for main content */
.layout-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

/* Header and Navbar */
.nav-item {
  padding: 0;
}
.app-nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}
.app-header {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(37, 189, 235, 0.95));
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  position: sticky;
  padding: 0 10px 0 10px;
  top: 0;
  z-index: 1001;
}
.app-header .navbar-brand {
  padding-right: 30px;
}
.app-navbar {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.app-logo {
  color: var(--app-text-invert);
  letter-spacing: 0.04em;
  white-space: normal;
  text-transform: uppercase;
  font-size: 0.9rem;
  gap: 0.75rem;
  max-width: 28rem;
}
.app-logo:hover {
  color: var(--app-text-invert);
}
.app-logo-mark {
  flex-shrink: 0;
}
.app-logo-img {
  max-height: 50px;
  width: auto;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(15, 23, 42, 0.45));
  border-radius: 4.5px;
  box-shadow: 0 0 1px 0px white inset, 0 0 1px 0px white; /* anti-aliasing */
}
.app-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.10;
  white-space: normal;
  max-width: 20rem;
}
.app-logo-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;   /* <= key */
  overflow: hidden;
}
.app-logo-organisation {
  display: block;
  margin-top: 0.40rem;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  font-family: Helvetica, sans-serif;
  text-transform: uppercase;
  opacity: 0.95;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-nav-links .nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal;
  padding: 0.35rem 0.75rem;
}
.app-nav-links .nav-link,
.app-nav-right .nav-link {
  color: rgba(248, 250, 252, 0.88);
  font-size: 0.9rem;
}
.app-nav-links .nav-link:hover,
.app-nav-right .nav-link:hover {
  color: #ffffff;
}
.app-nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 0.40rem;
  min-width: 25rem;
}
.app-nav-links .nav-link.active {
  color: #ffffff;
  position: relative;
}
.app-nav-links .nav-link.active::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 85%;
  height: 2px;
  background-color: var(--app-primary);
  border-radius: 999px;
}
.app-navbar-toggler {
  border-color: rgba(148, 163, 184, 0.6);
  padding: 0.4rem 0.4rem;
}
.app-navbar-toggler .navbar-toggler-icon {
  background-image: none;
  position: relative;
  width: 1.2rem;
  height: 1.2rem;
}
body.eaa-mode .app-navbar-toggler {
  background-color: #fff;
}
body.eaa-mode .navbar-toggler-icon {
  filter: invert(1);
}
.app-navbar-toggler .navbar-toggler-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 25%;
  background-color: #e5e7eb;
  transform: translate(-50%, -50%);
  box-shadow: 0 -8px 0 #e5e7eb, 0 8px 0 #e5e7eb;
}
.lang-button {
  padding: 0;
  background-color: transparent;
  border: none;
}
.lang-img {
  vertical-align: middle;
  margin-bottom: 3px;
  border-radius: 4.5px;
  border: 1px solid rgb(180, 186, 192);
  max-height: 18px;
  box-shadow: 0 0 1px 0px white inset, 0 0 1px 0px white; /* anti-aliasing */
}
body.eaa-mode .lang-img { max-height: 30px; }

/* Buttons */
.app-btn {
  display: inline-block;
  padding: 0.175rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 0.525rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.app-btn-primary {
  background: var(--app-primary);
  border-color: var(--app-primary-border);
  color: var(--app-text-invert);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(5, 145, 150, 0.22);
}
.app-btn-primary:hover {
  background: #0ea5e9;
  color: #f9fafb;
}
.app-btn-primary:focus {
  background: #0ea5e9;
  color: #f9fafb;
  box-shadow: 0 6px 14px rgba(8, 133, 126, 0.42);
}
.app-btn-outline {
  background: var(--app-outline);
  border-color: var(--app-outline-border);
  color: var(--app-text-invert);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(87, 150, 139, 0.42);
}
.app-btn-outline:hover {
  background: #0ea5e9;
  color: #f9fafb;
}
.app-btn-outline:focus {
  background: #0ea5e9;
  color: #f9fafb;
  box-shadow: 0 6px 14px rgba(81, 150, 128, 0.42);
}
.app-theme-toggle {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.35);
  color: #e5e7eb;
  font-size: 0.8rem;
  padding: 0.3rem 0.7rem;
}
.app-theme-toggle:hover {
  background: rgba(15, 23, 42, 0.3);
}
.app-eaa-toggle {
  border-radius: 999px;
  border: 1px solid rgba(14, 106, 235, 0.7);
  background: rgba(9, 72, 218, 0.897);
  color: #e5e7eb;
}
.app-eaa-toggle:hover {
  background: rgba(51, 105, 233, 0.87);
}
body.eaa-mode .app-eaa-toggle {
  height: 7vh !important;
}
.eaa-icon {width: 4vh; filter: invert(1); }
body.eaa-mode .eaa-icon { width: 5vh;  }
body.dark-mode .eaa-icon { filter: invert(1); }
.eaa-logo { position: fixed; right: 20px; bottom: 20px; z-index: 9999; }
.eaa-logo-cookie { bottom: 100px; }
@media screen and (max-width: 991.98px) {
  .eaa-icon {width: 3.5vh; }
  .eaa-logo { right: 4px; bottom: 4px; }
  body.eaa-mode .eaa-logo { right: 32px; bottom: 64px; }
}


/* Main */
.app-main {
  padding-top: 2.5rem;
  padding-bottom: 2.0rem;
}
/* Background image */
.app-main-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: -1;
}
.app-main-bg-img {
  transform: translateY(-250px);
  max-height: 250px;
  min-height: 150px;
  border-radius: 1.5rem;
  height: auto;
  width: auto;
  opacity: 0.15;
  filter:
    grayscale(1)
    contrast(1.1)
    brightness(1.2)
    sepia(1)
    hue-rotate(190deg)
    saturate(3);
  mix-blend-mode: screen;
}
body.dark-mode .app-main-bg-img {
  opacity: 0.10;
}

/* Cards / Boxes */
.app-card {
  background: radial-gradient(circle at top right, rgba(5, 150, 105, 0.12), transparent 60%),
              var(--app-bg-alt);
  border-radius: 2.25rem;
  border: 1px solid var(--app-card-border);
  box-shadow: var(--app-shadow-soft);
  padding: 2rem 2.25rem;
  position: relative;
  overflow: visible; /* to avoid clipping on load */
  isolation: isolate; /* to avoid overlapping gradient colors due to ::before and keep same color effect */
}
.app-card-rev {
  background: radial-gradient(circle at top left, rgba(5, 150, 105, 0.12), transparent 60%),
  var(--app-bg-alt);
}
.app-login-card {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.08), rgba(217, 119, 6, 0.03)),
              var(--app-bg-alt);
}
.app-inner-card {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.09), rgba(217, 119, 6, 0.025)),
              var(--app-bg-alt);
}
.app-inner-card.mob-row { border-radius: 15px; }
.app-list-card {
  border-radius: 2.25rem;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.04) 30%, rgba(255, 250, 244, 0.7) 100%),
              transparent;
}
.app-list-card.mob-row { border-radius: 15px; }
.app-card-single {
  width: 100%;
}
.app-card::before {
  border-radius: 2.25rem;
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.12), transparent 50%);
  opacity: 0.8;
  pointer-events: none;
  z-index: -1; /* to avoid overlapping gradient colors due to ::before and keep same color effect */
}
.app-card > *{  /* keeps content above due to ::before z-index */
  border-radius: 1.5rem;
  position: relative;
  /* z-index: 1; */ /* Removed because it causes other elements to show behind app-card if earlier in DOM */
}
.app-peeriod {
  font-weight: 500;
  color: var(--hex-333333);
  font-style: oblique;
  padding: 0 1rem 0rem 1rem;
  margin-top: -1rem;
  margin-bottom: 0.5rem;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
/* Τίτλοι */
.app-title {
  font-size: clamp(1.8rem, 2.4vw + 1rem, 2.4rem);
  font-weight: 700;
}

/* Stat boxes */
.app-stat-box {
  background: var(--app-primary-soft);
  border-radius: 1.8rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--app-primary-border);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  min-width: 0px;
  height: 100%;
  box-shadow: 0 6px 12px rgba(67, 78, 104, 0.25);
}
.app-stat-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--app-text-muted);
  overflow-wrap: normal;
  word-break: normal;
  text-overflow: ellipsis;
  overflow: hidden;
  word-spacing: 50px;
}
/* Main card title and buttons */
.app-card-title__text { min-width: 0; }
.app-card-head {
  display: grid; grid-template-columns: 1fr auto; align-items: start;
  column-gap: 1rem; row-gap: .75rem; grid-auto-flow: row;
}
.app-card-head .app-card-title { margin: 0; }
.app-card-head .app-card-top-btn { justify-self: end; width: 100%; display: flex; justify-content: flex-end; }
.app-card-head .app-card-top-btn form { margin-left: auto; margin-bottom: 10px;}
.app-card-top-btn { grid-column: 2; }
.app-card-top-btn.app-card-top-btn-center { display: flex; width: 100%; justify-content: center; }
@media screen and (max-width: 575.98px) {
  .app-card-top-btn { grid-column: 1 / -1; justify-content: center; }
}

/* Login card */
.app-card-title {
  font-size: 1.5rem;
  font-weight: 600;
}
.app-card-title-sm {
  font-size: 1.2rem;
  font-weight: 600;
}
.app-card-subtitle {
  color: var(--app-text-muted);
}
/* Inputs */
.app-input {
  background-color: var(--app-input-bg);
  border-color: var(--app-input-border);
  color: var(--app-text-main);
  border-radius: 7.5px;
  font-size: 1rem;
  height: 40px;
}
.app-input:focus {
  background-color: var(--app-input-bg);
  border-color: var(--app-primary);
  box-shadow: 0 0 0 1px var(--app-primary-soft), 0 0 0 0.18rem rgba(5, 150, 105, 0.14);
  color: var(--app-text-main);
}
body.dark-mode .app-input::placeholder {
  color: #6b7280;
}
.app-shadow-sm {
  box-shadow: var(--bs-box-shadow-sm);
}
.form-control.app-shadow-sm:focus,
.selectbox.app-shadow-sm:focus,
select.form-select.app-shadow-sm:focus,
textarea.form-control.app-shadow-sm:focus {
  box-shadow: var(--bs-box-shadow-sm), 0 0 0.3rem .2rem rgba(var(--bs-primary-rgb), .25);
}

/* 2fa */
.code2fa{
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.code2fa__box{
  text-align: center;
  width: 3rem;
  max-width: 3rem;
  height: 3rem;
  font-size: 1.25rem;
  padding: 0;
}
.code2fa-hidden { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; left: -9999px; }
/* Mobile Responsive */
@media screen and (max-width: 575.98px) {
  .code2fa{
    gap: 0.35rem;
    justify-content: space-between;
  }
  .code2fa__box{
    width: 2.5rem;
    max-width: 2.5rem;
    height: 2.75rem;
    font-size: 1.15rem;
  }
}
/* Alert */
.app-alert {
  color: #d66b13;
  min-height: 30px;
}
.app-alert-2 {
  color: #d66b13;
  min-height: 50px;
}
.div-alert-img { border: 0px; display: inline-block; height: 15px; margin-right: 5px; }
.alert-form-div { height: 60px; display: inline-flex; align-items: center; vertical-align: middle; }

/* Form rows */
.app-card .mob-row.row.align-items-center.w100p {
  margin-top: 0.1rem;
  margin-bottom: 0.1rem;
  padding-top: 0.1rem;
  padding-bottom: 0.1rem;
  border-bottom: 0; /* For classic line seperator 1px solid rgba(15, 25, 45, 0.2); */
  border-radius: 0;
  position: relative;
}
/* Form rows */
.app-card .mob-row.row.align-items-center.w100p.small-sep {
  margin: 0px auto 0 auto; padding: 0.3rem 0 0.3rem 0;
}
.app-card .mob-row.row.align-items-center.w100p.row-short { margin-top: 0; margin-bottom: 0; padding-top: 0; }
/* Gradient line seperator */
.app-card .mob-row.row.align-items-center.w100p:not(.no-sep-mid):not(.no-sep-start):not(.small-sep)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; pointer-events: none;
  background: linear-gradient(
    to right, transparent 0%, var(--rgba-30-90-200-3) 2%, var(--rgba-30-90-200-3) 98%, transparent 100%
    );
  filter: blur(1px);
}
.app-card .mob-row.row.align-items-center.w100p.small-sep::after {
  content: ""; position: absolute; left: 0px; right: -25px; bottom: 0; height: 1px; pointer-events: none;
  background: linear-gradient(
    to right, transparent 0%, var(--rgba-15-45-100-3) 1%, var(--rgba-15-45-100-3) 99%, transparent 100%
    );
  filter: blur(0.5px);
}
.app-card .mob-row.row.align-items-center.w100p:last-of-type {
  border-bottom: 0;
}
.app-card .form-control,
.app-card select.selectbox {
  border-color: rgba(15, 23, 42, 0.18);
  background-color: rgba(255,255,255,0.95);
}
body.dark-mode .app-card .form-control,
body.dark-mode .app-card select.selectbox {
  background-color: rgba(2,6,23,0.85);
  border-color: rgba(148,163,184,0.35);
}

/* Footer */
.app-footer {
  background: radial-gradient(circle at top, rgba(37, 99, 235, 0.25), transparent 50%),
              var(--app-footer-bg);
  color: var(--app-footer-text);
}
.app-footer-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #e5e7eb;
  margin-bottom: 0.8rem;
}
.app-footer-list li + li {
  margin-top: 0.3rem;
}
.app-footer-list a {
  text-decoration: none;
  color: var(--app-footer-text);
  font-size: 0.88rem;
}
.app-footer-list a:hover {
  color: #e5e7eb;
  text-decoration: underline;
}
.app-footer-bottom {
  font-size: 0.8rem;
}
@media screen and (max-width: 991.98px) {
  /* Extra space for mobile to not hide bottom text with eaa-logo */
  .app-footer { padding-bottom: calc(1rem + 40px + env(safe-area-inset-bottom)); }
}

/* Lists column-like */
.app-rlist-cols-1 { grid-template-columns: 1fr; }
.app-rlist-cols-31 { grid-template-columns: 3fr 1fr; }
.app-rlist-cols-031 { grid-template-columns: minmax(3.5%, max-content) 3fr 1fr; }
.app-rlist-cols-0211 { grid-template-columns: minmax(2%, max-content) 2fr 1fr 1fr; }
.app-rlist-cols-04 { grid-template-columns: minmax(3.5%, max-content) 4fr; }
.app-rlist-cols-0511 { grid-template-columns: minmax(2%, auto) 5fr 1fr 1fr; }
.app-rlist-cols-0512 { grid-template-columns: minmax(2%, auto) 5fr 1fr 2fr; }
.app-rlist-cols-0412 { grid-template-columns: minmax(2%, auto) 4fr 1fr 2fr; }
.app-rlist-cols-0411 { grid-template-columns: minmax(2%, auto) 4fr 1fr 1fr; }
.app-rlist-cols-04110 { grid-template-columns: minmax(2%, auto) 4fr 1fr 1fr minmax(2%, auto); }
.app-rlist-cols-05211 { grid-template-columns: minmax(2%, auto) 5fr 2fr 1fr 1fr; }
.app-rlist-cols-08122 { grid-template-columns: minmax(2%, auto) 8fr 1fr 2fr 2fr; }
.app-rlist-cols-1111 { grid-template-columns: 1fr 1fr 1fr 1fr; }
.app-rlist-cols-11141 { grid-template-columns: 1fr 1fr 1fr 4fr 1fr; }
.app-rlist-cols-04212 { grid-template-columns: minmax(2%, auto) 4fr 2fr 1fr 2fr; }
.app-rlist-cols-0312110 { grid-template-columns: minmax(2%, auto) 3fr 1fr 2fr 1fr 1fr minmax(2%, auto); }
.app-rlist-cols-0311111 { grid-template-columns: minmax(2%, auto) 3fr 1fr 1fr 1fr 1fr 1fr; }
.app-rlist-cols-0211111 { grid-template-columns: minmax(2%, auto) 2fr 1fr 1fr 1fr 1fr 1fr; }
.app-rlist-cols-02836444 { grid-template-columns: minmax(3%, auto) 2fr 8fr 3fr 6fr 4fr 4fr 4fr; }
.app-rlist-cols-031111 { grid-template-columns: minmax(2%, auto) 3fr 1fr 1fr 1fr 1fr; }
.app-rlist-cols-311 { grid-template-columns: 3fr 1fr 1fr; }
.app-rlist-cols-111 { grid-template-columns: 1fr 1fr 1fr; }
.app-rlist-cols-rem12 { grid-template-columns: 2rem 12rem 9rem 9rem 15rem 6rem 16rem 10rem 8rem 10rem 1.5rem 1.5rem; }
.app-rlist { border: 1px solid rgba(15, 23, 42, 0.1); border-radius: 15px; overflow: hidden; }
.app-rlist.no-border { border: none; border-radius: 0; overflow: visible; }
.app-rlist.app-rlist-overflow { overflow: visible; }
.app-rlist-container-rem12 { width: auto; overflow-x: visible; max-width: 110rem; }
.app-rlist-container-rem12 .app-rlist { min-width: 100rem; }
.app-rlist__head,
.app-rlist__row {
  display: grid; gap: .75rem; align-items: center; padding: 0;
  position: relative; transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}
.app-rlist__row.app-rlist-cols-rem12 { padding: 0.3rem 0 0.3rem 0; }
.app-rlist__head { background: rgba(15, 23, 42, 0.04); font-weight: 600; height: 2rem; }
.app-rlist__head.app-rlist__head-nobg { background: transparent; }
.app-rlist__row-t { border-top: 1px solid rgba(15, 23, 42, 0.08); }
.app-rlist__row-b { border-bottom: 1px solid rgba(15, 23, 42, 0.08); }
.app-rlist__row.app-rlist__row-short { height: 2.5rem; }
.app-rlist__cell { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0; }
.app-rlist__cell-full { min-width: 0; padding: 0; }
.app-rlist__btn {
  display: block; width: 100%; text-align: left; padding: .3rem .5rem; border: 0; background: transparent;
  color: var(--hex-004499); white-space: normal;  position: relative; padding-left: 1.25rem;
}
.app-rlist__cell.row-text { cursor: default; }
.app-rlist__btn.btn-nobull { padding: 0; }
.app-rlist__row:not(.app-rlist-comment-below):not(.app-rlist-wrap):not(.app-rlist-cols-rem12):hover {
  background: rgba(37, 99, 235, 0.08);
  border-radius: 7.5px;
  transform: translateY(-1px);
  z-index: 2;
  box-shadow: 0 .5rem 1rem var(--rgba-0-0-0--0-15);
}
.app-rlist__row:not(.app-rlist-comment-below):not(.app-rlist-wrap):hover .app-rlist__btn {
  color: var(--rgb-255-155-0) !important;
}
.app-rlist__btn:focus-visible {
  outline: 2px solid var(--app-primary); outline-offset: -2px;
  background: rgba(37, 99, 235, 0.12); color: var(--rgb-255-155-0);
}
.app-rlist__btn:active { background: rgba(37, 99, 235, 0.18); color: var(--rgb-255-155-0); }
.app-rlist__btn:not(.btn-nobull)::before {
  content: "›"; position: absolute; left: .5rem; top: 50%; transform: translateY(-50%); opacity: .7;
}
.app-rlist__row.app-rlist-comment-below { font-size: 0.9rem; border: none; }
.app-rlist__row.app-rlist-wrap { padding: 0.5rem 0 0.5rem 1rem; border: none; }
.app-rlist-wrap .app-rlist__cell { white-space: unset; text-overflow: unset; }
.app-rlist__cell.list-num { text-align: right !important; }
.btn-row-remove {
  display: inline-flex; align-items: center; justify-content: center; width: 1.1rem; height: 1.1rem; font-weight: 700;
  border-radius: 25%; border: none; background: #b33f4b; color: #ffffff; font-size: 1.1rem; line-height: 1;
  padding: 0 0 0.25rem 0; margin-left: 0.25rem;
  cursor: pointer; transition: transform 0.1s ease, box-shadow 0.1s ease, opacity 0.1s ease;
}
.btn-row-remove:hover { opacity: 0.9; background: #dd0016; }
.btn-row-remove:focus-visible {
  outline: 1px solid #ffffff; outline-offset: 1px; box-shadow: 0 0 0 2px rgba(84, 53, 220, 0.6);
}
.btn-row-remove:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.app-rlist__cell.audit-log-summary {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis;
  white-space: normal; word-break: break-word; line-height: 1.35; max-height: calc(1.35em * 2); cursor: help;
}
/* Mobile: stack cells with labels */
@media screen and (max-width: 991.98px) {
  .app-rlist__head { display: none; }
  .app-rlist__head.app-rlist__head-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem .75rem;
    height: auto;
    padding: .5rem .5rem;
    border-radius: 15px;
  }
  .app-rlist__head.app-rlist__head-toolbar .app-rlist__cell {
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .app-rlist__row { grid-template-columns: 1fr !important; gap: .35rem; }
  .app-rlist__cell { white-space: normal; overflow: visible; text-overflow: unset; }
  .app-rlist__cell.list-num { display: none; }
  .app-rlist__cell.show-mob-label::before {
    content: attr(data-label) ": "; font-weight: 600; color: var(--app-text-muted);
  }
  .app-rlist-comment-below.ps-5 { padding: 1rem 0 0 0 !important; }
}

/* For multi column cases */
/* Only for course grid buttons */
.app-rlist__btn.app-rlist__btn-course:not(.btn-nobull)::before{
  top: .25rem;
  transform: none;
}
.app-rlist__btn-course {
  display: grid; grid-template-columns: 10ch 2fr 1fr 1fr; column-gap: .5rem;
  align-items: start; width: 100%;
}
.app-rlist__btn-course .cou-code { white-space: nowrap; }
.app-rlist__btn-course .cou-title { min-width: 100px; }
.app-rlist__btn-course .cou-categ { justify-self: end; white-space: nowrap;
}
@media screen and (max-width: 991.98px) {
  .app-rlist__btn-course { grid-template-columns: 1fr; row-gap: .2rem; }
  .app-rlist__btn-course .cou-categ { justify-self: start; }
}
@media screen and (max-width: 575.98px) {
  .app-rlist__row {margin: 20px 0 20px 0;}
}

/* Pagination buttons */
.app-pagination-info { text-align: center; white-space: nowrap; }

/* Smooth fadein/fadeout of cookie banner */
#cookieBanner {
  -webkit-transition: opacity 0.5s ease, visibility 0.5s ease; transition: opacity 0.5s ease, visibility 0.5s ease;
  opacity: 0; visibility: hidden; position: fixed; bottom: 0; left: 0; right: 0;
  background-color: #222; color: #fff; padding: 15px; font-size: 13px; z-index: 9999;
}
#cookieText { display: inline-block; width: 95%; font-family:Verdana; }
#cookieText a { text-decoration: none; color: #86aedb; }
#cookieContainer {
  max-width: 95%; margin: auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap;
}
.btn-cookie {
  display: inline-block; background-color: #4CAF50; color: white;
  border: none; padding: 8px 16px; cursor: pointer; border-radius: 7.5px;
}

/* E-Training brand */
.app-logo-header {
  padding-left: 5px;
  font-size: 0.75rem;
  color: rgba(248, 250, 252, 0.8);
  white-space: nowrap;
}
.app-platform-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.app-platform-logo {
  height: 22px;
  width: auto;
  display: inline-block;
}
.app-logo-footer {
  float: right;
  white-space: nowrap;
}
.hgfet-logo {
  border-radius: 4.5px;
  border: 2px solid #fff;
  margin: 0 10px 0 0px;
  max-height: 25px;
}

/* Mobile Responsive */
@media screen and (max-width: 575.98px) {
  .app-logo-organisation { font-size: 0.7rem; }
  .app-logo-img { width: auto; height: auto; max-height: 50px; }
  .app-navbar { position: relative; }
  .app-navbar-toggler { position: absolute; right: 0.75rem; top: 0.5rem; }
  .app-card { padding: 1.25rem 1.25rem; }
  .app-title { font-size: 1.65rem; }
  .app-stat-box { padding: 0.6rem 0.8rem; }
}
@media screen and (max-width: 991.98px) {
  .app-logo-header { display: none !important; }
  .app-main-bg-img { display: none; }
  .app-card { border-radius: 2.25rem; padding: 1.5rem 1.5rem; }
  .app-main { padding-top: 1.75rem; padding-bottom: 2rem; }
  .app-navbar { padding-top: 0.5rem; padding-bottom: 0.5rem; }
}
@media screen and (max-width: 991.98px) {
  .app-footer-bottom { text-align: center; }
  .app-logo-footer { float: unset; text-align: center; padding-bottom: 20px; }
}
@media screen and (min-width: 576px) and (max-width: 991.98px) {
  .app-logo-text { font-size: 0.8rem; max-width: 20rem; }
  .app-logo { max-width: 28rem; }
  .app-platform-li { display: none !important; }
}
@media screen and (max-width: 1400px) {
  .app-logo-header .app-platform-label { display: none; }
  .app-nav-right { min-width: 5rem; }
}
@media screen and (max-width: 1680px) {
  .app-nav-right { min-width: 5rem; }
}

/* Audit log listing */
.audit-log-summary {
  white-space: normal; overflow: visible; text-overflow: unset; line-height: 1.35; word-break: break-word;
}
@media screen and (max-width: 991.98px) {
  .audit-log-summary { white-space: normal; }
}

.cursor-pointer:hover { cursor: pointer; }

/* Bootstrap override */
.form-check-input:not(:checked) { background-color: rgb(255, 255, 255); }
.form-check-input:checked:focus { background-color: var(--hex-3489cd); }
.form-check-input:not(:checked):focus { background-color: rgb(239, 239, 239); }

/* Modal 2FA */
.modal2FA {
  z-index: 999;
  background: var(--rgba-192-192-192--0-75);
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity .5s ease;
  visibility: hidden;
  position: absolute;
  top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.modal2FA__bg_mandatory {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  cursor: not-allowed;
}
.modal2FA__bg_optional {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.modal2FA-state {
  display: none;
}
.modal2FA-state:checked ~ .modal2FA {
  opacity: 1;
  visibility: visible;
}
.modal2FA-state:checked ~ .modal2FA .modal2FA__inner {
  top: 0;
}
.modal2FA__inner {
  position: relative;
  margin: auto;
  background: var(--hex-ffffff);
  border-radius: 7.5px;
  padding: 50px;
  max-width: 90vw;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 0 20px var(--rgba-0-0-0--0-3);
}
.modal2FA__close {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 1em;
  height: 1em;
  cursor: pointer;
  padding: 5px;
  border-radius: 7.5px;
  border: 1px solid var(--hex-aaaaaa);
}
.modal2FA__close:after,
.modal2FA__close:before {
  content: '';
  position: absolute;
  width: 2px;
  height: 1.5em;
  background: var(--hex-cccccc);
  display: block;
  transform: rotate(45deg);
  left: 50%;
  margin: 1px 0 0 -1px;
  top: 0;
}
.modal2FA__close:hover:after,
.modal2FA__close:hover:before {
  background: var(--hex-aaaaaa);
}
.modal2FA__close:before {
  transform: rotate(-45deg);
}

/* Modal confirm dialog */
.main_modal::backdrop { background-color: rgba(0,0,0,0); transition: background-color 200ms ease; }
.main_modal {
  border: none; border-radius: 0.75rem; padding: 0; overflow-x: hidden; max-width: 95vw;
  opacity: 0; transform: translateY(-10px) scale(0.97); transition: opacity 200ms ease, transform 200ms ease;
  box-shadow: 0 0 20px 5px rgba(0, 0, 0, 0.5);
}
.main_modal[open].main_modal--visible { opacity: 1; transform: translateY(0) scale(1); }
.main_modal[open].main_modal--visible::backdrop { background: rgba(0,0,0,.5); }
.main_modal__content { padding: 2rem 2.5rem; min-width: 600px; min-height: 15vh; }
.main_modal__title { margin: 0 0 .5rem; font-size: 1.1rem; }
.main_modal__text { margin: 0 0 1rem; }
.main_modal__inner { margin: 0 0 1rem; }
.main_modal__actions { display: flex; gap: .5rem; justify-content: flex-end; }
.main_modal__actions_center { display: flex; gap: .5rem; justify-content: center; }
.main_modal__btn { padding: .5rem .75rem; border-radius: 0.525rem; border: 1px solid transparent; }
.main_modal__btn:focus { background: #3e56c2; color: #fff; }
.main_modal--slots .main_modal__content { min-height: 80vh; overflow-y: hidden; }
/* Modal confirm dialog responsive */
@media screen and (max-width: 575.98px) {
  .main_modal__content { min-width: 0; width: 90vw; max-width: 90vw; padding: 1.5rem; }
}
@media screen and (min-width: 576px) and (max-width: 991.98px) {
  .main_modal__content { min-width: 360px; }
}
@media screen and (min-width: 991px) {
  .main_modal__content { max-width: 480px; }
}

/* PDF and general use Viewing modal */
.big-modal {
  position: fixed; inset: 0; z-index: 10050; opacity: 0; pointer-events: none; transition: opacity 300ms ease;
}
.big-modal.is-open { opacity: 1; pointer-events: auto; }
.big-modal[hidden] { display: none; }
.big-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.65); }
.big-modal__dialog {
  position: relative; margin: 2.5vh auto; width: 95vw; height: 95vh;
  background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}
.big-modal__frame { width: 100%; height: 100%; border: 0; }
/* PDF modal close button */
.big-modal__close {
  position: absolute; top: 1px; right: 1px; z-index: 3;
  width: 24px; height: 24px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.65); color: #fff; cursor: pointer;
  border: 0; font-size: 20px; line-height: 1; text-align: center;
  display: flex; align-items: center; justify-content: center;
}
.big-modal__close:hover { background: rgba(0, 0, 0, 0.78); }
@media screen and (max-width: 767.98px) {
  .big-modal__dialog { width: 100vw; height: 100vh; margin: 0; border-radius: 0; }
}
/* PDF loading overlay + spinner */
.big-modal__loading {
  opacity: 1;
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  transition: opacity 120ms ease;
}
.big-modal__loading[hidden] { display: flex; opacity: 0; }
.big-modal__spinner {
  width: 44px; height: 44px; border-radius: 25%;
  border: 4px solid rgba(0,0,0,0.15);
  border-top-color: rgba(0,0,0,0.65);
  animation: pdfspin 0.9s linear infinite;
}
@keyframes pdfspin { to { transform: rotate(360deg); } }
.big-modal--video .big-modal__dialog {
  width: min(92vw, 1400px); height: min(88vh, 900px); margin: 4vh auto; top: auto;
  display: flex; align-items: stretch; justify-content: center; background: #000;
}
.big-modal--video #video-watch-player-wrap {
  width: 100%; height: 100%; display: flex; flex-direction: column; min-width: 0; min-height: 0;
}
.big-modal--video .video-modal__player {
  width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; display: block;
}

/* Form modal (HTML content modal) */
.form-modal {
  position: fixed; flex-direction: column; inset: 0; z-index: 10050;
  opacity: 0; pointer-events: none; transition: opacity 300ms ease;
}
.form-modal.is-open { opacity: 1; pointer-events: auto; }
.form-modal[hidden] { display: none; }
.form-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.65); }
.form-modal__dialog {
  position: relative; margin: 2.5vh auto; width: 95vw; height: 95vh; background: #fff; border-radius: 12px;
  overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.4); display: flex; flex-direction: column;
}
.form-modal__narrow .form-modal__dialog { width: 72vw; max-width: 900px; }
/* Iframe takes the remaining space under the header */
.form-modal__frame {
  position: relative; z-index: 1; flex: 1 1 auto; width: 100%; height: 100%; border: 0; display: block;
}
.form-modal__head {
  position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 10px 40px 10px 14px; border-bottom: 1px solid rgba(0,0,0,0.08); background: #fff;
}
.form-modal__title {
  font-size: 1rem; font-weight: 600; line-height: 1.2; margin: 0; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.form-modal__body { position: relative; z-index: 1; flex: 1 1 auto; overflow: auto; padding: 14px; }
.form-modal__close {
  position: absolute; top: 6px; right: 6px; z-index: 4; width: 28px; height: 28px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.65); color: #fff; cursor: pointer; border: 0; font-size: 20px; line-height: 1;
  text-align: center; display: flex; align-items: center; justify-content: center;
}
.form-modal__close:hover { background: rgba(0, 0, 0, 0.78); }
@media screen and (max-width: 767.98px) {
  .form-modal__dialog { width: 100vw; height: 100vh; margin: 0; border-radius: 0; }
  .form-modal__head { padding: 10px 44px 10px 12px; }
  .form-modal__body { padding: 12px; }
}
/* FORM loading overlay + spinner */
.form-modal__loading {
  opacity: 1;
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  transition: opacity 120ms ease;
}
.form-modal__loading[hidden] { display: flex; opacity: 0; }
.form-modal__spinner {
  width: 44px; height: 44px; border-radius: 25%;
  border: 4px solid rgba(0,0,0,0.15);
  border-top-color: rgba(0,0,0,0.65);
  animation: formspin 0.9s linear infinite;
}
@keyframes formspin { to { transform: rotate(360deg); } }

/**/
/**/
/**/
/**/
/**/
/**/
/**/
/**/
/**/
/**/
/**/
/**/
/**/
/**/
/**/
/**/
/**/
/**/
/**/
/**/
/**/
/**/
/**/
/**/
/**/
/**/

/* Schedule slots add button and tags */
.sch_professor_btn { height: 35px; white-space: nowrap; }
.sch_classroom_ver_btn { height: 35px; white-space: nowrap; }
.sch-tags-wrap {
  display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; min-height: 30px;
}
.sch-item {
  display: flex; align-items: center; gap: .5rem; padding: .35rem .6rem; min-height: 2.1rem; white-space: nowrap;
  border: 1px solid rgba(15, 23, 42, 0.15); border-radius: 9px; box-sizing: border-box; line-height: 1.2;
}
.sch-item { background: rgba(37, 99, 235, 0.08); color: inherit; }
.sch-item-label { width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sch-item-remove {
  border: 0; background: transparent; font-weight: 700; padding: 0 0.25rem; color: rgba(255, 0, 0, 0.5);
}
.sch-course-tag {
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto auto; gap: 2px 8px;
  align-items: start; padding: 4px 6px; user-select: none; white-space: normal; position: relative;
  background: var(--sch-color, #e9eef8); border-radius: 9px; border: 1px solid var(--app-card-border);
  color: var(--sch-text-color, #111); font-size: 0.85rem; line-height: 1.3; cursor: pointer;
}
.wkcal-slot--compact .sch-course-tag__label {
  white-space: nowrap; display: block; -webkit-line-clamp: unset; max-height: none;
}
.wkcal-slot--compact .sch-course-tag { height: 53px; line-height: 1.35; }
.sch-course-tag__dragging { cursor: grabbing; }
.sch-course-tag__label {
  overflow: hidden; text-overflow: ellipsis; white-space: normal; flex: 1; color: inherit;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; max-height: calc(2 * 1.2em);
}
.sch-course-tag__remove {
  position: absolute; bottom: 0.20rem; right: 0.20rem; line-height: 1; z-index: 2;
}
.sch-course-tag__line {
  grid-column: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  inline-size: 100%; min-inline-size: 0;
}
.sch-course-tag__line.sch-course-tag__line--1 {
  font-weight: inherit; hyphens: auto; overflow-wrap: anywhere; word-break: normal;
}
.sch-course-tag__line.sch-course-tag__line--1 {
  white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.sch-course-tag__line--2, .sch-course-tag__line--3 { font-weight: normal; white-space: nowrap; }
.sch-course-tag__type { margin-right: 3px; }
.sch-course-tag__code { opacity: 0.85; white-space: nowrap; hyphens: none; overflow-wrap: normal; word-break: normal; }
.sch-course-tag__class { margin-right: 3px; }
.sch-course-tag__prof { opacity: 0.95; font-style: italic;}
.wkcal-slot--compact .sch-course-tag__line--2 { display: none; }
.wkcal-slot--compact .sch-course-tag__line--3 { display: none; }
/**/
/**/
.wkcal-slot--occupied {
  /* ###- TO-DO visual hint slot has a course */
}
/* Hover effect for course tags */
.sch-course-tag {
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease, border-color 120ms ease;
  will-change: transform;
}
.sch-course-tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
  filter: brightness(0.985);
  border-color: rgba(0,0,0,0.18);
}
/* Hide browser focus ring on slots unless it is a selection */
.wkcal-slot:focus:not(.wkcal-slot--selected) {
  outline: none; box-shadow: none;
}
/* Selected blue outline even when hovered */
.wkcal-slot--selected,
.wkcal-slot--selected:hover,
.wkcal-slot[aria-selected="true"],
.wkcal-slot[aria-selected="true"]:hover {
  outline: 2px solid #0d6efd; outline-offset: -2px;
}
/* Hover dashed outline only when slot is not selected */
.wkcal-slot:hover:not(.wkcal-slot--selected):not([aria-selected="true"]) {
  outline: 2px dashed rgba(0, 0, 0, 0.20); outline-offset: -2px;
}
/* Cancel hover dashed outline when pointer is on a tag/remove button */
.wkcal-slot:hover:not(.wkcal-slot--selected):not([aria-selected="true"]):has(.sch-course-tag:hover),
.wkcal-slot:hover:not(.wkcal-slot--selected):not([aria-selected="true"]):has(.sch-course-tag__remove:hover) {
  outline: none;
}
/* Avoid selecting text on drag / mouse down */
.wkcal-no-select { user-select: none; -webkit-user-select: none; }

@media screen and (max-width: 991.98px) {
  .sch-item-label { max-width: 100px; }
  .sch-item { min-height: 2.4rem; padding: .45rem .7rem; }
}

/* External course selector */
.ext-wrap { display: grid; gap: 0.75rem; }
.ext-top { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.ext-top .selectbox { min-width: 260px; height: 35px; }
@media screen and (max-width: 991.98px) {
  .ext-top .selectbox { min-width: 100%; }
}

/* Course professors selections as boxes  */
.professors-tags-wrap { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
.mob-row-professors .mob-col-input { margin-top: 0.25rem; }
.professors-select-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.professor-tag {
  display: flex; align-items: center; gap: .5rem; padding: .35rem .6rem; min-height: 2.1rem; white-space: nowrap;
  border: 1px solid rgba(15, 23, 42, 0.15); border-radius: 9px; box-sizing: border-box; line-height: 1.2;
  width: 300px; font-size: 0.9rem; position: relative; background-color: var(--rgba-140-210-210-2);
}
.professor-tag-name { max-width: 300px; overflow: hidden; text-overflow: ellipsis; }
.professor-tag-remove {
  background: transparent; font-weight: 700; color: rgba(255, 0, 0, 0.5);
  border: 0; position: absolute; right: 0.1rem;
}
.ajax-select-search { display: inline-block; min-width: 300px; }
.professors-search-results { display: none; width: 100%; }
.professors-search-results.professors-search-results--visible { display: block; }
@media screen and (min-width: 576px) {
  .professors-select-row { flex-wrap: nowrap; align-items: center; }
}
@media screen and (max-width: 575.98px) {
  .professors-select-row { flex-direction: column; align-items: flex-start; }
  .professor-tag-name { max-width: 100%; }
  .ajax-select-search { display: block; min-width: 100%; }
}

/**/
/**/
/**/
/**/
/**/
/**/
/**/
/**/
/**/
/**/
/**/
/**/
/**/
/**/
/**/
/**/
/**/
/**/
/**/
/**/
/**/
/**/
/**/
/**/
/**/
/**/

/* Small Week Calendar */
.wkcal-wrap {
  padding: 5px; border: 1px solid var(--app-card-border); border-radius: 4.5px; background: var(--app-bg-alt);
}
.wkcal-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.wkcal-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.wkcal-legend-txt { font-size: 0.85rem; color: var(--app-text-muted); margin-right: 10px; }
.wkcal-dot { width: 10px; height: 10px; border-radius: 99px; display: inline-block; }
.wkcal-dot--constraint { background: rgba(210, 140, 140, 0.75); border: 1px solid rgba(210, 140, 140, 1); }
.wkcal-dot--preference { background: rgba(140, 210, 210, 0.75); border: 1px solid rgba(140, 210, 210, 1); }
.wkcal-btn { white-space: nowrap; }
.wkcal-scroll {
  overflow-x: auto; overflow-y: hidden; padding-bottom: 2px; -webkit-overflow-scrolling: touch; touch-action: pan-x;
}
/* Grid: 1st column = time labels, 7 columns = days (Mon...Sun) */
.wkcal-grid {
  display: grid;
  min-width: 560px; /* force scroll on smaller screens */
  gap: 2px;
  touch-action: auto;
}
#wkcal-small {
  grid-auto-rows: 24px; /* header row */
  grid-template-rows: 24px; /* slot rows */
}
#wkcal-big {
  grid-auto-rows: 360px; /* header row (4 * 80) + 40 */
  grid-template-rows: 24px; /* slot rows */
}
/* Prevent text selection on dblclick and drag inside the calendar grid */
#wkcal-big, #wkcal-big .wkcal-cell, #wkcal-big .wkcal-slot, #wkcal-big .wkcal-cell--time, #wkcal-big .wkcal-cell--head {
  user-select: none; -webkit-user-select: none;
}
.wkcal-grid-7 { grid-template-columns: 44px repeat(7, minmax(64px, 1fr)); }
.wkcal-grid-6 { grid-template-columns: 54px repeat(6, minmax(74px, 1fr)); }
.wkcal-grid-5 { grid-template-columns: minmax(44px, 54px) repeat(5, minmax(89px, 1fr)); }
.wkcal-grid-4 { grid-template-columns: 102px repeat(4, minmax(112px, 1fr)); }
.wkcal-grid-3 { grid-template-columns: 149px repeat(3, minmax(149px, 1fr)); }
.wkcal-grid-2 { grid-template-columns: 224px repeat(2, minmax(224px, 1fr)); }
.wkcal-grid-1 { grid-template-columns: 448px repeat(1, minmax(448px, 1fr)); }
.wkcal-cell--time { display: flex; flex-direction: column; justify-content: center; line-height: 1.5; }
.wkcal-cell--time.wkcal-cell--lunch { background-color: var(--rgb-255-245-230); }
.wkcal-time-start, .wkcal-time-end { font-weight: 600; }
.wkcal-time-mid { font-size: 0.85em; opacity: 0.85; }
.wkcal-cell { border: 1px solid var(--app-card-border); background: var(--app-input-bg); border-radius: 4.5px; }
.wkcal-cell--head {
  background: var(--app-primary-soft); border-color: var(--app-primary-border); font-size: 0.85rem;
  color: var(--app-text-main); display: flex; align-items: center; justify-content: center; font-weight: 600;
}
.wkcal-cell--time {
  background: var(--app-bg-alt); font-size: 0.80rem; color: var(--app-text-muted);
  display: flex; align-items: center; justify-content: center;
}
.wkcal-slot { cursor: default; position: relative; }
.wkcal-slot:focus { outline: 1px solid var(--app-primary); outline-offset: 0px; }
fieldset:disabled .wkcal-slot:focus { outline: none; }
.wkcal-slot.wkcal-slot--constraint:focus { outline: none !important; }
.wkcal-slot.wkcal-slot--preference:focus { outline: none !important; }
/* Classes toggled with JS */
.wkcal-slot--constraint { background: rgba(210, 140, 140, 0.2); border-color: rgba(210, 140, 140, 0.6); }
.wkcal-slot--preference { background: rgba(140, 210, 210, 0.2); border-color: rgba(140, 210, 210, 0.6); }
/* On overlap stand out to be more visible */
.wkcal-slot--both { background: rgba(255, 155, 0, 0.18); border-color: rgba(255, 155, 0, 0.65); }
@media screen and (min-width: 992px) {
  .wkcal-grid { min-width: 0; }
}
/* Drag and Drop style selector */
.wkcal-slot--selected {
  outline: 2px solid var(--app-primary); outline-offset: -2px; box-shadow: inset 0 0 0 9999px rgba(0, 0, 0, 0.06);
}
/* Disable all interactions when calendar is disabled */
.wkcal-wrap.is-disabled { opacity: 0.55; }
.wkcal-wrap.is-disabled .wkcal-grid { pointer-events: none; user-select: none; }
/* Show time in every slot */
.wkcal-slot:not(.wkcal-slot-empty)::after {
  content: attr(data-time); font-size: 0.80rem; opacity: 0.35; pointer-events: none;
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.wkcal-slot:not(.wkcal-slot-empty)::after { display: none; }
/* Mobile calendar narrow columns taller rows */
@media screen and (max-width: 767.98px) {
  .wkcal-grid {
    min-width: 1044px; /* 64px + 7 * 140px  */
    grid-auto-rows: 160px;
  }
  .wkcal-scroll {
    -webkit-overflow-scrolling: touch;
  }
  .wkcal-cell--head { font-size: 0.72rem; }
  .wkcal-cell--time {
    font-size: 0.72rem;
    position: sticky;
    left: 0;
    z-index: 5;
    background: var(--app-bg-alt);
    box-shadow: 6px 0 0 rgba(0,0,0,0.06);
  }
  .wkcal-cell--time.wkcal-cell--time.fw-semibold,
  .wkcal-cell--time.wkcal-cell--time.wkcal-cell--time {
    z-index: 6;
  }
}

/* Monthly calendar */
.wkcal-grid-month { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.app-card > .wkcal-scroll { border-radius: 22.5px; }
.wkcal-slot-month {
  min-height: 2rem; align-items: stretch; justify-content: flex-start; flex-direction: column; padding: 0.45rem;
}
#wkcal-big.wkcal-grid-month { grid-auto-rows: 100px; }
.wkcal-slot-month--empty { background: rgba(0, 0, 0, 0.03); }
.wkcal-month-daynum { flex: 0 0 auto; font-weight: 600; margin-bottom: 0.35rem; }
.wkcal-month-body { display: flex; flex-direction: column; gap: 0.25rem; }
.wkcal-month-more { font-size: 0.85rem; }
.wkcal-slot-month--today { background: var(--hex-edfced); }
.wkcal-slot-month--edit { background: var(--hex-f2e7e2); }
.wkcal-month-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 0.25rem; margin-bottom: 0.2rem;
}
@media (max-width: 767.98px) {
  .wkcal-slot-month { min-height: 6rem; padding: 0.35rem; }
  .wkcal-month-daynum { font-size: 0.95rem; }
}
.month-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; margin: 0.5rem 0.5rem; padding: 0.5rem 0.5rem; border-radius: 15px;
}
.month-nav__btn {
  min-width: 2.5rem; height: 2.5rem; border: 1px solid #d8dee6; border-radius: 0.75rem;
  background: var(--hex-ffffff); font-size: 1.2rem; line-height: 1;
}
.month-nav__title { flex: 1 1 auto; text-align: center; font-weight: 600; }
.sch-holiday-tag {
  flex: 0 1 auto; max-width: calc(100% - 2rem); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  border-radius: 6px; padding: 0 0.35rem; font-size: 0.7rem; line-height: 1.25; background: #ffe7a8;
  color: #5f4700; border: 1px solid #efd27a; text-align: right;
}
.sch-holiday-tag--preview { cursor: default; }
.sch-holiday-tag--preview { margin-left: auto; }
.sch-course-tag {
  display: block; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  border-radius: 6px; padding: 0.1rem 0.4rem; font-size: 0.72rem; line-height: 1.3;
  color: #1f2d1f; border: 1px solid rgba(0, 0, 0, 0.08); text-align: center;
}
.sch-course-tag--preview { cursor: default; margin: 0; cursor: pointer; }
/**/
/**/
/**/

/* From elements (input, select, radio, checkbox, textarea, button */
button, input[type="button"], input[type="submit"] {
  /* margin: 7px; */
  /* padding: 5px; */
  cursor: pointer;
  outline: none !important;
  border-radius: revert;
}
button:disabled, input[type="button"]:disabled, input[type="submit"]:disabled {
  cursor: auto;
  visibility: hidden;
}
input,
select,
textarea {
  outline: none !important;
  transition: box-shadow 0.2s ease;
  background-color: var(--hex-ffffff);
  border: 1px solid var(--hex-aaaaaa);
  color: var(--hex-000000);
  border-radius: 7.5px;
  font-size: 1rem;
  line-height: 1.2;
  box-sizing: border-box;
}
input, select { height: 28px; }
input[type="file"]::file-selector-button {
  cursor: pointer;
}
input[type="file"]::-webkit-file-upload-button {
  cursor: pointer;
}
input.form-control::placeholder { color: #b9b9b9; font-size: clamp(13px, 2vw, 14px); }
input.form-control::-webkit-input-placeholder { color: #b9b9b9; font-size: clamp(13px, 2vw, 14px);}
input.form-control::-moz-placeholder { color: #b9b9b9; font-size: clamp(13px, 2vw, 14px); }
input.form-control:-ms-input-placeholder { color: #b9b9b9; font-size: clamp(13px, 2vw, 14px); }
input.form-control:-moz-placeholder { color: #b9b9b9; font-size: clamp(13px, 2vw, 14px); }
input.form-control:focus::placeholder { color: transparent; }
input.form-control:focus::-webkit-input-placeholder { color:transparent; }
input.form-control:focus:-moz-placeholder { color:transparent; }
input.form-control:focus::-moz-placeholder { color:transparent; }
input.form-control:focus:-ms-input-placeholder { color:transparent; }
input:read-only {
  background-color: rgb(233, 236, 239);
}
input:focus:read-only {
  background-color: rgb(233, 236, 239);
}
select.disabled {
  appearance: none;
  background-color: var(--rgba-0-0-0--0-03) !important;
  border-color: var(--rgb-198-206-216) !important;
  color: rgb(33, 37, 41);
  box-shadow: none !important;
}
input.form-control:disabled::placeholder { color: transparent; }
input.form-control:disabled { background-color: var(--rgba-0-0-0--0-03); box-shadow: none !important; }
input.form-control:read-only { background-color: var(--rgba-0-0-0--0-03); box-shadow: none !important; }
select.form-control:disabled { background-color: var(--rgba-0-0-0--0-03); box-shadow: none !important; }
.select-w-max { width: 100%; }
select.no-border { border: none !important; }
textarea.form-control:disabled { background-color: var(--rgba-0-0-0--0-03); box-shadow: none !important; }
textarea.form-control:read-only { background-color: var(--rgba-0-0-0--0-03); box-shadow: none !important; }
@media screen and (min-width: 576px) {
  select.select-w-short, .mob-col-input select.select-w-short { width: 200px; max-width: 100%; }
  select.select-w-300, .mob-col-input select.select-w-300 { width: 300px; max-width: 100%; }
}
span.input-like {
  display: block; min-height: 35px; width: 100%; border-radius: 7.5px; padding: 5px 5px 5px 5px;
  border: 1px solid var(--rgba-0-0-0--0-15);
}
span.input-like-disabled { background-color: var(--rgba-0-0-0--0-03); border: 1px solid var(--rgba-0-0-0--0-03); }
span.input-message { padding: 5px 5px 20px 5px; min-height: 100px; }
.input-required-gate { /* Hidden field but focusable */
  position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none;
}

input.form-control.no-shadow, .selectbox.no-shadow { box-shadow: none !important; }
input.form-control.w100p, .selectbox.form-control.w100p { width: 100% !important; }
input.form-control.oval5, .selectbox.oval3 { border-radius: 4.5px !important; }
input.form-control.field-red, .selectbox.field-red { box-shadow: 0 0 0.2rem var(--bs-danger) !important; }
.mob-row.field-disabled-white input.form-control:read-only,
.mob-row.field-disabled-white select.selectbox:disabled,
.mob-row.field-disabled-white textarea.form-control:read-only,
.mob-row.field-disabled-white span.input-like {
  background-color: var(--rgb-245-255-255) !important;
}
body.dark-mode select { color: floralwhite; }

.search-input {
  background-image: url(images/searchicon2.png);
  background-position: 8px 8px; background-repeat: no-repeat; padding-left: 35px; margin-bottom: 5px; font-size: 0.9rem;
}
body.dark-mode .search-input { background-image: url(images/searchicon2-dark.png); }

/* Fix checkbox labels alignment when wrapping text and font color */
.form-check-label {
  display: inline-grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.5rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.small-sep .form-check-label { margin-bottom: auto; }
.form-check-label input[type="checkbox"] { margin-top: 0.2em; }
.form-check-label:has(.form-check-input:not(:disabled)):hover { color: var(--rgb-255-155-0); }
.form-check-label:has(.form-check-input:disabled) { cursor: default; }

.crop-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

/* Required field mark */
.required {
  display: inline-flex;
  align-items: flex-start;
  gap: .25rem;
}
.required::before {
  display: none; /* the asterisk is at the right of the input/select fields */
  content: "*";
  color: var(--bs-danger);
  float: none;
  margin: 0.25em 0.25em 0 0;
  flex: 0 0 auto;
  line-height: 1.2;
}
.required-field::after{
  content: "*";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: -.5rem;
  color: var(--bs-danger);
  font-weight: 700;
  pointer-events: none;
}
.required-column::after{
  content: "*";
  position: relative;
  transform: translateY(-50%);
  right: -.5rem;
  color: var(--bs-danger);
  font-weight: 700;
  pointer-events: none;
}
.no-sep-start .required-field::after { top: 70%; }
.no-sep-end .required-field::after { top: 40%; }

/* Dynamic rows/columns table-like */
.mob-bar {
  margin: 0 auto 0 auto;
  padding: 0 5px 0 5px;
  border-radius: 22.5px;
}
.mob-row {
  display: flex;
  flex-wrap: nowrap;
  margin: 0.50rem auto 0.50rem auto;
  padding: 0 10px 0 10px;
  border-radius: 7.5px;
  align-items: center;
}
.mob-row.mob-row-double { padding: 0; }
.mob-row.no-sep-mid { margin: 0.15rem auto 0.15rem auto; }
.mob-row.small-sep { margin: 0.25rem auto 0.25rem auto; }
.mob-row.no-sep-start { margin: 1.25rem auto 0.15rem auto; }
.mob-row.no-sep-end { margin: 0.15rem auto 1.25rem auto; }
.mob-row.no-sep-mid .mob-col-label { padding-top: 0.15rem; padding-bottom: 0.15rem; }
.mob-row.small-sep .mob-col-label { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.mob-row.no-sep-start .mob-col-label { padding-top: 1.5rem; padding-bottom: 0.15rem; }
.mob-row.no-sep-end .mob-col-label { padding-top: 0.15rem; padding-bottom: 1.5rem; }
.mob-row.no-sep-mid .mob-col-input { padding-top: 0.15rem; padding-bottom: 0.15rem; }
.mob-row.small-sep .mob-col-input { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.mob-row.no-sep-start .mob-col-input { padding-top: 1.5rem; padding-bottom: 0.15rem; }
.mob-row.no-sep-end .mob-col-input { padding-top: 0.15rem; padding-bottom: 1.5rem; }
.mob-row.mob-row-sm { margin: 0rem auto 0rem auto; }
.mob-row-checkboxes .mob-col-input { margin-top: 0.5rem; }
.mob-row-checkboxes:is(.small-sep, .no-sep-start, .no-sep-mid, .no-sep-end) .mob-col-input {
  margin-top: 0.25rem;
}
.mob-col-label {
  flex: 1;
  padding: 1rem;
  padding-right: 0.5rem;
  text-align: right;
  align-self: flex-start;
  font-weight: 600;
  color: var(--app-text-muted);
}
.mob-col-label.mob-col-label-2 { flex: 1.5; }
.mob-col-input {
  flex: 3;
  padding: 0.5rem;
}
.mob-col-input-free {
  flex: 3;
  padding: 0.5rem;
}
/* width and box to avoid div overflow */
.mob-col-input input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.mob-col-input select,
.mob-col-input textarea {
  width: 100%;
  box-sizing: border-box;
}
.mob-col-input input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.mob-col-input select {
  height: 35px;
}
.mob-col-input select.select--auto { width: auto; }
.mob-col-input select.select--w60 { width: 60px; }
.mob-col-input select.select--w50p { width: 50% !important; }
.mob-col-input select.select--w90p { width: 90%; }
.mob-col-input select.select--inline { display: inline; }
.mob-col-input input.form-control.w40p { width: 40% !important; display: inline-block; vertical-align: middle; }
.mob-col-input input.form-control.w40p + input.form-control.w40p { margin-left: 0.5rem; }
.mob-col-input input[type="password"] { height: 35px; }
.mob-col-input input[type="checkbox"] { width: 20px; height: 20px; }
.mob-col-input { min-width: 0; } /* prevent overflow for flex */
.mob-col-fullspan {
  flex: 1 0 100%;
  padding: 0.5rem;
  text-align: center;
}
.mob-col-fullspan-left {
  display: flex;
  flex: 1 0 100%;
  padding: 0.5rem;
  text-align: left;
}
.mob-col-threespan {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}
.mob-row.mob-row-double form { display: contents; }
.mob-row.mob-row-double .mob-col-input  { flex: 4; }
.mob-row.mob-row-triple form { display: contents; }
.mob-row.mob-row-triple .mob-col-input  { flex: 6; }
.mob-row.mob-row-four form { display: contents; }
.mob-row.mob-row-four .mob-col-input  { flex: 8; }
.mob-row.mob-row-compact { margin: 5px 0 5px 0; }

.mob-row.mob-row-single { padding: 0; }
.mob-row.mob-row-single .mob-col-input select,
.mob-row.mob-row-single .mob-col-input .selectbox {
  width: 100%;
  max-width: 100%;
}
.mob-row.row-title { border-radius: 15px !important; width: 75%; }

/* Mobile */
@media screen and (max-width: 575.98px) {
  .mob-row {
    flex-wrap: wrap;
    flex-direction: column;
  }
  .mob-col-label,
  .mob-col-input {
    width: 100%;
    flex: 1 1 100%;
    padding: 0.5rem 0;
    text-align: left;
  }
}
/* Mobile */
@media screen and (min-width: 576px) {
  .mob-col-threespan .mob-col { flex: 0 0 auto; }
  .mob-col-threespan .mob-col:nth-child(1) { flex-basis: 33%; }
  .mob-col-threespan .mob-col:nth-child(2) { flex-basis: 34%; }
  .mob-col-threespan .mob-col:nth-child(3) { flex-basis: 33%; }
  .mob-row.mob-row-single {
    display: grid; grid-template-columns: clamp(7rem, 10vw, 7.5rem) minmax(0, 1fr);
    column-gap: 6px; row-gap: 2px; align-items: center;
  }
  .mob-row.mob-row-single .mob-col-label,
  .mob-row.mob-row-single .mob-col-input {
    width: auto; flex: none; min-width: 0;
  }
  .mob-row.mob-row-single .mob-col-label { align-self: center; }
}

/* Behave like a 2x2 table without overflow */
@media screen and (min-width: 576px) and (max-width: 767.98px) {
  .mob-row.mob-row-double {
    grid-template-columns: clamp(6rem, 30vw, 7.5rem) minmax(0, 1fr);
    display: grid; column-gap: 6px; row-gap: 6px; align-items: center;
  }
  .mob-row.mob-row-double .mob-col-label,
  .mob-row.mob-row-double .mob-col-input {
    width: auto; flex: none; min-width: 0;
  }
}
@media screen and (min-width: 768px) {
  .mob-row.mob-row-double {
    grid-template-columns:
      clamp(7rem, 10vw, 7.5rem) minmax(0, 1fr)
      clamp(7rem, 10vw, 7.5rem) minmax(0, 1fr);
    display: grid; column-gap: 3px; row-gap: 2px; align-items: center;
  }
  .mob-row.mob-row-double .mob-col-label,
  .mob-row.mob-row-double .mob-col-input {
    width: auto; flex: none; min-width: 0;
  }
  div.flex-column { margin-top: 0; }
}
/* Ensure selects cannot overflow their cell */
.mob-row.mob-row-double .mob-col-input select,
.mob-row.mob-row-double .mob-col-input .selectbox {
  width: 100%; max-width: 100%;
}
/* Improve wrapping for long labels (keeps right-alignment on desktop) */
/* .mob-col-label { line-height: 1.25; overflow-wrap: anywhere; hyphens: auto; */
}
@media screen and (max-width: 575.98px) {
  .mob-col-label { line-height: 1.25; }
}
@media screen and (min-width: 576px) {
  .mob-row.mob-row-double .mob-col-label { align-self: center; }
}

.msg-toggle .btn { font-weight: 600; }
.msg-toggle .btn { border-radius: 18px; }
.msg-toggle--blue .btn {
  border-color: rgba(var(--bs-primary-rgb), 0.35); color: rgba(var(--bs-secondary-rgb), 0.90);
  background-color: transparent; font-weight: 600;
}
.msg-toggle--blue .btn-check:checked + .btn {
  border-color: rgba(var(--bs-primary-rgb), 0.65);
  background-color: rgba(var(--bs-primary-rgb), 0.14);
  color: rgba(var(--bs-primary-rgb), 1);
}
.msg-toggle--blue .btn:hover {
  border-color: rgba(var(--bs-primary-rgb), 0.55); background-color: rgba(var(--bs-primary-rgb), 0.08);
}
.msg-toggle--blue .btn:focus-visible {
  outline: 2px solid rgba(var(--bs-primary-rgb), 0.65); outline-offset: 2px; box-shadow: none;
}

.selectbox {
  outline: none !important;
  border: 1px solid var(--hex-cccccc);
  border-radius: 7.5px;
  height: 35px;
  min-width: 3vw;
  padding-left: 5px;
  /* background-color: transparent; */
  font-size: 1rem; /* match bootstrap form-control */
}
.selectbox:focus { /* match bootstrap form-control */
  border-color: var(--bs-primary);
  box-shadow: 0 0 0.2rem .15rem rgba(var(--bs-primary-rgb), .25);
}

.reset-button {
  opacity: 0;
  -webkit-transition: opacity 0.5s ease, visibility 0.5s ease;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#div-mymessage {
  z-index: 25; position: fixed; background-color: var(--hex-ffffff); bottom: 1%; left: 1%;
  transition: visibility 0.3s linear, opacity 0.6s linear, bottom 0.4s linear; border: 1px solid var(--hex-3489cd);
  border-radius: 15px; min-width: 20rem; min-height: 7vh; max-width: 40rem;
}
#div-mymessage .msg-close { padding-right: 5px; float: right; cursor: pointer; }
#div-mymessage .msg-message { margin: 2vh 1vh 1vh 1vh; text-align: center; color: var(--hex-004499); }

/* Sticky Save/Reset buttons at bottom when form is long */
.js-save-stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1099; padding: 0.75rem; width: 100%;
  background: rgba(255, 255, 255, 0.95); border-top: 1px solid rgba(0, 0, 0, 0.12); backdrop-filter: blur(6px);
}
.js-save-stickybar__inner {
  width: 100%; margin: 0 auto; display: flex; justify-content: center; gap: 0.5rem;
  flex-direction: column; align-items: center;
}
.js-save-stickybar.is-hidden { display: none; }
@media screen and (max-width: 575.98px) {
  .js-save-stickybar__inner { justify-content: stretch; }
  .js-save-stickybar__inner .btn { width: 100%; }
}

/* Various single case styles to override usual */
.txtleft { text-align: left; }
.txtright { text-align: right; }
.txtcenter { text-align: center; }
.w50p { width: 50%; }
.w75p { width: 75%; }
.selectbox.w75p { width: 75%; }
.w90p { width: 90%; }
.w95p { width: 95%; }
.w100p { width: 100%; }
.selectbox.w100p { width: 100%; }
.selectbox.w50 { width: 50px; min-width: 2vw; }
.w150 { width: 150px; }
.w170 { width: 170px; }
.w220 {width:220px;}
.mobw75p { width: 75%; }
.h-1 { height: 1px; }
.h25 { height: 25px; }
.h30 { height: 30px; }
.h35 { height: 35px; }
.btn.h35 { padding: 0.1rem 0.5rem 0.1rem 0.5rem; }
.h36 { height: 36px; }
.h40 { height: 40px; }
.h50 { height: 50px; }
.mh40 { min-height: 40px; }
.h100p { height: 100%; }
.mobh20 { height: 20px; }
.mobh30 { height: 30px; }
.div-empty:empty { display: none; }
.brd-collsep { border-collapse: separate; }
.brd-sp0 { border-spacing: 0px; }
.brd { border: 1px solid #000 !important; } /* for quick testings */
.brd0 { border: 0; }
.brd1 { border-width: 1px; }
.brd1-lt { border: 1px solid #ccc;}
.brad-10 { border-radius: 15px;}
.brad-20 { border-radius: 30px;}
.hidden {visibility: hidden; }
.indent-1 { padding-left: 1em; }
.indent-2 { padding-left: 2em; }
.indent-3 { padding-left: 3em; }
.form-inline { display: inline; margin: 0px;}
.color-red { color: red; }
.color-dark-red { color: rgb(170, 0, 0); }
.color-lite-grey { color: var(--hex-aaaaaa); }
.color-dark-grey { color: var(--hex-333333); }
.outline-notice { outline: 1px solid rgb(170, 0, 0) !important; box-shadow: 0px 0px 5px 3px #f77f7f !important; }
.flex-no-wrap { flex-wrap: nowrap; }
.v-hidden { visibility: hidden; }
.v-visible { visibility: visible; }
.pos-rel { position: relative; }
.pos-abs { position: absolute; }
.pd-l-10 { padding-left: 10px; }
.pd-l-20 { padding-left: 20px; }
.mg-l-10 { margin-left: 10px; }
.mg-l-20 { margin-left: 20px; }
.mg-r-5 { margin-right: 5px; }
.mg-r-10 { margin-right: 10px; }
.mg-l--5 { margin-left: -5px; }
.mg-rl-10 { margin-right: 10px; margin-left: 10px; }
.mg-0 { margin: 0; }
.mg-0a { margin: 0 auto; }
.mg-10 { margin: 10px; }
.va-middle { vertical-align: middle; }
#play-audio-captcha { cursor: pointer; background: transparent; font-size:24px; height: 30px; }
#play-audio-captcha:focus {
  border-radius: 7.5px;
  background-color: var(--app-input-bg);
  border-color: var(--app-primary);
  box-shadow: 0 0 0 1px var(--app-primary-soft), 0 0 0 0.18rem rgba(5, 150, 105, 0.14);
}
.captcha-images { border:0px; width:1px; height:1px; margin:0; }
.captcha-refresh { cursor: pointer; width: auto; }
.play-audio-div {min-height: 10px; line-height: 10px; }
.fnt-15 { font-size: 15px; }
.nowrap { white-space: nowrap; }
.fs-07 { font-size: 0.7rem; }
.fs-08 { font-size: 0.8rem; }
.fs-09 { font-size: 0.9rem; }
.fs-095 { font-size: 0.95rem; }
.wmax-720 { max-width: 720px; }
.wmin-320 { min-width: 320px; }
.lettsp01 { letter-spacing: 0.1em;}
.float-r { float: right; }
.float-l { float: left; }
.flex-push-right { margin-left: auto; text-align: right; }
.oval3 { border-radius: 4.5px; }
.oval5 { border-radius: 7.5px; }
.oval10 { border-radius: 15px; }
.select-label { margin-bottom: 5px; }
.hbullgreen { vertical-align: middle; display: inline-block; margin-bottom: 0px; color: #339933; font-size: 15px; }
.z-index-901 { z-index: 901 !important; }
.z-index-902 { z-index: 902 !important; }
.z-index-903 { z-index: 903 !important; }
.z-index-904 { z-index: 904 !important; }
.z-index-905 { z-index: 905 !important; }
.z-top { z-index: 1000 !important; } /* menu section has 1001 */
.dynamic-text { color: white; mix-blend-mode: difference; }
.btn-print:hover { filter: invert(0.25); }
.arrow-inline { display: inline-block; vertical-align: middle; position: relative; top: -0.15em; color: #2563eb; }
.show-pass { cursor: pointer; position: absolute; width: auto; height: 20px; right: 10px; margin-top: -27px; }
.label-brd {
  border-radius: 7.5px; border: 1px solid var(--hex-dddddd); padding: 0.3rem;
  width: 100%; text-align: right; display: block;
}
.checkbox-brd {
  border-radius: 7.5px; border: 1px solid var(--hex-eeeeee); height: 100px; padding-right: 0.5rem;
}
.course-lesson-row { display: inline-flex; align-items: center;  gap: .5rem; width: 100%; }
.course-lesson-row .lesson-title { display: inline-flex !important; align-items: center; margin-bottom: 15px; }
@media screen and (max-width: 575.98px) {
  .mob-center {align-items: center !important; justify-content: center !important;}
}
@media screen and (max-width: 991.98px) {
  .label-brd { text-align: left; border: none; padding: 0; }
  .label-brd.app-inner-card { background: none; }
}

/* Verify large */
.verify-icon {
  display: grid; place-items: center; inline-size: 45px; block-size: 45px; border-radius: 999px;
  position: relative; border: 4px solid transparent; margin: 16px auto;
}
.verify-icon::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; border: 4px solid currentColor;
  background: transparent; pointer-events: none; transform: translateZ(0) scale(1); opacity: 1;
}
.verify-icon__mark {
  position: relative; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 800; font-size: 24px; line-height: 1;
  display: block; transform-origin: center; will-change: transform, opacity; backface-visibility: hidden;
}
.verify-icon--fail { color: #c62828; }
.verify-icon--fail::before { background: #fdeaea;}
.verify-icon--playing { color: #2845c6; }
.verify-icon--playing::before { background: #fdf7ea; }
.verify-icon--pending { color: #c67428; }
.verify-icon--pending::before { background: #fdf7ea; }
.verify-icon--warning { color: #b21500; }
.verify-icon--warning::before { background: #fff3cd; border-color: #ffda6a; }
.verify-icon--success { color: #168a2f; }
.verify-icon--success::before { background: #e8f7ec; }
@media screen and (min-width: 768px) {
  .verify-icon { inline-size: 52px; block-size: 52px; }
  .verify-icon__mark { font-size: 28px; }
}
@media screen and (min-width: 1024px) {
  .verify-icon { inline-size: 60px; block-size: 60px; }
  .verify-icon__mark { font-size: 33px; }
}
/* Verify success mark pop animation */
@keyframes verify-pop {
  0%   { transform: translateZ(0) scale(0.15); opacity: 0; }
  70%  { transform: translateZ(0) scale(1.10); opacity: 1; }
  85%  { transform: translateZ(0) scale(0.89); opacity: 1; }
  100% { transform: translateZ(0) scale(1); opacity: 1; }
}
.verify-icon--success .verify-icon__mark { animation: verify-pop 900ms cubic-bezier(.2, .9, .25, 1) both; }
@keyframes verify-pop-ring {
  0%   { transform: translateZ(0) scale(0.15); opacity: 0; }
  70%  { transform: translateZ(0) scale(1.10); opacity: 1; }
  85%  { transform: translateZ(0) scale(0.89); opacity: 1; }
  100% { transform: translateZ(0) scale(1); opacity: 1; }
}
.verify-icon--success::before { animation: verify-pop-ring 900ms cubic-bezier(.2, .9, .25, 1) both; }
@media (prefers-reduced-motion: reduce) {
  .verify-icon--success .verify-icon__mark { animation: none; }
  .verify-icon--success::before { animation: none; }
}
.verify-icon--inline {
  display: inline-grid;
  vertical-align: 0.07em;
  inline-size: 1.5em;
  block-size: 1.5em;
  margin: 0 0.2em 0 0;
  border-width: 2px;
}
.verify-icon--inline::before { border-width: 2px; }
.verify-icon--inline .verify-icon__mark { font-size: 0.72em; font-weight: 700; }

.ext-icon {
  color: var(--app-link); display: inline-flex; align-items: center; line-height: 1;
}

.ann-body {
  white-space: normal; line-height: 1.45; overflow-wrap: anywhere; word-break: break-word; border-radius: unset;
}
.ann-body.is-clamped {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden;
  max-height: calc(1.45em * 4); /* Fallback clamp */
}
.ann-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 0; height: 40px; }
.ann-more-btn { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
.ann-link { text-decoration: none; }

/* Pagination */
.app-pagination {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 12px; border: 1px solid var(--app-card-border); border-radius: 18px; z-index: 99;
  background: var(--app-bg-alt); box-shadow: var(--bs-box-shadow-sm); margin: 16px auto 0 auto;
}
.app-pagination__left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.app-pagination__pages { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.app-pagination__btn,
.app-pagination__page {
  border: 1px solid var(--pag-btn-border); background: var(--pag-btn-bg); color: var(--app-text-main);
  border-radius: 15px; padding: 6px 10px; min-width: 38px; text-align: center; cursor: pointer; user-select: none;
  height: 36px; line-height: 1;
}
.app-pagination__btn {
  font-size: 1.5rem; display: inline-flex; align-items: center; justify-content: center;
  padding-top: 0; padding-bottom: 6px;
}
.app-pagination__btn:hover,
.app-pagination__page:hover {
  background: var(--pag-btn-hover-bg);
  border-color: var(--pag-btn-hover-border);
}
.app-pagination__btn:active,
.app-pagination__page:active { transform: translateY(1px); }
.app-pagination__btn[disabled]:hover,
.app-pagination__page[disabled]:hover {
  background: rgba(255,255,255,0.95); border-color: rgba(15, 23, 42, 0.18); transform: none;
}
.app-pagination__page.is-active:hover {
  background: var(--app-primary-soft); border-color: var(--app-primary-border); transform: none;
}
.app-pagination__btn[disabled],
.app-pagination__page[disabled] {
  opacity: 0.45; cursor: not-allowed;
}
.app-pagination__page.is-active { background: var(--app-primary-soft); border-color: var(--app-primary-border); }
.app-pagination__meta { color: var(--app-text-muted); font-size: 0.95rem; white-space: nowrap; }
/* Mobile pagination */
@media screen and (max-width: 575.98px) {
  .app-pagination { flex-direction: column; align-items: stretch; }
  .app-pagination__right { display: flex; justify-content: center; }
  .app-pagination__pages { justify-content: center; }
}

@media print {
  @page { size: A4; margin: 0mm; margin-left: 10mm; margin-right: 10mm; }
  .no-print { display: none !important; }
  .page-return,
  .page-peeriod,
  .navbar-toggler,
  .form-btn-container,
  .eaa-logo,
  .help-icon,
  .app-footer {
    display: none !important;
  }
  .required::before,
  .required-field::after,
  .required-column::after {
    content: none !important;
    display: none !important;
  }
  button:not(.app-rlist__btn),
  input[type="button"]:not(.app-rlist__btn),
  input[type="submit"]:not(.app-rlist__btn) {
    display: none !important;
  }
  input:not(input[type="checkbox"]), select { height: 25px !important; }
  span.input-like { min-height: 25px !important; }
  span.input-like-disabled { min-height: 25px !important; }
  #mainNavbar { display: none !important; }
  /* remove shadows generaly */
  *, *::before, *::after {
    box-shadow: none !important; text-shadow: none !important; filter: none !important;
  }
  /* remove shadows bootstrap */
  .shadow, .shadow-sm, .shadow-lg { box-shadow: none !important; }
  /* Fix sizing, padding, etc. */
  html { font-size: 9pt; }
  body { font-size: 9pt; line-height: 1.15; }
  html, body {
    overflow: visible !important;
    height: auto !important;
  }
  .app-header { padding: 0 !important; margin: 0 !important; }
  /* Remove big page paddings/margins */
  .app-main { padding-top: 0 !important; padding-bottom: 0 !important; }
  .container,
  .container-fluid {
    max-width: none !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  /* Make cards compact for print */
  .app-card {
    padding: 0.5rem 0.5rem !important;
    border-radius: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }
  /* Titles smaller */
  .app-card-title { font-size: 1.1rem !important; margin-bottom: 0.25rem 0 0 0 !important; }
  /* Row labels */
  .mob-row .mob-col-label { font-size: 0.9rem; }
  /* Compact the filter bar (the selects area) */
  .mob-bar { padding: 0.25rem !important; margin-bottom: 0.5rem !important; }
  /* Compact list rows a bit */
  .app-rlist__head { height: auto !important; }
  .app-rlist__head,
  .app-rlist__row {
    gap: 0.5rem !important;
    padding-top: 0.10rem !important;
    padding-bottom: 0.10rem !important;
  }
  /* Compact filter bar (mob-bar) */
  .mob-bar { padding: 0 !important; margin-bottom: 0.25rem !important; border-radius: 0 !important; }
  .mob-bar .mob-row { margin-bottom: 0.15rem !important; row-gap: 0.10rem !important; align-items: center !important; }
  .mob-bar .mob-col-label, .mob-bar .mob-col-input {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
  }
  .mob-bar label { margin-bottom: 0.1rem !important; line-height: 1.1 !important; font-size: 0.9rem !important; }
  /* Bootstrap controls make them shorter */
  .mob-bar .form-select, .mob-bar .form-control, .mob-bar input, .mob-bar select {
    padding-top: 0.15rem !important; padding-bottom: 0.15rem !important; padding-left: 0.5rem !important;
    padding-right: 0.5rem !important; min-height: 0 !important; height: auto !important;
    line-height: 1.15 !important; font-size: 0.9rem !important;
  }
}

/* Custom select with search */
.xdropdown { position: relative; display: inline-block; background-color: var(--hex-ffffff); z-index: 999; }
.xdropbtn { color: var(--hex-333333); cursor: pointer; overflow: hidden; text-overflow: ellipsis; }
.xdropbtn:hover, .xdropbtn:focus { outline: none; }
.xdropbtn-content {
  box-sizing: border-box; border: none;
  background-image:url(images/searchicon2.png); background-position: 10px 6px; background-repeat: no-repeat;
  padding: 10px 100px 12px 45px; margin-bottom: 5px; overflow-y: auto; display: block; width: 100%; font-size: 0.9rem;
}
.phov:hover { box-shadow: 0 0 10px #719ECE; color: #538cc6; }
.xdropdown-content {
  display: none; position: absolute; background-color: var(--app-input-bg); min-width: 350px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); z-index: 999; overflow-y: auto; width: max-content;
  overflow: hidden; text-overflow: ellipsis; border: 1px solid var(--hex-999999);
}
.xdropdown-content.show-y {overflow-y: scroll; max-height: 30vh;}
.xdropdown-content a { color: black; padding: 4px 16px; text-decoration: none; display: block; text-align: left; }
.xdropdown a:hover { background-color: var(--hex-dddddd); }
.xdropbtn.selectbox:focus { border-color: var(--hex-dddddd); }
.xdropdown-option { white-space: nowrap; }
.xdrop-show { display: block; }

/* Password hide/show */
.pass-wrap { position: relative; width: 100%; }
.pass-input { padding-right: 2rem; }
.pass-eye {
  position: absolute;
  right: 0.75rem;
  top: 32%;
  transform: translateY(-32%);
  height: 18px;
  cursor: pointer;
  border: 0;
  background: transparent;
  padding: 0;
  touch-action: none;
  -webkit-touch-callout: none;
  user-select: none;
}
body.dark-mode .pass-eye { filter: invert(1); }

/* optional: better click target */
.pass-eye{
  height: 18px;
  width: 18px;
}
@media screen and (max-width: 575.98px) {
  .pass-input{ padding-right: 3rem; }
  .pass-eye{ right: 0.9rem; }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  white-space: nowrap;
}

.upload-preview { height: 1.5rem; max-height: 1.5rem; max-width: 1.5rem; vertical-align: middle; }
.upload-preview-pdf { height: 2rem; max-height: 2rem; max-width: 2rem; vertical-align: middle; }
.upload-preview-pdf-sm { height: 1.5rem; max-height: 1.5rem; max-width: 1.5rem; vertical-align: middle; }
.upload-preview-csv-sm { height: 1.5rem; max-height: 1.5rem; max-width: 1.5rem; vertical-align: middle; }
.upload-preview-div {
  width: 1.5rem;
  display: inline-block;
  padding: 0 20px 10px 10px;
}
.upload-preview-div-flex {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.upload-status {
  height: 20px;
  width: 100%;
  text-align: center;
  display: inline-block;
  font-size: 14px;
  font-family: sans-serif;
  margin-top: 8px;
}
.upload-download { display: inline-block; }
.upload-download.d-none { display: none; }
.upload-download-icon { width: 28px; height: 28px; cursor: pointer; }
.mob-row.upload-box, .upload-box {
  border: 1px solid #eee; box-shadow: 0px 4px 8px 0px rgba(0,0,0,0.3);
  background-color: rgba(255, 255, 255, 0.5); border-radius: 7.5px; margin: 25px; padding: 20px 50px 20px 20px;
}

/* Buttons spacing and alignment */
.buttons-spinwrap  {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.buttons-spinwrap--left  { justify-content: flex-start; }
.buttons-spinwrap--center  { justify-content: center; }
.buttons-spinwrap--right  { justify-content: flex-end; }
.button-link, .button-link:visited {
  background: none;
  border: none;
  padding: 0px;
  margin: 0px;
  color: rgb(235, 115, 0);
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}
.button-link:hover, .button-link:focus {
  color: rgb(255, 175, 0);
}

/* Tooltip */
.help-icon {
  position: absolute;
  top: 50%;
  right: -2.2rem;
  transform: translateY(-85%);
  width: 1.0rem;
  height: 1.0rem;
  font-size: 0.75rem;
  color: var(--hex-aaaaaa);
  border-color: var(--hex-aaaaaa);
  border-radius: 25%;
  font-weight: 700;
  line-height: 1;
  padding: 0 0 0 0;
  z-index: 999;
}
.help-icon-inline {
  display: inline-flex;              /* stays on same line as text */
  align-items: center;
  justify-content: center;
  width: 1.0rem;
  height: 1.0rem;
  border-radius: 25%;
  padding: 0;
  margin-bottom: 3px;
  margin-left: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  border: 1px solid var(--hex-aaaaaa);
  background: transparent;
  color: var(--hex-aaaaaa);
  cursor: pointer;
}
body.eaa-mode .help-icon { background: transparent; border: none; color: var(--hex-333333); padding-top: 12px; }
.tooltip.tip-light {
  --bs-tooltip-opacity: 0.95;
  --bs-tooltip-bg: #4c4950; /*#ededed;*/
  --bs-tooltip-color: #ededed; /*#1f2937;*/
  --bs-tooltip-border-radius: 0.75rem;
  --bs-tooltip-arrow-color: var(--bs-tooltip-bg);
}
.no-sep-start .help-icon { top: 70%; }
.no-sep-end .help-icon { top: 40%; }

/* listings container */
.smooth-listing { list-style: none; margin: 0; padding: 0; }
.smooth-listing-item { display: flow-root; margin-top: -10px; }
.smooth-listing-details { overflow: clip; }
.smooth-listing-summary {
  display: flex; min-height: 35px; cursor: pointer; font-weight: 500;
  border: 1px solid var(--rgba-0-0-0--0-25); border-radius: 7.5px;
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.smooth-listing-empty {
  border: 1px solid var(--rgba-0-0-0--0-25); border-radius: 7.5px; font-weight: 500; color: var(--hex-999999);
}
.smooth-listing-summary::-webkit-details-marker {
  display: none;
}
.smooth-listing-arrow {
  width: 0.5rem; height: 0.5rem; display: inline-block; margin-left: auto;
  border-right: 2px solid #2575cd; border-bottom: 2px solid #2575cd;
  transform-origin: 50% 50%; transform: translateY(6px) rotate(45deg);
  transition: transform var(--anim-dur) var(--anim-ease);
  will-change: transform;
}
.smooth-listing-details[open] .smooth-listing-arrow { transform: translateY(6px) rotate(225deg); }
.smooth-listing-summary:hover { background: #fafafa; }
.smooth-listing-summary:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; border-radius: 15px; }
:root {
  --anim-dur: 250ms;
  --anim-fade: 350ms;
  --anim-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}
.smooth-listing-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(-2px);
  transition:
    grid-template-rows var(--anim-dur) var(--anim-ease),
    opacity var(--anim-fade) ease,
    transform var(--anim-dur) var(--anim-ease);
  will-change: grid-template-rows, opacity, transform;
  background-color: transparent;
  padding-left: 20px;
}
.smooth-listing-details[open] .smooth-listing-panel {
  grid-template-rows: 1fr; opacity: 1; transform: translateY(0);
}
.smooth-listing-inner {
  overflow: hidden; display: flow-root; transition: padding-block var(--anim-dur) cubic-bezier(.2,.8,.2,1);
}
/* When text added next to the arrow at the right */
.smooth-listing-summary .mob-col-fullspan-left:has(.flex-push-right) .smooth-listing-arrow {
  margin-left: 0;
}
/* Top row opener */
.smooth-listing-item:has(> .smooth-listing-details[open]) > .smooth-listing-details .smooth-listing-arrow {
  transform: translateY(6px) rotate(225deg); color: #374151;
}
.smooth-listing-item:has(> .smooth-listing-details[open]) > .smooth-listing-panel {
  grid-template-rows: 1fr; opacity: 1;
}
.smooth-listing-item:has(> .smooth-listing-details[open]) > .smooth-listing-panel > .smooth-listing-inner {
  padding-block: 2px;
}
/* Secondary row opener */
.smooth-listing-details[open] + .smooth-listing-panel { grid-template-rows: 1fr; opacity: 1; }
.smooth-listing-details[open] + .smooth-listing-panel > .smooth-listing-inner { padding-block: 2px; }
/* Mobile */
@media screen and (max-width: 575.98px) {
  .smooth-listing-arrow { margin-left: 1rem; }
}

.student-progress-list-wrap .smooth-listing { list-style: none; margin: 0; padding: 0; border-radius: 15px;}
.student-progress-list-wrap .smooth-listing-item { margin: 0 0 0.5rem 0; padding: 0; }
.student-progress-list-wrap .smooth-listing-details { display: block; width: 100%; }
.student-progress-list-wrap .smooth-listing-summary { display: block; width: 100%; list-style: none; }
.student-progress-list-wrap .smooth-listing-summary::-webkit-details-marker { display: none; }
.student-progress-list-wrap .app-rlist__head.app-rlist-cols-031111,
.student-progress-list-wrap .app-rlist__row.app-rlist-cols-031111 { width: 100%; align-items: center; }
.student-progress-list-wrap .app-list-card { border-radius: 0.75rem; }
.student-progress-list-wrap .smooth-listing-content.app-inner-card { border-radius: 0.75rem; }

/* Loading spinner */
.load-spinner {
  position: absolute;
  box-sizing: content-box;
  flex: 0 0 auto;
  border: 3px solid var(--rgba-0-0-0--0-25);
  border-left-color: var(--hex-3489cd);
  border-radius: 25%;
  width: 12px;
  height: 12px;
  animation: spin 0.8s linear infinite;
  -webkit-animation: spin 0.8s linear infinite;
  display: none;
  align-items: center;
  justify-content: center;
}
@keyframes spin { to { transform: rotate(360deg); } }
@-webkit-keyframes spin { to { -webkit-transform: rotate(360deg); transform: rotate(360deg); } }
.xdropdown-option .load-spinner { pointer-events: none; }

/* Upload progress bar */
.prog-bar {
  height: 8px;
  background: #ddd;
  border-radius: 7.5px;
  overflow: hidden;
  margin-top: 5px;
}
.prog-bar > div {
  height: 100%;
  width: 0%;
  background: #3e20eb;
  transition: width .2s;
}
.form-control.file-input {
  cursor: pointer; width: 65%; display: inline-block; height: 36px; vertical-align: middle;
}
.upload-row-btns{
  display: block;
  gap: .5rem;
  flex: 0 0 auto;
  white-space: nowrap;
  margin-left: auto;
  margin-top: 10px;
  max-width: 100%;
}

/* Override for EAA mode */
body.eaa-mode button {
  --bs-primary: #111;
  --bs-btn-color: #fff;
  --bs-btn-bg: #111;
  --bs-btn-border-color: #fff;
}
body.dark-mode.eaa-mode button {
  --bs-primary: #777;
  --bs-btn-color: #fff;
  --bs-btn-bg: #777;
  --bs-btn-border-color: #fff;
}
body.eaa-mode input:focus,
body.eaa-mode select:focus,
body.eaa-mode textarea:focus,
body.eaa-mode button:focus {
  box-shadow: 0 0 0 3px #1976d2 !important;
  outline: 2px solid transparent;
  outline-offset: 2px;
  /* outline: 2px solid #1976d2 !important; */
}
body.eaa-mode input:hover,
body.eaa-mode select:hover,
body.eaa-mode textarea:hover,
body.eaa-mode button:hover {
  box-shadow: 0 0 0 3px #4cafa7 !important;
  outline: 2px solid transparent;
  outline-offset: 2px;
  /* outline: 2px solid #4caf50 !important; */
}
body.eaa-mode input,
body.eaa-mode textarea,
body.eaa-mode select,
body.eaa-mode button {
  font-size: 1.5rem !important;
  height: 45px !important;
}
body.eaa-mode h1 {
  font-size: 2.25rem !important;
}

body.eaa-mode h2 {
  font-size: 2rem !important;
}

body.eaa-mode h3 {
  font-size: 1.75rem !important;
}

body.eaa-mode h4 {
  font-size: 1.5rem !important;
}

body.eaa-mode h5 {
  font-size: 1.25rem !important;
}

body.eaa-mode h6 {
  font-size: 1.125rem !important;
}
body.eaa-mode,
body.eaa-mode span,
body.eaa-mode label,
body.eaa-mode div,
body.eaa-mode table,
body.eaa-mode th,
body.eaa-mode td,
body.eaa-mode li,
body.eaa-mode a,
body.eaa-mode p {
    font-size: 1.125rem !important;
}

/* Simple Dropdown Menu */
.simpledropdown-toggle { position: absolute; opacity: 0; pointer-events: none; }
.simpledropdown .simpledropdown-content { display: none; }
.simpledropdown-toggle:checked ~ .simpledropdown-arrow-top,
.simpledropdown-toggle:checked ~ .simpledropdown-content { display: block; }
.simpledropbtn { padding: 0px; border: none; background-color: transparent; cursor: pointer; }
.simpledropbtn .nav-link { user-select: none; }
.simpledropdown { position: relative; display: inline-block;  z-index: 19999 !important;}
.simpledropdown-content {
  border-radius: 7.5px; display: none; position: absolute; background-color: var(--hex-ffffff); min-width: 150px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); z-index: 30; width: max-content; top: 100%; margin-top: 8px;
}
.simpledropdown-content a {
  border-radius: 7.5px; color: black; padding: 8px 16px; text-decoration: none; display: block;
}
.simpledropdown-content form { margin: 0; }
.simpledropdown-content button.btn.href-blue {
  display: block; width: 100%; text-align: left; padding: 8px 16px; border-radius: 7.5px;
  white-space: normal; overflow: hidden; text-overflow: ellipsis;
}
.simpledropdown-content.txtcenter button.btn.href-blue { text-align: center; }
.simpledropdown-content.txtright button.btn.href-blue { text-align: right; }
body.eaa-mode .simpledropdown-content button.btn.href-blue { color: #ffffff !important; }
.simpledropdown-content button.btn.href-blue:hover { background-color: var(--hex-dddddd); }
.simpledropdown-content a:hover { background-color: var(--hex-dddddd); }
/* .simpledropdown:hover .simpledropdown-content { display: block; } */
.simpledropdown--right .simpledropdown-content { left: -10px; right: auto; }
.simpledropdown--center .simpledropdown-content { left: 0; right: auto; }
.simpledropdown--left .simpledropdown-content { left: auto; right: -5px; }
.simpledropbtn2 { padding: 0px; border: none; background-color: var(--hex-ffffff); border-radius: 7.5px; }
.simpledropdown2 { position: relative; }
.simpledropdown2-content {
  border-radius: 7.5px; display: none; position: absolute; background-color: var(--hex-ffffff); min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); z-index: 30; width: 200px; left: 135px; top: 0%;
}
.simpledropdown2-content a {
  border-radius: 7.5px; color: black; padding: 8px 16px; text-decoration: none; display: block;
}
.simpledropdown2-content a:hover { background-color: var(--hex-dddddd); }
.simpledropdown2:hover .simpledropdown2-content { display: block; }
.simpledropdown-gap {
  border-radius: 7.5px; position: absolute; background-color: transparent; min-width: 150px;
  z-index: 30; width: 100%; top: -12px; height: 12px;
}
body.eaa-mode .simpledropdown-gap { top: -12px; height: 22px; }
.simpledropdown-arrow-top {
  position: absolute; top: calc(100%); left: 50%; transform: translateX(-50%); z-index: 29;
  pointer-events: none; width: 0; height: 0; border-left: 15px solid transparent; border-right: 15px solid transparent;
  border-bottom: 15px solid var(--hex-ffffff);
}
.simpledropdown .simpledropdown-arrow-top { display: none; }
/* .simpledropdown:hover .simpledropdown-arrow-top { display: block; } */
.simpledropdown:focus-within .simpledropdown-arrow-top { display:block; }
.simpledropdown:focus-within .simpledropdown-content { display:block; }
.simpledropdown-menuarrow {
  display: inline-block; transform: rotate(180deg); color: var(--hex-ffffff); font-family: Tahoma; font-size: 0.8rem; }
.user-icon { width: 3vh; }
body.eaa-mode .user-icon { width: 5vh; }
body.dark-mode .user-icon { filter: invert(1); }
.globe-icon { width: 2.3vh; filter: invert(1); margin-bottom: 3px; }
body.eaa-mode .globe-icon { width: 4vh; }
body.dark-mode .globe-icon { filter: invert(0); }
.signout-icon { width: 2vh; margin-right: 5px; margin-bottom: 4px; }
.signout-icon.invert { filter: invert(1); }
body.eaa-mode .signout-icon { width: 5vh; }
body.dark-mode .signout-icon { filter: invert(1); }
.menu-icon { height: 1.2rem; margin-right: 7px;  margin-bottom: 3px; }
.nav-link .menu-icon { margin-right: 2px; }
.menu-icon.invert { filter: invert(1); }
.icon-grey {
  filter:
    brightness(0)
    saturate(100%)
    invert(25%)
    sepia(50%)
    saturate(620%)
    hue-rotate(185deg)
    brightness(95%)
    contrast(90%);
}
.icon-invert { filter: invert(1); }
.icon-mirror {
  transform: scale(-1, -1);
  -webkit-transform: scale(-1, -1);
  -moz-transform: scale(-1, -1);
  -o-transform: scale(-1, -1);
}
.msg-dir { display: inline-block; font-size: 1.5rem; font-weight: 700; line-height: 1; margin-right: 0.3rem; }
.msg-dir-received { color: #3c8a5a; }
.msg-dir-sent { color: #b35a5a; }
.menu-icon-title {
  margin-right: 5px; width: 1.6rem; height: 1.6rem; border-radius: 25%;
  padding: 3px; background: rgba(10, 74, 192, 0.05); border: 1.5px solid rgba(10, 74, 192, 0.35);
}
body.eaa-mode .menu-icon { height: 2rem; }
body.dark-mode .menu-icon { filter: invert(1); }
body.dark-mode .menu-icon.icon-grey { filter: invert(0.75); }
body.dark-mode .menu-icon-title { filter: invert(0.75); }
/* Keep icon + first word together */
.simpledropbtn .nav-link, .navbar-nav .nav-link {
  display: flex; flex-wrap: wrap; align-items: center; row-gap: 0; column-gap: 0.35rem;
}
.menu-firstword, .menu-rest, .menu-dd-arrow, .menu-dd-space, .menu-icon { display: inline-block; }
.menu-dd-arrow { white-space: nowrap; }
@media screen and (max-width: 1200px) {
  .menu-icon, .menu-dd-space { display: none; }
  .simpledropdown-gap.simpledropdown-gap-right { left: auto; right: 10px; }
  .simpledropdown--right .simpledropdown-content { left: auto; right: 0; }
  .simpledropdown--left .simpledropdown-content { left: auto; right: -5px; }
  .simpledropdown-content button.btn.href-blue{
    white-space: normal; overflow: visible; text-overflow: unset; overflow-wrap: anywhere;
  }
}
@media screen and (max-width: 991.98px) {
  .simpledropdown.simpledropdown--center .simpledropdown-content,
  .simpledropdown.simpledropdown--left .simpledropdown-content,
  .simpledropdown.simpledropdown--right .simpledropdown-content {
    left: 50%; right: auto; transform: translateX(-50%); top: 100%; margin-top: 0; box-sizing: border-box;
  }
  .globe-icon { margin-left: 1rem; }
}
@media (hover: hover) and (pointer: fine) {
  .simpledropdown:hover .simpledropdown-content { display: block; }
  .simpledropdown:hover .simpledropdown-arrow-top { display: block; }
}

.page-return { position: absolute; left: 5px; top: 80px; }
.btn-return { font-size: 0.9rem; }
.page-peeriod { position: absolute; right: 5px; top: 80px; }
@media screen and (max-width: 575.98px) {
  .page-peeriod { position: absolute; right: 5px; top: 75px; }
  .page-peeriod select { height: 27px; }
}

/* Bootstrap custom */
.my-shadow-sm { box-shadow:var(--bs-box-my-shadow-sm) !important; }
.shadow-md { box-shadow:var(--bs-box-shadow-md) !important; }
.btn-primary {
  --bs-btn-color: #fff; --bs-btn-bg: #3e7ef5; --bs-btn-border-color: #3e7ef5; --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #0b5ed7; --bs-btn-hover-border-color: #0a58ca; --bs-btn-focus-shadow-rgb: 49,132,253;
  --bs-btn-active-color: #fff; --bs-btn-active-bg: #0a58ca; --bs-btn-active-border-color: #0a53be;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #0d6efd; --bs-btn-disabled-border-color: #0d6efd;
}
.btn-outline-danger{
  --bs-btn-color: #dc3545;
  --bs-btn-border-color: #f1aab1;
  --bs-btn-hover-color: #dc3545;
  --bs-btn-hover-bg: #ffe4e7;
  --bs-btn-hover-border-color: #f1aab1;
  --bs-btn-focus-shadow-rgb: 155, 61, 71;
  --bs-btn-active-color: #dc3545;
  --bs-btn-active-bg: #ffe4e7;
  --bs-btn-active-border-color: #db4756;
  transition: background-color 0.25s ease, color 0.35s ease;
  -webkit-transition: background-color 0.25s ease, color 0.35s ease;
}
.btn-outline-secondary{
  --bs-btn-hover-bg: #bebebe;
  background-color: var(--hex-ffffff);
  transition: background-color 0.25s ease, color 0.35s ease;
  -webkit-transition: background-color 0.25s ease, color 0.35s ease;
}
.fw-medium { font-weight: 500; }

/* Mobile */
@media screen and (max-width: 575.98px) {
  .w150 { width: 100%; display: block; }
  .w170 { width: 100%; display: block; }
  .mobw75p { width: 95%; }
  .help-icon { width: 1.0rem; height: 1.0rem; } /* Tooltip */
  .href-blue { background: none; border: none; }
  .mob-mb-3 { margin-bottom: 3rem; }
  .mob-ms-5 { margin-left: 3rem !important; }
  .app-main-hero { background-repeat: repeat-y; background-position: center top; }
}
@media screen and (max-width: 991.98px) {
  .mob-hide { display: none; }
  .mob-ps-3 { padding-left: 1rem; }
  .mob-span-center { display: table; margin: 0 auto; }
  .app-nav-right { justify-content: center; min-width: 0; width: 100%; }
  .app-nav-right .btn.nav-link {
    display: inline-flex; align-items: center; justify-content: center; text-align: center;
  }
}

/* ************* */
.lesson-label-with-btn { display: inline-flex; align-items: center; gap: 0.45rem; }
.lesson-label-with-btn__text { margin: 0; display: inline-block; cursor: pointer; text-align: right; width: 100% }
.label-inline-play-btn { flex: 0 0 auto; min-width: 32px; width: 32px; height: 32px; padding: 0; line-height: 1; }

/* Video watch */
.video-watch-box { width: 100%; }
.video-watch-player-html5 {
  width: 100%; min-height: 360px; border-radius: 15px; background: #000;
}
.video-watch-player-html5 { max-width: 100%; }
@media (max-width: 767.98px) {
  .video-watch-player-html5 { min-height: 220px; }
}
.video-watch-confirm-overlay {
  position: absolute; top: 0.75rem; right: 0.75rem; left: auto; bottom: auto; z-index: 20;
  display: block; padding: 0; background: transparent; border-radius: 0; pointer-events: none;
}
.video-watch-confirm-card {
  width: min(340px, calc(100vw - 3rem)); padding: 0.75rem 0.85rem 0.9rem 0.85rem;
  border-radius: 1.05rem; background: rgba(255, 255, 255, 0.96); box-shadow: 0 10px 35px rgba(0, 0, 0, 0.18);
  text-align: center; pointer-events: auto;
}
.video-watch-confirm-text { font-size: 0.92rem; line-height: 1.4; color: #1f2937; }
.video-watch-confirm-actions { margin-top: 0.75rem; display: flex; justify-content: center; }
#video-watch-player-wrap { position: relative; }
.video-watch-countdown-box {
  display: flex; align-items: center; justify-content: center; min-height: 3rem; font-size: 2rem;
  font-weight: 700; line-height: 1; color: #1f2937;
}
@media (max-width: 575.98px) {
  .video-watch-confirm-overlay { top: 0.5rem; right: 0.5rem; left: 0.5rem; }
  .video-watch-confirm-card { width: 100%; }
}
.video-watch-player-wrap {
  position: relative; width: 100%; background: #000000; border: 1px solid #555555;
  border-radius: 0.75rem; overflow: hidden;
}
.video-watch-player-html5 {
  width: 100%; max-height: 75vh; display: block; background-color: #000000;
}
.video-watch-player-controls {
  display: flex; flex-direction: column; gap: 0.75rem; padding: 0.85rem 1rem 1rem; background: rgba(0, 0, 0, 0.72);
}
.video-watch-player-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.video-watch-player-bar {
  display: grid; grid-template-columns: auto auto minmax(120px, 1fr) auto auto auto 120px;
  gap: 0.75rem; align-items: center;
}
.video-watch-btn-play,
.video-watch-btn-mute,
.video-watch-btn-fullscreen {
  min-width: 2.6rem; height: 2.4rem; border: 1px solid #6c757d; border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.08); color: #ffffff; cursor: pointer;
}
.video-watch-btn-play:hover,
.video-watch-btn-mute:hover,
.video-watch-btn-fullscreen:hover { background: rgba(255, 255, 255, 0.16); }
.video-watch-time-label {
  min-width: 5.5rem; color: #ffffff; font-size: 0.9rem; text-align: center; white-space: nowrap;
}
.video-watch-seek-bar, .video-watch-volume-bar { width: 100%; cursor: pointer; }
.video-watch-seek-bar:disabled { opacity: 0.55; cursor: not-allowed; }
video::-webkit-media-controls-enclosure { display: none !important; }
video::-webkit-media-controls { display: none !important; }
video::-internal-media-controls-download-button { display: none !important; }
video::-webkit-media-controls-panel { display: none !important; }
@media (max-width: 991.98px) {
  .video-watch-player-bar { grid-template-columns: auto auto auto 1fr auto; }
  .video-watch-volume-bar { grid-column: 1 / -1; }
}
@media (max-width: 575.98px) {
  .video-watch-player-controls { padding: 0.75rem; }
  .video-watch-player-bar { grid-template-columns: 1fr 1fr; }
  .video-watch-seek-bar, .video-watch-time-label { grid-column: 1 / -1; }
}

/* Test Video Watch */
.video-modal__player {
  display: block; width: 100%; height: auto; max-height: 100%; border: 0; background: #000000; object-fit: contain;
}
.video-link-label-wrap { display: inline-flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; }
.video-test-btn {
  min-width: 18px; width: 22px; height: 22px; padding: 0; line-height: 1; border-radius: 999px; font-size: 1rem;
}
.video-test-player { display: block; width: 100%; max-height: 70vh; background: #000; border-radius: 15px; }
#video-test-status { min-height: 24px;}
@media (max-width: 767.98px) {
  .video-link-label-wrap { justify-content: center; }
}


/* Training theme adjustments */
.app-btn-primary,
.app-btn-outline,
.app-theme-toggle,
.main_modal__btn {
  border-radius: 1.05rem;
}

.app-card,
.app-list-card,
.app-inner-card {
  border-radius: 1.5rem;
}

.app-card::before {
  border-radius: 1.5rem;
}

.app-card > * {
  border-radius: 1.05rem;
}

.app-rlist,
.mob-row.row-title,
.msg-toggle .btn,
.filter-status-box,
.filter-type-box {
  border-radius: 1.05rem;
}

.app-btn-primary:hover,
.btn-primary:hover {
  background: #097d81;
}

.app-btn-outline {
  background: rgba(8, 100, 85, 0.548);
  border-color: rgba(6, 217, 164, 0.48);
  color: var(--hex-ffffff);
}

.app-btn-outline:hover {
  background: #06d9c7;
  border-color: #06b9d9;
  color: #ffffff;
}

.dark-mode .app-btn-outline {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.34);
  color: #fcd9a1;
}

.dark-mode .app-btn-outline:hover {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #08120e;
}

.app-card,
.app-inner-card,
.app-list-card,
.big-modal__dialog,
.form-modal__dialog {
  box-shadow: 0 12px 28px rgba(10, 41, 31, 0.12);
}

.dark-mode .app-card,
.dark-mode .app-inner-card,
.dark-mode .app-list-card,
.dark-mode .big-modal__dialog,
.dark-mode .form-modal__dialog {
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.34);
}

.app-main-bg-img {
  filter:
    grayscale(1)
    contrast(1.04)
    brightness(1.1)
    sepia(1)
    hue-rotate(108deg)
    saturate(2.4);
}

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #22b8cf;
  --bs-btn-border-color: #22b8cf;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #1098ad;
  --bs-btn-hover-border-color: #0c8599;
  --bs-btn-focus-shadow-rgb: 34,184,207;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #0c8599;
  --bs-btn-active-border-color: #0b7285;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #3bc9db;
  --bs-btn-disabled-border-color: #3bc9db;
}