/*
 * HEC design for Keycloak's account and admin consoles, loaded after their own
 * PatternFly v5 styles (see account/ and admin/theme.properties). It lives here
 * with the login theme's fonts and logo so every theme type shares one copy.
 *
 * Mirrors the HEC apps' dashboard: white top bar and sidebar on a slate-50
 * page, the current menu item as a solid brand pill, white cards with a
 * slate-100 border, brand buttons and inputs with a 2px slate-100 border.
 */

@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/*
 * :root:root, because the consoles load PatternFly's own :root variables lazily,
 * after this file, and equal specificity would let them win.
 */
:root:root {
  --hec-brand: #226181;
  --hec-brand-hover: #38718e;
  --hec-brand-ring: rgba(34, 97, 129, 0.1);
  --hec-brand-border: rgba(34, 97, 129, 0.3);
  --hec-brand-soft: rgba(34, 97, 129, 0.05);
  --hec-slate-50: #f8fafc;
  --hec-slate-100: #f1f5f9;
  --hec-slate-200: #e2e8f0;
  --hec-slate-400: #94a3b8;
  --hec-slate-500: #64748b;
  --hec-slate-600: #475569;
  --hec-slate-700: #334155;
  --hec-slate-900: #0f172a;
  --hec-font: "Satoshi", Helvetica, Arial, sans-serif;

  /*
   * PatternFly's blue, remapped to a brand scale. Many components reset the
   * link and primary variables from this palette locally, so overriding only
   * the global ones leaves PatternFly blue inside tables, lists and wizards.
   */
  --pf-v5-global--palette--blue-50: #eef4f7;
  --pf-v5-global--palette--blue-100: #d3e2ea;
  --pf-v5-global--palette--blue-200: #9dbfd0;
  --pf-v5-global--palette--blue-300: #4e819a;
  --pf-v5-global--palette--blue-400: #226181;
  --pf-v5-global--palette--blue-500: #1b4e68;
  --pf-v5-global--palette--blue-600: #133a4d;
  --pf-v5-global--palette--blue-700: #0b2330;

  --pf-v5-global--FontFamily--text: var(--hec-font);
  --pf-v5-global--FontFamily--heading: var(--hec-font);
  --pf-v5-global--primary-color--100: var(--hec-brand);
  --pf-v5-global--primary-color--200: var(--hec-brand-hover);
  --pf-v5-global--active-color--100: var(--hec-brand);
  --pf-v5-global--link--Color: var(--hec-brand);
  --pf-v5-global--link--Color--hover: var(--hec-brand-hover);
  /* Tables, lists and other light-surface components read these literal colours. */
  --pf-v5-global--link--Color--dark: var(--hec-brand);
  --pf-v5-global--link--Color--dark--hover: var(--hec-brand-hover);
  --pf-v5-global--primary-color--dark-100: var(--hec-brand);
  /* Meant for dark surfaces (the old black top bar and sidebar); none are left. */
  --pf-v5-global--link--Color--light: var(--hec-brand);
  --pf-v5-global--link--Color--light--hover: var(--hec-brand-hover);
  --pf-v5-global--primary-color--light-100: var(--hec-brand);
  --pf-v5-global--active-color--300: var(--hec-brand);
  --pf-v5-global--active-color--400: var(--hec-brand);
  /* Body text in the apps' slate-700; titles are set to slate-900 below. */
  --pf-v5-global--Color--100: var(--hec-slate-700);
  --pf-v5-global--Color--200: var(--hec-slate-500);
  --pf-v5-global--BorderColor--100: var(--hec-slate-200);
  --pf-v5-global--BorderColor--dark-100: var(--hec-slate-200);
  --pf-v5-global--BackgroundColor--200: var(--hec-slate-50);
  --pf-v5-global--BorderRadius--sm: 0.5rem;
}

body {
  font-family: var(--hec-font);
  color: var(--hec-slate-700);
}

/* Top bar: white with a slate-100 rule, like the apps' Navbar. */
.pf-v5-c-masthead {
  --pf-v5-c-masthead--BackgroundColor: #ffffff;
  --pf-v5-c-masthead--item-border-color--base: transparent;
  --pf-v5-c-masthead__main--before--BorderBottomColor: transparent;
  min-height: 4rem;
  border-bottom: 1px solid var(--hec-slate-100);
  color: var(--hec-slate-900);
}

