/* ============================================================
   upload.css — Шаг 1 (карточки типов) + Шаг 2 (загрузка файла)
   ============================================================ */

/* ---- Шаг 1: карточки типов скидок ---- */
.kind-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

@media (max-width: 900px) {
  .kind-grid { grid-template-columns: 1fr; }
}

.kind-card {
  background: var(--fuel-surface);
  border: 1px solid var(--fuel-border);
  border-radius: var(--radius);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  box-shadow: var(--shadow-sm);
  transition: transform 150ms, box-shadow 150ms;
}
.kind-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.kind-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--fuel-primary-soft);
  color: var(--fuel-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kind-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.kind-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--fuel-text);
}

.kind-card-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 99px;
  white-space: nowrap;
}
.tag-before {
  background: var(--fuel-gray-1);
  color: var(--fuel-text-muted);
}
.tag-after {
  background: var(--status-added-bg);
  color: var(--status-added-fg);
}

.kind-card-desc {
  font-size: 13px;
  color: var(--fuel-text-muted);
  line-height: 1.55;
  flex: 1;
}

.kind-card-fields {
  font-size: 12px;
  color: var(--fuel-text-muted);
  line-height: 1.8;
}
.kind-card-fields strong {
  font-weight: 500;
  color: var(--fuel-text);
}

.kind-card-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--fuel-border);
  flex-wrap: wrap;
}

/* ---- Шаг 2: загрузка файла ---- */
.step2-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-6);
  align-items: start;
}

@media (max-width: 900px) {
  .step2-layout { grid-template-columns: 1fr; }
  .step2-info-panel { order: -1; }
}

.step2-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

/* Дроп-зона */
.drop-zone {
  width: 100%;
  min-height: 200px;
  border: 2px dashed var(--fuel-primary);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  background: var(--fuel-surface);
  cursor: pointer;
  transition: background 150ms, border-color 150ms;
  color: var(--fuel-text-muted);
  text-align: center;
  padding: var(--space-6) var(--space-5);
  position: relative;
}
.drop-zone:hover,
.drop-zone.dragover {
  background: var(--fuel-primary-soft);
  border-color: var(--fuel-primary-active);
}
.drop-zone.has-file {
  border-color: var(--fuel-success);
  border-style: solid;
  background: #F3FBF2;
}
.drop-zone svg { color: var(--fuel-primary); }
.drop-zone.has-file svg { color: var(--fuel-success); }

.drop-zone-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--fuel-text);
}
.drop-zone-subtext {
  font-size: 12px;
  color: var(--fuel-text-muted);
}
.drop-zone-filename {
  font-size: 13px;
  color: var(--fuel-success);
  font-weight: 600;
}

/* Прогресс */
.progress-wrap {
  display: none;
}
.progress-wrap.visible {
  display: block;
}
.progress-track {
  width: 100%;
  height: 8px;
  background: var(--fuel-gray-1);
  border-radius: 99px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--fuel-primary);
  border-radius: 99px;
  width: 0%;
  transition: width 100ms linear;
}
.progress-stage {
  margin-top: var(--space-2);
  font-size: 13px;
  color: var(--fuel-text-muted);
  min-height: 20px;
}

/* Инфо-панель справа */
.step2-info-panel {
  background: var(--fuel-primary-soft);
  border-radius: var(--radius);
  padding: var(--space-5);
  border: 1px solid rgba(250,89,53,.2);
}
.step2-info-panel h3 {
  margin-bottom: var(--space-4);
  font-size: 14px;
  color: var(--fuel-primary-active);
}
.info-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.info-step {
  display: flex;
  gap: var(--space-3);
  font-size: 13px;
}
.info-step-num {
  width: 20px;
  height: 20px;
  background: var(--fuel-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.info-step-text { line-height: 1.5; color: var(--fuel-text); }
.info-note {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(250,89,53,.25);
  font-size: 12px;
  color: var(--fuel-text-muted);
  line-height: 1.5;
}

/* Режим с подсказкой */
.mode-select-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.mode-select-wrap select { flex: 1; }
