$list-header-height: 96px;

.sc-card--doc-categories {
  height: calc(100% - 24px);

  .sc-card-content,
  .mat-tab-group,
  .mat-tab-body-wrapper,
  .mat-tab-body,
  .mat-tab-body-content {
    height: 100% !important;
  }
}

.fab-mr {
  margin-right: $grid-gap !important;
}

.text--truncate {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.l-doc-categories {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: $list-header-height minmax(0, 1fr) minmax(0, 2fr);
  height: 100%;

  &__list-header {
    grid-row: 1 / 2;
    padding: 0 $grid-gap;
    display: flex;
    align-items: center;
  }

  &__list {
    padding: 0;
    grid-row: 2 / 3;
    height: 100%;
    overflow-y: auto;
  }

  &__doc {
    grid-row: 3 / 4;
    padding: 0;
    border-top: 1px solid;
    height: 100%;
    overflow: auto;
  }

  .items_loaded.repeater__content::after {
   height: 0;
  }

  @media screen and (min-width: 600px) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: $list-header-height minmax(0, 1fr);
    height: 100%;

    &__list-header {
      grid-row: 1 / 2;
    }

    &__list {
      padding: 0;
      grid-row: 2 / 3;
      overflow-y: auto;
    }

    &__doc {
      grid-row: 1 / 3;
      padding: 0;
      border-left: 1px solid;
      border-top: none;
    }
  }

  @media screen and (min-width: 1280px) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  }
}

.loader-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}