/* eds-lib upload - generated by build.js, do not edit.
   Source: projects/finiti/eds-angular/src/lib/upload/upload.scss */

.eds-upload {
  display: block;
  --upload-trigger-bg: #ECEEF4;
  --upload-trigger-text: #41484D;
  --upload-file-text: #191C20;
  --upload-icon-primary: #36618E;
  --upload-icon-error: #BA1A1A;
  --upload-icon-success: #81C784;
  --upload-bg-success: #E8F5E8;
  --upload-bg-error: #FFDAD6;
  --upload-bg-download: #D1E4FF;
  --upload-error-text: #BA1A1A;
  --upload-star: #BA1A1A;
  --upload-focus: #36618E;
}

.upload-box {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 420px;
  max-width: 100%;
  height: 46px;
  padding: 0 16px;
  border-radius: 4px;
  box-sizing: border-box;
}

.trigger-label {
  flex: 1;
  min-width: 0;
  font-family: var(--eds-font-family-sans, "Orto RNIDS", system-ui, sans-serif);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--upload-trigger-text);
}

.row-name {
  flex: 1;
  min-width: 0;
  display: flex;
  font-family: var(--eds-font-family-sans, "Orto RNIDS", system-ui, sans-serif);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  white-space: nowrap;
  color: var(--upload-file-text);
}
.row-name .name-start {
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.row-name .name-end {
  flex-shrink: 0;
}

.trigger-state {
  background-color: var(--upload-trigger-bg);
  cursor: pointer;
  outline: none;
}
.trigger-state:focus-visible {
  outline: 2px solid var(--upload-focus);
  outline-offset: 2px;
}
.trigger-state.is-invalid {
  outline: 1px solid var(--upload-error-text);
  outline-offset: 0;
}
.trigger-state .trigger-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.file-state .row-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.file-state .row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.file-state .row-actions .row-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 4px;
}
.file-state .row-actions .row-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.upload-box.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.upload-box.is-disabled .row-btn {
  pointer-events: none;
}

.required-star {
  color: var(--upload-star);
  margin-left: 2px;
}

.status-success,
.status-success-download {
  background-color: var(--upload-bg-success);
}

.status-error {
  background-color: var(--upload-bg-error);
}

.status-download {
  background-color: var(--upload-bg-download);
}

.native-input {
  display: none;
}

.row-error {
  display: block;
  margin-top: 4px;
  padding-left: 16px;
  font-size: 12px;
  color: var(--upload-error-text);
}
