:host {
  display: block;
}

.hb-date-picker-pane {
  padding: 12px;
  background-color: var(--hb-color-white, #ffffff);
  border-radius: 4px;
}

.hb-date-picker-pane__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.hb-date-picker-pane__header-label {
  font-weight: 600;
  font-size: 14px;
  color: var(--hb-color-text-regular, #606266);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.2s, background-color 0.2s;
}

.hb-date-picker-pane__header-label:hover {
  color: var(--hb-color-primary);
  background-color: var(--hb-fill-color-light, #f5f7fa);
}

.hb-date-picker-pane__prev-btn,
.hb-date-picker-pane__next-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--hb-color-text-regular, #606266);
  padding: 4px 8px;
  transition: color 0.2s;
}

.hb-date-picker-pane__prev-btn:hover,
.hb-date-picker-pane__next-btn:hover {
  color: var(--hb-color-primary);
}

.hb-date-picker-pane__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}

.hb-date-picker-pane__weekday {
  text-align: center;
  font-size: 12px;
  color: var(--hb-color-text-placeholder, #c0c4cc);
  font-weight: 500;
}

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

.hb-date-picker-pane__day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--hb-color-text-regular, #606266);
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
}

.hb-date-picker-pane__day:hover:not(.hb-date-picker-pane__day--other-month) {
  background-color: var(--hb-fill-color-light, #f5f7fa);
}

.hb-date-picker-pane__day--other-month {
  color: var(--hb-color-text-placeholder, #c0c4cc);
  cursor: default;
}

.hb-date-picker-pane__day--today {
  color: var(--hb-color-primary);
  font-weight: 600;
}

.hb-date-picker-pane__day--selected {
  background-color: var(--hb-color-primary);
  color: var(--hb-color-white, #ffffff);
}

/* months / years 视图共享格子样式 */
.hb-date-picker-pane__months,
.hb-date-picker-pane__years {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 4px 0;
}

.hb-date-picker-pane__month,
.hb-date-picker-pane__year {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  font-size: 13px;
  color: var(--hb-color-text-regular, #606266);
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s, color 0.2s;
}

.hb-date-picker-pane__month:hover,
.hb-date-picker-pane__year:hover {
  background-color: var(--hb-fill-color-light, #f5f7fa);
}

.hb-date-picker-pane__month--current,
.hb-date-picker-pane__year--current {
  color: var(--hb-color-primary);
  font-weight: 600;
}

.hb-date-picker-pane__month--selected,
.hb-date-picker-pane__year--selected {
  background-color: var(--hb-color-primary);
  color: var(--hb-color-white, #ffffff);
}

