@import (reference) "../common/styles/base/base";

.@{prefixName}-calendar{
  background-color: #fff;
  padding-top: 24px;
  &__hd{
    font-size: 16px;
    color: #000;
    text-align: center;
    margin-bottom: 16px;
  }
  &__bd{
    height: 420px;
    display: flex;
    flex-direction: column;
  }
  &__week{
    height: 40px;
    padding-left: 8px;
    padding-right: 8px;
    box-sizing: border-box;
    &::before{
      content: '';
      display: inline-block;
      width: 0;
      font-size: 0;
      line-height: 0;
      vertical-align: middle;
      height: 100%;
    }
    &::after{
      .single-border(bottom, 1px, #ddd);
    }
  }
  &__date{
    flex: 1;
    height: 1%;
    &-inner{
      height: 100%;
      width: 100%;
    }
  }
  &__month{

    &--range{
      .@{prefixName}-calendar{
        &__month{
          &-item{
            &--select{
              + .@{prefixName}-calendar {
                &__month{
                  &-item{
                    &--select{
                      background-color: rgba(237, 68, 68, .1);
                      color: #444;
                      border-radius: 0;
                    }
                  }
                }
            }
            }
          }
        }
      }
    }
    &-items{
      font-size: 0;
      display: inline-block;
      vertical-align: middle;
      width: 100%;
      text-align: left;
    }
    &-item{
      display: inline-block;
      vertical-align: top;
      font-size: 22px;
      color: #444;
      text-align: center;
      width: 14.28%;
      margin-top: 4px;
      margin-bottom: 4px;
      padding-bottom: 4px;
      padding-top: 4px;
      min-height: 60px;
      font-weight: bold;
      &--head{
        font-size: 14px;
        &:first-child{
          color: #ed4444;
        }
        &:last-child{
          color: #ed4444;
        }
      }
      &--disable{
        color: #ddd !important;
        .@{prefixName}-calendar{
          &__month{
            &-before{
              color: inherit;
            }
          }
        }
      }
      &--select{
        background-color: #ed4444;
        color: #fff;
        border-radius: 2px;
        .@{prefixName}-calendar{
          &__month{
            &-before{
              color: #fff;
            }
            &-after{
              color: #fff;
            }
          }
        }
      }
      &--end{
        background-color: #ed4444 !important;
        color: #fff !important;
        border-radius: 2px !important;
      }
    }
    &-title{
      font-weight: bold;
      text-align: left;
      padding-left: 8px;
      font-size: 22px;
      color: #000;
      line-height: 32px;
      margin-top: 8px;
      margin-bottom: 4px;
    }
    &-contain{
      padding-left: 8px;
      padding-right: 8px;
      text-align: center;
      box-sizing: border-box;
      overflow: hidden;
    }
    &-before{
      font-weight: normal;
      height: 14px;
      font-size: 10px;
      color: #ed4444;
    }
    &-after{
      font-weight: normal;
      height: 12px;
      font-size: 12px;
      color: inherit;
    }
  }
}
