/* Sidebar layout: React Menus (256px expanded / 64px collapsed) */
body.user-logged-in .dialog-off-canvas-main-canvas {
  display: flex;
  min-height: 100vh;
}
body.user-logged-in .site-page {
  flex: 1;
  min-width: 0;
  min-height: 0;
  width: auto;
  max-width: none;
  display: flex;
  flex-direction: column;
}
.site-slidemenu {
  margin: 0;
  padding: 0;
  background: transparent;
  height: 100vh;
  min-height: 100vh;
  border: none;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 999;
  width: 256px;
  flex-shrink: 0;
  transition: width 0.3s ease;
  overflow: visible;
  border-right: none;
}
body.sidebar-collapsed .site-slidemenu {
  width: 64px;
}

/* Contacts page: full-height layout, no extra page scroll */
body.user-logged-in .site-page .contacts_main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body.user-logged-in .site-page .contacts_main #block-mtouch-content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
  margin: 0;
  padding: 0;
  background: transparent;
  height: 100vh;
  min-height: 100vh;
  border: none;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 999;
  width: 256px;
  flex-shrink: 0;
  transition: width 0.3s ease;
  overflow: visible;
  border-right: none;
}
body.sidebar-collapsed .site-slidemenu {
  width: 64px;
}

/* Mobile: sidebar container collapses, SwipeableDrawer handles overlay */
@media (max-width: 899px) {
  .site-slidemenu {
    width: 0 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    position: relative;
    height: auto;
    min-height: 0;
  }
  body.user-logged-in .site-page {
    width: 100%;
    padding-top: 48px;
  }
}
