body {
  background-color: #f7f8fa;
}

.grid-wrapper {
  overflow-x: auto;
}

.w2m-grid {
  display: grid;
  grid-template-columns: 64px repeat(var(--cols), minmax(64px, 1fr));
  user-select: none;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  overflow: hidden;
  width: max-content;
  min-width: 100%;
}

.w2m-cell {
  box-sizing: border-box;
  border-bottom: 1px solid #eef0f2;
  border-right: 1px solid #eef0f2;
  padding: 4px 6px;
  font-size: 0.75rem;
}

.w2m-corner {
  background: #fff;
  position: sticky;
  left: 0;
  z-index: 2;
}

.w2m-col-header {
  background: #fff;
  text-align: center;
  font-weight: 600;
  padding: 8px 4px;
}

.w2m-row-header {
  background: #fff;
  color: #6c757d;
  text-align: right;
  position: sticky;
  left: 0;
  z-index: 1;
}

.w2m-slot {
  height: 22px;
  background: #ffffff;
  cursor: pointer;
  transition: background-color 60ms ease-out;
}

.w2m-slot:hover {
  background-color: #eef3ff;
}

.w2m-slot.selected {
  background-color: #0d6efd;
}

@media (max-width: 576px) {
  .w2m-grid {
    grid-template-columns: 52px repeat(var(--cols), minmax(44px, 1fr));
  }

  .w2m-cell {
    padding: 4px;
    font-size: 0.7rem;
  }

  .w2m-slot {
    height: 36px;
  }
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-weekday {
  text-align: center;
  font-size: 0.75rem;
  color: #6c757d;
  font-weight: 600;
  padding-bottom: 4px;
}

.cal-day {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  user-select: none;
}

.cal-day:hover:not(.disabled):not(.cal-day-empty) {
  background-color: #eef3ff;
}

.cal-day.disabled {
  color: #ced4da;
  cursor: not-allowed;
}

.cal-day.cal-day-empty {
  cursor: default;
}

.cal-day.today {
  box-shadow: inset 0 0 0 1px #0d6efd;
}

.cal-day.selected {
  background-color: #0d6efd;
  color: #fff;
}

.cal-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
