/* RenoPilot R187 — compact, non-scrolling desktop navigation.
   The commercial shell is the only desktop navigation; keep every item in
   the viewport and prevent legacy/global icon rules from expanding the UI. */
@media (min-width: 981px){
  body.rp-commercial #rp4Sidebar{
    height:100dvh!important;
    min-height:0!important;
    overflow:hidden!important;
    padding:14px 12px 12px!important;
  }
  body.rp-commercial #rp4Sidebar .rp4-brand{
    flex:0 0 auto!important;
    gap:11px!important;
    padding:5px 6px 14px!important;
    margin-bottom:9px!important;
  }
  body.rp-commercial #rp4Sidebar .rp4-brand>span{
    width:42px!important;
    height:42px!important;
    border-radius:13px!important;
    font-size:20px!important;
  }
  body.rp-commercial #rp4Sidebar .rp4-brand b{font-size:18px!important}
  body.rp-commercial #rp4Sidebar .rp4-brand small{font-size:11px!important;margin-top:2px!important}
  body.rp-commercial #rp4Sidebar .rp-ui-version{font-size:9px!important;margin-top:2px!important}
  body.rp-commercial #rp4Sidebar .rp4-nav{
    flex:1 1 auto!important;
    min-height:0!important;
    overflow:hidden!important;
    gap:8px!important;
    padding:0 2px!important;
  }
  body.rp-commercial #rp4Sidebar .rp4-nav-group{gap:1px!important}
  body.rp-commercial #rp4Sidebar .rp4-nav-group>small{
    padding:3px 8px 3px!important;
    font-size:9px!important;
    line-height:1.1!important;
  }
  body.rp-commercial #rp4Sidebar .rp4-nav button{
    height:39px!important;
    min-height:39px!important;
    padding:0 9px!important;
    gap:10px!important;
    border-radius:10px!important;
    font-size:13px!important;
    line-height:1!important;
  }
  body.rp-commercial #rp4Sidebar .rp4-nav button i{
    width:29px!important;
    height:29px!important;
    flex:0 0 29px!important;
    border-radius:9px!important;
  }
  body.rp-commercial #rp4Sidebar .rp4-nav button i svg{
    width:16px!important;
    height:16px!important;
  }
  body.rp-commercial #rp4Sidebar .rp4-more{
    flex:0 0 38px!important;
    height:38px!important;
    min-height:38px!important;
    margin-top:7px!important;
    border-radius:10px!important;
    font-size:12px!important;
  }
}

/* Short desktop windows: preserve the full menu without introducing a rail. */
@media (min-width:981px) and (max-height:700px){
  body.rp-commercial #rp4Sidebar{padding-top:9px!important;padding-bottom:8px!important}
  body.rp-commercial #rp4Sidebar .rp4-brand{padding-bottom:9px!important;margin-bottom:5px!important}
  body.rp-commercial #rp4Sidebar .rp4-brand>span{width:36px!important;height:36px!important;font-size:18px!important}
  body.rp-commercial #rp4Sidebar .rp4-brand b{font-size:16px!important}
  body.rp-commercial #rp4Sidebar .rp4-brand small{display:none!important}
  body.rp-commercial #rp4Sidebar .rp-ui-version{display:none!important}
  body.rp-commercial #rp4Sidebar .rp4-nav{gap:4px!important}
  body.rp-commercial #rp4Sidebar .rp4-nav-group>small{padding-top:2px!important;padding-bottom:2px!important;font-size:8px!important}
  body.rp-commercial #rp4Sidebar .rp4-nav button{height:32px!important;min-height:32px!important;font-size:12px!important}
  body.rp-commercial #rp4Sidebar .rp4-nav button i{width:25px!important;height:25px!important;flex-basis:25px!important}
  body.rp-commercial #rp4Sidebar .rp4-more{flex-basis:32px!important;height:32px!important;min-height:32px!important;margin-top:4px!important}
}

/* The legacy top search remains in the DOM while the commercial shell mounts.
   Explicit dimensions prevent its SVG from becoming a page-sized overlay. */
body.rp-commercial .rp26-search{
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
}
body.rp-commercial .rp26-search svg{
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  min-height:18px!important;
  max-width:18px!important;
  max-height:18px!important;
  flex:0 0 18px!important;
}
body.rp-commercial .rp-job-health em{
  display:block!important;
  margin-top:3px!important;
  color:#7a8783!important;
  font-size:10px!important;
  font-style:normal!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
