.pro-select-ellipse {
  display: block;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  word-break: keep-all;
}
.pro-select {
  width: 100%;

  // 仅在弹层打开时提升到相邻字段之上；表格内部固定列由表格自身隔离。
  &.pro-select-popup-open {
    position: relative;
    z-index: 4;
  }

  // antd 6 的搜索输入层会覆盖已选标签，收起时让 hover 落到 Tooltip 触发节点。
  &.pro-select-tooltip:not(.pro-select-popup-open) {
    .ant-select-content-has-value > .ant-select-input {
      pointer-events: none;
    }
  }

  > .ant-select {
    width: 100%;
  }

  // 更多项数量样式
  .pro-select-more-count {
    color: var(--zaui-primary, #006aff);
    font-weight: bold;
  }
}

// scrollFollowParent 会让弹层受祖先堆叠上下文约束，需要同步提升嵌套 Form.Item。
.ant-form-item:has(.pro-select-popup-open) {
  position: relative;
  z-index: 4 !important;
}
