#havenActiveLeads{min-width:0}
#havenActiveLeads .leadFilters input,
#havenActiveLeads .leadFilters select{background:#091b2c;color:#edf6ff;border:1px solid #34556d;min-height:46px;font-size:16px}
#havenActiveLeads .leadCardButton:hover{border-color:#6ea5c9}
#havenActiveLeads .leadCardButton:active{transform:scale(.995)}
#havenActiveLeads #havenLeadsBoard>div{box-sizing:border-box}
#havenLeadDetail .leadDetailPanel a{color:#c5e8ff}
@media(min-width:701px) and (max-width:1100px){
 #havenActiveLeads #havenLeadsBoard{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible!important;gap:12px}
 #havenActiveLeads #havenLeadsBoard>div{width:100%;min-width:0!important;max-width:none!important}
}
@media(max-width:700px){
 #havenActiveLeads .leadFilters{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
 #havenActiveLeads #leadQuery{grid-column:1/-1}
 #havenActiveLeads .leadFilters input,#havenActiveLeads .leadFilters select{width:100%;min-width:0!important}
 #havenLeadDetail .leadDetailPanel{padding:16px!important}
 #havenActiveLeads .leadCardButton{min-height:58px}
}

/* Phone and narrow tablet: stack pipeline stages vertically, never swipe sideways. */
@media(max-width:900px){
 #havenActiveLeads{width:100%;max-width:100%;min-width:0;overflow-x:hidden}
 #havenActiveLeads #havenLeadsBoard{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-auto-flow:row!important;
  width:100%!important;
  max-width:100%!important;
  overflow-x:hidden!important;
  overflow-y:visible!important;
  gap:14px!important;
  padding:8px 0!important;
 }
 #havenActiveLeads #havenLeadsBoard>div{
  display:block!important;
  grid-column:1/-1!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  flex:none!important;
  box-sizing:border-box!important;
 }
 #havenActiveLeads .leadCardButton{max-width:100%;overflow-wrap:anywhere}
}
