@import '@/core/variables.less';

.multiple-calendar {
  width: 295px;
  border: 1px solid #e8e8e8;
  border-radius: 2px;
  ul {
    list-style: none;
  }
  .t-control {
    display: flex;
    > div {
      padding: 2px 0;
      text-align: center;
      cursor: pointer;
      &:hover {
        background: #ececec;
      }
    }
    .loc {
      flex: 1;
      cursor: default;
      &:hover {
        background: #FFFFFF;
        border-radius: 2px;
      }
    }
    .self {
      width: 50px;
    }
    .prev, .next {
      width: 50px;
    }
  }

  .week {
    font-size: 12px;
    li {
      display: inline-block;
      width: 41px;
      text-align: center;
      cursor: pointer;
    }
  }

  .calendar {
    padding-bottom: 10px;
    li {
      display: inline-block;
      width: 31px;
      margin: 0 5px;
      text-align: center;
      height: 30px;
      line-height: 30px;
      cursor: pointer;
      vertical-align: top;
      &:hover {
        background: rgba(41, 102, 255, .1);
        border-radius:2px;
      }
      &.before-disabled {
        color: #e8e8e8;
        cursor: default;
        &:hover {
          background: none!important;
          span{
            color: #e8e8e8!important;
          }
        }
      }
      &.disabled{
        color: #e8e8e8;
        cursor: default;
        &:hover {
          background: none!important;
          span{
            color: #e8e8e8!important;
          }
        }
      }
      &.active {
        background: @xm-color-primary;
        color: #fff;
        border-radius: 2px;
      }
      &.today {
        border: 1px solid @xm-color-primary;
        border-radius: 2px;
      }
    }
  }
  &.punch-calender {
    width: 400px;
    margin-top: 12px;
    .punch-control {
      border-bottom: 1px solid rgba(0,0,0,0.06);
      position: relative;
      .punch-main {
        margin: 0 133px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        .prev-icon,
        .next-icon {
          cursor: pointer;
        }
        
        .month {
          color: #333333;
        }
        .icon {
          color: rgba(0,0,0,0.45);
        }
        .disbled-icon {
          cursor: not-allowed;
          .icon {
            color: #e8e8e8;
          }
        }
      }
      .self {
        position: absolute;
        right: 8px;
        top: 0;
        color: #FF7519;
        cursor: pointer;
      }
    }
    .week {
      li {
        width: 56px;
      }
    }
    .calendar li {
      width: 56px;
      margin: 0 !important;
      span {
        width: 30px;
        height: 30px;
      }
      &:hover {
        background: transparent;
        span {
          background: transparent;  
          color: #FF7519;
        }
      }
      &.active {
        background: transparent;
        color: #fff;
        border-radius: none;
         span {
           background: @xm-color-primary;
           border-radius: 2px;
         }
        &:hover {
          span {
            color: #fff;
          }
        }
      }
      &.today {
        border: none;
        border-radius: none;
        span {
          border: 1px solid @xm-color-primary;
          border-radius: 2px;
        }
      }
      &.past {
        span {
          background:rgba(255,133,52,0.1);
          border-radius: 2px;
          color:rgba(0,0,0,0.25);
        }
      }
    }
  }
}
