:root {
  --bg: #eef4f8;
  --surface: #ffffff;
  --surface-strong: #edf5f7;
  --text: #17202a;
  --muted: #617083;
  --line: #dbe3ec;
  --brand: #144c63;
  --brand-strong: #0d3545;
  --accent: #1d7f5f;
  --blue: #2f6f9f;
  --sky: #2b8bb6;
  --gold: #d89a2b;
  --amber: #b97818;
  --rose: #b94a5a;
  --indigo: #5d6fa7;
  --warning: #b7791f;
  --danger: #b83232;
  --shadow: 0 16px 38px rgba(26, 47, 71, 0.08);
  --soft-shadow: 0 10px 28px rgba(26, 47, 71, 0.07);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(180deg, #f7fafc 0, #eef4f8 320px, #edf3f8 100%),
    var(--bg);
  font-family: "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
}

body.loading .app-shell,
body.needs-login .app-shell,
body.student-portal-mode .app-shell,
body.student-portal-mode .login-screen,
body.student-portal-mode .public-registration,
body.public-registration-mode .app-shell,
body.public-registration-mode .login-screen,
body.public-registration-mode .student-portal,
body.loading .login-screen {
  display: none;
}

.loading-screen {
  display: none;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 106, 0, 0.18), transparent 32%),
    radial-gradient(circle at 78% 78%, rgba(29, 127, 95, 0.18), transparent 34%),
    linear-gradient(135deg, #f8fbfd 0%, #eaf2f6 52%, #fff3e8 100%);
}

body.loading .loading-screen {
  display: grid;
}

.loading-card {
  width: min(420px, 100%);
  padding: 34px 30px 28px;
  border: 1px solid rgba(219, 227, 236, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 28px 70px rgba(16, 47, 59, 0.16);
  text-align: center;
  backdrop-filter: blur(14px);
  animation: loading-card-enter 0.48s ease-out both;
}

.loading-logo-wrap {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    conic-gradient(from 90deg, #ff6a00, #1d7f5f, #2b8bb6, #ff6a00) border-box;
  border: 3px solid transparent;
  box-shadow: 0 14px 34px rgba(255, 106, 0, 0.2);
  animation: loading-pulse 1.9s ease-in-out infinite;
}

.loading-logo-wrap img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.loading-copy .eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.loading-copy h1 {
  margin: 0;
  color: var(--brand-strong);
  font-size: 30px;
  line-height: 1.1;
}

.loading-copy p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.loading-progress {
  position: relative;
  height: 8px;
  margin: 24px 0 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe9ef;
}

.loading-progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 46%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff6a00, #d89a2b, #1d7f5f);
  animation: loading-bar 1.15s ease-in-out infinite;
}

.loading-hint {
  margin: 0;
  color: #53677a;
  font-size: 13px;
  font-weight: 700;
}

@keyframes loading-card-enter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes loading-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.045);
  }
}

@keyframes loading-bar {
  0% {
    transform: translateX(-110%);
  }
  50% {
    transform: translateX(70%);
  }
  100% {
    transform: translateX(245%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .loading-card,
  .loading-logo-wrap,
  .loading-progress span {
    animation: none;
  }

  .loading-progress span {
    width: 100%;
  }
}

.login-screen {
  display: none;
  min-height: 100vh;
  place-items: center;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(20, 76, 99, 0.08), rgba(29, 127, 95, 0.08)),
    #eaf0f5;
}

body.needs-login .login-screen {
  display: grid;
}

.public-registration[hidden] {
  display: none;
}

.public-registration {
  min-height: 100vh;
  padding: 32px 20px;
  background: linear-gradient(135deg, #e8f2f6, #f8fbfd 46%, #fff3e8);
}

body.public-registration-mode .public-registration {
  display: block;
}

.public-registration-shell {
  width: min(980px, 100%);
  margin: 0 auto;
}

.public-registration-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 22px;
}

.public-registration-card {
  display: grid;
  gap: 22px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.public-registration-card h2 {
  margin: 4px 0 8px;
  font-size: 28px;
}

.success-message {
  margin: 0;
  border: 1px solid #b7e2c7;
  border-radius: 8px;
  padding: 12px 14px;
  color: #145c35;
  background: #eaf8ef;
  font-weight: 800;
}

.login-options {
  display: grid;
  grid-template-columns: minmax(300px, 860px);
  gap: 18px;
  align-items: stretch;
  width: min(920px, 100%);
}

.login-choice-view {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(320px, 1.08fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 26px 70px rgba(16, 47, 59, 0.14);
}

.login-choice-view[hidden] {
  display: none;
}

.login-choice-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 420px;
  padding: 38px;
  color: #ffffff;
  background:
    linear-gradient(145deg, rgba(16, 47, 59, 0.98), rgba(20, 76, 99, 0.94)),
    #102f3b;
}

.login-choice-hero .brand-mark.large {
  width: 64px;
  height: 64px;
  margin-bottom: 22px;
  font-size: 22px;
}

.login-choice-hero .eyebrow {
  color: #cfe0e8;
}

.login-choice-hero h1 {
  max-width: 360px;
  margin: 0;
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: 0;
}

.login-choice-hero p:last-child {
  max-width: 360px;
  margin: 16px 0 0;
  color: #d7e5eb;
  line-height: 1.55;
}

.login-choice-grid {
  display: grid;
  gap: 14px;
  align-content: center;
  padding: 38px;
}

.login-choice-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 8px 14px;
  align-items: center;
  width: 100%;
  min-height: 132px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 18px;
  color: var(--text);
  background: #ffffff;
  text-align: left;
  box-shadow: 0 12px 28px rgba(26, 47, 71, 0.06);
}

a.login-choice-card {
  text-decoration: none;
}

.login-choice-card:hover {
  border-color: #b7c8d6;
  transform: translateY(-1px);
}

.login-choice-card.student {
  border-left-color: var(--accent);
}

.choice-mark {
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  color: #102f3b;
  background: #f2b84b;
  font-weight: 900;
  overflow: hidden;
}

.choice-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.login-choice-card strong {
  font-size: 21px;
}

.login-choice-card small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.login-form-panel {
  justify-self: center;
  max-width: 450px;
}

.login-form-panel[hidden] {
  display: none;
}

.login-back {
  justify-self: start;
  min-height: 28px;
}

.forgot-password-link {
  justify-self: start;
  min-height: 28px;
  padding: 0;
}

.password-reset-box {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  background: #f8fbfd;
}

.password-reset-box[hidden] {
  display: none;
}

.password-reset-box .form-actions {
  justify-content: stretch;
}

.password-reset-box .form-actions .button {
  flex: 1;
}

.login-card {
  display: grid;
  gap: 14px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.student-login-card {
  border-top: 4px solid var(--accent);
}

.login-brand {
  padding: 0 0 18px;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.login-brand p {
  color: var(--muted);
}

.login-error {
  min-height: 20px;
  margin: 0;
  color: var(--danger);
  font-weight: 700;
}

.student-portal {
  min-height: 100vh;
  background: var(--bg);
}

.student-portal[hidden] {
  display: none;
}

.student-portal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 26px;
  color: #ffffff;
  background: #102f3b;
}

.student-portal-brand {
  padding: 0;
  border-bottom: 0;
}

.student-portal-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.student-portal-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.student-portal-hero h2 {
  margin: 0 0 6px;
  font-size: 28px;
  letter-spacing: 0;
}

.student-portal-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
}

.student-portal-wide {
  grid-column: 1 / -1;
}

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

.student-notification-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-left: 4px solid var(--sky);
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.student-notification-card.warning {
  border-left-color: var(--gold);
  background: #fffaf0;
}

.student-notification-card.danger {
  border-left-color: var(--danger);
  background: #fff5f5;
}

.student-notification-card p {
  margin: 4px 0;
  color: var(--muted);
  line-height: 1.45;
}

.student-notification-card small {
  color: #6c7a89;
  font-weight: 700;
}

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

.detail-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.45fr) minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.detail-row:last-child {
  border-bottom: 0;
}

.detail-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.detail-row strong {
  min-width: 0;
  word-break: break-word;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
  min-width: 0;
}

.sidebar {
  background:
    linear-gradient(180deg, #0d3444 0%, #123f50 48%, #0f2d3a 100%);
  color: #ffffff;
  padding: 22px 16px;
  min-width: 0;
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  max-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  box-shadow: 12px 0 34px rgba(15, 45, 58, 0.12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 6px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: #f2b84b;
  color: #102f3b;
  font-weight: 800;
  overflow: hidden;
  flex: 0 0 auto;
}

.brand-mark img,
.logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.stamp-preview img {
  padding: 4px;
}

.brand h1 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0;
}

.brand p {
  margin: 4px 0 0;
  color: #cbd8df;
  font-size: 12px;
}

.nav-list {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  min-width: 0;
}

.nav-button {
  width: 100%;
  border: 0;
  border-radius: 6px;
  padding: 12px 12px;
  color: #dbe7ed;
  background: transparent;
  text-align: left;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-button:hover,
.nav-button.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: inset 3px 0 0 #f2b84b;
}

.nav-button:hover {
  transform: translateX(2px);
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  margin-left: auto;
  border-radius: 999px;
  padding: 0 7px;
  color: #ffffff;
  background: #b83232;
  font-size: 11px;
  font-weight: 900;
}

.nav-badge[hidden] {
  display: none;
}

.workspace {
  min-width: 0;
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 10px;
  padding: 16px 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #f58220 0%, #f26a16 52%, #df4f12 100%);
  box-shadow: 0 18px 42px rgba(207, 82, 16, 0.24);
  backdrop-filter: blur(10px);
}

.topbar .eyebrow,
.topbar h2,
.topbar label,
.topbar .role-selector {
  color: #ffffff;
}

.topbar .role-selector select {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.topbar .role-selector select option {
  color: var(--text);
}

.topbar .user-pill,
.topbar .save-status,
.topbar .button.secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.18);
}

.topbar .save-status.saved {
  color: #ffffff;
  background: rgba(16, 133, 91, 0.28);
}

.topbar .save-status.saving {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
}

.topbar .save-status.error {
  color: #ffffff;
  background: rgba(185, 42, 42, 0.3);
}

.topbar .button.secondary:hover {
  background: rgba(255, 255, 255, 0.26);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.topbar h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: 0;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.role-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--brand);
  background: #e7f0f4;
  font-size: 13px;
  font-weight: 800;
}

.role-selector select,
input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  color: var(--text);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input,
select,
textarea {
  width: 100%;
  padding: 10px 11px;
  outline: none;
}

.uppercase-input {
  text-transform: uppercase;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #2b8bb6;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(43, 139, 182, 0.13);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stat-card,
.panel,
.mini-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.stat-card {
  position: relative;
  min-height: 118px;
  overflow: hidden;
  padding: 15px 15px 14px;
  border-color: rgba(219, 227, 236, 0.82);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 253, 0.98)),
    var(--surface);
  box-shadow: var(--soft-shadow);
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--stat-color, var(--brand));
}

.stat-card::after {
  content: "";
  position: absolute;
  right: -28px;
  top: -34px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--stat-color, var(--brand)) 13%, transparent);
}

.stat-card.tone-blue { --stat-color: var(--blue); }
.stat-card.tone-green,
.stat-card.tone-teal { --stat-color: var(--accent); }
.stat-card.tone-gold { --stat-color: var(--gold); }
.stat-card.tone-sky { --stat-color: var(--sky); }
.stat-card.tone-indigo { --stat-color: var(--indigo); }
.stat-card.tone-red { --stat-color: var(--rose); }
.stat-card.tone-amber { --stat-color: var(--amber); }

.stat-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(26, 47, 71, 0.11);
}

.stat-card span {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.stat-card span.money-number {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}

.stat-card .stat-value {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 12px;
  letter-spacing: 0;
  color: #0d2530;
}

.stat-card .stat-value.count,
.money-number {
  font-size: 28px;
  line-height: 1.05;
  font-weight: 900;
}

.stat-card .stat-value.money {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  line-height: 1;
}

.money-number {
  white-space: nowrap;
}

.money-currency {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  border-radius: 999px;
  padding: 2px 7px;
  color: color-mix(in srgb, var(--stat-color, var(--brand)) 82%, #102f3b);
  background: color-mix(in srgb, var(--stat-color, var(--brand)) 12%, #ffffff);
  font-size: 10px;
  font-weight: 900;
}

.dashboard-grid,
.report-grid,
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.notification-summary-grid,
.planning-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.panel-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.compact-toolbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 260px));
  gap: 12px;
  margin-bottom: 14px;
  align-items: end;
}

.dashboard-analytics {
  margin-bottom: 18px;
}

.dashboard-advanced {
  margin-bottom: 18px;
}

.advanced-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(154px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.advanced-stat-card {
  position: relative;
  overflow: hidden;
  min-height: 96px;
  padding: 13px 14px;
  border: 1px solid rgba(219, 227, 236, 0.82);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fbfd);
  box-shadow: 0 10px 24px rgba(26, 47, 71, 0.08);
}

.advanced-stat-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--stat-color, var(--brand));
}

.advanced-stat-card.tone-blue { --stat-color: var(--blue); }
.advanced-stat-card.tone-green,
.advanced-stat-card.tone-teal { --stat-color: var(--accent); }
.advanced-stat-card.tone-gold { --stat-color: var(--gold); }
.advanced-stat-card.tone-sky { --stat-color: var(--sky); }
.advanced-stat-card.tone-indigo { --stat-color: var(--indigo); }
.advanced-stat-card.tone-red { --stat-color: var(--rose); }
.advanced-stat-card.tone-orange,
.advanced-stat-card.tone-amber { --stat-color: var(--amber); }

.advanced-stat-card > span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.advanced-stat-card .stat-value {
  display: block;
  margin-top: 10px;
  color: var(--text);
}

.advanced-stats-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.advanced-list-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: #fbfdff;
}

.advanced-list-card h4 {
  margin-bottom: 12px;
  font-size: 14px;
}

