@keyframes mymove {
  from {
    right: -490px;
    background: rgba(0,0,0,0);
  }
  to {
    right: 0;
    background: #fff;
  }
}

.modalAnimate {
  animation: mymove 0.6s ease-out;
}

.caEdBody {
  position: absolute;
  top: 0;
  right: 0;
  width: 490px;
  height: 100%;
  background-color: #fff;
  box-shadow: -2px 10px 20px 0 #d1d1d1;

  .caEdContent {
    max-height: 85%;
  }

  // header
  header {
    margin-top: 5px;
    .headerText {
      font-size: 17px;
      font-weight: 600;
    }

    .headerIcon {
      float: right;
      line-height: 24px;
      font-size: 24px;
      color: #949494;
      cursor: pointer;
    }

    .headerIcon:hover {
      color: lightgray;
    }
  }

  // 事件内容
  .caEdEvent {
    position: relative;

    .eventNum {
      position: absolute;
      right: 12px;
      font-size: 13px;
      color: #949494;
    }

  }

  // 时间选择
  .cdEdTimeEdit {
    color: #949494;
    font-size: 13px;
    padding-left: 5px;

    .allDay {
      vertical-align: middle;
      color: #949494;
      font-size: 13px;
      margin: 0 15px 0 5px;
      cursor: pointer;
    }

  }

  .timeIcon {
    vertical-align: middle;
    color: #ff9445;
    cursor: pointer;
  }

  // 事件类型
  .eventType {
    position: relative;
    width: 100%;

    .eventTypeSelect {
      position: relative;
      width: 91%;
      height: 22px;
      padding-left: 5px;
      border-bottom: 1px solid #e5e5e5;
      color: #949494;
      cursor: pointer;

      .eventTypeIcon {
        margin-right: 5px;
      }

      .eventTypeName {
        font-size: 13px;
        color: #949494;
      }

      .expendIcon {
        display: none;
        position: absolute;
        top: 0;
        right: 0;
        color: #949494;
      }

      .expendClose {
        position: absolute;
        top: 0;
        right: 0;
        color: #949494;
      }
    }

    .eventTypeSelect:hover .expendIcon {
      display: block;
    }

    // 列表
    .eventTypeLists {
      z-index: 99;
      position: absolute;
      width: 86%;
      top: 54px;
      left: 19px;
      color: #949494;
      font-size: 13px;
      border: 1px solid #e5e5e5;
      border-radius: 5px;
      border-top: none;
      background-color: #fff;
      box-shadow: 2px 2px 2px 0 #e5e5e5;

      > div {
        max-height: 160px;
      }

      ul {
        //max-height: 160px;

        li {
          position: relative;
          height: 32px;
          line-height: 32px;
          padding: 0 15px;

          .typeCheck {
            position: absolute;
            right: 15px;
            top: 0;
          }
        }

        li:hover {
          background-color: #f3f3f3;
        }
      }

      .typeFree {
        height: 32px;
        line-height: 32px;
        text-align: center;
        color: #949494;
        border-top: 1px solid #e5e5e5;
        cursor: pointer;
      }

      .typeFree:hover {
        color: #ff9445;
      }
    }

  }

  // 提醒方式
  .noticeBody {
    position: relative;
    width: 100%;

    .closeNotice {
      position: absolute;
      top: 5px;
      right: 13px;
      color: #949494;
      cursor: pointer;
    }

    .closeNotice:hover {
      color: lightgray;
    }

    .eventTypeSelect {
      position: relative;
      width: 91%;
      padding-left: 5px;
      padding-right: 40px;
      border-bottom: 1px solid #e5e5e5;
      cursor: pointer;
      color: #949494;
      font-size: 13px;

      .noticePicker {
        position: relative;
        z-index: 99;
      }

      .eventTypeIcon {
        margin-right: 5px;
      }

      .eventTypeName {
        font-size: 13px;
        color: #949494;
      }

      .eventDiyName {
        display: inline-block;
        border-radius: 10px;
        position: relative;
        padding: 0 20px 0 10px;
        margin: 2px 5px;
        background-color: #949494;
        color: #fff;

        span {
          position: absolute;
          top: 1px;
          right: 4px;
          font-size: 13px;
        }
      }


      .expendIcon {
        display: none;
        position: absolute;
        top: 0;
        right: 0;
        color: #949494;
      }

      .expendClose {
        position: absolute;
        top: 0;
        right: 0;
        color: #949494;
      }
    }

    .eventTypeSelect:hover .expendIcon {
      display: block;
    }

    // 列表
    .eventTypeLists {
      position: absolute;
      z-index: 99;
      width: 86%;
      top: 54px;
      left: 19px;
      color: #949494;
      font-size: 13px;
      border: 1px solid #e5e5e5;
      border-radius: 5px;
      border-top: none;
      background-color: #fff;
      box-shadow: 2px 2px 2px 0 #e5e5e5;

      > div {
        max-height: 160px;
      }

      ul {
        //max-height: 160px;

        li {
          position: relative;
          height: 32px;
          line-height: 32px;
          padding: 0 15px;
          cursor: pointer;

          .typeCheck {
            position: absolute;
            right: 15px;
            top: 0;
          }
        }

        li:hover {
          background-color: #f3f3f3;
        }
      }

      .typeFree {
        height: 32px;
        line-height: 32px;
        text-align: center;
        color: #949494;
        border-top: 1px solid #e5e5e5;
      }

      .typeFree:hover {
        color: #ff9445;
      }
    }

    .evenNoticeType {
      padding-left: 5px;
      margin-top: 7px;

      li {
        float: left;
        margin-right: 18px;
        cursor: pointer;
      }

      span {
        color: #ff9445;
      }

      .typeText {
        color: #949494;
      }
    }

  }

  // 操作按钮
  .calendarFoot {
    position: absolute;
    bottom: 3px;
    left: 0;
    width: 100%;
    height: 55px;
    padding: 10px 20px;
    line-height: 35px;
    background-color: #f8f8f8;

    ul {
      li {
        margin-right: 15px;
        float: left;
        cursor: pointer;
        color: #a9a9a9;
      }

      .active {
        color: #ff9445;
      }
    }

    button {
      float: right;
      width: 113px;
      height: 35px;
      border: none;
      border-radius: 3px;
      outline: none;
      color: #fff;
      background-color: #ff8928;
      cursor: pointer;
    }

    .loadBtn {
      position: relative;
      float: right;
      width: 113px;
      height: 35px;
      line-height: 35px;
      text-align: center;
      color: #fff;
      border-radius: 3px;
      background-color: #ff8928;
      opacity: 0.8;
      cursor: not-allowed;
    }
  }

  .calendarFootEdit {
    position: absolute;
    bottom: 3px;
    left: 0;
    width: 100%;
    height: 55px;
    padding: 10px 20px;
    line-height: 35px;
    background-color: #fff;

    button {
      float: right;
      width: 83px;
      height: 35px;
      border: none;
      border-radius: 3px;
      outline: none;
      cursor: pointer;
      background-color: #fff;
    }

    button:nth-child(2) {
      margin-right: 30px;
      border: 1px solid #ff8677;
      color: #ff8677;
    }

    button:nth-child(1) {
      border: 1px solid #9bd3fa;
      color: #9bd3fa;
    }
  }

  // modal遮罩
  .calendarModal {
    position: absolute;
    z-index: 10;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
  }
}

// 公共
.comPadding {
  padding: 10px 10px 10px 20px;
}

.caEdTitle {
  padding-bottom: 22px;
  color: #949494;
  height: 13px;
  line-height: 13px;
  font-size: 13px;
}

.active {
  color: #ff9445;
}

.clearfix:before,
.clearfix:after {
  content: " ";
  display: table;
}

.clearfix:after {
  clear: both;
}