/*
 * R5-C/R5-H1 — the console's nav-hiding sheet.
 *
 * Two sheets are injected into the Incus UI's document at </head>
 * (nginx sub_filter, console.conf.j2): first the generated brand theme
 * www/theme.css, which carries the palette, and then this one,
 * which hides the nav entries for the pages the proxy 302s or 403s away.
 * Before R5-H1 this file did both jobs by hand; the colours are the
 * token pipeline's now.
 *
 * The selectors mirror console_hidden_ui_paths. Confirm the li/a
 * structure in the browser during the P8 injection check and adjust here
 * if the Incus UI package changes it — a stale selector shows a nav
 * entry the proxy still refuses, which is cosmetic but visible.
 */

li.p-side-navigation__item:has(a[href="/ui/settings"]),
li.p-side-navigation__item:has(a[href^="/ui/warnings"]),
li.p-side-navigation__item:has(a[href="/ui/server"]),
li.p-side-navigation__item:has(a[href^="/ui/cluster"]),
li.p-side-navigation__item:has(a[href^="/ui/permissions"]),
li.p-side-navigation__item:has(a[href^="/ui/os"]),
li.p-side-navigation__item:has(a[href^="/ui/image-registr"]),
li.p-side-navigation__item:has(a[href$="/storage/pools"]),
li.p-side-navigation__item:has(a[href^="https://discuss.linuxcontainers.org"]),
li.p-side-navigation__item:has(a[href*="incus-ui-canonical/issues"]),
a[href="/ui/projects/create"],
a[href$="/storage/pools/create"] {
  display: none !important;
}

/* Our logo is wider than the Incus mark it replaces; without a cap it
 * pushes the panel header out of shape. Layout, not colour, so it stays
 * here rather than in the generated theme. */
.p-panel__logo-image {
  max-height: 2.25rem;
  width: auto;
}
