/*@container queries*/
/* hiChar styles
Found on /common/helpers.tsx hiChar function is used to add a span/class to every character that matches a search value. It is used to help the user see why the filter results are filtered. The span/class on the characters are useless without proper styling.
*/
button.button-secondary {
  border-color: var(--color-border-neutral-default);
}

.custom-icon-text-wrapper {
  display: flex;
  align-items: center;
  gap: var(--spacing-gap-m);
}

.warning-error-description {
  display: flex;
  align-items: center;
  gap: var(--spacing-gap-m);
  padding: var(--spacing-padding-m);
  max-inline-size: 800px;
  line-height: var(--line-height-spacious);
}

.warning-error-icon {
  flex-shrink: 0;
}

:host {
  display: grid;
  block-size: 100%;
  grid-template-rows: max-content max-content 1fr max-content;
  row-gap: var(--spacing-gap-xl);
  overflow: auto;
}

:host(.new-connection) {
  grid-template-rows: max-content 1fr;
}

:host(.recently-used-empty) {
  grid-template-rows: max-content 1fr;
}

.section {
  display: contents;
}

ch-tabular-grid.tabular-grid {
  border-radius: 4px;
  overflow: hidden;
  overflow: auto;
  border: 1px solid var(--color-border-surface-on-elevation-1);
}

ch-tabular-grid-rowset-empty {
  position: relative;
  border-block-end: 1px solid var(--grid-cell-border-color);
  overflow: hidden;
  min-block-size: 200px;
}

.tabular-grid ch-tabular-grid-cell:is(:nth-child(2), :nth-child(3), :nth-child(4)) {
  align-items: start;
  justify-content: start;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-inline-size: 0;
}
.text-neutral-gray-400,
.tabular-grid-cell.text-neutral-gray-400 {
  color: var(--color-text-neutral-disabled);
}

.search-server {
  inline-size: 50%;
}

.tabular-grid {
  overflow: auto;
  border-block: 1px solid var(--grid-cell-border-color);
}

.tabular-grid-all-servers .tabular-grid-column:first-child::part(bar) {
  --grid-common__gap: 0;
}

.field-block-all-servers {
  overflow: auto;
}

.tabular-grid-wrapper {
  position: relative;
  overflow: auto;
}

.border-patch {
  --tabular-grid-border-radius: 4px;
  position: absolute;
  inset-block-start: 0;
  inline-size: calc(100% - var(--tabular-grid-border-radius) * 2);
  inset-inline-start: var(--tabular-grid-border-radius);
  block-size: 2px;
  background-color: var(--items-container__bg-color);
  z-index: 9999;
  border-block-start: 1px solid var(--color-border-surface-on-surface);
}

.tooltip {
  position: absolute;
}

.recently-used-card {
  border: 1px solid var(--color-border-surface-on-elevation-1);
  border-radius: 4px;
  cursor: pointer;
}
.recently-used-card:hover {
  background-color: var(--color-accent-item-hover);
}
.recently-used-card:focus-visible {
  outline: var(--focus-outline-width) solid var(--color-border-primary-focused);
  outline-offset: calc(2px * -1);
}
.recently-used-card--selected {
  background-color: var(--color-accent-neutral-contrast);
  border-color: var(--color-border-item-pressed);
}

.recently-used-card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: var(--spacing-padding-m);
  gap: var(--spacing-gap-xxs);
  overflow: hidden;
}
.recently-used-card-content .text-decoration-line-underline {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-decoration: underline;
}

.delete-server-icon {
  margin-inline: calc((30.39px - var(--ch-image-size)) / 2);
}

.tabular-grid ch-tabular-grid-cell:is(:nth-child(5)) {
  --control-border-width: 0;
  --control-border-color: transparent;
  --control-border-radius: 0;
  padding-block: 0;
  padding-inline: 0;
  --control-padding-inline: var(--spacing-padding-l);
  --control-padding-block: 6.5px;
  display: grid;
  align-items: stretch;
  justify-content: stretch;
  min-inline-size: 0;
}
.tabular-grid ch-tabular-grid-cell:is(:nth-child(5)):hover {
  outline: 1px solid var(--color-border-primary-focused);
  outline-offset: calc(var(--size-2) * -1);
}