/*
 * 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.
*/
/*
* 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 {
  display: flex;
  flex-grow: 1;
  height: 2.5rem;
  border-radius: var(--theme-kpi--border-radius);
  padding: 0.375rem 0.25rem;
  min-width: 0;
}
: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 span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
:host .kpi-container {
  display: flex;
  height: 100%;
  width: 100%;
  border-block-end: 2px solid grey;
}
:host .kpi-container.alarm {
  border-block-end-color: var(--theme-color-alarm);
}
:host .kpi-container.warning {
  border-block-end-color: var(--theme-color-warning);
}
:host .kpi-container .kpi-label {
  display: flex;
  align-items: center;
  color: var(--theme-kpi-display-label--color);
  flex-grow: 1;
  flex-shrink: 9999;
}
:host .kpi-container .kpi-label ix-icon {
  margin-inline-end: 0.25rem;
}
:host .kpi-container .kpi-value-container {
  display: flex;
  align-items: flex-end;
}
:host .kpi-container .kpi-value {
  color: var(--theme-kpi-display-value--color);
  font-family: Siemens Sans, sans-serif;
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1.091em;
  color: var(--theme-color-std-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smooting: grayscale;
}
:host .kpi-container .kpi-unit {
  margin-inline-start: 0.5rem;
  color: var(--theme-kpi-display-units--color);
}
:host .kpi-container .kpi-label,
:host .kpi-container .kpi-unit {
  margin-block-start: 0.125rem;
}
:host:not(.disabled):not(:disabled) {
  cursor: pointer;
}
:host:not(.disabled):not(:disabled):hover, :host:not(.disabled):not(:disabled).hover {
  background-color: var(--theme-kpi-display--background--hover);
}
:host:not(.disabled):not(:disabled) {
  cursor: pointer;
}
:host:not(.disabled):not(:disabled):active, :host:not(.disabled):not(:disabled).active {
  background-color: var(--theme-kpi-display--background--active);
}
:host:not(.disabled):not(:disabled):focus-visible {
  outline: 1px solid var(--focus--border-color);
}

:host(.stacked) {
  height: 3.75rem;
}
:host(.stacked) .kpi-container {
  justify-content: center;
  flex-wrap: wrap;
}
:host(.stacked) .kpi-container .kpi-label {
  width: 100%;
  justify-content: center;
}