.form-error {
  color: #dc3545;
  font-size: 0.8rem;
  margin-top: 4px;
}

.header-datetime,
.header-datetime .date-text,
.header-datetime .time-text {
  font-variant-numeric: tabular-nums;
}

.header-datetime .time-text {
  display: inline-block;
}

.note-highlight {
  background: #fff8eb;
  border: 1px solid #f2e4c2;
  border-radius: 8px;
  color: #7a5a1a;
  margin-top: 12px;
  padding: 10px 12px;
}

.term-paid-icon {
  align-items: center;
  color: #1f8f3a;
  display: inline-flex;
  font-size: 1.1rem;
  justify-content: center;
  line-height: 1;
  height: 1.1rem;
  width: 1.1rem;
}

.pagination {
  gap: 4px;
}

.pagination .page-link {
  border-radius: 6px;
  font-size: 0.85rem;
  line-height: 1.1;
  min-width: 32px;
  height: 32px;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: var(--theme-color);
  color: var(--theme-color);
}

.pagination .page-link:hover,
.pagination .page-link:focus {
  background-color: var(--theme-color);
  border-color: var(--theme-color);
  color: #ffffff;
}

.pagination .page-item.active .page-link {
  background-color: var(--theme-color);
  border-color: var(--theme-color);
  color: #ffffff;
}

.pagination .page-item.disabled .page-link {
  background-color: #f1f5f9;
  border-color: rgba(41, 56, 93, 0.25);
  color: rgba(41, 56, 93, 0.55);
}

.fees-modal .modal-body {
  display: grid;
  gap: 12px;
}

.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
  font-size: 0.8rem;
  padding: 4px 6px;
  min-width: 28px;
}

.pagination .page-link span[aria-hidden="true"] {
  font-size: 0.7rem;
  line-height: 1;
}

.parents-dashboard .parents-fees-table.no-partial .fees-table-header,
.parents-dashboard .parents-fees-table.no-partial .fees-table-row {
  grid-template-columns: minmax(0, 1fr) 130px 120px 120px;
}

.fees-details .parents-fees-sub-row .parents-partial-group {
  grid-column: 3 / -1;
  justify-self: end;
  width: auto;
}

.logo-box {
  border: none;
}

.superadmin-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  background: linear-gradient(135deg, #f97316, #f43f5e);
  border: 2px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 6px 12px rgba(244, 63, 94, 0.3);
}

.global-loading {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  background: #111827;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.global-loading::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #22c55e, transparent);
  opacity: 0.7;
  animation: global-loading-sheen 1.1s linear infinite;
}

.global-loading.is-active {
  opacity: 1;
  transform: translateY(0);
}

.clickable-row {
  cursor: pointer;
}

.clickable-row:focus-visible {
  outline: 2px solid var(--theme-color);
  outline-offset: -2px;
}

.fees-total.fees-total-split {
  justify-content: space-between;
  flex-wrap: wrap;
}

.fees-total.fees-total-split .fees-total-item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.fees-total.fees-total-split .fees-total-item:last-child {
  justify-content: flex-end;
}

.fees-total.fees-total-start {
  justify-content: flex-start;
}

@keyframes global-loading-sheen {
  0% {
    transform: translateX(-60%);
  }
  100% {
    transform: translateX(60%);
  }
}

.superadmin-avatar span {
  display: block;
  line-height: 1;
}

.login-page {
  justify-content: center;
  gap: 20px;
}

.login-logo {
  border: none;
  background: transparent;
}

.login-logo img {
  max-height: 72px;
}

.login-card {
  padding: 35px;
}

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

.dashboard-grid {
  gap: 22px;
}

.dashboard-card .card-header {
  padding: 18px 20px 10px;
}

.dashboard-card .card-title-row {
  align-items: flex-start;
}

.dashboard-card .card-title {
  flex: 1;
  min-width: 0;
  line-height: 1.25;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.dashboard-card .card-body {
  padding: 8px 20px 18px;
  gap: 10px;
}

.dashboard-card .card-row {
  align-items: baseline;
  gap: 12px;
}

.dashboard-card .card-footer {
  padding: 0 20px 20px;
}

.dashboard-card .card-icon {
  flex: 0 0 42px;
}

.fee-amount-pending {
  color: #dc2626;
}

.fee-amount-today {
  color: #15803d;
}

.status-partial {
  color: var(--bs-warning) !important;
  font-weight: 400;
}

.btn-export.is-loading {
  opacity: 0.75;
  pointer-events: none;
  cursor: progress;
}

.waive-off-panel {
  margin-top: 12px;
  border: 1px solid rgba(41, 56, 93, 0.15);
  border-radius: 10px;
  padding: 12px;
  background: #f9fafb;
  display: grid;
  gap: 10px;
  --waive-field-width: 260px;
}

.waive-off-panel .form-check.form-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  padding: 6px 10px;
  background: rgba(41, 56, 93, 0.08);
  border-radius: 8px;
  font-weight: 600;
  color: #111827;
}

.waive-off-panel .form-check.form-switch .form-check-input {
  margin-left: 0;
  order: 2;
}

.waive-off-panel .form-check.form-switch .form-check-label {
  order: 1;
  margin-bottom: 0;
}

.waive-off-fields {
  display: grid;
  gap: 10px;
  align-items: start;
}

.waive-off-row {
  display: grid;
  gap: 6px;
}

.waive-off-row .form-control {
  width: var(--waive-field-width);
  max-width: 100%;
}

.waive-off-row textarea.form-control {
  resize: vertical;
  min-height: 72px;
}

.waive-off-remaining {
  grid-template-columns: 1fr auto;
  align-items: center;
  width: var(--waive-field-width);
  max-width: 100%;
}

.waive-off-remaining strong {
  font-size: 1.05rem;
}

.waive-off-fields.waive-off-inline {
  grid-template-columns: minmax(220px, var(--waive-field-width)) minmax(280px, 1fr) minmax(200px, var(--waive-field-width));
  column-gap: 16px;
  align-items: start;
}

.waive-off-fields.waive-off-inline .waive-off-row .form-control {
  width: 100%;
}


.waive-off-fields.waive-off-inline .waive-off-remaining {
  width: 100%;
  grid-template-columns: 1fr;
  justify-items: end;
  text-align: right;
}

@media (max-width: 991.98px) {
  .waive-off-fields.waive-off-inline {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .waive-off-fields.waive-off-inline .waive-off-remaining {
    justify-items: start;
    text-align: left;
  }
}


@media (max-width: 991.98px) {
  .parents-dashboard .parents-fees-table.no-partial .fees-table-header,
  .parents-dashboard .parents-fees-table.no-partial .fees-table-row {
    grid-template-columns: minmax(0, 1fr) 120px 110px 100px;
  }
}
