/* FSM admin console overrides — the shared PatternFly v5 → FSM token mapping is
   loaded before this file from the common theme (css/pf-v5-theme.css). Only
   admin-console-specific fixes belong here. */
.pf-v5-c-badge {
  color: var(--fsm-color-text-inverse-default);
}

.keycloak_help-header-switch .pf-v5-c-switch__toggle:before {
  color: var(--fsm-color-text-inverse-default);
}

.pf-v5-c-banner {
  color: var(--fsm-color-text-default);
}

.pf-v5-c-chip {
  background: var(--fsm-color-surface-subtle-default);
}

.pf-v5-c-badge.pf-m-read.keycloak-admin--role-mapping__client-name {
  color: var(--fsm-color-text-default);
}

.pf-v5-c-menu-toggle.pf-m-primary {
  color: var(--fsm-color-text-inverse-default);
}

.pf-v5-c-form__actions {
  margin-inline: unset;
}

/* 
 * Some toolbars shown next to the title in a details page must not have the toolbar background.
 * Example: in a user there is a small toolbar with a enable/disable toggle and a "Action"
 * dropdown next to the page heading showing the name. Similar case in Clients > Client details.
 *
 * Note that `:not(section) > .pf-v5-c-toolbar` is important to exclude all toolbars that are
 * direct descendants of a section.
 */
section.pf-v5-c-page__main-section :not(.pf-v5-c-drawer__head):not(section) > .pf-v5-c-toolbar {
  --pf-v5-c-toolbar--BackgroundColor: transparent;

  & .pf-v5-c-toolbar__item {
    align-self: center;
  }
}
