/* NewlineWork safe responsive report/table repair, 2026-10-09.
 * Fix visual clipping without changing settlement source rows, amounts or printing. */
@media screen and (max-width:980px){
  html,html body,body.nw-ui-polish{
    touch-action:auto!important; /* restores browser two-finger pinch and pan */
  }
  html body #app,
  html body .app-shell,
  html body .app-shell>main,
  html body .app-shell #content,
  html body .app-shell #content>div,
  html body .app-shell #content>section{
    box-sizing:border-box!important;min-width:0!important;max-width:100%!important;
  }
  html body .app-shell #content{
    padding-bottom:calc(185px + env(safe-area-inset-bottom,0px))!important;
    scroll-padding-bottom:calc(155px + env(safe-area-inset-bottom,0px))!important;
  }
  html body .app-shell #content .settlement-report-document{
    box-sizing:border-box!important;display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    width:100%!important;max-width:100%!important;min-width:0!important;
    gap:15px!important;margin:0!important;
    overflow:visible!important;
  }
  html body .app-shell #content .settlement-report-document>.settlement-sheet-section,
  html body .app-shell #content .settlement-report-document>.settlement-sheet-header,
  html body .app-shell #content .settlement-report-block,
  html body .app-shell #content .settlement-report-block>.table-wrap{
    box-sizing:border-box!important;max-width:100%!important;min-width:0!important;
    width:100%!important;margin-left:0!important;margin-right:0!important;
  }
  html body .app-shell #content .settlement-sheet-summary-wrap,
  html body .app-shell #content .settlement-sheet-table-wrap,
  html body .app-shell #content .settlement-report-block .table-wrap,
  html body .app-shell #content .table-wrap{
    box-sizing:border-box!important;display:block!important;
    min-width:0!important;width:100%!important;max-width:100%!important;
    overflow-x:auto!important;overflow-y:hidden!important;
    overscroll-behavior-x:contain!important;
    -webkit-overflow-scrolling:touch!important;
    touch-action:auto!important;
    scrollbar-width:auto!important;
    scrollbar-color:#9eb4ce #edf2f8!important;
    position:relative!important;
  }
  html body .app-shell #content .settlement-sheet-summary-wrap::-webkit-scrollbar,
  html body .app-shell #content .settlement-sheet-table-wrap::-webkit-scrollbar,
  html body .app-shell #content .table-wrap::-webkit-scrollbar{height:9px!important}
  html body .app-shell #content .settlement-sheet-summary-wrap::-webkit-scrollbar-thumb,
  html body .app-shell #content .settlement-sheet-table-wrap::-webkit-scrollbar-thumb,
  html body .app-shell #content .table-wrap::-webkit-scrollbar-thumb{
    border-radius:9px!important;background:#aabbd0!important;
  }
  html body .app-shell #content .settlement-sheet-summary,
  html body .app-shell #content .settlement-sheet-table,
  html body .app-shell #content .settlement-report-table{
    box-sizing:border-box!important;
    width:max-content!important;max-width:none!important;
    min-width:var(--nw-report-minwidth,920px)!important;
    table-layout:auto!important;
    border-collapse:separate!important;
    border-spacing:0!important;
    margin:0!important;
  }
  html body .app-shell #content .settlement-sheet-summary{--nw-report-minwidth:1020px}
  html body .app-shell #content .settlement-sheet-table th,
  html body .app-shell #content .settlement-sheet-table td,
  html body .app-shell #content .settlement-sheet-summary th,
  html body .app-shell #content .settlement-sheet-summary td{
    box-sizing:border-box!important;
    overflow:visible!important;
    padding:8px 9px!important;
    font-size:11px!important;line-height:1.4!important;
    word-break:keep-all!important;overflow-wrap:normal!important;
    min-width:86px!important;
  }
  html body .app-shell #content .settlement-sheet-table td:nth-child(2),
  html body .app-shell #content .settlement-sheet-table td:nth-child(3){
    min-width:130px!important;max-width:260px!important;
    white-space:normal!important;overflow-wrap:anywhere!important;
  }
  html body .app-shell #content .settlement-sheet-summary td.num,
  html body .app-shell #content .settlement-sheet-table td.num{
    white-space:nowrap!important;font-variant-numeric:tabular-nums!important;
  }
  html body .app-shell #content .table-wrap.nw-has-hscroll>table{
    width:max-content!important;max-width:none!important;
    min-width:var(--nw-table-min,700px)!important;
    table-layout:auto!important;
  }
  html body .app-shell #content .nw-table-scrollbar{
    box-sizing:border-box!important;
    display:flex!important;align-items:center!important;justify-content:space-between!important;
    gap:9px!important;min-width:0!important;max-width:100%!important;
    padding:6px 1px!important;margin:0 0 5px!important;
    color:#58718f!important;font-size:11px!important;font-weight:650!important;
  }
  html body .app-shell #content .nw-table-scrollbar>span{min-width:0!important}
  html body .app-shell #content .nw-table-scrollbar .nw-scroll-actions{
    display:flex!important;gap:6px!important;flex:0 0 auto!important;
  }
  html body .app-shell #content .nw-table-scrollbar button{
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    min-height:32px!important;min-width:44px!important;
    padding:4px 9px!important;background:#edf5ff!important;
    border:1px solid #cfe0f7!important;border-radius:9px!important;
    color:#205caa!important;font-size:12px!important;font-weight:800!important;
    cursor:pointer!important;pointer-events:auto!important;
    touch-action:manipulation!important;
  }
  html body .app-shell #content .nw-table-scrollbar button:disabled{
    opacity:.38!important;cursor:default!important;
  }
  html body .app-shell #content .nw-table-scrollbar button:focus-visible{
    outline:2px solid #287ce0!important;outline-offset:2px!important;
  }
  /* Restore tap targets without overriding permission-based disabled states. */
  #topPrimaryMenu .top-primary-group-trigger:not(:disabled),
  #topPrimaryMenu .top-primary-dropdown button:not(:disabled),
  #nwPcTopMenuPortal a,
  #sidebar #nav button[data-page]:not(:disabled),
  #bottomQuick button:not(:disabled){
    pointer-events:auto!important;touch-action:manipulation!important;
  }
}
@media print{
  #content .nw-table-scrollbar{display:none!important}
  #content .settlement-sheet-table-wrap,#content .settlement-sheet-summary-wrap,
  #content .settlement-report-block .table-wrap{overflow:visible!important}
  #content .settlement-sheet-summary,#content .settlement-sheet-table,
  #content .settlement-report-table{width:100%!important;min-width:0!important;table-layout:fixed!important}
}