@import "../../style/themes/default";
@import "../../style/mixins/index";

@layout-prefix-cls: ~"@{mkui-prefix}-flex-table";
.@{layout-prefix-cls} {
      height: 100%;
      .@{mkui-prefix}-table-wrapper {
        height: 100%;
        .@{mkui-prefix}-spin-nested-loading {
          height: 100%;
          .@{mkui-prefix}-spin-container {
            display: flex;
            flex-direction: column;
            height: 100%;
            .@{mkui-prefix}-table {
              flex-grow: 1;
              overflow: auto;
              border-bottom: 1px solid @border-color-split;
              .@{mkui-prefix}-table-content {
                height: 100%;
                .@{mkui-prefix}-table-scroll {
                  display: flex;
                  flex-direction: column;
                  height: 100%;
                  .@{mkui-prefix}-table-header {
                    flex-shrink: 0;
                  }
                  .@{mkui-prefix}-table-body {
                    flex-grow: 1;
                    max-height: none !important;
                  }
                }
              }
              &.@{mkui-prefix}-table-empty {
                .@{mkui-prefix}-table-body {
                  display: none;
                }
                .@{mkui-prefix}-table-placeholder {
                  height: 100%;
                  display: flex;
                  align-items: center;
                  justify-content: center;
                }
              }
            }
            .@{mkui-prefix}-pagination {
              text-align: right;
            }
          }
        }
      }
}
