/* G1123 — Five Bon UJ rows on the first MEmu phone screen.
   Preserve six labels in a 3x2 grid; align Detail at the right, not below.
   No business/API changes. Long values may wrap and permit safe vertical scroll. */
body.g1020-office.g1121-bon-page > header {
  min-height:54px!important;
  height:54px!important;
  padding-top:2px!important;
  padding-bottom:2px!important;
}
body.g1020-office.g1121-bon-page > header h1{
  font-size:13px!important;
  line-height:16px!important;
}
body.g1020-office.g1121-bon-page > header small{font-size:9px!important}
body.g1020-office.g1121-bon-page > main{
  height:calc(100dvh - 119px)!important;
  max-height:calc(100dvh - 119px)!important;
  padding:5px 6px 7px!important;
  scroll-padding-bottom:7px!important;
}
body.g1020-office.g1121-bon-page .g1020-screen{
  padding:7px 7px 6px!important;
  gap:4px!important;
  border-radius:11px!important;
  box-shadow:none!important;
}
body.g1020-office.g1121-bon-page .g1020-banner{
  padding:0 0 2px!important;
  margin:0!important;
}
body.g1020-office.g1121-bon-page .g1020-banner h2{
  font-size:15px!important;
  line-height:17px!important;
  margin:0 0 1px!important;
}
body.g1020-office.g1121-bon-page .g1020-company{
  font-size:9px!important;
  line-height:11px!important;
}
body.g1020-office.g1121-bon-page .g1020-kpis{
  gap:5px!important;
  margin:2px 0!important;
}
body.g1020-office.g1121-bon-page .g1020-kpi{
  min-height:40px!important;
  height:40px!important;
  padding:4px 6px!important;
  gap:6px!important;
  border-radius:8px!important;
}
body.g1020-office.g1121-bon-page .g1020-kpi-icon{
  width:24px!important;
  min-width:24px!important;
  height:24px!important;
  border-radius:6px!important;
}
body.g1020-office.g1121-bon-page .g1020-kpi-copy strong{
  font-size:14px!important;
  line-height:16px!important;
}
body.g1020-office.g1121-bon-page .g1020-kpi-copy small{
  font-size:8px!important;
  line-height:9px!important;
}
body.g1020-office.g1121-bon-page .g1027-actions {
  margin:1px 0!important;
  gap:3px!important;
  padding:0!important;
}
body.g1020-office.g1121-bon-page .g1027-actions-title{
  font-size:9px!important;
  line-height:11px!important;
  margin:0!important;
}
body.g1020-office.g1121-bon-page .g1027-actions-row{
  gap:5px!important;
}
body.g1020-office.g1121-bon-page .g1027-quick{
  min-height:30px!important;
  height:30px!important;
  padding:4px 6px!important;
  border-radius:7px!important;
  font-size:9px!important;
}
body.g1020-office.g1121-bon-page .g1020-section-heading{
  padding:0!important;
  min-height:22px!important;
}
body.g1020-office.g1121-bon-page .g1020-section-heading h3{
  font-size:11px!important;
  line-height:14px!important;
}
body.g1020-office.g1121-bon-page .g1020-section-heading .g1020-text-link{
  min-height:22px!important;
  font-size:9px!important;
}
body.g1020-office.g1121-bon-page .g1020-list-card{
  gap:3px!important;
  padding:5px!important;
  margin:0!important;
  border-radius:9px!important;
}
body.g1020-office.g1121-bon-page .g1020-searchrow{
  margin:0 0 3px!important;
  gap:5px!important;
}
body.g1020-office.g1121-bon-page .g1020-search{
  min-height:28px!important;
  height:28px!important;
  padding:0 7px!important;
  border-radius:7px!important;
}
body.g1020-office.g1121-bon-page .g1020-search input{
  height:27px!important;
  min-height:27px!important;
  font-size:9px!important;
}
body.g1020-office.g1121-bon-page .g1020-filter-btn{
  min-height:28px!important;
  height:28px!important;
  width:31px!important;
  border-radius:7px!important;
}
body.g1020-office.g1121-bon-page .g1029-bon-list{
  border-radius:7px!important;
}
body.g1020-office.g1121-bon-page .g1029-bon-list .g1122-bon-item{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 43px!important;
  grid-template-rows:auto!important;
  gap:3px!important;
  align-items:center!important;
  padding:3px 4px!important;
  border-bottom:1px solid #e4ebf3!important;
  min-width:0!important;
  margin:0!important;
}
body.g1020-office.g1121-bon-page .g1122-bon-grid{
  grid-column:1!important;
  grid-row:1!important;
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  grid-template-rows:repeat(2,minmax(0,auto))!important;
  column-gap:3px!important;
  row-gap:2px!important;
  padding:0!important;
  width:100%!important;
  align-items:start!important;
}
body.g1020-office.g1121-bon-page .g1122-bon-grid>.g1029-bon-field{
  gap:0!important;
  padding:0!important;
  min-width:0!important;
}
body.g1020-office.g1121-bon-page .g1122-bon-grid>.g1029-bon-field small{
  font-size:7.5px!important;
  line-height:9px!important;
  letter-spacing:-.1px!important;
  white-space:nowrap!important;
  overflow:visible!important;
  color:#56728b!important;
}
body.g1020-office.g1121-bon-page .g1122-bon-grid>.g1029-bon-field>span{
  font-size:8.9px!important;
  line-height:11px!important;
  letter-spacing:-.05px!important;
  font-weight:700!important;
  overflow-wrap:anywhere!important;
  white-space:normal!important;
}
body.g1020-office.g1121-bon-page .g1122-bon-grid>.g1029-bon-field:first-child>span{
  font-size:9px!important;
  line-height:11px!important;
}
body.g1020-office.g1121-bon-page .g1122-bon-footer{
  grid-column:2!important;
  grid-row:1!important;
  width:43px!important;
  height:auto!important;
  min-height:0!important;
  border:0!important;
  padding:0!important;
  margin:0!important;
  justify-content:center!important;
  align-self:center!important;
}
body.g1020-office.g1121-bon-page .g1122-bon-footer .g1029-detail-btn{
  width:43px!important;
  min-width:43px!important;
  height:34px!important;
  min-height:34px!important;
  padding:4px 2px!important;
  font-size:9px!important;
  border-radius:6px!important;
}
body.g1020-office.g1121-bon-page #g1020Paging{
  padding:2px 0 0!important;
  margin:0!important;
}
body.g1020-office.g1121-bon-page .g1020-pagination{
  padding:2px 0 0!important;
  margin:0!important;
  min-height:22px!important;
}
body.g1020-office.g1121-bon-page #portalTabs.g1020-bottom-nav:not(.hide){
  min-height:57px!important;
  height:57px!important;
  padding:3px 4px 2px!important;
}
body.g1020-office.g1121-bon-page #portalTabs.g1020-bottom-nav>button.g1020-tab{
  height:50px!important;
  min-height:50px!important;
  gap:2px!important;
  padding:2px 1px!important;
  font-size:9px!important;
}
body.g1020-office.g1121-bon-page #portalTabs .g1020-tab-icon svg{
  height:19px!important;
  width:19px!important;
}
@media(max-width:350px){
  body.g1020-office.g1121-bon-page .g1122-bon-grid>.g1029-bon-field small{font-size:7.2px!important}
  body.g1020-office.g1121-bon-page .g1122-bon-grid>.g1029-bon-field>span{font-size:8.5px!important}
}

