.rehearsal-card .date-box {
  min-width: 58px;
}

#rehearsal-cards {
  grid-template-columns: 1fr;
}

.rehearsal-card h2 {
  text-transform: capitalize;
}

.rehearsal-detail .preview-detail-header {
  align-items: flex-start;
}

.rehearsal-slot-list {
  margin-top: 18px;
  border: 1px solid #dfe5f0;
  border-radius: 12px;
  overflow: hidden;
}

.rehearsal-slot-head,
.rehearsal-slot-row {
  display: grid;
  grid-template-columns: 92px minmax(180px, 1.7fr) minmax(110px, .8fr) minmax(130px, 1fr);
  gap: 16px;
  align-items: center;
  padding: 13px 16px;
}

.rehearsal-slot-head {
  background: #e9edf3;
  color: #62708c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.rehearsal-slot-row {
  border-top: 1px solid #edf0f5;
  background: #fff;
}

.rehearsal-slot-row:nth-child(odd) {
  background: #fbfcfe;
}

.rehearsal-slot-row.has-conflict {
  background: #fff6f1;
}

.rehearsal-slot-time {
  color: #255cff;
  font-size: 18px;
  font-weight: 700;
}

.rehearsal-slot-time small {
  display: block;
  color: #71809d;
  font-size: 11px;
  font-weight: 600;
  margin-top: 2px;
}

.rehearsal-slot-song b,
.rehearsal-slot-show b {
  display: block;
  color: #172849;
}

.rehearsal-slot-song small,
.rehearsal-slot-show small {
  color: #71809d;
}

.rehearsal-conflict {
  display: block;
  margin-top: 5px;
  color: #c24c2d;
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
}

.edit-rehearsal-slot,
.open-rehearsal-attendance {
  margin-top: 6px;
}

.teacher-rehearsal-agenda {
  margin-top: 22px;
}

.teacher-agenda-list {
  display: grid;
  gap: 8px;
}

.teacher-agenda-row {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #f6f8fc;
  border: 1px solid #e6eaf3;
  border-radius: 10px;
}

.teacher-agenda-date b,
.teacher-agenda-row > div:last-child b,
.teacher-agenda-row small {
  display: block;
}

.teacher-agenda-date b { color: #255cff; text-transform: capitalize; }
.teacher-agenda-date small,
.teacher-agenda-row small { color: #71809d; margin-top: 3px; }

.attendance-list {
  display: grid;
  gap: 8px;
  max-height: 48vh;
  overflow: auto;
  margin: 16px 0;
  padding-right: 3px;
}

.attendance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid #e4e8f0;
  border-radius: 10px;
  background: #f7f8fb;
}

.attendance-row b,
.attendance-row small { display: block; }
.attendance-row small { color: #71809d; margin-top: 2px; }
.attendance-row label { margin: 0; min-width: 138px; }
.attendance-row select { margin: 0; padding: 8px 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 520px) {
  .attendance-row { align-items: flex-start; flex-direction: column; }
  .attendance-row label { width: 100%; }
  .attendance-row select { width: 100%; }
}

.rehearsal-participant-count {
  color: #087f65;
  font-weight: 700;
}

.rehearsal-empty {
  margin: 18px 0 0;
  padding: 16px;
  border-radius: 10px;
  background: #fff6da;
  color: #9e6810;
}

@media (max-width: 760px) {
  .rehearsal-slot-head { display: none; }
  .rehearsal-slot-row {
    grid-template-columns: 72px 1fr;
    gap: 7px 12px;
  }
  .rehearsal-slot-song { grid-column: 2; }
  .rehearsal-participant-count,
  .rehearsal-slot-show { grid-column: 2; }
}
.attendance-status.attendance-absent { color: #cf3939; font-weight: 800; }
