/* G1009 — final bottom-navigation ownership for GGS Android.
   Only CSS/layout; all role routes and click handlers remain untouched.
   Loaded after the legacy G470/G514/G528/G682/G724 stylesheets. */
html body #portalTabs.hide,html body #tabs.hide,
html body #portalTabs[hidden],html body #tabs[hidden],
html body[data-g1009-nav="locked"] #portalTabs,
html body[data-g1009-nav="locked"] #tabs,
html body[data-g1009-nav="driver"] #portalTabs,
html body[data-g1009-nav="portal"] #tabs{
  display:none!important;visibility:hidden!important;pointer-events:none!important;
}
html body[data-g1009-nav="driver"] #tabs:not(.hide),
html body[data-g1009-nav="portal"] #portalTabs:not(.hide){
  position:fixed!important;left:0!important;right:0!important;bottom:0!important;
  width:100%!important;max-width:100vw!important;min-width:0!important;
  display:grid!important;
  grid-template-columns:repeat(var(--g1009-count,5),minmax(0,1fr))!important;
  gap:0!important;align-items:stretch!important;justify-items:stretch!important;
  padding:5px max(5px,env(safe-area-inset-right))
          calc(6px + env(safe-area-inset-bottom))
          max(5px,env(safe-area-inset-left))!important;
  min-height:66px!important;height:auto!important;
  box-sizing:border-box!important;overflow:hidden!important;
  background:#fff!important;border-top:1px solid #dbe4ed!important;
  z-index:99!important;white-space:normal!important;
}
html body[data-g1009-nav] #portalTabs:not(.hide)>button:not(.hide),
html body[data-g1009-nav] #tabs:not(.hide)>button:not(.hide){
  min-width:0!important;max-width:100%!important;width:100%!important;
  min-height:55px!important;height:55px!important;max-height:55px!important;
  margin:0!important;padding:4px 1px!important;box-sizing:border-box!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  flex-direction:column!important;flex:0 1 auto!important;gap:3px!important;
  overflow:hidden!important;text-align:center!important;white-space:nowrap!important;
  font:600 10px/13px Roboto,Arial,sans-serif!important;
}
html body[data-g1009-nav] #portalTabs:not(.hide)>button:not(.hide)>span,
html body[data-g1009-nav] #tabs:not(.hide)>button:not(.hide)>span{
  display:block;max-width:100%;min-width:0;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap;line-height:13px!important;
}
html body[data-g1009-nav] #portalTabs:not(.hide)>button:not(.hide) svg,
html body[data-g1009-nav] #tabs:not(.hide)>button:not(.hide) svg,
html body[data-g1009-nav] #portalTabs:not(.hide)>button:not(.hide) .wx-icon,
html body[data-g1009-nav] #tabs:not(.hide)>button:not(.hide) .wx-icon{
  width:21px!important;height:21px!important;max-height:21px!important;
  margin:0!important;flex-shrink:0!important;
}
html body[data-g1009-nav="portal"] #portalContent,
html body[data-g1009-nav="driver"] #content{
  padding-bottom:calc(95px + env(safe-area-inset-bottom))!important;
}
/* Existing G513 full-screen map must own the entire viewport: no nav and
   no bottom content spacer, even while the role remains authenticated. */
html body.g513-fullscreen[data-g1009-nav] #portalTabs,
html body.g513-fullscreen[data-g1009-nav] #tabs{
  display:none!important;visibility:hidden!important;pointer-events:none!important;
}
html body.g513-fullscreen[data-g1009-nav] main,
html body.g513-fullscreen[data-g1009-nav] #portalContent,
html body.g513-fullscreen[data-g1009-nav] #content{
  padding:0!important;
}
@media(max-width:350px){
 html body[data-g1009-nav] #portalTabs:not(.hide)>button:not(.hide),
 html body[data-g1009-nav] #tabs:not(.hide)>button:not(.hide){
    font-size:9px!important;
 }
}
