
/* Fit all 10 Dana Purchase columns in one screen without horizontal scrolling */
#danaTab .dp-ui-table{
  width:100%!important;
  min-width:0!important;
  table-layout:fixed!important;
}
#danaTab .dp-ui-table th,
#danaTab .dp-ui-table td{
  padding-left:6px!important;
  padding-right:6px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}

/* Compact distribution: keep useful space for Supplier, Challan and Actions */
#danaTab .dp-ui-table th:nth-child(1){width:9%!important}
#danaTab .dp-ui-table th:nth-child(2){width:13%!important}
#danaTab .dp-ui-table th:nth-child(3){width:13%!important}
#danaTab .dp-ui-table th:nth-child(4){width:7%!important}
#danaTab .dp-ui-table th:nth-child(5){width:7%!important}
#danaTab .dp-ui-table th:nth-child(6){width:11%!important}
#danaTab .dp-ui-table th:nth-child(7){width:10%!important}
#danaTab .dp-ui-table th:nth-child(8){width:10%!important}
#danaTab .dp-ui-table th:nth-child(9){width:12%!important}
#danaTab .dp-ui-table th:nth-child(10){width:8%!important}

/* Actions need both buttons visible side-by-side */
#danaTab .dp-ui-table th:last-child,
#danaTab .dp-ui-table td:last-child{
  overflow:visible!important;
  padding-left:4px!important;
  padding-right:4px!important;
}
#danaTab .dp-ui-table td:last-child .dp-action-edit,
#danaTab .dp-ui-table td:last-child .dp-action-delete{
  min-width:34px!important;
  height:26px!important;
  padding:0 6px!important;
  font-size:9px!important;
}
#danaTab .dp-ui-table td:last-child .dp-action-edit{
  margin-right:4px!important;
}

/* The register itself should not create a horizontal scrollbar */
#danaTab .dp-ui-table-wrap{
  overflow-x:hidden!important;
}
