/*
 * 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.
*/
:host {
  display: flex;
  flex-wrap: nowrap;
  align-items: end;
  justify-content: space-between;
  position: relative;
  width: 100%;
  min-height: 3rem;
  padding-top: var(--ix-safe-area-inset-top, 0rem);
  padding-right: calc(0.625rem + var(--ix-safe-area-inset-right, 0rem));
  padding-left: calc(0.625rem + var(--ix-safe-area-inset-left, 0rem));
  color: var(--theme-app-header--color);
  background-color: var(--theme-app-header--background);
  border-bottom: var(--theme-app-header--border-width) solid var(--theme-app-header--border-color);
  z-index: var(--theme-z-index-fixed);
}
: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 .left-side,
:host .right-side {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  position: relative;
  align-items: center;
  min-width: 0;
  min-height: 3rem;
  height: 100%;
}
:host .left-side {
  flex: 0 1 auto;
}
:host .left-side .app-icon {
  display: block;
  position: relative;
  width: 2rem;
  min-width: 2rem;
  max-width: 2rem;
  height: 2rem;
  min-height: 2rem;
  max-height: 2rem;
}
:host .left-side .app-icon.app-icon-outline {
  outline: 1px solid var(--theme-app-header-app-icon--outline-color);
  border-radius: 0.125rem;
}
:host .left-side .app-icon img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0.125rem;
}
:host .left-side .app-switch {
  margin: 0 0.625rem;
}
:host .left-side .app-switch.without-app-icon {
  margin-left: 0px;
}
:host .left-side .name {
  display: flex;
  position: relative;
  flex-direction: row;
  flex-wrap: nowrap;
  margin-left: 0.75rem;
  margin-right: 0.75rem;
  color: var(--theme-app-header--color);
  min-width: 0;
  gap: 0.75rem;
  overflow: hidden;
}
:host .left-side .application-name,
:host .left-side .application-name-suffix {
  overflow: hidden;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
  text-wrap: nowrap;
}
:host .left-side .application-name {
  flex: 0 1 auto;
  min-width: 0;
  flex-shrink: 0;
  max-width: 100%;
}
:host .left-side .application-name-suffix {
  flex: 1 1 auto;
  margin-top: 0.4rem;
  min-width: 0;
  flex-shrink: 1;
  color: var(--theme-app-header-name-suffix--color);
}
:host .left-side .logo {
  display: inline-flex;
  align-items: center;
  position: relative;
  height: 32px;
  overflow: hidden;
  line-height: 0rem;
  color: var(--theme-app-header-logo--color);
  margin-right: 1rem;
  margin-left: 1rem;
  min-width: -moz-fit-content;
  min-width: fit-content;
}
:host .left-side .logo.hide-logo {
  display: none;
}
:host .right-side {
  flex: 1 1 auto;
  overflow: hidden;
  justify-content: space-between;
}
:host .right-side .content,
:host .right-side .secondary {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  flex-wrap: nowrap;
  height: 100%;
}
:host .right-side .content {
  min-width: -moz-max-content;
  min-width: max-content;
}
:host .right-side .secondary {
  overflow: hidden;
}
:host .right-side .dropdown {
  overflow: visible;
}
:host .right-side .dropdown-content > .slot-content-active {
  padding: 0.5rem 1.5rem 0.5rem 1.5rem;
  border-top: none;
}
:host .right-side .dropdown-content .slot-content-active ~ .slot-content-active {
  border-top: 1px solid var(--theme-color-x-weak-bdr);
}
:host .right-side .context-menu {
  display: none;
}
:host .right-side .context-menu.context-menu-visible {
  display: block;
  margin-left: 0.5rem;
}
:host .right-side ::slotted(ix-avatar) {
  margin-left: 0.5rem;
}
:host .right-side .primary-navigation {
  align-self: end;
}
:host .right-side.sm {
  justify-content: end;
}
@media only screen and (max-width: 48em) {
  :host .logo {
    margin-left: 0.5rem;
    display: none !important;
  }
  :host .content,
  :host .secondary,
  :host .app-icon {
    display: none;
  }
}

:host(.hide-bottom-border) {
  border-bottom: none;
}