/* Shared admin shell helpers */

body.admin-shell {
  overflow-x: hidden;
}

.admin-layout {
  min-height: 100vh;
  display: flex;
  position: relative;
}

.admin-shell__content {
  flex: 1 1 auto;
  min-width: 0;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
}

.admin-sidebar__bottom {
  margin-top: auto;
}

.admin-topbar {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.admin-topbar__spacer {
  flex: 1;
}

.admin-overlay,
.users-drawer-backdrop,
.review-drawer-backdrop,
.account-drawer-backdrop,
.users-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.admin-user-menu {
  position: relative;
}

.admin-user-menu__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  z-index: 60;
}

@media (max-width: 1240px) {
  .admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-100%);
    z-index: 50;
  }

  body.admin-sidebar-open .admin-sidebar {
    transform: translateX(0);
  }
}
