%control-btn-style {
  float: right;
  width: 89px;
  height: 34px;
  line-height: 34px;
  text-align: center;
  border: 1px solid #999;
}

%head-one {
  position: relative;
  top: 10px;
  left: 10px;
  width: 30%;
  height: 40px;
  font-size: 15px;
  line-height: 40px;
  text-align: center;
  background: white;
  border: 1px solid lightgray;
  border-bottom: 2px solid #345FA6;
}


%head-two {
  height: 0;

  .head-two-one {
    width: 18rem;
    height: 30px;
    text-align: center;
    background: linear-gradient(180deg, white 0%, white 0%, #E4E4E4 100%, #E4E4E4 100%);
    border-right: 1px solid #797979;
    border-bottom: 1px solid #797979;
  }

  .head-two-two {
    position: absolute;
    top: 29px;
    left: calc(18rem - 6px);
    width: 6rem;
    height: 31px;
    font-size: 15px;
    line-height: 30px;
    text-align: center;
    background: linear-gradient(270deg, white 0%, #F2F2F2 0%, #E4E4E4 100%, white 100%);
    border: 1px solid #797979;

    &:hover {
      cursor: pointer;
    }
  }

  .head-two-three {
    position: relative;
    top: -31px;
    left: calc(18rem + 60px);
    width: 6rem;
    height: 31px;
    font-size: 15px;
    font-weight: 600;
    line-height: 30px;
    color: white;
    text-align: center;
    background: #345FA6;
    border: 1px solid #345FA6;
    border-radius: 20px;

    &:hover {
      cursor: pointer;
      background: rgb(67, 115, 192);
    }
  }

  .head-two-four {
    position: absolute;
    top: 9px;
    left: calc(26rem - 119px);
    width: calc(6rem - 4px);
    height: 31px;
    font-size: 15px;
    font-weight: 600;
    line-height: 29px;
    color: white;
    text-align: center;
    background: #345FA6;
    border: 1px solid #345FA6;
    border-radius: 20px;

    &:hover {
      cursor: pointer;
      background: rgb(67, 115, 192);
    }
  }
}

%ant-select-selection {
  height: 30px;
  border-color: lightgrey;
  border-radius: 4px;
}

//告警配置
.alarm-config-root {
  float: left;
  width: 100%;
  height: 100%;
  background-color: #E4E4E4;
  border: 1px solid gray;

  .ant-select-selection {
    @extend %ant-select-selection;
  }
}

//设备源配置
.data-source-root {
  float: left;
  width: 100%;
  height: 100%;
  background-color: white;

  .ant-select-selection {
    @extend %ant-select-selection;
  }

  .head-root {
    width: 100%;
    height: 50px;
    border-bottom: 1px solid lightgray;

    .head-one {
      @extend %head-one;
    }

    .head-two {
      @extend %head-two;
    }
  }


  .control-panel {
    width: 100%;
    height: 36px;

    .control-del-btn {
      @extend %control-btn-style;

      &:hover {
        cursor: pointer;
        background-color: red;
      }
    }

    .control-cancel-btn {
      @extend %control-btn-style;

      &:hover {
        cursor: pointer;
        background-color: orange;
      }
    }

    .control-confirm-btn {
      @extend %control-btn-style;

      &:hover {
        cursor: pointer;
        background-color: green;
      }
    }
  }

  .content-panel {
    padding-top: 1rem;
  }
}

//输出配置
.output-config-root {
  float: left;
  width: 100%;
  height: 100%;
  background-color: white;
  // border: 1px solid gray;

  .ant-select-selection {
    @extend %ant-select-selection;
  }

  .head-root {
    width: 100%;
    height: 50px;
    border-bottom: 1px solid lightgray;

    .head-one {
      @extend %head-one;
    }

    .head-two {
      @extend %head-two;
    }
  }

  .output-control-panel {
    width: 100%;
    height: 36px;

    .output-control-del-btn {
      @extend %control-btn-style;

      &:hover {
        cursor: pointer;
        background-color: red;
      }
    }

    .output-control-cancel-btn {
      @extend %control-btn-style;

      &:hover {
        cursor: pointer;
        background-color: orange;
      }
    }

    .output-control-confirm-btn {
      @extend %control-btn-style;

      &:hover {
        cursor: pointer;
        background-color: green;
      }
    }
  }

  .content-panel {
    padding-top: 1rem;

    .amos-checkbox-group {
      position: relative;
      top: -28px;
      left: 50%;
      width: 50%;
      height: 20px;
      text-align: center;
    }
  }
}


