* {
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  zoom: unset !important;
  background-color: transparent;
  &>#root-master {
    height: 100%;
  }
}

input {
  outline: none !important;
}

.ant-notification {
  display: none !important;
}

//overwrite antd-pro css
.kcmp-ant-pro-page-container {
  height: 100%;
  .kcmp-ant-pro-grid-content {
    height: 100%;
    .kcmp-ant-pro-grid-content-children {
      height: 100%;
      .kcmp-ant-pro-page-container-children-content {
        height: 100%;
      }
    }
  }
}
.kcmp-ant-pro-page-container-warp {
  display: none !important;  
}

.kcmp-ant-pro-sider-light {
  border-right: 1px solid #f5f3f3;
}

.kcmp-ant-col-12 {
  max-width: 100%;
}

.kcmp-ant-layout {
  background: #f5f7fa;
}

.kcmp-ant-pro-table-search {
  padding: 16px;
  padding-bottom: 16px;
}

.kcmp-ant-form-item {
  margin-bottom: 16px;
}

/**
      input 
**/
.kcmp-ant-input-affix-wrapper {
  padding: 0px 8px;
  border-radius: 4px;
  border: 1px solid #cfd7e6;

  & > input {
    &::placeholder {
      font-size: 14px;
      font-family: SourceHanSansCN-Normal, SourceHanSansCN;
      font-weight: 400;
      color: #99a6bf;
    }
  }
}

/**
    Form
**/

.kcmp-ant-form-item {
  .kcmp-ant-form-item-label {
    padding: 0;
    //height: 15px;
    line-height: 15px;
    margin-bottom: 5px;

    .kcmp-ant-form-item-required {
      &::before {
        margin-right: 0 !important;
      }
    }
  }

  .kcmp-ant-form-item-control-input {
    // min-height: 24px !important;

    .kcmp-ant-form-item-control-input-content {
      textarea {
        min-height: 24px !important;
        padding: 0 8px !important;
        border-radius: 4px !important;
        // border: 1px solid #cfd7e6;
      }

      .kcmp-ant-input-clear-icon {
        top: 6px !important;
      }

      .kcmp-ant-input {
        //padding-left: 8px;
        &::placeholder {
          color: #99a6bf;
        }
      }
    }
  }
}

/**
    input-number
**/

.kcmp-ant-input-number {
  height: 24px;
  border-radius: 4px;
  border: 1px solid #cfd7e6;

  .kcmp-ant-input-number-handler-wrap {
    .kcmp-ant-input-number-handler {
      border-left: 1px solid #cfd7e6;
    }

    .kcmp-ant-input-number-handler-down {
      border-top: 1px solid #cfd7e6;
    }

    .kcmp-ant-input-number-handler-up-inner,
    .kcmp-ant-input-number-handler-down-inner {
      color: #99a6bf;
    }
  }

  .kcmp-ant-input-number-input-wrap {
    .kcmp-ant-input-number-input {
      height: 22px;
      line-height: 24px;
      padding: 0 8px;

      &::placeholder {
        color: #99a6bf;
      }
    }
  }
}

.kcmp-ant-table-thead > tr > th {
  border-bottom: none;

  &::before {
    display: none;
  }
}

/**
    Select
**/
.kcmp-ant-select {
  .kcmp-ant-select-selector {
    // height: 24px !important;
    // padding: 0 8px !important;
    border-radius: 4px !important;
    border: 1px solid #cfd7e6 !important;

    // .kcmp-ant-select-selection-overflow {
    //   position: relative;
    //   top: -3px;
    // }

    .kcmp-ant-select-selection-item {
      // height: 16px !important;
      // line-height: 16px !important;
      margin-top: 0 !important;
      margin-bottom: 0 !important;
      border: none !important;

      // .kcmp-ant-select-selection-item-content {
      //    font-size: 12px !important;
      // }

      .kcmp-ant-select-selection-item-remove {
        .anticon-close {
          position: relative;
          top: -1px;
        }
      }
    }

    .kcmp-ant-select-selection-search-input {
      height: 24px !important;
    }

    .kcmp-ant-select-selection-placeholder {
      // line-height: 22px !important;
      // font-size: 14px;
      // font-family: SourceHanSansCN-Normal, SourceHanSansCN;
      font-weight: 400;
      color: #99a6bf;
    }
  }

  .kcmp-ant-select-arrow {
    color: #cfd7e6;
  }

  &.kcmp-ant-select-disabled {
    .kcmp-ant-select-selector {
      border: 1px solid #dadee6 !important;

      .kcmp-ant-select-selection-placeholder {
        color: #7a8599;
      }
    }

    .kcmp-ant-select-arrow {
      color: #7a8599;
    }
  }
}

/**
       ModalForm
**/

.kcmp-ant-modal-confirm-body .kcmp-ant-modal-confirm-content {
  margin-top: 16px;

  .kcmp-ant-transfer {
    .kcmp-ant-transfer-list {
      border: 1px solid #dae2f2;
      border-radius: 4px;

      .kcmp-ant-transfer-list-header {
        border-bottom: 1px solid #dae2f2;
      }
    }
  }
}

