.nut-calendar {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  font-size: $calendar-base-font-size;
  background-color: $white;
  color: $gray1;
  overflow: hidden;
  height: 100%;

  &.nut-calendar-title {
    .nut-calendar-header {
      .calendar-title {
        font-size: $calendar-base-font-size;
      }
    }
  }

  .nut-calendar-taro {
    height: 60vh;
  }

  .popup-box {
    height: 100%;
  }

  ::-webkit-scrollbar {
    display: none;
  }

  // 头部导航
  &-header {
    display: flex;
    flex-direction: column;
    text-align: center;
  }

  &-title {
    font-size: $calendar-title-font-size;
    font-weight: $calendar-title-font-weight;
    line-height: $calendar-title-line-height;
    color: $calendar-title-color;
  }

  &-sub-title {
    height: $calendar-sub-title-height;
    line-height: $calendar-sub-title-line-height;
    background: $calendar-sub-title-background;
    font-size: $calendar-sub-title-font-size;
    font-weight: $calendar-sub-title-font-weight;
    color: $calendar-sub-title-color;
    display: flex;
    align-items: center;
    justify-content: center;
    span {
      display: flex;
      align-items: center;
      margin: 0 16px;
    }
  }

  &-header-buttons {
    height: $calendar-header-height;
  }

  &-weeks {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 32px;
    // border-radius: 0px 0px 12px 12px;
    // box-shadow: 0px 4px 10px 0px rgba($color: #000000, $alpha: 0.06);
  }

  &-week-item {
    font-size: $calendar-week-item-font-size;
    font-weight: $calendar-week-item-font-weight;
    color: $calendar-week-item-color;
    // &:first-of-type,
    // &:last-of-type {
    //   color: $calendar-day67-color;
    // }
  }

  // 内容区域
  &-content {
    flex: 1;
    width: 100%;
    display: block;
    overflow-y: auto;
  }

  &-pannel {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
    box-sizing: border-box;

    // .viewArea {
    //   display: block;
    // }

    .calendar-loading-tip {
      height: 50px;
      line-height: 50px;
      text-align: center;
      position: absolute;
      top: -50px;
      left: 0;
      right: 0;
      font-size: $font-size-1;
      color: $text-color;
    }
  }

  &-month {
    display: flex;
    flex-direction: column;
    text-align: center;
  }

  &-month-title {
    height: $calendar-month-title-height;
    line-height: $calendar-month-title-line-height;
    background: $calendar-month-title-background;
    font-size: $calendar-month-title-font-size;
    font-weight: $calendar-month-title-font-weight;
    color: $calendar-month-title-color;
    // margin: 8px 0;
  }

  &-days {
    overflow: hidden;
    position: relative;
    &::after {
      content: '';
      font-size: 160px;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      z-index: 0;
      color: #f5f5f5;
      font-weight: 500;
    }
    &-month1::after {
      content: '1';
    }
    &-month2::after {
      content: '2';
    }
    &-month3::after {
      content: '3';
    }
    &-month4::after {
      content: '4';
    }
    &-month5::after {
      content: '5';
    }
    &-month6::after {
      content: '6';
    }
    &-month7::after {
      content: '7';
    }
    &-month8::after {
      content: '8';
    }
    &-month9::after {
      content: '9';
    }
    &-month10::after {
      content: '10';
    }
    &-month11::after {
      content: '11';
    }
    &-month12::after {
      content: '12';
    }
  }

  &-day {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
    float: left;
    width: $calendar-day-width;
    height: $calendar-day-height;
    font-weight: $calendar-day-font-weight;
    font-size: $calendar-day-font-size;
    color: $calendar-day-color;
    margin-bottom: 4px;
    z-index: 1;

    &:nth-child(7n + 0),
    &:nth-child(7n + 1) {
      color: $calendar-day67-color;
      .info {
        color: $calendar-day67-color;
      }
    }

    &-info-curr {
      position: absolute;
      bottom: 5px;
      width: 100%;
      font-size: 12px;
      line-height: 14px;
    }

    &-info {
      position: absolute;
      bottom: 5px;
      width: 100%;
      font-size: 12px;
      line-height: 14px;
    }

    &-info-top {
      position: absolute;
      width: 100%;
      top: 5px;
    }

    &-info-bottom {
      position: absolute;
      width: 100%;
      bottom: 5px;
    }

    &-active {
      background-color: $calendar-active-background-color;
      color: $primary-text-color !important;
      border-radius: $calendar-day-active-border-radius;

      &.active-start {
        // border-radius: 0px;
        // border-top-left-radius: $calendar-day-active-border-radius;
        // border-bottom-left-radius: $calendar-day-active-border-radius;
      }

      &.active-end {
        // border-radius: 0px;
        // border-top-right-radius: $calendar-day-active-border-radius;
        // border-bottom-right-radius: $calendar-day-active-border-radius;
      }

      .nut-calendar-day-info {
        color: $primary-text-color;
        position: unset;
      }

      .nut-calendar-day-info-curr {
        position: unset;
      }
    }

    &-disabled {
      color: $calendar-disable-color !important;
      .info {
        color: $calendar-disable-color !important;
      }
    }

    &-choose {
      background-color: $calendar-choose-background-color;
      color: $calendar-choose-color;
    }
  }

  // 底部导航
  &-footer {
    display: flex;
    height: 52px;
    width: 100%;
    background-color: $white;

    .calendar-confirm-btn {
      height: 44px;
      width: 100%;
      margin: 4px 16px;
      border-radius: 22px;
      background: $button-primary-background-color;
      color: $primary-text-color;
      text-align: center;
      line-height: 44px;
      &-disabled {
        background: $button-primary-disabled-background-color;
      }
    }
  }
}

.nut-popup__close-icon {
  top: 7px !important;
}
