/* Оверлей и прогресс загрузки документов */

.upload-busy-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, #0b1220 55%, transparent);
  padding: 1rem;
}

.upload-busy-card {
  width: min(28rem, 100%);
  background: var(--dir-surface, #fff);
  color: var(--dir-text, #111);
  border: 1px solid var(--dir-border, #dee2e6);
  border-radius: 0.75rem;
  box-shadow: 0 16px 40px color-mix(in srgb, #000 25%, transparent);
  padding: 1.25rem 1.35rem;
}

.upload-busy-title {
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.upload-busy-meta {
  font-size: 0.875rem;
  color: var(--dir-text-muted, #6c757d);
  margin-bottom: 0.85rem;
}

.upload-progress {
  height: 0.55rem;
  background: var(--dir-surface-2, #e9ecef);
  border-radius: 999px;
  overflow: hidden;
}

.upload-progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--dir-accent, #0f766e);
  transition: width 0.15s ease;
}

.upload-progress.is-indeterminate > span {
  width: 40%;
  animation: upload-slide 1s ease-in-out infinite;
}

@keyframes upload-slide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}
