/* V58 Patient records layout. Original patient filters remain unchanged. */
#page-patients .crm-inline-clear,
#page-patients .crm-inline-filter-head button:not(.crm-patient-sort-btn){
  display:none!important;
}

#page-patients .crm-patients-table-v57{
  table-layout:fixed!important;
  width:100%!important;
}

#page-patients .crm-patients-table-v57 th,
#page-patients .crm-patients-table-v57 td{
  padding:14px 12px!important;
  text-align:left!important;
  vertical-align:middle!important;
  overflow-wrap:anywhere;
}

#page-patients .crm-patients-table-v57 th:nth-child(1),
#page-patients .crm-patients-table-v57 td:nth-child(1){width:15%;}
#page-patients .crm-patients-table-v57 th:nth-child(2),
#page-patients .crm-patients-table-v57 td:nth-child(2){width:15%;}
#page-patients .crm-patients-table-v57 th:nth-child(3),
#page-patients .crm-patients-table-v57 td:nth-child(3){width:12%;}
#page-patients .crm-patients-table-v57 th:nth-child(4),
#page-patients .crm-patients-table-v57 td:nth-child(4){width:11%;}
#page-patients .crm-patients-table-v57 th:nth-child(5),
#page-patients .crm-patients-table-v57 td:nth-child(5){width:12%;}
#page-patients .crm-patients-table-v57 th:nth-child(6),
#page-patients .crm-patients-table-v57 td:nth-child(6){width:11%;}
#page-patients .crm-patients-table-v57 th:nth-child(7),
#page-patients .crm-patients-table-v57 td:nth-child(7){width:9%;}
#page-patients .crm-patients-table-v57 th:nth-child(8),
#page-patients .crm-patients-table-v57 td:nth-child(8){width:9%;}
#page-patients .crm-patients-table-v57 th:nth-child(9),
#page-patients .crm-patients-table-v57 td:nth-child(9){width:16%;}

#page-patients .crm-v57-email{
  color:var(--text4)!important;
  font-size:12.5px!important;
}

#page-patients .crm-patients-table-v57 .crm-patient-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  flex-wrap:nowrap!important;
  gap:6px!important;
}

#page-patients .crm-patients-table-v57 .crm-patient-actions .btn,
#page-patients .crm-patients-table-v57 .crm-patient-actions .wa-btn{
  min-width:auto!important;
  padding:7px 10px!important;
  font-size:10px!important;
}

#page-patients .crm-patient-v57-mobile-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}

#page-patients .crm-patient-mobile-card > .crm-mobile-card-actions > .crm-patient-actions{
  width:100%;
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr));
}

#page-patients .crm-patient-mobile-card > .crm-mobile-card-actions > .crm-patient-actions .btn-red{
  grid-column:1 / -1;
}

#page-patients [data-v57-location-summary]{
  display:contents;
}

@media(max-width:1280px){
  #page-patients .crm-patients-table-v57 th,
  #page-patients .crm-patients-table-v57 td{padding:12px 9px!important;font-size:12px!important;}
}


@media(max-width:760px){
  #page-patients .crm-patient-v57-mobile-grid{grid-template-columns:1fr 1fr!important;}
}

@media(max-width:430px){
  #page-patients .crm-patient-v57-mobile-grid{grid-template-columns:1fr!important;}
}