/* G1123 phone-height fit refinements: fixed two compact information lines
   per card. Full values remain in the read-only Detail dialog. */
body.g1020-office.g1121-bon-page .g1020-screen {gap:2px!important;padding:5px 6px 4px!important}
body.g1020-office.g1121-bon-page .g1020-banner{padding-bottom:1px!important}
body.g1020-office.g1121-bon-page .g1020-kpis{gap:3px!important;margin:1px 0!important}
body.g1020-office.g1121-bon-page .g1020-kpi{min-height:35px!important;height:35px!important;padding:2px 5px!important}
body.g1020-office.g1121-bon-page .g1020-kpi-icon{height:21px!important;width:21px!important;min-width:21px!important}
body.g1020-office.g1121-bon-page .g1020-kpi-copy strong{font-size:13px!important;line-height:13px!important}
body.g1020-office.g1121-bon-page .g1020-kpi-copy small{font-size:8px!important;line-height:9px!important}
body.g1020-office.g1121-bon-page .g1027-actions{gap:1px!important;margin:0!important}
body.g1020-office.g1121-bon-page .g1027-actions-title{line-height:9px!important}
body.g1020-office.g1121-bon-page .g1027-quick{height:27px!important;min-height:27px!important}
body.g1020-office.g1121-bon-page .g1020-section-heading{height:17px!important;min-height:17px!important}
body.g1020-office.g1121-bon-page .g1020-section-heading h3{line-height:13px!important}
body.g1020-office.g1121-bon-page .g1020-section-heading .g1020-text-link{height:17px!important;min-height:17px!important}
body.g1020-office.g1121-bon-page .g1020-list-card{padding:3px!important;gap:2px!important}
body.g1020-office.g1121-bon-page .g1020-searchrow{margin:0 0 1px!important}
body.g1020-office.g1121-bon-page .g1020-search{min-height:26px!important;height:26px!important}
body.g1020-office.g1121-bon-page .g1020-search input{min-height:25px!important;height:25px!important}
body.g1020-office.g1121-bon-page .g1020-filter-btn{height:26px!important;min-height:26px!important}
body.g1020-office.g1121-bon-page .g1029-bon-list .g1122-bon-item{
  min-height:39px!important;
  height:39px!important;
  max-height:39px!important;
  overflow:hidden!important;
  padding:2px 3px!important;
  gap:2px!important;
}
body.g1020-office.g1121-bon-page .g1122-bon-grid {
  grid-template-rows:repeat(2,16px)!important;
  row-gap:1px!important;
  column-gap:3px!important;
  height:33px!important;
  max-height:33px!important;
  overflow:hidden!important;
}
body.g1020-office.g1121-bon-page .g1122-bon-grid>.g1029-bon-field {
  max-height:16px!important;
  height:16px!important;
  overflow:hidden!important;
}
body.g1020-office.g1121-bon-page .g1122-bon-grid>.g1029-bon-field small {
  font-size:7.1px!important;
  line-height:8px!important;
  height:8px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:clip!important;
  letter-spacing:-.2px!important;
}
body.g1020-office.g1121-bon-page .g1122-bon-grid>.g1029-bon-field>span {
  font-size:8.3px!important;
  line-height:8px!important;
  height:8px!important;
  overflow:hidden!important;
  white-space:nowrap!important;
  text-overflow:ellipsis!important;
  word-break:normal!important;
}
body.g1020-office.g1121-bon-page .g1122-bon-grid>.g1029-bon-field:first-child>span{
  font-size:8.5px!important;
  line-height:8px!important;
}
body.g1020-office.g1121-bon-page .g1122-bon-footer .g1029-detail-btn{
  height:29px!important;
  min-height:29px!important;
  font-size:8.5px!important;
}
body.g1020-office.g1121-bon-page #g1020Paging{padding:0!important}
body.g1020-office.g1121-bon-page .g1020-pagination{
  min-height:24px!important;
  height:24px!important;
  padding:0!important;
  display:flex!important;
  align-items:center!important;
}
body.g1020-office.g1121-bon-page .g1020-page-buttons{
  display:flex!important;
  align-items:center!important;
  gap:2px!important;
}
body.g1020-office.g1121-bon-page .g1020-page-buttons button,
body.g1020-office.g1121-bon-page .g1020-pagination button{
  min-height:21px!important;
  height:21px!important;
  min-width:21px!important;
  padding:1px 3px!important;
  font-size:8.5px!important;
}
body.g1020-office.g1121-bon-page .g1020-pagination small{font-size:8px!important}