.pf-v5-c-masthead .pf-v5-c-brand,
.pf-v5-c-masthead__brand img {
  height: 2.75rem;
  width: auto;
}

.pf-v5-c-masthead .pf-v5-c-button.pf-m-plain,
.pf-v5-c-masthead__toggle .pf-v5-c-button {
  --pf-v5-c-button--m-plain--Color: var(--hec-slate-600);
  --pf-v5-c-button--m-plain--hover--Color: var(--hec-brand);
  color: var(--hec-slate-600);
}

.pf-v5-c-masthead .pf-v5-c-menu-toggle {
  --pf-v5-c-menu-toggle--Color: var(--hec-slate-900);
  --pf-v5-c-menu-toggle--BackgroundColor: transparent;
  --pf-v5-c-menu-toggle--hover--BackgroundColor: var(--hec-slate-50);
  --pf-v5-c-menu-toggle--expanded--BackgroundColor: var(--hec-slate-50);
  --pf-v5-c-menu-toggle__toggle-icon--Color: var(--hec-slate-500);
  --pf-v5-c-menu-toggle--m-plain--Color: var(--hec-slate-600);
  --pf-v5-c-menu-toggle--m-plain--hover--Color: var(--hec-brand);
  --pf-v5-c-menu-toggle--m-plain--expanded--Color: var(--hec-brand);
  border-radius: 0.375rem;
  font-weight: 700;
}

.pf-v5-c-masthead .pf-v5-c-menu-toggle::before,
.pf-v5-c-masthead .pf-v5-c-menu-toggle::after {
  border: 0;
}

/* Phones: PatternFly stacks the user menu under the logo; the apps keep one row. */
@media (max-width: 767px) {
  .pf-v5-c-masthead {
    grid-template-columns: auto auto 1fr;
  }

  .pf-v5-c-masthead__content {
    grid-column: auto;
  }

  /* The kebab and the avatar sit together on the right. */
  .pf-v5-c-masthead .pf-v5-c-toolbar__item.pf-m-align-right:empty {
    display: none;
  }

  .pf-v5-c-masthead .pf-v5-c-toolbar__item.pf-m-align-left {
    margin-left: auto;
  }

  .pf-v5-c-masthead .pf-v5-c-toolbar__item.pf-m-overflow-menu {
    margin-left: 0.25rem;
  }

  .pf-v5-c-page__main > .pf-v5-c-page__main-section.pf-m-light ~ .pf-v5-c-page__main-section {
    margin: 0 1rem 1rem;
  }
}

/*
 * With the sidebar docked (PatternFly's xl breakpoint), the logo block is as
 * wide as the sidebar and ends in the same slate-100 line, as in the apps.
 */
@media (min-width: 1200px) {
  .pf-v5-c-masthead {
    column-gap: 0;
  }

  .pf-v5-c-masthead__brand {
    align-self: stretch;
    align-items: center;
    width: calc(var(--pf-v5-c-page__sidebar--Width, 18.125rem) - 4.5rem); /* minus the bar's padding and the menu button */
    border-right: 1px solid var(--hec-slate-100);
  }

  .pf-v5-c-masthead__content {
    padding-left: 1.5rem;
  }
}

/* Sidebar: white, items as rounded rows, the current one a solid brand pill. */
.pf-v5-c-page__sidebar {
  --pf-v5-c-page__sidebar--BackgroundColor: #ffffff;
  --pf-v5-c-page__sidebar--BoxShadow: none;
  border-right: 1px solid var(--hec-slate-100);
}

