/*
 * SPDX-FileCopyrightText: 2023 Siemens AG
 *
 * SPDX-License-Identifier: MIT
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */
/*
* SPDX-FileCopyrightText: 2024 Siemens AG
*
* SPDX-License-Identifier: MIT
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/* Dimensions */
/* Font sizes */
/* Line heights */
/*
 * SPDX-FileCopyrightText: 2023 Siemens AG
 *
 * SPDX-License-Identifier: MIT
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */
/*
* SPDX-FileCopyrightText: 2024 Siemens AG
*
* SPDX-License-Identifier: MIT
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/*
* SPDX-FileCopyrightText: 2024 Siemens AG
*
* SPDX-License-Identifier: MIT
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/*
* SPDX-FileCopyrightText: 2024 Siemens AG
*
* SPDX-License-Identifier: MIT
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/*
* SPDX-FileCopyrightText: 2024 Siemens AG
*
* SPDX-License-Identifier: MIT
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/*
* SPDX-FileCopyrightText: 2024 Siemens AG
*
* SPDX-License-Identifier: MIT
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/*
* SPDX-FileCopyrightText: 2024 Siemens AG
*
* SPDX-License-Identifier: MIT
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/*
* SPDX-FileCopyrightText: 2024 Siemens AG
*
* SPDX-License-Identifier: MIT
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
:host {
  display: inline-block;
  position: relative;
  min-height: 2rem;
  height: auto;
  border-radius: var(--theme-input--border-radius);
}
:host *,
:host *::after,
:host *::before {
  box-sizing: border-box;
}
:host ::-webkit-scrollbar-button {
  display: none;
}
@-moz-document url-prefix() {
  :host * {
    scrollbar-color: var(--theme-scrollbar-thumb--background) var(--theme-scrollbar-track--background);
    scrollbar-width: thin;
  }
}
:host {
  /* width */
}
:host ::-webkit-scrollbar {
  width: 0.5rem;
  height: 0.5rem;
}
:host {
  /* Track */
}
:host ::-webkit-scrollbar-track {
  border-radius: 5px;
  background: var(--theme-scrollbar-track--background);
}
:host ::-webkit-scrollbar-track:hover {
  background: var(--theme-scrollbar-track--background--hover);
}
:host {
  /* Handle */
}
:host ::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background: var(--theme-scrollbar-thumb--background);
}
:host {
  /* Handle on hover */
}
:host ::-webkit-scrollbar-thumb:hover {
  background: var(--theme-scrollbar-thumb--background--hover);
}
:host ::-webkit-scrollbar-corner {
  display: none;
}
:host .display-none {
  display: none;
}
:host .select {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  background-color: var(--theme-input--background);
  border: var(--theme-input--border-thickness) solid var(--theme-input--border-color);
  border-radius: var(--theme-input--border-radius);
  padding: 0 0 0 0.5rem;
  box-shadow: var(--theme-inset-shadow-1) !important;
}
:host .select:hover:not(.readonly):not(.disabled) {
  background-color: var(--theme-input--background--hover);
  border-color: var(--theme-input--border-color--hover);
}
:host .select:focus-within {
  background-color: var(--theme-input--background--focus);
  border-color: var(--theme-input--border-color--focus);
  outline: 1px solid #119fff;
  outline-offset: var(--theme-input--focus--outline-offset);
}
:host .select.readonly,
:host .select.disabled {
  box-shadow: none !important;
}
:host .select.readonly, :host .select.readonly:hover, :host .select.readonly:active,
:host .select.disabled,
:host .select.disabled:hover,
:host .select.disabled:active {
  background-color: transparent !important;
}
:host .select.readonly:focus, :host .select.readonly:focus-within, :host .select.readonly:focus-visible,
:host .select.disabled:focus,
:host .select.disabled:focus-within,
:host .select.disabled:focus-visible {
  outline: none;
}
:host .select.readonly input:focus,
:host .select.readonly input:focus-visible,
:host .select.disabled input:focus,
:host .select.disabled input:focus-visible {
  outline: none;
}
:host .select.disabled {
  border: var(--theme-input--border-thickness) solid var(--theme-input--border-color--disabled);
}
:host .select.disabled input {
  color: var(--theme-input--color--disabled);
}
:host .select.readonly {
  border: var(--theme-input--border-thickness) solid var(--theme-input--border-color--readonly);
}
:host .select.readonly input {
  color: var(--theme-input--color--readonly);
}
:host .hidden {
  display: none !important;
}
:host .trigger {
  display: flex;
  align-items: center;
  flex-grow: 1;
  height: 100%;
}
:host .input-container {
  display: flex;
  position: relative;
  align-items: flex-start;
  width: 100%;
  height: 100%;
}
:host .input-container .chips {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  height: 100%;
  max-height: 3.5rem;
  flex-grow: 1;
  overflow-y: auto;
}
:host .input-container .chips > ix-filter-chip {
  margin: 0.1rem;
}
:host .input-container ix-icon-button {
  height: 1.875rem;
  width: 1.875rem;
  min-height: 1.875rem;
  min-width: 1.875rem;
}
:host .input-container input {
  background: transparent;
  height: 1.75rem;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: Siemens Sans, sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.429em;
  color: var(--theme-color-std-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smooting: grayscale;
}
:host .input-container input, :host .input-container input:hover, :host .input-container input:focus-visible {
  border: none;
  outline: none;
}
:host .input-container input::-moz-placeholder {
  color: var(--theme-input-select-icon--color);
}
:host .input-container input::placeholder {
  color: var(--theme-input-select-icon--color);
}
:host .input-container input.hide-placeholder::-moz-placeholder {
  opacity: 0;
}
:host .input-container input.hide-placeholder::placeholder {
  opacity: 0;
}
:host ix-dropdown {
  max-width: 100%;
}
:host .dropdown-visible {
  --ix-icon-button-color: var(--theme-color-std-text--hover);
}
:host .add-item {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  width: 100%;
}
:host .select-list-header {
  display: flex;
  align-items: center;
  height: 2rem;
  color: var(--theme-select-list-item-hint--color);
  margin: 0 0.5rem 0 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:host(.ix-info:not(.disabled):not(:disabled):not([disabled]):not(.readonly):not([readonly])) .select {
  border-color: var(--theme-input--border-color--info);
}
:host(.ix-info:not(.disabled):not(:disabled):not([disabled]):not(.readonly):not([readonly])) .select:hover {
  border-color: var(--theme-input--border-color--info--hover) !important;
}
:host(.ix-info:not(.disabled):not(:disabled):not([disabled]):not(.readonly):not([readonly])) .select:active {
  border-color: var(--theme-input--border-color--info--active) !important;
}

:host(.ix-warning:not(.disabled):not(:disabled):not([disabled]):not(.readonly):not([readonly])) .select {
  border-color: var(--theme-input--border-color--warning);
}
:host(.ix-warning:not(.disabled):not(:disabled):not([disabled]):not(.readonly):not([readonly])) .select:hover {
  border-color: var(--theme-input--border-color--warning--hover) !important;
}
:host(.ix-warning:not(.disabled):not(:disabled):not([disabled]):not(.readonly):not([readonly])) .select:active {
  border-color: var(--theme-input--border-color--warning--active) !important;
}

:host([class*=ix-invalid]:not(.disabled):not(:disabled):not([disabled]):not(.readonly):not([readonly])) .select,
:host(.ix-invalid--required:not(.disabled):not(:disabled):not([disabled]):not(.readonly):not([readonly])) .select {
  border-color: var(--theme-input--border-color--invalid);
  background-color: var(--theme-input--background--invalid);
  box-shadow: none;
}
:host([class*=ix-invalid]:not(.disabled):not(:disabled):not([disabled]):not(.readonly):not([readonly])) .select:hover,
:host(.ix-invalid--required:not(.disabled):not(:disabled):not([disabled]):not(.readonly):not([readonly])) .select:hover {
  border-color: var(--theme-input--border-color--invalid--hover) !important;
}
:host([class*=ix-invalid]:not(.disabled):not(:disabled):not([disabled]):not(.readonly):not([readonly])) .select:active,
:host(.ix-invalid--required:not(.disabled):not(:disabled):not([disabled]):not(.readonly):not([readonly])) .select:active {
  border-color: var(--theme-input--border-color--invalid--active) !important;
}