@use '@style/theme/index.scss' as theme;
@use 'sass:string';
@use '@components/basic-crud-table/style/token.scss' as *;
$basic-crud-table-prefix-cls: string.unquote('#{theme.$prefix}-basic-crud-table');
.#{$basic-crud-table-prefix-cls} {
  display: flex;
  flex-direction: column;
  gap: $basic-crud-table-gap;
  width: 100%;
  min-width: 0;

  &-full-height {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  &-full-height &-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
  }

  &-full-height &-body > .#{theme.$prefix}-table {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
  }

  &-header {
    display: flex;
    flex-direction: column;
    gap: $basic-crud-table-gap;
  }

  &-header-actions {
    display: flex;
    justify-content: flex-end;
  }

  &-title {
    margin: 0;
    color: $basic-crud-table-title-color;
    font-size: $basic-crud-table-title-size;
  }

  &-body {
    width: 100%;
    min-width: 0;
  }
}