.advanced-list-card p {
  margin: 8px 0;
  color: var(--muted);
  font-size: 13px;
}

.advanced-row {
  display: grid;
  grid-template-columns: 72px minmax(110px, 1fr) 62px;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.advanced-row span {
  overflow: hidden;
  color: var(--text);
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.advanced-row strong {
  color: var(--text);
  font-size: 12px;
  text-align: right;
}

.payment-alert-panel {
  margin-bottom: 18px;
}

.alert-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  color: #0f2f3a;
  background: #e5eef4;
}

.alert-pill.danger {
  color: #7c1d1d;
  background: #fde2e2;
}

.alert-pill.warning {
  color: #6b3f00;
  background: #fff0cf;
}

.alert-pill.info {
  color: #17435f;
  background: #dceef8;
}

.analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.7fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.finance-bars,
.course-bars,
.tuition-ring-card {
  min-width: 0;
}

.finance-bars h4,
.course-bars h4 {
  margin-bottom: 14px;
  font-size: 14px;
}

.analytics-bar-row,
.course-analytics-row {
  display: grid;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.analytics-bar-row {
  grid-template-columns: minmax(120px, 0.9fr) minmax(160px, 1fr) 54px;
}

.course-analytics-row {
  grid-template-columns: 64px minmax(120px, 1fr) 34px;
}

.analytics-bar-row div:first-child {
  min-width: 0;
}

.analytics-bar-row strong,
.course-analytics-row span {
  display: block;
  font-weight: 800;
}

.analytics-bar-row span,
.analytics-bar-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.analytics-track {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4ebf2;
}

.analytics-fill {
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
}

.analytics-fill.tuition,
.analytics-fill.course {
  background: #1f8a68;
}

.analytics-fill.annex {
  background: #2377a8;
}

.analytics-fill.expense {
  background: #c43b3b;
}

.analytics-fill.balance {
  background: #d8952f;
}

.tuition-ring-card {
  display: grid;
  place-items: center;
  gap: 12px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 8px 16px;
  text-align: center;
}

.tuition-ring {
  --progress: 0%;
  display: grid;
  place-items: center;
  align-content: center;
  width: 154px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--surface) 58%, transparent 59%),
    conic-gradient(#1f8a68 var(--progress), #e4ebf2 0);
}

.tuition-ring strong {
  font-size: 30px;
}

.tuition-ring span,
.tuition-ring-details span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.tuition-ring-details {
  display: grid;
  gap: 4px;
}

.wide-settings-panel {
  grid-column: 1 / -1;
}

.report-grid {
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.report-financial-panel {
  grid-column: 1 / -1;
}

.report-schedule-panel {
  grid-column: 1 / -1;
}

.report-financial-panel .report-cards {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.report-individual-panel .panel-header {
  align-items: center;
}

.report-individual-panel .filters {
  width: 100%;
}

.report-individual-panel .report-cards {
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
}

.report-grid table {
  min-width: 0;
}

.report-grid th,
.report-grid td {
  padding: 10px 12px;
  font-size: 12px;
  white-space: normal;
}

.report-grid .table-wrap {
  overflow-x: visible;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.two-column > .panel:not(.wide-panel) {
  width: min(100%, 720px);
}

.two-column > .panel:not(.wide-panel) .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel {
  padding: 18px;
  min-width: 0;
  border-color: rgba(210, 222, 232, 0.9);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 253, 255, 0.98)),
    var(--surface);
  box-shadow: var(--soft-shadow);
}

.wide-panel {
  min-height: 320px;
}

.two-column .wide-panel {
  width: 100%;
}

.two-column .wide-panel table {
  min-width: 720px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: -2px -2px 16px;
  border-bottom: 1px solid rgba(219, 227, 236, 0.75);
  padding: 0 0 12px;
}

.panel-header.stacked {
  align-items: flex-start;
}

.panel-header h3 {
  margin: 0;
  font-size: 17px;
  letter-spacing: 0;
  color: #102f3b;
}

.panel-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

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

.form-grid label {
  min-width: 0;
}

label span {
  display: block;
  margin-bottom: 6px;
  color: #486075;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.full {
  grid-column: 1 / -1;
}

.is-hidden {
  display: none !important;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.button,
.link-button,
.chip-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 6px;
  min-height: 38px;
  padding: 0 14px;
  font-weight: 700;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.button.is-loading,
.chip-button.is-loading,
.link-button.is-loading {
  pointer-events: none;
  opacity: 0.88;
}

.button.is-loading::after,
.chip-button.is-loading::after,
.link-button.is-loading::after {
  content: "";
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: button-spin 0.75s linear infinite;
}

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

.button.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), #1b6b7d);
  box-shadow: 0 10px 22px rgba(20, 76, 99, 0.18);
}

.button.primary:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--brand-strong), var(--brand));
}

.button.secondary {
  color: var(--brand);
  background: linear-gradient(135deg, #e8f2f6, #f4f8fa);
  border: 1px solid #d5e3ea;
}

.button.danger {
  color: #ffffff;
  background: linear-gradient(135deg, var(--danger), #d24b4b);
}

.link-button {
  color: var(--brand);
  background: transparent;
  padding: 0 4px;
}

.chip-button {
  min-height: 30px;
  padding: 0 9px;
  color: var(--brand);
  background: #e8f2f6;
  font-size: 12px;
}

.chip-button:hover,
.button.secondary:hover {
  transform: translateY(-1px);
}

.chip-button.danger {
  color: #ffffff;
  background: var(--danger);
}

.chip-button.success {
  color: #ffffff;
  background: var(--accent);
}

.filters,
.table-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  width: 100%;
  align-items: end;
}

.table-filters {
  margin-bottom: 12px;
}

.filters input,
.filters select,
.filters button,
.table-filters input,
.table-filters select,
.table-filters button {
  min-width: 0;
  width: 100%;
}

.table-wrap,
.table-scroll {
  overflow: auto;
  border: 1px solid rgba(210, 222, 232, 0.95);
  border-radius: var(--radius);
  max-height: 520px;
  background: #ffffff;
}

.wide-panel .table-wrap,
.report-schedule-panel .table-wrap,
.report-individual-panel .table-wrap {
  max-height: 600px;
}

.table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.table-pagination div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-pagination strong {
  color: var(--text);
  font-size: 12px;
}

table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

th,
td {
  padding: 11px 12px;
  border-bottom: 1px solid #edf2f6;
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #486075;
  background: linear-gradient(180deg, #edf5f8, #e5eef4);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

tbody tr {
  transition: background 140ms ease;
}

tbody tr:hover {
  background: #f8fbfd;
}

tr:last-child td {
  border-bottom: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge,
.status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  background: #edf3f7;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.save-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #edf3f7;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.save-status.saving {
  background: #fff3d8;
  color: #8d5a10;
}

.save-status.saved {
  background: #e1f4ec;
  color: #1d6b52;
}

.save-status.error {
  background: #fde7e7;
  color: #9f2f2f;
}

.payment-fee-card {
  border: 1px solid rgba(12, 74, 96, 0.16);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfd 100%);
  padding: 14px;
  box-shadow: inset 4px 0 0 rgba(255, 111, 0, 0.75);
}

.payment-fee-head,
.payment-fee-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.payment-fee-head div,
.payment-fee-summary div {
  min-width: 0;
}

.payment-fee-head span,
.payment-fee-summary span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.payment-fee-head strong,
.payment-fee-summary strong {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.payment-fee-summary {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.compact-table-wrap {
  max-height: 260px;
}

.compact-table-wrap table {
  min-width: 620px;
}

.status.actif,
.status.active,
.status.validee,
.status.present {
  background: #dcf3e9;
  color: #1d6b52;
}

.status.preinscrit,
.status.en-attente,
.status.retard {
  background: #fff1ce;
  color: #8d5a10;
}

.status.suspendu,
.status.abandon,
.status.annulee,
.status.absent {
  background: #fde7e7;
  color: #9f2f2f;
}

.status.termine,
.status.terminee,
.status.excuse {
  background: #e8eefb;
  color: #385a9d;
}

.muted {
  color: var(--muted);
}

.amount-positive {
  color: var(--accent);
  font-weight: 800;
}

.amount-danger {
  color: var(--danger);
  font-weight: 800;
}

.attendance-list {
  display: grid;
  gap: 8px;
  max-height: 420px;
  overflow: auto;
  padding-right: 4px;
}

.attendance-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 148px;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
}
.attendance-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(5, minmax(140px, 1fr));
  gap: 10px;
  align-items: end;
  margin: 12px 0 14px;
}

.attendance-filters input,
.attendance-filters select {
  min-width: 0;
}

.attendance-summary-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(90px, 1fr));
  gap: 10px;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.attendance-metric-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: linear-gradient(135deg, #ffffff 0%, #eef7fb 100%);
}

.attendance-metric-card span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.attendance-metric-card strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 1.15rem;
}

.attendance-metric-card.success { border-left: 4px solid var(--accent); }
.attendance-metric-card.danger { border-left: 4px solid var(--danger); }
.attendance-metric-card.warning { border-left: 4px solid #d99520; }
.attendance-metric-card.info { border-left: 4px solid var(--primary); }

@media (max-width: 1100px) {
  .attendance-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 640px) {
  .attendance-filters,
  .attendance-summary-cards {
    grid-template-columns: 1fr;
  }
}

.attendance-teacher-area {
  margin-top: 18px;
}

.access-settings {
  display: grid;
  gap: 12px;
}

.password-reset-requests {
  margin-bottom: 14px;
}

.password-reset-empty {
  margin: 0 0 12px;
}

.password-reset-list {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  background: #f8fbfd;
}

.password-reset-list h4 {
  margin: 0;
  font-size: 15px;
}

.password-reset-request {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.password-reset-request strong,
.password-reset-request span {
  display: block;
}

.password-reset-request span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.access-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
}

.access-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.access-user-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.access-checks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 12px;
  margin-top: 12px;
}

.access-checks label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  color: var(--text);
}

.password-toggle-line {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: end;
  min-height: 42px;
  color: var(--muted);
  font-weight: 800;
}

.password-toggle-line input {
  width: auto;
}

.grade-entry-list {
  display: grid;
  gap: 8px;
  max-height: 440px;
  overflow: auto;
  padding-right: 4px;
}

.student-search-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.student-result-button {
  display: grid;
  gap: 3px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 10px;
  cursor: pointer;
}

.student-result-button:hover,
.student-result-button.selected {
  border-color: var(--primary);
  background: #eef8fb;
}

.student-result-button span,
.grade-student-decision {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.grade-student-decision {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7fbfd;
  padding: 10px;
}

.grade-student-decision.makeup {
  color: #8d2b2b;
  background: #fde2e2;
}

.grade-entry-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px 118px minmax(130px, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
}

.student-line strong {
  display: block;
  font-size: 14px;
}

.student-line span {
  color: var(--muted);
  font-size: 12px;
}

.grade-rule {
  display: inline-flex;
  width: fit-content;
  margin-top: 5px;
  border-radius: 999px;
  padding: 3px 8px;
  color: #1d6b52;
  background: #e1f4ec;
  font-size: 11px;
  font-weight: 900;
}

.grade-rule.makeup {
  color: #8d2b2b;
  background: #fde2e2;
}

.student-makeup-notice td {
  color: #7a3b00;
  background: #fff4df;
  font-weight: 800;
  white-space: normal;
}

.student-makeup-notice strong {
  display: block;
  margin-bottom: 4px;
}

.report-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mini-card {
  padding: 13px 14px;
  border-color: #d8e5ec;
  background: linear-gradient(180deg, #ffffff, #f8fbfd);
  box-shadow: none;
  min-width: 0;
}

.mini-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.mini-card strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.distribution {
  display: grid;
  gap: 12px;
}

.bar-row {
  display: grid;
  grid-template-columns: 180px minmax(120px, 1fr) 46px;
  gap: 12px;
  align-items: center;
  font-size: 14px;
}

.bar-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4ebf2;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.action-stack {
  display: grid;
  gap: 10px;
  max-width: 320px;
}

.motif-settings {
  display: grid;
  gap: 10px;
}

.fee-settings {
  display: grid;
  gap: 10px;
}

.logo-setting {
  display: grid;
  grid-template-columns: 86px minmax(180px, 320px);
  gap: 16px;
  align-items: center;
  margin-bottom: 4px;
}

.logo-preview {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--brand);
  background: #f8fbfd;
  font-size: 24px;
  font-weight: 900;
}

.person-cell {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.person-avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border-radius: 8px;
  object-fit: contain;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.person-avatar.placeholder {
  display: grid;
}

.person-file-box {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfdff;
}

.person-photo-box {
  display: grid;
  grid-template-columns: 112px minmax(180px, 320px);
  gap: 14px;
  align-items: center;
}

.person-photo-preview {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--brand);
  font-weight: 900;
}

.person-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.person-details-line,
.missing-documents {
  margin-top: 3px;
  color: #7b4d12;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.missing-documents {
  color: var(--danger);
}

.status.active + .missing-documents {
  color: var(--accent);
}

.student-portal-profile {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.student-portal-photo {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfd;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.student-portal-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.document-upload-box {
  display: grid;
  gap: 10px;
}

.document-upload-box h4 {
  margin: 0;
  font-size: 14px;
}

.required-documents-settings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.required-documents-settings textarea {
  min-height: 110px;
  line-height: 1.5;
}

.document-upload-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(150px, 190px) auto;
  gap: 10px;
  align-items: center;
}

.attached-document-list {
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
}

.attached-document-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px;
  background: #ffffff;
}

.attached-document-item strong,
.attached-document-item span {
  display: block;
}

.attached-document-item span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.motif-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 160px auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
}

.motif-row strong {
  font-size: 14px;
}

.fee-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) repeat(3, minmax(120px, 1fr));
  gap: 12px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
}

.fee-row strong,
.fee-row span {
  display: block;
}

.fee-row > div > span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.fee-summary-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f8fbfd;
}

.fee-summary-box h4 {
  margin: 0 0 8px;
}