.pf-v5-c-page__sidebar .pf-v5-c-nav {
  --pf-v5-c-nav__link--Color: var(--hec-slate-600);
  --pf-v5-c-nav__link--hover--Color: var(--hec-brand);
  --pf-v5-c-nav__link--active--Color: var(--hec-brand);
  --pf-v5-c-nav__link--hover--BackgroundColor: var(--hec-brand-soft);
  --pf-v5-c-nav__link--active--BackgroundColor: var(--hec-brand-soft);
  --pf-v5-c-nav__link--m-current--Color: #ffffff;
  --pf-v5-c-nav__link--m-current--BackgroundColor: var(--hec-brand);
  --pf-v5-c-nav__link--after--BorderColor: transparent;
  --pf-v5-c-nav__link--hover--after--BorderColor: transparent;
  --pf-v5-c-nav__link--active--after--BorderColor: transparent;
  --pf-v5-c-nav__link--m-current--after--BorderColor: transparent;
  --pf-v5-c-nav__link--before--BorderBottomWidth: 0;
  --pf-v5-c-nav__item--before--BorderWidth: 0;
  --pf-v5-c-nav__section-title--Color: var(--hec-slate-400);
  --pf-v5-c-nav__section-title--BorderBottomWidth: 0;
  --pf-v5-c-nav__toggle--Color: var(--hec-slate-500);
  --pf-v5-c-nav--c-divider--BackgroundColor: var(--hec-slate-100);
  padding: 1rem 0.75rem;
  background: #ffffff;
}

.pf-v5-c-page__sidebar .pf-v5-c-nav__item::before,
.pf-v5-c-page__sidebar .pf-v5-c-nav__link::before,
.pf-v5-c-page__sidebar .pf-v5-c-nav__link::after {
  border: 0;
}

.pf-v5-c-page__sidebar .pf-v5-c-nav__link {
  margin-block: 0.125rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: background-color 0.3s, color 0.3s;
}

.pf-v5-c-page__sidebar .pf-v5-c-nav__link.pf-m-current {
  font-weight: 700;
}

/* The apps mark the current item with a short white bar at its end. */
.pf-v5-c-page__sidebar .pf-v5-c-nav__link.pf-m-current:not(:has(.pf-v5-c-nav__toggle))::after {
  content: "";
  position: absolute;
  inset: 50% 0.75rem auto auto;
  width: 5px;
  height: 1.25rem;
  border-radius: 0.375rem;
  background: #ffffff;
  transform: translateY(-50%);
}

.pf-v5-c-page__sidebar .pf-v5-c-nav__link.pf-m-current .pf-v5-c-nav__toggle {
  color: #ffffff;
}

.pf-v5-c-page__sidebar .pf-v5-c-nav__section-title {
  padding-inline: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
}

/* Open sub-menus hang off a thin slate line, as in the apps. */
.pf-v5-c-page__sidebar .pf-v5-c-nav__subnav {
  margin-left: 1rem;
  padding-left: 0.5rem;
  border-left: 1px solid var(--hec-slate-200);
}

/*
 * Page: the title sits on the slate-50 canvas and the content below it in a
 * white card, as in the apps. Both consoles put the title in the first main
 * section and the content in the sections after it.
 */
.pf-v5-c-page {
  --pf-v5-c-page--BackgroundColor: var(--hec-slate-50);
}

.pf-v5-c-page__main,
.pf-v5-c-page__main-breadcrumb,
.pf-v5-c-page__main > .pf-v5-c-page__main-section {
  background-color: var(--hec-slate-50);
}

/* Sections nested inside the content card stay part of it. */
.pf-v5-c-page__main-section .pf-v5-c-page__main-section {
  background-color: transparent;
}

