/* G1078: exact 5 records per page, list-only internal scrolling on short HP.
   Pagination stays outside scroll area and remains clickable. */
body.g1020-office .g1030-home .g1029-bon-list{
  max-height:clamp(68px,calc(50dvh - 210px),300px)!important;
  overflow-y:auto!important;overflow-x:hidden!important;
  scrollbar-width:thin;overscroll-behavior:contain;
}
body.g1020-office .g1077-report-screen .g1020-table-wrap{
  max-height:clamp(85px,calc(100dvh - 505px),300px)!important;
  overflow-y:auto!important;overflow-x:hidden!important;
  scrollbar-width:thin;overscroll-behavior:contain;
}
body.g1020-office .g1030-home #g1020Paging,
body.g1020-office .g1077-report-screen #g1020Paging{
  flex:none;position:relative;z-index:1
}
/* Free vertical room without removing the PDF/Excel share controls. */
@media(max-height:760px){
 body.g1020-office .g1077-report-screen .g1071-export-note{display:none!important}
}
/* Account: a visible Logout button next to optional settings. */
body.g1020-office .g1077-account-screen .g1078-account-footer{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(105px,36%);
  align-items:stretch;gap:6px;min-width:0
}
body.g1020-office .g1077-account-screen .g1078-account-footer .g1077-account-more{min-width:0}
body.g1020-office .g1077-account-screen .g1078-account-footer .g1077-account-more>summary{
  display:flex;align-items:center;height:100%;min-height:36px;
  box-sizing:border-box;font-size:10px;line-height:1.2;padding:5px 9px
}
body.g1020-office .g1077-account-screen .g1078-account-footer .g1078-logout{
  display:flex!important;align-items:center;justify-content:center;gap:4px;
  margin:0!important;padding:5px 7px!important;min-height:36px!important;
  width:100%!important;background:#fff4f3!important;color:#a3312d!important;
  border:1px solid #e7b5b0!important;border-radius:8px!important;
  font-size:11px!important;font-weight:800!important
}
body.g1020-office .g1077-account-screen .g1078-logout svg{
  height:15px!important;width:15px!important;flex:none
}
@media(max-height:599px){
 body.g1020-office .g1077-report-screen .g1071-export-note{display:none!important}
 body.g1020-office .g1077-report-screen .g1020-table-wrap{max-height:55px!important}
}
body.g1020-office .g1077-account-screen .g1078-account-footer:has(>details[open]){
  display:flex;flex-direction:column
}
body.g1020-office .g1077-account-screen .g1078-account-footer:has(>details[open]) .g1078-logout{
  align-self:stretch
}
