@import "../../../../src/theme.less";
.modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .4);
  z-index: 999;
  .loading,.noData{
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .noData{
    color: @primary-color;
    font-size: 20px;
    font-weight: bold;
  }
  .modalBody {
    width: 1000px;
    height: 580px;
    background: #fff;
    border-radius: 5px;
    padding: 10px 20px;
    color: #333;

    .title {
      width: 100%;
      text-align: center;
      font-size: 18px;
      position: relative;

      i {
        position: absolute;
        right: 0;
        top: 0;
        font-size: 20px;
        color: #666;
        cursor: pointer;
        padding: 0 5px;
      }
    }
    .defeat-search-wrap--foot{
      height: 120px;
      border-bottom: solid 1px #e5e9ed;
      border-left: solid 1px #e5e9ed;
      border-right: solid 1px #e5e9ed;
      border-bottom-left-radius: 5px;
      border-bottom-right-radius: 5px;
    }
    .defeat-search-wrap{
      width: 100%;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      align-content: center;
      padding: 0 16px;
    }
    .defeat-search{
      height: 40px;
      display: flex;
      align-items: center;
      &.defeat-search--foot{
        height: 26px;
        margin-top: 3px;
        &.xx{
          border: 1px solid #dde1e5;
          background-color: #f9fafb;
          margin-left: 8px;
          padding-right: 4px;
          i{
            color: #e5e9ed;
            cursor: pointer;
            &:hover{
              color: #ff3b53;
            }
          }
        }
      }
      em{
        color: #333;
        font-style: normal;
        font-weight: bold;
      }
    }
    .content {
      min-height: 117px;
      background: #f9fafb;
      border: 1px solid #e5e9ed;
      border-top-left-radius: 5px;
      border-top-right-radius: 5px;
      overflow: hidden;
      margin-top: 12px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;

      &.content-search{
        min-height: 147px;
        justify-content: start;
        .form{
          width: 100%;
          height: 320px;
          display: flex;
          ul{
            list-style: none;
            margin: 0;
            text-align: left;
            padding: 8px;
            li{
              height: 26px;
              padding: 0 8px;
              overflow: hidden;
              text-overflow: ellipsis;
              white-space: nowrap;
              cursor: pointer;
              display: flex;
              justify-content: space-between;
              align-items: center;
              &.active{
                background-color: #f0f6ed;
                color: @primary-color;
                cursor: not-allowed;
              }
            }
          }
          .schemeName{
            width: 25%;
            border-right: 1px solid #e5e9ed;
          }
          .taskTypeName{
            width: 25%;
            border-right: 1px solid #e5e9ed;
          }
          .frequencyName{
            width: 50%;
          }
          ::ng-deep .os-content{
            height: 100%!important;
          }
        }
      }

      div {
        text-align: center;
        margin: 0;

        &.defeat {
          color: #333;
          font-size: 28px;
        }
        &.countDown{
          font-size: 14px;
          color: 666;
          em{
            font-style: normal;
            color: @primary-color;
          }
        }

        &:nth-child(3) {
          font-size: 14px;
          color: #666;
          padding-bottom: 10px;
        }
      }
    }

    button {
      margin-top: 10px;

      &.btn {
        margin-left: 8px;
      }
    }

  }

  // 新增
  &.add {
    .modalBody {
      width: 480px;
      height: auto;

      .content {
        width: 100%;
        height: auto;
        padding: 18px 14px 0 14px;

        .addForm {
          .ant-form-item {
            margin-bottom: 15px;

            .ant-form-item-label {
              line-height: 0;
            }
          }
        }

        .editForm {
          .ant-form-item {
            margin-bottom: 15px;

            .ant-form-item-label {
              line-height: 0;
            }
          }
        }

      }

      button {
        &:nth-child(1) {
          margin-right: 20px;

        }
      }

    }
  }

}
