@import '../styles/var.less';

.calendar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 17px 0;
  overflow: auto;
  z-index: 1;
}

.item {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  font-size: 30px;
  font-weight: bold;
  color: #343434;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 26px;
  position: relative;
  margin-bottom: 28px;
  box-sizing: content-box;
  &:active {
    background: #f0f4fd;
  }
}

.week {
  color: #9a9a9a;
  font-weight: normal;
  margin-bottom: 0;
  position: sticky;
  top: 0;
  background-color: #fff;
  z-index: 1;
  border-radius: 0;
}

.disable {
  pointer-events: none;
  color: #cccccc;
}

.active {
  color: #fff;
  background: @brand-primary;
}

.dotWrap {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 32%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #cccccc;
  font-size: 22px;
}

.dot {
  width: 10px;
  height: 10px;
  background: @brand-primary;
  border-radius: 50%;
}

.activeDot {
  background-color: #fff;
}

.month {
  width: 750px;
  height: 60px;
  z-index: 1;
  display: flex;
  align-items: center;
  font-size: 30px;
  font-weight: bold;
  color: #666666;
  padding: 0 20px;
  background-color: #eee;
  margin-bottom: 20px;
  position: sticky;
  top: 75px;
}

.elderly {
  .month {
    margin-bottom: 0;
    top: 126px;
  }
  .item {
    width: 107px;
    height: 126px;
    border: 2px solid #ffffff;
    border-radius: 0;
    margin: 0;
    background-color: rgba(@brand-primary, 0.1);
    font-weight: bold;
    color: #666666;
    font-size: 40px;
    &.active {
      background-color: @brand-primary;
      color: #fff;
      .dotWrap {
        color: #fff;
      }
    }
    &.disable {
      background-color: rgba(#999999, 0.15);
    }
    &.empty {
      background-color: #fff;
    }
    &.week {
      background-color: #fff;
      font-size: 40px;
    }
  }
  .month {
    background: @brand-primary;
    font-size: 40px;
    font-weight: bold;
    color: #ffffff;
  }
}
