@import '~@zgfe/business-lib/es/assets/styles/variable.less';
.create-spl-label {
  .view-rules {
    color: #165dff;
    font-size: 14px;
    line-height: 32px;
    cursor: pointer;
  }
  &-highlight {
    color: @primary-color;
  }
  &-content-wrap {
    margin-top: 10px;
    padding: 24px;
    border: 1px solid #ecedf0;
    border-radius: 8px;
  }
  &-content-wrap-title {
    .tishi {
      margin-left: 8px;
      color: #9aa1a9;
    }
  }
  &-content-title {
    display: flex;
    align-items: center;
    &-txt {
      margin-right: 8px;
      font-weight: 500;
    }
    .bsicon {
      color: #9aa1a9;
      font-size: 16px !important;
      line-height: 1;
      cursor: pointer;
    }
  }
  &-content {
    display: flex;
    margin-top: 16px;
    &-left {
      width: 234px;
      height: 372px;
      margin-right: 16px;
      padding: 8px;
      border: 1px solid #f2f3f4;
      border-radius: 8px;
      .ant-input-prefix {
        margin-right: 12px;
      }
      .ant-tree {
        height: calc(100% - 60px);
        margin-top: 12px;
        overflow: auto;
      }
      .ant-tree-switcher {
        color: #67727f;
      }
      .ant-tree .ant-tree-node-content-wrapper.ant-tree-node-selected {
        background-color: #e8efff;
      }
    }
    &-right {
      flex: 1;
      .ant-input {
        height: 372px;
        border-radius: 4px;
      }
    }
  }

  &-input-search {
    .ant-input-group-addon {
      display: none;
    }
  }
  &-textarea.ant-input {
    &.ant-input-status-error {
      &,
      &:focus {
        border-color: @error-color !important;
      }
    }
  }
}

.sql-example-popup {
  height: 600px;
  overflow-y: auto;
  &::-webkit-scrollbar {
    display: none;
  }
  &-module {
    position: relative;
    z-index: 2;
    .title {
      margin-bottom: 12px;
      color: #021429;
      font-weight: 500;
      font-size: 14px;
      line-height: 20px;
    }
  }
  &-copy {
    display: flex;
    padding: 12px;
    background: #fafafb;
    border-radius: 4px;
    pre {
      flex: 1;
      margin: 0 !important;
      padding: 0 !important;
      background: none !important;
      border: none !important;
    }
    .ant-typography-copy-success {
      &:hover,
      &:focus {
        color: #165dff;
      }
    }
    &-icon {
      display: flex;
      gap: 8px;
      align-items: center;
      height: 24px;
      padding: 0 8px;
      color: @text-color;
      background: #f2f3f4;
      border-radius: 4px;

      &:hover {
        color: @primary-color;
        background: @primary-color-hover;
      }
      span {
        line-height: 1;
      }
    }
  }
}

.sql-example-popup-modal {
  .ant-modal-header {
    position: relative;
    z-index: 1;
    background: transparent;
  }
  .ant-modal-body {
    max-height: 430px;
    padding-top: 0 !important;
    overflow: auto;
  }
  .modal-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
  }
}
