/* leads_table.css */

/* Alternating background colors for rows */
#leadsTable tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

#leadsTable tbody tr:nth-child(odd) {
  background-color: #ffffff;
}

/* Responsive table behavior */
@media (max-width: 768px) {
  #leadsTable table,
  #leadsTable thead,
  #leadsTable tbody,
  #leadsTable th,
  #leadsTable td,
  #leadsTable tr {
    display: block;
  }

  #leadsTable thead tr {
    display: none;
  }

  #leadsTable td {
    position: relative;
    padding-left: 50%;
    border-bottom: 1px solid #ccc;
  }

  #leadsTable td::before {
    position: absolute;
    left: 10px;
    width: 45%;
    white-space: nowrap;
    font-weight: bold;
  }

  #leadsTable td:nth-child(1)::before { content: "Name"; }
  #leadsTable td:nth-child(2)::before { content: "Phone"; }
  #leadsTable td:nth-child(3)::before { content: "Email"; }
  #leadsTable td:nth-child(4)::before { content: "Address"; }
  #leadsTable td:nth-child(5)::before { content: "Priority"; }
  #leadsTable td:nth-child(6)::before { content: "Status"; }
  #leadsTable td:nth-child(7)::before { content: "Actions"; }
}

/* Dropdowns auto-close when clicking outside already handled in JS */