.jans-sidebar-footer {
    margin-top: auto;
    padding: 0.75rem 1rem calc(1rem + env(safe-area-inset-bottom));
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
}

.jans-sidebar-user-panel {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.jans-sidebar-user-section {
    display: flex;
    flex-direction: column;
    gap: 0.32rem;
}

.jans-sidebar-tenant-section {
    display: none;
}

.jans-sidebar-user-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

.jans-sidebar-language-dropdown,
.jans-sidebar-tenant-dropdown {
    width: 100%;
    min-height: 2.45rem;
    padding: 0.52rem 0.68rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #f9fafb;
    color: #111827;
    font: inherit;
    font-weight: 650;
    outline: none;
    cursor: pointer;
}

.jans-sidebar-language-dropdown:focus-visible,
.jans-sidebar-tenant-dropdown:focus-visible {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.28);
}

.jans-sidebar-tenant-dropdown:disabled {
    cursor: wait;
    opacity: 0.68;
}

.jans-sidebar-tenant-status,
.jans-sidebar-tenant-error {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    font-size: 0.78rem;
    font-weight: 750;
}

.jans-sidebar-tenant-status {
    color: #2563eb;
}

.jans-sidebar-tenant-status::before {
    content: "";
    width: 0.72rem;
    height: 0.72rem;
    border-radius: 999px;
    border: 2px solid #bfdbfe;
    border-top-color: #2563eb;
    animation: jansTenantSwitchSpin 800ms linear infinite;
}

.jans-sidebar-tenant-error {
    color: #be123c;
}


.jans-sidebar-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #374151;
    padding: 0.58rem 0.65rem;
    font-weight: 650;
    cursor: pointer;
}

.jans-sidebar-action:hover {
    background: #f3f4f6;
}

.jans-sidebar-action .rz-navigation-item-icon {
    color: #6b7280;
}

.jans-sidebar-action-logout {
    border-color: #fecdd3;
    background: #fff1f2;
    color: #be123c;
}

.jans-sidebar-action-logout:hover {
    background: #ffe4e6;
}

.jans-sidebar-action-logout .rz-navigation-item-icon {
    color: #be123c;
}

@media (max-width: 1100px) {
    .jans-sidebar-tenant-section {
        display: flex;
    }
}
