/* Hulp in the sidebar footer: a button beside the account card and Uitloggen with a small upward menu. */

/* Entry button: the same quiet outline as Uitloggen. */
.sidebar-help {
    position: relative;
    margin-bottom: 8px;
}

.sidebar-help-button {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 9px 11px;
    border: 1px solid color-mix(in srgb, var(--on-fill) 12%, transparent);
    border-radius: var(--radius-small);
    background: transparent;
    color: color-mix(in srgb, var(--on-fill) 72%, transparent);
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    box-shadow: none;
}

.sidebar-help-button:hover,
.sidebar-help-button[aria-expanded="true"] {
    background: color-mix(in srgb, var(--on-fill) 7%, transparent);
    color: var(--on-fill);
    transform: none;
    box-shadow: none;
}

.sidebar-help-button svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Menu: the shared document-menu popover, opened upward across the footer's width instead of downward. */
.sidebar-help .sidebar-help-popover {
    top: auto;
    right: 0;
    bottom: calc(100% + 6px);
    left: 0;
    width: auto;
    min-width: 0;
    max-width: none;
}

.sidebar-help .sidebar-help-popover[hidden] {
    display: none;
}

/* Collapsed sidebar: the account card and Hulp stack as icons; the menu leaves the narrow sidebar, which clips its own overflow. */
@media (min-width: 821px) {
    html.sidebar-is-collapsed .sidebar-user {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    html.sidebar-is-collapsed .sidebar-help {
        position: static;
        margin: 0;
    }
    html.sidebar-is-collapsed .sidebar-help-button {
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0;
    }
    html.sidebar-is-collapsed .sidebar-help-label {
        display: none;
    }
    html.sidebar-is-collapsed .sidebar-help .sidebar-help-popover {
        position: fixed;
        right: auto;
        bottom: 18px;
        left: calc(var(--sidebar-width) + 8px);
        width: 240px;
    }
}
