/* Navegación de la farmacia: grupos desplegables y opciones por perfil. */
.app-header { position: relative; z-index: 20; }
.app-topbar { max-width: none; min-height: 76px; padding: 14px 28px; }
.app-sidebar { position: absolute; top: 76px; left: 0; bottom: 0; width: 256px; min-height: calc(100svh - 76px); padding: 24px 14px; background: #fff; border-right: 1px solid #dce3ec; }
.authenticated-app { position: relative; min-height: 100svh; }
.authenticated-app > main { margin-left: 256px; }
.sidebar-navigation { display: grid; gap: 6px; }
.navigation-heading { list-style: none; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 12px; color: #526477; font-size: 14px; font-weight: 600; cursor: pointer; border-radius: 6px; }
.navigation-heading::-webkit-details-marker { display: none; }
.navigation-heading:hover { background: #f2f5f8; color: #17304a; }
.navigation-heading.is-active { color: #17304a; background: #edf3ff; }
.navigation-chevron { margin-left: auto; flex-shrink: 0; }
.navigation-group[open] > .navigation-heading .navigation-chevron { transform: rotate(90deg); }
.navigation-options { display: grid; gap: 2px; margin: 8px 0 12px 21px; padding-left: 12px; border-left: 1px solid #dce3ec; }
.navigation-options a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px; font-size: 14px; line-height: 1.4; color: #526477; text-decoration: none; border-radius: 5px; }
.navigation-options a:hover { color: #215bc1; background: #f2f5f8; }
.navigation-options a[aria-current="page"] { color: #215bc1; background: #edf3ff; font-weight: 600; box-shadow: inset 3px 0 #215bc1; }
.navigation-toggle { display: none; align-items: center; gap: 8px; padding: 10px 12px; font: inherit; font-size: 14px; color: #17304a; background: #fff; border: 1px solid #a8b6c6; border-radius: 6px; cursor: pointer; }
.navigation-icon { flex: 0 0 20px; }
@media (max-width: 960px) {
    .app-topbar { flex-wrap: wrap; gap: 12px; padding: 14px 16px; }
    .navigation-toggle { display: inline-flex; margin-left: auto; }
    .app-account { flex-basis: 100%; justify-content: space-between; margin-left: 0; }
    .app-account span { overflow-wrap: anywhere; min-width: 0; }
    .app-account form { flex-shrink: 0; }
    .app-sidebar { position: relative; top: auto; width: 100%; min-height: 0; border-right: 0; border-bottom: 1px solid #dce3ec; padding: 12px 16px; }
    body:has(.navigation-toggle[aria-expanded="false"]) .app-sidebar { display: none; }
    .authenticated-app > main { margin-left: 0; }
}
@media print {
    .app-sidebar { display: none; }
    .authenticated-app > main { margin-left: 0; }
}
