.phase5-registration-sheet [hidden],
.phase5-provider-registration[hidden],
.phase5-registration-form [hidden] {
  display: none !important;
}

.phase5-registration-overlay {
  position: fixed;
  inset: 0;
  z-index: 1290;
  background: rgba(9, 31, 27, .48);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, visibility .18s ease;
}

.phase5-registration-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.phase5-registration-sheet {
  position: fixed;
  z-index: 1300;
  top: 0;
  right: 0;
  width: min(560px, 100%);
  height: 100dvh;
  background: #fffdf8;
  box-shadow: -18px 0 48px rgba(13, 54, 46, .22);
  transform: translateX(102%);
  transition: transform .22s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phase5-registration-sheet.is-open {
  transform: translateX(0);
}

.phase5-registration-body {
  flex: 1;
  overflow: auto;
  padding: 20px 22px 34px;
}

.phase5-registration-session {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid rgba(7, 93, 86, .14);
  border-radius: 16px;
  background: rgba(232, 246, 242, .68);
}

.phase5-registration-session strong {
  color: #173e33;
  font-size: 1.05rem;
}

.phase5-registration-session span,
.phase5-registration-guidance,
.phase5-term small,
.phase5-term details p {
  color: #5c6d67;
  line-height: 1.5;
}

.phase5-registration-guidance {
  margin: 14px 0 18px;
}

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

.phase5-terms {
  border: 1px solid rgba(7, 93, 86, .16);
  border-radius: 16px;
  padding: 14px;
  display: grid;
  gap: 12px;
}

.phase5-terms legend {
  padding: 0 8px;
  color: #173e33;
  font-weight: 800;
}

.phase5-term {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 10px;
  padding: 11px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(31, 63, 53, .1);
}

.phase5-term > input {
  width: 18px !important;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 3px;
  accent-color: #075d56;
}

.phase5-term > span {
  display: grid;
  gap: 3px;
}

.phase5-term details {
  margin-top: 4px;
}

.phase5-term summary {
  color: #075d56;
  font-weight: 700;
  cursor: pointer;
}

.phase5-term details p {
  margin: 8px 0 0;
  white-space: pre-line;
}

.phase5-registration-summary {
  display: grid;
  gap: 14px;
  align-content: start;
}

.phase5-registration-summary h3,
.phase5-panel h2 {
  color: #173e33;
}

.phase5-registration-record,
.phase5-attendance-record {
  align-items: start;
}

.phase5-terms-summary {
  margin-top: 4px;
}

.phase5-terms-summary summary {
  cursor: pointer;
  color: #075d56;
  font-weight: 700;
}

.phase5-terms-summary div {
  display: grid;
  margin-top: 6px;
  padding-left: 10px;
  border-left: 2px solid rgba(7, 93, 86, .18);
}

.phase5-terms-summary div span {
  font-size: .84rem;
}

.phase5-sensitive-info {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7f4ec;
  color: #4e625b;
  font-size: .88rem;
}

.phase5-provider-stats {
  margin-bottom: 18px;
}

.phase5-status-filter {
  min-width: 170px;
}

.phase5-attendance-form {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.phase5-attendance-form select {
  min-width: 155px;
  border: 1px solid rgba(23, 62, 51, .18);
  border-radius: 10px;
  background: #fff;
  padding: 9px 10px;
  color: #173e33;
}

@media (max-width: 760px) {
  .phase5-registration-grid {
    grid-template-columns: 1fr;
  }

  .phase5-registration-body {
    padding: 16px 16px 28px;
  }

  .phase5-provider-registration,
  .phase5-provider-attendance {
    grid-template-columns: 1fr;
  }

  .phase5-status-filter {
    width: 100%;
  }
}
