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

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

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

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

.@{yee-calendar-prefix-cls}-decade-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}-decade-panel-table {
  width: 100%;
  height: 100%;
  table-layout: fixed;
  border-collapse: separate;
}

.@{yee-calendar-prefix-cls}-decade-panel-cell {
  white-space: nowrap;
  text-align: center;
}

.@{yee-calendar-prefix-cls}-decade-panel-decade {
  display: inline-block;
  height: 24px;
  margin: 0 auto;
  padding: 0 6px;
  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;
  }
}

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

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

.@{yee-calendar-prefix-cls}-decade-panel-last-century-cell,
.@{yee-calendar-prefix-cls}-decade-panel-next-century-cell {
  .@{yee-calendar-prefix-cls}-decade-panel-decade {
    color: @yee-disabled-color;
    user-select: none;
  }
}
