.kts-difference-modal {
  color: rgba(0, 0, 0, 0.85);
  font-size: 14px;

  &-item {
    flex: 1 1 240px;
    min-width: 200px;
    margin-right: 16px;

    &:last-child {
      margin-right: 0;
    }

    .ktsAntX-form-item-label > label {
      color: rgba(0, 0, 0, 0.85);
    }
  }

  &-mode {
    display: flex;
    align-items: center;
    margin: 4px 0 12px;

    &-label {
      margin-right: 12px;
    }

    &-tip {
      margin-left: 12px;
      color: rgba(0, 0, 0, 0.45);
    }
  }

  &-form {
    .ktsAntX-form-item {
      margin-bottom: 12px;
    }
  }

  &-row {
    display: flex;
    flex-wrap: wrap;
  }

  &-cell {
    flex: 1 1 180px;
    min-width: 160px;
    margin-right: 16px;

    &:last-child {
      margin-right: 0;
    }

    &-remark {
      flex: 2 1 260px;
    }
  }

  &-total {
    display: flex;
    justify-content: flex-end;
    margin: 4px 0 8px;

    &-item {
      margin-left: 24px;

      b {
        font-weight: 600;
      }
    }
  }

  &-table {
    /* kts-xui 全局表格样式（padding: 6px 20px; height: 50px; font-size: 12px）特异性更高，这里提高特异性覆盖。
       内边距收窄到 10px，避免列宽较窄时表头文字折行（纳税人识别号等）。 */
    .ktsAntX-table.ktsAntX-table-small > .ktsAntX-table-container > .ktsAntX-table-content > table > .ktsAntX-table-thead > tr > th {
      padding: 0 10px;
      height: 40px;
      background: #fafafa;
      color: rgba(0, 0, 0, 0.85);
      font-size: 14px;
      font-weight: 500;
    }

    .ktsAntX-table.ktsAntX-table-small > .ktsAntX-table-container > .ktsAntX-table-content > table > .ktsAntX-table-tbody > tr > td {
      padding: 0 10px;
      height: 32px;
    }
  }
}

/** 底部按钮区：与 body 内容对齐（body 左右各 20px 内边距） */
.kts-difference-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 0 20px;

  button {
    margin-left: 0;
  }
}
