/*
 * 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.
*/
/*
* 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: block;
  min-height: 4rem;
  height: 4rem;
}
: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 .file-upload-area {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  height: 100%;
  width: 100%;
  padding: 1rem;
  border: 1px dashed var(--theme-upload--border-color);
  border-radius: var(--theme-upload--border-radius);
  color: var(--theme-upload-text--color);
}
:host .file-upload-area.multiline {
  max-height: unset;
  height: auto;
}
:host .file-upload-area.multiline .glyph {
  align-self: flex-start;
  margin-block-start: 3px;
}
:host .file-upload-area.multiline > div {
  align-self: flex-start;
}
:host .file-upload-area:not(.multiline) .state,
:host .file-upload-area:not(.multiline) .upload-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
:host .file-upload-area:not(.disabled).file-over {
  border-color: var(--theme-upload--border-color--dragover);
  border-style: solid;
}
:host .file-upload-area.checking {
  color: var(--theme-upload-text--color--checking);
  border-style: solid;
}
:host .file-upload-area.disabled {
  border-style: solid;
  color: var(--theme-upload-text--color--disabled);
}
:host .file-upload-area ix-button {
  margin-inline-start: 1rem;
}
:host .file-upload-area .upload-browser {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}
:host .file-upload-area .loader {
  margin: 2.187rem auto;
  font-size: 0.937rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  position: relative;
  text-indent: -9999em;
  animation: optimise-loading 1.1s infinite ease;
  transform: translateZ(0);
}
:host .file-upload-area .upload-filename {
  margin-bottom: 1rem;
}
:host .file-upload-area .state {
  display: flex;
  align-items: center;
}
:host .file-upload-area .state > ix-spinner {
  margin-inline-end: 0.5rem;
}
:host .file-upload-area .state > ix-icon {
  margin-inline-end: 0.5rem;
}
:host .file-upload-area .state > ix-icon.icon-error {
  color: var(--theme-color-alarm);
}
:host .file-upload-area .state > ix-icon.icon-success {
  color: var(--theme-color-success);
}

:host(.disabled) {
  pointer-events: none;
}