.schedule-grid {
  margin-bottom: var(--space-2);
}

.schedule-table {
  width: 100%;
  min-width: 56rem;
  border-collapse: separate;
  border-spacing: 0;
}

.schedule-table th,
.schedule-table td {
  padding: var(--space-2);
  border-bottom: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  vertical-align: top;
}

.schedule-table thead th {
  background: #f9fafb;
  text-align: left;
  font-weight: 600;
}

.schedule-name-col,
.schedule-name {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 12rem;
  background: var(--color-surface);
  text-align: left;
  font-weight: 550;
}

.schedule-table thead .schedule-name-col {
  background: #f9fafb;
}

.schedule-day-col {
  min-width: 7.5rem;
}

.schedule-day-col.is-holiday {
  background: var(--color-holiday-soft);
}

.schedule-weekday {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.schedule-date {
  display: block;
  font-size: 0.9375rem;
}

.schedule-cell {
  display: table-cell;
}

.schedule-cell .select {
  margin-bottom: 0.25rem;
}

.schedule-cell.has-shift .select {
  border-color: #9db8d3;
  background: var(--color-primary-soft);
  font-weight: 550;
}

.schedule-cell.absence-approved {
  background: #fdf3f2;
}

.schedule-cell.absence-pending {
  background: #fffaf0;
}

.is-inactive .schedule-name a {
  color: var(--color-text-muted);
}

.schedule-table tfoot th,
.schedule-table tfoot td {
  background: #fafbfc;
  font-size: 0.875rem;
}

.coverage-cell {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.coverage-cell.level-ok {
  background: var(--color-ok-soft);
}

.coverage-cell.level-alert {
  background: var(--color-alert-soft);
}

.coverage-cell.level-gap {
  background: var(--color-gap-soft);
}

.coverage-cell svg {
  margin-left: 0.25rem;
}

.schedule-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.schedule-actions .btn {
  align-self: flex-start;
}
