/* Global Site Menu */
.site-menu-button {
  position: fixed;
  top: 10px;
  left: 10px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1100;
}
.site-menu-button svg { width: 22px; height: 22px; fill: #374151; }

.site-menu-overlay {
  position: fixed; inset: 0; height: 100vh; width: 100vw; background: rgba(0,0,0,.35);
  display: none; z-index: 1099;
}
.site-menu-overlay.show { display: block; }

.site-menu-drawer {
  position: fixed; inset: 0 auto 0 0; width: 280px;
  background: #fff; box-shadow: 2px 0 12px rgba(0,0,0,0.12);
  transform: translateX(-100%);
  transition: transform .2s ease;
  z-index: 1101;
  display: flex; flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  padding-bottom: calc(env(safe-area-inset-bottom));
}
.site-menu-drawer.show { transform: translateX(0); }

.site-menu-header {
  position: relative;
  padding: 14px 54px 14px 16px; border-bottom: 1px solid #eee; color:#111;
  display: flex; align-items: flex-start; gap: 10px; justify-content: flex-start;
}
.site-menu-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px; height: 34px; border-radius: 8px; border: 1px solid #e5e7eb; background: #fff;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.site-menu-close svg { width: 18px; height: 18px; fill: #6b7280; }

.site-menu-profile { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.site-menu-avatar-wrap {
  position: relative;
  flex: 0 0 auto;
}
.site-menu-avatar {
  width: 56px; height: 56px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #e8f0ff; color: #2563eb; font-weight: 800; font-size: 20px;
  border: 2px solid #2563eb;
  overflow: hidden;
  position: relative;
}
.site-menu-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.site-menu-avatar span {
  display: inline-block;
}

.site-menu-avatar-checkin {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #12b886;
  color: #ffffff;
  border: 2px solid #ffffff;
  display: none;
  align-items: center;
  justify-content: center;
}
.site-menu-avatar-checkin svg { width: 14px; height: 14px; fill: currentColor; }
.site-menu-profile-meta { min-width: 0; }
.site-menu-profile-name { font-weight: 800; font-size: 20px; line-height: 1.15; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-menu-profile-role { margin-top: 2px; font-weight: 600; color: #6b7280; font-size: 13px; }

.site-menu-items {
  padding: 10px 12px;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.site-menu-section-title {
  margin: 14px 8px 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #9ca3af;
  font-weight: 800;
}

.site-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  color: #111827;
  text-decoration: none;
  font-weight: 700;
  margin: 2px 0;
}
.site-menu-item:hover { background: #f3f4f6; }

.site-menu-item-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #374151;
}
.site-menu-item-icon svg { width: 22px; height: 22px; fill: currentColor; }
.site-menu-item-label { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.site-menu-item.active {
  background: #e8f0ff;
  color: #2563eb;
}
.site-menu-item.active .site-menu-item-icon { color: #2563eb; }

.site-menu-footer {
  padding: 10px 12px 18px;
  border-top: 1px solid #f1f5f9;
  background: #fff;
}

.site-menu-logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff1f2;
  color: #b91c1c;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  width: 100%;
  justify-content: center;
}
.site-menu-logout-btn:hover { background: #ffe4e6; }
