/*
 * 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: 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 {
  position: relative;
  display: block;
  cursor: pointer;
  height: var(--ix-menu-item-height, 3rem);
  min-height: var(--ix-menu-item-height, 3rem);
  max-height: var(--ix-menu-item-height, 3rem);
}
:host .tab {
  all: unset;
  box-sizing: border-box;
  display: flex;
  position: relative;
  align-items: center;
  height: var(--ix-menu-item-height, 3rem);
  width: 100%;
  z-index: 500;
  padding-left: 0.875rem;
}
:host .tab:not(.disabled):not(:disabled).hover, :host .tab:not(.disabled):not(:disabled):hover {
  background-color: var(--theme-ghost--background--hover);
}
:host .tab:not(.disabled):not(:disabled).active, :host .tab:not(.disabled):not(:disabled):active {
  background-color: var(--theme-ghost--background--active);
}
:host .tab-icon {
  color: var(--theme-nav-item-primary-icon--color);
  position: relative;
  pointer-events: none;
}
:host .tab:focus-visible {
  outline: 1px solid var(--theme-color-focus-bdr);
  outline-offset: -1px;
}
:host .notification {
  display: inline-flex;
  position: absolute;
  top: 0.25rem;
  left: 1.5rem;
}
:host .notification .pill {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 0.5rem;
  min-width: 1rem;
  position: relative;
  border-radius: 6.25rem;
  background-color: var(--theme-color-primary);
  font-size: 0.75rem;
  font-weight: bold;
  line-height: 1;
  font-family: Siemens Sans, Arial, sans-serif;
  color: var(--theme-color-primary--contrast);
  padding: 0.25rem;
}
:host .tab-text {
  display: block;
  color: var(--theme-nav-item-primary--color);
  margin: 0 1rem 0 1.25rem;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:host(.active) .tab,
:host(.selected) .tab {
  background-color: var(--theme-nav-item-primary--background--selected);
}
:host(.active) .tab::before,
:host(.selected) .tab::before {
  content: "";
  background-color: var(--theme-nav-item-primary--border-color--selected);
  height: var(--ix-menu-item-height, 3rem);
  width: 0.25rem;
  left: 0;
  position: absolute;
}
:host(.active) .tab > .glyph,
:host(.selected) .tab > .glyph {
  color: var(--theme-nav-item-primary-icon--color--selected);
}

:host(.disabled) {
  color: var(--theme-color-weak-text);
  pointer-events: none;
  cursor: default;
}
:host(.disabled) .tab > .tab-icon {
  color: var(--theme-color-weak-text);
}
:host(.disabled) .tab-text {
  color: var(--theme-color-weak-text);
}

:host(.bottom-tab),
:host([slot=bottom]) {
  min-height: 2.25rem;
  height: 2.25rem;
  max-height: 2.25rem;
}
:host(.bottom-tab) .tab,
:host([slot=bottom]) .tab {
  height: 2.25rem;
}
:host(.bottom-tab) .tab::before,
:host([slot=bottom]) .tab::before {
  height: 2.25rem;
  background-color: transparent;
}
:host(.bottom-tab).active:hover, :host(.bottom-tab).selected:hover,
:host([slot=bottom]).active:hover,
:host([slot=bottom]).selected:hover {
  background-color: var(--theme-nav-item-secondary--background--selected);
}
:host(.bottom-tab).active:active, :host(.bottom-tab).selected:active,
:host([slot=bottom]).active:active,
:host([slot=bottom]).selected:active {
  background-color: var(--theme-nav-item-secondary--background--selected);
}

:host(.bottom-tab.active) .tab,
:host(.bottom-tab.selected) .tab,
:host(.active[slot=bottom]) .tab,
:host(.selected[slot=bottom]) .tab {
  background-color: var(--theme-nav-item-secondary--background--selected);
}

:host(.tab-nested) .tab {
  flex-direction: row;
  padding-left: 1.375rem;
}
:host(.tab-nested) .tab .notification {
  position: relative;
  top: 0;
  left: 0;
  padding-left: 0.5rem;
}
:host(.tab-nested) .tab .tab-icon {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
:host(.tab-nested) .tab .tab-text {
  margin-left: 0.5rem;
}
:host(.tab-nested) .tab::before {
  display: none;
}