/* ===== assets/influenciadores-import.css =====
   Importador recorrente de planilha (influenciadores-import.js) — sincroniza a base
   de influenciadoras/seedings a partir de um .xlsx/.xls que Amanda mantém, ao
   contrário de midia-paga-import.js que é migração única do legado.
   Espelha a forma visual dos .mpi-* de midia-paga.css (mesmo layout de painel,
   cards de resumo, lista com scroll, barra de progresso), mas — igual a
   influenciadores.css já faz — reaproveita direto as variáveis de :root que
   marketing.css declara (--ink, --ink-soft, --line, --teal, --coral, --off-white)
   em vez de redeclarar um :root próprio. Prefixo .influ-imp- em tudo específico
   desta ferramenta; classes compartilhadas (.influ-btn, .influ-section, .influ-toast
   etc.) vêm de influenciadores.css.
*/

.influ-imp-panel { padding: 20px 28px 40px; max-width: 920px; }
.influ-imp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.influ-imp-head h2 { margin: 0; font-size: 20px; text-transform: lowercase; }
.influ-imp-sub { font-size: 13px; color: var(--ink-soft); margin: 0 0 14px; line-height: 1.5; }

.influ-imp-howto {
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.influ-imp-howto p { margin: 0 0 8px; font-size: 12.5px; line-height: 1.5; color: var(--ink); }
.influ-imp-howto p:last-child { margin-bottom: 0; }

.influ-imp-field { margin-bottom: 14px; }
.influ-imp-field input[type="file"] { font-family: 'Inter', sans-serif; font-size: 13px; }
.influ-imp-error {
  background: #fbeae8;
  color: #a83c2f;
  border: 1px solid #a83c2f40;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12.5px;
  margin-top: 8px;
}
.influ-imp-note {
  font-size: 12px;
  color: var(--ink-soft);
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  margin: 0 0 14px;
}

/* ---------- cards de resumo ---------- */
.influ-imp-summary { display: flex; flex-wrap: wrap; gap: 14px; margin: 14px 0 10px; }
.influ-imp-stat {
  font-size: 12px;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  min-width: 140px;
}
.influ-imp-stat strong { font-size: 20px; font-family: 'Fraunces', serif; font-weight: 600; color: var(--ink); }
.influ-imp-stat-new strong { color: #067647; }
.influ-imp-stat-changed strong { color: #8a4600; }
.influ-imp-stat-seednew strong { color: var(--teal); }
.influ-imp-stat-dup strong { color: var(--ink-soft); }

/* ---------- tabs influenciadores / seedings ---------- */
.influ-imp-tabs { display: flex; gap: 8px; margin: 16px 0 12px; border-bottom: 1px solid var(--line); }
.influ-imp-tab {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 13px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 9px 4px;
  cursor: pointer;
  color: var(--ink-soft);
}
.influ-imp-tab.active { color: var(--ink); border-bottom-color: var(--coral); }

/* ---------- lista head (select-all + filtros) ---------- */
.influ-imp-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
.influ-imp-selectall { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-soft); cursor: pointer; }
.influ-imp-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.influ-imp-filter-btn {
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  border-radius: 20px;
  padding: 5px 12px;
  cursor: pointer;
  transition: background .15s ease;
}
.influ-imp-filter-btn:hover { background: var(--off-white); }
.influ-imp-filter-btn.active { background: #1c361d; color: #fff; border-color: #1c361d; }

/* ---------- lista com scroll ---------- */
.influ-imp-scroll-list {
  max-height: 420px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.influ-imp-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.influ-imp-row:last-child { border-bottom: none; }
.influ-imp-row.selected { background: rgba(255, 90, 95, 0.04); }
.influ-imp-row.dimmed { opacity: 0.55; }
.influ-imp-row-check { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; cursor: pointer; }
.influ-imp-row-main { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.influ-imp-row-name { font-size: 13px; font-weight: 700; color: var(--ink); }
.influ-imp-row-sub {
  font-size: 11.5px;
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.influ-imp-badge { font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 20px; flex-shrink: 0; }
.influ-imp-badge-new { background: #d7f0d2; color: #067647; }
.influ-imp-badge-changed { background: #ffd7ad; color: #8a4600; }
.influ-imp-badge-unchanged { background: var(--off-white); color: var(--ink-soft); }
.influ-imp-badge-warn { background: #fdecab; color: #7a5b00; }

.influ-imp-expand-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  color: var(--ink-soft);
  padding: 2px 6px;
  flex-shrink: 0;
}
.influ-imp-expand-btn:hover { color: var(--ink); }

/* ---------- diff de alterações ---------- */
.influ-imp-diff { padding: 0 12px 12px 40px; border-bottom: 1px solid var(--line); }
.influ-imp-diff-head, .influ-imp-diff-row {
  display: grid;
  grid-template-columns: 140px 1fr 1fr;
  gap: 10px;
  font-size: 11.5px;
}
.influ-imp-diff-head { color: var(--ink-soft); font-weight: 700; margin-bottom: 6px; }
.influ-imp-diff-row { padding: 4px 0 4px 8px; border-left: 2px solid #ffd7ad; margin-bottom: 2px; }
.influ-imp-diff-field { color: var(--ink-soft); font-weight: 600; }
.influ-imp-diff-old { color: #a83c2f; text-decoration: line-through; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.influ-imp-diff-new { color: #067647; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- seções (erros etc.) ---------- */
.influ-imp-section { margin-top: 18px; }
.influ-imp-section h3 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--ink-soft);
  margin: 0 0 8px;
}
.influ-imp-list-row {
  padding: 9px 12px;
  font-size: 12.5px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.influ-imp-list-row:last-child { border-bottom: none; }
.influ-imp-row-reason { color: var(--ink-soft); }
.influ-imp-reject-row .influ-imp-row-reason { color: #a83c2f; }
.influ-imp-empty-note { padding: 16px 12px; font-size: 12px; color: var(--ink-soft); font-style: italic; text-align: center; }

/* ---------- ações e progresso ---------- */
.influ-imp-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.influ-imp-progress-line { font-size: 13px; color: var(--ink); margin: 14px 0 10px; }
.influ-imp-progress-bar { width: 100%; height: 10px; background: var(--off-white); border-radius: 20px; overflow: hidden; }
.influ-imp-progress-fill { height: 100%; background: var(--teal); border-radius: 20px; transition: width .2s ease; }

@media (max-width: 640px) {
  .influ-imp-panel { padding: 16px 16px 32px; }
  .influ-imp-diff-head, .influ-imp-diff-row { grid-template-columns: 90px 1fr 1fr; }
}
