@import url("staff-theme.css");

.staff-home-btn {
  position: fixed;
  top: max(0.55rem, env(safe-area-inset-top));
  left: max(0.55rem, env(safe-area-inset-left));
  z-index: 9990;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.4rem 0.75rem;
  border-radius: 0.65rem;
  background: rgba(26, 22, 18, 0.94);
  border: 1px solid rgba(200, 149, 108, 0.55);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  color: var(--accent-2, #e8b88a);
  transition: transform 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.staff-home-btn:hover {
  border-color: rgba(232, 184, 138, 0.85);
  color: #fff;
}

.staff-home-btn:active {
  transform: scale(0.97);
}

body.staff-home-active .staff-home-btn {
  display: none;
}

.admin-shell .staff-home-btn,
.mgr-app-wrap .staff-home-btn,
.waiter-page .staff-home-btn {
  top: max(0.55rem, env(safe-area-inset-top));
}

@media (min-width: 900px) {
  .admin-shell .staff-home-btn {
    top: max(0.75rem, env(safe-area-inset-top));
    left: calc(240px + 0.75rem);
  }
}
