.@{prefixClass}-year-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  background: #fff;
  outline: none;

  > div {
    display: flex;
    flex-direction: column;
    height: 100%;
  }
}

.@{prefixClass}-year-panel-hidden {
  display: none;
}

.@{prefixClass}-year-panel-header {
  position: relative;
  height: 34px;
  padding: 0 10px;
  line-height: 30px;
  text-align: center;
  border-bottom: 1px solid #ccc;
  -webkit-user-select: none;
  user-select: none;

  > a {
    display: inline-block;
    width: 30px;
    padding: 4px 5px;
    font-weight: bold;
    text-align: center;

    &:hover {
      color: #23c0fa;
      cursor: pointer;
    }
  }
}

.@{prefixClass}-year-panel-prev-decade-btn,
.@{prefixClass}-year-panel-next-decade-btn {
  position: absolute;
  top: 0;
}

.@{prefixClass}-year-panel-next-decade-btn {
  &::after {
    content: '»';
  }
}

.@{prefixClass}-year-panel-prev-decade-btn {
  left: 0;
  user-select: none;

  &::after {
    content: '«';
  }
}

.@{prefixClass}-year-panel .@{prefixClass}-year-panel-decade-select {
  width: 180px;
}

.@{prefixClass}-year-panel-decade-select-arrow {
  display: none;
}

.@{prefixClass}-year-panel-next-decade-btn {
  right: 0;
  user-select: none;
}

.@{prefixClass}-year-panel-body {
  flex: 1;
  padding: 9px 10px 10px;
}

.@{prefixClass}-year-panel-footer {
  line-height: 38px;
  border-top: 1px solid #ccc;
}

.@{prefixClass}-year-panel-table {
  width: 100%;
  height: 100%;
  table-layout: fixed;
  border-collapse: separate;
}

.@{prefixClass}-year-panel-cell {
  text-align: center;
}

.@{prefixClass}-year-panel-year {
  display: block;
  width: 46px;
  height: 36px;
  margin: 0 auto;
  padding: 0;
  color: #666;
  line-height: 36px;
  text-align: center;
  background: transparent;
  border-radius: 4px 4px;

  &:hover {
    background: #ebfaff;
    cursor: pointer;
  }
}

.@{prefixClass}-year-panel-selected-cell .@{prefixClass}-year-panel-year {
  color: #fff;
  background: #3fc7fa;

  &:hover {
    color: #fff;
    background: #3fc7fa;
  }
}

.@{prefixClass}-year-panel-last-decade-cell,
.@{prefixClass}-year-panel-next-decade-cell {
  .@{prefixClass}-year-panel-year {
    color: rgba(0, 0, 0, 0.25);
    -webkit-user-select: none;
    user-select: none;
  }
}

.@{prefixClass}-year-header-wrap {
  position: relative;
  height: 308px;
}
