/*
 * 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.
*/
/* 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(:not(.host-vertical)) {
  width: 12rem;
  height: 4rem;
  min-width: 2rem;
  min-height: 4rem;
  max-width: 12rem;
}

:host(.host-vertical) {
  width: 100%;
  height: 4rem;
  min-width: 4rem;
  min-height: 2rem;
  max-height: 12rem;
}

:host {
  display: inline-block;
  position: relative;
}
: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 .step {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--theme-workflow-step--background);
  border-radius: var(--theme-workflow--border-radius);
  padding: 1.125rem 0 0.5rem 0;
}
:host .step .wrapper {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  position: relative;
}
:host .step .wrapper .line {
  width: 100%;
  height: 0.125rem;
  background-color: var(--theme-workflow-step-icon-default--color);
}
:host .step .wrapper .line.first, :host .step .wrapper .line.last {
  width: 50%;
  margin: 0 0 0 auto;
}
:host .step .wrapper .line.last {
  margin: 0 auto 0 0;
}
:host .step .wrapper .line.single {
  width: 0;
}
:host .step .wrapper .line.selected {
  background-color: var(--theme-workflow-step-icon-default--color--selected);
}
:host .step .wrapper .line.done {
  background-color: var(--theme-workflow-step-icon-done--color);
}
:host .step .wrapper .line.done.selected {
  background-color: var(--theme-workflow-step-icon-done--color--selected);
}
:host .step .wrapper .line.warning {
  background-color: var(--theme-color-warning);
}
:host .step .wrapper .line.success {
  background-color: var(--theme-color-success);
}
:host .step .wrapper .line.error {
  background-color: var(--theme-color-alarm);
}
:host .step .wrapper .iconWrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
}
:host .step .wrapper .iconWrapper .absolute {
  position: absolute;
}
:host .step .text {
  margin-top: 1rem;
  width: 100%;
  padding: 0 0.5rem;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  text-align: center;
}
:host .step.vertical {
  flex-direction: row;
  padding: 0;
  height: 100%;
}
:host .step.vertical .wrapper {
  width: auto;
  padding-left: 1.125rem;
  height: 100%;
}
:host .step.vertical .wrapper .line {
  width: 0.125rem;
  height: 100%;
}
:host .step.vertical .wrapper .line.first, :host .step.vertical .wrapper .line.last {
  height: 50%;
  margin: auto 0 0 0;
}
:host .step.vertical .wrapper .line.last {
  margin: 0 0 auto 0;
}
:host .step.vertical .wrapper .line.single {
  width: 0;
}
:host .step.vertical .text {
  margin: 0 1rem;
  padding: 0;
  width: auto;
}
:host .step.clickable:hover {
  background-color: var(--theme-workflow-step--background--hover);
}
:host .step.clickable:active {
  background-color: var(--theme-workflow-step--background--active);
}
:host .step:focus-visible {
  outline: 1px solid var(--focus--border-color);
  border-radius: 0;
}
:host .step.selected {
  background-color: var(--theme-workflow-step--background--selected);
}
:host .step.disabled {
  background-color: var(--theme-workflow-step--background--disabled);
}
:host .step.disabled .line {
  background-color: var(--theme-workflow-step-icon-default--color--disabled) !important;
}
:host .step.disabled .text {
  color: var(--theme-workflow-step--color--disabled);
}