/* Shared staff app switcher. No inline styles. */
.ppm-appswitch {
  position: relative;
  display: flex;
  align-items: center;
}
.ppm-appswitch__details {
  position: relative;
}
.ppm-appswitch__summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 48px;
  padding: 8px 14px;
  list-style: none;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  color: var(--brand-primary-dark);
  background: var(--brand-surface);
  border: 1px solid var(--brand-line);
  border-radius: 8px;
}
.ppm-appswitch__summary::-webkit-details-marker,
.ppm-appswitch__summary::marker {
  display: none;
  content: "";
}
.ppm-appswitch__summary:hover {
  background: var(--brand-header);
}
.ppm-appswitch__summary:focus-visible,
.ppm-appswitch__link:focus-visible {
  outline: 3px solid var(--brand-focus);
  outline-offset: 2px;
}
.ppm-appswitch__panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 40;
  min-width: 12.5rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  background: var(--brand-surface);
  border: 1px solid var(--brand-line);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.ppm-appswitch__link {
  display: flex;
  align-items: center;
  min-height: 48px;
  min-width: 48px;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--brand-primary-dark);
  font-weight: 600;
  border-left: 4px solid transparent;
}
.ppm-appswitch__link:hover {
  background: var(--brand-header);
}
.ppm-appswitch__link[aria-current="page"] {
  font-weight: 800;
  background: var(--brand-header);
  border-left-color: var(--brand-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media print {
  .ppm-appswitch { display: none !important; }
}