.pf-v5-c-page__main > .pf-v5-c-page__main-section.pf-m-light ~ .pf-v5-c-page__main-section {
  margin: 0 1.5rem 1.5rem;
  background-color: #ffffff;
  border: 1px solid var(--hec-slate-100);
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

/* body + .pf-v5-c-page outranks PatternFly's .pf-v5-c-title.pf-m-* sizes, which load after this file. */
body .pf-v5-c-page .pf-v5-c-title,
.pf-v5-c-page__main-section h1 {
  color: var(--hec-slate-900);
  font-weight: 700;
}

/* Titles inside the content card are section headings: smaller and semibold, as the apps' card titles. */
body .pf-v5-c-page__main > .pf-v5-c-page__main-section.pf-m-light ~ .pf-v5-c-page__main-section .pf-v5-c-title:is(.pf-m-xl, .pf-m-lg) {
  font-size: 1.125rem;
  font-weight: 600;
}

.pf-v5-c-content p,
.pf-v5-c-page__main-section .pf-v5-c-content {
  color: var(--hec-slate-500);
}

/* Cards, tables and panels: white with a slate-100 border. */
.pf-v5-c-card {
  --pf-v5-c-card--BoxShadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  border: 1px solid var(--hec-slate-100);
  border-radius: 0.5rem;
}

.pf-v5-c-card__title-text,
.pf-v5-c-card__title {
  color: var(--hec-slate-900);
  font-weight: 700;
}

.pf-v5-c-table {
  --pf-v5-c-table--BackgroundColor: #ffffff;
  --pf-v5-c-table--BorderColor: var(--hec-slate-100);
  --pf-v5-c-table--cell--Color: var(--hec-slate-600);
}

.pf-v5-c-table thead th,
.pf-v5-c-table thead .pf-v5-c-table__button {
  color: var(--hec-slate-500);
  font-size: 0.8125rem;
  font-weight: 500;
}

/* Data lists (account console) hard-code PatternFly's near-black; the header row reads like a table head. */
body .pf-v5-c-data-list__item {
  color: var(--hec-slate-700);
}

body .pf-v5-c-data-list__item[id$="-list-header"] .pf-v5-c-data-list__cell {
  color: var(--hec-slate-500);
  font-size: 0.8125rem;
  font-weight: 500;
}

.pf-v5-c-toolbar {
  --pf-v5-c-toolbar--BackgroundColor: transparent;
}

/* Inputs: 2px slate-100 border and a brand ring on focus, as in the apps. */
:is(.pf-v5-c-page__main, .pf-v5-c-modal-box) .pf-v5-c-form-control,
:is(.pf-v5-c-page__main, .pf-v5-c-modal-box) .pf-v5-c-text-input-group,
:is(.pf-v5-c-page__main, .pf-v5-c-modal-box) .pf-v5-c-form .pf-v5-c-menu-toggle:not(.pf-m-plain):not(.pf-m-primary),
:is(.pf-v5-c-page__main, .pf-v5-c-modal-box) .pf-v5-c-toolbar .pf-v5-c-menu-toggle:not(.pf-m-plain):not(.pf-m-primary) {
  border: 2px solid var(--hec-slate-100);
  border-radius: 0.5rem;
  background-color: #ffffff;
  transition: border-color 0.1s, box-shadow 0.1s;
}

:is(.pf-v5-c-page__main, .pf-v5-c-modal-box) .pf-v5-c-form-control::before,
:is(.pf-v5-c-page__main, .pf-v5-c-modal-box) .pf-v5-c-form-control::after,
:is(.pf-v5-c-page__main, .pf-v5-c-modal-box) .pf-v5-c-text-input-group__main::before,
:is(.pf-v5-c-page__main, .pf-v5-c-modal-box) .pf-v5-c-text-input-group__main::after,
:is(.pf-v5-c-page__main, .pf-v5-c-modal-box) .pf-v5-c-text-input-group::before,
:is(.pf-v5-c-page__main, .pf-v5-c-modal-box) .pf-v5-c-text-input-group::after,
:is(.pf-v5-c-page__main, .pf-v5-c-modal-box) .pf-v5-c-text-input-group__text::before,
:is(.pf-v5-c-page__main, .pf-v5-c-modal-box) .pf-v5-c-text-input-group__text::after,
:is(.pf-v5-c-page__main, .pf-v5-c-modal-box) .pf-v5-c-form .pf-v5-c-menu-toggle:not(.pf-m-plain)::before,
:is(.pf-v5-c-page__main, .pf-v5-c-modal-box) .pf-v5-c-form .pf-v5-c-menu-toggle:not(.pf-m-plain)::after,
:is(.pf-v5-c-page__main, .pf-v5-c-modal-box) .pf-v5-c-toolbar .pf-v5-c-menu-toggle:not(.pf-m-plain)::before,
:is(.pf-v5-c-page__main, .pf-v5-c-modal-box) .pf-v5-c-toolbar .pf-v5-c-menu-toggle:not(.pf-m-plain)::after {
  border: 0;
}

:is(.pf-v5-c-page__main, .pf-v5-c-modal-box) .pf-v5-c-form-control:focus-within,
:is(.pf-v5-c-page__main, .pf-v5-c-modal-box) .pf-v5-c-text-input-group:focus-within {
  border-color: var(--hec-brand-border);
  box-shadow: 0 0 0 2px var(--hec-brand-ring);
}

:is(.pf-v5-c-page__main, .pf-v5-c-modal-box) .pf-v5-c-form-control.pf-m-readonly,
:is(.pf-v5-c-page__main, .pf-v5-c-modal-box) .pf-v5-c-form-control.pf-m-disabled {
  background-color: var(--hec-slate-50);
}

:is(.pf-v5-c-page__main, .pf-v5-c-modal-box) .pf-v5-c-form-control > :is(input, select, textarea):focus {
  outline: none;
}

.pf-v5-c-form__label {
  color: var(--hec-slate-600);
  font-weight: 500;
}

/* Buttons: solid brand primary, outlined brand secondary. */
.pf-v5-c-button {
  border-radius: 0.5rem;
  font-weight: 500;
}

.pf-v5-c-button.pf-m-primary {
  --pf-v5-c-button--m-primary--BackgroundColor: var(--hec-brand);
  --pf-v5-c-button--m-primary--hover--BackgroundColor: var(--hec-brand-hover);
  --pf-v5-c-button--m-primary--focus--BackgroundColor: var(--hec-brand-hover);
  --pf-v5-c-button--m-primary--active--BackgroundColor: var(--hec-brand-hover);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.pf-v5-c-button.pf-m-secondary {
  --pf-v5-c-button--m-secondary--Color: var(--hec-brand);
  --pf-v5-c-button--m-secondary--hover--Color: var(--hec-brand);
  --pf-v5-c-button--m-secondary--hover--BackgroundColor: var(--hec-brand-soft);
  --pf-v5-c-button--m-secondary--after--BorderColor: var(--hec-brand);
  --pf-v5-c-button--m-secondary--hover--after--BorderColor: var(--hec-brand);
  --pf-v5-c-button--after--BorderRadius: 0.5rem;
}

.pf-v5-c-button.pf-m-link {
  --pf-v5-c-button--m-link--Color: var(--hec-brand);
  --pf-v5-c-button--m-link--hover--Color: var(--hec-brand-hover);
}

/*
 * Tabs as in the apps: a slate-100 rule, plain slate tabs, and the current one
 * with a light brand fill, brand text and a 2px brand underline. Keycloak uses
 * PatternFly's "box" tabs, whose grey fills and side borders are drawn on the
 * links and their ::before, so those are cleared directly.
 */
.pf-v5-c-tabs {
  --pf-v5-c-tabs--before--BorderColor: var(--hec-slate-100);
}

.pf-v5-c-tabs .pf-v5-c-tabs__link {
  background: transparent;
  color: var(--hec-slate-600);
  font-size: 0.875rem;
}

.pf-v5-c-tabs .pf-v5-c-tabs__link:hover {
  color: var(--hec-slate-900);
}

.pf-v5-c-tabs .pf-v5-c-tabs__link::before {
  border-color: transparent;
}

.pf-v5-c-tabs .pf-v5-c-tabs__link::after {
  border-width: 0 0 2px;
  border-style: solid;
  border-color: transparent;
  inset: auto 0 0;
}

.pf-v5-c-tabs .pf-v5-c-tabs__item.pf-m-current .pf-v5-c-tabs__link {
  background: var(--hec-brand-soft);
  color: var(--hec-brand);
  font-weight: 700;
}

.pf-v5-c-tabs .pf-v5-c-tabs__item.pf-m-current .pf-v5-c-tabs__link::after {
  border-color: var(--hec-brand);
}

.pf-v5-c-jump-links {
  --pf-v5-c-jump-links__item--m-current__link--before--BorderColor: var(--hec-brand);
  --pf-v5-c-jump-links__item--m-current__link--Color: var(--hec-brand);
}

/* Alerts: tinted, rounded, no heavy top bar. */
.pf-v5-c-alert {
  --pf-v5-c-alert--BorderTopWidth: 0;
  --pf-v5-c-alert--BoxShadow: none;
  border-radius: 0.5rem;
}

.pf-v5-c-alert.pf-m-info {
  --pf-v5-c-alert--BackgroundColor: var(--hec-brand-soft);
  --pf-v5-c-alert__icon--Color: var(--hec-brand);
  --pf-v5-c-alert__title--Color: var(--hec-brand);
}

/* Status labels such as "Current realm": brand tint instead of PatternFly blue. */
.pf-v5-c-label.pf-m-blue {
  --pf-v5-c-label--m-blue--BackgroundColor: var(--hec-brand-soft);
  --pf-v5-c-label--m-blue__content--Color: var(--hec-brand);
  --pf-v5-c-label--m-blue__content--before--BorderColor: var(--hec-brand-border);
}

/* Warning banners (temporary admin, events off): soft amber, as the apps' warning notes. */
.pf-v5-c-banner.pf-m-gold {
  --pf-v5-c-banner--BackgroundColor: #fffbeb;
  --pf-v5-c-banner--Color: #92400e;
  --pf-v5-c-banner--link--Color: #92400e;
  border-bottom: 1px solid #fde68a;
}

.pf-v5-c-page__main-section .pf-v5-c-banner.pf-m-gold {
  border: 1px solid #fde68a;
  border-radius: 0.5rem;
}

/* Empty states: a quiet slate icon. */
.pf-v5-c-empty-state {
  --pf-v5-c-empty-state__icon--Color: var(--hec-slate-400);
}

/* Search box + arrow button read as one control. */
:is(.pf-v5-c-page__main, .pf-v5-c-modal-box) .pf-v5-c-input-group__item:has(+ .pf-v5-c-input-group__item > .pf-v5-c-button.pf-m-control) :is(.pf-v5-c-text-input-group, .pf-v5-c-form-control) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

:is(.pf-v5-c-page__main, .pf-v5-c-modal-box) .pf-v5-c-input-group .pf-v5-c-button.pf-m-control {
  border: 2px solid var(--hec-slate-100);
  border-left: 0;
  border-radius: 0 0.5rem 0.5rem 0;
  background-color: #ffffff;
  color: var(--hec-slate-500);
}

:is(.pf-v5-c-page__main, .pf-v5-c-modal-box) .pf-v5-c-input-group .pf-v5-c-button.pf-m-control::after {
  border: 0;
}

/* Top-level pages have no breadcrumb; its empty row would show as a grey strip above split views. */
.pf-v5-c-page__main-breadcrumb:not(:has(li)) {
  display: none;
}

/* Switches: a light slate track when off, brand when on. */
.pf-v5-c-switch {
  --pf-v5-c-switch__toggle--BackgroundColor: #cbd5e1;
}

/* Dialogs: rounded, bold title, over a slate tint, as the apps' modals. */
.pf-v5-c-backdrop {
  --pf-v5-c-backdrop--BackgroundColor: rgba(15, 23, 42, 0.4);
}

.pf-v5-c-modal-box {
  --pf-v5-c-modal-box--BoxShadow: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
  border-radius: 0.75rem;
}

body .pf-v5-c-modal-box__title,
body .pf-v5-c-modal-box__title-text {
  color: var(--hec-slate-900);
  font-size: 1.25rem;
  font-weight: 700;
}

/*
 * Phones: list toolbars wrap instead of running off the card, the stacked rows
 * use a slate-100 rule instead of PatternFly's 8px grey bar, and the bottom
 * pagination sits in the flow instead of floating.
 */
@media (max-width: 767px) {
  .pf-v5-c-page__main .pf-v5-c-toolbar__item:has(.pf-v5-c-input-group) {
    max-width: 100%;
  }

  .pf-v5-c-page__main .pf-v5-c-toolbar .pf-v5-c-input-group {
    flex-wrap: wrap;
    row-gap: 0.5rem;
  }

  .pf-v5-c-page__main .pf-v5-c-toolbar .pf-v5-c-input-group__item:has(.pf-v5-c-text-input-group) {
    flex: 1 1 0;
    min-width: 0;
  }

  body .pf-v5-c-table.pf-m-grid-md tbody,
  body .pf-v5-c-table.pf-m-grid-md .pf-v5-c-table__tbody {
    border-top: 1px solid var(--hec-slate-100);
  }

  body .pf-v5-c-table.pf-v5-c-table.pf-m-grid-md tbody > tr:not(.pf-v5-c-table__expandable-row) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-bottom: 1px solid var(--hec-slate-100);
  }

  /* Long URLs wrap instead of squeezing the other column to nothing. */
  .pf-v5-c-table.pf-m-grid-md td a {
    overflow-wrap: anywhere;
  }

  .pf-v5-c-pagination.pf-m-bottom {
    position: static;
    box-shadow: none;
  }
}
