.erp-file-upload {
  position: relative;
  width: 100%;
  min-width: 0;
}

.erp-file-upload > input[type="file"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.erp-file-drop {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 70px;
  padding: 10px 11px;
  border: 1px dashed #b9c8df;
  border-radius: 10px;
  background: linear-gradient(135deg, #fbfdff 0%, #f5f8ff 100%);
  color: #263550;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.erp-file-drop:hover {
  border-color: #7d9fff;
  background: #f3f7ff;
  box-shadow: 0 6px 18px rgba(22, 93, 255, .08);
}

.erp-file-drop:focus-visible {
  border-color: #5f88ff;
  outline: 3px solid rgba(22, 93, 255, .17);
  outline-offset: 2px;
}

.erp-file-drop.is-dragging {
  border-color: #165dff;
  border-style: solid;
  background: #eaf1ff;
  box-shadow: 0 0 0 4px rgba(22, 93, 255, .10);
  transform: translateY(-1px);
}

.erp-file-drop.is-selected {
  border-style: solid;
  border-color: #9db5ef;
  background: #f8faff;
}

.erp-file-drop.is-invalid {
  border-color: #e5484d;
  background: #fff6f6;
}

.erp-file-drop[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .58;
  box-shadow: none;
}

.erp-file-drop__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #e8f0ff;
  color: #165dff;
  font-size: 21px;
}

.erp-file-drop.is-selected .erp-file-drop__icon {
  background: #e7f8f2;
  color: #00a870;
}

.erp-file-drop__copy {
  min-width: 0;
}

.erp-file-drop__title,
.erp-file-drop__hint {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.erp-file-drop__title {
  color: #263550;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.erp-file-drop__hint {
  margin-top: 2px;
  color: #7a869d;
  font-size: 11px;
  line-height: 1.4;
}

.erp-file-drop.is-invalid .erp-file-drop__hint {
  color: #c52a30;
}

.erp-file-drop__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #b9c9e5;
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  color: #2456c6;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(25, 64, 135, .05);
}

.erp-file-drop:hover .erp-file-drop__action {
  border-color: #7d9fff;
  background: #fff;
}

@media (max-width: 767px) {
  .erp-file-drop {
    grid-template-columns: 40px minmax(0, 1fr);
    min-height: 76px;
  }

  .erp-file-drop__icon {
    width: 40px;
    height: 40px;
  }

  .erp-file-drop__action {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .erp-file-drop {
    transition: none;
  }
}
