/*
 * 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(.floating-pane) {
  --ix-pane--background: var(--theme-pane-floating--background);
  --ix-pane--border-color: var(--theme-pane-floating--border-color);
  --ix-pane--color: var(--theme-pane-floating--color);
  --ix-pane--box-shadow: var(--theme-pane-floating--box-shadow);
}

:host(.inline-pane) {
  --ix-pane--background: var(--theme-pane-inline--background);
  --ix-pane--border-color: var(--theme-pane-inline--border-color);
  --ix-pane--color: var(--theme-pane-inline--color);
  --ix-pane--box-shadow: var(--theme-pane-inline--box-shadow);
}

:host {
  display: flex;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  box-shadow: var(--ix-pane--box-shadow);
  background-color: var(--ix-pane--background);
}
: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 aside {
  width: 100%;
  height: 100%;
}
:host .pane-icon {
  color: var(--ix-pane--color);
}
:host .slot-header-content {
  display: inline-block;
  position: relative;
  max-height: 2rem;
}
:host .title-text {
  display: flex;
  align-items: center;
  gap: var(--theme-space-1);
  overflow: hidden;
}
:host .title-text .title-text-overflow {
  width: 100%;
  height: 100%;
  display: contents;
}
:host .title-text .title-text-overflow * {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
:host .header-gap {
  gap: var(--theme-space-1);
}
:host .top-bottom-pane {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
:host .top-bottom-pane .title {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin: var(--theme-space--1) var(--theme-space-2) var(--theme-space--1) var(--theme-space-2);
}
:host .top-bottom-pane .title-finished {
  padding: 0 !important;
  margin: var(--theme-space-2) var(--theme-space-2) var(--theme-space-2) var(--theme-space-2);
}
:host .top-bottom-pane .title-expanded {
  display: flex;
  flex-direction: row;
}
:host .top-bottom-pane .title-hide-on-collapse {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  padding: 0 !important;
  margin: var(--theme-space-2) var(--theme-space-2) var(--theme-space-2) var(--theme-space-2);
}
:host .left-right-pane {
  display: flex;
  flex-grow: 1;
}
:host .left-right-pane .title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: var(--theme-space-2) var(--theme-space--1) var(--theme-space-2) var(--theme-space--1);
}
:host .left-right-pane .title .title-text {
  flex-direction: row-reverse;
  justify-content: start;
  flex-direction: row;
}
:host .left-right-pane .title .rotate {
  writing-mode: vertical-lr;
  text-orientation: mixed;
  transform: rotate(180deg);
  flex-direction: row-reverse;
}
:host .left-right-pane .title .rotate ix-icon {
  transform: rotate(90deg);
}
:host .left-right-pane .title-finished {
  padding: 0 !important;
  margin: var(--theme-space-2) var(--theme-space-2) var(--theme-space-2) var(--theme-space-2);
}
:host .left-right-pane .title-expanded {
  display: flex;
  flex-direction: row;
}
:host .left-right-pane .title-hide-on-collapse {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  padding: 0 !important;
  margin: var(--theme-space-2) var(--theme-space-2) var(--theme-space-2) var(--theme-space-2);
}
:host .left-right-pane.expanded {
  flex-direction: column;
}
:host .mobile-pane {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
:host .mobile-pane .title-mobile {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  margin: var(--theme-space-1) var(--theme-space-2);
}
:host .side-pane-content {
  padding: var(--theme-space-1) var(--theme-space-2) var(--theme-space-3) var(--theme-space-2);
  overflow: auto;
  height: 100%;
  width: 100%;
}
:host .slot-header {
  max-height: 2rem;
  max-width: unset;
}
:host .slot-header.rotate {
  max-height: unset;
  max-width: 2rem;
}

:host(.not-visible) {
  display: none;
}

:host(.nav-left-border) {
  border-left: var(--theme-app-header--border-width) solid var(--ix-pane--border-color);
}

:host(.left-pane-border) {
  border-right: var(--theme-app-header--border-width) solid var(--ix-pane--border-color);
}

:host(.right-pane-border) {
  border-left: var(--theme-app-header--border-width) solid var(--ix-pane--border-color);
}

:host(.top-pane-border) {
  border-bottom: var(--theme-app-header--border-width) solid var(--ix-pane--border-color);
}

:host(.bottom-pane-border) {
  border-top: var(--theme-app-header--border-width) solid var(--ix-pane--border-color);
}

:host(.mobile-overlay) {
  width: 100%;
  position: absolute;
  z-index: 100 !important;
}
:host(.mobile-overlay) .side-pane-content {
  height: calc(100% - 2.5rem);
}

:host(.mobile-border-top) {
  border-bottom: var(--theme-app-header--border-width) solid var(--ix-pane--border-color);
}

:host(.mobile-border-bottom) {
  border-top: var(--theme-app-header--border-width) solid var(--ix-pane--border-color);
}

:host(.top-expanded) {
  top: 0;
}

:host(.bottom-expanded) {
  bottom: 0;
}

:host(.left-right-pane) {
  height: 100%;
}

:host(.top-bottom-pane) {
  width: 100%;
}