.import-card,
.import-history-card {
  margin-top: 18px;
}

.import-history-card {
  margin-top: 22px;
}

.import-content {
  padding: 26px;
}

.upload-form {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(130px, auto) auto;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
}

.batch-size-field {
  display: grid;
  gap: 4px;
}

.batch-size-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.import-center-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.import-center-heading h2,
.import-center-heading p {
  margin: 0;
}

.import-jobs-table {
  min-width: 1160px;
}

.import-job-row[aria-busy="true"] {
  background: var(--surface-alt);
}

.job-progress {
  width: 150px;
  height: 7px;
  margin: 7px 0 4px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
}

.job-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
  transition: width 180ms ease;
}

.job-stat {
  display: block;
  white-space: nowrap;
}

.job-stat.inserted {
  color: #166534;
  font-weight: 800;
}

.job-stat.duplicates {
  color: var(--muted);
}

.job-stat.errors,
.job-error {
  color: #991b1b;
}

.job-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 180px;
}

.job-actions .is-loading,
.import-job-row[aria-busy="true"] [data-job-process] {
  cursor: wait;
  opacity: .65;
  pointer-events: none;
}

.import-summary {
  margin-top: 22px;
}

.preview-table {
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.confirm-import-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 20px;
  padding: 18px;
  border-radius: 12px;
  background: var(--surface-alt);
}

.notice {
  margin-top: 18px;
  padding: 14px;
  border-radius: 10px;
  line-height: 1.5;
}

.notice.warning {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
}

.status-text {
  font-weight: 800;
}

.status-text.completed {
  color: #166534;
}

.status-text.warning,
.status-text.ready {
  color: #9a3412;
}

.status-text.failed {
  color: #991b1b;
}

@media (max-width: 620px) {
  .upload-form {
    grid-template-columns: 1fr;
  }

  .confirm-import-row {
    align-items: stretch;
    flex-direction: column;
  }

  .confirm-import-row .primary-button {
    width: 100%;
  }

  .import-center-heading {
    align-items: stretch;
    flex-direction: column;
  }
}