.fee-preview-list,
.course-fee-list {
  display: grid;
  gap: 8px;
}

.fee-preview-item,
.fee-preview-total {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) repeat(3, minmax(110px, auto));
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.88rem;
}

.fee-preview-total {
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  background: #eef7f3;
}

.detailed-fee-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.course-fee-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.course-version-settings {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7fbfd;
}

.course-fee-row {
  display: grid;
  grid-template-columns: minmax(170px, 1.3fr) minmax(130px, 0.8fr) 110px repeat(4, auto) 70px minmax(140px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  font-size: 0.8rem;
  font-weight: 800;
}

.compact-document-grid {
  grid-template-columns: minmax(220px, 1.2fr) minmax(220px, 1fr) minmax(220px, 1fr);
}

.document-template-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  gap: 16px;
  align-items: start;
}

.document-template-list {
  display: grid;
  gap: 10px;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.document-template-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  background: #fbfdff;
}

.document-template-card.is-archived {
  opacity: 0.65;
}

.document-template-card strong,
.document-template-card span {
  display: block;
}

.document-template-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.document-template-card .row-actions {
  justify-content: flex-start;
}

.document-template-form textarea {
  min-height: 260px;
  resize: vertical;
  line-height: 1.55;
}

.placeholder-help {
  line-height: 1.6;
}

.custom-document-body {
  margin-top: 24px;
  line-height: 1.8;
  font-size: 14px;
}

.custom-document-body p {
  margin: 0 0 16px;
}

.file-input {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 6px;
  color: var(--brand);
  background: #e7f0f4;
  font-weight: 800;
}

.file-input input {
  display: none;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  border-radius: 8px;
  padding: 12px 14px;
  color: #ffffff;
  background: #122b35;
  box-shadow: var(--shadow);
  transition: 180ms ease;
  z-index: 20;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.security-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
}

.security-modal[hidden] {
  display: none;
}

.security-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 22, 29, 0.76);
}

.security-modal-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  width: min(430px, 100%);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.security-modal-card h3 {
  margin: 0;
  font-size: 22px;
}

.print-area {
  display: none;
}

.print-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
}

body.print-preview-open {
  overflow: hidden;
}

.print-preview-modal[hidden] {
  display: none;
}

.print-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 22, 29, 0.72);
}

.print-preview-shell {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1080px, calc(100vw - 28px));
  height: min(92vh, 920px);
  margin: 4vh auto;
  overflow: hidden;
  border-radius: 8px;
  background: #eef4f7;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.print-preview-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.print-preview-header h3 {
  margin: 2px 0 0;
}

.print-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.print-preview-body {
  overflow: auto;
  padding: 26px;
}

.print-preview-body .print-document {
  margin: 0 auto;
  padding: 28px;
  color: #111111;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(25, 43, 55, 0.16);
  font-family: Arial, sans-serif;
  overflow: hidden;
}

.print-document img {
  max-width: 100%;
  height: auto;
}

.print-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #aaaaaa;
}

.print-header img {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.print-header h1,
.print-header h2 {
  margin: 0;
}

.print-header p {
  margin: 4px 0;
}

.print-preview-body .print-document:not(.receipt-document) {
  width: min(100%, 794px);
  min-height: 1123px;
}

.print-preview-body .print-document:not(.receipt-document) {
  box-sizing: border-box;
  padding: 190px 56px 92px;
  background: #ffffff url("public/papier-entete-cfp-erexit.png") center top / 100% 100% no-repeat;
}

.print-document:not(.receipt-document) .print-header,
.print-document:not(.receipt-document) .print-header + hr {
  display: none;
}

.print-document:not(.receipt-document) h2:first-of-type {
  margin: 0 0 22px;
  color: #0a2838;
  font-size: 22px;
  text-align: center;
  text-transform: uppercase;
}

.print-preview-body .receipt-document.receipt-sheet {
  width: min(100%, 1122px);
  min-height: 794px;
  box-sizing: border-box;
  padding: 0;
}

.receipt-document.receipt-sheet {
  page: receipt;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr);
  gap: 0;
  width: 297mm;
  min-height: 210mm;
  padding: 6mm;
  box-sizing: border-box;
  background: #ffffff;
  color: #111111;
  font-family: "Times New Roman", Times, serif;
}

.receipt-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 198mm;
  padding: 6mm 7mm;
  border: 1px solid #111111;
  background: #ffffff;
  font-size: 9.2px;
  line-height: 1.12;
  overflow: hidden;
}

.receipt-copy *,
.receipt-copy *::before,
.receipt-copy *::after {
  box-sizing: border-box;
}

.receipt-cut-line {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.receipt-cut-line::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  border-left: 1.4px dashed #777777;
}

.receipt-cut-line span {
  position: relative;
  z-index: 1;
  padding: 4px 3px;
  background: #ffffff;
  color: #666666;
  font: 700 7px Arial, sans-serif;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.receipt-header-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 10px;
}

.receipt-school,
.receipt-republic,
.receipt-contact,
.receipt-logo-wrap,
.receipt-reference,
.receipt-student,
.receipt-lines-table th,
.receipt-lines-table td,
.receipt-summary-table th,
.receipt-summary-table td {
  text-align: center;
}

.receipt-school h1,
.receipt-republic h2 {
  margin: 0;
  font-size: 10.2px;
  line-height: 1.06;
  text-transform: uppercase;
}

.receipt-school p,
.receipt-republic p,
.receipt-contact span,
.receipt-contact strong {
  margin: 2px 0;
  font-size: 7.8px;
  font-weight: 700;
}

.receipt-school::after {
  content: "";
  display: block;
  width: 84%;
  margin: 4px auto 0;
  border-bottom: 1.3px solid #111111;
}

.receipt-logo-wrap {
  text-align: center;
  margin: 1px 0 2px;
}

.receipt-logo-wrap img {
  width: 58px;
  height: 44px;
  object-fit: contain;
}

.receipt-contact {
  display: grid;
  gap: 0;
  margin: 1px 0 4px;
  text-transform: uppercase;
}

.receipt-copy-label {
  position: absolute;
  top: 5mm;
  right: 6mm;
  color: #555555;
  font: 700 7px Arial, sans-serif;
  text-transform: uppercase;
}

.receipt-type {
  margin: 3px 0 5px;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.receipt-reference {
  width: 100%;
  border: 1.6px solid #111111;
  padding: 3px 6px;
  font-size: 11.5px;
  font-weight: 900;
  text-transform: uppercase;
}

.receipt-student {
  margin: 6px 0;
  padding: 4px 6px;
  border: 1.6px solid #111111;
  font-size: 11.5px;
  text-transform: uppercase;
}

.receipt-identity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 10px;
  margin-bottom: 5px;
  font-size: 8px;
}

.receipt-summary-table,
.receipt-lines-table {
  width: 100%;
  max-width: 100%;
  min-width: 0 !important;
  border-collapse: collapse;
  table-layout: fixed;
}

.receipt-summary-table {
  margin-top: 5px;
  font-size: 8.3px;
}

.receipt-lines-table {
  margin-top: 5px;
  font-size: 9px;
}

.receipt-summary-table th,
.receipt-summary-table td,
.receipt-lines-table th,
.receipt-lines-table td {
  border: 1.15px solid #111111;
  padding: 3px 4px;
  color: #111111;
  background: #ffffff;
  text-transform: none;
  white-space: normal;
  overflow-wrap: anywhere;
}

.receipt-lines-table th {
  font-size: 9px;
}

.receipt-lines-table td:first-child {
  text-align: left;
}

.receipt-lines-table .amount-cell {
  width: 35%;
  text-align: center;
  white-space: nowrap;
}

.receipt-total-row td {
  font-weight: 900;
}

.receipt-extra {
  display: grid;
  gap: 2px;
  margin-top: 5px;
  font-size: 7.8px;
  text-align: left;
}

.receipt-extra p {
  margin: 0;
}

.receipt-responsibles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: auto;
  padding-top: 10px;
  font-family: "Courier New", monospace;
  font-size: 7.3px;
}

.receipt-responsibles strong,
.receipt-responsibles span {
  display: block;
}

.receipt-signature {
  margin: 20px 12px 6px auto;
  width: 122px;
  border-top: 1.6px solid #111111;
  padding-top: 3px;
  text-align: center;
  font-size: 8px;
  font-weight: 700;
}

.receipt-signature img {
  display: block;
  max-width: 98px;
  max-height: 45px;
  object-fit: contain;
  margin: -38px auto 3px;
  opacity: 0.9;
}

.receipt-note {
  margin: 5px 0 0;
  font-family: "Courier New", monospace;
  font-size: 7px;
}

