.nut-calendar-viewmode {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  font-size: $calendar-base-font-size;
  background-color: $color-background-overlay;
  color: $color-title;
  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 {
    color: $color-title;
    font-size: $calendar-title-font-size;
    font-weight: $calendar-title-font-weight;
    line-height: 50px;
  }

  &-sub-title {
    padding: 7px 0;
    line-height: 22px;
    font-size: $calendar-sub-title-font-size;
  }

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

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

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

  &-panel {
    display: flex;
    flex-direction: column;
    text-align: center;
    &-title {
      height: 23px;
      line-height: 23px;
      margin: 8px 0;
    }
  }

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

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

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

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

    &-prev,
    &-next {
      color: $calendar-disable-color !important;
      .nut-calendar-day-info-curr {
        display: none;
      }
    }
  }

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

    .calendar-confirm-btn {
      height: 44px;
      margin: 10px 18px;
      border-radius: 22px;
      background: $button-primary-background-color;
      color: $color-primary-text;
      text-align: center;
      line-height: 44px;
    }
  }
}

.nut-calendar-popup .nut-popup-title-right {
  top: 7px !important;
}

[dir='rtl'] .nut-calendar,
.nut-rtl .nut-calendar {
  &-day {
    float: right;

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

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