.kcmp-ant-modal {
  padding-bottom: 0;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;

  .kcmp-ant-modal-content {
    .kcmp-ant-modal-close-x {
      color: #17181a;
    }

    .kcmp-ant-modal-header {
      padding: 16px;
      font-size: 16px;
      font-family: SourceHanSansCN-Medium, SourceHanSansCN;
      font-weight: 500;
      color: #17181a;
      border-bottom: none;
      padding-bottom: 0;
    }

    .kcmp-ant-modal-body {
      padding: 16px;
      padding-left: 16px;
      padding-right: 16px;

      .kcmp-ant-modal-confirm-body-wrapper {
        .kcmp-ant-modal-confirm-btns {
          .kcmp-ant-btn {
            height: 24px;
            line-height: 13px;
            border-radius: 4px;
            padding: 5px 14px;
            font-size: 14px;
            font-family: SourceHanSansCN-Normal, SourceHanSansCN;
            font-weight: 400;
            box-sizing: border-box;
          }
        }
      }
    }

    .kcmp-ant-modal-footer {
      padding: 16px;
      padding-top: 0;
      border-top: none;

      .kcmp-ant-btn {
        height: 24px;
        line-height: 13px;
        border-radius: 4px;
        padding: 5px 14px;
        font-size: 14px;
        font-family: SourceHanSansCN-Normal, SourceHanSansCN;
        font-weight: 400;
        box-sizing: border-box;
      }
    }
  }
}

*::-webkit-scrollbar {
  width: 4px !important;
  height: 10px !important;
  /**/
}

*::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 2px;
}

*::-webkit-scrollbar-thumb {
  background: rgba(228, 231, 235, 0.7) !important;
  border-radius: 10px;
}

*::-webkit-scrollbar-thumb:hover {
  width: 4px;
  height: 4px;
  background: rgba(228, 231, 235, 0.7);
}

*::-webkit-scrollbar-corner {
  background: rgba(228, 231, 235, 0.7);
}

//-----------  Menu左侧菜单

.kcmp-ant-layout-sider {
  flex: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  width: 100% !important;
  border-right: none !important;
  box-shadow: none !important;

  &.kcmp-ant-layout-sider-collapsed {
    width: 60px !important;
    flex: 0 0 60px !important;
    max-width: 60px !important;
    min-width: 60px !important;
  }
}

//--------------------

//Transfer

.kcmp-ant-modal-body {
  .TableTransfer {
    .kcmp-ant-transfer-operation {
      align-self: self-end;
      margin-bottom: 30px;

      button {
        //color: #17181A;
        width: 24px;
        height: 40px !important;
        // background: #FAFCFF;
        border-radius: 4px;
        border: 1px solid #dae2f2;
      }
    }

    .kcmp-ant-transfer-list-header {
      .anticon {
        color: #99a6bf;
      }

      .kcmp-ant-transfer-list-header-selected {
        color: #515866;
      }
    }

    .kcmp-ant-transfer-list-body {
      .kcmp-ant-transfer-list-body-search-wrapper {
        padding: 8px;

        .kcmp-ant-input-prefix {
          .anticon-search {
            color: #99a6bf;
          }
        }
      }
    }

    .kcmp-ant-table {
      .kcmp-ant-table-container {
        .kcmp-ant-table-content {
          .kcmp-ant-table-thead {
            & > tr > th {
              font-size: 14px;
              font-family: SourceHanSansCN-Medium, SourceHanSansCN;
              font-weight: 500;
              color: #17181a;
              background: #eef3fa;
              padding: 4px 8px !important;
            }
          }
        }
      }
    }
  }
}

//checkbox

.kcmp-ant-checkbox {
  .kcmp-ant-checkbox-inner {
    border: 1px solid #dae2f2;
    border-radius: 4px;
  }
}

.kcmp-ant-checkbox + span {
  padding-left: 4px;
  padding-right: 4px;
}

//drawer

.kcmp-ant-drawer-body {
  padding: 16px;
}

//Picker

.kcmp-ant-picker {
  padding: 0px 11px !important;
  border-radius: 4px;
  border: 1px solid #cfd7e6;

  .kcmp-ant-picker-input {
    input {
      &::placeholder {
        color: #99a6bf;
      }
    }
  }

  .kcmp-ant-picker-suffix {
    color: #99a6bf;
  }
}

/**
   Layout
**/

.kcmp-ant-pro-sider {
  .bms-ant-layout-sider-children {
    padding-inline: 8px;
  }

  .kcmp-ant-pro-sider-collapsed-button {
    border-top: 1px solid transparent;
  }
}

.kcmp-ant-pro-sider-collapsed-button .anticon {
  display: inline-block;
  font-size: 24px !important;
}

.kcmp-ant-layout-header {
  z-index: 200 !important;
}
