/* V21: make the full A4 form visible inside the on-screen preview without horizontal clipping */
#printPreviewBody{
  overflow-x:hidden!important;
}
#printPreviewBody .ff-page{
  width:min(210mm, calc(100vw - 42px))!important;
  max-width:100%!important;
  height:auto!important;
  min-height:0!important;
  aspect-ratio:210 / 297;
  padding-left:8mm!important;
  padding-right:8mm!important;
}
#printPreviewBody .ff-table{
  width:100%!important;
  max-width:100%!important;
  table-layout:fixed!important;
}
#printPreviewBody .ff-table th{
  font-size:9.2px!important;
  padding:1.8px 1.6px!important;
  line-height:1.08!important;
}
#printPreviewBody .ff-table td,
#printPreviewBody .ff-table td .ff-edit{
  font-size:9.3px!important;
  padding:1.8px 1.6px!important;
  line-height:1.12!important;
  overflow-wrap:anywhere!important;
  white-space:normal!important;
}
/* Give the address column enough usable space while keeping every column within 100% */
#printPreviewBody .ff-table.family col:nth-child(1){width:18%!important}
#printPreviewBody .ff-table.family col:nth-child(2){width:5%!important}
#printPreviewBody .ff-table.family col:nth-child(3){width:15%!important}
#printPreviewBody .ff-table.family col:nth-child(4){width:17%!important}
#printPreviewBody .ff-table.family col:nth-child(5){width:5%!important}
#printPreviewBody .ff-table.family col:nth-child(6){width:12%!important}
#printPreviewBody .ff-table.family col:nth-child(7){width:28%!important}

#printPreviewBody .ff-table.finance col:nth-child(1){width:20%!important}
#printPreviewBody .ff-table.finance col:nth-child(2){width:15%!important}
#printPreviewBody .ff-table.finance col:nth-child(3){width:13%!important}
#printPreviewBody .ff-table.finance col:nth-child(4){width:14%!important}
#printPreviewBody .ff-table.finance col:nth-child(5){width:14%!important}
#printPreviewBody .ff-table.finance col:nth-child(6){width:24%!important}

/* Keep actual print output at exact A4 size */
@media print{
  #printPreviewBody .ff-page,
  .ff-page{
    width:210mm!important;
    height:297mm!important;
    min-height:297mm!important;
    aspect-ratio:auto!important;
    padding-left:9mm!important;
    padding-right:9mm!important;
  }
  .ff-table.family col:nth-child(1){width:18%!important}
  .ff-table.family col:nth-child(2){width:5%!important}
  .ff-table.family col:nth-child(3){width:15%!important}
  .ff-table.family col:nth-child(4){width:17%!important}
  .ff-table.family col:nth-child(5){width:5%!important}
  .ff-table.family col:nth-child(6){width:12%!important}
  .ff-table.family col:nth-child(7){width:28%!important}
}
