// Zeplin screen: https://zpl.io/2GPjdzE
@use '@carbon/colors';
@use '@carbon/layout';
@use '@carbon/type';

.container {
  height: 100%;
  background-color: colors.$white-0;
}

.skeletonContainer {
  @extend .container;
  margin: layout.$spacing-05;
}

.dataTableSkeleton {
  background-color: transparent;
  padding: 0;
}

.tableContainer {
  padding: 0;

  :global(.cds--data-table-content) {
    border-bottom: none;
    overflow: visible;
  }

  :global(.cds--table-toolbar) {
    position: relative;
    height: layout.$spacing-07;
    min-height: 0;
    overflow: visible;
    top: 0;
  }

  &:global(.cds--data-table-container) {
    padding-top: 0;
  }
}

.toolbarWrapper {
  position: relative;
  display: flex;
  height: layout.$spacing-09;
  justify-content: flex-end;
}

.tableToolbar {
  width: 20%;
  min-width: 12.5rem;
}

.search {
  input {
    background-color: colors.$gray-10 !important;
    padding: 0 layout.$spacing-10 !important;
  }

  :global(.cds--search-close:focus) {
    outline: none;
    outline-offset: 0;
  }

  :global(.cds--search-close:focus:before) {
    background-color: none;
  }
}

.table tr:last-of-type {
  td {
    border-bottom: none;
  }
}

.link {
  cursor: pointer;
  text-decoration: none !important;
}

.content {
  @include type.type-style('heading-compact-02');
  color: colors.$gray-70;
  margin-bottom: layout.$spacing-03;
}

.tileContainer {
  background-color: colors.$white-0;
  border-top: 1px solid colors.$gray-70;
  padding: layout.$spacing-10 0;
}

.tile {
  margin: auto;
  width: fit-content;
}

.tileContent {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.emptyStateContainer {
  @extend .container;
  background-color: #ededed;
}

.emptyStateTile {
  padding: layout.$spacing-06 0;
  text-align: center;
}

.emptyStateContent {
  @extend .content;
  @include type.type-style('heading-compact-01');
  color: colors.$gray-70;
  margin-top: layout.$spacing-05;
  margin-bottom: layout.$spacing-03;
}