/* Make the list below Bon UJ filters fit one MEmu screen as well. */
body.g1020-office.g1121-bon-page .g1020-subnav,
body.g1020-office.g1121-bon-page .g1055-report-nav{
  min-height:35px!important;
  height:35px!important;
  margin:0!important;
}
body.g1020-office.g1121-bon-page .g1020-subnav button.g1020-sub{
  min-height:35px!important;
  height:35px!important;
  padding:4px 2px!important;
  font-size:9px!important;
}
body.g1020-office.g1121-bon-page .g1020-primary{
  min-height:34px!important;
  height:34px!important;
  margin:0!important;
  font-size:10px!important;
}
body.g1020-office.g1121-bon-page .g1020-chips{
  gap:4px!important;
  margin:0!important;
}
body.g1020-office.g1121-bon-page .g1020-chip{
  min-height:28px!important;
  height:28px!important;
  padding:3px 7px!important;
  font-size:9px!important;
}
body.g1020-office.g1121-bon-page .g1020-dates{
  gap:5px!important;
  margin:0!important;
}
body.g1020-office.g1121-bon-page .g1020-dates label{
  gap:1px!important;
  font-size:9px!important;
}
body.g1020-office.g1121-bon-page .g1020-dates input{
  min-height:32px!important;
  height:32px!important;
  padding:2px 5px!important;
  font-size:10px!important;
}
body.g1020-office.g1121-bon-page .g1020-report-note{
  font-size:9px!important;
  line-height:12px!important;
  margin:0!important;
  padding:0!important;
}