@media (max-width: 1120px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .workspace {
    padding: 22px;
  }

  .login-options,
  .login-choice-view,
  .student-portal-grid,
  .notification-summary-grid,
  .two-column,
  .analytics-grid,
  .advanced-stats-details,
  .dashboard-grid,
  .report-grid,
  .settings-grid,
  .compact-document-grid,
  .document-template-layout {
    grid-template-columns: 1fr;
  }

  .analytics-grid {
    gap: 14px;
  }

  .report-grid .table-wrap {
    overflow-x: auto;
  }

  .document-upload-row,
  .person-photo-box,
  .compact-toolbar,
  .required-documents-settings {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 940px) {
  .app-shell {
    grid-template-columns: 1fr;
    width: 100%;
    overflow: hidden;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 12px 16px;
    height: auto;
    max-height: none;
    overflow: visible;
    align-self: stretch;
  }

  .sidebar .brand {
    padding: 4px 2px 10px;
  }

  .sidebar .brand h1 {
    font-size: 18px;
  }

  .nav-list {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .nav-button {
    flex: 0 0 auto;
    width: auto;
    min-height: 38px;
    padding: 9px 11px;
    white-space: nowrap;
  }

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

  .topbar-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .role-selector {
    align-items: stretch;
    flex-direction: column;
    gap: 5px;
  }

  .user-pill,
  .save-status,
  .topbar-actions .button {
    justify-content: center;
    width: 100%;
  }

  .panel-header {
    align-items: stretch;
    flex-direction: column;
  }

  .panel-header .filters,
  .filters {
    width: 100%;
  }

  .student-portal-shell {
    padding: 20px;
  }

  .workspace,
  .view,
  .topbar,
  .stats-grid,
  .panel {
    max-width: 100%;
  }
}

@media (max-width: 780px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 16px;
  }

  .nav-list {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav-button {
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap;
  }

  .workspace {
    padding: 18px;
  }

  .topbar h2 {
    font-size: 25px;
  }

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

  .filters,
  .table-filters {
    grid-template-columns: 1fr;
  }

  .topbar-actions {
    display: flex;
  }

  .stats-grid,
  .form-grid,
  .report-cards {
    grid-template-columns: 1fr;
  }

  .two-column > .panel:not(.wide-panel) {
    width: 100%;
  }

  .two-column > .panel:not(.wide-panel) .form-grid {
    grid-template-columns: 1fr;
  }

  .stat-card .stat-value.count,
  .money-number {
    font-size: 24px;
  }

  .student-portal-topbar,
  .student-portal-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .student-portal-shell {
    padding: 18px;
  }

  .detail-row {
    grid-template-columns: 1fr;
  }

  .login-choice-hero {
    min-height: auto;
    padding: 28px;
  }

  .login-choice-hero h1 {
    font-size: 28px;
  }

  .login-choice-grid {
    padding: 24px;
  }

  .login-choice-card {
    grid-template-columns: 46px minmax(0, 1fr);
    min-height: 118px;
  }

  .choice-mark {
    width: 46px;
    height: 46px;
  }

  .bar-row {
    grid-template-columns: 1fr;
  }

  .payment-fee-head,
  .payment-fee-summary {
    grid-template-columns: 1fr;
  }

  .analytics-bar-row,
  .course-analytics-row,
  .advanced-row {
    grid-template-columns: 1fr;
  }

  .analytics-bar-row em,
  .course-analytics-row strong,
  .advanced-row strong {
    justify-self: start;
    text-align: left;
  }

  .tuition-ring {
    width: 132px;
  }

  .tuition-ring-card {
    border-left: 0;
    border-right: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .attendance-row {
    grid-template-columns: 1fr;
  }

  .access-user-grid,
  .access-checks {
    grid-template-columns: 1fr;
  }

  .grade-entry-row {
    grid-template-columns: 1fr;
  }

  .motif-row {
    grid-template-columns: 1fr;
  }

  .fee-row {
    grid-template-columns: 1fr;
  }

  .course-fee-row,
  .course-version-settings,
  .fee-preview-item,
  .fee-preview-total {
    grid-template-columns: 1fr;
  }

  .course-fee-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .logo-setting {
    grid-template-columns: 1fr;
  }

  .table-wrap,
  .table-scroll {
    margin-inline: -2px;
  }

  table {
    min-width: 560px;
  }

  th,
  td {
    padding: 10px;
  }
}

@media (max-width: 560px) {
  .login-screen {
    align-items: stretch;
    padding: 14px;
  }

  .login-options {
    width: 100%;
  }

  .login-choice-view,
  .login-card {
    box-shadow: 0 14px 34px rgba(16, 47, 59, 0.12);
  }

  .login-choice-hero {
    padding: 22px;
  }

  .login-choice-hero .brand-mark.large {
    width: 58px;
    height: 58px;
    margin-bottom: 16px;
  }

  .login-choice-hero h1 {
    font-size: 25px;
  }

  .login-choice-hero p:last-child {
    font-size: 14px;
  }

  .login-choice-grid {
    padding: 18px;
  }

  .login-choice-card {
    grid-template-columns: 42px minmax(0, 1fr);
    min-height: 108px;
    padding: 14px;
  }

  .choice-mark {
    width: 42px;
    height: 42px;
  }

  .login-choice-card strong {
    font-size: 18px;
  }

  .login-card {
    padding: 18px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .sidebar {
    padding: 12px;
  }

  .sidebar .brand p {
    display: none;
  }

  .workspace,
  .student-portal-shell {
    padding: 14px;
  }

  .topbar {
    margin-bottom: 16px;
  }

  .topbar h2 {
    font-size: 23px;
  }

  .stats-grid {
    gap: 10px;
  }

  .stat-card,
  .panel,
  .mini-card {
    box-shadow: 0 10px 24px rgba(26, 47, 71, 0.06);
  }

  .panel {
    padding: 14px;
  }

  .panel-header h3 {
    font-size: 17px;
  }

  .button,
  .link-button,
  .chip-button,
  input,
  select,
  textarea {
    min-height: 42px;
  }

  .filters,
  .table-filters {
    gap: 8px;
  }

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

  .table-pagination div {
    justify-content: space-between;
  }

  .action-stack {
    max-width: none;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .actions .chip-button,
  .actions .button {
    width: 100%;
  }

  .bar-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .student-portal-topbar {
    padding: 14px;
  }

  .student-portal-hero {
    padding: 16px;
  }

  .student-portal-hero h2 {
    font-size: 24px;
  }

  .access-card-header {
    align-items: stretch;
    flex-direction: column;
  }

  .password-reset-request {
    align-items: stretch;
    flex-direction: column;
  }

  .toast {
    right: 14px;
    bottom: 14px;
    left: 14px;
  }
}

@media (max-width: 420px) {
  .login-screen {
    padding: 10px;
  }

  .login-choice-hero,
  .login-choice-grid,
  .login-card,
  .panel {
    padding: 14px;
  }

  .login-choice-card {
    grid-template-columns: 1fr;
  }

  .choice-mark {
    grid-row: auto;
  }

  .topbar-actions {
    gap: 8px;
  }

  .stat-card .stat-value.count,
  .money-number {
    font-size: 22px;
  }

  table {
    min-width: 520px;
  }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 12mm;
  }

  @page document {
    size: A4;
    margin: 0;
  }

  @page receipt {
    size: A4 landscape;
    margin: 8mm;
  }

  body {
    background: #ffffff;
  }

  .app-shell,
  .toast,
  .print-preview-modal {
    display: none !important;
  }

  .print-area {
    display: block;
    padding: 0;
    color: #111111;
    font-family: Arial, sans-serif;
  }

  .print-document {
    page: document;
    max-width: 760px;
    margin: 0 auto;
  }

  .print-document:not(.receipt-document) {
    box-sizing: border-box;
    width: 210mm;
    max-width: none;
    min-height: 297mm;
    padding: 54mm 18mm 24mm;
    background: #ffffff url("public/papier-entete-cfp-erexit.png") center top / 210mm 297mm no-repeat;
  }

  .print-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
  }

  .print-header img {
    width: 72px;
    height: 72px;
    object-fit: contain;
  }

  .print-document h1,
  .print-document h2 {
    margin: 0;
  }

  .print-document p {
    margin: 4px 0;
  }

  .print-document table {
    min-width: 0;
  }

  .print-document th {
    position: static;
  }

  .transcript-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 16px;
  }

  .transcript-summary div {
    border: 1px solid #222222;
    padding: 8px;
  }

  .transcript-summary span,
  .transcript-summary strong {
    display: block;
  }

  .transcript-summary span {
    font-size: 11px;
  }

  .print-signature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 46px;
    text-align: center;
  }

  .print-signature-row p {
    border-top: 2px solid #111111;
    padding-top: 8px;
  }

  .receipt-document {
    page: receipt;
    width: 100%;
    max-width: none;
    min-height: 0;
    padding: 0;
    font-family: "Times New Roman", Times, serif;
    font-size: 10px;
    line-height: 1.16;
  }

  .receipt-header-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 14px;
  }

  .receipt-school,
  .receipt-republic,
  .receipt-contact,
  .receipt-logo-wrap,
  .receipt-reference,
  .receipt-student,
  .receipt-lines-table th,
  .receipt-lines-table td,
  .receipt-summary-table th,
  .receipt-summary-table td {
    text-align: center;
  }

  .receipt-school h1,
  .receipt-republic h2 {
    font-size: 11px;
    line-height: 1.08;
    text-transform: uppercase;
  }

  .receipt-school p,
  .receipt-republic p,
  .receipt-contact span {
    font-size: 8.5px;
    font-weight: 700;
  }

  .receipt-school::after {
    content: "";
    display: block;
    width: 84%;
    margin: 5px auto 0;
    border-bottom: 1.6px solid #111111;
  }

  .receipt-logo-wrap img {
    width: 70px;
    height: 52px;
    object-fit: contain;
  }

  .receipt-logo-wrap {
    text-align: center;
    margin: 2px 0 3px;
  }

  .receipt-contact {
    display: grid;
    gap: 1px;
    margin: 2px 0 7px;
    font-size: 8.5px;
    text-transform: uppercase;
  }

  .receipt-type {
    margin: 4px 0 7px;
    text-align: center;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .receipt-topline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    align-items: stretch;
    margin: 5px 0 8px;
  }

  .receipt-reference {
    border: 1.8px solid #111111;
    padding: 4px 7px;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .receipt-student {
    margin: 9px 0;
    padding: 5px 7px;
    border: 1.8px solid #111111;
    font-size: 13px;
    text-align: center;
    text-transform: uppercase;
  }

  .receipt-summary-table,
  .receipt-lines-table {
    width: 100%;
    border-collapse: collapse;
  }

  .receipt-summary-table {
    font-size: 9px;
  }

  .receipt-lines-table {
    margin-top: 7px;
    font-size: 10px;
  }

  .receipt-summary-table th,
  .receipt-summary-table td,
  .receipt-lines-table th,
  .receipt-lines-table td {
    border: 1.3px solid #111111;
    padding: 4px 5px;
    color: #111111;
    background: #ffffff;
    text-transform: none;
  }

  .receipt-lines-table th {
    font-size: 10.5px;
  }

  .receipt-lines-table td:first-child {
    text-align: left;
  }

  .receipt-responsibles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 18px;
    font-family: "Courier New", monospace;
    font-size: 8px;
  }

  .receipt-responsibles strong,
  .receipt-responsibles span {
    display: block;
  }

  .receipt-signature {
    margin: 34px 18px 10px auto;
    width: 138px;
    border-top: 1.8px solid #111111;
    padding-top: 4px;
    text-align: center;
    font-weight: 700;
  }

  .receipt-signature img {
    display: block;
    max-width: 118px;
    max-height: 60px;
    object-fit: contain;
    margin: -50px auto 4px;
    opacity: 0.9;
  }

  .receipt-note {
    margin-top: 14px;
    font-family: "Courier New", monospace;
    font-size: 8px;
  }

  .document-signature,
  .contract-signatures {
    margin-top: 52px;
    display: flex;
    justify-content: flex-end;
    gap: 80px;
    text-align: center;
  }

  .contract-signatures {
    justify-content: space-between;
  }

  .document-signature img,
  .contract-signatures img {
    display: block;
    max-width: 150px;
    max-height: 80px;
    object-fit: contain;
    margin: 0 auto 8px;
  }

  .document-signature span,
  .contract-signatures span {
    display: block;
    margin-top: 42px;
    border-top: 1.6px solid #111111;
    padding-top: 5px;
  }
}


/* Premium login access page - 20260619 */
.login-screen {
  display: none;
  min-height: 100vh;
  place-items: center;
  padding: clamp(18px, 3vw, 42px);
  overflow: auto;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 106, 0, 0.25), transparent 24rem),
    radial-gradient(circle at 86% 8%, rgba(62, 176, 220, 0.34), transparent 28rem),
    radial-gradient(circle at 72% 88%, rgba(255, 255, 255, 0.72), transparent 26rem),
    linear-gradient(135deg, #061f2d 0%, #0d3b55 44%, #eaf6fb 100%);
}

body.needs-login .login-screen {
  display: grid;
}

.login-options {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}

.login-choice-view {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  min-height: 650px;
  overflow: hidden;
  border: 1px solid rgba(203, 222, 234, 0.78);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 34px 90px rgba(3, 24, 36, 0.28);
  backdrop-filter: blur(18px);
}

.login-choice-view[hidden] {
  display: none;
}

.login-choice-hero {
  position: relative;
  display: grid;
  align-content: space-between;
  min-height: 650px;
  padding: clamp(34px, 4.2vw, 58px);
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(145deg, rgba(7, 35, 51, 0.98), rgba(13, 75, 105, 0.93)),
    #082b40;
}

.login-choice-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 54px 54px;
}

.login-hero-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  filter: blur(22px);
  opacity: 0.72;
  pointer-events: none;
}

.login-hero-glow.one {
  top: -90px;
  left: -72px;
  background: rgba(255, 106, 0, 0.42);
}

.login-hero-glow.two {
  right: -110px;
  bottom: 80px;
  background: rgba(82, 190, 226, 0.36);
}

.login-hero-content,
.login-visual {
  position: relative;
  z-index: 1;
}

.login-brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(30px, 5vw, 70px);
}

.login-brand-row .brand-mark.large {
  width: 76px;
  height: 76px;
  margin: 0;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.18);
}

.login-brand-row .brand-mark.large img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.login-brand-row .eyebrow {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.76);
}

.login-brand-row strong {
  display: block;
  font-size: 18px;
  letter-spacing: 0;
}

.login-choice-hero h1 {
  max-width: 660px;
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.03;
  letter-spacing: 0;
}

.login-choice-hero p {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(235, 247, 252, 0.88);
  font-size: clamp(15px, 1.55vw, 18px);
  line-height: 1.65;
}

.login-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 650px;
  margin-top: 24px;
}

.login-badges span {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 800;
}

.login-visual {
  display: grid;
  gap: 16px;
  max-width: 690px;
  margin-top: 38px;
}

.login-visual-card {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
}

.login-visual-card.main strong {
  display: block;
  max-width: 520px;
  margin-top: 8px;
  color: #ffffff;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.12;
}

.login-visual-card.main p {
  margin-top: 10px;
  font-size: 14px;
}

.visual-kicker {
  color: #ffd4b8;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.visual-progress {
  width: min(420px, 100%);
  height: 9px;
  margin-top: 20px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.visual-progress span {
  display: block;
  width: 74%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff6a00, #ffd08a, #6bd2ee);
}

.login-visual-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.login-visual-grid div {
  min-height: 124px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.login-visual-grid span {
  color: #ffb574;
  font-weight: 900;
}

.login-visual-grid strong,
.login-visual-grid small {
  display: block;
}

.login-visual-grid strong {
  margin-top: 12px;
  color: #ffffff;
  font-size: 16px;
}

.login-visual-grid small {
  margin-top: 7px;
  color: rgba(235, 247, 252, 0.76);
  line-height: 1.45;
}

.login-choice-grid {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(26px, 3.4vw, 46px);
  background:
    radial-gradient(circle at top right, rgba(255, 106, 0, 0.12), transparent 17rem),
    linear-gradient(180deg, #ffffff 0%, #f6fbfe 100%);
}

.login-choice-heading {
  margin-bottom: 4px;
}

.login-choice-heading .eyebrow {
  margin: 0 0 6px;
  color: #f06a00;
}

.login-choice-heading h2 {
  margin: 0;
  color: #082334;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: 0;
}

.login-choice-heading p {
  margin: 10px 0 0;
  color: #5f7083;
  line-height: 1.55;
}

.login-choice-card {
  position: relative;
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 124px;
  overflow: hidden;
  border: 1px solid #d4e3ed;
  border-radius: 20px;
  padding: 18px;
  color: #092334;
  background: linear-gradient(135deg, #ffffff 0%, #f1f8fc 100%);
  text-align: left;
  box-shadow: 0 18px 36px rgba(16, 47, 59, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  cursor: pointer;
}

.login-choice-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, #0e6381, #2fb4db);
}

.login-choice-card.student::before {
  background: linear-gradient(180deg, #16895f, #69d69d);
}

.login-choice-card.online-registration-link::before {
  background: linear-gradient(180deg, #ff6a00, #f4b84d);
}

a.login-choice-card {
  text-decoration: none;
}

.login-choice-card:hover,
.login-choice-card:focus-visible {
  border-color: rgba(15, 91, 125, 0.42);
  box-shadow: 0 24px 50px rgba(16, 47, 59, 0.15);
  transform: translateY(-4px);
  outline: none;
}

.choice-mark {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(20, 76, 99, 0.12);
  overflow: hidden;
}

.choice-mark img {
  width: 88%;
  height: 88%;
  object-fit: contain;
}

.choice-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.login-choice-card strong {
  color: #082334;
  font-size: 21px;
  line-height: 1.15;
}

.login-choice-card small {
  color: #5f7083;
  font-size: 13px;
  line-height: 1.5;
}

.choice-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 7px 12px;
  color: #0e4c65;
  background: #e5f2f7;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.login-form-panel {
  justify-self: center;
  width: min(460px, 100%);
  max-width: 460px;
}

.login-card {
  border: 1px solid rgba(203, 222, 234, 0.82);
  border-radius: 24px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 70px rgba(3, 24, 36, 0.18);
}

.login-brand .brand-mark {
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(20, 76, 99, 0.1);
}

@media (max-width: 1120px) {
  .login-choice-view {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .login-choice-hero {
    min-height: auto;
  }

  .login-choice-grid {
    align-content: start;
  }
}

@media (max-width: 720px) {
  .login-screen {
    padding: 12px;
  }

  .login-choice-view {
    border-radius: 20px;
  }

  .login-choice-hero {
    padding: 24px;
  }

  .login-brand-row {
    margin-bottom: 28px;
  }

  .login-brand-row .brand-mark.large {
    width: 62px;
    height: 62px;
    border-radius: 16px;
  }

  .login-choice-hero h1 {
    font-size: 33px;
  }

  .login-badges {
    gap: 8px;
  }

  .login-badges span {
    min-height: 30px;
    padding: 7px 10px;
    font-size: 11px;
  }

  .login-visual {
    margin-top: 26px;
  }

  .login-visual-grid {
    grid-template-columns: 1fr;
  }

  .login-visual-grid div {
    min-height: 92px;
  }

  .login-choice-grid {
    padding: 20px;
  }

  .login-choice-card {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
    min-height: 122px;
    border-radius: 16px;
    padding: 16px;
  }

  .choice-mark {
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }

  .choice-action {
    grid-column: 2;
    justify-self: start;
  }

  .login-choice-card strong {
    font-size: 18px;
  }
}

@media (max-width: 420px) {
  .login-choice-hero h1 {
    font-size: 29px;
  }

  .login-choice-heading h2 {
    font-size: 24px;
  }

  .login-card {
    padding: 20px;
    border-radius: 18px;
  }
}


/* Central premium login access page - 20260620 */
.login-screen {
  display: none;
  min-height: 100vh;
  place-items: center;
  padding: clamp(16px, 4vw, 40px);
  overflow: auto;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 106, 0, 0.16), transparent 18rem),
    radial-gradient(circle at 82% 22%, rgba(45, 160, 205, 0.22), transparent 22rem),
    linear-gradient(135deg, #dff1f8 0%, #f8fcff 48%, #eef7fb 100%);
}

body.needs-login .login-screen {
  display: grid;
}

.login-options {
  width: min(1040px, 100%);
  display: grid;
  align-items: center;
}

.login-choice-view {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr);
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 30px 80px rgba(8, 45, 64, 0.18);
  backdrop-filter: blur(18px);
}

.login-choice-view[hidden] {
  display: none;
}

.login-choice-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 520px;
  padding: clamp(30px, 4vw, 50px);
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(145deg, rgba(5, 32, 48, 0.98), rgba(12, 74, 104, 0.96) 62%, rgba(8, 52, 74, 0.98)),
    #082b40;
}

.login-choice-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.13;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 42px 42px;
}

.login-choice-hero::after {
  content: "";
  position: absolute;
  right: -74px;
  bottom: -74px;
  width: 220px;
  height: 220px;
  border: 26px solid rgba(255, 106, 0, 0.18);
  border-radius: 50%;
}

.login-hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(20px);
  pointer-events: none;
}

.login-hero-glow.one {
  top: -68px;
  left: -54px;
  width: 230px;
  height: 230px;
  background: rgba(255, 106, 0, 0.42);
}

.login-hero-glow.two {
  right: -88px;
  top: 120px;
  width: 280px;
  height: 280px;
  background: rgba(109, 210, 238, 0.24);
}

.login-hero-content,
.login-hero-note {
  position: relative;
  z-index: 1;
}

.login-brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 42px;
}

