/* Smith Digital V77 — one sidebar button across Admin/User and desktop/mobile. */
html[data-smith-theme] body.smm-v31 :is(#nav-toggle,#smm-admin-collapse){
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  flex:0 0 38px!important;width:38px!important;height:38px!important;
  min-width:38px!important;min-height:38px!important;padding:8px!important;
  box-sizing:border-box!important;border:1px solid transparent!important;border-radius:10px!important;
  background:transparent!important;color:var(--b25-text,#f1f5fb)!important;
  cursor:pointer!important;opacity:1!important;visibility:visible!important;
  position:relative;z-index:2;touch-action:manipulation;
}
html[data-smith-theme] body.smm-v31 :is(#nav-toggle,#smm-admin-collapse):is(:hover,:focus-visible){
  background:var(--v31-flat,rgba(120,150,200,.14))!important;
}
html[data-smith-theme] body.smm-v31 :is(#nav-toggle,#smm-admin-collapse):focus-visible{
  outline:2px solid var(--v31-blue,#2974e8)!important;outline-offset:2px!important;
}
html[data-smith-theme] body.smm-v31 :is(#nav-toggle,#smm-admin-collapse) svg{
  flex:none!important;width:20px!important;height:20px!important;display:block!important;
  stroke:currentColor!important;pointer-events:none!important;
}
/* Legacy V20 mobile Menu button is replaced by the single toolbar toggle. */
html[data-smith-theme] body.smm-admin-body.smm-v31 #smm-admin-mobile-menu{display:none!important;}
@media (max-width:900px){
  html[data-smith-theme] body.smm-v31 #nav-toggle,
  html[data-smith-theme] body.smm-admin-body.smm-v31 #smm-admin-collapse{
    display:inline-flex!important;pointer-events:auto!important;
  }
  html[data-smith-theme] body.smm-admin-body.smm-v25-option-b.smm-v31 .smm-admin-layout{
    display:block!important;grid-template-columns:none!important;overflow:visible!important;
  }
  /* Drawer overlays the page, rather than leaving the sidebar off screen in the grid. */
  html[data-smith-theme] body.smm-admin-body.smm-v25-option-b.smm-v31 .smm-admin-sidebar{
    display:block!important;position:fixed!important;left:0!important;top:0!important;bottom:0!important;
    width:min(300px,86vw)!important;max-width:86vw!important;height:100dvh!important;
    min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;
    transform:translate3d(-112%,0,0)!important;
    transition:transform .24s ease!important;
    z-index:1101!important;box-shadow:12px 0 38px rgba(0,0,0,.28)!important;
    padding:22px 14px!important;
  }
  html[data-smith-theme] body.smm-admin-body.smm-v25-option-b.smm-v31.smm-admin-nav-open .smm-admin-sidebar{
    transform:translate3d(0,0,0)!important;visibility:visible!important;
  }
  html[data-smith-theme] body.smm-admin-body.smm-v31 #smm-admin-nav-scrim:not([hidden]){
    display:block!important;position:fixed!important;inset:0!important;
    width:100vw!important;height:100dvh!important;
    z-index:1100!important;border:0!important;background:rgba(2,8,22,.64)!important;
    cursor:pointer!important;
  }
  html[data-smith-theme] body.smm-admin-body.smm-v31.smm-admin-nav-open{
    overflow:hidden!important;
  }
  /* Customer navigation is unchanged functionally; matching one-button appearance only. */
}
@media(prefers-reduced-motion:reduce){
  html[data-smith-theme] body.smm-admin-body.smm-v31 .smm-admin-sidebar{transition:none!important;}
}
