.ant-space-compact {
  .ant-form-item {
    &-row,
    &-row .ant-form-item-control-input,
    &-row .ant-form-item-control-input-content,
    &-row .ant-form-item-control-input-content .ant-input-number,
    &-row .ant-form-item-control-input-content .ant-input-number .ant-input-number-input-wrap,
    &-row .ant-form-item-control-input-content input, {
      height: 100%;
    }

    &.ant-form-item-has-error {
      .sp-trigger-container {
        border-color: #ff7875;
        z-index: 2;
      }
    }

    $radius: 6px;

    .sp-trigger-container,
    .ant-select-selector,
    input,
    textarea, {
      border-radius: 0;
      margin-left: -1px;
      margin-right: -1px;

      &:focus, &:active, &:hover {
        z-index: 2;
      }
    }

    &:first-of-type {
      .sp-trigger-container,
      .ant-select-selector,
      input,
      textarea, {
        margin-left: 0;
        border-top-left-radius: $radius;
        border-bottom-left-radius: $radius;
      }
    }

    &:last-of-type {
      .sp-trigger-container,
      .ant-select-selector,
      input,
      textarea, {
        margin-right: 0;
        border-top-right-radius: $radius;
        border-bottom-right-radius: $radius;
      }
    }

  }
}

.space-container {
  > * {
    margin: 0 4px;

    &:first-of-type {
      margin-left: 0;
    }

    &:last-of-type {
      margin-right: 0;
    }
  }
}

.ant-image-preview-operations {
  background-color: rgba(0, 0, 0, 0.5) !important;
}

.ant-descriptions-item-label {
  align-items: center !important;
}

.ant-image {
  img.ant-image-img {
    object-fit: cover;
  }
}

/* 设置滚动条的样式 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

/* 滚动槽 */
::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

/* 滚动条滑块 */
::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background: #bbb;
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.25);
}

/* 非激活窗口 */
::-webkit-scrollbar-thumb:window-inactive {
  background: rgba(87, 87, 87, 0.4);
}
