/*
 * 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: 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.
*/
:host {
  --ix-button-border-radius-left: var(--theme-btn--border-radius);
  --ix-button-border-radius-right: var(--theme-btn--border-radius);
  display: inline-block;
  height: 2rem;
  vertical-align: middle;
  cursor: pointer;
  font-family: Siemens Sans, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.429em;
  color: var(--theme-color-std-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smooting: grayscale;
}
: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 button,
:host a {
  all: unset;
  box-sizing: border-box;
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0 0.5rem;
}
:host ix-spinner {
  margin-right: 0.25rem;
}
:host .content {
  display: inline-block;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
:host .content-start {
  width: 100%;
}
:host .icon {
  pointer-events: none;
  margin-right: 0.25rem;
}
:host .icon-right {
  margin-left: 0.25rem;
}

:host(.disabled) {
  cursor: default;
}

:host .btn-subtle-tertiary {
  border-top-left-radius: var(--ix-button-border-radius-left);
  border-bottom-left-radius: var(--ix-button-border-radius-left);
  border-top-right-radius: var(--ix-button-border-radius-right);
  border-bottom-right-radius: var(--ix-button-border-radius-right);
}
:host .btn-subtle-tertiary, :host .btn-subtle-tertiary.focus, :host .btn-subtle-tertiary:focus-visible {
  background-color: var(--theme-btn-subtle-tertiary--background);
  color: var(--theme-btn-subtle-tertiary--color);
  --ix-button-color: var(--theme-btn-subtle-tertiary--color);
  border-width: var(--theme-btn--border-thickness);
  border-color: var(--theme-btn-subtle-tertiary--border-color);
  border-style: solid;
}
:host .btn-subtle-tertiary:not(.disabled):not(:disabled):focus-visible {
  outline: 1px solid var(--theme-color-focus-bdr);
  outline-offset: var(--theme-btn--focus--outline-offset);
}
:host .btn-subtle-tertiary.selected {
  background-color: var(--theme-btn-subtle-tertiary--background--pressed);
  color: var(--theme-btn-subtle-tertiary--color--pressed);
}
:host .btn-subtle-tertiary.selected:not(.disabled):not(:disabled) {
  cursor: pointer;
}
:host .btn-subtle-tertiary.selected:not(.disabled):not(:disabled):hover, :host .btn-subtle-tertiary.selected:not(.disabled):not(:disabled).hover {
  background-color: var(--theme-btn-subtle-tertiary--background--pressed-hover);
  color: var(--theme-btn-subtle-tertiary--color--pressed-hover);
}
:host .btn-subtle-tertiary.selected:not(.disabled):not(:disabled) {
  cursor: pointer;
}
:host .btn-subtle-tertiary.selected:not(.disabled):not(:disabled):active, :host .btn-subtle-tertiary.selected:not(.disabled):not(:disabled).active {
  background-color: var(--theme-btn-subtle-tertiary--background--pressed-hover);
  color: var(--theme-btn-subtle-tertiary--color--pressed-active);
}
:host .btn-subtle-tertiary:not(.disabled):not(:disabled) {
  cursor: pointer;
}
:host .btn-subtle-tertiary:not(.disabled):not(:disabled):hover, :host .btn-subtle-tertiary:not(.disabled):not(:disabled).hover {
  border-color: var(--theme-btn-subtle-tertiary--border-color--hover);
  background-color: var(--theme-btn-subtle-tertiary--background--hover);
  color: var(--theme-btn-subtle-tertiary--color--hover);
}
:host .btn-subtle-tertiary:not(.disabled):not(:disabled) {
  cursor: pointer;
}
:host .btn-subtle-tertiary:not(.disabled):not(:disabled):active, :host .btn-subtle-tertiary:not(.disabled):not(:disabled).active {
  border-color: var(--theme-btn-subtle-tertiary--border-color--active);
  background-color: var(--theme-btn-subtle-tertiary--background--active);
  color: var(--theme-btn-subtle-tertiary--color--active);
}

:host(.disabled) {
  pointer-events: none;
}
:host(.disabled) .btn-subtle-tertiary.disabled, :host(.disabled) .btn-subtle-tertiary:disabled {
  pointer-events: none;
  border-color: var(--theme-btn-subtle-tertiary--border-color--disabled);
  background-color: var(--theme-btn-subtle-tertiary--background--disabled);
  color: var(--theme-btn-subtle-tertiary--color--disabled);
  opacity: 1;
  --ix-button-color: var(--theme-btn-subtle-tertiary--color--disabled);
}

:host {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 2rem;
  width: 2rem;
  border-radius: var(--theme-btn--border-radius);
  pointer-events: all;
}
: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 svg {
  display: inline-block;
  vertical-align: middle;
}
:host .line {
  fill: var(--theme-menu-btn--color);
  opacity: 1;
  x: 2px;
  transition: x 0.075s ease-in var(--theme-default-time), transform 0.075s ease-in-out 0.075s, y 0.075s ease-in-out, opacity 0.075s linear 0.075s;
  transform-origin: center;
}

:host(:not(.disabled):not(:disabled)) {
  cursor: pointer;
}

:host(:hover:not(.disabled):not(:disabled)) .menu-expand-button {
  background-color: var(--theme-menu-btn--background--hover);
}

.menu-expand-button {
  width: 2rem;
  padding: 0px !important;
  cursor: pointer;
}

:host(:not(.disabled):not(:disabled)) {
  cursor: pointer;
}

:host(:active:not(.disabled):not(:disabled)) .menu-expand-button {
  background-color: var(--theme-menu-btn--background--active);
}

:host(.expanded) svg .line-1 {
  opacity: 1;
  transform: rotate(-45deg);
  y: 11px;
}
:host(.expanded) svg .line-2 {
  opacity: 0;
  x: 9;
}
:host(.expanded) svg .line-3 {
  opacity: 1;
  transform: rotate(45deg);
  y: 11px;
}