.metadata-table-popover {
  min-width: 200px;
  &.ant-popover {
    .ant-popover-content {
      max-width: 600px;
    }
    .ant-popover-inner-content {
      width: 100%;
      padding: 8px;
      .ant-table-thead > tr > th,
      .ant-table-tbody > tr > td,
      .ant-table tfoot > tr > th,
      .ant-table tfoot > tr > td {
        padding: 8px 16px;
      }
      .ant-table table {
        width: auto;
        min-width: 200px;
        .ant-table-cell {
          white-space: break-spaces;
          word-break: normal;
        }
      }
      .ant-table-cell-scrollbar:not([rowspan]) {
        padding: 0;
      }
    }
  }
}

.hc-metadata-more {
  width: 24px;
  height: 24px;
  overflow: hidden;
  font-size: 18px;
  line-height: 20px;
  text-align: center;
  border-radius: 4px;
  cursor: pointer;
  &:focus,
  &:hover {
    background: #f5f5f5;
  }
  &.ant-popover-open,
  &:active {
    color: #2869f6;
    background: rgba(40, 105, 246, 0.1);
  }
}

.hc-metadata-count {
  &.ant-btn {
    padding: 1.6px 3px;
    & > span {
      position: relative;
      display: block;
      min-width: 16px;
      color: rgba(0, 0, 0, 0.65);
      text-align: center;
      &::after {
        position: absolute;
        bottom: -6px;
        left: 0;
        display: block;
        width: 100%;
        color: rgba(0, 0, 0, 0.65);
        font-weight: bolder;
        font-size: 14px;
        text-align: center;
        content: '...';
      }
    }
  }
}
