/* G1079: short-viewport WMD Beranda & Akun only.
   Keep five Bon UJ records, real detail buttons and fixed bottom nav.
   Deliberately avoid dvh, clamp, :has for Android 9 WebView compatibility. */
@media(max-height:760px){
  body.g1020-office .g1077-account-screen .g1050-tab{
    min-height:28px!important;padding:2px!important;
  }
  body.g1020-office .g1077-account-screen .g1050-card{
    padding:4px 6px!important;
  }
  body.g1020-office .g1077-account-screen .g1050-cardhead{
    padding-bottom:2px!important;
  }
}
body.g1020-office .g1077-account-screen .g1078-account-footer{
  display:flex!important;
  flex-direction:column!important;
  gap:5px!important;
  align-items:stretch!important;
}
body.g1020-office .g1077-account-screen .g1078-account-footer>details,
body.g1020-office .g1077-account-screen .g1078-account-footer>.g1078-logout{
  width:100%!important;
  min-width:0!important;
  flex:none!important;
}
body.g1020-office .g1077-account-screen .g1078-account-footer>details>summary{
  min-height:30px!important;
  padding:5px 9px!important;
}
body.g1020-office .g1077-account-screen .g1078-account-footer>.g1078-logout{
  min-height:32px!important;
  padding:5px!important;
}
/* Save ~25-35px over five cards without hiding fields or reducing their font. */
body.g1020-office .g1030-home .g1029-bon-item.g1030-bon-item{
  padding:3px 3px 3px!important;
}
body.g1020-office .g1030-home .g1029-bon-head.g1030-bon-top{
  padding-bottom:2px!important;
  gap:4px!important;
}
body.g1020-office .g1030-home .g1029-bon-fields.g1030-bon-bottom{
  gap:4px!important;
}
body.g1020-office .g1030-home .g1029-detail-btn{
  min-height:27px!important;
  padding:4px 8px!important;
}
body.g1020-office .g1030-home .g1020-pagination{
  padding:2px 0 0!important;
  margin:1px 0 0!important;
}
/* On short phones keep list internal scrolling only if all five rich records
   exceed the available space; pagination must never hide below fixed nav. */
body.g1020-office .g1030-home .g1029-bon-list{
  max-height:180px!important; /* legacy WebView fallback */
  max-height:calc(50vh - 165px)!important; /* leave room for nav and pager */
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain;
}
@media(max-height:599px){
 body.g1020-office .g1030-home .g1029-bon-list{max-height:90px!important}
}
