.@{yee-calendar-prefix-cls}-month-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: @yee-zindex-picker-panel;
  background: @yee-component-background;
  border-radius: @yee-border-radius-base;
  outline: none;

  > div {
    display: flex;
    flex-direction: column;
    // TODO: this is a useless wrapper, and we need to remove it in rc-calendar
    height: 100%;
  }
}

.@{yee-calendar-prefix-cls}-month-panel-hidden {
  display: none;
}

.@{yee-calendar-prefix-cls}-month-panel-header {
  .yee-calendarPanelHeader(~'@{yee-calendar-prefix-cls}-month-panel');
  position: relative;
}

.@{yee-calendar-prefix-cls}-month-panel-body {
  flex: 1;
}

.@{yee-calendar-prefix-cls}-month-panel-footer {
  border-top: @yee-border-width-base @yee-border-style-base @yee-border-color-split;
  .@{yee-calendar-prefix-cls}-footer-extra {
    padding: 0 12px;
  }
}

.@{yee-calendar-prefix-cls}-month-panel-table {
  width: 100%;
  height: 100%;
  table-layout: fixed;
  border-collapse: separate;
}

.@{yee-calendar-prefix-cls}-month-panel-selected-cell .@{yee-calendar-prefix-cls}-month-panel-month {
  color: @yee-text-color-inverse;
  background: @yee-primary-color;

  &:hover {
    color: @yee-text-color-inverse;
    background: @yee-primary-color;
  }
}

.@{yee-calendar-prefix-cls}-month-panel-cell {
  text-align: center;

  &-disabled .@{yee-calendar-prefix-cls}-month-panel-month {
    &,
    &:hover {
      color: @yee-disabled-color;
      background: @yee-disabled-bg;
      cursor: not-allowed;
    }
  }
}

.@{yee-calendar-prefix-cls}-month-panel-month {
  display: inline-block;
  height: 24px;
  margin: 0 auto;
  padding: 0 8px;
  color: @yee-text-color;
  line-height: 24px;
  text-align: center;
  background: transparent;
  border-radius: @yee-border-radius-sm;
  transition: background 0.3s ease;

  &:hover {
    background: @yee-item-hover-bg;
    cursor: pointer;
  }
}
