/*
 * CloudBeaver - Cloud Database Manager
 * Copyright (C) 2020-2024 DBeaver Corp and others
 *
 * Licensed under the Apache License, Version 2.0.
 * you may not use this file except in compliance with the License.
 */
.itemList {
  composes: theme-background-surface from global;
  box-sizing: border-box;
  border-collapse: collapse;
  z-index: 0;
  overflow: auto;
}
.itemListOverflow,
.itemListOverflowTop {
  position: sticky;
  flex-shrink: 0;
  width: 100%;
  height: 8px;
  pointer-events: none;
}
.itemListOverflow {
  composes: branding-overflow from global;
  bottom: 0;
}
.itemListOverflowTop {
  composes: branding-overflow-inverse from global;
  top: 0;
  z-index: 1;
}
.listSearch {
  composes: theme-background-surface theme-text-on-surface theme-typography--body1 from global;
  position: sticky;
  top: 0;
  padding: 16px 24px;
  z-index: 1;
}
.listItem:not(:nth-last-child(2)) {
  border-bottom: 1px solid;
}
.listItem {
  composes: theme-ripple theme-background-surface theme-border-color-secondary from global;
  position: relative;
  cursor: pointer;
  display: flex;
  box-sizing: border-box;
  align-items: center;
  padding: 0 16px;
}
.listItemIcon {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding: 8px;

  & .staticImage {
    box-sizing: border-box;
    width: 24px;
  }
}
.listItemName {
  composes: theme-border-color-secondary theme-typography--body1 from global;
  box-sizing: border-box;
  font-weight: 500;
  min-width: 250px;
  padding: 8px 24px 8px 8px;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  &:not(:last-child) {
    border-right: 1px solid;
  }
}
.listItemDescription {
  composes: theme-typography--body2 from global;
  box-sizing: border-box;
  max-width: 460px;
  padding: 8px 8px 8px 24px;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
