@use 'apps/dashboard/src/variables' as *;

.resource-list {
  position: relative;
  min-height: rhythm(24);
  padding-bottom: 0;
}

.resource-list-header {
  align-items: center;
  background-color: $color-light-stronger;
  margin-top: calc(-1 * #{rhythm(3)});
  padding-bottom: rhythm(0.5);
  padding-top: rhythm(3);
  position: sticky;
  top: 0;
  z-index: 10;

  .filters-container {
    display: flex;
    gap: rhythm(2);
    justify-content: space-between;
    margin-bottom: rhythm(2);
  }

  .filters {
    display: flex;
    gap: rhythm(1.5);
  }

  .active-filters {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: rhythm(1.5);
  }

  .label-filters {
    align-items: center;
    display: flex;
    ::ng-deep .pa-button {
      border-top-right-radius: 0;
      border-bottom-right-radius: 0;
    }
    .labels-logic {
      border: 1px solid $color-neutral-light;
      border-left: 0;
      height: rhythm(5);
      padding: rhythm(1) rhythm(1.5);
    }
  }
  .filtered-by {
    color: $color-neutral-regular;
  }

  .date-filters {
    padding: rhythm(2);

    pa-date-picker {
      display: block;
      margin-bottom: rhythm(1.5);
    }

    .date-filters-buttons {
      display: flex;
      gap: rhythm(1);
      margin-top: rhythm(4);
    }

    pa-button {
      width: 50%;
    }
  }
}

.empty-kb {
  display: flex;
  flex-direction: column;
  gap: rhythm(1.5);
  padding-right: rhythm(12);
  text-align: center;
  stf-upload-button {
    text-align: left;
  }
}

.resource-list-skeleton {
  display: flex;
  flex-direction: column;

  .skeleton-filters {
    display: flex;
    flex-direction: row;
    gap: rhythm(1);
    align-items: center;
    margin-bottom: rhythm(2);
  }

  .skeleton-table-header {
    width: 100%;
    height: 2.5rem;
    margin-bottom: rhythm(1);
  }

  .skeleton-table-rows {
    display: flex;
    flex-direction: column;
    gap: rhythm(0.5);
  }

  .skeleton-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: rhythm(2);
    padding: rhythm(1) 0;
    height: 3rem;
  }

  .skeleton-pagination {
    display: flex;
    justify-content: flex-end;
    margin-top: rhythm(2);
  }
}