.login-brand-row .brand-mark.large {
  width: 86px;
  height: 86px;
  margin: 0;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

.login-brand-row .brand-mark.large img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.login-brand-row .eyebrow {
  margin: 0 0 4px;
  color: rgba(231, 246, 252, 0.78);
}

.login-brand-row strong {
  display: block;
  color: #ffffff;
  font-size: 19px;
  letter-spacing: 0;
}

.login-choice-hero h1 {
  max-width: 540px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(34px, 4.3vw, 54px);
  line-height: 1.04;
  letter-spacing: 0;
}

.login-choice-hero p {
  max-width: 480px;
  margin: 18px 0 0;
  color: rgba(231, 246, 252, 0.88);
  font-size: 16px;
  line-height: 1.62;
}

.login-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  max-width: 480px;
  margin-top: 24px;
}

.login-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
  font-size: 12px;
  font-weight: 850;
}

.login-hero-note {
  display: grid;
  gap: 6px;
  max-width: 380px;
  margin-top: 38px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.11);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.13);
}

.login-hero-note span {
  color: #ffd6ba;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.login-hero-note strong {
  color: #ffffff;
  font-size: 18px;
  line-height: 1.25;
}

.login-choice-grid {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(28px, 4vw, 48px);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 106, 0, 0.1), transparent 15rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 251, 254, 0.96));
}

.login-choice-heading {
  margin-bottom: 10px;
}

.login-choice-heading .eyebrow {
  margin: 0 0 8px;
  color: #f06a00;
  letter-spacing: 0.04em;
}

.login-choice-heading h2 {
  margin: 0;
  color: #082334;
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.16;
  letter-spacing: 0;
}

.login-choice-heading p {
  margin: 10px 0 0;
  color: #607386;
  line-height: 1.52;
}

.login-choice-card {
  position: relative;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 112px;
  overflow: hidden;
  border: 1px solid #d7e6ef;
  border-radius: 20px;
  padding: 16px 18px;
  color: #092334;
  background: rgba(255, 255, 255, 0.92);
  text-align: left;
  box-shadow: 0 16px 34px rgba(16, 47, 59, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
  cursor: pointer;
}

.login-choice-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #0b5b78, #39b5dc);
}

.login-choice-card::after {
  content: "";
  position: absolute;
  right: -26px;
  top: -36px;
  width: 104px;
  height: 104px;
  border-radius: 999px;
  background: rgba(14, 99, 129, 0.07);
  transition: transform 180ms ease, opacity 180ms ease;
}

