/* ╔════════════════════════════════════════════════════════════════════════╗ */
/* ║ 📄 crm_reativacao.css – Estilo para CRM de Reativação – CONSART ERP   ║ */
/* ╚════════════════════════════════════════════════════════════════════════╝ */

/* ───────────────────────────── Reset & Base ───────────────────────────── */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background-color: #f2f4f7;
}

.conteudo-pagina {
  padding: 20px;
}

h1 {
  font-size: 24px;
  margin-bottom: 20px;
}

/* ───────────────────────────── Cabeçalho (Filtros) ─────────────────────── */
.linha-filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  background-color: #f9fcff;
  padding: 1rem;
  border: 1px solid #b5d4f3;
  border-radius: 10px;
  margin-bottom: 2rem;
}

.filtro-bloco {
  display: flex;
  flex-direction: column;
  min-width: 200px;
  max-width: 280px;
  flex: 1;
  font-weight: 600;
  font-size: 0.9rem;
  position: relative;
}

.filtro-bloco input,
.filtro-bloco select {
  padding: 8px 10px;
  font-size: 15px;
  border: 1px solid #b5d4f3;
  border-radius: 6px;
  background-color: white;
  width: 100%;
}

.botoes-funil {
  display: flex;
  flex-direction: row;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.btn-acao {
  background-color: #4b91e2;
  color: white;
  border: none;
  padding: 9px 14px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  font-size: 15px;
  white-space: nowrap;
  transition: background 0.2s;
}

.btn-acao:hover {
  background-color: #367dd9;
}

/* 🔍 Autocomplete */
.sugestoes-autocomplete {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 180px;
  overflow-y: auto;
  border: 1px solid #ccc;
  border-top: none;
  background-color: white;
  position: absolute;
  z-index: 999;
  width: 100%;
}

.sugestoes-autocomplete li {
  padding: 8px;
  cursor: pointer;
}

.sugestoes-autocomplete li:hover {
  background-color: #eee;
}

/* ───────────────────────────── Kanban ───────────────────────────── */
.kanban-board {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 15px;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  max-width: 100%;
  box-sizing: border-box;
}

.kanban-coluna {
  flex: 0 0 280px;
  max-width: 280px;
  min-width: 280px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px;
  position: relative;
  transition: border 0.2s;
}

.kanban-coluna.drag-over {
  border: 2px dashed #3498db;
}

.kanban-coluna h3 {
  font-size: 16px;
  margin-bottom: 10px;
  background-color: #3498db;
  color: white;
  padding: 8px;
  border-radius: 6px;
  text-align: center;
}

.kanban-lista {
  min-height: 120px;
  padding: 5px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 🎨 Cores por status */
.kanban-coluna[data-status="TRIAGEM"]                      { background-color: #f0f8ff; }
.kanban-coluna[data-status="ATUALIZAR TELEFONE / E-MAIL"]  { background-color: #fffaf0; }
.kanban-coluna[data-status="WHATSAPP ENVIADO"]             { background-color: #e8f5e9; }
.kanban-coluna[data-status="E-MAIL ENVIADO"]               { background-color: #f3e5f5; }
.kanban-coluna[data-status="AGUARDANDO"]                   { background-color: #fff3e0; }
.kanban-coluna[data-status="REATIVADO"]                    { background-color: #e3f2fd; }
.kanban-coluna[data-status="DESCARTADO"]                   { background-color: #fbe9e7; }

/* 📦 Cards */
.card-reativacao {
  background-color: #fff;
  border: 1px solid #bbb;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: grab;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: transform 0.1s, box-shadow 0.1s;
  font-size: 13.5px;
  line-height: 1.3;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: auto;
  max-height: 140px;
  overflow: hidden;
}

.card-reativacao:hover {
  transform: scale(1.01);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.card-reativacao .info-linha {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-reativacao button {
  padding: 5px 8px;
  font-size: 12.5px;
  border: none;
  background-color: #2ecc71;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  margin-top: 2px;
  transition: background-color 0.2s;
}

.card-reativacao button:hover {
  background-color: #27ae60;
}

/* 🛠 Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-conteudo {
  background: white;
  padding: 25px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 0 15px rgba(0,0,0,0.25);
  position: relative;
}

.modal-conteudo h2 {
  margin-bottom: 15px;
}

.modal-conteudo label {
  font-weight: bold;
  display: block;
  margin-top: 10px;
}

.modal-conteudo select,
.modal-conteudo textarea {
  width: 100%;
  padding: 8px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-top: 4px;
}

.modal-conteudo .btn-salvar {
  margin-top: 15px;
  padding: 10px;
  width: 100%;
  font-weight: bold;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.modal-conteudo .btn-salvar:hover {
  background-color: #2980b9;
}

.fechar {
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 22px;
  cursor: pointer;
  color: #666;
}

/* ───────────────────────────── Responsivo ───────────────────────────── */
@media (max-width: 768px) {
  .linha-filtros {
    flex-direction: column;
  }

  .botoes-funil {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-acao {
    width: 100%;
  }

  .kanban-board {
    flex-direction: column;
  }
}

.botoes-card {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.botoes-card button {
  flex: 1;
  padding: 5px 8px;
  font-size: 12.5px;
  border: none;
  background-color: #2ecc71;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.botoes-card button:hover {
  background-color: #27ae60;
}

.vendedor-nome {
  font-size: 10px;
  color: #666;
  font-weight: normal;
}

.badge-classificacao {
  display: inline-block;
  background-color: #999;
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  margin: 2px;
  font-size: 0.9em;
}

.botoes-card button:last-child {
  background-color: #e74c3c;
  color: white;
}

.botoes-card button:last-child:hover {
  background-color: #c0392b;
}