/* ICODE ERP R148 | Direct, cache-versioned mobile sidebar surface.
   CSS only. No JavaScript, routes, database, permissions or geometry changes.
   Loaded directly by PHP views, independent of cached R144 JS. */
@media screen and (max-width:1100px) {
  /* Stronger than legacy flow/enterprise white .side backgrounds. */
  html body.r135-drawer-enabled > aside.r131-premium-ready,
  html body.r135-drawer-enabled > aside.r131-premium-ready.side,
  html body.r135-drawer-enabled.r73-prod-business.flow.r71-flow-business > aside.r131-premium-ready.side,
  html body.r135-drawer-enabled > aside.r131-premium-ready[data-r131-sidebar="ready"] {
    --r131-bg:#103440;
    background:#103440 !important;
    background-color:#103440 !important;
    background-image:none !important;
    border-color:#103440 !important;
    box-shadow:none !important;
  }
  /* Physical header, logo surrounds, legacy content panel and scroll footer. */
  html body.r135-drawer-enabled > aside.r131-premium-ready > :is(div,header,footer,section,nav),
  html body.r135-drawer-enabled > aside.r131-premium-ready :is(
    .enterprise-brand-row,.r73-ent-brand,.r73-prod-brand,.r82-brand,.brand,
    .ic-r1040-brand,.ic-r1040-logo-box,.ic-r1040-copy,.r73-prod-brand>span,
    .side-context,.r73-ent-nav,.enterprise-nav,.r137-sidebar-utility,
    nav.r111-side-nav,.r111-nav-search,.r131-search-shell,
    .r111-nav-group,.r111-nav-items,.r111-nav-empty,
    .r73-ent-foot,.r82-side-foot,.r131-sidebar-footer,.sidebar-foot,.side-foot,
    .nav-group
  ) {
    background-color:#103440 !important;
    background-image:none !important;
  }
  /* Remove white lines/stripes around the logo while keeping legible separators. */
  html body.r135-drawer-enabled > aside.r131-premium-ready :is(
    .enterprise-brand-row,.r73-prod-brand,.r82-brand,.brand,
    .r131-sidebar-footer,.r73-ent-foot,.r82-side-foot,.sidebar-foot,.side-foot
  ) { border-color:#345663 !important; }
  html body.r135-drawer-enabled > aside.r131-premium-ready :is(
    .enterprise-brand-row,.r73-prod-brand,.r82-brand,.brand
  )::before,
  html body.r135-drawer-enabled > aside.r131-premium-ready :is(
    .enterprise-brand-row,.r73-prod-brand,.r82-brand,.brand
  )::after { background-color:transparent !important; background-image:none !important; }
}
