.fetch-setter {
  padding: 8px;

  .param-list,
  .header-list {
    margin-bottom: 8px;
  }

  .param-item,
  .header-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px !important;

    .separator {
      margin: 0 8px;
    }

    .remove-btn {
      margin-left: 8px;
    }
  }

  .add-btn {
    margin-top: 4px;
  }

  .header-actions {
    display: flex;
    align-items: center;
  }
}

.fetch-panel-fields {
  width: 220px;
  margin-right: 10px;
  background-color: #fff;
  border: 1px solid #f2f2f2;
  border-radius: 8px;
  .fetch-panel-content {
    overflow-y: auto;
    max-height: 300px;
  }
  .fetch-search {
    width: 100% !important;
    padding: 8px;
  }
  &-item {
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
    color: #333;
    padding: 0 6px 0 18px;
    display: block;
    height: 32px;
    font-size: 12px;
    line-height: 32px;
    cursor: pointer;

    &:hover {
      background: rgba(126, 134, 142, 0.08);
    }

    &-capsule {
      position: absolute;
      top: 4px;
      right: 8px;
      bottom: 4px;
      text-align: center;
      padding: 0 8px;
      line-height: 24px;
      border-radius: 4px;

      &.style-yellow {
        color: #ff9200;
        background: #fff8eb;
      }
    }
  }
}

.fetch-panel-func-item {
  position: relative;

  color: #333;
  padding: 0 5px 0 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 32px;
  font-size: 12px;
  line-height: 32px;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;

  &:hover {
    background: rgba(126, 134, 142, 0.08);
  }

  &-capsule {
    position: absolute;
    top: 4px;
    right: 8px;
    bottom: 4px;
    text-align: center;
    padding: 0 8px;
    line-height: 24px;
    height: 24px;
    border-radius: 4px;
  }

  &-label {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    margin-right: 40px;
  }
}

.style-yellow {
  color: #ff9200;
  background: #fff8eb;
}

.style-blue {
  color: #0089ff;
  background: #ebf6ff;
}

.style-green {
  color: #00b853;
  background: #ebfaf2;
}

.cmeditor-container {
  .cm-editor {
    height: 60px;
    border: 1px solid #f2f2f2;
  }
}
