.pf-v5-c-masthead {
    --pf-v5-c-masthead--BackgroundColor: var(--ot-background);
    border-bottom: 3px solid var(--ot-primary);
}

.pf-v5-c-masthead .pf-v5-c-toolbar {
    --pf-v5-c-toolbar--BackgroundColor: var(--ot-background);
}

.pf-v5-c-masthead .keycloak__pageheader_brand {
    width: auto;
    height: 56px;
    max-width: 180px;
    object-fit: contain;
}

.pf-v5-c-page__sidebar {
    --pf-v5-c-page__sidebar--BackgroundColor: var(--ot-background);
}

.pf-v5-c-page__sidebar .pf-v5-c-nav {
    --pf-v5-c-nav__link--Color: #fff;
    --pf-v5-c-nav__link--hover--Color: #fff;
    --pf-v5-c-nav__link--focus--Color: #fff;
    --pf-v5-c-nav__link--active--Color: #fff;
    --pf-v5-c-nav__link--m-current--Color: var(--ot-primary);
    --pf-v5-c-nav__link--hover--BackgroundColor: var(--ot-secondary);
    --pf-v5-c-nav__link--focus--BackgroundColor: var(--ot-secondary);
    --pf-v5-c-nav__link--active--BackgroundColor: var(--ot-secondary);
    --pf-v5-c-nav__link--m-current--BackgroundColor: var(--ot-secondary);
    --pf-v5-c-nav__link--m-current--after--BorderColor: var(--ot-primary);
    --pf-v5-c-nav__section-title--Color: #e0e0e0;
    --pf-v5-c-nav__subnav--BorderColor: #637581;
}

.keycloak__loading-container {
    color: var(--ot-text);
    background-color: #fff;
}

/* Hide user deletion in the admin list, bulk actions, and user header.
 * ponytail: menu positions match Keycloak 26.7.3; recheck on upgrades.
 * Presentation only: server permissions still control API access.
 */
[data-testid="users-page"] [data-testid="delete-user-btn"],
[data-testid="users-page"] tr:has(a[href*="/users/"]) .pf-v5-c-table__action,
[data-testid="users-page"] .pf-v5-c-toolbar__item:has([data-testid="add-user"]) + .pf-v5-c-toolbar__item .pf-v5-c-menu__list-item:first-child,
.pf-v5-c-page__main-section:has(.kc-username-view-header) .pf-v5-c-menu__list-item:nth-child(2) {
    display: none !important;
}
