:root {
  --primary: #007bff;
  --success: #28a745;
  --border: #edf2f7;
}
body {
  background-color: #f4f7f6;
  font-family: "Segoe UI", sans-serif;
}
h1 {
  border-left: 6px solid var(--primary);
  padding-left: 15px;
  letter-spacing: -1px;
}

.prospecto-item {
  background: white;
  border-radius: 10px;
  margin-bottom: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
}
.prospecto-row {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  gap: 15px;
}

.col-id {
  width: 50px;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: bold;
}
.col-nombre {
  flex: 2;
  min-width: 150px;
  position: relative;
  padding-right: 30px;
}
.nombre-txt {
  display: block;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.btn-i {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: #f1f5f9;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 0.7rem;
  cursor: pointer;
}
.col-cat {
  flex: 1;
  min-width: 120px;
}
.col-ws {
  width: 100px;
  text-align: center;
}
.btn-whatsapp {
  background: var(--success);
  color: white !important;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
}

.col-fecha {
  width: 110px;
}
.col-fecha span {
  display: block;
  background: #fff;
  border: 1px solid #ced4da;
  border-radius: 6px;
  padding: 4px 8px;
  text-align: center;
  color: #495057;
  font-size: 0.8rem;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.col-estado {
  width: 150px;
}

/* Contenedor del detalle centrado */
.detalle-info {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 10px 0;
}

/* El divisor: borde a los costados */
.divisor-lateral {
  flex: 1;
  padding: 0 15px;
  border-left: 1px solid #555;
  border-right: 1px solid #555;
}

/* Columna simple sin bordes para los extremos */
.col-simple {
  flex: 1;
  padding: 0 15px;
}

/* CLASES DE COLORES (Requiere valores exactos en la DB) */
.status-recibido {
  background-color: rgba(255, 255, 0, 0.3) !important;
}
.status-novalido {
  background-color: rgba(255, 0, 0, 0.3) !important;
}
.status-indefinido {
  background-color: rgba(255, 165, 0, 0.3) !important;
}
.status-interesado {
  background-color: rgba(0, 255, 0, 0.3) !important;
}
.status-aprobado {
  background-color: rgba(0, 0, 255, 0.3) !important;
}
.status-rechazado {
  background-color: rgba(128, 128, 128, 0.3) !important;
}

@media (max-width: 800px) {
  .prospecto-row {
    flex-wrap: wrap;
  }
  .col-nombre {
    flex: 1 1 100%;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
  }
}

.prospecto-detail {
  background: #f8fafc;
  border-top: 1px solid var(--border);
  padding: 15px;
  font-size: 0.85rem;
}
