html {
  scroll-behavior: smooth;
}

th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  padding: 0.8rem;
  position: sticky;
  text-align: left;
  top: 0;
  white-space: nowrap;
}

td {
  border-top: 1px solid #e2e8f0;
  padding: 0.8rem;
  vertical-align: middle;
  white-space: nowrap;
}

tbody tr:nth-child(even) {
  background: #f8fafc;
}

tbody tr:hover {
  background: #f0fdfa;
}

.wizard-dot {
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  padding: 0.45rem 0.8rem;
}

.wizard-dot.active {
  background: #ccfbf1;
  color: #115e59;
}

.attendance-grid th:first-child,
.attendance-grid td:first-child {
  left: 0;
  min-width: 13rem;
  position: sticky;
  z-index: 2;
}

.attendance-grid th:first-child {
  background: #f8fafc;
  z-index: 4;
}

.attendance-grid td:first-child {
  background: #ffffff;
  box-shadow: 1px 0 0 #e2e8f0;
  font-weight: 700;
  max-width: 13rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.attendance-grid tbody tr:nth-child(even) td:first-child {
  background: #f8fafc;
}

.attendance-grid tbody tr:hover td:first-child {
  background: #f0fdfa;
}

.attendance-grid th:not(:first-child),
.attendance-grid td:not(:first-child) {
  min-width: 9.25rem;
  text-align: center;
}

.attendance-btn {
  display: inline-flex;
  justify-content: center;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 5.8rem;
  padding: 0.35rem 0.65rem;
  text-transform: capitalize;
}

.attendance-btn.present {
  background: #dcfce7;
  color: #166534;
}

.attendance-btn.absent {
  background: #fee2e2;
  color: #991b1b;
}

@media (max-width: 767px) {
  th,
  td {
    padding: 0.65rem;
  }
}
