/* citados.css — tabla tipo Excel de leads con visita agendada */

.citados-body { padding: 12px 16px; overflow-x: auto; }

.cit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.cit-table thead th {
  text-align: left;
  background: var(--bg-alt);
  color: var(--fg-muted);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 3;
}
.cit-table tbody td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.cit-table tbody tr { transition: background 0.1s; }
.cit-table tbody tr:hover { background: var(--hover); }
.cit-table .lead-link:hover strong { color: var(--accent-hover); }
.cit-center { text-align: center; }

.cit-muted { color: var(--fg-subtle); font-size: 12px; }

.cit-intentos {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-weight: 600;
  font-size: 12px;
}

.cit-chip {
  display: inline-block;
  padding: 2px 8px;
  margin: 1px 2px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  white-space: nowrap;
}
.cit-chip-done    { background: var(--accent-soft); color: var(--accent-hover); }
.cit-chip-pending { background: var(--warn-soft);   color: var(--warn-fg); }
.cit-chip-warn    { background: var(--danger-soft); color: var(--danger-fg); }

.cit-empty {
  padding: 32px;
  text-align: center;
  color: var(--fg-muted);
}

/* ---- Tabla: bulk actions + selección (features 2026-06-02) ---- */
.tabla-grid th:first-child, .tabla-grid td:first-child { width: 36px; }
.cit-table tr.row-sel { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.row-check, #tabla-check-all { width: 16px; height: 16px; cursor: pointer; accent-color: var(--accent); }

.bulkbar {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%);
  display: flex; align-items: center; gap: 10px; z-index: 1200;
  background: var(--surface, #1d1d22); color: var(--text, #eee);
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); border-radius: 12px;
  padding: 10px 14px; box-shadow: 0 8px 28px rgba(0,0,0,0.4);
  transition: transform .18s ease, opacity .18s ease; opacity: 0;
}
.bulkbar.show { transform: translate(-50%, 0); opacity: 1; }
/* La bulkbar siempre es oscura (surface fija) → azure claro legible en dark. */
.bulkbar .bulkbar-count { font-weight: 600; color: #76a8e4; white-space: nowrap; }
.bulkbar .input { min-width: 150px; }
.btn-danger { background: #c0392b; color: #fff; border: none; }
.btn-danger:hover { background: #a93226; }
@media (max-width: 720px) {
  .bulkbar { flex-wrap: wrap; max-width: 92vw; bottom: 12px; }
}
