/* stylelint-disable selector-max-type */
@use '@/common/design' as *;
@mixin table {
  margin: auto;
  table-layout: fixed;
  tr {
    td {
      border: 1px solid $border-color-split;
      &.label,
      &:global(.ant-form-item-label) {
        width: 160px;
        padding-bottom: 1px;
        text-align: center;
        background-color: $background-color-light;
        > label {
          display: block;
          padding-right: 20px;
          margin: 0 auto;
          text-align: right;
          white-space: normal;
        }
        > label::after {
          display: none;
        }
      }
      &.wrapper,
      &:global(.ant-form-item-control-wrapper) {
        padding: 0 5px;
        word-break: break-all;
        :global(.ant-row) {
          margin-bottom: 0;
        }
      }
    }
    td:first-child {
      border-left: none;
    }
    td:last-child {
      border-right: none;
    }
  }
}