.login-choice-card.student::before {
  background: linear-gradient(180deg, #11855f, #61d193);
}

.login-choice-card.student::after {
  background: rgba(17, 133, 95, 0.08);
}

.login-choice-card.online-registration-link::before {
  background: linear-gradient(180deg, #ff6a00, #f3bd55);
}

.login-choice-card.online-registration-link::after {
  background: rgba(255, 106, 0, 0.1);
}

a.login-choice-card {
  text-decoration: none;
}

.login-choice-card:hover,
.login-choice-card:focus-visible {
  border-color: rgba(14, 99, 129, 0.42);
  background: #ffffff;
  box-shadow: 0 24px 46px rgba(16, 47, 59, 0.14);
  transform: translateY(-4px);
  outline: none;
}

.login-choice-card:hover::after,
.login-choice-card:focus-visible::after {
  transform: scale(1.18);
  opacity: 0.95;
}

.choice-mark {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 13px 24px rgba(20, 76, 99, 0.12);
  overflow: hidden;
}

.choice-mark img {
  width: 88%;
  height: 88%;
  object-fit: contain;
}

.choice-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  min-width: 0;
}

.login-choice-card strong {
  color: #082334;
  font-size: 20px;
  line-height: 1.15;
}

.login-choice-card small {
  color: #5e7285;
  font-size: 13px;
  line-height: 1.45;
}

.choice-action {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 7px 12px;
  color: #0e4c65;
  background: #e5f3f8;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.choice-action::after {
  content: ">";
  margin-left: 8px;
  color: #ff6a00;
}

.login-form-panel {
  justify-self: center;
  width: min(460px, 100%);
  max-width: 460px;
}

.login-card {
  border: 1px solid rgba(203, 222, 234, 0.82);
  border-radius: 24px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 70px rgba(3, 24, 36, 0.18);
}

.login-brand .brand-mark {
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(20, 76, 99, 0.1);
}

.login-brand .brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 980px) {
  .login-options {
    width: min(760px, 100%);
  }

  .login-choice-view {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .login-choice-hero {
    min-height: auto;
  }

  .login-choice-grid {
    align-content: start;
  }
}

@media (max-width: 640px) {
  .login-screen {
    padding: 12px;
  }

  .login-choice-view {
    border-radius: 22px;
  }

  .login-choice-hero {
    padding: 24px;
  }

  .login-brand-row {
    align-items: flex-start;
    margin-bottom: 30px;
  }

  .login-brand-row .brand-mark.large {
    width: 68px;
    height: 68px;
    border-radius: 18px;
  }

  .login-choice-hero h1 {
    font-size: 31px;
  }

  .login-choice-hero p {
    font-size: 14px;
  }

  .login-badges {
    gap: 7px;
  }

  .login-badges span {
    min-height: 30px;
    padding: 7px 10px;
    font-size: 11px;
  }

  .login-hero-note {
    margin-top: 26px;
    padding: 14px;
  }

  .login-choice-grid {
    padding: 20px;
  }

  .login-choice-card {
    grid-template-columns: 52px minmax(0, 1fr);
    min-height: 118px;
    gap: 12px;
    border-radius: 17px;
    padding: 15px;
  }

  .choice-mark {
    width: 52px;
    height: 52px;
    border-radius: 15px;
  }

  .choice-action {
    grid-column: 2;
    justify-self: start;
  }

  .login-choice-card strong {
    font-size: 18px;
  }
}

@media (max-width: 420px) {
  .login-choice-hero h1 {
    font-size: 28px;
  }

  .login-choice-heading h2 {
    font-size: 23px;
  }

  .login-card {
    padding: 20px;
    border-radius: 18px;
  }
}


/* Premium login forms polish - 20260620 */
.login-form-panel {
  position: relative;
  justify-self: center;
  width: min(470px, 100%);
  max-width: 470px;
}

.login-form-panel[hidden] {
  display: none;
}

.login-card.login-form-panel {
  gap: 16px;
  border: 1px solid rgba(205, 225, 236, 0.86);
  border-radius: 28px;
  padding: 30px;
  background:
    radial-gradient(circle at top right, rgba(255, 106, 0, 0.09), transparent 12rem),
    rgba(255, 255, 255, 0.96);
  box-shadow: 0 32px 76px rgba(7, 38, 55, 0.18);
  backdrop-filter: blur(16px);
}

.login-card.login-form-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  border-radius: 28px 28px 0 0;
  background: linear-gradient(90deg, #0b5b78, #39b5dc, #ff6a00);
}

.student-login-card::before {
  background: linear-gradient(90deg, #12835f, #60d091, #ff6a00);
}

.login-back {
  justify-self: start;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  color: #0d526c;
  background: #e8f4f8;
  font-weight: 900;
}

.login-back:hover,
.login-back:focus-visible {
  color: #ffffff;
  background: #0d526c;
  outline: none;
}

.login-brand {
  gap: 14px;
  padding: 4px 0 18px;
  border-bottom: 1px solid #dbe9f1;
}

.login-brand .brand-mark {
  width: 68px;
  height: 68px;
  padding: 7px;
  border: 1px solid #dbe9f1;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(20, 76, 99, 0.12);
}

.login-brand h1 {
  color: #082334;
  font-size: 24px;
  line-height: 1.12;
}

.login-brand p {
  margin-top: 4px;
  color: #7b8ea1;
  font-size: 13px;
}

.login-card.login-form-panel label {
  display: grid;
  gap: 8px;
}

.login-card.login-form-panel label span {
  color: #324e63;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.login-card.login-form-panel input {
  min-height: 48px;
  border: 1px solid #cddfea;
  border-radius: 12px;
  padding: 12px 14px;
  color: #092334;
  background: #fbfdff;
  font-size: 15px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.login-card.login-form-panel input:focus {
  border-color: #2fa7d0;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(47, 167, 208, 0.14);
  outline: none;
}

.login-card.login-form-panel .button.primary {
  min-height: 50px;
  border-radius: 13px;
  background: linear-gradient(135deg, #0b5570, #147b97);
  box-shadow: 0 16px 30px rgba(11, 85, 112, 0.18);
  font-weight: 900;
}

.login-card.login-form-panel .button.primary:hover,
.login-card.login-form-panel .button.primary:focus-visible {
  background: linear-gradient(135deg, #0a475f, #0f6f89);
  transform: translateY(-1px);
  outline: none;
}

.forgot-password-link {
  width: fit-content;
  color: #0d526c;
  font-weight: 900;
}

.forgot-password-link:hover,
.forgot-password-link:focus-visible {
  color: #ff6a00;
  outline: none;
}

.password-reset-box {
  border: 1px solid #dbe9f1;
  border-radius: 16px;
  padding: 14px;
  background: #f5fafc;
}

.login-error {
  min-height: 20px;
  margin: 0;
  color: #c53030;
  font-weight: 900;
}

@media (max-width: 640px) {
  .login-card.login-form-panel {
    padding: 22px;
    border-radius: 22px;
  }

  .login-card.login-form-panel::before {
    border-radius: 22px 22px 0 0;
  }

  .login-brand .brand-mark {
    width: 58px;
    height: 58px;
    border-radius: 16px;
  }

  .login-brand h1 {
    font-size: 21px;
  }
}


/* Dashboard widgets redesign - 20260620 */
.dashboard-view {
  min-width: 0;
}

.dashboard-widget-shell {
  display: grid;
  gap: 14px;
}

.dashboard-widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
  border: 1px solid rgba(221, 230, 239, 0.92);
  border-radius: 8px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #ffffff, #f7fbff);
  box-shadow: 0 12px 30px rgba(27, 48, 73, 0.06);
}

.dashboard-widget-head .eyebrow {
  margin: 0 0 3px;
  color: #6b5cf6;
}

.dashboard-widget-head h3 {
  margin: 0;
  color: #12233a;
  font-size: 21px;
}

.dashboard-widget-head p,
.dashboard-widget-panel .panel-header p {
  margin: 5px 0 0;
  color: #7a889a;
  font-size: 12px;
  line-height: 1.45;
}

.dashboard-head-pills {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.dashboard-live-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #0d8a69;
  background: #e9faf3;
  font-size: 11px;
  font-weight: 900;
}

.dashboard-widget-grid.stats-grid {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 0;
}

.dashboard-widget-grid .stat-card {
  position: relative;
  display: grid;
  align-content: space-between;
  min-height: 126px;
  border-radius: 8px;
  border: 1px solid rgba(222, 231, 240, 0.94);
  padding: 14px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(27, 48, 73, 0.07);
}

.dashboard-widget-grid .stat-card::before {
  inset: auto auto 0 0;
  width: 100%;
  height: 3px;
  background: var(--stat-color, #2b8bb6);
}

.dashboard-widget-grid .stat-card::after {
  right: 18px;
  top: 20px;
  width: 48px;
  height: 48px;
  border: 2px solid color-mix(in srgb, var(--stat-color, #2b8bb6) 65%, #ffffff);
  background:
    radial-gradient(circle at center, #ffffff 42%, transparent 44%),
    conic-gradient(var(--stat-color, #2b8bb6) 0 65%, #eef3f8 65% 100%);
  opacity: 1;
}

.dashboard-widget-grid .stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(27, 48, 73, 0.11);
}

.dashboard-widget-grid .stat-card > span {
  max-width: calc(100% - 62px);
  color: #7a889a;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.dashboard-widget-grid .stat-value {
  margin-top: 18px;
}

.dashboard-widget-grid .stat-value.count,
.dashboard-widget-grid .money-number {
  color: #17253a;
  font-size: 22px;
  line-height: 1.08;
  font-weight: 850;
}

.dashboard-widget-grid .stat-value.money {
  gap: 5px;
}

.dashboard-widget-grid .money-currency {
  min-height: 18px;
  padding: 2px 6px;
  font-size: 9px;
}

.dashboard-widget-grid .stat-card span.money-number {
  font-size: 22px;
}

.dashboard-widget-grid .stat-card.tone-blue { --stat-color: #3d7df0; }
.dashboard-widget-grid .stat-card.tone-green,
.dashboard-widget-grid .stat-card.tone-teal { --stat-color: #19a886; }
.dashboard-widget-grid .stat-card.tone-gold { --stat-color: #f7bb38; }
.dashboard-widget-grid .stat-card.tone-sky { --stat-color: #20bde3; }
.dashboard-widget-grid .stat-card.tone-indigo { --stat-color: #6a5cf6; }
.dashboard-widget-grid .stat-card.tone-red { --stat-color: #ef4062; }
.dashboard-widget-grid .stat-card.tone-orange,
.dashboard-widget-grid .stat-card.tone-amber { --stat-color: #ff9f2f; }

.dashboard-widget-panel {
  border-radius: 8px;
  border: 1px solid rgba(222, 231, 240, 0.94);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(27, 48, 73, 0.06);
}

.dashboard-widget-panel .panel-header {
  min-height: 54px;
  border-bottom: 1px solid #eef2f7;
  padding-bottom: 12px;
}

.dashboard-widget-panel .panel-header h3 {
  color: #12233a;
  font-size: 16px;
}

.dashboard-advanced .advanced-stats-grid {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
}

.dashboard-advanced .advanced-stat-card {
  min-height: 104px;
  border-radius: 8px;
  border-color: #e3ebf3;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: 0 10px 22px rgba(27, 48, 73, 0.05);
}

.dashboard-advanced .advanced-stat-card .stat-value.count,
.dashboard-advanced .advanced-stat-card .money-number {
  font-size: 20px;
}

.dashboard-analytics .analytics-grid {
  grid-template-columns: minmax(240px, 1fr) minmax(190px, 0.72fr) minmax(240px, 1fr);
  gap: 14px;
  align-items: stretch;
}

.dashboard-analytics .finance-bars,
.dashboard-analytics .course-bars,
.dashboard-analytics .tuition-ring-card {
  min-height: 210px;
  border-radius: 8px;
  padding: 16px;
  background: #fbfdff;
}

.dashboard-analytics .tuition-ring-card {
  display: grid;
  place-items: center;
  border-left: 1px solid #e7edf5;
  border-right: 1px solid #e7edf5;
}

.dashboard-analytics .tuition-ring {
  width: 132px;
  height: 132px;
  background:
    radial-gradient(circle at center, #ffffff 58%, transparent 59%),
    conic-gradient(#19a886 0 var(--progress, 0%), #e8eef5 var(--progress, 0%) 100%);
}

.dashboard-analytics .tuition-ring strong {
  font-size: 25px;
}

.dashboard-analytics .analytics-track {
  height: 11px;
  background: #e9eff6;
}

.dashboard-analytics .analytics-fill {
  border-radius: 999px;
}

.payment-alert-panel {
  margin-bottom: 0;
}

.widget-table-wrap {
  border: 1px solid #e7edf5;
  border-radius: 8px;
  overflow: auto;
  background: #ffffff;
}

.widget-table-wrap table {
  min-width: 680px;
}

.widget-table-wrap th {
  color: #63728a;
  background: #f6f9fc;
  font-size: 10px;
  letter-spacing: 0.02em;
}

.widget-table-wrap td {
  background: #ffffff;
}

.dashboard-widget-bottom.dashboard-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 14px;
}

.dashboard-widget-bottom .panel {
  min-height: 310px;
}

@media (max-width: 1240px) {
  .dashboard-widget-grid.stats-grid,
  .dashboard-advanced .advanced-stats-grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }
}

@media (max-width: 980px) {
  .dashboard-widget-grid.stats-grid,
  .dashboard-advanced .advanced-stats-grid,
  .dashboard-analytics .analytics-grid,
  .dashboard-widget-bottom.dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-analytics .tuition-ring-card {
    border-left: 0;
    border-right: 0;
  }
}

@media (max-width: 640px) {
  .dashboard-widget-head {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-head-pills {
    justify-content: flex-start;
  }

  .dashboard-widget-grid.stats-grid,
  .dashboard-advanced .advanced-stats-grid,
  .advanced-stats-details,
  .dashboard-analytics .analytics-grid,
  .dashboard-widget-bottom.dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-widget-grid .stat-card {
    min-height: 112px;
  }
}


/* Global cube loader - 20260622 */
body.global-loader-open {
  cursor: progress;
}

body.global-loader-open .app-shell,
body.global-loader-open .login-screen,
body.global-loader-open .public-registration {
  filter: blur(2px) saturate(0.92);
}

.global-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: all;
}

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

.global-loader-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(46, 80, 255, 0.2), transparent 25%),
    radial-gradient(circle at 50% 62%, rgba(255, 106, 0, 0.12), transparent 18%),
    linear-gradient(135deg, rgba(6, 11, 22, 0.86), rgba(9, 18, 38, 0.78));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.global-loader-card.cube-loader-card {
  position: relative;
  width: min(420px, calc(100vw - 34px));
  min-height: 398px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 18px;
  overflow: hidden;
  padding: 30px 30px 32px;
  border-radius: 30px;
  border: 1px solid rgba(113, 142, 255, 0.22);
  background:
    radial-gradient(circle at 50% 43%, rgba(47, 80, 255, 0.28), transparent 31%),
    linear-gradient(150deg, rgba(8, 15, 31, 0.96), rgba(11, 24, 52, 0.96) 48%, rgba(3, 8, 18, 0.98));
  box-shadow:
    0 38px 110px rgba(0, 0, 0, 0.38),
    0 0 70px rgba(48, 82, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: cube-card-enter 260ms ease-out both;
}

.cube-loader-grid {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(99, 128, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 128, 255, 0.12) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(circle at center, black, transparent 72%);
  pointer-events: none;
}

.cube-loader-scene {
  position: relative;
  z-index: 2;
  width: 280px;
  height: 250px;
  display: grid;
  place-items: center;
  perspective: 900px;
  transform-style: preserve-3d;
}

.cube-aura {
  position: absolute;
  width: 228px;
  height: 228px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(78, 100, 255, 0.38), rgba(26, 54, 168, 0.16) 43%, transparent 70%);
  filter: blur(14px);
  animation: cube-aura-pulse 1.55s ease-in-out infinite;
}

.cube-floor-glow {
  position: absolute;
  bottom: 31px;
  width: 242px;
  height: 72px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.32), rgba(69, 95, 255, 0.28) 31%, rgba(6, 14, 32, 0) 70%);
  filter: blur(7px);
  transform: rotateX(64deg);
  animation: cube-floor-pulse 1.55s ease-in-out infinite;
}

.cube-light-beam {
  position: absolute;
  bottom: 44px;
  width: 20px;
  height: 140px;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, rgba(112, 145, 255, 0.42) 18%, rgba(255, 255, 255, 0.96) 56%, rgba(64, 98, 255, 0.48) 84%, transparent);
  filter: blur(3px);
  box-shadow: 0 0 28px rgba(118, 145, 255, 0.75), 0 0 62px rgba(255, 255, 255, 0.34);
  animation: cube-beam-pulse 1.2s ease-in-out infinite;
}

.cube-core-flare {
  position: absolute;
  bottom: 98px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0 22%, rgba(154, 177, 255, 0.92) 34%, rgba(67, 94, 255, 0.22) 70%, transparent 74%);
  filter: blur(1px);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.85), 0 0 72px rgba(75, 105, 255, 0.66);
  animation: cube-flare-pulse 1.2s ease-in-out infinite;
}

.loader-cube {
  position: absolute;
  width: 178px;
  height: 178px;
  top: 42px;
  transform-style: preserve-3d;
  transform: rotateX(58deg) rotateZ(45deg);
  animation: cube-hover 1.55s ease-in-out infinite;
}

.cube-face,
.cube-edge {
  position: absolute;
  display: block;
}

.cube-top {
  inset: 0;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 28%),
    radial-gradient(circle at 75% 25%, rgba(255, 255, 255, 0.56), transparent 17%),
    linear-gradient(135deg, #263fe8, #172b8f 58%, #0a174a);
  box-shadow: inset 0 0 28px rgba(255, 255, 255, 0.12), 0 0 30px rgba(45, 77, 255, 0.36);
  animation: cube-top-shimmer 1.55s ease-in-out infinite;
}

.cube-left,
.cube-right {
  top: 88px;
  width: 89px;
  height: 112px;
  transform-origin: top center;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.18));
}

.cube-left {
  left: 0;
  clip-path: polygon(0 0, 100% 50%, 100% 100%, 0 50%);
  background: linear-gradient(160deg, #1c2b88, #101a54 65%, #050a22);
  animation: cube-side-left 1.55s ease-in-out infinite;
}

.cube-right {
  right: 0;
  clip-path: polygon(0 50%, 100% 0, 100% 50%, 0 100%);
  background:
    radial-gradient(circle at 82% 12%, rgba(255, 255, 255, 0.42), transparent 24%),
    linear-gradient(205deg, #314bff, #182478 61%, #060b28);
  animation: cube-side-right 1.55s ease-in-out infinite;
}

.cube-edge-front {
  left: 86px;
  top: 88px;
  width: 7px;
  height: 118px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(105, 137, 255, 0.72), rgba(41, 69, 255, 0.1));
  filter: blur(0.2px);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.76), 0 0 48px rgba(76, 105, 255, 0.62);
  animation: cube-edge-flash 1.15s ease-in-out infinite;
}

.cube-edge-left,
.cube-edge-right {
  top: 85px;
  width: 72px;
  height: 3px;
  border-radius: 999px;
  background: rgba(130, 156, 255, 0.42);
  filter: blur(0.2px);
}

.cube-edge-left {
  left: 23px;
  transform: rotate(28deg);
}

.cube-edge-right {
  right: 23px;
  transform: rotate(-28deg);
}

.cube-spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 18px rgba(127, 154, 255, 0.95);
  opacity: 0;
  animation: cube-spark-float 1.7s ease-in-out infinite;
}

.spark-a { left: 44px; top: 86px; animation-delay: 0ms; }
.spark-b { right: 48px; top: 78px; animation-delay: 340ms; }
.spark-c { left: 136px; top: 42px; width: 4px; height: 4px; animation-delay: 720ms; }

.cube-loader-copy {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 5px;
  text-align: center;
  max-width: 310px;
}

.cube-loader-copy p {
  margin: 0;
  color: #ffffff;
  font-size: 1.06rem;
  font-weight: 950;
  letter-spacing: 0;
  text-shadow: 0 0 18px rgba(115, 146, 255, 0.36);
}

.cube-loader-copy span {
  color: rgba(225, 234, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.35;
}

.cube-loader-progress {
  position: relative;
  z-index: 3;
  width: min(235px, 78vw);
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(111, 137, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(148, 170, 255, 0.13), 0 0 24px rgba(60, 91, 255, 0.16);
}

.cube-loader-progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 46%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4c63ff, #ffffff, #ff6a00);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.58), 0 0 35px rgba(76, 99, 255, 0.46);
  animation: cube-progress-run 1.05s ease-in-out infinite;
}

@keyframes cube-card-enter {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes cube-hover {
  0%, 100% { transform: rotateX(58deg) rotateZ(45deg) translateY(0) scale(0.99); }
  50% { transform: rotateX(58deg) rotateZ(45deg) translateY(-7px) scale(1.025); }
}

@keyframes cube-aura-pulse {
  0%, 100% { opacity: 0.42; transform: scale(0.88); }
  50% { opacity: 0.78; transform: scale(1.08); }
}

@keyframes cube-floor-pulse {
  0%, 100% { opacity: 0.42; transform: rotateX(64deg) scaleX(0.86); }
  50% { opacity: 0.74; transform: rotateX(64deg) scaleX(1.12); }
}

@keyframes cube-beam-pulse {
  0%, 100% { opacity: 0.48; transform: scaleY(0.84); }
  50% { opacity: 1; transform: scaleY(1.06); }
}

@keyframes cube-flare-pulse {
  0%, 100% { opacity: 0.72; transform: scale(0.82); }
  50% { opacity: 1; transform: scale(1.16); }
}

@keyframes cube-top-shimmer {
  0%, 100% { filter: brightness(0.9) saturate(1); }
  50% { filter: brightness(1.2) saturate(1.18); }
}

@keyframes cube-side-left {
  0%, 100% { filter: brightness(0.82); }
  50% { filter: brightness(1.02); }
}

@keyframes cube-side-right {
  0%, 100% { filter: brightness(0.95); }
  50% { filter: brightness(1.26); }
}

@keyframes cube-edge-flash {
  0%, 100% { opacity: 0.58; transform: scaleY(0.86); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

@keyframes cube-spark-float {
  0%, 100% { opacity: 0; transform: translateY(12px) scale(0.65); }
  35%, 70% { opacity: 0.9; }
  50% { transform: translateY(-13px) scale(1); }
}

@keyframes cube-progress-run {
  0% { transform: translateX(-108%); }
  50% { transform: translateX(78%); }
  100% { transform: translateX(238%); }
}

@media (max-width: 560px) {
  .global-loader-card.cube-loader-card {
    width: min(340px, calc(100vw - 28px));
    min-height: 340px;
    border-radius: 24px;
    padding: 24px 20px 26px;
  }

  .cube-loader-scene {
    transform: scale(0.82);
    height: 214px;
  }

  .cube-loader-copy span {
    font-size: 0.74rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .global-loader-card,
  .loader-cube,
  .cube-aura,
  .cube-floor-glow,
  .cube-light-beam,
  .cube-core-flare,
  .cube-top,
  .cube-left,
  .cube-right,
  .cube-edge-front,
  .cube-spark,
  .cube-loader-progress span {
    animation: none !important;
  }
}

.source-details {
  border: 1px solid rgba(21, 88, 109, 0.14);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(232, 244, 248, 0.72), rgba(255, 255, 255, 0.92));
  padding: 12px;
}

.source-details[hidden],
.source-details label[hidden] {
  display: none !important;
}

.source-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.source-details-grid .full {
  grid-column: 1 / -1;
}

@media (max-width: 720px) {
  .source-details-grid {
    grid-template-columns: 1fr;
  }
}
.personnel-access-settings {
  border: 1px solid rgba(21, 88, 109, 0.16);
  border-radius: 8px;
  background: #f7fbfc;
  padding: 16px;
}
.personnel-access-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.personnel-access-heading p { margin: 4px 0 0; color: var(--muted); }
.personnel-schedule-grid { display: grid; gap: 6px; }
.personnel-schedule-row {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) 70px minmax(120px, 180px);
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 6px 10px;
  border-bottom: 1px solid rgba(21, 88, 109, 0.1);
}
.personnel-schedule-row input[type="checkbox"] { width: 20px; height: 20px; }
.personnel-schedule-row input[type="time"] { width: 100%; }
.personnel-schedule-row.schedule-header {
  min-height: 34px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}
.primary-admin-bypass {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  background: rgba(238, 143, 35, 0.09);
  border-left: 3px solid #ee8f23;
}
.primary-admin-bypass input { width: 20px; height: 20px; flex: 0 0 auto; }
@media (max-width: 560px) {
  .personnel-schedule-row {
    grid-template-columns: minmax(90px, 1fr) 54px minmax(108px, 130px);
    gap: 8px;
    padding-inline: 4px;
  }
}

.formation-version-manager { border: 1px solid rgba(21, 88, 109, 0.16); background: #f7fafb; margin-bottom: 18px; }
.version-editor-list { display: grid; gap: 14px; padding: 14px; }
.version-editor-card { border: 1px solid #d7e2e7; background: #fff; box-shadow: 0 8px 24px rgba(24, 55, 68, 0.06); }
.version-editor-card.active-version { border-left: 4px solid #16845f; }
.version-editor-header, .version-installment-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.version-editor-header { padding: 14px; border-bottom: 1px solid #e3ebef; }
.version-editor-header h4, .version-editor-section h5 { margin: 6px 0 0; }
.version-editor-section { padding: 14px; border-top: 1px solid #e7eef1; }
.version-installment-list { display: grid; gap: 7px; margin-top: 10px; }
.version-installment-row { display: grid; grid-template-columns: 38px minmax(140px, 1fr) 130px 150px 86px minmax(140px, 1fr); gap: 8px; align-items: center; }
.installment-number { display: grid; place-items: center; width: 30px; height: 30px; background: #e6f3f5; color: #0d5268; font-weight: 800; }
.amount-success { color: #147a57; font-weight: 800; }
.amount-danger { color: #ba2f35; font-weight: 800; }
@media (max-width: 900px) {
  .version-editor-header, .version-installment-heading { align-items: flex-start; flex-direction: column; }
  .version-installment-row { grid-template-columns: 36px minmax(150px, 1fr) 120px; }
}
.formation-version-manager.version-editor-focus {
  outline: 3px solid rgba(244, 130, 32, 0.35);
  box-shadow: 0 12px 34px rgba(13, 83, 107, 0.18);
  transition: outline-color 220ms ease, box-shadow 220ms ease;
}

.version-relations-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.version-related-list {
  display: grid;
  gap: 7px;
  margin-top: 8px;
}

.version-related-list > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  border: 1px solid #dbe7ee;
  border-radius: 6px;
  background: #f8fbfc;
}

.version-related-list small {
  color: #66788a;
  text-align: right;
}

.version-documents-field,
.version-history-summary {
  min-width: 0;
}

.version-documents-field input {
  width: 100%;
  margin-top: 7px;
}

@media (max-width: 760px) {
  .version-relations-grid {
    grid-template-columns: 1fr;
  }

  .version-related-list > span {
    align-items: flex-start;
    flex-direction: column;
  }

  .version-related-list small {
    text-align: left;
  }
}

.version-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 0 10px;
  border-bottom: 1px solid #dce7ed;
}

.version-tab {
  flex: 0 0 auto;
  border: 1px solid #d7e3ea;
  border-radius: 6px;
  background: #f5f9fb;
  color: #31556a;
  padding: 8px 11px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.version-tab:hover,
.version-tab.active {
  border-color: #0d6b7e;
  background: #0d6b7e;
  color: #fff;
}

.version-tab-panel[hidden] {
  display: none !important;
}

.version-tab-panel.active {
  animation: versionPanelIn 180ms ease-out;
}

@keyframes versionPanelIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

#announcementStudents {
  min-height: 180px;
  padding: 6px;
}

#announcementStudents option {
  padding: 8px 10px;
  border-radius: 4px;
}

.student-announcement-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.student-announcement-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 15px;
  border: 1px solid #d8e5eb;
  border-left: 4px solid #2a8eb0;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(17, 66, 86, 0.08);
}

.student-announcement-card.unread {
  background: #f4fbfd;
  box-shadow: 0 10px 24px rgba(17, 102, 132, 0.14);
}

.student-announcement-card.warning { border-left-color: #d99019; }
.student-announcement-card.danger { border-left-color: #c53d4c; }
.student-announcement-card.read { opacity: 0.82; }

.student-announcement-heading,
.student-announcement-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.student-announcement-heading > div {
  display: flex;
  align-items: center;
  gap: 6px;
}

.student-announcement-card p {
  margin: 0;
  color: #52697a;
  line-height: 1.5;
  white-space: pre-wrap;
}

.student-announcement-footer > span {
  color: #667b8a;
  font-size: 12px;
  text-transform: capitalize;
}

@media (max-width: 620px) {
  .student-announcement-list { grid-template-columns: 1fr; }
  .student-announcement-heading, .student-announcement-footer { align-items: flex-start; flex-direction: column; }
}
/* Premium global loader: opening book and CFP EREXIT identity */
.global-loader.premium-book-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
  isolation: isolate;
}

.global-loader.premium-book-loader[hidden],
.session-expiry-modal[hidden] {
  display: none !important;
}

.premium-book-loader .global-loader-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(236, 246, 250, 0.72);
  backdrop-filter: blur(12px) saturate(1.08);
  -webkit-backdrop-filter: blur(12px) saturate(1.08);
}

.book-loader-card {
  position: relative;
  width: min(390px, calc(100vw - 32px));
  min-height: 430px;
  overflow: hidden;
  padding: 30px 32px 28px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 80px rgba(5, 46, 65, 0.22), 0 7px 24px rgba(5, 46, 65, 0.10);
  text-align: center;
}

.book-loader-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #0b4863, #2b9fc2 48%, #f58220);
}

.book-loader-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -95px;
  top: -85px;
  border: 28px solid rgba(245, 130, 32, 0.08);
  border-radius: 50%;
}

.book-loader-halo {
  position: absolute;
  left: 50%;
  top: 180px;
  width: 250px;
  height: 180px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(64, 184, 216, 0.26), rgba(245, 130, 32, 0.08) 43%, transparent 72%);
  filter: blur(8px);
  animation: bookHaloPulse 2.2s ease-in-out infinite;
}

.book-loader-brand {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: #0b3347;
  font-weight: 800;
  letter-spacing: 0;
  animation: bookBrandFloat 2.2s ease-in-out infinite;
}

.book-loader-logo-shell {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(11, 72, 99, 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(11, 72, 99, 0.14);
}

.book-loader-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.book-loader-logo-fallback {
  display: none;
  color: #0b4863;
  font-size: 16px;
  font-weight: 900;
}

.book-loader-logo:not([src]),
.book-loader-logo[src=""] {
  display: none;
}

.book-loader-logo:not([src]) + .book-loader-logo-fallback,
.book-loader-logo[src=""] + .book-loader-logo-fallback {
  display: inline;
}

.book-loader-brand-name {
  font-size: 15px;
}

.book-loader-stage {
  position: relative;
  z-index: 2;
  height: 205px;
  margin-top: 8px;
  perspective: 900px;
}

.book-loader-object {
  position: absolute;
  left: 50%;
  bottom: 37px;
  width: 188px;
  height: 100px;
  transform: translateX(-50%) rotateX(58deg);
  transform-style: preserve-3d;
  filter: drop-shadow(0 20px 15px rgba(7, 44, 61, 0.22));
}

.book-cover,
.book-page {
  position: absolute;
  bottom: 0;
  width: 94px;
  height: 96px;
  transform-origin: bottom center;
  backface-visibility: hidden;
}

.book-cover {
  z-index: 2;
  background: linear-gradient(145deg, #0a3850, #0d607b 72%, #167f9d);
  border: 1px solid rgba(150, 224, 241, 0.24);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.book-cover-back {
  left: 0;
  transform: rotateY(4deg) rotateZ(-1deg);
  border-radius: 7px 2px 2px 7px;
}

.book-cover-front {
  right: 0;
  transform: rotateY(-4deg) rotateZ(1deg);
  border-radius: 2px 7px 7px 2px;
}

.book-page {
  top: 5px;
  height: 87px;
  background: linear-gradient(90deg, #d9edf3, #ffffff 35%, #edf7fa);
  border: 1px solid rgba(11, 72, 99, 0.14);
}

.book-page-left {
  left: 4px;
  z-index: 4;
  transform: rotateY(5deg);
  border-radius: 6px 1px 1px 5px;
}

.book-page-right {
  right: 4px;
  z-index: 4;
  transform: rotateY(-5deg);
  border-radius: 1px 6px 5px 1px;
}

.book-page-turn-one,
.book-page-turn-two {
  left: 50%;
  z-index: 6;
  transform-origin: left center;
  border-radius: 1px 6px 6px 1px;
}

.book-page-turn-one {
  animation: bookTurnPage 1.9s cubic-bezier(.55, .05, .22, .95) infinite;
}

.book-page-turn-two {
  animation: bookTurnPage 1.9s .42s cubic-bezier(.55, .05, .22, .95) infinite;
}

.book-spine {
  position: absolute;
  z-index: 9;
  left: 50%;
  bottom: -2px;
  width: 5px;
  height: 98px;
  transform: translateX(-50%);
  border-radius: 4px;
  background: #f58220;
  box-shadow: 0 0 18px rgba(245, 130, 32, 0.78);
}

.book-floor-light {
  position: absolute;
  left: 50%;
  bottom: 20px;
  width: 230px;
  height: 45px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(245, 130, 32, 0.36), rgba(44, 165, 198, 0.18) 44%, transparent 74%);
  filter: blur(8px);
}

.book-light {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 58px;
  width: 3px;
  height: 105px;
  transform-origin: bottom;
  border-radius: 999px;
  background: linear-gradient(to top, rgba(245, 130, 32, 0.82), rgba(83, 194, 224, 0.18), transparent);
  filter: blur(1px);
  animation: bookRayPulse 1.9s ease-in-out infinite;
}

.book-light-one { transform: rotate(-29deg); }
.book-light-two { transform: translateX(-50%); animation-delay: .2s; }
.book-light-three { transform: rotate(29deg); animation-delay: .4s; }

.book-loader-copy {
  position: relative;
  z-index: 3;
  margin-top: -8px;
}

.book-loader-copy p {
  margin: 0;
  color: #092f42;
  font-size: 18px;
  font-weight: 800;
}

.book-loader-copy span {
  display: block;
  margin-top: 7px;
  color: #647b89;
  font-size: 12px;
}

.book-loader-progress {
  position: relative;
  z-index: 3;
  height: 5px;
  margin-top: 21px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfebf0;
}

.book-loader-progress span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0b4863, #31a9c8, #f58220);
  animation: bookProgress 1.35s ease-in-out infinite;
}

.session-expiry-modal {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: grid;
  place-items: center;
  padding: 20px;
}

.session-expiry-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 35, 49, 0.58);
  backdrop-filter: blur(8px);
}

.session-expiry-card {
  position: relative;
  width: min(520px, calc(100vw - 32px));
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 72px rgba(5, 35, 49, 0.30);
}

.session-expiry-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #fff0e3;
  color: #d95f00;
  font-size: 20px;
  font-weight: 900;
}

.session-expiry-kicker {
  margin: 0 0 7px;
  color: #d95f00;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.session-expiry-card h2 {
  margin: 0;
  color: #092f42;
  font-size: 22px;
}

.session-expiry-card p:not(.session-expiry-kicker) {
  margin: 10px 0 0;
  color: #5b707e;
  line-height: 1.55;
}

.session-expiry-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

@keyframes bookTurnPage {
  0%, 12% { transform: rotateY(0deg); opacity: .95; }
  52%, 78% { transform: rotateY(-176deg); opacity: .9; }
  100% { transform: rotateY(-180deg); opacity: 0; }
}

@keyframes bookBrandFloat {
  0%, 100% { transform: translateY(3px); }
  50% { transform: translateY(-4px); }
}

@keyframes bookHaloPulse {
  0%, 100% { opacity: .58; transform: translateX(-50%) scale(.94); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

@keyframes bookRayPulse {
  0%, 100% { opacity: .22; height: 75px; }
  50% { opacity: .88; height: 118px; }
}

@keyframes bookProgress {
  0% { transform: translateX(-115%); }
  55% { transform: translateX(105%); }
  100% { transform: translateX(245%); }
}

@media (max-width: 520px) {
  .book-loader-card {
    min-height: 390px;
    padding: 25px 22px 24px;
  }

  .book-loader-stage {
    height: 180px;
  }

  .book-loader-object {
    width: 158px;
    height: 86px;
  }

  .book-cover,
  .book-page {
    width: 79px;
    height: 82px;
  }

  .book-page {
    height: 75px;
  }

  .book-spine {
    height: 84px;
  }

  .session-expiry-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }
}

@media (prefers-reduced-motion: reduce) {
  .book-page-turn-one,
  .book-page-turn-two,
  .book-loader-brand,
  .book-loader-halo,
  .book-light,
  .book-loader-progress span {
    animation-duration: 3.5s;
  }
}
/* Commercial commission filters: horizontal desktop layout */
.commercial-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) repeat(2, minmax(145px, 0.85fr)) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  margin-bottom: 14px;
}

.commercial-filter-grid > input,
.commercial-filter-grid > select,
.commercial-filter-grid > button {
  width: 100%;
  min-width: 0;
  margin: 0;
}

.commercial-filter-grid > button {
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .commercial-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .commercial-filter-grid {
    grid-template-columns: 1fr;
  }
}
/* Student-centered attendance module */
.attendance-student-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
}

.attendance-student-profile {
  display: grid;
  grid-template-columns: 76px minmax(150px, 0.65fr) minmax(0, 2fr);
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid #cfe0eb;
  border-left: 4px solid #14805e;
  background: #f7fbfd;
  border-radius: 6px;
}

.attendance-profile-photo {
  width: 72px;
  height: 84px;
  overflow: hidden;
  border: 1px solid #cbdce7;
  border-radius: 6px;
  background: #e9f2f6;
  display: grid;
  place-items: center;
  color: #0b4960;
  font-weight: 800;
}

.attendance-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.attendance-profile-copy {
  display: grid;
  gap: 5px;
}

.attendance-profile-copy strong {
  font-size: 17px;
  color: #102d3d;
}

.attendance-profile-copy span {
  color: #5b7180;
  font-weight: 700;
}

.attendance-profile-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 14px;
  margin: 0;
}

.attendance-profile-details div {
  min-width: 0;
}

.attendance-profile-details dt {
  color: #6c7f8d;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.attendance-profile-details dd {
  margin: 3px 0 0;
  color: #173647;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.attendance-filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(145px, 1fr));
  gap: 10px;
  align-items: center;
}

.attendance-filters > * {
  width: 100%;
  min-width: 0;
  margin: 0;
}

.student-attendance-summary {
  margin-bottom: 14px;
}

#attendanceTable .person-photo,
#attendanceTable .person-photo-placeholder {
  width: 38px;
  height: 44px;
  border-radius: 5px;
}

@media (max-width: 1100px) {
  .attendance-profile-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 720px) {
  .attendance-student-form,
  .attendance-filters {
    grid-template-columns: 1fr;
  }

  .attendance-student-profile {
    grid-template-columns: 64px 1fr;
  }

  .attendance-profile-photo {
    width: 60px;
    height: 72px;
  }

  .attendance-profile-details {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }
}
/* Budget mensuel */
.budget-entry-layout { align-items: start; }
.budget-summary-panel { position: sticky; top: 96px; }
.budget-summary-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.budget-kpi { border-left: 4px solid var(--accent, #17876c); }
.budget-kpi strong { font-size: 1.05rem; }
.budget-alerts { margin-top: 16px; }
.budget-alert { display: grid; gap: 5px; padding: 14px 16px; border: 1px solid #f1c48b; border-left: 4px solid #dc7b13; border-radius: 7px; background: #fff8ee; color: #6f3e08; }
.budget-alert.success { border-color: #9dd9c1; border-left-color: #17876c; background: #eefaf5; color: #0c5e49; }
.budget-filters { grid-template-columns: minmax(210px, 1.4fr) repeat(2, minmax(160px, 1fr)) auto auto; width: 100%; }
.budget-recurring-toggle { min-height: 44px; align-self: end; }
.budget-annual-panel { margin-top: 18px; }
@media (max-width: 1050px) {
  .budget-summary-panel { position: static; }
  .budget-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .budget-summary-cards, .budget-filters { grid-template-columns: 1fr; }
}

/* Paiements simples et groupés */
.payment-entry-mode { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 5px; border: 1px solid #d5e2e9; border-radius: 7px; background: #eef4f7; }
.payment-mode-button { min-height: 42px; border: 0; border-radius: 5px; background: transparent; color: #456074; font-weight: 800; cursor: pointer; }
.payment-mode-button.active { background: #fff; color: #07536b; box-shadow: 0 3px 12px rgba(13, 58, 74, .12); }
.grouped-payment-total { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; padding: 14px 16px; border: 1px solid #a9d9c7; border-left: 4px solid #16805f; border-radius: 7px; background: #eefaf5; }
.grouped-payment-total strong { font-size: 1.15rem; color: #075b45; }
.grouped-payment-check { width: 20px; height: 20px; accent-color: #16805f; }
.grouped-payment-amount { min-width: 130px; }
.grouped-payment-row.is-selected { background: #f0faf6; }
.grouped-payment-row.is-paid { opacity: .66; }
.payment-lines-summary { display: grid; gap: 3px; margin-top: 5px; }
.payment-lines-summary span { font-size: .78rem; color: #64788a; }
@media (max-width: 640px) { .payment-entry-mode { grid-template-columns: 1fr; } .grouped-payment-total { align-items: flex-start; flex-direction: column; } }


/* Tresorerie */
.treasury-hero-panel { overflow: hidden; position: relative; }
.treasury-header { align-items: flex-start; gap: 16px; }
.treasury-actions { flex-wrap: wrap; justify-content: flex-end; }
.treasury-summary-cards { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-top: 14px; }
.treasury-kpi { border-left: 4px solid #17876c; }
.treasury-kpi.tone-blue { border-left-color: #2477a8; }
.treasury-kpi.tone-indigo { border-left-color: #5967b1; }
.treasury-kpi.tone-sky { border-left-color: #28a6d1; }
.treasury-kpi.tone-gold { border-left-color: #d99823; }
.treasury-kpi.tone-orange { border-left-color: #dc7b13; }
.treasury-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; border-top: 1px solid rgba(19, 58, 74, .12); padding-top: 14px; }
.treasury-tab { border: 1px solid #cfe0e8; background: #f6fbfd; color: #0c4055; border-radius: 999px; padding: 10px 16px; font-weight: 800; cursor: pointer; }
.treasury-tab.active { background: #115a70; border-color: #115a70; color: #fff; box-shadow: 0 10px 22px rgba(17, 90, 112, .18); }
.treasury-tab-panel { display: none; margin-top: 18px; }
.treasury-tab-panel.active { display: block; }
.treasury-history-filters { grid-template-columns: minmax(180px, 1fr) 160px 160px; width: min(100%, 560px); }
@media (max-width: 760px) {
  .treasury-header { align-items: stretch; }
  .treasury-actions, .treasury-tabs { width: 100%; }
  .treasury-tab { flex: 1 1 160px; }
  .treasury-history-filters { grid-template-columns: 1fr; width: 100%; }
}


@media print {
  .print-preview-modal,
  .print-preview-header,
  .print-preview-backdrop,
  .print-preview-actions {
    display: none !important;
  }

  .receipt-document.receipt-sheet {
    width: 281mm !important;
    min-height: 194mm !important;
    padding: 0 !important;
    box-shadow: none !important;
  }

  .receipt-copy {
    min-height: 194mm !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

.pdf-render-source.receipt-sheet {
  width: 1122px !important;
  min-height: 794px !important;
}


.trainer-attendance-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.trainer-attendance-row {
  grid-template-columns: minmax(180px, 1.25fr) minmax(150px, .85fr) 112px 112px minmax(180px, 1fr);
}

.trainer-attendance-row input,
.trainer-attendance-row select {
  min-width: 0;
}

@media (max-width: 900px) {
  .trainer-attendance-row {
    grid-template-columns: 1fr;
  }
}


/* Separate access routes - personnel / etudiant / inscription */
body.access-neutral-mode .login-choice-grid {
  display: grid;
}

body.access-neutral-mode .login-choice-view {
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
}

body.access-neutral-mode .login-choice-hero {
  animation: publicHomeReveal 720ms ease-out both;
}

body.access-neutral-mode .login-hero-content > * {
  animation: publicHomeLift 660ms ease-out both;
}

body.access-neutral-mode .login-hero-content > *:nth-child(2) {
  animation-delay: 90ms;
}

body.access-neutral-mode .login-hero-content > *:nth-child(3) {
  animation-delay: 160ms;
}

body.access-neutral-mode .login-hero-content > *:nth-child(4) {
  animation-delay: 230ms;
}

body.access-neutral-mode .login-hero-note {
  animation: publicHomeLift 700ms ease-out 320ms both;
}

body.access-neutral-mode .login-choice-heading,
body.access-neutral-mode .login-choice-card,
body.access-neutral-mode .personnel-access-link {
  animation: publicHomeLift 620ms ease-out both;
}

body.access-neutral-mode .login-choice-heading {
  animation-delay: 140ms;
}

body.access-neutral-mode .login-choice-card:nth-of-type(1) {
  animation-delay: 230ms;
}

body.access-neutral-mode .login-choice-card:nth-of-type(2) {
  animation-delay: 320ms;
}

body.access-neutral-mode .personnel-access-link {
  animation-delay: 410ms;
}

body.access-neutral-mode .brand-mark.large {
  animation: publicHomeLogo 3200ms ease-in-out infinite;
}

body.access-neutral-mode .login-badges span {
  animation: publicHomeBadge 3600ms ease-in-out infinite;
}

body.access-neutral-mode .login-badges span:nth-child(2) {
  animation-delay: 450ms;
}

body.access-neutral-mode .login-badges span:nth-child(3) {
  animation-delay: 900ms;
}

body.access-neutral-mode .choice-action::after {
  transition: transform 180ms ease;
}

body.access-neutral-mode .login-choice-card:hover .choice-action::after,
body.access-neutral-mode .login-choice-card:focus-visible .choice-action::after {
  transform: translateX(3px);
}

@keyframes publicHomeReveal {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes publicHomeLift {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes publicHomeLogo {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.16);
  }
  50% {
    transform: translateY(-4px);
    box-shadow: 0 24px 44px rgba(0, 0, 0, 0.2);
  }
}

@keyframes publicHomeBadge {
  0%,
  100% {
    background: rgba(255, 255, 255, 0.12);
  }
  50% {
    background: rgba(255, 255, 255, 0.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.access-neutral-mode .login-choice-hero,
  body.access-neutral-mode .login-hero-content > *,
  body.access-neutral-mode .login-hero-note,
  body.access-neutral-mode .login-choice-heading,
  body.access-neutral-mode .login-choice-card,
  body.access-neutral-mode .personnel-access-link,
  body.access-neutral-mode .brand-mark.large,
  body.access-neutral-mode .login-badges span {
    animation: none;
  }

  body.access-neutral-mode .login-choice-card,
  body.access-neutral-mode .choice-action::after {
    transition: none;
  }
}

.personnel-access-link {
  justify-self: end;
  color: #0d526b;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid rgba(13, 82, 107, 0.35);
}

.personnel-access-link:hover,
.personnel-access-link:focus-visible {
  color: #ff6a00;
  border-bottom-color: currentColor;
}

.user-schedule-box {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(21, 96, 122, 0.16);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(232, 244, 248, 0.78), rgba(255, 255, 255, 0.95));
}

.user-schedule-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.user-schedule-head strong,
.user-schedule-head span {
  display: block;
}

.user-schedule-head span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

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

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

.schedule-day-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 12px 0 4px;
}

.schedule-day-checks label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 900px) {
  .user-schedule-head {
    display: block;
  }
  .user-schedule-actions {
    justify-content: flex-start;
    margin-top: 10px;
  }
  .user-schedule-grid {
    grid-template-columns: 1fr;
  }
}


/* Disposition attestations sur papier entete */
.attestation-document {
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
  line-height: 1.55;
}

.print-document.attestation-document h2:first-of-type {
  margin: 0 0 34px;
  color: #c1121f;
  font-family: Stencil, "Stencil Std", "Arial Black", Impact, sans-serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0;
  text-align: center;
  text-decoration: underline;
  text-transform: uppercase;
}

.attestation-document .custom-document-body {
  margin: 0;
  color: #111111;
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
  line-height: 1.7;
  text-align: justify;
}

.attestation-document .custom-document-body p {
  margin: 0 0 18px;
}

.attestation-document .document-closing {
  width: min(340px, 48%);
  margin: 44px 0 0 auto;
  color: #111111;
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
  line-height: 1.45;
  text-align: center;
}

.attestation-document .document-closing p {
  margin: 0 0 16px;
}

.attestation-document .document-closing strong {
  display: block;
  margin-top: 30mm;
  font-size: 16px;
  font-weight: 700;
  text-decoration: underline;
}


.print-preview-body .print-document.attestation-document {
  padding-top: 290px;
}

@media print {
  .print-document.attestation-document {
    padding-top: 76mm;
  }
}


.student-online-payment-form {
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid #cfe0e8;
  border-left: 4px solid #f26322;
  border-radius: 8px;
  background: #f8fbfc;
}
.student-online-payment-heading,
.student-online-payment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.student-online-payment-heading p { margin: 4px 0 0; }
.student-online-payment-history { margin: 0 0 16px; }
.student-online-payment-row { padding: 10px 4px; border-bottom: 1px solid #dce8ed; }
.student-online-payment-row div { display: grid; gap: 2px; }
.student-online-fee-details { margin-top: 14px; }
.student-online-fee-details table { min-width: 520px; }
.student-online-fee-details .fee-paid { color: #5b6b73; background: #f1f6f4; }
@media (max-width: 700px) {
  .student-online-payment-heading,
  .student-online-payment-row { align-items: flex-start; flex-wrap: wrap; }
}