/* G1123 final legibility tune: 40px per record with readable one-line labels.
   Long source values can be opened in the full Detail dialog. */
body.g1020-office.g1121-bon-page .g1029-bon-list .g1122-bon-item{
  min-height:40px!important;height:40px!important;max-height:40px!important;
}
body.g1020-office.g1121-bon-page .g1122-bon-grid{
  grid-template-rows:repeat(2,17px)!important;
  height:35px!important;max-height:35px!important;
}
body.g1020-office.g1121-bon-page .g1122-bon-grid>.g1029-bon-field{
  height:17px!important;max-height:17px!important;
}
body.g1020-office.g1121-bon-page .g1122-bon-grid>.g1029-bon-field small{
  font-size:7.8px!important;line-height:8px!important;height:8px!important;
}
body.g1020-office.g1121-bon-page .g1122-bon-grid>.g1029-bon-field>span{
  font-size:9.1px!important;line-height:9px!important;height:9px!important;
}
body.g1020-office.g1121-bon-page .g1122-bon-grid>.g1029-bon-field:first-child>span{
  font-size:9.1px!important;line-height:9px!important;
}


/* G1123 responsive legibility: taller phones (including actual MEmu 576x1024)
   can use comfortable typography without sacrificing 5-visible-records. */
@media (min-height:750px){
body.g1020-office.g1121-bon-page > header{min-height:60px!important;height:60px!important}
body.g1020-office.g1121-bon-page > header h1{font-size:15px!important;line-height:18px!important}
body.g1020-office.g1121-bon-page > header small{font-size:10px!important}
body.g1020-office.g1121-bon-page > main{
  height:calc(100dvh - 130px)!important;
  max-height:calc(100dvh - 130px)!important;
  padding:8px 7px 10px!important;
}
body.g1020-office.g1121-bon-page .g1020-screen{
  gap:7px!important;padding:9px 9px 10px!important;
}
body.g1020-office.g1121-bon-page .g1020-banner h2{
  font-size:18px!important;line-height:21px!important;
}
body.g1020-office.g1121-bon-page .g1020-company{font-size:10px!important;line-height:13px!important}
body.g1020-office.g1121-bon-page .g1020-kpis{gap:6px!important;margin:3px 0!important}
body.g1020-office.g1121-bon-page .g1020-kpi{
  min-height:51px!important;height:51px!important;padding:6px 7px!important;
}
body.g1020-office.g1121-bon-page .g1020-kpi-icon{
  width:27px!important;min-width:27px!important;height:27px!important;
}
body.g1020-office.g1121-bon-page .g1020-kpi-copy strong{font-size:18px!important;line-height:19px!important}
body.g1020-office.g1121-bon-page .g1020-kpi-copy small{font-size:9.5px!important;line-height:10px!important}
body.g1020-office.g1121-bon-page .g1027-actions{gap:3px!important;margin:2px 0!important}
body.g1020-office.g1121-bon-page .g1027-actions-title{font-size:10px!important;line-height:12px!important}
body.g1020-office.g1121-bon-page .g1027-quick{
  min-height:38px!important;height:38px!important;font-size:11px!important;
}
body.g1020-office.g1121-bon-page .g1020-section-heading{
  height:23px!important;min-height:23px!important;
}
body.g1020-office.g1121-bon-page .g1020-section-heading h3{font-size:13px!important;line-height:16px!important}
body.g1020-office.g1121-bon-page .g1020-section-heading .g1020-text-link{
  height:23px!important;min-height:23px!important;font-size:10px!important;
}
body.g1020-office.g1121-bon-page .g1020-list-card{
  gap:5px!important;padding:6px!important;
}
body.g1020-office.g1121-bon-page .g1020-search{
  min-height:36px!important;height:36px!important;
}
body.g1020-office.g1121-bon-page .g1020-search input{
  min-height:35px!important;height:35px!important;font-size:11px!important;
}
body.g1020-office.g1121-bon-page .g1020-filter-btn{
  min-height:36px!important;height:36px!important;width:37px!important;
}
body.g1020-office.g1121-bon-page .g1029-bon-list .g1122-bon-item{
  min-height:60px!important;height:60px!important;max-height:60px!important;
  grid-template-columns:minmax(0,1fr) 57px!important;
  column-gap:5px!important;
  padding:4px 5px!important;
}
body.g1020-office.g1121-bon-page .g1122-bon-grid{
  grid-template-rows:repeat(2,24px)!important;
  column-gap:5px!important;row-gap:2px!important;
  height:50px!important;max-height:50px!important;
}
body.g1020-office.g1121-bon-page .g1122-bon-grid>.g1029-bon-field{
  height:24px!important;max-height:24px!important;
}
body.g1020-office.g1121-bon-page .g1122-bon-grid>.g1029-bon-field small{
  font-size:10px!important;line-height:11px!important;height:11px!important;
  letter-spacing:0!important;
}
body.g1020-office.g1121-bon-page .g1122-bon-grid>.g1029-bon-field>span,
body.g1020-office.g1121-bon-page .g1122-bon-grid>.g1029-bon-field:first-child>span{
  font-size:11.5px!important;line-height:13px!important;height:13px!important;
}
body.g1020-office.g1121-bon-page .g1122-bon-footer{
  width:57px!important;
}
body.g1020-office.g1121-bon-page .g1122-bon-footer .g1029-detail-btn{
  width:57px!important;min-width:57px!important;
  height:42px!important;min-height:42px!important;
  font-size:10px!important;
}
body.g1020-office.g1121-bon-page .g1020-pagination{
  min-height:30px!important;height:30px!important;
}
body.g1020-office.g1121-bon-page .g1020-page-buttons button,
body.g1020-office.g1121-bon-page .g1020-pagination button{
  height:27px!important;min-height:27px!important;
  min-width:27px!important;font-size:10px!important;
}
body.g1020-office.g1121-bon-page .g1020-pagination small{font-size:9.5px!important}
body.g1020-office.g1121-bon-page #portalTabs.g1020-bottom-nav:not(.hide){
  min-height:65px!important;height:65px!important;
}
body.g1020-office.g1121-bon-page #portalTabs.g1020-bottom-nav>button.g1020-tab{
  min-height:56px!important;height:56px!important;font-size:10px!important;
}
body.g1020-office.g1121-bon-page .g1020-subnav,
body.g1020-office.g1121-bon-page .g1055-report-nav{
  min-height:42px!important;height:42px!important;
}
body.g1020-office.g1121-bon-page .g1020-subnav button.g1020-sub{
  min-height:42px!important;height:42px!important;font-size:10px!important;
}
body.g1020-office.g1121-bon-page .g1020-primary{
  min-height:42px!important;height:42px!important;font-size:11px!important;
}
body.g1020-office.g1121-bon-page .g1020-chip{
  min-height:34px!important;height:34px!important;font-size:10px!important;
}
body.g1020-office.g1121-bon-page .g1020-dates input{
  min-height:40px!important;height:40px!important;font-size:11px!important;
}
body.g1020-office.g1121-bon-page .g1020-report-note{
  font-size:10px!important;line-height:14px!important;
}
}

