/* AMI VISION v2.9.364 — Contacts layout only. No API or data changes. */
#content [data-bank-view="contacts"] .rzx260-contact-search-row{
  display:flex!important;flex-wrap:wrap!important;align-items:flex-end!important;
  gap:12px!important;padding:14px!important;
}
#content [data-bank-view="contacts"] .rzx259-search{
  display:grid!important;grid-template-columns:minmax(200px,1.4fr) repeat(3,minmax(125px,1fr)) auto auto!important;
  align-items:end!important;gap:10px!important;flex:1 1 100%!important;
  width:100%!important;max-width:none!important;min-width:0!important;
  margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;
}
#content [data-bank-view="contacts"] .rzx259-search label,
#content [data-bank-view="contacts"] .rzx259-search label.grow{
  min-width:0!important;width:100%!important;max-width:none!important;
  flex:initial!important;margin:0!important;gap:5px!important;
}
#content [data-bank-view="contacts"] .rzx259-search :is(input,select){
  min-width:0!important;width:100%!important;max-width:100%!important;
  height:40px!important;box-sizing:border-box!important;
}
#content [data-bank-view="contacts"] .rzx259-search > button{
  width:auto!important;min-width:0!important;height:40px!important;
  white-space:nowrap!important;padding:7px 13px!important;
}
#content [data-bank-view="contacts"] .rzx259-contact-actions{
  display:flex!important;align-items:center!important;justify-content:flex-end!important;
  flex-wrap:wrap!important;gap:8px!important;margin-left:auto!important;width:auto!important;
}
#content [data-bank-view="contacts"] .rzx259-contact-actions .btn{
  flex:0 0 auto!important;width:auto!important;max-width:100%!important;
  min-height:36px!important;padding:8px 11px!important;white-space:nowrap!important;
}
/* The table proportions apply only to Contacts, not other RazorpayX tables. */
#content [data-bank-view="contacts"] #rzx205-table table.rzx16-table{
  width:100%!important;min-width:760px!important;table-layout:fixed!important;
}
#content [data-bank-view="contacts"] #rzx205-table table.rzx16-table :is(th,td):nth-child(1){width:27%!important}
#content [data-bank-view="contacts"] #rzx205-table table.rzx16-table :is(th,td):nth-child(2){width:12%!important}
#content [data-bank-view="contacts"] #rzx205-table table.rzx16-table :is(th,td):nth-child(3){width:14%!important}
#content [data-bank-view="contacts"] #rzx205-table table.rzx16-table :is(th,td):nth-child(4){width:20%!important}
#content [data-bank-view="contacts"] #rzx205-table table.rzx16-table :is(th,td):nth-child(5){width:15%!important}
#content [data-bank-view="contacts"] #rzx205-table table.rzx16-table :is(th,td):nth-child(6){width:12%!important}
#content [data-bank-view="contacts"] #rzx205-table table.rzx16-table :is(th,td):nth-child(4){
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
#content [data-bank-view="contacts"] #rzx205-table .rzx16-table td{box-sizing:border-box!important}
#content [data-bank-view="contacts"] #rzx205-table .rzx16-table td:nth-child(1) b{
  overflow-wrap:anywhere!important;
}
@media(max-width:1100px){
 #content [data-bank-view="contacts"] .rzx259-search{grid-template-columns:minmax(170px,2fr) repeat(3,minmax(110px,1fr))!important}
 #content [data-bank-view="contacts"] .rzx259-search > button{justify-self:start!important}
}
@media(max-width:720px){
 #content [data-bank-view="contacts"] .rzx259-search{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #content [data-bank-view="contacts"] .rzx259-search > label:first-child{grid-column:span 2}
 #content [data-bank-view="contacts"] .rzx259-contact-actions{justify-content:flex-start!important;margin-left:0!important}
 #content [data-bank-view="contacts"] #rzx205-table .rzx16-table-wrap{overflow-x:auto!important;-webkit-overflow-scrolling:touch}
}
