@import 'fonts.css';
@import 'reset.css';

*[hidden] {
  display: none !important;
}
html,
body {
  height: 100%;
  width: 100%;
  box-sizing: border-box;
  background-color: #ffffff;
  margin: 0px;
  padding: 0px;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #323232;
}
div.root {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
div.background {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: #f9f9f9;
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: auto;
}
div.main {
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: transparent;
}
div.title {
  color: #191919;
  font-size: 32px;
  font-weight: 500;
  line-height: 32px;
  margin-bottom: 16px;
}
div.title > span {
  font-size: 12px;
  vertical-align: super;
}
div.subTitle {
  display: block;
  font-size: 20px;
  align-self: center;
  color: #be2434;
  margin-bottom: 24px;
}
div.panel {
  width: 400px;
  max-width: 95vw;
  display: flex;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  background-color: #ffffff;
  align-items: center;
}
div.container {
  display: flex;
  flex-direction: column;
  padding: 64px 64px 32px 64px;
  font-size: 16px;
  color: #323232;
  line-height: 1.5em;
  align-items: center;
  overflow: auto;
  flex: 1;
}
div.subPanel {
  width: 100%;
}
img.logo {
  height: 24px;
  margin-bottom: 48px;
  fill: #323232;
}
div.description {
  font-size: 0.875rem;
  margin-top: 16px;
}
div.statusWrapper {
  display: flex;
  margin-top: 32px;
  justify-content: center;
}
div.statusWrapper .loader {
  margin-right: 16px;
}
div.status {
  display: flex;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
}
div.fileInputWrapper {
  display: flex;
  align-items: center;
}
div.fileInputWrapper button {
  margin-left: 16px;
  width: auto;
}
div.verticalWrapper {
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
}
img.successIcon {
  display: block;
  margin: 16px auto;
}
button.submit {
  width: 100%;
  margin-top: 32px;
}
img.distechLogo {
  margin-top: 40px;
}

/* Alert */
div.alert {
  width: 100%;
  display: flex;
  box-sizing: border-box;
  padding: 8px 16px;
  align-items: center;
  color: #be2434;
  background-color: rgba(218, 41, 28, 0.1);
  font-size: 0.875rem;
  border-radius: 4px;
}
div.alert .icon {
  color: #be2434;
  margin-right: 16px;
}
div.alert .message {
  padding: 8px 0px;
  line-height: 18px;
  min-width: 0px;
  overflow: auto;
}

/* LabelValue */
div.labelValue {
  width: 100%;
  min-width: 30px;
  display: inline-flex;
  flex-direction: column;
  position: relative;
  min-width: 0px;
  padding: 0px;
  margin: 0px;
  border: 0px;
  vertical-align: top;
  margin-top: 16px;
}
.labelValue .label {
  position: relative;
  font-weight: 700;
  line-height: 18px;
  margin: 0px 0px 8px;
  transform: none;
  pointer-events: auto;
  display: block;
  transform-origin: left top;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 1;
  font-size: 0.875rem;
  padding: 0px;
}
.labelValue .value {
  position: relative;
  line-height: 18px;
  margin: 0px 0px 8px;
  transform: none;
  pointer-events: auto;
  display: block;
  transform-origin: left top;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 1;
  font-size: 0.875rem;
  padding: 0px;
}

/* Textfield */
div.textfield {
  width: 100%;
  min-width: 30px;
  display: inline-flex;
  flex-direction: column;
  position: relative;
  min-width: 0px;
  padding: 0px;
  margin: 0px;
  border: 0px;
  vertical-align: top;
  margin-top: 16px;
}
.textfield label {
  position: relative;
  font-weight: 700;
  line-height: 18px;
  margin: 0px 0px 8px;
  transform: none;
  pointer-events: auto;
  display: block;
  transform-origin: left top;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 1;
  font-size: 0.875rem;
  padding: 0px;
}
.textfield label[error] {
  color: #be2434;
}
.textfield span.asterisk {
  color: #be2434;
}
.textfield input,
.textfield textarea {
  color: #323232;
  font-family: 'Roboto', sans-serif;
  border: 1px solid #cccccc;
  position: relative;
  border-radius: 4px;
  font-size: 0.875rem;
  line-height: 20px;
  letter-spacing: normal;
  box-sizing: border-box;
  position: relative;
  cursor: text;
  display: inline-flex;
  align-items: center;
  width: 100%;
  min-height: 32px;
  height: auto;
  padding: 4px 12px;
  background: none;
  margin: 0px;
  outline: none;
  resize: none;
  margin-top: 1px;
}
.textfield input:not([disabled]):hover,
.textfield textarea:not([disabled]):hover {
  border-color: #0085c6;
}
.textfield input:not([disabled]):active,
.textfield input:not([disabled]):focus,
.textfield input:not([disabled]):focus-visible,
.textfield textarea:not([disabled]):active,
.textfield textarea:not([disabled]):focus,
.textfield textarea:not([disabled]):focus-visible {
  border-color: #0098e2;
}
.textfield input[error],
.textfield textarea[error] {
  border-color: #be2434;
}
.textfield p.helperText {
  color: #be2434;
  text-align: end;
  width: 100%;
  display: block;
  position: absolute;
  bottom: -16px;
  white-space: nowrap;
  font-size: 0.75rem;
  line-height: 16px;
  margin: 0px;
}

/* Button */
button {
  min-height: 34px;
  height: 34px;
  font-size: 0.875rem;
  line-height: 1.2em;
  text-transform: none;
  font-weight: 500;
  padding: 8px 16px;
  color: rgb(255, 255, 255);
  background-color: #0098e2;
  border: 1px solid transparent;
  box-shadow: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  letter-spacing: normal;
  min-width: 64px;
  border-radius: 4px;
  align-items: center;
  justify-content: center;
  position: relative;
  box-sizing: border-box;
  outline: 0px;
  margin: 0px;
  cursor: pointer;
  user-select: none;
  vertical-align: middle;
  appearance: none;
  text-decoration: none;
  font-family: 'Roboto', sans-serif;
}
button:hover {
  color: #ffffff;
  background-color: #0085c6;
  border: 1px solid transparent;
}
button:active {
  color: rgb(255, 255, 255);
  background-color: #00679b;
  border: 1px solid transparent;
}
button[disabled] {
  color: #adadad;
  background-color: #ebebeb;
  border: 1px solid transparent;
  cursor: default;
}

#errorPanel > button {
  display: block;
  margin: 1.5rem auto 0;
}

.package-errors {
  border: 1px solid #ddd;
  padding: 0.5rem;
  margin-bottom: 1rem;
}
.package-errors summary {
  font-weight: bold;
  cursor: pointer;
}
.package-errors ul {
  margin: 0.5rem 0 0 1rem;
  padding: 0;
}

/* DropZone */

.dropzone {
  border: 2px dashed #aaa;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s;
  flex-direction: column;
}
.dropzone.dragover {
  background: #f9f9f9;
  border-color: #666;
}
.drop-hint {
  color: #666;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;

  /* fill the dropzone width */
  width: 100%;
  box-sizing: border-box;

  background: #f0f0f0;
  border-radius: 12px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.file-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 1rem;
}

.remove-file {
  background: none;
  border: none;
  cursor: pointer;
  color: #c00;
  font-size: 1rem;
}
.remove-file:hover {
  text-decoration: underline;
}

/* Loader */
.loader {
  border: 4px solid #ebebeb;
  border-radius: 50%;
  border-top: 4px solid #0098e2;
  width: 16px;
  height: 16px;
  -webkit-animation: spin 2s linear infinite;
  animation: spin 1s linear infinite;
}
/* Safari */
@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
  }
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
