/* Search Control - Modern Theme */
.searchControl .searchControlTextBox {
  border-left: 1px solid var(--cds-border-subtle-00);
  border-top: 1px solid var(--cds-border-subtle-00);
  border-bottom: 1px solid var(--cds-border-subtle-00);
  border-right: 0; /* inner seam */
  background-color: white;
  border-top-left-radius: 25px;
  border-bottom-left-radius: 25px;
  padding-left: 10px;
}

.searchControl .searchControlButton {
  border-right: 1px solid var(--cds-border-subtle-00);
  border-top: 1px solid var(--cds-border-subtle-00);
  border-bottom: 1px solid var(--cds-border-subtle-00);
  border-left: 0; /* inner seam */
  background-color: white;
  border-top-right-radius: 25px;
  border-bottom-right-radius: 25px;
}

/* Hover ANYWHERE inside the search control */
.searchControl:hover .searchControlTextBox {
  border-left-color: var(--cds-text-helper);
  border-top-color: var(--cds-text-helper);
  border-bottom-color: var(--cds-text-helper);
  /* DO NOT touch border-right */
  background-color: var(--cds-grey-10);
}

.searchControl:hover .searchControlButton {
  border-right-color: var(--cds-text-helper);
  border-top-color: var(--cds-text-helper);
  border-bottom-color: var(--cds-text-helper);
  /* DO NOT touch border-left */
  background-color: var(--cds-grey-10);
  cursor: pointer;
}

/* groupedListPanelItem, listPanelItem modern theme */
.groupedListPanelItem,
.listPanelItem {
  border: 1px solid var(--cds-border-subtle-00);
  border-radius: 8px;
}

.groupedListPanelItem.groupedListPanelChildItem {
  border: none;
}

.groupedListPanel .groupedListPanelItem.groupedListPanelChildItem:hover,
.listPanel .listPanelItem:hover,
.listPanel .listPanelItem.listPanelItemActive,
.groupedListPanel
  .groupedListPanelItem.groupedListPanelChildItem.groupedListPanelChildItemActive {
  background-color: var(--cds-blue-10);
  color: var(--cds-text-primary, #161616);
}

/* Floating header bar - max-width uses calc() which GWT CssResource can't parse */
.floatingHeader {
  max-width: calc(100vw - 670px);
}

/* Error message - C1 tag style */
.errorMessage {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;
  border-radius: 4px;
  color: var(--cds-tag-color-red);
  background: var(--cds-tag-background-red);
  border: 1px solid var(--cds-tag-border-red);
}

.errorMessage::before {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-color: var(--cds-tag-color-red);
  -webkit-mask-image: url('Concrete_Assets/Icons/_20x20/error.svg');
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-image: url('Concrete_Assets/Icons/_20x20/error.svg');
  mask-size: contain;
  mask-repeat: no-repeat;
}
