/* ============================================================================
   app.css — single global stylesheet for ReBAC.UI
   ----------------------------------------------------------------------------
   Merged from the former tokens.css + redesign.css so all non-scoped styles
   live in one place. Loaded after the Iron bundle via wwwroot/index.html; it is
   the only stylesheet the app ships, so a co-located .razor.css would not be
   picked up. Sections, in cascade order:
     1. Design tokens  (--nu-* brand variables)
     2. Global redesign classes  (rbc-*)
     3. App-level overrides & fixes  (Iron / layout)
   ============================================================================ */

/* ==========================================================================
   0. FONTS — Nucor Termina, vendored for the brand title and nothing else.

   This is a deliberate, approved exception to the Arial-for-software rule
   below: Termina sets the product's name in the sidebar (.rbc-brand-title),
   which is brand identity rather than interface text. Everything else in the
   app is Arial. Do not extend the family to headings, and do not remove it as
   an inconsistency — it is the one place it belongs.

   The app's Iron version (2.13.x) ships no Termina webfont, so the .woff2
   file lives in wwwroot/fonts/Termina and is declared here. Only weight 600
   is vendored, because only that one rule uses the family. Weights 400/500/700
   were declared and shipped but no rule ever requested them, so no browser
   fetched them.
   ======================================================================= */
@font-face {
	font-family: termina;
	src: url("fonts/Termina/termina_600.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

/* ==========================================================================
   1. DESIGN TOKENS  (--nu-*)
   ======================================================================= */

/* ============================================================================
   ReBAC UI — Design Tokens
   ----------------------------------------------------------------------------
   Nucor brand tokens for the redesigned admin UI. Sourced from the Nucor Brand
   Guidelines (Master) and the design-system prototype. All custom-styled shell
   and shared components read from these; Nucor Iron (Fe*) components keep their
   own theming. Loaded globally (index.html) so the vars pierce scoped CSS.

   Namespacing: everything is prefixed --nu- to avoid clashing with Iron
   (--fe-*) and Bootstrap (--bs-*) variables.

   Typography: the brand standard for SOFTWARE applications is Arial, and the
   whole interface is set in it — the prototype's Archivo/Barlow were
   placeholders and no substitute web fonts are shipped. The single exception
   is the sidebar brand title, which is set in Termina by decision; see the
   FONTS block above.

   Headings only obey that because section 1a below overrides Iron's
   --fe-heading-font-family, which Iron applies directly to h1-h6. Until that
   override existed the pinned bundle put every heading in Barlow Condensed,
   so this paragraph described an intent the app was not actually keeping.
   ============================================================================ */

:root,
[data-fe-theme="light"] {
	/* ===== Brand palette (exact brand hex) ============================== */
	--nu-green-dark: #213B34;   /* Pantone 560 — deep green; primary ink + dark surfaces */
	--nu-green: #006325;        /* Pantone 357 — signature Nucor green */
	--nu-green-light: #A1CEAD;  /* Pantone 344 — soft green fill */
	--nu-green-pale: #D9E8E2;   /* Pantone 621 — palest green tint */
	--nu-blue: #7CC5EB;         /* Pantone 297 — cool accent */
	--nu-blue-light: #BFE2F6;   /* Pantone 544 — soft cool fill */
	--nu-gray-light: #F5F4F0;   /* warm off-white — alt background */
	--nu-black: #000000;
	--nu-white: #FFFFFF;

	/* Derived green tints/shades for hovers, borders, surfaces (used sparingly) */
	--nu-green-press: #00541F;  /* pressed */
	--nu-green-hover: #1A7A3E;  /* hover (lighter) */
	--nu-green-tint: #EEF5F0;   /* faint green wash */
	--nu-line-on-dark: #34534A; /* hairline on dark green */

	/* ===== Semantic roles ============================================== */
	--nu-bg: var(--nu-white);          /* default page background */
	--nu-bg-alt: var(--nu-gray-light); /* sectioned / alt background */
	--nu-bg-tint: var(--nu-green-tint);
	--nu-surface: var(--nu-white);     /* cards on light */
	--nu-surface-raised: var(--nu-white);
	--nu-surface-dark: var(--nu-green-dark);
	--nu-sidebar-bg: var(--nu-green-dark);
	--nu-scope-selected-bg: var(--nu-surface);
	--nu-principal-tab-selected-bg: var(--nu-surface);
	--nu-simulation-tab-selected-bg: var(--nu-surface);
	--nu-theme-tab-selected-bg: var(--nu-surface);
	--nu-copy-tab-selected-bg: var(--nu-surface);
	--nu-table-stripe: var(--nu-bg-tint);

	--nu-ink: var(--nu-green-dark);    /* primary text on light */
	--nu-ink-2: #4A5F58;               /* secondary text */
	--nu-ink-3: #7D8E88;               /* muted / captions */
	--nu-ink-on-dark: var(--nu-white);
	--nu-ink-on-dark-2: #B9CCC4;
	--nu-ink-on-dark-nav: #CDDDD5;
	--nu-ink-on-dark-muted: #8AA79C;
	--nu-on-accent-muted: rgba(255, 255, 255, 0.85);
	--nu-on-dark-wash-faint: rgba(255, 255, 255, 0.03);
	--nu-on-dark-wash-soft: rgba(255, 255, 255, 0.06);
	--nu-on-dark-wash-hover: rgba(255, 255, 255, 0.08);
	--nu-on-dark-wash-selected: rgba(255, 255, 255, 0.10);

	/* Text accents and filled actions are separate roles. They share a colour on light, but text
	   needs a lighter green on dark while filled controls keep the brand green + white pair. */
	--nu-accent: var(--nu-green);
	--nu-accent-hover: var(--nu-green-hover);
	--nu-accent-fill: var(--nu-green);
	--nu-accent-fill-hover: var(--nu-green-hover);
	--nu-accent-fill-active: var(--nu-green-press);
	--nu-on-accent: var(--nu-white);
	--nu-accent-cool: var(--nu-blue);  /* active-nav marker, fresh accent */
	--nu-accent-cool-soft: var(--nu-blue-light);

	--nu-border: #DFE5E1;              /* hairline borders on light */
	--nu-border-strong: #B8C2BD;
	--nu-danger: var(--nu-tone-red-fg);
	--nu-focus-ring: var(--nu-blue);
	--nu-focus-soft: var(--nu-green-tint);
	--nu-switch-track: #CDD6D1;
	--nu-switch-knob: var(--nu-white);
	--nu-overlay: rgba(33, 59, 52, 0.45);
	--nu-hover-wash: rgba(33, 59, 52, 0.08);
	--nu-control-fill: rgba(33, 59, 52, 0.10);
	--nu-control-hover: rgba(33, 59, 52, 0.20);
	--nu-danger-focus-soft: rgba(192, 57, 43, 0.15);
	--nu-shadow-accent-soft: 0 2px 10px rgba(0, 99, 37, 0.15);
	--nu-shadow-accent: 0 2px 10px rgba(0, 99, 37, 0.20);
	--nu-shadow-accent-strong: 0 2px 10px rgba(0, 99, 37, 0.25);
	--nu-shadow-switch: 0 1px 2px rgba(0, 0, 0, 0.20);

	/* ===== Status tones (StatusPill: [bg, fg]) ========================= */
	--nu-tone-green-bg: #E8F2EC;   --nu-tone-green-fg: #1A7A3E;
	--nu-tone-amber-bg: #FDF3E2;   --nu-tone-amber-fg: #B3730F;
	--nu-tone-green-border: #CFE3D8;
	--nu-tone-amber-border: #F0E2C6;
	/* Between amber and red on purpose — it marks administration roles, which are neither a
	   warning nor an error, but do want more weight than the amber "awaiting you" pills they sit
	   beside. The foreground is a shade darker than the true midpoint of the two (#BA561D): that
	   lands at 4.23:1 on this background, and pill text is 12px, so it needed 4.5:1. This is
	   4.87:1. */
	/* Orange marks a product-scoped role. It was mixed for the administration pill — a deliberate
	   step between amber and red — and kept its value when the two swapped; #AC4E19 measures
	   4.87:1 on its own tint, which clears AA for the 12px text a pill carries. */
	--nu-tone-orange-bg: #FDF0E6;  --nu-tone-orange-fg: #AC4E19;
	--nu-tone-red-bg: #FDECEA;     --nu-tone-red-fg: #C0392B;
	--nu-tone-blue-bg: #EAF1F7;    --nu-tone-blue-fg: #2B6F9E;
	--nu-tone-purple-bg: #F2EEF7;  --nu-tone-purple-fg: #6B5296;
	--nu-tone-gray-bg: #EEF1EF;    --nu-tone-gray-fg: #7D8E88;
	--nu-tone-orange-border: #EBCDBB;
	--nu-tone-red-border: #F3C9C2;
	--nu-tone-blue-border: #CFE0EC;
	--nu-tone-purple-border: #DCCFEB;
	--nu-tone-gray-border: #CDD6D1;

	/* ===== Typography (Arial per brand standard for software) ========== */
	--nu-font: Arial, "Helvetica Neue", Helvetica, Roboto, system-ui, sans-serif;
	--nu-font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

	/* Type scale (px-based; tuned for dense admin UI) */
	--nu-fs-display: 2rem;   /* 32 */
	--nu-fs-h1: 1.75rem;     /* 28 */
	--nu-fs-h2: 1.375rem;    /* 22 */
	--nu-fs-h3: 1.125rem;    /* 18 */
	--nu-fs-h4: 1rem;        /* 16 */
	--nu-fs-body: 0.9375rem; /* 15 */
	--nu-fs-small: 0.8125rem;/* 13 */
	--nu-fs-eyebrow: 0.75rem;/* 12 */
	--nu-fs-tiny: 0.6875rem; /* 11 */

	--nu-lh-tight: 1.15;
	--nu-lh-snug: 1.3;
	--nu-lh-normal: 1.5;
	--nu-tracking-eyebrow: 0.08em;

	--nu-fw-regular: 400;
	--nu-fw-medium: 500;
	--nu-fw-semibold: 600;
	--nu-fw-bold: 700;

	/* ===== Spacing / radii / shadow ==================================== */
	--nu-space-1: 4px;  --nu-space-2: 8px;  --nu-space-3: 12px; --nu-space-4: 16px;
	--nu-space-5: 24px; --nu-space-6: 32px; --nu-space-7: 48px; --nu-space-8: 64px;

	--nu-radius-sm: 4px;
	--nu-radius-md: 8px;
	--nu-radius-lg: 14px;
	--nu-radius-pill: 999px;

	--nu-shadow-sm: 0 1px 2px rgba(33, 59, 52, 0.06), 0 1px 3px rgba(33, 59, 52, 0.10);
	--nu-shadow-md: 0 4px 12px rgba(33, 59, 52, 0.10), 0 2px 4px rgba(33, 59, 52, 0.06);
	--nu-shadow-lg: 0 18px 40px rgba(33, 59, 52, 0.16), 0 6px 12px rgba(33, 59, 52, 0.08);
	--nu-shadow-popover: 0 2px 6px rgba(33, 59, 52, 0.10), 0 18px 44px rgba(33, 59, 52, 0.28);
	--nu-shadow-popover-above: 0 -2px 6px rgba(33, 59, 52, 0.10), 0 -18px 44px rgba(33, 59, 52, 0.28);

	/* Layout dimensions */
	--nu-sidebar-w: 272px;
	--nu-sidebar-w-collapsed: 72px;
	--nu-topbar-h: 60px;
}

/* Dark custom tokens follow the same document attribute as Iron. Brand constants above remain
   absolute; only semantic roles change. The text/background pairs all clear WCAG AA at the small
   sizes used by pills and field help. */
[data-fe-theme="dark"] {
	--nu-bg: #0F0F0F;
	--nu-bg-alt: #121412;
	--nu-bg-tint: #102019;
	--nu-surface: #171717;
	--nu-surface-raised: #202220;
	--nu-sidebar-bg: #14251F;
	--nu-scope-selected-bg: #2A2D2A;
	--nu-principal-tab-selected-bg: #2A2D2A;
	--nu-simulation-tab-selected-bg: #2A2D2A;
	--nu-theme-tab-selected-bg: #2A2D2A;
	--nu-copy-tab-selected-bg: #2A2D2A;
	--nu-table-stripe: #292B2C;

	--nu-ink: #DEE2E6;
	--nu-ink-2: #ADB5BD;
	--nu-ink-3: #919A96;

	--nu-accent: #6FA681;
	--nu-accent-hover: #8CB79A;
	--nu-accent-fill: #004A1C;
	--nu-accent-fill-hover: #005923;
	--nu-accent-fill-active: #003A16;
	--nu-on-accent: #FFFFFF;
	--nu-border: #495057;
	--nu-border-strong: #6C757D;
	--nu-danger: #D98985;
	--nu-focus-soft: rgba(111, 166, 129, 0.24);
	--nu-switch-track: #495057;
	--nu-switch-knob: #F8F9FA;
	--nu-overlay: rgba(0, 0, 0, 0.62);
	--nu-hover-wash: rgba(255, 255, 255, 0.08);
	--nu-control-fill: rgba(255, 255, 255, 0.10);
	--nu-control-hover: rgba(255, 255, 255, 0.16);
	--nu-danger-focus-soft: rgba(217, 137, 133, 0.25);
	--nu-shadow-accent-soft: 0 2px 10px rgba(0, 0, 0, 0.35);
	--nu-shadow-accent: 0 2px 10px rgba(0, 0, 0, 0.45);
	--nu-shadow-accent-strong: 0 2px 10px rgba(0, 0, 0, 0.55);
	--nu-shadow-switch: 0 1px 3px rgba(0, 0, 0, 0.65);

	--nu-tone-green-bg: #061912;  --nu-tone-green-fg: #78B29D;
	--nu-tone-amber-bg: #302501;  --nu-tone-amber-fg: #F7D469;
	--nu-tone-orange-bg: #2B1608; --nu-tone-orange-fg: #F3A768;
	--nu-tone-red-bg: #260C0A;    --nu-tone-red-fg: #D98985;
	--nu-tone-blue-bg: #06151D;   --nu-tone-blue-fg: #78A6BC;
	--nu-tone-purple-bg: #21182D; --nu-tone-purple-fg: #C7A8EA;
	--nu-tone-gray-bg: #1F2321;   --nu-tone-gray-fg: #A9B3AE;
	--nu-tone-green-border: #124C37;
	--nu-tone-amber-border: #916E03;
	--nu-tone-orange-border: #8A4A22;
	--nu-tone-red-border: #73231F;
	--nu-tone-blue-border: #124056;
	--nu-tone-purple-border: #674B85;
	--nu-tone-gray-border: #495057;

	--nu-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.45), 0 1px 3px rgba(0, 0, 0, 0.35);
	--nu-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.55), 0 2px 4px rgba(0, 0, 0, 0.4);
	--nu-shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.65), 0 6px 12px rgba(0, 0, 0, 0.5);
	--nu-shadow-popover: 0 2px 6px rgba(0, 0, 0, 0.50), 0 18px 44px rgba(0, 0, 0, 0.72);
	--nu-shadow-popover-above: 0 -2px 6px rgba(0, 0, 0, 0.50), 0 -18px 44px rgba(0, 0, 0, 0.72);
}

html,
body {
	background: var(--nu-bg, #fff);
	color: var(--nu-ink, #213b34);
}

/* Iron's dark palette deliberately keeps readable text/outline primary controls light. Filled
   primary actions are different: on dark cards the bundle's standard green is too luminous, so
   map only that variant onto ReBAC's darker action-fill roles. This covers every FeButton using
   Filled + Primary without reducing contrast on links or outlined buttons. */
[data-fe-theme="dark"] .fe-button.fe-button-filled.fe-button-filled-primary {
	background-color: var(--nu-accent-fill, #004a1c);
}

[data-fe-theme="dark"] .fe-button.fe-button-filled.fe-button-filled-primary:hover:not(:disabled) {
	background-color: var(--nu-accent-fill-hover, #005923);
}

[data-fe-theme="dark"] .fe-button.fe-button-filled.fe-button-filled-primary:active:not(:disabled),
[data-fe-theme="dark"] .fe-button.fe-button-filled.fe-button-filled-primary:focus-visible:not(:disabled) {
	background-color: var(--nu-accent-fill-active, #003a16);
}

.rbc-accent-icon {
	color: var(--nu-accent, #006325);
}

/* ==========================================================================
   1a. IRON FONT TOKEN OVERRIDE — keeps headings on Arial.

   Load-bearing. Iron applies --fe-heading-font-family straight to h1-h6, and
   the pinned bundle sets it to "Barlow Condensed" — so every heading in this
   app (135 of them) rendered in Barlow, silently contradicting the
   Arial-for-software standard stated above. app.css never asked for Barlow and
   no rule here mentions it; it arrived from the stylesheet.

   Repointing the token at --nu-font makes the app's own token the single source
   of truth for typography, which is what the paragraph above already claims.
   Do NOT delete this as redundant: without it Iron re-imposes its own heading
   face, and the failure is silent — headings just quietly stop being Arial.

   Only the heading token needs this. Iron's body token (--fe-font-sans-serif)
   is already an Arial stack in the pinned bundle, so it is left alone rather
   than restated; if the stylesheet is ever changed, re-check that.

   The .rbc-brand-title Termina exception is unaffected — it lists termina
   first and only falls through to this token if that font fails to load.
   ======================================================================= */

:root {
	--fe-heading-font-family: var(--nu-font);
}


/* ==========================================================================
   2. GLOBAL REDESIGN CLASSES  (rbc-*)
   ======================================================================= */

/* ============================================================================
   ReBAC UI — shared redesign classes (global)
   ----------------------------------------------------------------------------
   Reusable page/card/detail/form building blocks for the redesigned list,
   detail, and form pages. Prefixed rbc-. Reads --nu-* tokens (tokens.css).
   Loaded globally so every page + scoped component can use them.
   ============================================================================ */

/* ===== Page shell ===== */
.rbc-page {
	display: flex;
	flex-direction: column;
	gap: var(--nu-space-5, 24px);
}



.rbc-head-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--nu-space-4, 16px);
	flex-wrap: wrap;
}

.rbc-eyebrow {
	font-size: var(--nu-fs-eyebrow, 0.75rem);
	letter-spacing: var(--nu-tracking-eyebrow, 0.08em);
	text-transform: uppercase;
	color: var(--nu-ink-3, #7d8e88);
	font-weight: var(--nu-fw-semibold, 600);
}

.rbc-title {
	margin: 2px 0 0;
	font-size: var(--nu-fs-h1, 1.75rem);
	font-weight: var(--nu-fw-bold, 700);
	color: var(--nu-ink, #213b34);
}

/* No measure cap: a page subtitle is one sentence introducing the page, and holding it to a
   reading measure wrapped it to a second line while the header still had room to spare. */
.rbc-subtitle {
	margin: 4px 0 0;
	color: var(--nu-ink-2, #4a5f58);
	font-size: var(--nu-fs-body, 0.9375rem);
}

.rbc-page-actions {
	display: flex;
	gap: var(--nu-space-2, 8px);
	align-items: center;
	flex-shrink: 0;
	/* The group does not shrink — its buttons carry whole phrases and squeezing them wraps each
	   label to two lines — so on a narrow screen it has to wrap among itself instead. Both
	   declarations are needed and neither works alone: flex-shrink: 0 above means the group keeps
	   its full natural width, so it never wraps until max-width caps it at the container. Without
	   the pair, Check Access's fourth button took the row past the viewport and scrolled the whole
	   page sideways. Costs nothing where the buttons already fit. */
	flex-wrap: wrap;
	max-width: 100%;
}

/* A page-level action that opens a dialog rather than committing anything: a raised surface
   with the accent carried by its icon, so it reads as a control without shouting over the
   page title the way a solid fill would. */
.rbc-action-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-pill, 999px);
	background: var(--nu-surface, #fff);
	color: var(--nu-ink, #213b34);
	font-family: var(--nu-font);
	font-size: var(--nu-fs-small, 0.8125rem);
	font-weight: var(--nu-fw-semibold, 600);
	white-space: nowrap;
	box-shadow: var(--nu-shadow-sm, 0 1px 3px rgba(33, 59, 52, 0.1));
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease,
		transform 0.05s ease;
}

.rbc-action-btn .bi {
	font-size: 0.95rem;
	color: var(--nu-accent, #006325);
}

.rbc-action-btn:hover {
	border-color: var(--nu-accent, #006325);
	background: var(--nu-bg-tint, #eef5f0);
	box-shadow: var(--nu-shadow-accent-soft);
}

.rbc-action-btn:active {
	transform: translateY(1px);
}

.rbc-action-btn:focus-visible {
	outline: none;
	border-color: var(--nu-accent, #006325);
	box-shadow: 0 0 0 3px var(--nu-focus-soft, #eef5f0);
}

/* The same pill at row scale. Header actions are the page's headline controls and are sized to
   match; the same treatment on a list row would out-shout the row it belongs to, so only the
   size and the shadow change — hover, press and focus stay identical, because it is the same
   kind of control doing the same kind of thing. */
.rbc-action-btn--sm {
	padding: 5px 12px;
	gap: 6px;
	font-size: var(--nu-fs-small, 0.8125rem);
	box-shadow: none;
}

.rbc-action-btn--sm .bi {
	font-size: 0.85rem;
}

/* How many rows the action opens onto. Set back from the label because it is the label that
   says what the button does — the number only says whether it is worth pressing. Not a badge:
   this is a count of things to read, not a notification waiting to be cleared. */
.rbc-action-btn-count {
	margin-left: -2px;
	font-weight: var(--nu-fw-regular, 400);
	color: var(--nu-ink-3, #7d8e88);
}

.rbc-action-btn:hover .rbc-action-btn-count {
	color: var(--nu-ink-2, #4a5f58);
}

/* The subtitle sharing its line with a right-aligned control (the All/My scope toggle).
   Keeping the toggle inside the header rather than between the header and the grid is what
   keeps it tight: a standalone child of .rbc-page picks up that container's 24px gap on
   both sides. */
.rbc-head-subrow {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--nu-space-4, 16px);
	flex-wrap: wrap;
	/* Stands in for the margin the subtitle carried when it sat under the title, so the
	   header reads the same whether or not the row holds a control. */
	margin-top: var(--nu-space-1, 4px);
}

.rbc-head-subrow .rbc-subtitle {
	margin: 0;
}

/* ===== Cards ===== */
.rbc-card {
	background: var(--nu-surface, #fff);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-lg, 14px);
	box-shadow: var(--nu-shadow-sm, 0 1px 3px rgba(33, 59, 52, 0.1));
	padding: var(--nu-space-4, 16px) var(--nu-space-5, 24px) var(--nu-space-5, 24px);
}

/* Wraps because .rbc-card-search now grows: on a narrow card the box takes its own line under
   the title rather than squeezing it to a word per line. Nothing else in a card head is wide
   enough to reach the wrap, so this is inert everywhere but there. */
.rbc-card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: var(--nu-space-3, 12px);
	margin-bottom: var(--nu-space-3, 12px);
}

/* "Create X" beside a related-records card's heading. The card head is already a space-between
   flex row, so this needs no float — it just needs to not look like a heading. A text link rather
   than a button: the card's subject is the list, and a filled button up here competed with the
   page's own primary action. The empty state gets the filled button instead, because there the
   create IS the only thing to do.

   Two rules on the anchor-ish element rather than one on a shared class: this is a <button>, so it
   inherits none of a link's colour or cursor. */
.rbc-card-head-create {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0;
	border: 0;
	background: none;
	font-size: var(--nu-fs-small, 0.8125rem);
	font-weight: var(--nu-fw-semibold, 600);
	color: var(--nu-accent, #006325);
	cursor: pointer;
	white-space: nowrap;
}

.rbc-card-head-create:hover {
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Inline search box in a card header — Shared/RbcCardSearch, the four cards that narrow their own
   list. It carries no fill: it sits on the card's background, and the three things below are what
   make it read as a field rather than as a chip beside the heading.

   Width first. It was 150px fixed, which on a card spanning most of the viewport is badge-sized,
   and the placeholder now names the fields it searches — which does not fit in 150px. It grows
   into whatever the heading leaves and stops at 400px, past which the line gets long enough to
   read as a second heading.

   The min-width is the half that matters, and it is a floor rather than a starting size: the two
   dashboard cards sit in a grid that stays two columns down to 1024px, where a column leaves the
   box about 150px beside its heading — which is the width this rule exists to get away from. At
   this floor it cannot shrink that far, so .rbc-card-head wraps it onto its own line instead and
   it gets the card's full width there. Clipping a placeholder that names four fields down to one
   is worse than a second line. min() so a card narrower than the floor itself clamps rather than
   overflows.

   Then the border: --nu-border-strong, not --nu-border. The hairline was the same value as the
   card's own border around it, so the box's outline read as more of the card rather than as an
   edge in front of it — and with no fill to separate them, the border is the whole separation.

   Then the radius: the standard input radius, not the pill. Every other thing in the app you type
   into is a rounded rect, so the one search control shaped like a Tag was the one control that did
   not look typeable. */
.rbc-card-search {
	display: inline-flex;
	align-items: center;
	flex: 1 1 240px;
	min-width: min(240px, 100%);
	max-width: 400px;
	gap: var(--nu-space-2, 8px);
	padding: 7px 12px;
	border: 1px solid var(--nu-border-strong, #b8c2bd);
	border-radius: var(--nu-radius-md, 8px);
	background: var(--nu-surface, #fff);
	color: var(--nu-ink-3, #7d8e88);
}

.rbc-card-search:focus-within {
	border-color: var(--nu-accent, #006325);
	box-shadow: 0 0 0 3px var(--nu-focus-soft, #eef5f0);
}

.rbc-card-search .bi {
	font-size: 0.875rem;
	flex-shrink: 0;
}

.rbc-card-search input {
	width: 100%;
	min-width: 0;
	border: 0;
	outline: 0;
	background: transparent;
	font: inherit;
	color: var(--nu-ink, #213b34);
}

/* ::placeholder takes a UA colour rather than inheriting the wrapper's, which on dark left a
   field-naming placeholder at whatever contrast the browser picked. Muted ink on both themes. */
.rbc-card-search input::placeholder {
	color: var(--nu-ink-3, #7d8e88);
	opacity: 1;
}

/* type="search" draws its own clear glyph in Chromium, in a fixed near-black that disappears on
   the dark theme. It is recoloured rather than removed: RbcSearchSummary's Clear search link is
   the discoverable way out, and this is the one already under the reader's cursor. */
.rbc-card-search input::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
	width: 14px;
	height: 14px;
	cursor: pointer;
	background-color: var(--nu-ink-3, #7d8e88);
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 4l8 8M12 4l-8 8' stroke='black' stroke-width='2' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") center / contain no-repeat;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 4l8 8M12 4l-8 8' stroke='black' stroke-width='2' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* "3 of 42 match your search" + Clear search — Shared/RbcSearchSummary. In the card body directly
   above the rows rather than in the head beside the box: the head already carries the card's own
   title and count, and this sentence is about the rows, so it sits with them. Muted and small, a
   step under the row text — it reports what happened, it is not one of the things on the list. */
.rbc-search-summary {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--nu-space-1, 4px) var(--nu-space-3, 12px);
	margin: 0 0 var(--nu-space-3, 12px);
	font-size: var(--nu-fs-small, 0.8125rem);
	color: var(--nu-ink-2, #4a5f58);
}

/* No colour of its own. .rbc-linkbtn is `color: inherit`, so it takes the line's secondary ink at
   rest and .rbc-linkbtn:hover:not(:disabled) takes it green — the same quiet-then-green the
   "Clear filters" link on the approvals filter card has. Setting a resting green here would both
   out-shout the sentence it sits in and flatten that hover, which is the trap .rbc-grid-none-link
   carries a comment about. The underline is what marks it pressable. */
.rbc-search-summary .rbc-linkbtn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.rbc-card-title {
	margin: 0;
	font-size: var(--nu-fs-h4, 1rem);
	font-weight: var(--nu-fw-semibold, 600);
	color: var(--nu-ink, #213b34);
	display: flex;
	align-items: center;
	gap: 8px;
}

.rbc-card-title .bi {
	color: var(--nu-accent, #006325);
}

/* A card whose body is a show/hide, for reference material that has to stay reachable without
   taking up the page by default — the Administration scope pages' "what this is built from".
   The trigger stands in for .rbc-card-title, so it carries no padding of its own: .rbc-card
   already supplies it, and adding more here would double it. A button rather than a
   <summary> so it is styled and keyboard-operable the same way as everything else. */
.rbc-disclosure {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--nu-space-3, 12px);
	width: 100%;
	padding: 0;
	background: none;
	border: 0;
	cursor: pointer;
	text-align: left;
	font-size: var(--nu-fs-h4, 1rem);
	font-weight: var(--nu-fw-semibold, 600);
	color: var(--nu-ink, #213b34);
}

.rbc-disclosure:hover {
	color: var(--nu-accent, #006325);
}

.rbc-disclosure-caret {
	color: var(--nu-ink-3, #7d8e88);
	font-size: var(--nu-fs-small, 0.8125rem);
}

.rbc-disclosure-body {
	display: flex;
	flex-direction: column;
	gap: var(--nu-space-2, 8px);
	margin-top: var(--nu-space-3, 12px);
}

/* FeDataGrid container inside a flush card */
.rbc-grid {
	padding: var(--nu-space-3, 12px) var(--nu-space-4, 16px) var(--nu-space-4, 16px);
	background: var(--nu-surface, #fff);
}

/* Standalone rounded grid wrapper (no outer card). overflow:hidden softens the
   table's corners to match the card radius. Keeps .rbc-card's shadow so a grid reads as
   the same kind of surface as every other card; the seam that used to show above the
   row-count footer came from the grid div's own elevation, handled below, not from here. */
.rbc-grid-wrap {
	background: var(--nu-surface, #fff);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-lg, 14px);
	box-shadow: var(--nu-shadow-sm, 0 1px 3px rgba(33, 59, 52, 0.1));
	overflow: hidden;
}

/* A read-only explanation of the active My / All scope. It sits above Iron's own toolbar rather
   than replacing it, so search and export remain where every other grid puts them. ScopeToggle is
   still the only control that changes the view. */
.rbc-grid-view {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--nu-space-4, 16px);
	min-height: 41px;
	padding: var(--nu-space-2, 8px) var(--nu-space-4, 16px);
	border-bottom: 1px solid var(--nu-border, #dfe5e1);
	color: var(--nu-ink-2, #4a5f58);
	font-size: var(--nu-fs-small, 0.8125rem);
}

.rbc-grid-view-message {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.rbc-grid-view-message strong {
	color: var(--nu-ink, #213b34);
	font-weight: var(--nu-fw-semibold, 600);
}

.rbc-grid-view-count {
	flex-shrink: 0;
	color: var(--nu-ink-3, #7d8e88);
}

/* A count with a filter beside it holds a steady width: the real text and an invisible copy of the
   widest text it can show share one grid cell, so the cell is always the wider of the two and the
   real count sits right-aligned in it. Tabular figures keep "7" and "212" from differing by glyph
   width too. Without it, changing the filter changed the count's width and slid the dropdown. */
.rbc-grid-view-count--steady {
	display: inline-grid;
	justify-items: end;
	font-variant-numeric: tabular-nums;
}

.rbc-grid-view-count--steady > * {
	grid-area: 1 / 1;
}

.rbc-grid-view-count-ghost {
	visibility: hidden;
}

/* The line's trailing group: a page's filter control (the Status dropdown), then the count. */
.rbc-grid-view-trail {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	gap: var(--nu-space-3, 12px);
}

/* The Status dropdown's choice shows as one of Iron's applied-filter chips (GridStatusFilter), which
   Iron draws all alike and marks with nothing that says which filter each is. The status goes first
   in the grid's filter list, so its chip is the first in the row, and its tone is named on the grid
   wrapper; these rules give that chip the colours of the grid's Status pill for the rows it keeps.
   They lean on Iron's chip markup — chips as direct children of the chip set, in filter order — so
   an Iron upgrade that changes it leaves the chip in Iron's grey rather than breaking anything. */
.rbc-status-chip--green {
	--rbc-status-chip-bg: var(--nu-tone-green-bg, #e8f2ec);
	--rbc-status-chip-fg: var(--nu-tone-green-fg, #1a7a3e);
}

.rbc-status-chip--amber {
	--rbc-status-chip-bg: var(--nu-tone-amber-bg, #fdf3e2);
	--rbc-status-chip-fg: var(--nu-tone-amber-fg, #b3730f);
}

.rbc-status-chip--red {
	--rbc-status-chip-bg: var(--nu-tone-red-bg, #fdecea);
	--rbc-status-chip-fg: var(--nu-tone-red-fg, #c0392b);
}

.rbc-status-chip--gray {
	--rbc-status-chip-bg: var(--nu-tone-gray-bg, #eef1ef);
	--rbc-status-chip-fg: var(--nu-tone-gray-fg, #7d8e88);
}

.rbc-grid-wrap[class*="rbc-status-chip--"] .fe-data-grid-applied-filters-container [role="group"] > .fe-chip-container:first-child > .fe-chip {
	background: var(--rbc-status-chip-bg);
	border-color: transparent;
	color: var(--rbc-status-chip-fg);
}

.rbc-grid-wrap[class*="rbc-status-chip--"] .fe-data-grid-applied-filters-container [role="group"] > .fe-chip-container:first-child > .fe-chip .fe-chip-close-button,
.rbc-grid-wrap[class*="rbc-status-chip--"] .fe-data-grid-applied-filters-container [role="group"] > .fe-chip-container:first-child > .fe-chip .fe-chip-close-button * {
	color: inherit;
}

@media (max-width: 600px) {
	.rbc-grid-view {
		align-items: flex-start;
		flex-direction: column;
		gap: var(--nu-space-1, 4px);
	}
}

/* Iron's FeDataGrid defaults Outlined to true, so the grid div draws its own 1px border
   immediately inside this wrapper's — two near-identical hairlines on all four sides,
   most obvious along the bottom under the footer. The wrapper owns the card outline and
   the radius, so Iron's is pure duplication. */
.rbc-grid-wrap .fe-table.fe-table-outlined {
	border: none;
}

/* Kill the grid's own elevation shadow. The CDN Iron bundle (fe-bundle.min.css, which is
   what index.html actually loads — the local package's CSS link is commented out) puts a
   Material elevation on the grid itself:
       .fe-data-grid { --fe-datagrid-box-shadow: var(--fe-datagrid-elevation);
                       box-shadow: var(--fe-datagrid-box-shadow) }
   That matters here because FeDataGrid closes div.fe-table *before* rendering the bottom
   row count, so the count span is a SIBLING of the grid div, not a child of it. The grid's
   shadow therefore falls between the rows and the footer, reading as a hard dark seam
   across the full width. This wrapper already supplies the card's border, radius and
   shadow, so the grid needs no elevation of its own. */
.rbc-grid-wrap .fe-data-grid {
	box-shadow: none;

	/* The grid paints its own surface rather than letting Iron's show through. Taken from the
	   token, so a change to --nu-surface reaches the grid cards with everything else — this
	   used to be a hardcoded "#ffffff !important" on a .data-grid-container class carried over
	   from the FluentUI grid, which silently beat the wrapper's own token. */
	background: var(--nu-surface, #fff);
}

/* Shown when the My scope leaves nothing — the grid would otherwise render an empty shell
   with no hint that a filter is responsible. */
.rbc-grid-none {
	padding: var(--nu-space-6, 32px) var(--nu-space-4, 16px);
	text-align: center;
	color: var(--nu-ink-2, #4A5F58);
}

/* Sized up from the .8125rem this placeholder used to inherit: it is the only thing on an
   otherwise empty card, so it reads as the page's message rather than as grid chrome. */
.rbc-grid-none-text {
	margin: 0;
	font-size: var(--nu-fs-h3, 1.125rem);
}

/* The way out of the empty scope, under the sentence that explains it — the ScopeToggle that
   would otherwise be the only route sits up in the page header, off the reader's eye line. */
.rbc-grid-none-link {
	margin-top: var(--nu-space-3, 12px);
	color: var(--nu-accent, #006325);
	font-size: var(--nu-fs-h3, 1.125rem);
	font-weight: var(--nu-fw-semibold, 600);
}

/* rbc-linkbtn's hover recolors to green, which is already this link's resting colour — darken
   instead, so the pointer still gets feedback. */
.rbc-grid-none-link:hover {
	color: var(--nu-ink, #213b34);
}

/* A collection may occasionally need to explain more than the default View All escape hatch.
   Keep that guidance inside the established empty-state footprint instead of adding another card. */
.rbc-grid-none-icon {
	display: inline-block;
	margin-bottom: var(--nu-space-2, 8px);
	color: var(--nu-accent, #006325);
	font-size: 2rem;
}

.rbc-grid-none-content {
	margin-top: var(--nu-space-3, 12px);
}

.rbc-grid-none-guidance {
	max-width: 72rem;
	margin-inline: auto;
	font-size: var(--nu-fs-small, 0.8125rem);
	line-height: var(--nu-lh-normal, 1.5);
}

.rbc-grid-none-guidance p {
	margin: 0;
}

.rbc-grid-none-guidance p + p {
	margin-top: var(--nu-space-2, 8px);
}

.rbc-grid-none-guidance strong {
	color: var(--nu-ink, #213b34);
}

.rbc-grid-none-actions {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: var(--nu-space-4, 16px);
	margin-top: var(--nu-space-4, 16px);
}

.rbc-grid-none-link--inline {
	margin-top: 0;
}

/* Column-header filter popups render an Iron FeOverlay whose scrim dims the whole
   screen. Keep the overlay element itself (its outer div still closes the popup on
   an outside click) but drop the dark scrim so the page stays readable while filtering. */
.rbc-grid-wrap .fe-overlay-scrim {
	--fe-overlay-dark: transparent;
	background: transparent !important;
}

/* Grid toolbar: global search on the left, export buttons on the right.
   Iron's toolbar row is [left (empty)] [spacer.flex-grow-1] [right (search+export)];
   removing the spacer and letting the right container span full width with
   space-between puts search at the far left and export at the far right.

   Target the spacer by aria-hidden + flex-grow-1, NOT by .fe-spacer. FeSpacer used to render
   <span class="fe-spacer flex-grow-1"> and derive from FeComponentBase; at 2.12.6 it derives
   from plain ComponentBase and renders a bare <div aria-hidden="true" class="flex-grow-1">,
   so the .fe-spacer hook is gone and hiding it that way silently stopped working — the search
   drifted back to the right. The selector below matches both shapes. */
.rbc-grid-wrap .fe-data-grid-toolbar-row > [aria-hidden="true"].flex-grow-1 {
	display: none;
}

.rbc-grid-wrap .fe-data-grid-toolbar-right {
	flex: 1 1 auto;
	justify-content: space-between;
	gap: var(--nu-space-3, 12px);
}

/* Iron's icon buttons are round again unless we say otherwise — restore the squared corners.
   The CDN bundle gives .fe-icon-button `border-radius:50%`, then immediately walks it back for
   .fe-icon-button.fe-button (`border-radius:var(--fe-border-radius); box-shadow:none`). Iron used
   to emit `fe-button fe-icon-button` on EVERY FeIconButton, so that second rule always won and
   nothing was ever circular. At 2.12.6 the base class list is `btn fe-icon-button` and `fe-button`
   is added only when Variant != Text — so for the default Text variant the walk-back no longer
   matches and the 50% circle survives. That is where the unfamiliar round border on the grid's
   export buttons came from.

   This re-states the bundle's own three rules against `.btn` instead of `.fe-button`, at the same
   two-class specificity; app.css loads after the bundle, so the ties resolve here. It is deliberately
   global: the app never places an FeIconButton itself, but Iron renders 21 of them inside grid
   chrome — the export buttons, the filter funnel, the four pager arrows and the header-cell
   buttons — and all of them regressed together. */
.fe-icon-button.btn {
	border-radius: var(--fe-border-radius);
	box-shadow: none;
}

.fe-icon-button.btn:hover,
.fe-icon-button.btn:active {
	box-shadow: none;
}

.fe-icon-button.btn:focus-visible {
	box-shadow: 0 0 0 var(--fe-focus-ring-width) var(--fe-focus-ring-color);
}

/* Fix the first column (ID) to a compact width. The grid is a real HTML table
   with auto layout and no functional per-column width API (FeDataGridColumnState.Width
   is reserved "if supported in the future"), so we constrain the first cell here.
   Applies to every redesigned grid whose first column is the ID. */
.rbc-grid-wrap .fe-table-cell:first-child {
	width: 100px;
	min-width: 100px;
	max-width: 100px;
}

/* Actions column (always the last column) — standardized width of 80px, which fits
   the one or two icon actions the grids carry. */
.rbc-grid-wrap .fe-table-cell:last-child {
	width: 80px;
	min-width: 80px;
	max-width: 80px;
}


/* Center the "Actions" header label (the Actions column is always the last column).
   The label lives in a flex wrapper inside the header cell, so text-align alone
   isn't enough — center both the cell and its inner content. */
.rbc-grid-wrap .fe-table-head .fe-table-cell:last-child {
	text-align: center !important;
	justify-content: center !important;
}

.rbc-grid-wrap .fe-table-head .fe-table-cell:last-child > * {
	justify-content: center !important;
}

/* A grid with no Actions column — the Access Audit's results, which are read-only and have no row
   to act on. Its last column is data, so it gets back the width and the left-aligned header the
   two rules above take away. Two classes, so it outranks them without depending on source order. */
.rbc-grid-wrap.rbc-grid-wrap--no-actions .fe-table-cell:last-child {
	width: auto;
	min-width: 0;
	max-width: none;
}

.rbc-grid-wrap.rbc-grid-wrap--no-actions .fe-table-head .fe-table-cell:last-child {
	text-align: left !important;
	justify-content: flex-start !important;
}

.rbc-grid-wrap.rbc-grid-wrap--no-actions .fe-table-head .fe-table-cell:last-child > * {
	justify-content: flex-start !important;
}

/* A grid whose first column is data rather than an ID — a campaign's signoffs, led by who holds
   the assignment. It gets back the width the compact-ID rule above takes. Two classes, so it
   outranks that rule without depending on source order. */
.rbc-grid-wrap.rbc-grid-wrap--no-id .fe-table-cell:first-child {
	width: auto;
	min-width: 0;
	max-width: none;
}

/* Row-count footer on the virtualized grids (Iron's built-in ShowGridRowsCount, placed
   Bottom). Iron renders the count as a bare <span> appended *after* the scrolling
   .fe-table-container, never inside it, so making that span a block bar buys a footer
   without touching the grid's own scroll or virtualization.

   Why Iron's built-in count and not a footer of our own — the two dead ends, both of
   which this replaces:
     - A footer rendered by the *page*, reading the count off an @ref to the grid, goes
       stale exactly when it matters. FeDataGrid.GlobalSearchValueChanged and
       AddFilterAsync call only their own StateHasChanged; neither raises
       OnDataGridStateChanged, so the grid publishes no event a sibling can subscribe to
       for a search keystroke or a column filter. The count has to be rendered inside the
       grid's own render pass, where it reads the same per-render FilteredItems cache the
       rows come from and therefore cannot drift out of step.
     - A column FooterTemplate does render in that pass and would be localizable, but
       Iron's responsive CSS hides .fe-table-foot outright under 1200px, so the count
       would silently vanish on a narrower window. The built-in span sits outside the
       table and survives every breakpoint.
   Do NOT reach for PagerContent either: supplying it switches the grid from rendering
   FilteredItems to GetItemsOfPage(CurrentPage, RowsPerPage), which truncates the grid to
   one page of rows and takes the internal scrollbar with it.

   The trade-off accepted here is that Iron hard-codes the wording ("Displaying N of M")
   as a literal rather than routing it through the localizer, so this one string stays
   English in es-ES. Every other Iron grid string is translated (the FeDataGrid_* keys in
   wwwroot/localization). Revisit if a later Iron release localizes it. */

/* The span is a sibling of the scroll box, so its height adds to the grid's total. Each
   grid's Height subtracts this token so the page footprint is unchanged; keep it in step
   with the padding and font size below (measured: 32.9px). */
:root {
	--rbc-grid-foot-h: 33px;
}

.rbc-grid-wrap .rbc-grid-count {
	display: block;
	padding: var(--nu-space-2, 8px) var(--nu-space-5, 24px);
	/* No divider above the count, and no background tint: both would only reassert the
	   heavy bottom edge this footer replaced. On a grid with few rows the rule would be
	   the single longest line on the page, stranded under empty space, and it reads as a
	   hard seam rather than a boundary. Transparent also matches the grid's top toolbar,
	   which likewise paints no background — matching by omission keeps the two ends in
	   step if the grid's background ever changes. Nothing scrolls behind this: the span
	   sits outside .fe-table-container. */
	background: transparent;
	color: var(--nu-ink-3, #7D8E88);
	font-size: var(--nu-fs-small, 0.8125rem);
	line-height: 1.3;
	text-align: right;
	/* The count changes as the user types in the search box; tabular figures keep it from
	   twitching sideways on every keystroke. */
	font-variant-numeric: tabular-nums;
}

/* Iron's FeDataGridSelectMode defaults to Row, so any row click selects that row and the
   count display appends "| Selected: 1". Selection means nothing on these grids — rows are
   opened through the name link and the action buttons — so drop that half rather than
   changing SelectMode, which would alter behaviour to fix presentation. */
.rbc-grid-wrap .fe-data-grid-selected-item-count,
.rbc-grid-wrap .fe-data-grid-supplemental-text-break {
	display: none;
}

/* Title shown above a related grid on detail pages (in place of a card header) */
/* Related-data grids on detail pages carry their heading inside the card, matching the
   Details card. .rbc-grid-wrap has no padding of its own (the table fills it edge to
   edge), so the heading supplies its own inset. */
.rbc-grid-wrap > .rbc-card-head {
	margin-bottom: 0;
	padding: var(--nu-space-4, 16px) var(--nu-space-5, 24px) var(--nu-space-2, 8px);
}

/* Attribute groups inside a detail card: the flat label/value list is split into the
   same field groups the create/edit form uses, so dense records (role assignments,
   access requests) stay scannable instead of running to a dozen-plus unbroken rows. */
.rbc-detail-groups {
	display: flex;
	flex-direction: column;
	gap: var(--nu-space-5, 24px);
}

/* Two columns inside one detail card, for a record short enough that stacking its groups
   made a tall card out of a lot of empty space. Children fall into the columns in source
   order; a group that needs the full width (chip lists, tables) opts out with --full. */
.rbc-detail-groups--split {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--nu-space-5, 24px);
	align-items: start;
}

/* Stacks several groups within one of those columns. */
.rbc-detail-col {
	display: flex;
	flex-direction: column;
	gap: var(--nu-space-5, 24px);
	min-width: 0;
}

.rbc-detail-groups--split > .rbc-detail-group--full {
	grid-column: 1 / -1;
}

.rbc-detail-group > .rbc-section-title,
.rbc-quicklinks-card > .rbc-section-title {
	margin-bottom: var(--nu-space-3, 12px);
	padding-bottom: var(--nu-space-2, 8px);
	border-bottom: 1px solid var(--nu-border, #dfe5e1);
}

/* Values that are themselves a set of pills wrap tidily rather than stretching the row. */
.rbc-overview dd > .rbc-cell-pills {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--nu-space-2, 8px);
}

/* A role-kind pill is supporting information for the role name in review dialogs. */
.rbc-overview dd > .rbc-role-kind-under {
	margin-top: 6px;
}

/* Justification shown inside a detail card: emphasised because it is the reason the
   request exists, and free text that should wrap rather than stretch the row. */
.rbc-justification {
	margin: 0;
	font-weight: var(--nu-fw-semibold, 600);
	color: var(--nu-ink, #213b34);
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

/* Conflicting-role links inside the segregation-of-duties banner: each conflict is a
   button to that role, named where the name could be resolved. */
.rbc-conflict-links {
	display: flex;
	flex-direction: column;
	gap: var(--nu-space-2, 8px);
	width: 100%;
}

/* The roles an assignee already holds that clash with one being granted
   (ConflictingRolesModal). Each row names the role, where it is scoped, and offers a way
   into the assignment carrying it — the decision is usually "deal with that one first". */
.rbc-conflict-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--nu-space-2, 8px);
}

.rbc-conflict-item {
	display: flex;
	align-items: center;
	gap: var(--nu-space-3, 12px);
	padding: var(--nu-space-3, 12px);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-left: 3px solid var(--nu-tone-red-fg, #c0392b);
	border-radius: var(--nu-radius-md, 8px);
	background: var(--nu-surface, #fff);
}

.rbc-conflict-item-icon {
	flex-shrink: 0;
	color: var(--nu-tone-red-fg, #c0392b);
}

.rbc-conflict-item-body {
	flex: 1 1 auto;
	min-width: 0;
}

.rbc-conflict-item-name {
	font-weight: var(--nu-fw-semibold, 600);
	color: var(--nu-ink, #213b34);
}

.rbc-conflict-item-meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--nu-space-1, 4px) var(--nu-space-3, 12px);
	margin-top: 2px;
	font-size: var(--nu-fs-small, 0.8125rem);
	color: var(--nu-ink-3, #7d8e88);
}

.rbc-conflict-link {
	display: flex;
	align-items: center;
	gap: var(--nu-space-2, 8px);
	width: 100%;
	padding: var(--nu-space-2, 8px) var(--nu-space-3, 12px);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-md, 8px);
	background: var(--nu-surface, #fff);
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rbc-conflict-link:hover {
	border-color: var(--nu-accent, #006325);
	box-shadow: var(--nu-shadow-sm);
}

.rbc-conflict-link > .bi:first-child {
	color: var(--nu-tone-amber-fg, #b3730f);
}

.rbc-conflict-link-main {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1 1 auto;
}

.rbc-conflict-link-name {
	font-weight: var(--nu-fw-semibold, 600);
	color: var(--nu-ink, #213b34);
	overflow-wrap: anywhere;
}

.rbc-conflict-link-id {
	font-size: var(--nu-fs-small, 0.8125rem);
	color: var(--nu-ink-3, #7d8e88);
}

/* Audit panel in the right rail: label over value, since the rail is too narrow for the
   two-column overview grid and audit values (UPNs) are long. */



/* Compact grid variant — smaller cell font (used on detail-page related grids).
   Iron sizes cells from the --fe-table-font-size variable (default 0.875rem) via a
   high-specificity selector, so overriding that variable on the table is the reliable
   lever — it also shrinks the header and pager to match. */
.rbc-grid-sm .table {
	--fe-table-font-size: 0.8125rem;
}

/* The ID span sets its own size; make it follow the compact cell font. */
.rbc-grid-sm .rbc-cell-id {
	font-size: inherit;
}

/* ===== Grid cell helpers (used inside FeDataGrid CellTemplates) ===== */
.rbc-cell-id {
	font-family: var(--nu-font-mono, monospace);
	font-size: var(--nu-fs-small, 0.8125rem);
	color: var(--nu-ink-3, #7d8e88);
}

.rbc-cell-strong {
	font-weight: var(--nu-fw-semibold, 600);
	color: var(--nu-ink, #213b34);
}

/* A table cell that navigates but looks exactly like plain bold text
   (no link color, no underline in any state). */
a.rbc-cell-link,
a.rbc-cell-link:hover,
a.rbc-cell-link:focus,
a.rbc-cell-link:visited {
	font-weight: var(--nu-fw-semibold, 600);
	color: var(--nu-ink, #213b34);
	text-decoration: none;
	cursor: pointer;
}

/* An inline link inside running text — green and underlined, so a reader can tell which phrase
   in a sentence navigates. Deliberately the opposite of a.rbc-cell-link above, which has no link
   colour at all: there the whole cell navigates and colouring it would stripe the grid, here one
   phrase does and nothing else marks it. :visited is pinned so the browser's purple cannot take
   over a link the reader will follow repeatedly, and the element+class selector outranks the
   Iron bundle's own `a` colour without needing !important. */
a.rbc-textlink,
a.rbc-textlink:visited {
	color: var(--nu-accent, #006325);
	font-weight: var(--nu-fw-semibold, 600);
	text-decoration: underline;
	text-underline-offset: 2px;
}

a.rbc-textlink:hover,
a.rbc-textlink:focus {
	color: var(--nu-accent-hover, #1a7a3e);
}

.rbc-cell-pills {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

/* The admin grids' Scope cell: one pill per row, but "Application" and "Product" are different
   lengths, so the name after them started at a different x on every row and the column read as
   ragged. A floor on the pill's width levels them; the text centres inside whatever slack that
   leaves, so a short label sits in the middle of its box rather than against the left edge.

   86px is measured, not chosen: the four labels this cell can show render at 85.34 / 65.34
   ("Application" / "Product") and 80.69 / 72.67 ("Aplicación" / "Producto") at the pill's 12px
   semibold Arial with its 10px side padding. So the floor is the widest of them and the column
   costs nothing it was not already paying. **Re-measure if a third culture or a longer scope word
   arrives** — a label wider than this floor pushes its own row out again, and only that row.

   box-sizing is not optional here: those figures are outer widths, and .rbc-pill declares none of
   its own, so under a content-box reset a bare min-width would add the 20px of side padding on
   top and make every pill 106px — wider than the "Application" pill it is supposed to match.
   Declaring it makes the number mean the same thing under either reset.

   Scoped to this cell. .rbc-cell-pills carries pills all over the app whose widths should stay
   their content's. */
.rbc-admscope .rbc-pill {
	box-sizing: border-box;
	min-width: 86px;
	justify-content: center;
}

/* A value that leads and a marker that sits against the far edge, both on the centre line.
   Unlike .rbc-cell-pills — which keeps a pill next to the text it qualifies — this pushes the
   pill to the container edge so a run of rows lines it up in a column of its own, scannable
   without reading each value first. Full width, so "the far edge" is the container's, not the
   text's. Named for the grid cells it started in; it works anywhere the same "value left,
   marker right" shape is wanted, including a <dd> whose value is two stacked lines. */
.rbc-cell-split {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--nu-space-3, 12px);
	width: 100%;
}

/* A linked administration-role name and the info control explaining that role. This stays as one
   unit on the left of .rbc-cell-split while role-kind and exclusion pills remain right-aligned. */
.rbc-cell-role-name {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	min-width: 0;
}

/* Secondary sub-line under a primary cell value (e.g. principal type under name) */
/* A grid cell's Assignment Scope: the scope, with an info icon after it on the rows whose
   organization has to be looked up per user. inline-flex with a hair of gap so the icon sits
   against the text it belongs to rather than drifting to the column's edge, and min-width: 0 so a
   long organization name still gives rather than pushing the icon out of the cell. */
.rbc-cell-scope {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	min-width: 0;
}

/* A secondary line under a cell's or a field's main value. The weight is set, not inherited:
   these sit inside .rbc-quickinfo's dd, which is semibold, and small + muted + bold reads as
   smudged rather than secondary. Everywhere else it sits in normal-weight text already, so
   stating it changes nothing there. */
.rbc-cell-sub {
	font-size: var(--nu-fs-small, 0.8125rem);
	font-weight: var(--nu-fw-regular, 400);
}

/* ===== Access Explorer (tabbed read-only page) ===== */

/* Granted/denied verdict banner */
.rbc-verdict {
	display: flex;
	align-items: center;
	gap: var(--nu-space-3, 12px);
	padding: var(--nu-space-4, 16px);
	border: 1px solid transparent;
	border-radius: var(--nu-radius-md, 8px);
	margin-bottom: var(--nu-space-4, 16px);
}

.rbc-verdict-icon {
	font-size: 1.5rem;
	flex-shrink: 0;
}

.rbc-verdict-title {
	font-weight: var(--nu-fw-bold, 700);
	font-size: var(--nu-fs-body, 0.9375rem);
}

.rbc-verdict--granted {
	background: var(--nu-tone-green-bg, #e8f2ec);
	border-color: var(--nu-tone-green-border, #cfe3d8);
	color: var(--nu-tone-green-fg, #1a7a3e);
}

.rbc-verdict--denied {
	background: var(--nu-tone-red-bg, #fdecea);
	border-color: var(--nu-tone-red-border, #f3c9c2);
	color: var(--nu-tone-red-fg, #c0392b);
}

/* Result table (effective-permissions lists) */





/* Two-column field row (e.g. start/end dates) */
.rbc-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--nu-space-4, 16px);
}

/* Role Assignment Edit keeps the assignment's active window and its grant/exclusion mode in one
   scan line. The dates share the available width; the shorter toggle stays pinned to the far edge. */
.rbc-field-row--assignment-window {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
	align-items: start;
}

.rbc-assignment-window-section {
	padding-top: var(--nu-space-5, 24px);
}

.rbc-field--assignment-exclusion {
	justify-self: end;
	min-width: 12rem;
	padding-top: 1.4rem;
	padding-left: var(--nu-space-5, 24px);
}

/* Create Role's step 2 pair, off the even split for the mirror-image reason: the left field is a
   *filter* on the right one, so it is subordinate and takes the smaller share — and the right one
   holds the actual answer, whose values are "[12] Application Name" and need the room.
   Same source-order constraint as the rule above: it must stay ahead of the stacking media query
   or the two never collapse on a narrow screen. */
.rbc-field-row--narrow-first {
	grid-template-columns: 2fr 3fr;
}

@media (max-width: 560px) {
	.rbc-field-row {
		grid-template-columns: 1fr;
	}

	.rbc-field--assignment-exclusion {
		justify-self: start;
		min-width: 0;
		padding-top: 0;
		padding-left: 0;
	}
}

/* Small icon row actions */
.rbc-row-actions {
	display: inline-flex;
	align-items: center;
	gap: 2px;
}

.rbc-row-action {
	width: 30px;
	height: 30px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none;
	background: transparent;
	border-radius: var(--nu-radius-sm, 4px);
	cursor: pointer;
	font-size: 0.95rem;
	transition: background-color 0.15s ease;
}

.rbc-row-action:hover {
	background: var(--nu-bg-alt, #f5f4f0);
}

.rbc-row-action--view {
	color: var(--nu-ink-3, #7d8e88);
}

.rbc-row-action--edit {
	color: var(--nu-accent, #006325);
}

/* Withdrawing your own pending request. It is labelled rather than another square icon action:
   unlike View and Approvers, cancelling changes the request's lifecycle and cannot be undone.
   The small separation makes that distinction visible while FeButton owns the danger outline,
   focus and disabled states. nowrap keeps the action's name intact beside the two icon controls. */
.rbc-withdraw-action {
	margin-left: var(--nu-space-1, 4px);
	white-space: nowrap;
}


/* ===== Detail: overview + related + rail ===== */
.rbc-detail-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: var(--nu-space-5, 24px);
	align-items: start;
}

.rbc-detail-main {
	display: flex;
	flex-direction: column;
	gap: var(--nu-space-5, 24px);
	min-width: 0;
}

/* Scrolls UNDER the top bar, not over it. No z-index at all, which is the point: a sticky
   element always opens a stacking context, so the rail already sits in its own layer, and giving
   that layer a number only decides whether the whole subtree paints above or below the shell
   chrome. With `auto` it loses to .rbc-topbar (40) and .rbc-sidebar (20), which is what a column
   of page content should do.

   This carried z-index: 70 until it was found to be the cause of the rail sliding over the top
   bar's breadcrumbs and Help icon on short viewports — the rail un-sticks as its containing
   block's bottom passes, travels up through the top bar's band, and painted over it the whole
   way. The 70 was there for a different reason: AdministerAccessCard and AdministrationInfoCard
   declare dialogs, and a `position: fixed` backdrop declared inside a sticky element is sized
   against the viewport correctly but PAINTS in that element's stacking context, so it rendered
   beneath the shell chrome instead of over it. Raising the rail fixed the dialog and broke the
   rail; there is no number that does both, because both are in the same layer.

   Both are right now because the dialogs no longer render here — they go through
   <SectionContent> to the shell-level outlet in MainLayout, where their own z-index: 1000 means
   what it says. See OverlaySection. If a card in this rail ever declares an overlay inline
   again, hoist it the same way rather than reaching for z-index. */
.rbc-rail {
	display: flex;
	flex-direction: column;
	gap: var(--nu-space-4, 16px);
	position: sticky;
	top: calc(var(--nu-topbar-h, 60px) + var(--nu-space-4, 16px));
	/* Caps itself and scrolls, like .rbc-copy-rail — a sticky column taller than the space above
	   the fold pins its top and leaves its own bottom unreachable. Released again where the
	   layout stacks; see the media query. */
	max-height: calc(100vh - var(--nu-topbar-h, 60px) - var(--nu-space-6, 32px));
	overflow-y: auto;
}

.rbc-overview {
	display: grid;
	grid-template-columns: 180px minmax(0, 1fr);
	gap: var(--nu-space-3, 12px) var(--nu-space-4, 16px);
	margin: 0;
}

.rbc-overview dt {
	font-size: var(--nu-fs-small, 0.8125rem);
	color: var(--nu-ink-3, #7d8e88);
	font-weight: var(--nu-fw-medium, 500);
}

.rbc-overview dd {
	margin: 0;
	font-size: var(--nu-fs-body, 0.9375rem);
	color: var(--nu-ink, #213b34);
	min-width: 0;
	word-break: break-word;
}

.rbc-mono {
	font-family: var(--nu-font-mono, monospace);
	font-size: var(--nu-fs-small, 0.8125rem);
	color: var(--nu-ink-2, #4a5f58);
	background: var(--nu-bg-alt, #f5f4f0);
	padding: 1px 7px;
	border-radius: var(--nu-radius-sm, 4px);
}

.rbc-muted {
	color: var(--nu-ink-3, #7d8e88);
}

/* Right-rail quick tip */
.rbc-tip {
	background: var(--nu-bg-tint, #eef5f0);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-md, 8px);
	padding: var(--nu-space-4, 16px);
}

.rbc-tip-label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: var(--nu-fs-eyebrow, 0.75rem);
	letter-spacing: var(--nu-tracking-eyebrow, 0.08em);
	text-transform: uppercase;
	font-weight: var(--nu-fw-semibold, 600);
	color: var(--nu-accent, #006325);
	margin-bottom: 6px;
}

.rbc-tip-body {
	font-size: var(--nu-fs-small, 0.8125rem);
	color: var(--nu-ink-2, #4a5f58);
	line-height: var(--nu-lh-normal, 1.5);
}

/* The follow-through on a tip that names a record the reader can open — currently just the
   approved access request pointing at the assignment it created. A button, like every other
   navigation trigger in the rail, so it never picks up a browser's default blue; the colour and
   hover-underline are .rbc-admin-viewlink's, the app's established "plain green text trigger",
   but left-aligned rather than centred because it follows a paragraph rather than a full-width
   button. */
.rbc-tip-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: var(--nu-space-2, 8px);
	padding: 0;
	background: none;
	border: 0;
	font: inherit;
	font-size: var(--nu-fs-small, 0.8125rem);
	font-weight: var(--nu-fw-semibold, 600);
	color: var(--nu-accent, #006325);
	cursor: pointer;
}

.rbc-tip-link:hover {
	text-decoration: underline;
}

.rbc-tip-link .bi {
	font-size: 0.75rem;
}

/* Rail quick links */
.rbc-quicklinks {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.rbc-quicklink {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 10px;
	border-radius: var(--nu-radius-md, 8px);
	text-decoration: none;
	color: var(--nu-ink, #213b34);
	font-size: var(--nu-fs-small, 0.8125rem);
	font-weight: var(--nu-fw-medium, 500);
	background: transparent;
	border: none;
	cursor: pointer;
	text-align: left;
	width: 100%;
}

.rbc-quicklink:hover {
	background: var(--nu-bg-alt, #f5f4f0);
}

.rbc-quicklink .bi:first-child {
	color: var(--nu-accent, #006325);
}

.rbc-quicklink-chevron {
	margin-left: auto;
	color: var(--nu-ink-3, #7d8e88);
	font-size: 0.75rem;
}

/* The one line of context a quicklinks-shaped card carries above its button(s) — currently just
   AdministerAccessCard. Sits between the section title and the first .rbc-quicklink, so the card
   reads as "here's what this does, here's the button" rather than a bare label over an action. */
.rbc-quicklinks-desc {
	margin: 0 0 var(--nu-space-2, 8px);
	color: var(--nu-ink-2, #4a5f58);
	font-size: var(--nu-fs-small, 0.8125rem);
	line-height: var(--nu-lh-normal, 1.5);
}

/* AdministerAccessCard's one button is the reason the card exists, unlike the plain
   .rbc-quicklink rows above it in Quick Links — filled and centred rather than left-aligned
   ghost text, so it reads as the card's whole purpose rather than one option among several. */
.rbc-quicklink--cta {
	justify-content: center;
	gap: 8px;
	margin-top: var(--nu-space-1, 4px);
	padding: 10px 12px;
	border-radius: var(--nu-radius-md, 8px);
	background: var(--nu-accent-fill, #006325);
	color: var(--nu-on-accent, #fff);
	font-weight: var(--nu-fw-semibold, 600);
}

.rbc-quicklink--cta:hover {
	background: var(--nu-accent-fill-hover, #1a7a3e);
}

.rbc-quicklink--cta .bi:first-child {
	color: inherit;
}

/* AdministerAccessCard's "View Current Administrators" — plain green text under the action
   button, deliberately not a second button: it opens a read-only list, not an action on a par
   with the grant/request above it, and giving it the same weight would make the card read as
   two things to do instead of one thing to do and one thing to check first. Reuses
   .rbc-modal-link's colour and hover-underline, which is the app's other "plain green text
   trigger" (every modal's Cancel), but drops that class's margin-left: auto — there is no
   sibling here for it to push away from — and centers to match the full-width button above it. */
.rbc-admin-viewlink {
	display: block;
	width: 100%;
	margin: var(--nu-space-2, 8px) 0 0;
	padding: 4px 0;
	text-align: center;
	background: none;
	border: 0;
	font: inherit;
	font-weight: var(--nu-fw-semibold, 600);
	font-size: var(--nu-fs-small, 0.8125rem);
	color: var(--nu-accent, #006325);
	cursor: pointer;
}

.rbc-admin-viewlink:hover {
	text-decoration: underline;
}

/* ===== Form shell ===== */
.rbc-form-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: var(--nu-space-5, 24px);
	align-items: start;
}

/* For forms whose read-only aside carries names and identities rather than a few short
   facts. The form column gives up the difference; the stacked layout below still wins,
   since that media query comes later in this file. */
.rbc-form-grid--wide-aside {
	grid-template-columns: minmax(0, 1fr) 400px;
}

/* A narrower label column than a full-width detail card needs, so the extra width goes to
   the values rather than to whitespace under the labels. */
.rbc-form-grid--wide-aside .rbc-help-card .rbc-overview {
	grid-template-columns: 120px minmax(0, 1fr);
}

/* Every form's rail card sits on the surface colour with the form card's shadow, so the two
   read as one pane rather than as content and commentary. This briefly carried a --detail
   modifier that whitened only the edit forms; with the create forms matching, the modifier
   distinguished nothing and is gone. */
.rbc-help-card {
	background: var(--nu-surface, #fff);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-lg, 14px);
	box-shadow: var(--nu-shadow-sm, 0 1px 3px rgba(33, 59, 52, 0.1));
	padding: var(--nu-space-4, 16px) var(--nu-space-5, 24px);
	position: sticky;
	top: calc(var(--nu-topbar-h, 60px) + var(--nu-space-4, 16px));
	/* Caps itself and scrolls, like .rbc-copy-rail. Not a flex column, so unlike the other rails
	   it needs no flex-shrink guard — its content is in normal flow and cannot be squeezed. */
	max-height: calc(100vh - var(--nu-topbar-h, 60px) - var(--nu-space-6, 32px));
	overflow-y: auto;
}

.rbc-help-title {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: var(--nu-fs-body, 0.9375rem);
	font-weight: var(--nu-fw-semibold, 600);
	color: var(--nu-ink, #213b34);
	margin-bottom: var(--nu-space-2, 8px);
}

.rbc-help-body {
	font-size: var(--nu-fs-small, 0.8125rem);
	color: var(--nu-ink-2, #4a5f58);
	line-height: var(--nu-lh-normal, 1.5);
}

.rbc-help-list {
	margin: var(--nu-space-2, 8px) 0 0;
	padding-left: 1.1rem;
	font-size: var(--nu-fs-small, 0.8125rem);
	color: var(--nu-ink-2, #4a5f58);
	line-height: var(--nu-lh-normal, 1.5);
}

.rbc-help-list li {
	margin-bottom: 4px;
}

/* Form fields */
.rbc-section {
	margin-bottom: var(--nu-space-5, 24px);
}

/* Application Risk Value and Default Organizational Hierarchy are short sibling settings, so
   they share one row rather than leaving a full field's width empty. Each keeps the normal form
   section rhythm and stacks at the form's narrow breakpoint. */
.rbc-application-settings-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--nu-space-5, 24px);
}

.rbc-hierarchy-input {
	min-height: 40px;
	text-align: left;
	cursor: pointer;
}

.rbc-hierarchy-input:hover:not(:disabled) {
	border-color: var(--nu-accent, #006325);
}

.rbc-hierarchy-input:disabled {
	opacity: 0.65;
	cursor: default;
}

.rbc-application-hierarchy-value {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--nu-space-3, 12px);
}

/* A wizard step's last section needs no bottom margin: .rbc-wizard-nav below it already brings
   24px of its own plus a 16px padded rule, so the two stacked to ~64px of dead space between the
   justification box on the request wizard's review step and the Back button. The nav row owns
   that gap; this just stops the section paying for it twice. Scoped to the wizard panes so an
   ordinary page's trailing section keeps its spacing. */
.rbc-wizard-review > .rbc-section:last-child,
.rbc-wizard-pane > .rbc-section:last-child,
.rbc-wizard-form > .rbc-section:last-child {
	margin-bottom: 0;
}

/* And the field inside it: .rbc-field carries its own 16px, which on the last field of the last
   section is a third helping of the same gap. Leaves the nav row's 24px margin + 16px padded rule
   as the whole separation, which is what that rule is for. */
.rbc-wizard-review > .rbc-section:last-child .rbc-field:last-child,
.rbc-wizard-pane > .rbc-section:last-child .rbc-field:last-child,
.rbc-wizard-form > .rbc-section:last-child .rbc-field:last-child {
	margin-bottom: 0;
}

/* GrantAdministrationAccessModal's start/end date row, directly above Grant Approval
   Justification with no field between them to earn the full inter-section gap — the date
   inputs are short, so the standard 24px read as an added band of empty space rather than
   normal rhythm. Halved rather than dropped: some separation still belongs between two
   distinct fields. */
.rbc-section--tight {
	margin-bottom: var(--nu-space-3, 12px);
}

.rbc-section-title {
	font-size: var(--nu-fs-eyebrow, 0.75rem);
	letter-spacing: var(--nu-tracking-eyebrow, 0.08em);
	text-transform: uppercase;
	color: var(--nu-ink-2, #4a5f58);
	font-weight: var(--nu-fw-semibold, 600);
	margin-bottom: var(--nu-space-1, 4px);
}

.rbc-field {
	margin-bottom: var(--nu-space-4, 16px);
}

/* A control whose value is the subject of the next thing down — the two scope pickers, each
   followed by the "and everything beneath it?" question about the very value just chosen. The
   standard 16px (or a section's 24px) separated them as if they were unrelated fields; 8px reads
   as one block. Modifiers rather than a rule on the pickers, because the trim is about what
   *follows*, not about the control.

   Named --leadin rather than --tight, and not by preference: `.rbc-section--tight` was already
   taken by GrantAdministrationAccessModal's date row at 12px. A second definition of it sat here
   briefly and did nothing, being earlier in the file at equal specificity — and had it been later
   it would have silently restyled that modal instead. Check for an existing modifier before
   adding one.

   The zeroing rule is not optional. The 8px alone left 12px in the wizards and 28px on Role
   Assignments Edit, because the margins beneath a picker stack: .rbc-combo carries 4px of its own,
   and Edit wraps its pickers in a .rbc-field *inside* the section, which added another 16. */
.rbc-field--leadin,
.rbc-section--leadin {
	margin-bottom: var(--nu-space-3, 12px);
}

/* Everything inside a lead-in block gives up its own bottom margin, so the 12px above is the whole
   gap rather than a floor that other margins stack onto. Three of them do, and the second is the
   one that is easy to miss: **RbcCombobox renders its own `.rbc-field` as its root**, so a picker
   wrapped in a lead-in field is a .rbc-field inside a .rbc-field and brought 16px of its own;
   `.rbc-combo` adds 4 below that; and Role Assignments Edit nests a .rbc-field inside the section
   as well. Left alone the run measured 16/20/20 instead of the one value it asks for. */
.rbc-field--leadin .rbc-field,
.rbc-section--leadin .rbc-field,
.rbc-field--leadin .rbc-combo,
.rbc-section--leadin .rbc-combo {
	margin-bottom: 0;
}

/* 16px below a block, for the middle of Role Assignments Edit: one gap between the exclusion
   toggle and the date row, which .rbc-toggle-stack ships with none of its own; one less than the
   standard 24 above the Expiration Warning Lead Time heading, where the short date inputs left
   the heading floating; and 4px more than the bare lead-in under each of the two scope pickers,
   each of which is followed by its own headed section rather than by the one bare question the
   wizards put there.

   A third gap value, and the names were both taken: `--tight` is the modal's date row, `--leadin`
   the 12px run. The compound selector is what beats `--leadin` on a block carrying both — equal
   specificity would have made it a question of which rule sits later in this file, which is the
   trap documented under --leadin. */
.rbc-section--snug,
.rbc-section--leadin.rbc-section--snug,
.rbc-toggle-stack--snug {
	margin-bottom: var(--nu-space-4, 16px);
}

.rbc-label {
	display: block;
	font-size: var(--nu-fs-small, 0.8125rem);
	font-weight: var(--nu-fw-semibold, 600);
	color: var(--nu-ink, #213b34);
	margin-bottom: 5px;
}

.rbc-required {
	color: var(--nu-tone-red-fg, #c0392b);
	font-size: 1.15em;
	font-weight: var(--nu-fw-bold, 700);
	line-height: 1;
	vertical-align: middle;
	margin-left: 2px;
}

.rbc-help-text {
	font-size: var(--nu-fs-small, 0.8125rem);
	color: var(--nu-ink-3, #7d8e88);
	margin: 4px 0 0;
}

/* Character counter for a length-limited field. Sits on the line under the input, opposite
   the help text — tabular figures so the number does not jitter as it counts. */
.rbc-char-count {
	font-size: var(--nu-fs-small, 0.8125rem);
	color: var(--nu-ink-3, #7d8e88);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.rbc-char-count--near {
	color: var(--nu-tone-amber-fg, #b3730f);
	font-weight: var(--nu-fw-semibold, 600);
}

/* Puts the counter at the right-hand end of whatever sits below the input, so a field with
   help text reads "what this is for ............ 42 / 200" on one line, and a field without
   help text still has the count aligned to the input's right edge. */
.rbc-field-foot {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: var(--nu-space-3, 12px);
	margin-top: 2px;
}

.rbc-field-foot .rbc-help-text {
	margin: 0;
}

/* The count is the row's right-hand end whatever else shares the line — nothing, help text,
   a validation message, or both. */
.rbc-field-foot > .rbc-char-count {
	margin-left: auto;
}

/* Field errors read at the same size as the help text and the counter they sit beside, and
   are indented to clear the input's rounded corner rather than starting hard against its
   left edge. Red still comes from .text-danger. */
.rbc-field .validation-message {
	font-size: var(--nu-fs-small, 0.8125rem);
	margin-top: 2px;
	padding-left: 10px;
}

.rbc-field-foot .validation-message {
	margin: 0;
}

/* Text/number inputs (InputText / InputNumber get class="rbc-input") */
.rbc-input {
	width: 100%;
	margin-bottom: var(--nu-space-1, 4px);
	font-family: var(--nu-font);
	font-size: var(--nu-fs-body, 0.9375rem);
	color: var(--nu-ink, #213b34);
	background: var(--nu-surface, #fff);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-md, 8px);
	padding: 9px 12px;
}

/* Focus matches .rbc-combo-trigger and .rbc-combo-search: green border with a soft green
   halo, not an offset blue ring. The border colour was already the same green; it was the
   ring that made a text field look unrelated to the combobox next to it on the same form.
   The invalid variant below already used this treatment, so this was the last holdout. */
.rbc-input:focus,
.rbc-input.valid:focus {
	outline: none;
	border-color: var(--nu-accent, #006325);
	box-shadow: 0 0 0 3px var(--nu-focus-soft, #eef5f0);
}

/* Scope tabs (Product / Application pill group) */
.rbc-tabs {
	display: inline-flex;
	gap: 4px;
	padding: 4px;
	background: var(--nu-bg-alt, #f5f4f0);
	border-radius: var(--nu-radius-md, 8px);
	margin-bottom: var(--nu-space-3, 12px);
}

.rbc-tab {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: none;
	background: transparent;
	color: var(--nu-ink-3, #7d8e88);
	font-family: var(--nu-font);
	font-size: var(--nu-fs-small, 0.8125rem);
	font-weight: var(--nu-fw-semibold, 600);
	padding: 7px 14px;
	border-radius: var(--nu-radius-sm, 4px);
	cursor: pointer;
}

.rbc-tab--active {
	background: var(--nu-surface, #fff);
	color: var(--nu-accent, #006325);
	box-shadow: var(--nu-shadow-sm, 0 1px 2px rgba(33, 59, 52, 0.12));
}

/* The compact My / All control sits directly on the page header. Its selected option needs more
   separation from the near-black page in dark mode than ordinary tabs inside a panel do. */
.rbc-scope-toggle .rbc-tab--active {
	background: var(--nu-scope-selected-bg, var(--nu-surface, #fff));
}

/* User / Group / Service Principal selectors use .rbc-tabsrow. Their selected tab needs a more
   visible surface than the ordinary dark card background, while light mode keeps the shared white
   tab treatment. Scope, simulation and comparison tabs intentionally keep their own variants. */
.rbc-tabsrow .rbc-tab--active {
	background: var(--nu-principal-tab-selected-bg, var(--nu-surface, #fff));
}

/* The Add / Remove simulation mode is another compact control on a near-black panel, so its
   selected option uses the same lifted dark surface as the other compact tab groups. */
.rbc-tabs--simulation .rbc-tab--active {
	background: var(--nu-simulation-tab-selected-bg, var(--nu-surface, #fff));
}

/* A tab carrying its section's count under its label. The count is how the reader chooses the
   tab, so it belongs on the tab rather than only inside the panel — which is what the four
   drawers this replaced were doing. */
.rbc-tab--stacked {
	flex-direction: column;
	align-items: center;
	gap: 1px;
	padding-top: 5px;
	padding-bottom: 5px;
	text-align: center;
}

.rbc-tab-sub {
	font-size: 0.6875rem;
	font-weight: var(--nu-fw-regular, 400);
	color: var(--nu-ink-3, #7d8e88);
}

/* The active tab's own colour is the accent green; its subtext stays quieter than the label but
   has to lift off the white panel behind it. */
.rbc-tab--active .rbc-tab-sub {
	color: var(--nu-ink-2, #4a5f58);
}

/* Same control at a smaller vertical rhythm, for tab strips that sit above content rather
   than heading a form section. */
.rbc-tabs--compact {
	padding: 2px;
	margin-bottom: 0;
}

.rbc-tabs--compact .rbc-tab {
	padding: 3px 12px;
}

/* ---- Principal tabs with a trailing action ----
   The tablist is inline-flex and carries its own margin-bottom for when it stands alone. Inside
   this row the wrapper takes that margin over and the tablist's is zeroed: otherwise the action
   is centred against a box that includes 12px of empty space below the tabs, and sits visibly
   high. The action is a sibling of the tablist, never a child of it — a tablist's children are
   its tabs, and a button in there is announced as a fourth tab.
   No justify-content: the action sits directly beside the tabs, one gap away. Pushing it to the
   row's far edge (space-between) stranded it across a wide empty span, where it read as an
   unrelated page control rather than as something about the tab you are on. */
.rbc-tabsrow {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--nu-space-3, 12px);
	margin-bottom: var(--nu-space-3, 12px);
}

.rbc-tabsrow .rbc-tabs {
	margin-bottom: 0;
}

/* Wraps under the tabs on a narrow viewport rather than squeezing them — the tabs are the
   control, this is an aside. */
.rbc-tabsrow-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 0;
	background: none;
	border: 0;
	font: inherit;
	font-size: var(--nu-fs-small, 0.8125rem);
	font-weight: var(--nu-fw-semibold, 600);
	color: var(--nu-accent, #006325);
	cursor: pointer;
	white-space: nowrap;
}

.rbc-tabsrow-link:hover {
	text-decoration: underline;
}

.rbc-tabsrow-link:focus-visible {
	outline: 2px solid var(--nu-accent, #006325);
	outline-offset: 2px;
	border-radius: var(--nu-radius-sm, 4px);
}

/* Toggle stack (a row of ToggleSwitch controls) */
.rbc-toggle-stack {
	display: flex;
	flex-direction: column;
	gap: var(--nu-space-4, 16px);
}

/* A ruled break above the stack, for the edit-request dialog: the scope questions are one
   decision and the exclusion toggle is a different one — it inverts what the request does rather
   than narrowing where it reaches — and stacked at an even gap the two read as one run of fields.
   A border on the block rather than an <hr>, which is how every other rule in this sheet is drawn
   (.rbc-actions, .rbc-card-foot): the rule exists to separate this block from what is above it, so
   it travels with the block. 24 above and 16 below, the same asymmetry .rbc-actions uses — the gap
   belongs to the thing being separated from, not shared evenly. */
.rbc-toggle-stack--ruled {
	margin-top: var(--nu-space-5, 24px);
	padding-top: var(--nu-space-4, 16px);
	border-top: 1px solid var(--nu-border, #dfe5e1);
}

/* Action row */
/* The committing action ends the row, with the way out immediately left of it: the same
   direction of travel as the wizard's Back/Next, so a form reached from a wizard does not
   reverse under the reader. Delete leads instead, carrying me-auto — an irreversible action
   should not sit on the cursor's path to Save. */
.rbc-actions {
	display: flex;
	justify-content: flex-end;
	gap: var(--nu-space-2, 8px);
	margin-top: var(--nu-space-5, 24px);
	padding-top: var(--nu-space-4, 16px);
	border-top: 1px solid var(--nu-border, #dfe5e1);
}

/* Two opposed decisions, one at each end: the Access Request details card's Approve and Reject.
   Loses the brow as well as the split — the row sits directly under the Review Notes box it
   belongs to, and a rule across the card between a field and its own buttons read as the end of
   the section rather than the end of the form. The margin carries the separation alone. */
.rbc-actions--split {
	justify-content: space-between;
	margin-top: var(--nu-space-4, 16px);
	padding-top: 0;
	border-top: 0;
}

/* ===== Guided wizard (Grant Access) ===== */
.rbc-stepper {
	display: flex;
	align-items: flex-start;
	gap: var(--nu-space-2, 8px);
	margin-bottom: var(--nu-space-5, 24px);
}

.rbc-stepper-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--nu-space-2, 8px);
	flex: 0 0 auto;
	text-align: center;
	min-width: 92px;
	cursor: pointer;
}

/* The step indicator doubles as navigation: a step can be clicked to jump to it (a forward
   jump runs the same validation the Next button does). Hover and keyboard focus land on the
   number badge, the item's visual anchor. */
.rbc-stepper-item:hover .rbc-step-num {
	border-color: var(--nu-accent, #006325);
}

.rbc-stepper-item:hover .rbc-step-label {
	color: var(--nu-ink, #213b34);
}

.rbc-stepper-item:focus-visible {
	outline: none;
}

.rbc-stepper-item:focus-visible .rbc-step-num {
	outline: 2px solid var(--nu-accent, #006325);
	outline-offset: 2px;
}

/* Connector line between steps */
.rbc-stepper-line {
	flex: 1 1 auto;
	height: 2px;
	background: var(--nu-border, #dfe5e1);
	margin-top: 15px;
	border-radius: 1px;
}

.rbc-stepper-line--done {
	background: var(--nu-accent-fill, #006325);
}

.rbc-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: var(--nu-radius-pill, 999px);
	border: 2px solid var(--nu-border, #dfe5e1);
	background: var(--nu-surface, #fff);
	color: var(--nu-ink-3, #7d8e88);
	font-weight: var(--nu-fw-bold, 700);
	font-size: var(--nu-fs-small, 0.8125rem);
	line-height: 1;
}

.rbc-step-label {
	font-size: var(--nu-fs-small, 0.8125rem);
	color: var(--nu-ink-3, #7d8e88);
	font-weight: var(--nu-fw-medium, 500);
}

/* A step that requires nothing says so here, under its own label. The stepper is the only place
   the reader sees every step at once, so it is where "you can walk past this one" is worth
   knowing — the step's title and the summary rail repeat it, but only once the reader has
   arrived. Deliberately smaller and muted: it is a note about the step, not a second label, and
   it keeps its tone through --active and --done, since a step does not stop being optional once
   it has been visited. The parentheses are written at the call site, as they are wherever else
   the app marks a field optional; they carry the aside on their own, so nothing here italicizes
   two words already set smaller and muted. The negative margin cancels most of the item's 8px
   gap, which is sized for one label under the badge rather than two lines. */
.rbc-step-optional {
	font-size: var(--nu-fs-tiny, 0.6875rem);
	color: var(--nu-ink-3, #7d8e88);
	font-weight: var(--nu-fw-medium, 500);
	line-height: 1;
	margin-top: -6px;
}

.rbc-stepper-item--active .rbc-step-num {
	border-color: var(--nu-accent, #006325);
	background: var(--nu-accent-fill, #006325);
	color: var(--nu-on-accent, #fff);
}

.rbc-stepper-item--active .rbc-step-label {
	color: var(--nu-ink, #213b34);
	font-weight: var(--nu-fw-semibold, 600);
}

.rbc-stepper-item--done .rbc-step-num {
	border-color: var(--nu-accent, #006325);
	background: var(--nu-tone-green-bg, #e8f2ec);
	color: var(--nu-accent, #006325);
}

.rbc-stepper-item--done .rbc-step-label {
	color: var(--nu-ink, #213b34);
}

/* Step body + navigation */
.rbc-wizard-step-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--nu-space-3, 12px);
	margin-bottom: var(--nu-space-1, 4px);
}

/* The step's actions, grouped so the heading keeps exactly two children: it is space-between, so
   two bare buttons would sit at opposite ends of the row rather than together at its trailing
   edge. Empty on the steps that have no action, which costs nothing — an empty flex item has no
   width and space-between still puts the title at the left. */
.rbc-wizard-step-actions {
	display: flex;
	align-items: center;
	gap: var(--nu-space-2, 8px);
	flex-wrap: wrap;
	justify-content: flex-end;
}

.rbc-wizard-step-title {
	font-size: var(--nu-fs-h3, 1.125rem);
	font-weight: var(--nu-fw-bold, 700);
	color: var(--nu-ink, #213b34);
	margin-bottom: 0;
}

.rbc-wizard-step-desc {
	font-size: var(--nu-fs-small, 0.8125rem);
	color: var(--nu-ink-3, #7d8e88);
	margin-bottom: var(--nu-space-4, 16px);
}

/* Review step: spaces the banner, the summary and the justification uniformly, so adding
   a banner cannot end up flush against the row beneath it. */
/* Sibling margins rather than a flex gap: the step divs are hidden with d-none, and
   setting display here would compete with it. */
.rbc-wizard-review > * + * {
	margin-top: var(--nu-space-4, 16px);
}

.rbc-wizard-nav {
	display: flex;
	justify-content: space-between;
	gap: var(--nu-space-2, 8px);
	margin-top: var(--nu-space-5, 24px);
	padding-top: var(--nu-space-4, 16px);
	border-top: 1px solid var(--nu-border, #dfe5e1);
}

.rbc-wizard-nav-right {
	display: flex;
	gap: var(--nu-space-2, 8px);
}

/* Review step summary rows */
.rbc-review-list {
	display: flex;
	flex-direction: column;
	gap: var(--nu-space-3, 12px);
}

.rbc-review-row {
	display: grid;
	grid-template-columns: 180px minmax(0, 1fr);
	gap: var(--nu-space-4, 16px);
	padding-bottom: var(--nu-space-3, 12px);
	border-bottom: 1px solid var(--nu-border, #dfe5e1);
}

.rbc-review-row:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.rbc-review-label {
	font-size: var(--nu-fs-small, 0.8125rem);
	color: var(--nu-ink-3, #7d8e88);
	font-weight: var(--nu-fw-medium, 500);
}

.rbc-review-value {
	font-size: var(--nu-fs-body, 0.9375rem);
	color: var(--nu-ink, #213b34);
	font-weight: var(--nu-fw-semibold, 600);
	word-break: break-word;
}

/* A "Yes" for Is Exclusion reads in danger red on the review, since it flips the grant to a deny. */
.rbc-review-value.rbc-review-danger {
	color: var(--nu-tone-red-fg, #c0392b);
}

/* The Already Assigned pill under the role on the request and grant reviews. */
.rbc-review-rolescope {
	margin-top: var(--nu-space-2, 8px);
}

/* Inside a review value, an id beside a name (the Role and Parent Application rows) reads in the
   same ink as the rest of the value, not the muted tone the combobox dropdown uses. */
.rbc-review-value .rbc-combo-item-id {
	color: inherit;
}

@media (max-width: 560px) {
	.rbc-stepper-item {
		min-width: 56px;
	}

	.rbc-step-label,
	.rbc-step-optional {
		display: none;
	}

	.rbc-review-row {
		grid-template-columns: 1fr;
		gap: var(--nu-space-1, 4px);
	}
}

/* ===== Copy Permissions wizard =====
   Only what has no equivalent elsewhere lives here. The role rows reuse .rbc-req-row +
   .rbc-rolepick-row (the grant wizard's picker), their pill buttons .rbc-action-btn--sm, the
   show/hide blocks .rbc-disclosure, and the people row .rbc-field-row. */
.rbc-copy-wizard {
	margin-bottom: var(--nu-space-5, 24px);
}

/* A wider rail than the 300px the two other wizards use: this one's action card holds the
   justification textarea and the notify picker as well as the buttons, and at 300px the field
   labels and help text were wrapping to three lines each.
   Two classes deliberately. .rbc-wizard-layout carries the 300px and is declared *later* in this
   file than the Copy Permissions block, so a single-class .rbc-copy-wizard override loses on
   source order — it was written that way first and silently did nothing. Specificity rather than
   position, so moving either block cannot break it again. */
.rbc-wizard-layout.rbc-copy-wizard {
	grid-template-columns: minmax(0, 1fr) 340px;
}

/* The layout's second column: the summary card and the action card beneath it. Sticky on the
   wrapper rather than on either card — two sticky siblings would each pin themselves to the same
   offset and overlap, the trap .rbc-admcol already documents.
   It caps its own height and scrolls, which a sticky column normally should not have to do. Here
   it must: step 4's card carries a banner, two fields and the apply button, and a sticky element
   taller than the space above the fold pins its top and leaves its own bottom unreachable — the
   button this card exists to keep in reach would be the part you could not get to. The notify
   picker inside copes with the clip: combobox.js measures the nearest clipping ancestor, not the
   viewport, and flips or shrinks its list to the room available. */
/* Deliberately no z-index, unlike .rbc-rail. `position: sticky` opens a stacking context either
   way, so the info popovers inside this rail — `position: fixed`, to escape the overflow below —
   paint inside it, beneath .rbc-topbar (40). Lifting the rail to clear the topbar would also lift
   it over the scroll-to-top button (30) and the mobile sidebar drawer (60), both of which overlap
   this column geometrically; the popovers are kept out from under the top chrome by placement
   instead (js/popover.js measures .rbc-topbar), which costs nothing else. */
.rbc-copy-rail {
	align-self: start;
	position: sticky;
	top: calc(var(--nu-topbar-h, 60px) + var(--nu-space-4, 16px));
	max-height: calc(100vh - var(--nu-topbar-h, 60px) - var(--nu-space-6, 32px));
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: var(--nu-space-4, 16px);
	min-width: 0;
}

/* .rbc-wizard-summary sets align-self: start, which is what it wants as a grid child in the
   other two wizards. Inside this flex column that reads as a cross-axis instruction and shrinks
   the card to its content, so it sat narrower than the action card beneath it. */
.rbc-copy-rail > .rbc-wizard-summary {
	align-self: stretch;
}

/* Same reason as .rbc-wizard-side > * below, and the same latent bug: this column caps its height
   and scrolls, but flex children shrink by default, so on a short viewport the cards compressed
   instead — and .rbc-wizard-summary is overflow: hidden, so it quietly dropped its own last rows
   rather than letting the column scroll. Found while giving the other wizards the same treatment;
   it cannot regress anything, since refusing to shrink just hands the overflow to the
   overflow-y: auto that is already there. */
.rbc-copy-rail > * {
	flex-shrink: 0;
}

/* The right-hand column wherever a wizard's rail is joined by an action card below it — all four
   wizards now. Same shape as .rbc-copy-rail above, and it gets the same treatment for the same
   reasons, which are worth restating because each one is a bug that was hit:

   STICKY ON THE WRAPPER, not on either card. Two sticky siblings would each pin themselves to
   this same offset and overlap — the trap .rbc-admcol documents.

   align-self: start so it pins at its own height. A column stretched to the step card beside it
   has no travel left and sticky does nothing at all.

   max-height + overflow-y because a sticky element taller than the space above the fold pins its
   *top* and leaves its own bottom unreachable — and the bottom is the action card, i.e. the
   Submit/Grant/Create button the card exists to keep in reach. Costs nothing here: none of the
   four rails contains a combobox or popover, so there is nothing for the clip to cut off. If one
   ever gains one, combobox.js measures the nearest clipping ancestor rather than the viewport and
   copes, but check it.

   Deliberately no z-index, matching .rbc-copy-rail — see the reasoning there. */
.rbc-wizard-side {
	align-self: start;
	position: sticky;
	top: calc(var(--nu-topbar-h, 60px) + var(--nu-space-4, 16px));
	max-height: calc(100vh - var(--nu-topbar-h, 60px) - var(--nu-space-6, 32px));
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: var(--nu-space-4, 16px);
	min-width: 0;
}

/* .rbc-wizard-summary sets align-self: start, which is what it wants as a bare grid child in the
   wizards that have no action card. Inside this flex column that reads as a cross-axis
   instruction and shrinks the card to its content, so it sat narrower than the action card
   beneath it. */
.rbc-wizard-side > .rbc-wizard-summary {
	align-self: stretch;
}

/* Load-bearing with the max-height above, and not obvious: flex children shrink by default, so on
   a viewport shorter than the rail the cards COMPRESSED instead of the column scrolling — and
   .rbc-wizard-summary is overflow: hidden, so it silently ate its own last rows. Measured at 560px
   tall: the summary went 324px -> 166px with 157px of steps cut off, no scrollbar, nothing to say
   anything was missing, and the rail's own overflow-y never engaged because scrollHeight then
   equalled clientHeight. Refusing to shrink is what hands the overflow back to the column. */
.rbc-wizard-side > * {
	flex-shrink: 0;
}

/* The card under the summary rail that carries a wizard's committing action — Create Role,
   Update Role, Submit Request, Grant Access — and, on Roles/Edit, Cancel and Delete with it.
   ----------------------------------------------------------------------------
   Why the action is here and not in the nav row it used to sit in: the nav row is per-step
   navigation, and a control that commits the whole record does not belong in the same row as
   Back. Next and Create Role reading as a matched pair was the specific problem — they sat
   adjacent, same size, same colour, and the difference between "go on" and "write this to the
   database" was the label. Beside the summary it is next to what it is about to commit.

   Formerly .rbc-wizard-danger, which held only Roles/Edit's delete button. Renamed rather than
   duplicated: the card shell was already exactly this, and a second class differing by name only
   is the kind of thing that drifts apart later. */
.rbc-wizard-actions {
	background: var(--nu-surface, #fff);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-lg, 14px);
	box-shadow: var(--nu-shadow-sm, 0 1px 3px rgba(33, 59, 52, 0.1));
	padding: var(--nu-space-3, 12px);
	display: flex;
	flex-direction: column;
	gap: var(--nu-space-2, 8px);
}

/* Full width so a lone button in a 300px column does not read as stranded, and so several
   stacked ones read as one group. Two classes to clear Iron's own .fe-button; width is not one of
   the properties its composed size classes set, so this is a plain specificity win rather than
   the variable trap noted in AGENTS.md. */
.rbc-wizard-actions .fe-button {
	width: 100%;
}

/* Cancel beside Update rather than stacked under it, in the order every other action row in the
   app uses: the committing action at the trailing edge, Cancel immediately to its left. A row
   nested inside the column card rather than a direction flip on the card itself, so
   .rbc-wizard-actions-danger below stays on its own line instead of becoming a third item in the
   row — and so the full-width rule above does not apply to these two.

   It wraps on purpose. The rail is 300px and the Spanish pair (Cancelar / Actualizar Rol) is
   within a few pixels of that once Iron's padding and the two glyphs are counted.

   wrap-reverse, not wrap: it puts the first flex line at the bottom, so the DOM order stays
   Cancel-then-Update — correct on one line, where Update holds the trailing edge — and a
   wrapped pair reads Update over Cancel rather than the other way up. Stacked, the commit belongs
   on top; that is where this card had it before the two shared a line.

   The cost, stated because it is the one thing this file otherwise refuses to do: wrapped, the tab
   order (Cancel, then Update) no longer matches what the eye reads top to bottom. It is the narrow
   case only, and the alternative — reordering the DOM — breaks the single-line case, which is
   the one nearly every reader gets.

   Equal specificity to the rule above, so it wins on source order alone — it has to stay
   below it. */
.rbc-wizard-actions-pair {
	display: flex;
	flex-wrap: wrap-reverse;
	justify-content: flex-end;
	gap: var(--nu-space-2, 8px);
}

.rbc-wizard-actions-pair .fe-button {
	/* Share the row rather than sit right-aligned with dead space beside them, and — the part
	   that matters — never overflow. Iron's label does not wrap, so a plain flex item shrinks only
	   as far as its own text and then spills past the card's padding: at 300px the English pair was
	   already ~13px over, which is what read as misaligned rather than as a tight fit. min-width
	   stops the shrink at the label, which makes the row wrap instead of spill, and flex-grow has
	   each line fill the card — so the fitting case is two buttons splitting the width and the
	   wrapped case is two full-width buttons, Update on top. */
	flex: 1 1 auto;
	min-width: max-content;
	width: auto;
}

/* Delete, on Roles/Edit, sits in this same card but must not read as a third peer of Update and
   Cancel. A red text link, set apart by a rule and a wider gap, and carrying no icon: it is the
   one action on the page that cannot be undone, so it should take a deliberate reach rather than
   sit under the cursor's path between the two buttons above it. */
.rbc-wizard-actions-danger {
	margin-top: var(--nu-space-3, 12px);
	padding-top: var(--nu-space-3, 12px);
	border-top: 1px solid var(--nu-border, #dfe5e1);
	text-align: center;
}

.rbc-wizard-actions-danger .rbc-linkbtn {
	color: var(--nu-tone-red-fg, #C0392B);
	font-size: var(--nu-fs-small, 0.8125rem);
}

.rbc-wizard-actions-danger .rbc-linkbtn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* The banner ConflictBanner renders is built for a full-width step pane; in a ~300px rail its
   icon-beside-body row has no room to spare, so the gutter comes down and the action it carries
   goes full width rather than shrink-wrapping to its label. */
.rbc-wizard-actions .rbc-banner {
	margin: 0;
	gap: var(--nu-space-2, 8px);
}

.rbc-wizard-actions .rbc-banner-actions .fe-button {
	width: 100%;
}

/* The card is a flex column with its own gap, so every field's own margin is a second helping
   of it — and RbcCombobox renders its *own* .rbc-field wrapper inside the one around it, so the
   notify picker was carrying that margin twice plus .rbc-combo's, ~36px under a 40px control.
   The gap is the only spacing here. */
.rbc-copy-rail-actions .rbc-field,
.rbc-copy-rail-actions .rbc-combo {
	margin-bottom: 0;
}

/* .rbc-input is content-box, so a width: 100% field is its container's width *plus* its own
   padding and border — ~26px of overflow. Everywhere else in the app that field sits in a column
   with enough slack to absorb it; in a 340px rail it pushed a horizontal scrollbar onto the whole
   column. Corrected here rather than on .rbc-input itself, which would narrow every full-width
   input in the app by the same 26px. */
.rbc-copy-rail-actions .rbc-input {
	box-sizing: border-box;
}

/* Horizontally it has nowhere to go, and dragging it wider would overflow the rail again. */
.rbc-copy-rail-actions textarea.rbc-input {
	resize: vertical;
}

/* Back / forward, and on step 4 the confirm fields above them. */
.rbc-copy-rail-actions {
	display: flex;
	flex-direction: column;
	gap: var(--nu-space-3, 12px);
	padding: var(--nu-space-4, 16px);
}

/* Side by side while both fit — "Back" plus the longest primary label ("Generate Copy Plan") sits
   inside the 300px column — and wrapping to two rows rather than shrinking when they do not.
   space-between so a step with no Back button still puts its primary action on the right. */
.rbc-copy-rail-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--nu-space-2, 8px);
}

/* Nothing above it in the card on steps 1-3, so the rule a nav row normally carries would be
   floating over nothing. */
.rbc-copy-rail-actions > .rbc-copy-rail-nav:not(:first-child) {
	margin-top: var(--nu-space-1, 4px);
	padding-top: var(--nu-space-3, 12px);
	border-top: 1px solid var(--nu-border, #dfe5e1);
}

.rbc-copy-person {
	padding: var(--nu-space-4, 16px);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-md, 8px);
	background: var(--nu-bg-alt, #f5f4f0);
}

.rbc-copy-person .rbc-section-title {
	display: flex;
	align-items: center;
	gap: var(--nu-space-2, 8px);
}

.rbc-copy-safe-defaults {
	display: flex;
	flex-direction: column;
	gap: var(--nu-space-1, 4px);
	padding: var(--nu-space-3, 12px) var(--nu-space-4, 16px);
	border-left: 3px solid var(--nu-accent, #006325);
	background: var(--nu-bg-tint, #eef5f0);
	color: var(--nu-ink, #213b34);
	font-size: var(--nu-fs-small, 0.8125rem);
}

/* Determinate progress for the copy's apply loop, which is one round trip per role and so is the
   one place in this app with a real numerator. A div whose width is the percentage rather than
   Iron's FeProgressCircle: that component has no determinate colour class in the pinned bundle and
   draws a zero-length arc at Value 0, which is precisely the case a progress bar starts from. */
.rbc-progress {
	width: 100%;
	max-width: 26rem;
	height: 8px;
	margin: var(--nu-space-3, 12px) 0 var(--nu-space-2, 8px);
	background: var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-pill, 999px);
	overflow: hidden;
}

.rbc-progress-fill {
	height: 100%;
	background: var(--nu-accent-fill, #006325);
	border-radius: inherit;
	/* Eases between server-driven jumps so a fast run does not read as a flicker. Width, not
	   transform: the bar is 8px tall, so there is no layout cost worth a compositor trick. */
	transition: width 200ms ease;
}

.rbc-progress-count {
	margin: 0;
	font-size: var(--nu-fs-small, 0.8125rem);
	color: var(--nu-ink-3, #7d8e88);
	font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
	.rbc-progress-fill { transition: none; }
}

/* The role list's own header: what is selected on the left, the bulk action on the right.
   Baseline-aligned, because .rbc-section-title is an uppercase eyebrow and centring it against
   a sentence-case link leaves the two visibly off each other. */
.rbc-copy-list-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--nu-space-3, 12px);
	margin-bottom: var(--nu-space-2, 8px);
}

.rbc-copy-list-head > .rbc-section-title {
	margin-bottom: 0;
}

/* ---- Step 3's parent drawers ----
   One per product or application, each holding the roles that belong to it. */
.rbc-copy-role-groups {
	display: flex;
	flex-direction: column;
	gap: var(--nu-space-3, 12px);
}

/* Surface and lift, the same pair .rbc-card uses: a drawer is a container the reader opens and
   closes, so it reads as its own object rather than as a tinted region of the step. The rows
   inside are white with a border of their own, which is how every white-on-white list in the app
   separates — the tint the drawer used to carry was doing that job a second time. */
.rbc-copy-role-group {
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-md, 8px);
	background: var(--nu-surface, #fff);
	box-shadow: var(--nu-shadow-sm, 0 1px 2px rgba(33, 59, 52, 0.06), 0 1px 3px rgba(33, 59, 52, 0.10));
	padding: var(--nu-space-3, 12px);
}

/* .rbc-disclosure sizes itself for a card title; a parent heading over a run of role rows sits a
   step below that. The trailing gap is the drawer's own, so a closed one has none. */
.rbc-copy-role-group-head {
	font-size: var(--nu-fs-h4, 1rem);
}

.rbc-copy-role-group-head .rbc-disclosure-text {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--nu-space-2, 8px);
	min-width: 0;
}

/* The muted id follows the name directly, so it keeps no gap of its own from the flex row. */
.rbc-copy-role-group-head .rbc-req-row-id {
	margin-left: 0;
}

/* A fixed slot for the kind pill, so every drawer's name starts at the same x. Width is the
   widest label's pill, measured rather than eyeballed: .rbc-pill is 12px/600 in --nu-font (Arial,
   so weight 600 renders as Arial Bold) with 10px of padding each side, which puts "Application" at
   85.3px and "Product" at 65.3px — the 20px that staggered the names. 5.5rem (88px) covers it with
   a hair of slack for subpixel rounding, and clears the Spanish labels too ("Aplicación" 80.7px).

   min-width, not width: a longer label in a culture added later overflows the slot and shifts that
   one row's name instead of clipping the pill. Alignment degrades, nothing breaks — but if a label
   here ever exceeds 88px, re-measure rather than letting the column stagger again. */
.rbc-copy-role-group-kind {
	display: flex;
	justify-content: center;
	flex: 0 0 auto;
	min-width: 5.5rem;
}

/* How many roles the drawer holds — set back from the name and the kind pill, because it says
   whether opening it is worth it rather than what it is. `margin-left: auto` takes the row's whole
   free space, which is what pins it beside the caret: .rbc-disclosure is space-between, and with a
   third child that would otherwise spread the pill, the name and the count evenly across the row. */
.rbc-copy-role-group-count {
	flex: 0 0 auto;
	margin-left: auto;
	white-space: nowrap;
	font-size: var(--nu-fs-small, 0.8125rem);
	font-weight: var(--nu-fw-regular, 400);
	color: var(--nu-ink-3, #7d8e88);
}

.rbc-copy-role-group > .rbc-req-list {
	margin-top: var(--nu-space-3, 12px);
}

/* The search box in a list header. .rbc-pane-search is full-width by default (it fills a filter
   pane); here it shares the row with the bulk actions, so it takes a share rather than all of it. */
.rbc-copy-list-search {
	flex: 1 1 20rem;
	max-width: 26rem;
	margin-bottom: 0;
}

/* The list's bulk actions, separated by a rule rather than spacing alone — two bare links side by
   side read as one wrapped phrase. */
/* The list-wide bulk pair. Size set explicitly rather than inherited: .rbc-linkbtn is `font:
   inherit`, so these were taking whatever the shell's base happened to be. Body size — a step
   above the per-drawer pair's small, which keeps the wider reach legible from the type alone,
   and a step below the 1rem it briefly had, which out-shouted the list. */
.rbc-copy-list-actions {
	display: flex;
	align-items: baseline;
	gap: var(--nu-space-2, 8px);
	flex-wrap: wrap;
	font-size: var(--nu-fs-body, 0.9375rem);
}

/* The bulk-selection links, both the list-wide pair and the per-drawer pair inside it. Weight
   carries "you can press this" instead of an underline: four underlined phrases across two rows
   read as a paragraph of links, and the pipe between each pair already groups them.

   Qualified with the container so it beats .rbc-linkbtn's own `text-decoration: underline`, which
   is declared later in this file — at equal specificity that would win on source order. */
.rbc-copy-list-actions .rbc-linkbtn,
.rbc-copy-group-actions .rbc-linkbtn {
	text-decoration: none;
	font-weight: var(--nu-fw-semibold, 600);
	/* Dark grey, not the body's near-black: at semibold these would otherwise carry more weight
	   than the role names they act on. .rbc-linkbtn:hover:not(:disabled) is three class-level
	   selectors to this rule's two, so hover still takes them green. */
	color: var(--nu-ink-2, #4a5f58);
}

/* Nothing to press — already all selected, or nothing to deselect. It drops back to regular
   weight and inherits .rbc-linkbtn:disabled's muted ink, so the pair reads as one live control
   and one spent one rather than as two of the same thing. */
.rbc-copy-list-actions .rbc-linkbtn:disabled,
.rbc-copy-group-actions .rbc-linkbtn:disabled {
	font-weight: var(--nu-fw-regular, 400);
	/* Restated rather than left to .rbc-linkbtn:disabled: that rule is the same specificity as the
	   enabled colour above and only wins on being declared later in the file. Setting it here makes
	   the muted state a specificity decision, which moving either block cannot break. */
	color: var(--nu-ink-3, #7d8e88);
}

/* The one control row above the drawers: expand/collapse on the left, bulk selection on the
   right. Both act on the same visible set, so they read as one row of controls over the list
   rather than as two unrelated strips.

   Two sources of space above it, both removed: .rbc-input's own 4px bottom margin (zeroed inside
   the head, below) and .rbc-copy-list-head's 8px, which the negative top margin cancels outright.
   That is the floor — the row sits directly under the search field's box, and the small gap still
   visible is the glyphs' own bearing inside an 18px line box, not layout. Anything further
   overlaps the field. The 8px below stays: that is the gap to the drawers. */
/* A stepper item that is not a destination yet — only the results step, and only before a copy has
   been submitted. Still focusable and still click-handled so it can say why; this is what stops it
   looking pressable. */
.rbc-stepper-item--locked {
	opacity: 0.55;
	cursor: not-allowed;
}

/* The submit confirmation's fact list: source, target, and the justification if one was written. A
   dl rather than the rail's summary classes, which are sized for a 340px column. */
.rbc-copy-confirm-facts {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr);
	gap: var(--nu-space-1, 4px) var(--nu-space-4, 16px);
	margin: var(--nu-space-4, 16px) 0 0;
	font-size: var(--nu-fs-small, 0.8125rem);
}

.rbc-copy-confirm-facts dt {
	font-weight: var(--nu-fw-semibold, 600);
	color: var(--nu-ink-3, #7d8e88);
}

/* Flex with a gap rather than a space in the markup: the value is a bare text node followed by a
   muted span, and Razor drops the whitespace between them. Wraps, so a long name and a long UPN
   fall onto two lines instead of overflowing the dialog. */
.rbc-copy-confirm-facts dd {
	display: flex;
	flex-wrap: wrap;
	gap: 0 var(--nu-space-2, 8px);
	margin: 0;
	color: var(--nu-ink, #213b34);
	overflow-wrap: anywhere;
}

.rbc-copy-list-controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--nu-space-3, 12px);
	flex-wrap: wrap;
	margin-top: calc(-1 * var(--nu-space-2, 8px));
	margin-bottom: var(--nu-space-2, 8px);
}

/* Inset from the column edge so the glyphs read as belonging to the list below rather than as a
   stray first row. */
.rbc-copy-group-toggles {
	display: flex;
	align-items: center;
	gap: var(--nu-space-3, 12px);
	margin-left: var(--nu-space-3, 12px);
}

/* .rbc-input carries a 4px bottom margin for stacked forms. This head is a single flex row, so
   that margin is only space under the field — the same "flex row plus child margin" doubling
   corrected elsewhere in this wizard. */
.rbc-copy-list-head .rbc-input {
	margin-bottom: 0;
}

/* Qualified with .rbc-linkbtn deliberately: that class sets `text-decoration: underline` and is
   declared *later* in this file, so a single-class rule here loses on source order rather than
   specificity and the underline came back. An underlined "+" reads as a rendering artifact.
   .rbc-linkbtn:hover:not(:disabled) is three classes and still wins, which is what keeps the
   hover green. */
.rbc-linkbtn.rbc-copy-group-toggle {
	text-decoration: none;
	font-size: var(--nu-fs-h3, 1.125rem);
	font-weight: var(--nu-fw-semibold, 600);
	line-height: 1;
	color: var(--nu-ink-2, #4a5f58);
}

/* The same pair inside a drawer, scoped to one parent. Small and at the trailing edge: it is
   subordinate to the list-wide pair above, and reading as its equal would hide which one has the
   wider reach. */
.rbc-copy-group-actions {
	display: flex;
	justify-content: flex-end;
	align-items: baseline;
	gap: var(--nu-space-2, 8px);
	flex-wrap: wrap;
	margin-top: var(--nu-space-2, 8px);
	font-size: var(--nu-fs-small, 0.8125rem);
}

/* The drawer's own gap above the list is already spent on the actions row. */
.rbc-copy-role-group > .rbc-copy-group-actions + .rbc-req-list {
	margin-top: var(--nu-space-2, 8px);
}

.rbc-copy-list-sep {
	color: var(--nu-border, #dfe5e1);
}

/* Ways into the rows a conflict note is about. A bullet list rather than the banner's default
   inline action row: these are several links to the same kind of place, so they read down a
   column, and each is set smaller than the message above it because it is a way in rather than
   something to read. */
.rbc-copy-conflict-links {
	display: flex;
	flex-direction: column;
	gap: var(--nu-space-1, 4px);
	margin: 0;
	padding-left: var(--nu-space-4, 16px);
	list-style: disc;
	text-align: left;
}

.rbc-copy-conflict-links > li::marker {
	color: var(--nu-ink-3, #7d8e88);
}

.rbc-copy-conflict-links .rbc-linkbtn {
	font-size: var(--nu-fs-eyebrow, 0.75rem);
	text-align: left;
}

/* A step-level banner is followed immediately by the role list, whose rows carry no leading
   margin — .rbc-req-row + .rbc-req-row only spaces rows from each other. Without this the alert
   sat flush against the first role. Scoped to direct children of the card so it cannot reach the
   banners inside a role row or inside the rail's action card, both of which are spaced already. */
.rbc-wizard-card > .rbc-banner {
	margin-bottom: var(--nu-space-4, 16px);
}

/* Rules above and below, so the transfer options read as set apart from the scope fields they
   follow without becoming a card inside a card. Held its own .rbc-disclosure rule while these
   were collapsed behind one; they are open now, so the section title carries the heading. */
.rbc-copy-advanced {
	border-top: 1px solid var(--nu-border, #dfe5e1);
	border-bottom: 1px solid var(--nu-border, #dfe5e1);
	padding: var(--nu-space-4, 16px) 0;
}

/* A .rbc-req-row--withfoot sets gap: 0, so the banners under a role row space themselves.
   Deliberately not .rbc-banner--tight: that modifier's negative block margins exist to claw
   back a parent flex gap, and inside a padded card they eat the card's own bottom padding
   instead, leaving the last banner flush against the card edge. */
.rbc-copy-role-row > .rbc-banner {
	margin-top: var(--nu-space-3, 12px);
}

/* The operations count, immediately right of the role's name and parent rather than stacked
   above the pills — it opens the list of what this role actually grants, which is a question
   about the role beside it, not a flag on the row. */
.rbc-copy-role-ops {
	align-self: center;
	flex: 0 0 auto;
	justify-content: center;
	/* A min-width, so the button's leading edge lines up down the list instead of drifting with
	   its own label — every column to its right is fixed, so it was the only thing that moved.
	   Not a fixed width: the count runs to three digits and es-ES says "Operaciones", and a
	   .rbc-action-btn is nowrap, so anything it cannot fit would spill rather than wrap. */
	min-width: 9rem;
}

/* The assignment window, in the middle of the row: the two dates stacked, the edit control
   beside them. Centred against the row rather than top-aligned with the role name, since it is
   two short lines against a block that can run to four. */
/* Packed to the column's trailing edge rather than spread across it: space-between parked the
   edit control ~38px off the dates it acts on, with the slack in between. flex-end closes that
   to one gap and carries the dates themselves rightward, toward the pills. */
.rbc-copy-role-dates {
	display: flex;
	align-items: center;
	align-self: center;
	justify-content: flex-end;
	gap: var(--nu-space-2, 8px);
	flex: 0 0 11rem;
	font-size: var(--nu-fs-small, 0.8125rem);
	color: var(--nu-ink-2, #4a5f58);
}

.rbc-copy-role-date-values {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

/* Sized to .rbc-row-action, and reserved whether or not it holds one. */
.rbc-copy-role-date-edit {
	flex: 0 0 30px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.rbc-copy-role-date-label {
	color: var(--nu-ink-3, #7d8e88);
}

/* Fixed width on the pills column, not a min-width — .rbc-req-row-side reserved 11rem for its
   widest single pill, and a row carrying two grew past it and shunted its dates left, so a list
   of rows read as ragged. Fixed instead: pills wrap within the column (they are already
   flex-wrap + flex-end) and every row hands the same width to the text on its left. Centred,
   because a wrapped second pill must not drag the column off the row's centre line. */
.rbc-copy-role-row > .rbc-req-row-body > .rbc-req-row-flags {
	flex: 0 0 11rem;
	min-width: 0;
	align-self: center;
	margin-top: 0;
}

/* The tick sits right of the pills and centres against the row. .rbc-rolepick-check already
   sets align-self: center for the grant wizard's picker; this only sizes the gutter so a run of
   rows lines the ticks up whether or not a row carries pills. */
.rbc-copy-role-row > .rbc-req-row-body > .rbc-rolepick-check {
	flex: 0 0 1.5rem;
	text-align: center;
}

/* The tick is a <button> now (it owns the checkbox role), so it needs a button's chrome removed
   and a focus ring of its own — .rbc-rolepick-check styles a <span> in the grant wizard. */
.rbc-copy-role-check {
	padding: 0;
	border: 0;
	background: none;
	line-height: 1;
	cursor: pointer;
}

.rbc-copy-role-check:focus-visible {
	outline: 2px solid var(--nu-accent, #006325);
	outline-offset: 2px;
	border-radius: 50%;
}

/* Briefly outlined after the conflict note jumps to this row. Red, because what sent the reader
   here is a conflict; and an outline rather than a border or background so it cannot be confused
   with .is-selected, which is a different fact about the same row. */
.rbc-copy-role-row.is-flagged {
	outline: 2px solid var(--nu-tone-red-fg, #c0392b);
	outline-offset: 2px;
}

/* Unselected. Green is what "kept" means on this list, so an empty tick must not read in it. */
.rbc-copy-role-row .rbc-rolepick-check.bi-circle {
	color: var(--nu-ink-3, #7d8e88);
}

/* Four columns on one line need more room than the wizard's own two-column breakpoint implies:
   the operations, dates, pills and tick columns reserve ~584px between them, so a row only hands
   the role's details a comfortable ~400px at about a 1450px viewport. Under that the details take
   a line of their own and the dates, controls and tick share the one beneath — measurably better
   than four columns with the role name wrapping inside 150px, which is what 900px produced on
   every ordinary laptop.
   The fixed column widths above are dropped here — holding them made the tick wrap onto a third
   line by itself, left-aligned under nothing. margin-left: auto keeps it at the row's trailing
   edge on whichever line it lands on. */
@media (max-width: 1400px) {
	.rbc-copy-role-row > .rbc-req-row-body {
		flex-wrap: wrap;
		align-items: center;
	}

	.rbc-copy-role-row > .rbc-req-row-body > .rbc-req-row-main {
		flex: 1 1 100%;
	}

	/* A results row carries only its details and one status pill, so it has room for both on one
	   line at any width the wrapping rule above covers — forcing the details to a full line left
	   the pill floating alone underneath them. */
	.rbc-copy-result-row > .rbc-req-row-body > .rbc-req-row-main {
		flex: 1 1 auto;
	}

	.rbc-copy-role-row > .rbc-req-row-body > .rbc-copy-role-ops,
	.rbc-copy-role-row > .rbc-req-row-body > .rbc-copy-role-dates {
		flex: 0 1 auto;
	}

	/* Zero basis, not auto: flex wraps before it shrinks, so a row carrying two pills measured
	   them side by side, overran the line and pushed the tick onto a third row of its own.
	   Starting from zero and growing lets the pills wrap inside their own column instead, which
	   is what keeps the tick beside them. */
	.rbc-copy-role-row > .rbc-req-row-body > .rbc-req-row-flags {
		flex: 1 1 0;
		min-width: 0;
	}

	.rbc-copy-role-row > .rbc-req-row-body > .rbc-rolepick-check {
		margin-left: auto;
	}
}

/* The confirm step's approvers button, in a gutter of its own to the right of the pills rather
   than inside them: .rbc-req-row-flags is a fixed 11rem that wraps a second pill within itself,
   so a button added there wrapped with them and landed under the pill instead of beside it.
   Sized and reserved like .rbc-copy-role-date-edit — held on every row, filled only on the ones
   that will raise a request, so the pill column starts at one x down the list. */
.rbc-copy-role-approvers {
	flex: 0 0 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	/* .rbc-req-row-body aligns its children to flex-start, which pinned the icon to the top of a
	   three-line row. Centred on the row like the pills column beside it. */
	align-self: center;
}

/* The rail's head carries the start-over action beside its label. */
.rbc-copy-summary .rbc-summary-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--nu-space-2, 8px);
}

.rbc-copy-date-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--nu-space-3, 12px);
}


/* Two-column toggle grid (transfer options) */
.rbc-toggle-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--nu-space-3, 12px) var(--nu-space-5, 24px);
}

.rbc-toggle-col {
	display: flex;
	flex-direction: column;
	gap: var(--nu-space-4, 16px);
}

/* Slightly smaller subtext here to avoid crowding in the two-up layout */
.rbc-toggle-grid .rbc-toggle .rbc-toggle-desc {
	font-size: var(--nu-fs-eyebrow, 0.75rem);
}

@media (max-width: 720px) {
	.rbc-toggle-grid {
		grid-template-columns: 1fr;
	}
}

.rbc-plan-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--nu-fs-small, 0.8125rem);
}

.rbc-plan-table th,
.rbc-plan-table td {
	text-align: left;
	padding: var(--nu-space-2, 8px) var(--nu-space-3, 12px);
	border-bottom: 1px solid var(--nu-border, #dfe5e1);
	vertical-align: middle;
}

.rbc-plan-table th {
	font-weight: var(--nu-fw-semibold, 600);
	color: var(--nu-ink-3, #7d8e88);
	white-space: nowrap;
}

.rbc-plan-table tbody tr:hover {
	background: var(--nu-bg-tint, #eef5f0);
}

/* ===== Modal shell (reusable, global) ===== */
.rbc-modal-backdrop {
	position: fixed;
	inset: 0;
	z-index: 1000;
	background: var(--nu-overlay, rgba(33, 59, 52, 0.45));
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: var(--nu-space-7, 48px) var(--nu-space-4, 16px);
	overflow-y: auto;
	animation: rbc-modal-fade 0.15s ease-out;
}

/* Keep long dialogs inside the viewport. The body is the scrolling region so the heading and
   close control remain available while list-heavy dialogs (administrators, members, approvers,
   conflicts and operations) grow. Dialogs with their own body layout override overflow below. */
.rbc-modal {
	width: 100%;
	max-width: 680px;
	max-height: calc(100vh - 2 * var(--nu-space-7, 48px));
	display: flex;
	flex-direction: column;
	background: var(--nu-surface-raised, #fff);
	border-radius: var(--nu-radius-lg, 14px);
	box-shadow: var(--nu-shadow-lg, 0 18px 40px rgba(33, 59, 52, 0.16));
	outline: none;
}

.rbc-modal-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--nu-space-4, 16px);
	padding: var(--nu-space-5, 24px) var(--nu-space-5, 24px) var(--nu-space-4, 16px);
	border-bottom: 1px solid var(--nu-border, #dfe5e1);
}

/* The close button and anything a dialog sets beside it (RbcModal's HeadActions). Kept to the
   top, like the close button always was, so a two-line title does not push it down. */
.rbc-modal-head-actions {
	display: flex;
	align-items: center;
	gap: var(--nu-space-3, 12px);
	flex-shrink: 0;
}

/* A text link in the head: no auto margin (there is no sibling to push from), no extra padding
   beyond the close button's height, and held a little off the close button so the two read as
   separate controls. A trailing arrow like the dashboard's "Learn more", nudged the same way on
   hover. The underline goes on the words alone: set on the link, it would run under the arrow
   too, so the link's own (from .rbc-modal-link) is cancelled here. */
.rbc-modal-head-actions .rbc-modal-headlink {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-left: 0;
	margin-right: var(--nu-space-4, 16px);
	padding: var(--nu-space-1, 4px) 0;
	text-decoration: none;
	white-space: nowrap;
}

.rbc-modal-head-actions .rbc-modal-headlink .bi {
	display: inline-block;
	font-size: 0.75rem;
	transition: transform 0.15s ease;
}

.rbc-modal-head-actions .rbc-modal-headlink:hover .bi {
	transform: translate(2px, -2px);
}

.rbc-modal-head .rbc-modal-head-actions .rbc-modal-headlink:hover {
	text-decoration: none;
}

.rbc-modal-head-actions .rbc-modal-headlink:hover .rbc-modal-headlink-text {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.rbc-modal-head-actions .rbc-modal-headlink:focus-visible {
	outline: 2px solid var(--nu-accent, #006325);
	outline-offset: 2px;
	border-radius: var(--nu-radius-sm, 4px);
}

.rbc-modal-title {
	margin: 0;
	font-size: var(--nu-fs-h2, 1.375rem);
	font-weight: var(--nu-fw-bold, 700);
	color: var(--nu-ink, #213b34);
}

.rbc-modal-eyebrow {
	font-size: var(--nu-fs-eyebrow, 0.75rem);
	letter-spacing: var(--nu-tracking-eyebrow, 0.08em);
	text-transform: uppercase;
	color: var(--nu-ink-3, #7d8e88);
	font-weight: var(--nu-fw-semibold, 600);
}

.rbc-modal-intro {
	margin: 4px 0 0;
	font-size: var(--nu-fs-small, 0.8125rem);
	color: var(--nu-ink-2, #4a5f58);
}

.rbc-iconbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	flex-shrink: 0;
	border: none;
	border-radius: var(--nu-radius-md, 8px);
	background: transparent;
	color: var(--nu-ink-2, #4a5f58);
	cursor: pointer;
}

.rbc-iconbtn:hover:not(:disabled) {
	background: var(--nu-bg-alt, #f5f4f0);
	color: var(--nu-ink, #213b34);
}

/* Reachable on RbcModal's close button, which goes disabled while a dialog refuses to close
   mid-submit. Without this it stays fully opaque under a pointer cursor and reads as clickable. */
.rbc-iconbtn:disabled {
	opacity: 0.5;
	cursor: default;
}

.rbc-modal-body {
	flex: 1 1 auto;
	min-height: 0;
	padding: var(--nu-space-5, 24px);
	overflow-y: auto;
}


/* Dashboard quick-action modals — shaded quick-info panel + inline actions. */
/* A trailing status pill (the super-user alert) on its own row above the facts. It held a heading
   beside the pill until both dialogs dropped theirs — the role and the assignee are rows in the
   facts card below, so a heading restated them — and the pill is what is left. */
.rbc-quickinfo-headrow {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--nu-space-3, 12px);
	margin-bottom: var(--nu-space-4, 16px);
}

.rbc-quickinfo {
	background: var(--nu-bg-alt, #f5f4f0);
	border-radius: var(--nu-radius-lg, 14px);
	padding: var(--nu-space-4, 16px) var(--nu-space-5, 24px);
}

/* Wider label column than the 120px this used to set: "Assignment Scope" and "Parent
   Application" both wrapped to two lines at that width, which put a two-line label beside a
   one-line value and broke the list's rhythm. Still narrower than the page-level .rbc-overview's
   180px — these sit inside a dialog, where the value column is the one that needs the room. */
.rbc-quickinfo .rbc-overview {
	grid-template-columns: 150px minmax(0, 1fr);
	gap: var(--nu-space-3, 12px) var(--nu-space-4, 16px);
}

.rbc-quickinfo .rbc-overview dd {
	font-weight: var(--nu-fw-semibold, 600);
}

.rbc-modal-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: var(--nu-space-2, 8px);
	margin-top: var(--nu-space-5, 24px);
}

.rbc-modal-link {
	margin-left: auto;
	padding: var(--nu-space-2, 8px) var(--nu-space-1, 4px);
	background: none;
	border: 0;
	font: inherit;
	font-weight: var(--nu-fw-semibold, 600);
	color: var(--nu-accent, #006325);
	cursor: pointer;
}

.rbc-modal-link:hover:not(:disabled) {
	text-decoration: underline;
}

/* A link on its own line ABOVE a dialog's content, at the trailing edge: the review dialog's way
   out to the full request, and the extend dialog's to the whole assignment. The glyph carries it rather than an underline: .rbc-modal-link underlines
   on hover everywhere in the app, and making this one the exception would have it read as a
   different kind of control than every other link here. The negative bottom margin pulls it onto
   the card below, so it reads as that card's own affordance rather than as a line of its own. */
.rbc-modal-toplink {
	/* Two things put space above this link and both are clawed back here. The banner above it is
	   a .rbc-modal-body > .rbc-banner:first-child, which adds 16px below itself; the negative top
	   margin cancels half of that (adjacent margins collapse to 16 + -8 = 8px). The link's own
	   8px of top padding is trimmed below rather than removed, because that padding is also its
	   hit area. Where there is no banner the same -8px tightens it against the modal's own top
	   padding instead, which is the same intent. */
	margin-top: calc(-1 * var(--nu-space-2, 8px));
	margin-bottom: calc(-1 * var(--nu-space-1, 4px));
	text-align: right;
}

.rbc-modal-toplink .rbc-modal-link {
	padding-top: 2px;
}

.rbc-modal-link:disabled {
	opacity: 0.5;
	cursor: default;
}

/* ===========================================================================
   RbcCombobox / RbcMultiCombobox — searchable selects (.rbc-combo-* / .rbc-mcombo-*),
   with shared *OptionRow templates. Used across the create/edit/grant forms.
   =========================================================================== */
.rbc-combo {
	position: relative;
	margin-bottom: var(--nu-space-1, 4px);
}

.rbc-combo-trigger {
	display: flex;
	align-items: center;
	gap: var(--nu-space-2, 8px);
	width: 100%;
	min-height: 40px;
	padding: 8px 10px 8px 12px;
	background: var(--nu-surface, #fff);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-md, 8px);
	font: inherit;
	color: var(--nu-ink, #213b34);
	text-align: left;
	cursor: pointer;
}

.rbc-combo-trigger:hover {
	border-color: var(--nu-accent, #006325);
}

.rbc-combo-trigger.is-open,
.rbc-combo-trigger:focus-visible {
	outline: none;
	border-color: var(--nu-accent, #006325);
	box-shadow: 0 0 0 3px var(--nu-focus-soft, #eef5f0);
}

.rbc-combo-value {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rbc-combo-value.is-placeholder {
	color: var(--nu-ink-3, #7d8e88);
}

/* Selected value rendered via an ItemTemplate (e.g. the two-line user or role row). It stacks —
   the template's lines are blocks — but each line stays on one line and truncates.

   This rule used to carry `overflow: visible`, and a value with no spaces in it cannot be broken
   by wrapping: a UPN like adm.someone.azure@nucor.onmicrosoft.com is one token, so it stayed a
   single long line and painted straight over the clear and caret icons. Hidden contains it; the
   trigger's `title` is what makes the truncated part reachable. */
.rbc-combo-value--rich {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* The ellipsis has to be set on the element that holds the text, so the rule above cannot place
   it: an ItemTemplate's lines are block children, and a block child of a truncating box is
   clipped without one. Every *OptionRow in the app builds its lines from these two classes, which
   is what makes one rule enough. Not .rbc-combo-item-id — an id is short and reads as a unit, so
   it keeps its full width and the name beside it gives instead. */
.rbc-combo-value--rich .rbc-combo-item-title,
.rbc-combo-value--rich .rbc-combo-item-sub {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Never compressed by a long value: flex items shrink by default, so a wide selection could
   squeeze the two icons instead of being clipped itself. */
.rbc-combo-icons {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	gap: 2px;
	color: var(--nu-ink-3, #7d8e88);
}

.rbc-combo-clear {
	display: inline-flex;
	padding: 2px;
	background: none;
	border: 0;
	color: var(--nu-ink-3, #7d8e88);
	cursor: pointer;
	border-radius: var(--nu-radius-sm, 4px);
}

.rbc-combo-clear:hover {
	color: var(--nu-danger, #c0392b);
	background: var(--nu-bg-alt, #f5f4f0);
}

.rbc-combo-backdrop {
	position: fixed;
	inset: 0;
	z-index: 40;
}

.rbc-combo-pop {
	position: absolute;
	z-index: 41;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	background: var(--nu-surface-raised, #fff);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-md, 8px);
	/* Two layers: a tight one to seat the popover's edge against the form behind it, and a
	   wide soft one to lift the whole thing clear of the fields it overlaps. */
	box-shadow: var(--nu-shadow-popover);
	padding: var(--nu-space-2, 8px);
}

/* Flipped above the trigger by js/combobox.js when the popover would otherwise run past the
   bottom of whatever clips it — the viewport, or the scrolling body of a dialog such as Check
   Access, whose max-height is below. The shadow flips with it so it still falls away from the
   control. */
.rbc-combo-pop.is-above {
	top: auto;
	bottom: calc(100% + 4px);
	box-shadow: var(--nu-shadow-popover-above);
}

.rbc-combo-search {
	width: 100%;
	height: 36px;
	padding: 6px 10px;
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-sm, 4px);
	font: inherit;
	margin-bottom: var(--nu-space-2, 8px);
}

.rbc-combo-search:focus-visible {
	outline: none;
	border-color: var(--nu-accent, #006325);
	box-shadow: 0 0 0 3px var(--nu-focus-soft, #eef5f0);
}

/* The list is what scrolls, so it is also what gives way when the popover has no side long
   enough to hold it: js/combobox.js lowers --rbc-combo-list-max to the room actually available
   inside the dialog or viewport that clips it. 240px is the unconstrained default. */
.rbc-combo-list {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: var(--rbc-combo-list-max, 240px);
	overflow-y: auto;
}

.rbc-combo-item {
	display: block;
	width: 100%;
	padding: 8px 10px;
	background: none;
	border: 0;
	border-radius: var(--nu-radius-sm, 4px);
	font: inherit;
	color: var(--nu-ink, #213b34);
	text-align: left;
	cursor: pointer;
}

.rbc-combo-item:hover {
	background: var(--nu-bg-alt, #f5f4f0);
}

.rbc-combo-item.is-selected {
	background: var(--nu-bg-tint, #eef5f0);
}

/* Arrow-key focus. DOM focus stays in the search field so the browser draws nothing here, and
   this ring is the only thing telling a keyboard user where they are. A ring rather than a fill
   because it has to read on an already-selected row too, and .is-selected owns the background. */
.rbc-combo-item.is-active {
	box-shadow: inset 0 0 0 2px var(--nu-accent, #006325);
}

/* Two-line result rows (optional ItemTemplate). */
.rbc-combo-item-title {
	display: block;
	font-weight: var(--nu-fw-semibold, 600);
	color: var(--nu-ink, #213b34);
}

/* Title line with a trailing element (e.g. a status pill) pushed to the right. */
.rbc-combo-item-titlerow {
	display: flex;
	align-items: center;
	gap: var(--nu-space-2, 8px);
}

.rbc-combo-item-titlerow .rbc-combo-item-title {
	flex: 1 1 auto;
	min-width: 0;
}

/* Row with a leading (left, vertically centered) muted id and a two-line block. */
.rbc-ra-row {
	display: flex;
	align-items: center;
	gap: var(--nu-space-3, 12px);
}

.rbc-ra-id {
	flex: 0 0 auto;
	color: var(--nu-ink-3, #7d8e88);
	font-size: var(--nu-fs-small, 0.8125rem);
}

.rbc-ra-main {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.rbc-ra-row > .rbc-ra-main {
	flex: 1 1 auto;
}

/* Multi-select combobox: chips live inside the control, which wraps and grows. */
.rbc-mcombo {
	position: relative;
	margin-bottom: var(--nu-space-1, 4px);
}

.rbc-mcombo-control {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	width: 100%;
	min-height: 40px;
	padding: 6px 8px;
	background: var(--nu-surface, #fff);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-md, 8px);
	cursor: pointer;
}

.rbc-mcombo-control:hover {
	border-color: var(--nu-accent, #006325);
}

.rbc-mcombo-control.is-open {
	/* Sit above the popover backdrop (z-index 40) so chips stay clickable — the ×
	   and re-selecting a row must work without the search closing. */
	position: relative;
	z-index: 42;
	border-color: var(--nu-accent, #006325);
	box-shadow: 0 0 0 3px var(--nu-focus-soft, #eef5f0);
}

/* The control is focusable (tabindex="0") so a keyboard user can open it, which means it needs
   a visible focus ring — matching .rbc-combo-trigger, since the two are the same control in
   the user's mind. Without this the focus would land somewhere invisible. */
.rbc-mcombo-control:focus-visible {
	outline: none;
	border-color: var(--nu-accent, #006325);
	box-shadow: 0 0 0 3px var(--nu-focus-soft, #eef5f0);
}

/* Clear all, floated above the control's top-right corner. Anchored to .rbc-mcombo (already
   position: relative for the popover) with bottom: 100%, so it sits on the label line where the
   caller passes a Label, and on the section-title line where it does not — both are ~4-5px of
   margin, so the button's own line-height is what keeps it clear of the box.
   Out of flow deliberately: in flow it would either add a row above every one of these controls
   or push a long label onto two lines. */
.rbc-mcombo-clear {
	position: absolute;
	right: 0;
	bottom: 100%;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 0 0 3px;
	border: 0;
	background: none;
	font-size: var(--nu-fs-small, 0.8125rem);
	line-height: 1.2;
	color: var(--nu-ink-2, #4a5f58);
	cursor: pointer;
}

.rbc-mcombo-clear:hover {
	color: var(--nu-accent, #006325);
	text-decoration: underline;
}

.rbc-mcombo-clear:focus-visible {
	outline: 2px solid var(--nu-accent, #006325);
	outline-offset: 2px;
	border-radius: var(--nu-radius-sm, 4px);
}

.rbc-mcombo-placeholder {
	color: var(--nu-ink-3, #7d8e88);
	padding: 2px 4px;
}

.rbc-mchip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	max-width: 100%;
	padding: 3px 4px 3px 8px;
	background: var(--nu-bg-alt, #f5f4f0);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-sm, 4px);
}

.rbc-mchip-body {
	min-width: 0;
}

/* Chip mirrors the result-row template but a notch smaller. */
.rbc-mchip .rbc-combo-item-title {
	font-size: var(--nu-fs-small, 0.8125rem);
}

.rbc-mchip .rbc-combo-item-sub,
.rbc-mchip .rbc-combo-item-id {
	font-size: 0.6875rem;
}

.rbc-mchip-x {
	display: inline-flex;
	align-self: center;
	flex-shrink: 0;
	padding: 2px;
	background: none;
	border: 0;
	color: var(--nu-ink-3, #7d8e88);
	cursor: pointer;
	border-radius: var(--nu-radius-sm, 4px);
	font-size: 0.75rem;
}

.rbc-mchip-x:hover {
	color: var(--nu-danger, #c0392b);
	background: var(--nu-surface, #fff);
}

.rbc-combo-item-sub {
	display: block;
	margin-top: 2px;
	font-size: var(--nu-fs-small, 0.8125rem);
	color: var(--nu-ink-2, #4a5c55);
}

.rbc-combo-item-id {
	margin-left: 4px;
	font-weight: var(--nu-fw-regular, 400);
	color: var(--nu-ink-3, #7d8e88);
}

/* A parenthetical fact after a result row's title — the organization an Assignment Scope would
   resolve to for the selected person. Inline rather than a second line: it qualifies the name it
   follows rather than describing it, and the two read as one phrase ("My Location (Vulcraft
   Florence)"), which is also how the closed combobox shows the selected value. Resets the weight
   and colour .rbc-combo-item-title sets, or a muted aside renders as part of the bold title. */
.rbc-combo-item-note {
	margin-left: 4px;
	font-weight: var(--nu-fw-regular, 400);
	color: var(--nu-ink-3, #7d8e88);
}


.rbc-combo-empty,
.rbc-combo-hint,
.rbc-combo-loading {
	padding: 10px;
	color: var(--nu-ink-3, #7d8e88);
	font-size: var(--nu-fs-small, 0.8125rem);
}

@keyframes rbc-modal-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* ===== Request Access (self-service catalog) ===== */




.rbc-cat-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: var(--nu-space-4, 16px);
	text-align: left;
	background: var(--nu-surface, #fff);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-lg, 14px);
	padding: var(--nu-space-4, 16px);
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}

.rbc-cat-card:hover {
	border-color: var(--nu-accent, #006325);
	box-shadow: var(--nu-shadow-sm);
}

.rbc-cat-card:active {
	transform: translateY(1px);
}


.rbc-cat-card-icon {
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--nu-radius-md, 8px);
	background: var(--nu-bg-tint, #eef5f0);
	color: var(--nu-accent, #006325);
	font-size: 1.1rem;
}

.rbc-cat-card-name {
	font-weight: var(--nu-fw-bold, 700);
	color: var(--nu-ink, #213b34);
}



.rbc-cat-card-chevron {
	color: var(--nu-ink-3, #7d8e88);
}

/* ===== Two-pane catalog (products | applications) ===== */
.rbc-catalog {
	display: grid;
	/* Widened by 40px at both ends to seat the product id beside the name without squeezing
	   the name itself — a product list whose names all ellipsise is a list you cannot read.
	   The right column stays `1fr` and still clears an application row's option pill at the
	   narrowest desktop width the shell produces. */
	grid-template-columns: minmax(440px, 500px) minmax(0, 1fr);
	gap: var(--nu-space-4, 16px);
	align-items: start;
}

@media (max-width: 720px) {
	.rbc-catalog {
		grid-template-columns: 1fr;
	}
}

/* Which product or application a role hangs off, under its name in the wizard's picker. */
.rbc-req-row-parent {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px;
	margin-top: 2px;
	font-size: var(--nu-fs-small, 0.8125rem);
	color: var(--nu-ink-2, #4a5f58);
}

.rbc-req-row-parent-label {
	color: var(--nu-ink-3, #7d8e88);
}

/* The role's id, beside its name in the wizard's picker — searchable, so worth showing. */
.rbc-req-row-id {
	margin-left: 6px;
	font-family: var(--nu-font-mono, monospace);
	font-size: var(--nu-fs-small, 0.8125rem);
	font-weight: var(--nu-fw-regular, 400);
	color: var(--nu-ink-3, #7d8e88);
}

/* ---- Approver contacts ---- */
.rbc-approvers {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--nu-space-2, 8px);
}

.rbc-approver-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

/* One pill, two names. It was written for the wizard's approver preview and is now also the
   "requested for" target on every pending request row — the same object (a named principal) in
   two places, so it gets one definition rather than a copy that drifts. The neutral name is the
   one to reach for in new code; .rbc-approver-chip stays because its overflow variant and the
   markup around it are written in those terms. */
.rbc-approver-chip,
.rbc-principal-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: 100%;
	padding: 3px 10px;
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: 999px;
	background: var(--nu-bg-alt, #f5f4f0);
	font-size: var(--nu-fs-small, 0.8125rem);
	color: var(--nu-ink-2, #4a5f58);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rbc-approver-chip--more {
	cursor: pointer;
	font-weight: var(--nu-fw-semibold, 600);
	color: var(--nu-accent, #006325);
	border-color: var(--nu-accent, #006325);
	background: var(--nu-surface, #fff);
}

.rbc-approver-chip--more:hover {
	background: var(--nu-bg-tint, #eef5f0);
}

.rbc-approver-list {
	list-style: none;
	margin: 0 0 var(--nu-space-4, 16px);
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.rbc-approver {
	display: flex;
	align-items: center;
	gap: var(--nu-space-3, 12px);
	padding: 6px var(--nu-space-2, 8px);
	border-radius: var(--nu-radius-sm, 4px);
}

.rbc-approver:hover {
	background: var(--nu-bg-alt, #f5f4f0);
}

.rbc-approver-icon {
	color: var(--nu-ink-3, #7d8e88);
}

.rbc-approver-main {
	min-width: 0;
	flex: 1;
}

.rbc-approver-name {
	font-weight: var(--nu-fw-semibold, 600);
	color: var(--nu-ink, #213b34);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Assignment filters beside their grid: the grid is the wide thing, so the filters take a
   fixed column and the grid absorbs the rest. */
/* Check Access: three stacked actions, each a titled step with its inputs on the left and
   what they produce on the right. The steps read as one column so the page is a sequence
   rather than a wall of tools. */
/* The short "none" card for the Check Access pair only — deliberately scoped under
   .rbc-access-pair so it cannot reach EmptyState anywhere else. EmptyState is built for a full
   results area and its 48px of vertical padding is far too much here, where the card's only
   job is to say "none" beside a sibling that may have four rows.
   Explicit box-sizing so the height is the card's outer height whatever the page reset does. */
.rbc-access-pair .rbc-access-brief {
	box-sizing: border-box;
	min-height: 184px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.rbc-access-pair .rbc-access-brief .rbc-empty {
	padding: 0;
}

.rbc-access-pair .rbc-access-brief .rbc-empty-icon {
	font-size: 1.5rem;
	margin-bottom: 0;
}

/* Two steps sharing a row — the short "what's in motion" lists, which are narrow enough that
   a full-width card each would be mostly empty. */
.rbc-access-pair {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--nu-space-4, 16px);
	align-items: start;
}

@media (max-width: 1100px) {
	.rbc-access-pair {
		grid-template-columns: 1fr;
	}
}

.rbc-access-split {
	display: grid;
	grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
	gap: var(--nu-space-4, 16px);
	align-items: start;
}

/* The hierarchy-backed scope picker needs enough width for tree indentation and organization
   names. The verdict beside it is comparatively compact, so the Check for Operation dialog gives
   more of the same row to Narrow By without growing the modal itself. */
.rbc-access-split--check {
	grid-template-columns: minmax(380px, 1.35fr) minmax(280px, 0.85fr);
}

/* Simulate's inputs column carries a multi-select whose chips stack, so the card grows with the
   selection — and its action sits under that card. At the shared 320px a handful of roles pushed
   the Simulate button past the dialog's scroll edge, so this column gets the extra width and the
   results column gives it up: one diff list needs far less room than the two it replaced. */
.rbc-access-split--sim {
	grid-template-columns: minmax(320px, 640px) minmax(0, 1fr);
}

@media (max-width: 1100px) {
	.rbc-access-split,
	.rbc-access-split--check,
	.rbc-access-split--sim {
		grid-template-columns: 1fr;
	}
}

/* Compact hierarchy rows inside a searchable combobox. Results stay in pre-order and use depth
   only as presentation; the selected value drops the indentation because it no longer needs its
   ancestors to provide context. */
.rbc-orgcombo-option {
	display: flex;
	align-items: center;
	gap: var(--nu-space-2, 8px);
	min-width: 0;
	padding-left: calc(var(--rbc-org-depth, 0) * 18px);
}

.rbc-orgcombo-icon {
	flex: 0 0 auto;
	color: var(--nu-ink-3, #7d8e88);
}

.rbc-orgcombo-copy {
	flex: 1 1 auto;
	min-width: 0;
}

.rbc-orgcombo-option > .rbc-combo-item-id {
	flex: 0 0 auto;
}

.rbc-combo-value--rich .rbc-orgcombo-option {
	padding-left: 0;
}

/* ---- The role-assignments card ----
   Its own head and its filter column are padded like any card's contents; the grid is not,
   because Iron draws its own gutters and a second indent inside them reads as a misalignment.
   That is why the padding sits on these two children rather than on .rbc-grid-wrap.

   .rbc-grid-wrap clips to its own radius with overflow: hidden, which is right for a card that is
   nothing but a grid and wrong for this one: its filter column holds two comboboxes, and
   .rbc-combo-pop is absolutely positioned, so it cannot escape a clipping ancestor in either
   direction. Near the bottom of the window js/combobox.js correctly flips the list above its
   trigger — and the card then cut it off at its own top edge, so the list opened and vanished.

   Fixed by moving the clip to the child that actually needs it. Only .rbc-asg-results reaches the
   card's edges (the head and the filter column are both padded), so it carries the bottom radii
   and the hidden overflow while the filters sit in a container that does not clip. Nothing
   changes for the grid, which was inside an overflow: hidden before and still is.

   This card briefly held a second grid for administration roles, split into three cards to keep
   them apart; that grid is a dialog now and the card is back to one list. Two things to keep in
   mind if a second one is ever added here again: two grids stacked in one card run into each
   other, and any layout that puts a picker and a grid in one clipping container reopens the bug
   above. */
.rbc-asg {
	overflow: visible;
}

/* The card's own control — its Status dropdown — sits beside the title block, not inside the
   heading's row: it is taller than that line box, so nesting it there would grow the row and push
   the sentence under the title down. Top-aligned, because it belongs to the card rather than to either
   line. Wraps below the text on a narrow card — one row of the two is worth more than a squeezed
   title. */
.rbc-asg-head {
	padding: var(--nu-space-4, 16px) var(--nu-space-4, 16px) 0;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--nu-space-3, 12px);
}

/* Grows into the row, and may shrink below its content's width so a long title truncates rather
   than shunting the button off the card. */
.rbc-asg-head-text {
	flex: 1 1 18rem;
	min-width: 0;
}

/* The title already names the section, so the sentence under it is the only subtitle — no
   margin above it, since the card head supplies that gap. */
.rbc-asg-head .rbc-help-text {
	margin: 0 0 var(--nu-space-3, 12px);
}

/* The role assignments card's controls (Check Access and My Access) — the groups and
   administration-roles buttons, then the Status dropdown — in one row at the head's trailing
   edge, so the dropdown lands right above the grid's export buttons. Wraps among itself, kept to
   the end, when the card is too narrow for the row: the buttons are nowrap, so squeezing them
   would spill rather than wrap. Same bottom gap as the sentence beside it, so the grid starts at
   one height either way. Layout only — the controls bring their own theme-aware colours. */
.rbc-asg-head-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: var(--nu-space-3, 12px);
	max-width: 100%;
	margin-left: auto;
	margin-bottom: var(--nu-space-3, 12px);
}

/* The two dialog buttons on that row are the row-scale pill, which drops the shadow; here they
   keep one so they read as raised controls beside the flat Status trigger. :where() leaves hover
   and focus to .rbc-action-btn's own shadows. */
.rbc-asg-head-actions .rbc-action-btn:where(:not(:hover, :focus-visible)) {
	box-shadow: var(--nu-shadow-md, 0 4px 12px rgba(33, 59, 52, 0.1));
}

/* Set the Status dropdown apart from the buttons before it: the buttons open dialogs, the
   dropdown narrows the grid, and the row's ordinary gap ran the two together. */
.rbc-asg-head-actions .rbc-status-select {
	margin-left: var(--nu-space-3, 12px);
}

/* Filters beside the rows they narrow. Stretched rather than start-aligned so the divider
   between the two runs the height of the card — start-aligned it stopped under the last
   picker and read as an underline on the filters instead of a separator. */
.rbc-asg-split {
	display: grid;
	grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
}

/* No filters to show means no column to leave: one row of grid, full width. Declared by the
   page rather than inferred with :has(), because where :has() is unsupported the fallback is
   the grid squeezed into a 260px column — a worse failure than the class costs. */
.rbc-asg-split--nofilters {
	grid-template-columns: minmax(0, 1fr);
}

/* Filters beside the rows they narrow. Stretched rather than start-aligned so the divider
   between the two runs the height of the card — start-aligned it stopped under the last picker
   and read as an underline on the filters instead of a separator. */
.rbc-asg-filters {
	display: flex;
	flex-direction: column;
	gap: var(--nu-space-3, 12px);
	align-content: start;
	padding: 0 var(--nu-space-4, 16px) var(--nu-space-4, 16px);
	border-right: 1px solid var(--nu-border, #dfe5e1);
}

.rbc-asg-results {
	min-width: 0;
	/* The clip .rbc-asg gives up — see the note above. Both bottom corners, not just the right
	   one: under 1100px the split stacks and this column spans the full width of the card. */
	overflow: hidden;
	border-bottom-left-radius: var(--nu-radius-lg, 14px);
	border-bottom-right-radius: var(--nu-radius-lg, 14px);
}

/* Stacked, the divider belongs under the filters rather than beside them. */
@media (max-width: 1100px) {
	.rbc-asg-split {
		grid-template-columns: minmax(0, 1fr);
	}

	.rbc-asg-filters {
		border-right: 0;
		border-bottom: 1px solid var(--nu-border, #dfe5e1);
	}
}

/* The inputs pane: filters, pickers and the button that acts on them. */
.rbc-access-form {
	display: flex;
	flex-direction: column;
	gap: var(--nu-space-2, 8px);
}

/* The fields already carry their own spacing, so the last one should not add to the card's
   padding — and the action button sits tight under it. */
.rbc-access-form .rbc-field:last-of-type {
	margin-bottom: 0;
}

/* The shared action row is spaced for a long form, where the separator marks the end of a page
   of inputs. Here it closes a short filter card in a dialog, and 24px of margin over 16px of
   padding left a visible band of nothing between the last picker and the button that acts on
   it — the card's own flex gap plus a little breathing room under the rule is enough. */
.rbc-access-form .rbc-actions {
	margin-top: 0;
	padding-top: var(--nu-space-3, 12px);
}

/* Enough height that an unrun check reads as "results go here" rather than as a stub. */
.rbc-access-results {
	min-height: 260px;
}

/* The check is short enough that an indeterminate loader should stay centred in the answer pane
   rather than inheriting a page loader's tall footprint. */
.rbc-check-loading {
	min-height: 170px;
}

/* The simulation can list hundreds of operations, so its card is bounded and the diff list
   scrolls inside it — the count and the card title stay in view. */
.rbc-access-results--capped {
	max-height: 600px;
	display: flex;
	flex-direction: column;
}

/* How many operations the list below holds. Deliberately not a stat tile: the list is the
   answer and the number is only its length, so it is set at caption size beside its own label
   rather than as a figure the eye lands on first. */
.rbc-sim-count {
	margin: 0 0 var(--nu-space-2, 8px);
	font-size: var(--nu-fs-small, 0.8125rem);
	color: var(--nu-ink-3, #7d8e88);
}

/* ---- Simulation diff: the operations the chosen mode would add, or the ones it would take ----
   One list, because one mode is in effect. It is the last thing in the capped card, so it takes
   the leftover height and scrolls inside it — the count and the card title stay in view. */
.rbc-diff-list {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-y: auto;
	flex: 1;
	min-height: 0;
}

/* Rows read as diff lines: a sign, the operation, then where it lives. */
.rbc-diff-item {
	display: flex;
	align-items: baseline;
	gap: 8px;
	padding: 6px var(--nu-space-2, 8px);
	border-radius: var(--nu-radius-sm, 4px);
	font-size: var(--nu-fs-small, 0.8125rem);
	color: var(--nu-ink, #213b34);
}

.rbc-diff-item--add {
	background: var(--nu-tone-green-bg, #e8f2ec);
}

.rbc-diff-item--remove {
	background: var(--nu-tone-red-bg, #fdecea);
}

.rbc-diff-sign {
	flex-shrink: 0;
	width: 0.75rem;
	font-weight: var(--nu-fw-semibold, 600);
	font-variant-numeric: tabular-nums;
}

.rbc-diff-item--add .rbc-diff-sign {
	color: var(--nu-tone-green-fg, #1a7a3e);
}

.rbc-diff-item--remove .rbc-diff-sign {
	color: var(--nu-tone-red-fg, #c0392b);
}

.rbc-diff-op {
	min-width: 0;
	overflow-wrap: anywhere;
}

/* The owning application is context, not the subject of the row. */
.rbc-diff-app {
	margin-left: auto;
	flex-shrink: 0;
	padding-left: var(--nu-space-2, 8px);
	color: var(--nu-ink-3, #7d8e88);
}

/* The exact inputs behind a verdict. A light rule keeps the question attached to the answer while
   separating both from the grant/block evidence below. The narrower label column suits the
   dialog; the page-level overview keeps its more generous default. */
.rbc-check-context {
	padding: 0 var(--nu-space-1, 4px) var(--nu-space-4, 16px);
	border-bottom: 1px solid var(--nu-border, #dfe5e1);
}

.rbc-check-context .rbc-overview {
	grid-template-columns: 130px minmax(0, 1fr);
	gap: var(--nu-space-2, 8px) var(--nu-space-4, 16px);
	/* The labels use caption text while the values use body text. Align their baselines so the
	   two font sizes still read as one row instead of the value sitting low beside its label. */
	align-items: baseline;
}

.rbc-check-scope-note {
	display: flex;
	align-items: flex-start;
	gap: var(--nu-space-2, 8px);
	margin: var(--nu-space-3, 12px) 0 0;
	font-size: var(--nu-fs-small, 0.8125rem);
	color: var(--nu-ink-2, #4a5f58);
}

.rbc-check-scope-note .bi {
	flex-shrink: 0;
	color: var(--nu-accent, #006325);
}

/* Why the verdict came out the way it did, in a sentence. Sits directly under the captured
   question and leads into any assignment evidence. */
.rbc-check-reason {
	margin: var(--nu-space-4, 16px) 0 0;
	font-size: var(--nu-fs-body, 0.9375rem);
	color: var(--nu-ink-2, #4a5f58);
}

.rbc-check-list {
	margin-top: var(--nu-space-4, 16px);
}

/* ---- Role assignment rows (RoleAssignmentRow) ----
   The evidence behind a verdict: which assignment, for how long, and a way through to it. */
.rbc-ra-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--nu-space-2, 8px);
}

.rbc-ra {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--nu-space-3, 12px);
	padding: var(--nu-space-3, 12px);
	background: var(--nu-bg-alt, #f5f4f0);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-left: 3px solid var(--nu-accent, #006325);
	border-radius: var(--nu-radius-md, 8px);
}

/* An exclusion took the access away, so it is not the same kind of fact as a grant. */
.rbc-ra--blocked {
	border-left-color: var(--nu-tone-red-fg, #c0392b);
}

.rbc-ra-main {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.rbc-ra-name {
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: var(--nu-fw-semibold, 600);
	color: var(--nu-ink, #213b34);
}

.rbc-ra-name .bi {
	color: var(--nu-accent, #006325);
}

.rbc-ra--blocked .rbc-ra-name .bi {
	color: var(--nu-tone-red-fg, #c0392b);
}

.rbc-ra-role {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rbc-ra-id {
	font-weight: var(--nu-fw-regular, 400);
	font-size: var(--nu-fs-small, 0.8125rem);
	color: var(--nu-ink-3, #7d8e88);
}

.rbc-ra-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--nu-space-3, 12px);
	font-size: var(--nu-fs-small, 0.8125rem);
	color: var(--nu-ink-2, #4a5f58);
}

.rbc-ra-fact {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.rbc-ra-fact .bi {
	color: var(--nu-ink-3, #7d8e88);
}

.rbc-ra-fact-label {
	font-weight: var(--nu-fw-semibold, 600);
}

.rbc-ra-scope-detail {
	color: var(--nu-ink-3, #7d8e88);
}

/* Trailing controls on a row: the action, then the row's secondary lookups. */
.rbc-ra-actions {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	gap: var(--nu-space-2, 8px);
}

.rbc-ra-link {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: var(--nu-fs-small, 0.8125rem);
	font-weight: var(--nu-fw-semibold, 600);
	color: var(--nu-accent, #006325);
	text-decoration: none;
	white-space: nowrap;
}

/* The arrow travels on hover, so the row reads as a way through rather than a label. */
.rbc-ra-link .bi {
	transition: transform 0.15s ease;
}

.rbc-ra-link:hover,
.rbc-ra-link:focus-visible {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.rbc-ra-link:hover .bi,
.rbc-ra-link:focus-visible .bi {
	transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
	.rbc-ra-link .bi {
		transition: none;
	}

	.rbc-ra-link:hover .bi,
	.rbc-ra-link:focus-visible .bi {
		transform: none;
	}
}

/* Narrow results pane: the link drops below the facts rather than squeezing them. */
@media (max-width: 560px) {
	.rbc-ra {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ---- Request wizard card ----
   Bounded to the viewport so the Back/Next footer is always reachable: the card is a
   flex column, and the one part that can grow without limit — the step 2 role list —
   scrolls inside it instead of pushing the footer off screen. Every level between the
   card and that list needs min-height: 0, or the flex items refuse to shrink and the
   overflow never engages. The subtracted height is the shell above and below the card:
   top bar, page padding, page header, and the page's row gap. */
.rbc-wizard-card {
	display: flex;
	flex-direction: column;
	min-height: 320px;
	container-name: request-wizard;
	container-type: inline-size;
}

/* Applied only to list-heavy picker steps. Scope steps deliberately grow with their content: they
   contain combobox popovers that must not acquire a clipping ancestor, while each hierarchy tree
   already owns a bounded scrollbar. Every other step is a plain form and may grow naturally. */
.rbc-wizard-card--viewport {
	max-height: calc(100vh - 255px);
}

.rbc-wizard-form {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
}

.rbc-wizard-pane {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
}

/* Two cards side by side: the main wizard card and a separate summary card to its right. */
.rbc-wizard-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: var(--nu-space-4, 16px);
	align-items: start;
}

@media (max-width: 900px) {
	.rbc-wizard-layout {
		grid-template-columns: 1fr;
	}
}

/* Stacked, the rail has nothing beside it to stay level with, and a capped, scrolling column at
   full width would both trap the page's own scroll and pin itself over the step content the
   reader is scrolling through — the trap .rbc-rolepick--detail documents at its own breakpoint.
   Must sit after the base rule: both are single-class selectors, so source order decides. */
@media (max-width: 900px) {
	.rbc-wizard-side {
		position: static;
		max-height: none;
		overflow-y: visible;
	}
}

/* Stacked, the rail has nothing beside it to stay level with, and a capped, scrolling column
   full-width would trap the page's own scroll. Must sit after the base rule — both are
   single-class selectors, so source order decides. */
@media (max-width: 900px) {
	.rbc-copy-rail {
		position: static;
		max-height: none;
		overflow-y: visible;
	}
}

/* The running summary rail. Fills in as the user advances; each step reads done / current / pending. */
.rbc-wizard-summary {
	align-self: start;
	background: var(--nu-surface, #fff);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-lg, 14px);
	box-shadow: var(--nu-shadow-sm, 0 1px 3px rgba(33, 59, 52, 0.1));
	overflow: hidden;
}

.rbc-summary-head {
	padding: var(--nu-space-3, 12px) var(--nu-space-4, 16px);
	border-bottom: 1px solid var(--nu-border, #dfe5e1);
	font-size: var(--nu-fs-small, 0.8125rem);
	font-weight: var(--nu-fw-bold, 700);
	color: var(--nu-ink, #213b34);
}

.rbc-summary-item {
	padding: var(--nu-space-3, 12px) var(--nu-space-4, 16px);
	border-bottom: 1px solid var(--nu-border, #dfe5e1);
}

.rbc-wizard-summary .rbc-summary-item:last-child {
	border-bottom: none;
}

.rbc-summary-item--current {
	background: var(--nu-bg-tint, #eef5f0);
	box-shadow: inset 3px 0 0 var(--nu-accent, #006325);
}

.rbc-summary-item-head {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 6px;
}

.rbc-summary-icon {
	font-size: 0.95rem;
	color: var(--nu-accent, #006325);
}

.rbc-summary-item--pending .rbc-summary-icon {
	color: var(--nu-ink-3, #7d8e88);
}

.rbc-summary-label {
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--nu-ink-3, #7d8e88);
}

.rbc-summary-item--current .rbc-summary-label {
	color: var(--nu-accent, #006325);
}

/* Each summary item jumps to its step, running the same validation as the stepper. */
.rbc-summary-item {
	cursor: pointer;
	transition: background-color 0.12s ease;
}

.rbc-wizard-summary .rbc-summary-item:hover {
	background: var(--nu-bg-alt, #f5f4f0);
}

.rbc-wizard-summary .rbc-summary-item--current:hover {
	background: var(--nu-bg-tint, #eef5f0);
}

.rbc-wizard-summary .rbc-summary-item:focus-visible {
	outline: 2px solid var(--nu-accent, #006325);
	outline-offset: -2px;
}

.rbc-summary-value {
	font-size: var(--nu-fs-small, 0.8125rem);
	font-weight: 600;
	color: var(--nu-ink, #213b34);
	overflow-wrap: anywhere;
}

/* The three scope categories stay independently scannable in the narrow copy-plan rail. */
.rbc-copy-scope-summary {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.rbc-summary-sub {
	font-size: 0.75rem;
	color: var(--nu-ink-3, #7d8e88);
	margin-top: 1px;
}

.rbc-summary-empty {
	font-size: var(--nu-fs-small, 0.8125rem);
	color: var(--nu-ink-3, #7d8e88);
}

.rbc-summary-badge {
	margin-top: var(--nu-space-1, 4px);
}

/* Step 3's required "limit scope?" question: a plain-language Yes/No gate before the source type. */
.rbc-question {
	font-size: var(--nu-fs-body, 0.9375rem);
	font-weight: var(--nu-fw-semibold, 600);
	color: var(--nu-ink, #213b34);
}

.rbc-scopebtns {
	display: flex;
	gap: var(--nu-space-2, 8px);
	margin-top: var(--nu-space-2, 8px);
}

.rbc-scopebtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	min-width: 68px;
	border: 1px solid var(--nu-border-strong, #b8c2bd);
	border-radius: var(--nu-radius-md, 8px);
	background: var(--nu-surface, #fff);
	padding: 6px 14px;
	font-size: var(--nu-fs-small, 0.8125rem);
	font-weight: var(--nu-fw-semibold, 600);
	color: var(--nu-ink, #213b34);
	cursor: pointer;
}

.rbc-scopebtn:hover {
	border-color: var(--nu-accent, #006325);
}

.rbc-scopebtn--active,
.rbc-scopebtn--active:hover {
	background: var(--nu-accent-fill, #006325);
	border-color: var(--nu-accent, #006325);
	color: var(--nu-on-accent, #fff);
}

/* An either-or question that has not been answered marks *both* halves: neither button is the
   wrong one, the missing answer is, so redding one would point at the wrong thing. Border only —
   the red fill .rbc-input--invalid uses would fight --active's solid green.

   It never collides with .rbc-scopebtn--active despite outweighing it: the modifier is on the
   group and only while the question is unanswered, and an unanswered question has no active
   button. It ties with .rbc-scopebtn:hover (both one class plus one more), so sitting after it is
   what keeps the mark on while the reader hovers the button they are about to press. */
.rbc-scopebtns--invalid .rbc-scopebtn {
	border-color: var(--nu-tone-red-fg, #c0392b);
}

.rbc-scope-consequence {
	margin-top: var(--nu-space-2, 8px);
	font-size: var(--nu-fs-small, 0.8125rem);
	color: var(--nu-ink-3, #7d8e88);
	line-height: 1.5;
}

.rbc-question-error {
	margin-top: var(--nu-space-1, 4px);
	font-size: var(--nu-fs-small, 0.8125rem);
}

/* Container for the shared Other-scope picker used by edit forms. */
.rbc-orgscope-container {
	min-width: 0;
}

/* The hierarchy override is reused in each hierarchy viewer toolbar. */
.rbc-assignment-hierarchy-field {
	display: flex;
	flex-direction: column;
	gap: var(--nu-space-1, 4px);
	min-width: 0;
}

.rbc-assignment-hierarchy-field .rbc-hierarchy-input {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--nu-space-2, 8px);
	width: 100%;
	box-sizing: border-box;
}

.rbc-assignment-hierarchy-input-value {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rbc-assignment-hierarchy-input-chevron {
	flex: 0 0 auto;
	color: var(--nu-ink-3, #7d8e88);
}

.rbc-assignment-hierarchy-field .rbc-hierarchy-input:hover:not(:disabled) .rbc-assignment-hierarchy-input-chevron {
	color: var(--nu-accent, #006325);
}

.rbc-dynamic-cascade {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--nu-space-3, 12px);
	align-items: start;
	min-width: 0;
}

.rbc-dynamic-cascade--preview {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
}

/* The wizards place the cascade question in their controls column. In that layout this component
   contributes only the viewer, which must fill its grid column without retaining the edit page's
   internal split. */
.rbc-dynamic-cascade--viewer-only {
	display: block;
}

.rbc-dynamic-cascade--preview > .rbc-dynamic-cascade-question {
	flex: 0.8 1 260px;
}

.rbc-dynamic-cascade--preview > .rbc-dynamic-cascade-preview {
	flex: 1.4 1 420px;
}

.rbc-dynamic-cascade-question,
.rbc-dynamic-cascade-preview {
	min-width: 0;
}

.rbc-dynamic-cascade-question {
	display: flex;
	flex-direction: column;
	gap: var(--nu-space-4, 16px);
}

.rbc-dynamic-cascade-preview {
	min-height: 350px;
	overflow: hidden;
}

.rbc-orgscope-viewer-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--nu-space-2, 8px) var(--nu-space-3, 12px);
	min-width: 0;
}

.rbc-orgscope-viewer-hierarchy {
	flex: 0 1 15rem;
	width: min(100%, 15rem);
	min-width: 0;
}

.rbc-orgscope-viewer-toolbar > .rbc-orgtree-search {
	/* Keep both viewer controls compact. margin-left:auto preserves right alignment if a narrow
	   viewer wraps the search onto a second toolbar row. */
	flex: 0 1 15rem;
	width: min(100%, 15rem);
	margin: 0 0 0 auto;
}

.rbc-orgscope-builder {
	display: grid;
	grid-template-columns: minmax(420px, 1.7fr) minmax(260px, 1fr);
	gap: var(--nu-space-3, 12px);
	align-items: stretch;
	min-width: 0;
}

.rbc-orgscope-prompt {
	display: flex;
	align-items: flex-start;
	gap: var(--nu-space-2, 8px);
	padding: var(--nu-space-3, 12px);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-md, 8px);
	font-size: var(--nu-fs-small, 0.8125rem);
	line-height: var(--nu-lh-normal, 1.5);
	color: var(--nu-ink-2, #4a5f58);
}

.rbc-orgscope-prompt > .bi {
	flex: 0 0 auto;
	margin-top: 2px;
}

.rbc-orgscope-panel {
	display: flex;
	flex-direction: column;
	gap: var(--nu-space-3, 12px);
	min-width: 0;
	min-height: 350px;
	padding: var(--nu-space-3, 12px);
	background: var(--nu-bg-alt, #f5f4f0);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-md, 8px);
}

.rbc-orgscope-panel--invalid {
	border-color: var(--nu-tone-red-fg, #c0392b);
	box-shadow: 0 0 0 2px var(--nu-danger-focus-soft, rgba(192, 57, 43, 0.15));
}

.rbc-orgscope-panel-head {
	display: flex;
	align-items: flex-start;
	gap: var(--nu-space-2, 8px);
}

.rbc-orgscope-headbody {
	flex: 1;
	min-width: 0;
}

/* The tree's explanation and filter share the line immediately above the tree. The search keeps a
   compact fixed preference while the explanation gives first; a narrow tree pane wraps the search
   beneath it rather than compressing the input into an unusable sliver. */
.rbc-orgscope-subrow {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--nu-space-3, 12px);
	flex-wrap: wrap;
}

.rbc-orgscope-title {
	margin: 2px 0 0;
	font-size: var(--nu-fs-body, 0.9375rem);
	font-weight: var(--nu-fw-bold, 700);
	color: var(--nu-ink, #213b34);
}

.rbc-orgscope-help {
	flex: 1 1 18rem;
	margin: var(--nu-space-1, 4px) 0 0;
	font-size: var(--nu-fs-small, 0.8125rem);
	line-height: var(--nu-lh-snug, 1.3);
	color: var(--nu-ink-2, #4a5f58);
}

.rbc-orgtree-search {
	flex: 0 1 17rem;
	width: min(100%, 17rem);
	margin: var(--nu-space-1, 4px) 0 0;
}

.rbc-orgtree-search .rbc-input {
	box-sizing: border-box;
	min-height: 34px;
	padding-top: 5px;
	padding-bottom: 5px;
	font-size: var(--nu-fs-small, 0.8125rem);
}

/* RbcCombobox owns a field wrapper; inside this bounded panel the grid owns the spacing. */
.rbc-orgscope-panel > .rbc-field,
.rbc-orgscope-panel > .rbc-field > .rbc-field {
	margin-bottom: 0;
}

.rbc-orgscope-empty {
	display: flex;
	flex: 1;
	min-height: 180px;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: var(--nu-space-2, 8px);
	padding: var(--nu-space-4, 16px);
	text-align: center;
	font-size: var(--nu-fs-small, 0.8125rem);
	line-height: var(--nu-lh-normal, 1.5);
	color: var(--nu-ink-3, #7d8e88);
}

.rbc-orgscope-empty > .bi {
	font-size: 1.25rem;
}

.rbc-orgscope-empty--error,
.rbc-orgscope-empty--error > .bi {
	color: var(--nu-tone-red-fg, #c0392b);
}

.rbc-orgtree-scroll {
	flex: 1;
	min-height: 220px;
	max-height: 340px;
	overflow: auto;
	overscroll-behavior: contain;
	padding: var(--nu-space-1, 4px);
	background: var(--nu-surface, #fff);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-md, 8px);
}

.rbc-orgtree,
.rbc-orgtree-group {
	list-style: none;
	margin: 0;
	padding: 0;
}

.rbc-orgtree-group {
	position: relative;
	margin-left: 13px;
	padding-left: 14px;
	border-left: 1px solid var(--nu-border, #dfe5e1);
}

.rbc-orgtree-item {
	margin: 2px 0;
}

.rbc-orgtree-row {
	display: flex;
	align-items: center;
	gap: 2px;
	min-width: 0;
	border: 1px solid transparent;
	border-radius: var(--nu-radius-sm, 4px);
	color: var(--nu-ink, #213b34);
}

.rbc-orgtree-row:hover {
	background: var(--nu-hover-wash, rgba(33, 59, 52, 0.08));
}

.rbc-orgtree-row--included,
.rbc-orgtree-row--included:hover {
	background: var(--nu-tone-green-bg, #e8f2ec);
	border-color: var(--nu-tone-green-border, #cfe3d8);
	color: var(--nu-tone-green-fg, #1a7a3e);
}

.rbc-orgtree-row--selected,
.rbc-orgtree-row--selected:hover {
	background: var(--nu-accent-fill, #006325);
	border-color: var(--nu-accent, #006325);
	color: var(--nu-on-accent, #fff);
}

.rbc-orgtree-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 26px;
	width: 26px;
	height: 30px;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.rbc-orgtree-toggle--leaf {
	cursor: default;
}

.rbc-orgtree-toggle[aria-disabled="true"] {
	cursor: default;
}

.rbc-orgtree-toggle:focus-visible,
.rbc-orgtree-select:focus-visible {
	outline: 2px solid var(--nu-focus-ring, #7cc5eb);
	outline-offset: -2px;
}

.rbc-orgtree-select {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	column-gap: var(--nu-space-2, 8px);
	flex: 1;
	min-width: 0;
	padding: 6px 4px;
	border: 0;
	background: transparent;
	color: inherit;
	text-align: left;
	cursor: pointer;
}

.rbc-orgtree-select--readonly {
	cursor: default;
}

.rbc-orgtree-row--readonly:not(.rbc-orgtree-row--selected):not(.rbc-orgtree-row--included):hover {
	background: transparent;
}

.rbc-orgtree-name {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: var(--nu-fs-small, 0.8125rem);
	font-weight: var(--nu-fw-semibold, 600);
}

.rbc-orgtree-canonical {
	grid-column: 1 / -1;
	font-size: var(--nu-fs-tiny, 0.6875rem);
	color: var(--nu-ink-3, #7d8e88);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rbc-orgtree-id {
	font-size: var(--nu-fs-tiny, 0.6875rem);
	color: var(--nu-ink-3, #7d8e88);
}

.rbc-orgtree-row--selected .rbc-orgtree-canonical,
.rbc-orgtree-row--selected .rbc-orgtree-id {
	color: var(--nu-on-accent-muted, rgba(255, 255, 255, 0.85));
}

.rbc-orgtree-row--included .rbc-orgtree-canonical,
.rbc-orgtree-row--included .rbc-orgtree-id {
	color: inherit;
	opacity: 0.8;
}

.rbc-orgtree-state {
	flex: 0 0 auto;
	margin-right: var(--nu-space-2, 8px);
}

.rbc-orgtree-no-results {
	display: flex;
	min-height: 100%;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: var(--nu-space-2, 8px);
	padding: var(--nu-space-4, 16px);
	text-align: center;
	font-size: var(--nu-fs-small, 0.8125rem);
	color: var(--nu-ink-3, #7d8e88);
}

.rbc-orgtree-legend {
	display: flex;
	flex-wrap: wrap;
	gap: var(--nu-space-2, 8px) var(--nu-space-3, 12px);
	font-size: var(--nu-fs-tiny, 0.6875rem);
	color: var(--nu-ink-2, #4a5f58);
}

.rbc-orgtree-legend > span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.rbc-orgtree-swatch {
	width: 10px;
	height: 10px;
	border: 1px solid transparent;
	border-radius: 2px;
}

.rbc-orgtree-swatch--selected {
	background: var(--nu-accent-fill, #006325);
	border-color: var(--nu-accent, #006325);
}

.rbc-orgtree-swatch--included {
	background: var(--nu-tone-green-bg, #e8f2ec);
	border-color: var(--nu-tone-green-border, #cfe3d8);
}

/* Respond to the wizard card rather than the browser viewport: the 300px summary rail changes how
   much of that viewport the card actually receives. The two panes retain their order and become
   full-width only when their card cannot give the tree a useful working area. */
@container request-wizard (max-width: 720px) {
	.rbc-orgscope-builder {
		grid-template-columns: 1fr;
	}

	.rbc-orgscope-panel {
		min-height: 0;
	}
}

/* Step 3 stacks its questions with generous breathing room between them, and a little more
   space above the first question so it sits clear of the step caption. */
.rbc-step-details {
	display: flex;
	flex-direction: column;
	gap: var(--nu-space-5, 24px);
	padding-top: var(--nu-space-4, 16px);
}

/* Scope steps grow naturally. Do not put overflow on this ancestor: Assignment Scope is a
   searchable combobox whose popover is absolutely positioned, and any clipping/scrolling ancestor
   changes its placement bounds. The hierarchy tree below is the only element that needs a bounded
   viewport, supplied by the shared organization-tree rules. */
.rbc-step-details--scope {
	flex: 0 0 auto;
	min-height: auto;
}

/* Every organization-limited assignment scope editor uses this one split. Decisions remain in a
   predictable reading order in the left column; the placeholder or live hierarchy remains in the
   right column. Global keeps the same left-column width but omits the hierarchy column's content.
   minmax(0, ...) on both columns is important: long organization names and the tree's intrinsic
   width may shrink inside the card instead of forcing the card beyond its container. */
.rbc-wizard-scope-workspace,
.rbc-assignment-scope-workspace {
	display: grid;
	grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.4fr);
	gap: var(--nu-space-5, 24px);
	align-items: start;
	min-width: 0;
}

.rbc-wizard-scope-controls,
.rbc-assignment-scope-controls {
	display: flex;
	flex-direction: column;
	gap: var(--nu-space-5, 24px);
	min-width: 0;
}

.rbc-wizard-scope-controls > .rbc-field,
.rbc-wizard-scope-controls > .rbc-field > .rbc-field,
.rbc-wizard-scope-controls > .rbc-field > .rbc-field > .rbc-combo,
.rbc-assignment-scope-controls > .rbc-field,
.rbc-assignment-scope-controls > .rbc-field > .rbc-field,
.rbc-assignment-scope-controls > .rbc-field > .rbc-field > .rbc-combo {
	margin-bottom: 0;
}

/* Give the cascade question clear separation from the Assignment Scope control — 88px with the
   column's gap — without adding empty height when Global is selected and no question is rendered. */
.rbc-scope-lead-picker + .rbc-dynamic-cascade-question {
	margin-top: var(--nu-space-8, 64px);
}

.rbc-wizard-scope-viewer,
.rbc-assignment-scope-viewer {
	min-width: 0;
}

/* The edit form has its own aside, so its scope area needs a container boundary of its own rather
   than borrowing the request-wizard card's measurement. */
.rbc-assignment-edit-scope {
	container-name: assignment-scope;
	container-type: inline-size;
}

/* The Assignment Scope picker and its options guide, which appears beside it once a scope is
   chosen. Aligned to the bottom so the icon centres on the 40px trigger rather than on the label
   above it; the combobox's own field gives up its margin because the lead picker owns the gap. */
.rbc-scope-picker-row {
	display: flex;
	align-items: flex-end;
	gap: var(--nu-space-2, 8px);
	min-width: 0;
}

.rbc-scope-picker-row > .rbc-field {
	flex: 1 1 auto;
	min-width: 0;
	margin-bottom: 0;
}

.rbc-scope-picker-row > .rbc-infopop-wrap {
	height: 40px;
}

/* Stands in the hierarchy column until a scope is chosen. A card, not a banner: it is reference
   for a decision still to be made, not a notice about one already made. The grey of the
   hierarchy panel that replaces it, with a .rbc-card-title heading, so it reads as part of the
   form rather than as an alert; the options sit on it as white tiles. No shadow: it already sits
   inside the form's card, and the hierarchy panel is flat too. */
.rbc-scopeguide-card {
	display: flex;
	flex-direction: column;
	gap: var(--nu-space-4, 16px);
	padding: var(--nu-space-5, 24px);
	background: var(--nu-bg-alt, #f5f4f0);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-lg, 14px);
}

.rbc-scopeguide-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: var(--nu-fs-h4, 1rem);
	font-weight: var(--nu-fw-semibold, 600);
	color: var(--nu-ink, #213b34);
}

.rbc-scopeguide-title > .bi {
	color: var(--nu-accent, #006325);
}

.rbc-scopeguide-intro {
	margin: var(--nu-space-1, 4px) 0 0;
	font-size: var(--nu-fs-small, 0.8125rem);
	line-height: var(--nu-lh-normal, 1.5);
	color: var(--nu-ink-2, #4a5f58);
}

/* Shared by the card and the popover; the popover's are spans, so each level is made a block here. */
.rbc-scopeguide-list {
	display: flex;
	flex-direction: column;
	gap: var(--nu-space-2, 8px);
}

.rbc-scopeguide-item {
	display: flex;
	align-items: flex-start;
	gap: var(--nu-space-3, 12px);
}

/* The option's mark on a neutral tile. Accent ink rather than a tone fill: the tone colours name
   scopes and kinds on the pills, and these four are not those. */
.rbc-scopeguide-icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: var(--nu-radius-md, 8px);
	background: var(--nu-bg-alt, #f5f4f0);
	color: var(--nu-accent, #006325);
	font-size: 0.875rem;
}

.rbc-scopeguide-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.rbc-scopeguide-name {
	font-weight: var(--nu-fw-semibold, 600);
	color: var(--nu-ink, #213b34);
}

.rbc-scopeguide-desc {
	font-size: var(--nu-fs-small, 0.8125rem);
	line-height: var(--nu-lh-normal, 1.5);
	color: var(--nu-ink-2, #4a5f58);
}

/* The resolved organization after a Location or Company name, as the picker row shows it. */
.rbc-scopeguide-note {
	margin-left: 4px;
	font-weight: var(--nu-fw-regular, 400);
	color: var(--nu-ink-3, #7d8e88);
}

/* In the card each option is a white, bordered tile that chooses it. The popover keeps the bare
   list: it is already a raised panel, and read-only. */
.rbc-scopeguide-card .rbc-scopeguide-icon {
	width: 36px;
	height: 36px;
	font-size: 1.05rem;
}

.rbc-scopeguide-card .rbc-scopeguide-name {
	font-size: var(--nu-fs-body, 0.9375rem);
}

/* A <button>, so the browser's own font, colour, width and alignment are reset to the tile's. The
   hover is the dashboard's clickable-card lift (.rbc-nextstep) — the app's one way of
   saying a whole card is a control. */
.rbc-scopeguide-item--choice {
	align-items: center;
	width: 100%;
	padding: var(--nu-space-3, 12px);
	background: var(--nu-surface, #fff);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-md, 8px);
	font: inherit;
	color: inherit;
	text-align: left;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rbc-scopeguide-item--choice:hover {
	transform: translateY(-2px);
	box-shadow: var(--nu-shadow-md, 0 4px 12px rgba(33, 59, 52, 0.1));
}

.rbc-scopeguide-item--choice:focus-visible {
	outline: 2px solid var(--nu-accent, #006325);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.rbc-scopeguide-item--choice {
		transition: none;
	}

	.rbc-scopeguide-item--choice:hover {
		transform: none;
	}
}

/* The summary rail can leave the wizard card narrower than the viewport suggests, so stack from
   the card's measured width. The hierarchy remains a complete card below the controls. */
@container request-wizard (max-width: 720px) {
	.rbc-wizard-scope-workspace {
		grid-template-columns: minmax(0, 1fr);
	}
}

@container assignment-scope (max-width: 720px) {
	.rbc-assignment-scope-workspace {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Role Assignment Edit retains the compact lead row. The wizards use the workspace above so their
   controls remain a single vertical sequence beside the hierarchy. */
.rbc-scope-lead-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--nu-space-5, 24px);
	align-items: start;
}

.rbc-scope-lead-row--with-picker {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.rbc-scope-lead-row > .rbc-field,
.rbc-scope-lead-picker > .rbc-field,
.rbc-scope-lead-picker > .rbc-field > .rbc-combo {
	margin-bottom: 0;
}

.rbc-step-details > .rbc-field {
	margin-bottom: 0;
}

/* Same reason as the rule above: .rbc-step-details is a flex column with its own 24px gap, so a
   child's own margin-bottom is a second helping of it — the admin-role question in Copy
   Permissions sat ~48px clear of the fields under it. Copy Permissions is the only wizard that
   nests a .rbc-section here; the selector is scoped so it stays that way. */
.rbc-step-details > .rbc-section {
	margin-bottom: 0;
}

/* A little extra breathing room around the toggle rows (e.g. Is Exclusion), which read tighter
   than the labelled fields on either side. */
.rbc-step-details > .rbc-toggle-stack {
	margin-top: var(--nu-space-2, 8px);
	margin-bottom: var(--nu-space-2, 8px);
}

/* Grant step 3 only (Create has no date row). The date row sits directly under the scope question,
   so give it the same top spacing the exclusion toggle gets on Create — "under the scope question"
   then matches across both wizards. The negative bottom margin trims the extra space the end-date
   help text adds below the row. */
.rbc-step-details > .rbc-field-row {
	margin-top: var(--nu-space-2, 8px);
	margin-bottom: calc(-1 * var(--nu-space-3, 12px));
}

/* The date fields sit inside the row, so the step-level margin reset above doesn't reach them;
   drop their bottom margin so the end-date help text doesn't pad space beneath the row. */
.rbc-step-details > .rbc-field-row > .rbc-field {
	margin-bottom: 0;
}

/* ---- Step 2 of the request wizard: filters beside a searchable role list ---- */
.rbc-rolepick {
	display: grid;
	grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
	gap: var(--nu-space-4, 16px);
	margin-top: var(--nu-space-4, 16px);
	flex: 1;
	min-height: 0;
}

/* The Administration overview's variant: the wizards' filters + list, plus a detail pane for the
   selected role. The list keeps the middle and gives up width rather than the filters or the pane,
   because a role row's own text (name, parent, tags) wraps gracefully and the two columns beside
   it do not — the filters hold comboboxes with fixed labels, and the pane holds buttons. */
.rbc-rolepick--detail {
	grid-template-columns: minmax(240px, 300px) minmax(0, 1fr) minmax(300px, 380px);
	/* The base margin is for the wizards, where the picker follows a step title inside a card.
	   Here it follows the page's own flex gap, and adding to it just doubles the space. */
	margin-top: 0;
}

/* Create Role's picker variants. Both are the wizards' filters+list grid with a third column for
   what has been chosen, because these two steps are multi-select: a role's operations and its
   conflicting roles are sets, and a set being built needs somewhere to read it back. Without that
   column the only record of a choice is a checkmark somewhere in a list of two hundred rows.
   --transfer keeps the filter panel; --transfer-nofilter drops it, for the case where the scope
   already narrows the list to one application's operations and there is nothing left to filter by. */
.rbc-rolepick--transfer {
	grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) minmax(260px, 340px);
}

.rbc-rolepick--transfer-nofilter {
	grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
}

@media (max-width: 1100px) {
	.rbc-rolepick--transfer,
	.rbc-rolepick--transfer-nofilter {
		grid-template-columns: 1fr;
	}
}

/* The chosen column. Same flex-column shape as .rbc-rolepick-list so its header stays put and only
   the rows scroll. */
.rbc-pickpane {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
	background: var(--nu-bg-alt, #f5f4f0);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-lg, 14px);
	padding: var(--nu-space-3, 12px);
}

.rbc-pickpane-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--nu-space-2, 8px);
	margin-bottom: var(--nu-space-2, 8px);
}

.rbc-pickpane-title {
	font-size: var(--nu-fs-body, 0.9375rem);
	font-weight: var(--nu-fw-semibold, 600);
	color: var(--nu-ink, #213b34);
}

.rbc-pickpane-list {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1;
	min-height: 0;
	overflow-y: auto;
}

/* ---- Associated Entra apps (Applications Create / Edit / Details) ----
   .rbc-pickpane-list is built to fill a sized flex pane — `flex: 1; min-height: 0` — which is
   what the Roles pickers give it. These three pages use it in ordinary page flow, where there is
   nothing to fill, so the height has to be bounded here instead. A modifier rather than a cap on
   the base class: adding max-height there would shrink those pickers. */
.rbc-entraapps-help {
	margin-bottom: var(--nu-space-3, 12px);
}

.rbc-entraapps-list {
	max-height: 340px;
}

/* EntraAppPicker's two panes: the directory search on the left, what has been chosen on the
   right. Both hold rows of the same three lines (name, app id, object id), the last of which is a
   GUID and sets the width either pane needs.

   The panes themselves are .rbc-pickpane, the wizards' chosen-column: a tinted card behind white
   .rbc-picked rows. Both panes take it rather than the left one staying plain, because here the
   two are peers and a plain-beside-tinted pair reads as one belonging to the other.

   Flex with `flex-wrap`, not a grid, because what decides whether there is room here is the
   *container*, not the viewport — and grid tracks do not wrap, so a two-track grid would overflow
   a narrow container instead of stacking in it. This picker renders inside the create/edit form
   column, which is the page minus the sidebar, minus the 320px help rail; the rail then drops away
   below 1024px, so that column is *wider* at a 1000px viewport than at 1100px. A viewport
   breakpoint therefore cannot express "two panes fit" — it would have to stack at a width where
   the column is roomy and keep two columns where it is not. Wrapping asks the only question that
   matters, do both panes' minimums plus the gap fit, and answers it against the container, which
   also makes it right in the dialog without a second rule. */
.rbc-entrapick {
	display: flex;
	flex-wrap: wrap;
	gap: var(--nu-space-4, 16px);
	align-items: flex-start;
}

/* 60/40 rather than half each. Every row on the search side carries an Associate button, or the
   "Associated" indicator that replaces it, and that control costs the row ~100px the chosen side
   spends on nothing but a small ×. Split evenly, the search rows wrapped their object id where the
   chosen pane had width to spare.

   Expressed as grow ratios against a **zero basis**, not as `flex: 1 1 62%`, and that is not a
   style preference: a flex line is broken on each item's *hypothetical* main size — its basis
   clamped by min/max — and shrinking happens only afterwards, within a line. Percentage bases
   summing to 100% therefore exceed the container by the width of the gap and wrap **every time**,
   at any width. Measured: 62% + 38% + 16px put the chosen pane on its own line in a 1230px
   container. With a zero basis the hypothetical sizes are the two minimums, which is what makes
   the wrap mean "there is genuinely no room".

   Those minimums are floored by a row's object id: a GUID at 13px monospace measures ~250px, so
   300px leaves it a line beside the Associate button and 260px leaves it one beside the ×. Below
   their sum plus the gap the chosen pane drops to its own full-width line.

   60, not the 66 this started at: measured in the dialog, 66 left the chosen pane 423px, which
   reads as an afterthought beside the search results rather than the other half of a transfer.
   At 60 it measures 491px, and that is the number that matters — it is the first width at which a
   chosen row's object id (279px) sits on one line beside its ×, so the pane stops looking cramped
   rather than merely being wider.

   The two surfaces differ, and only the dialog clears that bar: the create/edit form column gives
   the picker 750px, so the chosen pane takes 299px there and its ids wrap to two lines. That is
   inherent to the column's width rather than to this ratio — the alternative is taking width off
   the search side, which carries the Associate button. Re-measure rather than re-deriving if a row
   gains a line. */
.rbc-entrapick-search {
	flex: 60 1 0;
	min-width: 300px;
}

.rbc-entrapick-chosen {
	flex: 40 1 0;
	min-width: 260px;
}

/* An object id is the whole point of these lines, and .rbc-picked-sub ellipsises — which in a
   pane this wide cuts a GUID mid-identifier, beside an Associate button that costs the row another
   100px. An id you cannot read is not an id: it cannot be compared against what is on another
   screen, which is the only reason it is printed. So wrap here instead, and break inside the
   value, since a GUID has no spaces to break at. Costs a line on narrow panes and nothing on
   wide ones. Scoped to this picker: the class is shared with the wizards' chosen rows, whose
   subs are short names that should stay on one line. */
.rbc-entrapick .rbc-picked-sub {
	white-space: normal;
	overflow-wrap: anywhere;
}

/* Applications Details' associated-app rows: three columns — the app's name, its two ids stacked,
   and who associated it. The picker's rows stack all of that in one column, which is right there
   and wrong here: those share their width with an Associate button, while this card is a read
   surface with the whole row to spend, and in one column the name was set at the same 13px as the
   ids under it and the provenance was a fourth sub line.

   A modifier on .rbc-picked rather than a row of its own — the white card, border, radius and
   padding are the same, and only the inside differs. .rbc-picked already centres its items, which
   is what puts the one-line name on the centre line of the two-line ids column beside it. */
.rbc-picked--entradetail {
	flex-wrap: wrap;
	gap: var(--nu-space-2, 8px) var(--nu-space-4, 16px);
}

/* Zero-basis grow ratios, for the reason spelled out on .rbc-entrapick-search: a flex line is
   broken on each item's hypothetical size, so percentage bases plus a gap wrap at every width.

   Every number here is measured at the sizes these lines actually render at, not estimated. In
   12px Arial an "Object ID: {guid}" line is **279px** and an "App ID: {guid}" line 260px; a
   an "Added by {upn}" line is shorter than either id line but still varies with the actor. Two
   consequences:

   - The **ratios** are set so the ids column clears 279px in the detail column at a 1440 viewport
     (724px inside the card, 692px after the gaps), which is where both id lines sit on one line
     each. 40% left it 2px short and wrapped the object id — hence 42.
   - The **minimums** are set below those widths, not at them, and deliberately: their sum plus
     the gaps is what decides whether the third column drops to its own line, and at a 1280
     viewport the detail column leaves only 566px. Floored at the comfortable widths the sum came
     to 667px and forced the provenance column underneath on every row. So the ids column gives
     up a line at that width instead — a wrapped GUID breaks at a hyphen and stays readable, where
     a dropped column stops being a column. */
.rbc-entracard-name {
	flex: 32 1 0;
	min-width: 120px;
	font-size: var(--nu-fs-body, 0.9375rem);
	font-weight: var(--nu-fw-bold, 700);
	color: var(--nu-ink, #213b34);
}

.rbc-entracard-ids {
	flex: 42 1 0;
	min-width: 235px;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

/* A GUID has nothing to break at, so break anywhere rather than ellipsise — an object id cut
   short cannot be compared against the one on another screen, which is the only reason it is
   printed. Same call as the picker's, and the same reason. */
.rbc-entracard-ids .rbc-picked-sub {
	white-space: normal;
	overflow-wrap: anywhere;
}

/* `break-word`, not the `anywhere` the ids get: a UPN should break after "Added by" and only
   split inside the address if the address alone will not fit, where `anywhere` took the first
   opportunity and left "…@nucor.co" above a lone "m". A GUID has no such preferred break, which
   is why the two differ. */
.rbc-entracard-by {
	flex: 26 1 0;
	min-width: 160px;
	font-size: var(--nu-fs-tiny, 0.75rem);
	color: var(--nu-ink-3, #7d8e88);
	overflow-wrap: break-word;
}

/* Details' filter box, which appears only once there is more than one row to filter. */
.rbc-entraapps-filter {
	margin-bottom: var(--nu-space-3, 12px);
}

/* Where the search's spinner and its results land, holding its own height so the section below
   does not jump as one replaces the other. 36px is the inline loader's — a small
   FeProgressCircle in .rbc-loading--inline — so **re-measure it if that loader changes**; a
   reservation is pinned to what it was measured against. */
.rbc-entraapps-slot {
	min-height: 36px;
}

.rbc-pickpane-empty {
	font-size: var(--nu-fs-small, 0.8125rem);
	color: var(--nu-ink-3, #7d8e88);
	padding: var(--nu-space-3, 12px) 0;
}

.rbc-picked {
	display: flex;
	align-items: center;
	gap: var(--nu-space-2, 8px);
	background: var(--nu-surface, #fff);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-md, 8px);
	padding: 6px 8px;
}

.rbc-picked-body {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1;
}

.rbc-picked-name {
	font-size: var(--nu-fs-small, 0.8125rem);
	font-weight: var(--nu-fw-semibold, 600);
	color: var(--nu-ink, #213b34);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rbc-picked-sub {
	font-size: var(--nu-fs-tiny, 0.75rem);
	color: var(--nu-ink-3, #7d8e88);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rbc-picked-x {
	flex: none;
	border: 0;
	background: none;
	padding: 2px;
	line-height: 1;
	color: var(--nu-ink-3, #7d8e88);
	cursor: pointer;
	border-radius: var(--nu-radius-sm, 4px);
}

.rbc-picked-x:hover {
	color: var(--nu-danger, #b3261e);
}

.rbc-picked-x:focus-visible {
	outline: 2px solid var(--nu-accent, #006325);
	outline-offset: 1px;
}

/* The available list's rows are toggles here, not a pick-one — so a chosen row keeps a check on
   the right the way the catalog's already-assigned marker does, rather than only a fill. */
.rbc-rolepick-row .rbc-pick-check {
	color: var(--nu-accent, #006325);
	font-size: 1rem;
	flex: none;
}

@media (max-width: 860px) {
	.rbc-rolepick {
		grid-template-columns: 1fr;
	}
}

/* ===== Administration overview — the scope list =====
   One card per product or application, with that scope's administration roles inside it. The list
   used to be one row per role, which put Administrator / Architect / Developer down the page over
   and over with the only changing part — the scope — buried in a subline; a reader scanning for
   "Payroll" was reading the least prominent thing on every row. */
/* Tighter than the 12px this started at. The cards are bordered, so they separate on their own;
   12px of air on top of that made a list of four scopes read as four unrelated panels rather than
   one list. Still a gap, deliberately — at zero the borders would meet and read as one table. */
.rbc-admgroups {
	display: flex;
	flex-direction: column;
	gap: var(--nu-space-2, 8px);
}

.rbc-admgroup {
	background: var(--nu-surface, #fff);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-md, 8px);
	padding: var(--nu-space-3, 12px) var(--nu-space-4, 16px) var(--nu-space-4, 16px);
}

/* The scope's own line: icon, name, id, and the "you administer this" pill where it applies.
   Wraps rather than clipping — a long application name is the thing the reader came to find. */
.rbc-admgroup-head {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--nu-space-2, 8px);
	margin-bottom: var(--nu-space-3, 12px);
}

/* Green, not the muted ink icons default to here: this one is the tier marker — a box for a
   product, layers for an application — so it is carrying a fact rather than decorating the name,
   and at the head of every card in the list it is what the eye lands on first. --nu-green is the
   icon green used elsewhere (.rbc-ops-item .bi, .rbc-req-grant .bi); a glyph has enough mass to
   read as green at the signature weight, unlike the 1px rule that once sat under this header. */
.rbc-admgroup-icon {
	flex: none;
	color: var(--nu-accent, #006325);
}

.rbc-admgroup-name {
	font-size: var(--nu-fs-body, 0.9375rem);
	font-weight: var(--nu-fw-semibold, 600);
	color: var(--nu-ink, #213b34);
}

.rbc-admgroup-id {
	font-size: var(--nu-fs-small, 0.8125rem);
	color: var(--nu-ink-3, #7d8e88);
}

/* The scope's roles, side by side. auto-fit rather than a fixed column count because a product
   carries three and an application two, and both should fill the row they are given rather than
   leaving a gap where a third would have been. */
.rbc-admroles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	/* Wider than the 8px this started at, to leave the cards' shadow somewhere to fall — at 8px
	   two shadows met in the middle and read as one grey seam rather than two raised cards. */
	gap: var(--nu-space-3, 12px);
}

/* One selectable role. A button, not a div with a click handler: Enter and Space, focus and the
   pressed state all come for free, which is what the old row had to hand-roll with role="button",
   tabindex and a keydown handler. */
.rbc-admrole {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	padding: var(--nu-space-3, 12px);
	/* White on the group card's own white, told apart by the border and a shadow rather than a
	   tint — the tint version read as a well pressed into the card instead of a card sitting on
	   it, which is the wrong signal for something you pick. */
	background: var(--nu-surface, #fff);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-md, 8px);
	box-shadow: var(--nu-shadow-sm, 0 1px 3px rgba(33, 59, 52, 0.1));
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

/* Already assigned to the reader. The brand's soft green (Pantone 344) rather than the signature
   one, deliberately: the full green is the *selected* border two rules down, and a role you hold
   is a standing fact about you while selection is what you are looking at right now — the same
   colour for both would make a list of held roles look like several selections at once.

   Placed above :hover so hovering a held card still takes the full green; :hover and this are the
   same specificity, so it is source order that decides. .is-selected sits below both and wins
   over either. */
.rbc-admrole.is-held {
	border-color: var(--nu-tone-green-border, #a1cead);
}

.rbc-admrole:hover {
	border-color: var(--nu-accent, #006325);
	box-shadow: var(--nu-shadow-md, 0 4px 12px rgba(33, 59, 52, 0.1));
}

.rbc-admrole:focus-visible {
	outline: 2px solid var(--nu-accent, #006325);
	outline-offset: 2px;
}

/* Selected: the green tint and border the role rows used, so the state reads the same as it did
   before the list changed shape. Room reserved on the right for the check in every state, so
   selecting one does not reflow the text inside it. */
.rbc-admrole {
	padding-right: var(--nu-space-6, 32px);
}

.rbc-admrole.is-selected {
	background: var(--nu-bg-tint, #eef5f0);
	border-color: var(--nu-accent, #006325);
}

/* Name and id on one line, the id trailing it in muted ink. Baseline-aligned rather than centred
   so the two sit on the same line of text despite the size difference, and wrapping allowed so a
   two-line role name takes the id with it rather than pushing it under the card's right edge —
   where the selection check lives. */
.rbc-admrole-head {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 6px;
}

.rbc-admrole-name {
	font-size: var(--nu-fs-small, 0.8125rem);
	font-weight: var(--nu-fw-semibold, 600);
	color: var(--nu-ink, #213b34);
}

.rbc-admrole-id {
	font-size: var(--nu-fs-eyebrow, 0.75rem);
	font-weight: var(--nu-fw-regular, 400);
	color: var(--nu-ink-3, #7d8e88);
}

/* "Assigned to you" inside a role card, where .rbc-req-assigned's body-size bold would out-shout
   the role name above it — same green, one step down. */
.rbc-admrole-held {
	margin-top: 2px;
	font-size: var(--nu-fs-eyebrow, 0.75rem);
	font-weight: var(--nu-fw-semibold, 600);
	color: var(--nu-accent, #006325);
}

.rbc-admrole-check {
	position: absolute;
	top: var(--nu-space-2, 8px);
	right: var(--nu-space-2, 8px);
	color: var(--nu-accent, #006325);
	font-size: 1rem;
}

/* ===== Administration overview — the right-hand column =====
   The third grid item, holding the detail pane and — where the reader administers the selected
   scope — the "why you can administer this" card under it. The *column* is what sticks, not the
   cards: two sticky siblings would each pin themselves to the same offset and overlap. The role
   list beside it is as long as ReBAC has products, and scrolling to row forty while losing the
   buttons for the row you picked would be the whole point of the pane undone. */
.rbc-admcol {
	align-self: start;
	position: sticky;
	top: calc(var(--nu-topbar-h, 60px) + var(--nu-space-4, 16px));
	display: flex;
	flex-direction: column;
	gap: var(--nu-space-4, 16px);
	min-width: 0;
	/* Caps itself and scrolls, like .rbc-copy-rail — a sticky column taller than the space above
	   the fold pins its top and leaves its own bottom unreachable. Released again where the
	   layout stacks; see the media query. */
	max-height: calc(100vh - var(--nu-topbar-h, 60px) - var(--nu-space-6, 32px));
	overflow-y: auto;
}

/* A card in its own right rather than a bare column: it is the one place on the page that acts,
   so it carries the surface the actions sit on. */
.rbc-admdetail {
	display: flex;
	flex-direction: column;
	gap: var(--nu-space-3, 12px);
	background: var(--nu-surface, #fff);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-lg, 14px);
	box-shadow: var(--nu-shadow-sm, 0 1px 3px rgba(33, 59, 52, 0.1));
	padding: var(--nu-space-4, 16px);
}

/* Nothing selected yet. Says what to do rather than sitting blank — an empty panel beside a full
   list reads as something that failed to load. */
.rbc-admdetail-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--nu-space-2, 8px);
	min-height: 180px;
	color: var(--nu-ink-3, #7d8e88);
	text-align: center;
}

.rbc-admdetail-empty .bi {
	font-size: 1.6rem;
}

.rbc-admdetail-empty p {
	margin: 0;
	font-size: var(--nu-fs-small, 0.8125rem);
	line-height: var(--nu-lh-normal, 1.5);
}

.rbc-admdetail-head {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.rbc-admdetail-name {
	font-size: var(--nu-fs-h4, 1rem);
	font-weight: var(--nu-fw-semibold, 600);
	color: var(--nu-ink, #213b34);
	line-height: var(--nu-lh-snug, 1.3);
}

.rbc-admdetail-scope {
	font-size: var(--nu-fs-small, 0.8125rem);
	color: var(--nu-ink-3, #7d8e88);
}

/* What the role means, in words. Prose, so it wraps where the scope line above it would clip. */
.rbc-admdetail-summary {
	margin: 0;
	font-size: var(--nu-fs-small, 0.8125rem);
	line-height: var(--nu-lh-normal, 1.5);
	color: var(--nu-ink-2, #4a5f58);
}

/* Every operation the role carries, one per line. A list rather than the wizards' chip row: chips
   wrap into a block that is hard to count, and this pane exists to be read rather than glanced at
   on the way through a form. Scrolls rather than growing without bound — an application
   administrator can carry a lot of them. */
.rbc-admdetail-ops {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
	max-height: 15rem;
	overflow-y: auto;
}

.rbc-admdetail-ops li {
	display: flex;
	align-items: baseline;
	gap: var(--nu-space-2, 8px);
	font-size: var(--nu-fs-small, 0.8125rem);
	color: var(--nu-ink-2, #4a5f58);
}

.rbc-admdetail-ops .bi {
	flex: none;
	color: var(--nu-ink-3, #7d8e88);
}

/* The pane's actions. Wraps rather than shrinking: both labels are whole phrases, and a squeezed
   button wraps its own text to two lines instead. */
/* The pane's actions, stacked and the same width as each other. A grid with a single max-content
   column rather than a flex row: the column takes the width of the wider label and both buttons
   stretch to it, so "Grant" and "Request" match without either being padded out to a fixed size
   or stretched to the pane's full width — which would leave the horizontal padding doing nothing.
   justify-content centres that column over the view link below.

   They stacked under flex-wrap anyway at the column's own 380px; making it explicit costs the
   side-by-side arrangement nothing real and buys the equal width. */
.rbc-admdetail-actions {
	display: grid;
	grid-template-columns: max-content;
	justify-content: center;
	gap: var(--nu-space-2, 8px);
	margin-top: var(--nu-space-2, 8px);
}

/* Resizing an Iron FeButton takes DIRECT declarations, not its custom properties. This looked
   like the opposite: .fe-button reads --fe-button-padding-*, --fe-button-font-size and friends,
   and the plain size classes (.fe-button-sm etc.) do nothing but set them. At 2.12.6 FeButton
   emits Bootstrap co-classes too (btn, btn-{color}, btn-{size}) and the bundle declares
   .btn-sm,.fe-button-sm as one rule, so an emitted class does set those variables — it just
   loses: the composed *variant and size* class, .fe-button-filled-size-sm /
   .fe-button-outlined-size-sm, sets font-size and padding outright and sits later in the bundle:

       .fe-button-filled-size-sm   { font-size:.8125rem; padding:var(--fe-spacing-1) var(--fe-spacing-2) }
       .fe-button-outlined-size-sm { font-size:.8125rem; padding:calc(var(--fe-spacing-1) - 1px) ... }

   A declaration beats a variable the declaration never reads, so setting --fe-button-padding-y
   here changed nothing at all. Two classes against their one is what actually wins.

   This is the second time Iron has re-declared a property it also exposes as a variable — the
   radius was the first — so treat the variables as unreliable for this component and set what you
   mean. And when checking a change like this against a static repro, take the class list from the
   rendered DOM rather than from the CSS bundle: a repro built on `fe-button-sm` will happily show
   a change the real app does not. Get the real list by decompiling the component's BuildRenderTree
   (`ilspycmd -t Nucor.Iron.UI.FeButton`), not by scraping literals out of the assembly — the names
   are composed at runtime from fragments.

   FeSize.Small lands at a 13px label in a tight box, which is right for a row action and too small
   for the two things this pane exists to offer — these are the page's primary actions, so they
   take a heading's size and a generous box. The pair stacks and shares one width — see
   .rbc-admdetail-actions above for how, and why it is the wider label's width rather than the
   pane's.

   The radius is the app's button radius, not the pill this once wore to match .rbc-action-btn in
   the header above. The header's tabs were the wrong thing to match: Grant administration access
   is also offered by AdministerAccessCard on the Product and Application Details rails, where it
   is a squared .rbc-quicklink--cta, so the pill made one action two shapes. A shape that follows
   the action beats one that follows the page it happens to sit on — and .rbc-action-btn stays a
   pill because what it means is "opens or filters something", which neither of these does.

   They carry their marks — bi-person-plus and bi-send, the ones their own dialogs use and that
   ride the same two actions on the scope page and the access card. This rule said the opposite for
   a while, against the page, which explains the pane's plain-text view link in the same terms:
   two marked actions to take, one unmarked thing to check. A mark does widen the pill, and both
   stay equal at the wider label's width, so check this pane after changing either label. */
.rbc-admdetail-actions .fe-button {
	/* A step down from the heading size these briefly took, which overshot. The padding comes down
	   with it rather than staying put, so the box keeps the same generous ratio to its label —
	   roughly 1.8x the font size across and 0.75x down — which is the part that reads as
	   deliberate rather than the absolute numbers. */
	padding: 0.625rem 1.5rem;
	font-size: var(--nu-fs-small, 0.8125rem);
	font-weight: var(--nu-fw-semibold, 600);
	line-height: var(--nu-lh-snug, 1.3);
	border-radius: var(--nu-radius-md, 8px);
}

.rbc-admdetail-actions .fe-button-filled {
	border: 1px solid transparent;
}

/* The "why you can administer this" card. Same surface as the pane above it — it is a second
   answer about the same selection, not a lesser one — but its heading takes the icon inline,
   since "why" needs a mark to separate it from the role name directly above. */
.rbc-admwhy .rbc-admdetail-name {
	display: flex;
	align-items: center;
	gap: var(--nu-space-2, 8px);
}

.rbc-admwhy .rbc-admdetail-name .bi {
	color: var(--nu-tone-green-fg, #1a7a3e);
}

/* No scroll cap here, unlike the operations list this borrows: a reader holds one or two
   administration roles on a scope, never the dozen operations a role carries. */
.rbc-admwhy .rbc-admdetail-ops {
	max-height: none;
}

/* The card's closing line: what the reader may actually *do* on this scope, as against why they
   may. Flex with a baseline alignment so a sentence that wraps hangs off the icon instead of
   centring against it, and the icon holds the first line rather than the text running under it. */
.rbc-admwhy-can {
	display: flex;
	align-items: baseline;
	gap: var(--nu-space-2, 8px);
}

.rbc-admwhy-can .bi {
	flex: none;
	color: var(--nu-ink-3, #7d8e88);
}

/* Green only on the affirmative. Keyed on the icon the markup already picks rather than a second
   modifier class, so the tone cannot disagree with the shape. */
.rbc-admwhy-can .bi-check-circle {
	color: var(--nu-tone-green-fg, #1a7a3e);
}

/* On the Administration overview the filter column is a card in its own right, matching the
   detail pane at the other end of the row — white on the alt background, with the same shadow,
   and sticky for the same reason: the role list between them is as long as ReBAC has products,
   and scrolling to row forty should not leave either the filters or the actions behind. In the
   wizards it stays the tinted inset it is, because there it is one part of a step inside a card
   rather than a card beside a list, and it has nothing tall enough beside it to scroll past. */
.rbc-rolepick--detail .rbc-rolepick-filters {
	position: sticky;
	top: calc(var(--nu-topbar-h, 60px) + var(--nu-space-4, 16px));
	background: var(--nu-surface, #fff);
	box-shadow: var(--nu-shadow-sm, 0 1px 3px rgba(33, 59, 52, 0.1));
	/* Caps itself and scrolls, like .rbc-copy-rail — a sticky column taller than the space above
	   the fold pins its top and leaves its own bottom unreachable. Released again where the
	   layout stacks; see the media query. */
	max-height: calc(100vh - var(--nu-topbar-h, 60px) - var(--nu-space-6, 32px));
	overflow-y: auto;
}

/* Two columns before one: at this width the third column is what gives, since the pane is only
   meaningful once something in the list is selected. It moves to its own full-width row under
   both — and stops sticking, because a sticky element that spans the width and sits *below* the
   list pins itself over the rows the reader is scrolling through rather than staying beside
   them. Sticky only earns its place while the pane is a column. */
@media (max-width: 1200px) {
	.rbc-rolepick--detail {
		grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
	}

	.rbc-admcol {
		grid-column: 1 / -1;
		position: static;
		max-height: none;
		overflow-y: visible;
	}

	/* The filters stop sticking here too. At this width the row is short enough that a pinned
	   column has nothing to stay beside, and below 860px it stacks like everything else. */
	.rbc-rolepick--detail .rbc-rolepick-filters {
		position: static;
		max-height: none;
		overflow-y: visible;
	}
}

.rbc-rolepick-filters {
	/* Compact — it should not stretch to the height of the role list beside it. */
	align-self: start;
	display: flex;
	flex-direction: column;
	gap: var(--nu-space-2, 8px);
	background: var(--nu-bg-alt, #f5f4f0);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-lg, 14px);
	padding: var(--nu-space-4, 16px);
}

/* My Approvals and Expiring Soon: the same two-pane split as the wizards' role picker, but the
   panes are a standalone filter card and the results card rather than parts of one step. */
.rbc-approvals {
	display: grid;
	grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
	gap: var(--nu-space-4, 16px);
	align-items: start;
}

/* One product to filter by is no filter at all, so the card is dropped and the results
   card takes the full width. */
.rbc-approvals--nofilters {
	grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 860px) {
	.rbc-approvals {
		grid-template-columns: 1fr;
	}

	/* Stops sticking once the columns stack: pinned at the top of a single column it would sit
	   over the requests the reader is scrolling through rather than beside them. Sticky only
	   earns its place while the filters are a column of their own. */
	.rbc-approvals-filters {
		position: static;
		max-height: none;
		overflow-y: visible;
	}
}

/* A card, not the wizards' inset panel: those sit inside a white card, where a
   --nu-bg-alt fill reads as a recess. Here the aside sits directly on the page, whose
   background is that same --nu-bg-alt — so the panel styling made it invisible. */
.rbc-approvals-filters {
	display: flex;
	flex-direction: column;
	gap: var(--nu-space-2, 8px);
}

/* Sticky for the same reason the Administration overview's filter column is: an approval queue is
   as long as the reader's authority is wide, and scrolling to the fortieth request should not
   leave the filters that produced the list behind. align-self: start so it pins at its own height
   rather than stretching to the results card beside it — a full-height sticky element has nothing
   left to travel. */
.rbc-approvals-filters {
	align-self: start;
	position: sticky;
	top: calc(var(--nu-topbar-h, 60px) + var(--nu-space-4, 16px));
	/* Caps itself and scrolls, like .rbc-copy-rail — a sticky column taller than the space above
	   the fold pins its top and leaves its own bottom unreachable. Released again where the
	   layout stacks; see the media query. */
	max-height: calc(100vh - var(--nu-topbar-h, 60px) - var(--nu-space-6, 32px));
	overflow-y: auto;
}

.rbc-approvals-clear {
	display: flex;
	align-items: center;
	gap: var(--nu-space-1, 4px);
	margin-top: var(--nu-space-2, 8px);
	font-size: var(--nu-fs-small, 0.8125rem);
	color: var(--nu-ink-3, #7d8e88);
}

/* ---- Access Audit (/audit) ----
   The question in one card across the top, the answer in a second card below it. Not the
   filter-rail-beside-results split My Approvals and Check Access use: the answer is a wide grid
   (assignee, role, application, scope, window, status, and a held column for a range), and a
   rail would take the width it needs. Prefixed rbc-auditpage- because .rbc-audit-line is already
   the Details pages' "last updated by" footer, which has nothing to do with this page. */
/* The question card holds two inset panels: When, which is always required, and Who/What, of
   which either one will do. A --nu-bg-alt fill reads as a recess inside the white card, the same
   inset the wizards' filter panels use. When takes a third of the width and the pair the rest, so
   the three groups of pickers stay roughly equal. */
.rbc-auditpage-cols {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	gap: var(--nu-space-4, 16px);
	align-items: stretch;
}

.rbc-auditpage-panel {
	min-width: 0;
	padding: var(--nu-space-4, 16px);
	background: var(--nu-bg-alt, #f5f4f0);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-lg, 14px);
}

/* The panel's own padding is the space under its last field. */
.rbc-auditpage-panel .rbc-field:last-child,
.rbc-auditpage-col > .rbc-field:last-child {
	margin-bottom: 0;
}

/* Who, OR, What: the word sits on a vertical rule between the two columns, centred on the panel's
   height, so the choice reads as one or the other rather than as two fields to fill in. */
.rbc-auditpage-panel--either {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	gap: var(--nu-space-4, 16px);
}

.rbc-auditpage-col {
	min-width: 0;
}

.rbc-auditpage-or {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--nu-space-2, 8px);
	font-size: var(--nu-fs-eyebrow, 0.75rem);
	font-weight: var(--nu-fw-bold, 700);
	letter-spacing: var(--nu-tracking-eyebrow, 0.08em);
	text-transform: uppercase;
	color: var(--nu-ink-2, #4a5f58);
}

.rbc-auditpage-or::before,
.rbc-auditpage-or::after {
	content: "";
	flex: 1 1 auto;
	width: 1px;
	background: var(--nu-border-strong, #c4cfc9);
}

/* The pair needs more room than When; on a laptop width When takes its own row above it. */
@media (max-width: 1200px) {
	.rbc-auditpage-cols {
		grid-template-columns: 1fr;
	}
}

/* Stacked where the approvals layout stacks: Who above What, and the rule turns horizontal with the
   word still at its centre. */
@media (max-width: 860px) {
	.rbc-auditpage-panel--either {
		grid-template-columns: 1fr;
	}

	.rbc-auditpage-or {
		flex-direction: row;
	}

	.rbc-auditpage-or::before,
	.rbc-auditpage-or::after {
		width: auto;
		height: 1px;
	}
}

/* The Point in time / Date range switch. Compact tabs carry no margin of their own, and this one
   heads the fields it decides, so it takes the gap a field would. Its selected option uses the
   same lifted dark surface as the other compact groups on a panel. */
.rbc-auditpage-mode {
	margin: var(--nu-space-1, 4px) 0 var(--nu-space-3, 12px);
}

.rbc-auditpage-mode .rbc-tab--active {
	background: var(--nu-simulation-tab-selected-bg, var(--nu-surface, #fff));
}

/* Quick ranges under the two date fields: a wrapping row of text buttons, set apart from the
   fields above and the help text below by a full field gap on each side. */
.rbc-auditpage-presets {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: var(--nu-space-1, 4px) var(--nu-space-3, 12px);
	margin-bottom: var(--nu-space-3, 12px);
	font-size: var(--nu-fs-small, 0.8125rem);
	color: var(--nu-ink-2, #4a5f58);
}

.rbc-auditpage-presets .rbc-linkbtn:focus-visible {
	outline: 2px solid var(--nu-accent, #006325);
	outline-offset: 2px;
	border-radius: var(--nu-radius-sm, 4px);
}

/* The Run row: the stale note leads (me-auto), Clear sits left of Run. Centred so the text link
   and the note line up with the button rather than with its top edge. No rule above it: the two
   inset panels already end the form, and a line under them read as a third section. Two classes,
   so it outranks .rbc-actions without depending on source order. */
.rbc-actions.rbc-auditpage-actions {
	align-items: center;
	margin-top: var(--nu-space-4, 16px);
	padding-top: 0;
	border-top: 0;
}

.rbc-auditpage-stale {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: var(--nu-fs-small, 0.8125rem);
	color: var(--nu-tone-amber-fg, #b3730f);
}

/* The question the results answer, kept beside them — the same treatment as Check Access's
   verdict context: a rule under it, caption labels baseline-aligned with body values. For a user
   audit the group notice takes the right half beside it, since it qualifies the same question;
   the two stack again where the card gets narrow. */
.rbc-auditpage-summary {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--nu-space-4, 16px);
	align-items: start;
	padding: 0 var(--nu-space-1, 4px) var(--nu-space-4, 16px);
	margin-bottom: var(--nu-space-4, 16px);
	border-bottom: 1px solid var(--nu-border, #dfe5e1);
}

/* The notice gets the larger share: three short rows of context need less room than a sentence
   and a run of group links. */
.rbc-auditpage-summary--split {
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
}

@media (max-width: 1100px) {
	.rbc-auditpage-summary--split {
		grid-template-columns: minmax(0, 1fr);
	}
}

.rbc-auditpage-context .rbc-overview {
	grid-template-columns: 130px minmax(0, 1fr);
	gap: var(--nu-space-2, 8px) var(--nu-space-4, 16px);
	align-items: baseline;
}

/* Banners stack between the context and the tabs; the card has no flex gap to space them. */
.rbc-auditpage-results > .rbc-banner {
	margin-bottom: var(--nu-space-3, 12px);
}

/* The group notice's list: a label taking its own line, then one chip per group. The chips are
   links that re-run the audit for that group, so they take the accent ink and an underline on
   hover, like every other link that navigates. */
.rbc-auditpage-groups-label {
	flex: 1 1 100%;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: var(--nu-fs-small, 0.8125rem);
	color: var(--nu-ink-2, #4a5f58);
}

.rbc-auditpage-groupchip {
	padding: 4px 11px;
	background: var(--nu-surface, #fff);
	border: 1px solid var(--nu-tone-blue-border, #cfe0ec);
	color: var(--nu-accent, #006325);
	text-decoration: none;
}

.rbc-auditpage-groupchip:hover,
.rbc-auditpage-groupchip:focus-visible {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.rbc-auditpage-groupchip:focus-visible {
	outline: 2px solid var(--nu-accent, #006325);
	outline-offset: 2px;
}

/* A change's detail lines: one per edited field, small and muted like any cell sub-line. */
.rbc-auditpage-detail {
	font-size: var(--nu-fs-small, 0.8125rem);
	color: var(--nu-ink-2, #4a5f58);
	line-height: var(--nu-lh-snug, 1.3);
}

.rbc-auditpage-detail + .rbc-auditpage-detail {
	margin-top: 2px;
}

/* The second line of the no-record empty state: why an early date can also come back empty. */
.rbc-auditpage-note {
	margin: 0;
	max-width: 52ch;
	font-size: var(--nu-fs-small, 0.8125rem);
	color: var(--nu-ink-3, #7d8e88);
}

.rbc-rolepick-list {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
}

/* A refused advance has to mark the control that refused it, and on this step the control is the
   list — there is no field to red. The border goes on the scrolling region rather than the whole
   column so the search box and the count line above it stay neutral: they are not what is wrong.
   No red fill: behind a list of white rows it reads as an error state on every row. */
.rbc-rolepick-list--invalid .rbc-req-list {
	border: 1px solid var(--nu-tone-red-fg, #c0392b);
	border-radius: var(--nu-radius-md, 8px);
	padding: 4px;
}

/* The search box and scope line stay put; only the roles scroll. */
.rbc-rolepick-list .rbc-req-list {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	padding-right: var(--nu-space-1, 4px);
}

.rbc-rolepick-scope {
	font-size: var(--nu-fs-body, 0.9375rem);
	font-weight: var(--nu-fw-semibold, 600);
	color: var(--nu-ink, #213b34);
	margin-bottom: var(--nu-space-3, 12px);
}

/* The same heading with "Create Operation" beside it. Only the role wizards' operations column
   carries the action, so the row behaviour is a modifier rather than folded into the base — the
   conflicts column uses .rbc-rolepick-scope too and has nothing to put there. */
.rbc-rolepick-scope--withaction {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--nu-space-3, 12px);
}

/* Breathing room between "No operations match these filters." and the button under it. The empty
   note is centred text, so the button centres with it rather than being pinned left. */
.rbc-cat-empty-action {
	margin-top: var(--nu-space-3, 12px);
}

/* The scope band: pick-one pills on the .rbc-action-btn surface with a solid-green selected state,
   so it reads plainly as choosing a scope. Sits under its own "Role Scope" heading in the left
   panel and stacks full-width via the --stacked modifier below. */
.rbc-scopeband {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--nu-space-2, 8px);
}

/* Slightly tighter than a page-level action pill — it sits inside a form step, not a page head. */
.rbc-scope-pill {
	padding: 7px 14px;
}

/* Selected: filled green with white content, held through hover so the choice stays unmistakable. */
.rbc-action-btn.rbc-scope-pill--active,
.rbc-action-btn.rbc-scope-pill--active:hover {
	background: var(--nu-accent-fill, #006325);
	border-color: var(--nu-accent, #006325);
	color: var(--nu-on-accent, #fff);
	box-shadow: var(--nu-shadow-accent);
}

.rbc-action-btn.rbc-scope-pill--active .bi {
	color: var(--nu-on-accent, #fff);
}

/* Stacked variant — full-width pick-one pills in the left panel's Role Scope section. */
.rbc-scopeband--stacked {
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
}

/* The per-scope count sits at the trailing edge of each stacked pill. */
.rbc-scope-count {
	margin-left: auto;
	font-weight: var(--nu-fw-regular, 400);
	color: var(--nu-ink-3, #7d8e88);
}

.rbc-action-btn.rbc-scope-pill--active .rbc-scope-count {
	color: var(--nu-on-accent-muted, rgba(255, 255, 255, 0.85));
}

/* Separates the Role Scope section from the Narrow by filters within the left panel. */
.rbc-rolepick-filterdivider {
	height: 1px;
	background: var(--nu-border, #dfe5e1);
	margin: var(--nu-space-4, 16px) 0;
}

/* Active Product/Application filters above the role list — colour-matched to the scope tones
   used across the app (product = orange, application = blue), each removable. */
.rbc-filter-chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--nu-space-2, 8px);
	margin-bottom: var(--nu-space-3, 12px);
}

.rbc-filter-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 6px 4px 11px;
	border-radius: var(--nu-radius-pill, 999px);
	font-size: var(--nu-fs-small, 0.8125rem);
	font-weight: var(--nu-fw-semibold, 600);
}

.rbc-filter-chip-label {
	font-weight: var(--nu-fw-regular, 400);
	opacity: 0.7;
}

.rbc-filter-chip--product {
	background: var(--nu-tone-orange-bg, #fdf0e6);
	color: var(--nu-tone-orange-fg, #ac4e19);
}

.rbc-filter-chip--application {
	background: var(--nu-tone-blue-bg, #eaf1f7);
	color: var(--nu-tone-blue-fg, #2b6f9e);
}

/* Add Signoffs' role filter. Green, the one tone not already spoken for here — orange is the
   product and blue the application, and purple marks an administration role elsewhere. */
.rbc-filter-chip--role {
	background: var(--nu-tone-green-bg, #e8f4ec);
	color: var(--nu-tone-green-fg, #1e7a3c);
}
.rbc-filter-chip-x {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: var(--nu-control-fill, rgba(33, 59, 52, 0.1));
	color: inherit;
	cursor: pointer;
	font-size: 0.65rem;
	line-height: 1;
}

.rbc-filter-chip-x:hover {
	background: var(--nu-control-hover, rgba(33, 59, 52, 0.2));
}

/* Shared/StatusDropdown — "Status: [choice ▾]" on a grid's view line, left of the count. Built from
   RbcCombobox's own parts (.rbc-combo, .rbc-combo-trigger, .rbc-combo-pop, .rbc-combo-list,
   .rbc-combo-item), so the open menu is the app's dropdown menu rather than the operating system's.
   These rules only fit it to the view line: a compact trigger that sizes to its value, and a menu
   at least as wide as the trigger but no narrower than its longest option. */
.rbc-status-select {
	display: inline-flex;
	align-items: center;
	gap: var(--nu-space-2, 8px);
	white-space: nowrap;
}

.rbc-status-select-label {
	color: var(--nu-ink-2, #4a5f58);
	font-weight: var(--nu-fw-semibold, 600);
}

/* .rbc-combo's own bottom margin is for stacked form fields; on a one-line bar it would push the
   control off the line's centre. */
.rbc-status-select-anchor {
	margin: 0;
}

/* The form trigger is 40px and full-width; on the 41px view line it is the line's height and as
   wide as its value. The stronger border is the card search box's, the other field on these lines. */
.rbc-combo-trigger.rbc-status-select-trigger {
	width: auto;
	min-height: 28px;
	padding: 3px 8px 3px 10px;
	border-color: var(--nu-border-strong, #b8c2bd);
}

/* The border above outranks .rbc-combo-trigger's own hover / open / focus rules by source order,
   so those states are restated here or the trigger would stop answering them. */
.rbc-combo-trigger.rbc-status-select-trigger:hover,
.rbc-combo-trigger.rbc-status-select-trigger.is-open,
.rbc-combo-trigger.rbc-status-select-trigger:focus-visible {
	border-color: var(--nu-accent, #006325);
}

.rbc-status-select-pop {
	right: auto;
	min-width: 100%;
	width: max-content;
	padding: var(--nu-space-1, 4px);
}

/* Focus moves onto the options themselves (there is no search field to hold it), so the keyboard
   ring is real focus here — drawn the way RbcCombobox draws its arrow-key ring, .is-active. */
.rbc-status-select-pop .rbc-combo-item:focus-visible {
	outline: none;
	box-shadow: inset 0 0 0 2px var(--nu-accent, #006325);
}

/* A filter is applied (any choice but Any status): accent border and bold accent text on the
   trigger's ordinary surface, so arriving on a filtered view — usually from a dashboard card —
   visibly reads as filtered rather than as an untouched dropdown. No fill: the tint is the summary
   line's filter pill's, and the control stays a control. Later in the file than .rbc-combo-trigger's
   :hover and .is-open rules, so it wins their border colour at equal specificity. */
.rbc-status-select--applied .rbc-combo-trigger {
	border-color: var(--nu-accent, #006325);
	color: var(--nu-accent, #006325);
	font-weight: var(--nu-fw-semibold, 600);
}

.rbc-status-select--applied .rbc-combo-caret {
	color: var(--nu-accent, #006325);
}

/* The role rows are selectable, so they read as controls rather than static cards. */
.rbc-rolepick-row {
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.rbc-rolepick-row:hover {
	border-color: var(--nu-accent, #006325);
}

.rbc-rolepick-row:focus-visible {
	outline: 2px solid var(--nu-accent, #006325);
	outline-offset: 2px;
}

.rbc-rolepick-row.is-selected {
	border-color: var(--nu-accent, #006325);
	background: var(--nu-bg-tint, #eef5f0);
	box-shadow: var(--nu-shadow-sm);
}

.rbc-rolepick-check {
	color: var(--nu-accent, #006325);
	font-size: 1.125rem;
	align-self: center;
}

/* ---- Invalid field highlight ----
   Blazor stamps "invalid" on Input* controls while their field has a validation
   message and swaps it for "valid" once it clears, so the border tracks the message
   without any extra state. RbcCombobox is not an Input*, so it sets is-invalid
   itself from the EditContext (see its For parameter). */
.rbc-input.invalid,
.rbc-combo-trigger.is-invalid {
	border-color: var(--nu-tone-red-fg, #c0392b);
	background: var(--nu-tone-red-bg, #fdecea);
}

.rbc-input.invalid:focus {
	border-color: var(--nu-tone-red-fg, #c0392b);
	box-shadow: 0 0 0 3px var(--nu-danger-focus-soft, rgba(192, 57, 43, 0.15));
}

/* A combobox drops its invalid highlight while the reader is inside it, and picks it back up on
   the way out if the field is still empty — .is-invalid never moves, only what it paints does.
   Shouting about a missing selection at someone who has just opened the list to make one is a
   complaint about a problem being fixed, and the red fill under an open result list is the loudest
   thing on the step.

   `:focus-within` on the wrapper rather than `:focus` on the trigger: clicking the trigger moves
   focus into the popover's own search box, so the trigger itself is unfocused for almost all of
   the time the control is in use. `.is-open` is listed as well because that focus move is a JS
   call — if it ever fails to land, an open list must still not sit under a red field. Both
   selectors outweigh the plain `.is-invalid` above, so this is what paints. */
.rbc-combo:focus-within .rbc-combo-trigger.is-invalid,
.rbc-combo-trigger.is-invalid.is-open {
	border-color: var(--nu-accent, #006325);
	background: var(--nu-surface, #fff);
	box-shadow: 0 0 0 3px var(--nu-focus-soft, #eef5f0);
}

/* Blazor also stamps "valid"; that is the ordinary state, not a success cue. Note this rule
   ties with .rbc-input:focus on specificity and wins by coming later, which is why the focus
   rule above also lists .rbc-input.valid:focus — without it the focus border stays grey on
   every Input* control, since they always carry one of these two classes. */
.rbc-input.valid {
	border-color: var(--nu-border, #dfe5e1);
}

/* Cross-field invalid (an end date before the start): the app sets .rbc-input--invalid itself.
   Placed after .rbc-input.valid so it wins the border — Blazor stamps the Input* "valid" from its
   own message-free field state, which a plain .invalid would lose to. */
.rbc-input.rbc-input--invalid {
	border-color: var(--nu-tone-red-fg, #c0392b);
	background: var(--nu-tone-red-bg, #fdecea);
}

.rbc-input.rbc-input--invalid:focus {
	border-color: var(--nu-tone-red-fg, #c0392b);
	box-shadow: 0 0 0 3px var(--nu-danger-focus-soft, rgba(192, 57, 43, 0.15));
}

/* Date + optional time pair (RbcDateTimeField): the date grows to fill, the time sits beside it. */
.rbc-datetime {
	display: flex;
	gap: var(--nu-space-2, 8px);
}

.rbc-datetime > :first-child {
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
}

.rbc-datetime > input[type="time"] {
	flex: 0 0 auto;
	width: auto;
}

/* Explicit "clear the time" control — native time inputs offer no dependable clear affordance. */
.rbc-datetime-clear {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	border: none;
	background: transparent;
	color: var(--nu-ink-3, #7d8e88);
	cursor: pointer;
	padding: 0 4px;
	margin-bottom: 4px;
	font-size: 0.85rem;
}

.rbc-datetime-clear:hover {
	color: var(--nu-tone-red-fg, #c0392b);
}

/* A half-entered date or time reads red: the browser flags an incomplete entry as :invalid
   (validity.badInput), which the bound value can't reveal — it comes through as null, the same as
   empty. Out-specifies .rbc-input.valid so it wins the border. (An *empty* field is not badInput,
   so an optional end left blank stays neutral.) */
.rbc-datetime input:invalid {
	border-color: var(--nu-tone-red-fg, #c0392b);
	background: var(--nu-tone-red-bg, #fdecea);
}

.rbc-datetime input:invalid:focus {
	border-color: var(--nu-tone-red-fg, #c0392b);
	box-shadow: 0 0 0 3px var(--nu-danger-focus-soft, rgba(192, 57, 43, 0.15));
}

.rbc-combo-trigger:disabled {
	background: var(--nu-bg-alt, #f5f4f0);
	color: var(--nu-ink-3, #7d8e88);
	cursor: not-allowed;
}

.rbc-catalog-col {
	display: flex;
	flex-direction: column;
	gap: var(--nu-space-4, 16px);
	min-width: 0;
}

.rbc-catalog-pane {
	background: var(--nu-surface, #fff);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-lg, 14px);
	padding: var(--nu-space-4, 16px);
}

.rbc-pane-search {
	position: relative;
	margin-bottom: var(--nu-space-3, 12px);
}

.rbc-pane-search .bi {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--nu-ink-3, #7d8e88);
	pointer-events: none;
}

.rbc-pane-search .rbc-input {
	padding-left: 34px;
	padding-right: 34px;
	margin-bottom: 0;
}

/* Clear button on the role search. The .bi reset overrides the absolute positioning the search
   icon rule (.rbc-pane-search .bi) would otherwise apply to the × glyph. */
.rbc-pane-search-clear {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: transparent;
	color: var(--nu-ink-3, #7d8e88);
	cursor: pointer;
	font-size: 0.7rem;
}

.rbc-pane-search-clear:hover {
	background: var(--nu-bg-alt, #f5f4f0);
	color: var(--nu-ink, #213b34);
}

.rbc-pane-search-clear .bi {
	position: static;
	left: auto;
	top: auto;
	transform: none;
	color: inherit;
	pointer-events: auto;
}

/* Left pane — product list */
.rbc-cat-prodlist {
	display: flex;
	flex-direction: column;
	gap: 2px;
	/* Fill down to a bottom gap: viewport minus the fixed stack above the list
	   (top bar + page header + pane search) and a bottom margin. */
	max-height: calc(100vh - 340px);
	overflow-y: auto;
}

.rbc-cat-prod {
	display: flex;
	align-items: center;
	gap: var(--nu-space-3, 12px);
	width: 100%;
	text-align: left;
	background: none;
	border: 0;
	border-radius: var(--nu-radius-md, 8px);
	padding: 10px 12px;
	color: var(--nu-ink, #213b34);
	cursor: pointer;
}

.rbc-cat-prod:hover {
	background: var(--nu-bg-alt, #f5f4f0);
}

.rbc-cat-prod.is-active {
	background: var(--nu-bg-tint, #eef5f0);
}

/* All products — the scope the catalog opens on, pinned above the product list and ruled off from
   it: it is the way back to the whole catalog rather than one of the things being listed. Sticky
   against the list's own scroll, because the row that undoes a narrowing must not be the one row
   you have to scroll back up to reach.

   Three consequences of sticking it. It needs an opaque background — .rbc-cat-prod is transparent,
   and the rows would otherwise travel through it; the hover and the selected tint both out-specify
   this and are opaque too, so every state covers. It needs no z-index: sticky is positioned and the
   rows sliding under it are not, so it already paints above them. And it carries no bottom margin,
   only padding: a margin is transparent, and the list's 2px gap is as wide a band as a row may show
   through below the hairline.

   Only the top corners are rounded, the hairline being the row's own bottom edge — a radius under it
   would leave the line running past the hover tint's corners. */
.rbc-cat-prod--all {
	position: sticky;
	top: 0;
	/* The list is a capped, scrolling flex column, so its children each hold their height. */
	flex-shrink: 0;
	background: var(--nu-surface, #fff);
	border-bottom: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-md, 8px) var(--nu-radius-md, 8px) 0 0;
	padding-bottom: 12px;
}

.rbc-cat-prod-icon {
	flex: 0 0 auto;
	color: var(--nu-accent, #006325);
}

/* Name and id as one flex item, so the id sits against the name rather than drifting to the
   far side of the row. As siblings of .rbc-cat-prod they would each take its 12px gap, leaving
   the id equidistant from the name and the option count and reading as part of neither. */
.rbc-cat-prod-label {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	align-items: baseline;
	gap: 6px;
}

/* `0 1 auto`, not `1 1 auto`: inside the label the name must not grow, or it pushes the id out
   to the label's own right edge and undoes the grouping above. It still shrinks and ellipsises. */
.rbc-cat-prod-name {
	flex: 0 1 auto;
	min-width: 0;
	font-weight: var(--nu-fw-semibold, 600);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* The id keeps its width while the name gives way — a half-elided "#18…" is worse than no id. */
.rbc-cat-prod-label .rbc-cell-id {
	flex: 0 0 auto;
}

.rbc-cat-prod-meta {
	flex: 0 0 auto;
	font-size: var(--nu-fs-small, 0.8125rem);
	color: var(--nu-ink-3, #7d8e88);
}

.rbc-cat-prod .bi-chevron-right {
	flex: 0 0 auto;
	color: var(--nu-ink-3, #7d8e88);
}

/* Right pane — application rows (card look, row layout) */
.rbc-cat-approws {
	display: flex;
	flex-direction: column;
	gap: var(--nu-space-2, 8px);
	max-height: calc(100vh - 340px);
	overflow-y: auto;
	/* Load-bearing 1px, and exactly the 1px .rbc-cat-approw:active moves a pressed row down by.
	   A transformed child still counts toward its scroll container's scrollable overflow, and the
	   max-height above only caps this box — short of it the container is precisely as tall as its
	   rows, with no slack at the bottom. Without this the press pushes the last row past the
	   content box and overflow-y: auto paints a scrollbar for as long as the button is held, on a
	   list of one row. Keep it, or match whatever that transform becomes. */
	padding-bottom: 1px;
}

.rbc-cat-approw {
	display: flex;
	align-items: center;
	gap: var(--nu-space-3, 12px);
	width: 100%;
	text-align: left;
	background: var(--nu-surface, #fff);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-md, 8px);
	padding: var(--nu-space-3, 12px) var(--nu-space-4, 16px);
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}

.rbc-cat-approw:hover {
	border-color: var(--nu-accent, #006325);
	box-shadow: var(--nu-shadow-sm);
}

.rbc-cat-approw:active {
	transform: translateY(1px);
}

.rbc-cat-approw-main {
	flex: 1 1 auto;
	min-width: 0;
}

.rbc-cat-approw-sub {
	margin-top: 2px;
	color: var(--nu-ink-3, #7d8e88);
	font-size: var(--nu-fs-small, 0.8125rem);
}

.rbc-cat-approw-foot {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: var(--nu-space-3, 12px);
}

/* The app's one empty state for a list that has no rows to show — the role pickers, the
   administration overview, the catalog, the dashboards' filtered queues, the modals and the Copy
   Permissions steps all use this. Centred with padding of its own rather than styled like help
   text, because it is not a hint attached to the control above it: it stands in for the list, so it
   has to read as content, not as a footnote to the search box.

   Use it for a new empty list rather than a bespoke line. It was three rules — this,
   .rbc-dash-nomatch and .rbc-ops-empty — with identical declarations under different names, and the
   cost was not the duplication: with no single thing to conform to, new empty states were written
   as help text or as a bare muted line instead, and one key ended up rendered three different ways.

   Not every "nothing here" line belongs to this rule. A single *value* that is unset takes
   .rbc-summary-empty, a two-pane picker's side takes .rbc-pickpane-empty, and an empty page or card
   takes EmptyState / .rbc-grid-none, which are a deliberately louder tier. */
.rbc-cat-empty {
	padding: var(--nu-space-4, 16px);
	color: var(--nu-ink-3, #7d8e88);
	font-size: var(--nu-fs-small, 0.8125rem);
	text-align: center;
}

/* Requestable / held lists */
.rbc-req-section {
	margin-bottom: var(--nu-space-6, 32px);
}

.rbc-req-section-title {
	font-size: var(--nu-fs-h4, 1rem);
	font-weight: var(--nu-fw-bold, 700);
	color: var(--nu-ink, #213b34);
	margin-bottom: var(--nu-space-3, 12px);
}

.rbc-req-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

.rbc-req-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--nu-space-4, 16px);
	background: var(--nu-surface, #fff);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-md, 8px);
	padding: var(--nu-space-3, 12px) var(--nu-space-4, 16px);
}

/* Separate stacked role cards. Set on the rows rather than as a gap on .rbc-req-list,
   because that list class is shared with the dashboard's needs-attention list. */
.rbc-req-row + .rbc-req-row {
	margin-top: var(--nu-space-3, 12px);
}

/* Request call-to-action: a pill that reads as an affordance rather than a form button.
   Outlined at rest so it doesn't compete with the role name, filling green on hover.
   align-self keeps it centered against the card while the details stay top-aligned. */
/* The primary pill CTA: the catalog's "+ Request" and the standard-user dashboard's
   "+ Create Product". Shared deliberately — both are the one thing to do at the end of a row
   that has just explained why — so restyling this changes both. */
.rbc-req-cta {
	align-self: center;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border: 1px solid var(--nu-accent, #006325);
	/* The app's button radius, not a pill: this is a real action on a row of them, and rounded to
	   999px it read as a chip beside the square-cornered buttons every other screen offers. The
	   same 8px .rbc-iconbtn, .rbc-scopebtn and .rbc-quicklink--cta take. */
	border-radius: var(--nu-radius-md, 8px);
	background: transparent;
	color: var(--nu-accent, #006325);
	font: inherit;
	font-size: var(--nu-fs-small, 0.8125rem);
	font-weight: var(--nu-fw-semibold, 600);
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}

.rbc-req-cta:hover {
	background: var(--nu-accent-fill, #006325);
	color: var(--nu-on-accent, #fff);
	box-shadow: var(--nu-shadow-accent-strong);
}

.rbc-req-cta:active {
	transform: translateY(1px);
}

.rbc-req-cta:focus-visible {
	outline: 2px solid var(--nu-accent, #006325);
	outline-offset: 2px;
}

.rbc-req-cta .bi {
	font-size: 0.9em;
}

.rbc-req-row-main {
	min-width: 0;
	flex: 1 1 auto;
}

.rbc-req-row-grants {
	margin-top: var(--nu-space-2, 8px);
	font-size: var(--nu-fs-small, 0.8125rem);
}

.rbc-req-row-grants-label {
	display: block;
	color: var(--nu-ink-3, #7d8e88);
	margin-bottom: var(--nu-space-2, 8px);
}

.rbc-req-grant--more {
	color: var(--nu-ink-3, #7d8e88);
	font-weight: var(--nu-fw-semibold, 600);
}

/* Inline busy spinner for a button's icon slot — unobtrusive: the button keeps its size
   and label, the icon just turns. */
.rbc-spin {
	display: inline-block;
	animation: rbc-spin 0.9s linear infinite;
}

@keyframes rbc-spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
	.rbc-spin {
		animation: none;
	}
}

/* The administration-roles grid inside its dialog. Only the gap from the filter row above it —
   .rbc-modal-body puts no space between its children, and .rbc-field-row has none of its own
   below. Everything else it needs comes from .rbc-grid-wrap. */
.rbc-adminroles-grid {
	margin-top: var(--nu-space-4, 16px);
}

/* ---- Confirm dialog ----
   Narrower than the shared default: it is a question with a short list under it, and a wide
   dialog makes that read as a form. Its text runs a step larger than the small type used
   elsewhere — this is the last thing read before an irreversible action, so it is set at
   body size rather than the caption size the rest of the modals use. */
.rbc-modal--confirm {
	max-width: 640px;
}

/* The Check Access actions: a filter column beside a results column, which is unreadable at
   the shared default width. Capped in height too — the results can run long, and the dialog
   should scroll rather than the page behind it. */
.rbc-modal--access {
	max-width: 1100px;
}

/* Simulate is wider still: a single diff list, but beside an inputs column that has to hold a
   growing list of role chips without pushing its own button out of reach. Narrower than it was
   when the results were two columns. */
.rbc-modal--access-wide {
	max-width: min(1320px, calc(100vw - 64px));
}

/* Read-only hierarchy browser on Organizations: enough width for descriptions in the picker and
   deep indentation in the selected tree, while still fitting without horizontal page scroll. */
.rbc-modal--hierarchies {
	max-width: min(1440px, calc(100vw - 48px));
}

.rbc-modal--hierarchies .rbc-modal-body {
	max-height: calc(100vh - 220px);
	overflow-y: auto;
}

/* The editable Application hierarchy dialog keeps its action row in view. Its working height is
   bounded by the viewport; the two chooser panes absorb the remaining height and scroll their
   own lists instead of pushing Cancel and Update below the modal edge. */
.rbc-modal--application-hierarchy-edit {
	height: min(820px, calc(100vh - 2 * var(--nu-space-7, 48px)));
}

.rbc-modal--application-hierarchy-edit .rbc-modal-body {
	display: flex;
	flex-direction: column;
	max-height: none;
	overflow: hidden;
}

.rbc-modal--application-hierarchy-edit .rbc-application-hierarchy {
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
}

.rbc-modal--application-hierarchy-edit .rbc-hierarchy-browser-pane {
	min-height: 0;
	overflow: hidden;
}

.rbc-modal--application-hierarchy-edit .rbc-application-hierarchy-list,
.rbc-modal--application-hierarchy-edit .rbc-hierarchy-browser-pane--tree .rbc-orgtree-scroll {
	min-height: 0;
	max-height: none;
}

.rbc-modal--application-hierarchy-edit .rbc-orgscope-empty {
	min-height: 0;
}

.rbc-modal--application-hierarchy-edit .rbc-modal-actions {
	flex: 0 0 auto;
	margin-top: var(--nu-space-4, 16px);
}

.rbc-hierarchy-browser {
	display: grid;
	grid-template-columns: minmax(280px, 0.8fr) minmax(480px, 1.6fr);
	gap: var(--nu-space-3, 12px);
	align-items: stretch;
}

/* Application hierarchy chooser: the hierarchy definitions are the decision in the left pane;
   the right pane previews the selected tree. Details uses the same tree without the chooser. */
.rbc-application-hierarchy {
	display: grid;
	grid-template-columns: minmax(280px, 0.8fr) minmax(480px, 1.6fr);
	gap: var(--nu-space-3, 12px);
	align-items: stretch;
}

.rbc-application-hierarchy--readonly {
	grid-template-columns: minmax(0, 1fr);
}

.rbc-application-hierarchy-list {
	display: flex;
	flex: 1;
	min-height: 0;
	max-height: 520px;
	flex-direction: column;
	gap: var(--nu-space-2, 8px);
	overflow-y: auto;
	overscroll-behavior: contain;
}

.rbc-application-hierarchy-option {
	display: flex;
	flex-direction: column;
	gap: var(--nu-space-1, 4px);
	width: 100%;
	padding: var(--nu-space-3, 12px);
	background: var(--nu-surface, #fff);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-md, 8px);
	font: inherit;
	color: var(--nu-ink, #213b34);
	text-align: left;
	cursor: pointer;
}

.rbc-application-hierarchy-option:hover {
	border-color: var(--nu-accent, #006325);
	background: var(--nu-hover-wash, rgba(33, 59, 52, 0.08));
}

.rbc-application-hierarchy-option:focus-visible {
	outline: 2px solid var(--nu-focus-ring, #7cc5eb);
	outline-offset: 2px;
}

.rbc-application-hierarchy-option--selected,
.rbc-application-hierarchy-option--selected:hover {
	background: var(--nu-tone-green-bg, #e8f2ec);
	border-color: var(--nu-accent, #006325);
}

.rbc-application-hierarchy-option-name {
	font-weight: var(--nu-fw-semibold, 600);
}

.rbc-application-hierarchy-option-description {
	font-size: var(--nu-fs-small, 0.8125rem);
	line-height: var(--nu-lh-snug, 1.3);
	color: var(--nu-ink-2, #4a5f58);
}

.rbc-hierarchy-browser--details {
	grid-template-columns: minmax(260px, 0.75fr) minmax(440px, 1.35fr) minmax(300px, 0.9fr);
}

.rbc-hierarchy-browser-pane {
	display: flex;
	flex-direction: column;
	gap: var(--nu-space-3, 12px);
	min-width: 0;
	min-height: 460px;
	padding: var(--nu-space-4, 16px);
	background: var(--nu-bg-alt, #f5f4f0);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-md, 8px);
}

.rbc-hierarchy-browser-pane > .rbc-field,
.rbc-hierarchy-browser-pane > .rbc-field > .rbc-field {
	margin-bottom: 0;
}

.rbc-hierarchy-browser-tree-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--nu-space-3, 12px);
	flex-wrap: wrap;
}

.rbc-hierarchy-browser-tree-head > div:first-child {
	flex: 1 1 18rem;
	min-width: 0;
}

.rbc-hierarchy-browser-pane--tree .rbc-orgtree-scroll {
	max-height: 520px;
}

.rbc-hierarchy-metadata {
	grid-template-columns: minmax(90px, 112px) minmax(0, 1fr);
	gap: var(--nu-space-2, 8px) var(--nu-space-3, 12px);
}

.rbc-hierarchy-metadata-action {
	display: flex;
	justify-content: center;
	margin-top: auto;
	padding-top: var(--nu-space-3, 12px);
	border-top: 1px solid var(--nu-border, #dfe5e1);
}

@media (max-width: 1100px) {
	.rbc-hierarchy-browser,
	.rbc-application-hierarchy {
		grid-template-columns: 1fr;
	}

	.rbc-hierarchy-browser-pane {
		min-height: auto;
	}

	.rbc-hierarchy-browser-pane--tree {
		min-height: 420px;
	}

	/* At narrow widths the panes stack. The pane region becomes the scrolling area while the
	   action row remains outside it, so both panes are reachable without losing the buttons. */
	.rbc-modal--application-hierarchy-edit .rbc-application-hierarchy {
		overflow-y: auto;
	}

	.rbc-modal--application-hierarchy-edit .rbc-hierarchy-browser-pane {
		flex: 0 0 auto;
		min-height: 260px;
	}

	.rbc-modal--application-hierarchy-edit .rbc-hierarchy-browser-pane--tree {
		min-height: 320px;
	}
}

.rbc-modal--access .rbc-modal-body {
	max-height: calc(100vh - 220px);
	overflow-y: auto;
}

.rbc-modal--confirm .rbc-modal-intro {
	font-size: var(--nu-fs-body, 0.9375rem);
}

/* The gap sits on the icon's *position*, not on its tone classes. It was listed against
   `.rbc-confirm-icon, .rbc-confirm-icon--danger` and `--warn` was simply left out, so every
   warning-tone confirm ran its icon into the title. Keyed this way a fourth tone cannot miss it —
   ConfirmDialog is the only dialog whose title carries an icon, and any future one wants the same
   gap. */
.rbc-modal-title .bi {
	margin-right: var(--nu-space-2, 8px);
}

.rbc-confirm-icon {
	color: var(--nu-accent, #006325);
}

.rbc-confirm-icon--danger {
	color: var(--nu-tone-red-fg, #c0392b);
}

.rbc-confirm-icon--warn {
	color: var(--nu-tone-amber-fg, #b3730f);
}

/* The effects list is the point of the dialog, so it is panelled rather than left as loose
   text under the question. */
.rbc-confirm-effects {
	background: var(--nu-bg-alt, #f5f4f0);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-left: 3px solid var(--nu-accent, #006325);
	border-radius: var(--nu-radius-md, 8px);
	padding: var(--nu-space-3, 12px);
}

.rbc-confirm-effects--danger {
	border-left-color: var(--nu-tone-red-fg, #c0392b);
	background: var(--nu-tone-red-bg, #fdecea);
}

/* Consequential but not destructive — a save that changes who can do what. */
.rbc-confirm-effects--warn {
	border-left-color: var(--nu-tone-amber-fg, #b3730f);
	background: var(--nu-tone-amber-bg, #fdf3e2);
}

.rbc-confirm-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--nu-space-2, 8px);
}

.rbc-confirm-list li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: var(--nu-fs-body, 0.9375rem);
	color: var(--nu-ink, #213b34);
}

.rbc-confirm-list .bi {
	flex-shrink: 0;
	line-height: 1.5;
	color: var(--nu-ink-3, #7d8e88);
}

.rbc-confirm-effects--danger .rbc-confirm-list .bi {
	color: var(--nu-tone-red-fg, #c0392b);
}

.rbc-confirm-effects--warn .rbc-confirm-list .bi {
	color: var(--nu-tone-amber-fg, #b3730f);
}

.rbc-confirm-irreversible {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: var(--nu-space-3, 12px) 0 0;
	font-size: var(--nu-fs-small, 0.8125rem);
	color: var(--nu-ink-2, #4a5f58);
}

.rbc-confirm-irreversible .bi {
	flex-shrink: 0;
	line-height: 1.5;
}

/* ---- The wider dialog size ----
   Wider than the shared .rbc-modal 680px default, originally so two operation chips fit per row
   in the review dialog. Four dialogs now ask for it — review, extend, and the grant/request
   administration forms — all of which lay a two-column dl or a form against a value column that
   is cramped at the default. Listed as one rule rather than four equal values so they cannot
   drift apart; the --review name is historical, and a fifth caller should join this list rather
   than add another 820px of its own. The operations, approvers and conflicts dialogs stay at
   the default. */
.rbc-modal--review,
.rbc-modal--extend {
	max-width: 820px;
}

/* ---- The plan's notes dialog ----
   One collapsible group per kind of note. Wider than the shared prose dialogs so the collapsed
   section index and the API's longer messages have room, without taking on the table dialogs'
   full 1320px measure. */
.rbc-modal--copy-notes {
	max-width: min(960px, calc(100vw - 64px));
}

.rbc-modal--copy-notes .rbc-modal-body {
	max-height: calc(100vh - 220px);
	overflow-y: auto;
}

.rbc-copy-notes-group + .rbc-copy-notes-group {
	margin-top: var(--nu-space-5, 24px);
}

.rbc-copy-notes-list {
	display: flex;
	flex-direction: column;
	gap: var(--nu-space-2, 8px);
	margin: 0;
	padding-left: var(--nu-space-4, 16px);
	font-size: var(--nu-fs-small, 0.8125rem);
	line-height: var(--nu-lh-normal, 1.5);
	color: var(--nu-ink-2, #4a5f58);
}

/* A note about something that did not happen reads differently from one about something that
   will — the marker carries it, so the text itself stays the API's. */
.rbc-copy-notes-list--error {
	color: var(--nu-ink, #213b34);
}

.rbc-copy-notes-list--error > li::marker {
	color: var(--nu-danger, #c0392b);
}

/* The header button's icon: info while the notes are advisory, red where the plan reports
   something that stopped an assignment being created — .rbc-action-btn paints its icons green,
   which would say the opposite.

   Qualified with .rbc-action-btn to make three class-level selectors against that rule's two, so
   this wins on specificity rather than on being declared later in the file. */
.rbc-action-btn .rbc-copy-notes-icon.is-failure {
	color: var(--nu-danger, #c0392b);
}

/* The copy wizard's comparison. Wider than the 820px it shared with the review dialog, which is
   sized for one column of prose: this holds four three-column tables, and at 820px the operation,
   application and role names each truncated to nothing. Matches the Check Access dialogs' width
   family rather than inventing a third. */
.rbc-modal--copy-table {
	max-width: min(1320px, calc(100vw - 64px));
	/* As tall as the backdrop's own padding leaves (48px above and below), and no taller. Paired
	   with the flex chain below this is a cap, not a height: a short list still gets a short
	   dialog, and only a list long enough to need the room takes it. No magic number for the
	   chrome — the head, search and tabs keep their natural heights and the table absorbs the
	   remainder, so nothing here has to be re-measured when any of them changes. */
	max-height: calc(100vh - 2 * var(--nu-space-7, 48px));
	display: flex;
	flex-direction: column;
}

/* min-height: 0 on every link in the chain: a flex item's default min-height is its content, so
   without it the table refuses to shrink and the dialog grows past the cap instead of scrolling. */
.rbc-modal--copy-table .rbc-modal-body {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.rbc-copy-table-panel {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

/* The panel's height governs here, so the shared 420px cap has to go — it would stop the table
   growing long before the viewport did. The scrolling stays on the table, which is what its
   sticky head is sticky against. */
.rbc-copy-table-panel .rbc-opstable {
	flex: 1 1 auto;
	min-height: 0;
	max-height: none;
}

/* Equal shares of the strip rather than each tab sized to its own label: four labels of very
   different lengths left the strip's trailing edge visibly empty. The 12rem basis is what still
   lets them wrap two-and-two on a narrow viewport instead of crushing to unreadable columns —
   items on the same line share it equally either way. */
.rbc-modal--copy-table .rbc-tab {
	flex: 1 1 12rem;
	min-width: 0;
}

/* Four long section labels, each carrying a count underneath: at Spanish lengths, or on a narrow
   viewport, the strip is wider than the dialog. .rbc-tabs is inline-flex and would simply overflow,
   so here it wraps — every tab stays reachable. Inert in the plan-operations dialog, which shares
   this shell but has no tabs. */
.rbc-modal--copy-table .rbc-tabs {
	display: flex;
	flex-wrap: wrap;
}

/* These tabs sit on a near-black modal rather than a page header. Lift the selected comparison
   section enough to read as a tab in dark mode while retaining the existing white light state. */
.rbc-modal--copy-table .rbc-tab--active {
	background: var(--nu-copy-tab-selected-bg, var(--nu-surface, #fff));
}


/* ---- Three-choice dialog ----
   ContinueManagingModal only. Wider than the shared 820px: three .rbc-choice cards need more room
   than two, but each still holds one short paragraph, so a wider dialog would just stretch them. */
.rbc-modal--choices {
	max-width: 900px;
}

/* ---- User Guide modal (TutorialDialog) ----
   The widest dialog in the app, and as tall as the window allows: it fills the viewport less the
   backdrop's own top and bottom padding, capped at the same 1640px as its width. The height is set
   rather than left to the content: a topic list beside a long article with tables in it, each
   scrolling on its own, so the pager under the article and the search above the list stay put
   while either pane moves. The min-height: 0 chain is the same one the editable Application
   hierarchy dialog uses — without it the grid grows to its content and the body scrolls instead of
   the panes. */
.rbc-modal--tutorial {
	max-width: min(1640px, calc(100vw - 48px));
	height: min(1640px, calc(100vh - 2 * var(--nu-space-7, 48px)));
}

.rbc-modal--tutorial .rbc-modal-body {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	padding: var(--nu-space-4, 16px) var(--nu-space-5, 24px) var(--nu-space-4, 16px);
}


/* The note sits between the request summary and the decision buttons, with a little air
   above it so it does not read as part of the summary list. */
.rbc-review-notes {
	margin: var(--nu-space-4, 16px) 0 0;
}

/* ---- The approval window, between the request's details and the notes ----
   .rbc-quickinfo carries no margin below it and .rbc-modal-body puts no space between its
   children, so without this the pickers' labels butt straight against the details panel. The
   space belongs here rather than on .rbc-quickinfo, which is used elsewhere and would shift
   with it.
   The other half is the reverse problem: .rbc-field's own 16px bottom margin pushed the help
   line a full step away from the two pickers it describes, so it read as a statement about the
   dialog rather than a caption for them. Trimmed to sit with the pair it belongs to, still clear
   of the notes field below. */
.rbc-review-dates {
	margin-top: var(--nu-space-5, 24px);
}

.rbc-review-dates > .rbc-field {
	margin-bottom: 4px;
}

/* Operation chips, stacked in rows the markup chunks two at a time. Not a grid: grid tracks
   are a fixed share of the width, so a short chip left a long gap before the next one. */
.rbc-review-grants {
	display: flex;
	flex-direction: column;
	gap: var(--nu-space-2, 8px);
}

/* Chips sit adjacent at their natural widths; the row never wraps, because how many fit on
   a line is decided by the markup rather than by the available space. */
.rbc-review-grants-row {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: var(--nu-space-2, 8px);
	min-width: 0;
}

/* min-width lets a flex item shrink below its content, so a pair of long operation names
   truncates instead of overflowing the row; the full name is on the chip's title. */
.rbc-review-grants-row .rbc-req-grant {
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
}

.rbc-review-grants-row .rbc-req-grant > :not(.bi) {
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Except the "+N more" button, which shares the row on the Access Request details page. It is
   the shortest thing in the row and the one the reader is aiming at, so the operation names give
   way instead: a truncated "+3 mo…" would hide the count it exists to state. */
.rbc-review-grants-row .rbc-req-grant--more {
	flex: none;
}

/* The "+N more" chip is a button that opens the full, searchable operations list. */
button.rbc-req-grant {
	font: inherit;
	font-size: var(--nu-fs-small, 0.8125rem);
	cursor: pointer;
}

button.rbc-req-grant--more:hover {
	border-color: var(--nu-accent, #006325);
	color: var(--nu-accent, #006325);
}

/* ---- Back-to-top button ----
   Fixed to the viewport's bottom-right, hidden until rbcScrollTop.watch adds is-visible past its
   threshold. Class-toggled from JS rather than re-rendered from C#: the state is one boolean and
   a scroll handler that diffed the component would run on every frame of every scroll.
   Kept out of the layout flow entirely, so it cannot reflow the page it sits over. */
.rbc-scrolltop {
	position: fixed;
	right: var(--nu-space-5, 24px);
	bottom: var(--nu-space-5, 24px);
	z-index: 30;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: 50%;
	background: var(--nu-surface, #fff);
	color: var(--nu-accent, #006325);
	font-size: 1.1rem;
	/* The overlay tier, not the card tier: this is the one control that sits on top of the page
	   rather than in it, and at 44px it needs the depth to read as floating rather than as a
	   round button someone left in the corner. Same token the modal surface uses. */
	box-shadow: var(--nu-shadow-lg, 0 18px 40px rgba(33, 59, 52, 0.16), 0 6px 12px rgba(33, 59, 52, 0.08));
	cursor: pointer;
	/* Not display: none — a hidden button must stay out of the tab order too, and visibility
	   plus pointer-events does that while still allowing the fade. */
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(6px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s, box-shadow 0.15s ease;
}

.rbc-scrolltop.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: none;
}

.rbc-scrolltop:hover {
	border-color: var(--nu-accent, #006325);
	background: var(--nu-bg-tint, #eef5f0);
	box-shadow: var(--nu-shadow-lg);
}

.rbc-scrolltop:focus-visible {
	outline: 2px solid var(--nu-accent, #006325);
	outline-offset: 2px;
}

/* ---- Info popover ----
   An icon beside a field label that opens its help text in place, for a form dense enough that
   the same text as permanent subtext would read as a wall of grey. Not a modal: it is a sentence
   about the field beside it. */
.rbc-infopop-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
}

.rbc-infobtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--nu-ink-3, #7d8e88);
	font-size: 0.9rem;
	line-height: 1;
	cursor: pointer;
}

.rbc-infobtn:hover,
.rbc-infobtn[aria-expanded="true"] {
	color: var(--nu-accent, #006325);
}

.rbc-infobtn:focus-visible {
	outline: 2px solid var(--nu-accent, #006325);
	outline-offset: 1px;
}

/* An input with its info icon to the right rather than beside a label — for a field whose title
   is a section heading, so there is no label for the icon to sit on. The row takes the input's
   bottom margin so the help text below keeps its usual gap. */
.rbc-input-info-row {
	display: flex;
	align-items: center;
	gap: var(--nu-space-2, 8px);
	min-width: 0;
	margin-bottom: var(--nu-space-1, 4px);
}

.rbc-input-info-row > .rbc-input {
	flex: 1 1 auto;
	min-width: 0;
	margin-bottom: 0;
}

/* Anchored to the trigger's trailing edge so the panel opens leftward across the field it
   explains. Deliberately not left-aligned or centred: these sit in a 340px rail whose own
   overflow clips, and either of those would push the panel past it. */
.rbc-infopop {
	position: absolute;
	z-index: 20;
	top: calc(100% + 6px);
	right: 0;
	display: flex;
	flex-direction: column;
	gap: var(--nu-space-2, 8px);
	width: max-content;
	max-width: 17rem;
	padding: var(--nu-space-3, 12px);
	background: var(--nu-surface-raised, #fff);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-md, 8px);
	box-shadow: var(--nu-shadow-md, 0 4px 12px rgba(33, 59, 52, 0.10), 0 2px 4px rgba(33, 59, 52, 0.06));
	font-size: var(--nu-fs-small, 0.8125rem);
	font-weight: var(--nu-fw-regular, 400);
	line-height: var(--nu-lh-normal, 1.5);
	color: var(--nu-ink-2, #4a5f58);
	text-align: left;
	white-space: normal;
}

/* A second sentence in the panel, as its own paragraph rather than running on. */
.rbc-infopop-para {
	display: block;
}

/* Pinned to the viewport by the rbcPopover shim while open. The absolute placement above is the
   fallback for the shim not loading, not the normal case: every current caller sits inside a
   container with its own overflow (the copy wizard's rail scrolls), and an absolute panel is
   clipped by that box — which cut the panel off at the card's edge and asked the reader to scroll
   a container they had no reason to think scrolled. Fixed positioning escapes ancestor overflow
   because a scroll container is not a containing block for it; the shim supplies left/top and
   re-supplies them on scroll and resize. */
.rbc-infopop.is-floating {
	position: fixed;
	right: auto;
	bottom: auto;
}

/* The trigger has scrolled out of view: the panel stays placed so scrolling back does not need a
   second click, but a box pointing at nothing on screen would read as a rendering fault. */
.rbc-infopop.is-detached {
	visibility: hidden;
}

/* One setting inside the panel: its name on the left, its state pinned right so the states read
   down as a column rather than being hunted for at the end of each line. */
.rbc-infopop-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--nu-space-3, 12px);
}

.rbc-infopop-row > span:last-child {
	flex: 0 0 auto;
}

/* A fact stated over two lines — its label, then its value in bold underneath — rather than the
   label-left/state-right row above. For a value that is a *name*: an organization's name broken
   across lines reads as two organizations, and squeezing it into the right-hand half of a row is
   what forced the break. Stacked, it gets the panel's full width.

   The label never wraps; the value is left to wrap only if it exceeds the panel's cap, which is
   graceful degradation rather than the normal case — see .rbc-infopop--fact for the sizing. */
.rbc-infopop-fact {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.rbc-infopop-fact > span:first-child {
	white-space: nowrap;
}

/* The panel holding one of those, sized to its contents. .rbc-infopop caps itself at 17rem because
   it is sized for prose, where a long line is tiring to read; a name is not prose and wants the
   opposite, so the cap here is the viewport and `width: max-content` sizes the panel to the name.
   The viewport term is not optional — the panel is pinned in viewport coordinates by the rbcPopover
   shim, so without it a long enough name walks off the screen edge.

   Any prose sharing the panel keeps the original measure — the "reaches nothing" note is a
   sentence, and letting it set the width would give it one very long line. */
.rbc-infopop--fact {
	max-width: calc(100vw - 2rem);
}
.rbc-infopop--fact .rbc-infopop-para {
	max-width: 17rem;
}

/* Product and application filters can each contain many values, and the Assignment Scope guide
   lists every scope option. Keep their categorized detail readable without letting the panel grow
   beyond the viewport. */
.rbc-infopop--scope {
	width: min(22rem, calc(100vw - 2rem));
	max-width: calc(100vw - 2rem);
	max-height: calc(100vh - 2rem);
	overflow-y: auto;
}

/* The divider between two facts in one panel. .rbc-infopop is a flex column with its own gap, so
   this carries no margin of its own — the gap either side is already the panel's spacing. */
.rbc-infopop-rule {
	margin: 0;
	border: 0;
	border-top: 1px solid var(--nu-border, #dfe5e1);
	opacity: 1;
}

/* A warning mark beside a short message, for a panel whose answer is that it cannot have one —
   the person a stored assignment names is no longer in the directory. Baseline-aligned rather than
   centred so the mark sits on the first line of text however many lines it wraps to, and the mark
   itself never shrinks. Deliberately not .rbc-infopop-loading, which is the same shape: one of
   them means "wait" and this one means "this will not resolve". */
.rbc-infopop-alert {
	display: flex;
	align-items: baseline;
	gap: var(--nu-space-2, 8px);
	max-width: 17rem;
}
.rbc-infopop-alert > .bi {
	flex: 0 0 auto;
	color: var(--nu-tone-amber-fg, #b3730f);
}

/* The popover's own loading state, for content fetched when the panel opens. A row rather than a
   column: it is a spinner and one short word, and .rbc-infopop stacks its children. */
.rbc-infopop-loading {
	display: inline-flex;
	align-items: center;
	gap: var(--nu-space-2, 8px);
}

/* A short list inside an info panel — the organizations beneath the one selected. Bullets kept,
   since these are peers rather than a sentence, and indented only enough to hang them off the
   heading above. */
/* Scrolls rather than grows past ten rows. A division with forty child organizations would
   otherwise open a panel taller than the grid behind it, and one pinned to a cell near the bottom
   of the viewport has nowhere to put that.

   No count in the markup: max-height is expressed in the panel's own line-height, so a list of
   three is untouched and only a list that exceeds ten rows gets a scrollbar. Ten rows is
   calc(1.5em * 10) because .rbc-infopop sets line-height: 1.5 on this font size — change one and
   change both.

   overscroll-behavior stops the scroll chaining into the grid behind once the list hits its end,
   which is the whole reason a reader would resent scrolling in a popover. */
.rbc-infopop-list {
	margin: 0;
	padding-left: var(--nu-space-4, 16px);
	max-height: calc(1.5em * 10);
	overflow-y: auto;
	overscroll-behavior: contain;
}

/* A state that is no longer the default — the thing the "Custom safeguards" line is pointing at,
   so it has to be findable in the list without reading every row. Weight and ink, not a colour:
   green would read as approval and red as a fault, and a changed safeguard is neither. */
.rbc-infopop-changed {
	font-weight: var(--nu-fw-semibold, 600);
	color: var(--nu-ink, #213b34);
}

/* A label with something beside it — the icon goes to the field's trailing edge, which is what
   lets .rbc-infopop open leftward and stay inside its container. */
.rbc-label-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--nu-space-2, 8px);
}

.rbc-label-row > .rbc-label {
	margin-bottom: 0;
}

/* Inline text button (e.g. the operation count on a role the caller already holds). */
.rbc-linkbtn {
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

.rbc-linkbtn:hover:not(:disabled) {
	color: var(--nu-accent, #006325);
}

.rbc-linkbtn:disabled {
	color: var(--nu-ink-3, #7d8e88);
	text-decoration: none;
	cursor: default;
}

/* A quiet secondary action beside a field label — RbcCombobox's ClearLinkText. Small and muted so
   it does not compete with the label it sits beside; the shared hover still turns it green. */
.rbc-linkbtn--muted {
	font-size: var(--nu-fs-small, 0.8125rem);
	color: var(--nu-ink-3, #7d8e88);
}

/* The combobox's own label row keeps the label's usual 5px above the box. */
.rbc-combo-labelrow {
	margin-bottom: 5px;
}

/* Full operations list inside OperationsModal. */
.rbc-ops-list {
	display: flex;
	flex-direction: column;
	gap: 2px;
	max-height: min(50vh, 420px);
	overflow-y: auto;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rbc-ops-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px var(--nu-space-2, 8px);
	border-radius: var(--nu-radius-sm, 4px);
	font-size: var(--nu-fs-small, 0.8125rem);
	color: var(--nu-ink, #213b34);
}

.rbc-ops-item:nth-child(odd) {
	background: var(--nu-bg-tint, #eef5f0);
}

.rbc-ops-item .bi {
	color: var(--nu-accent, #006325);
}

/* ---- Comparison modal's operation table ----
   Columns rather than a run-on line per row: these sections run to hundreds of operations, and a
   reader scanning for one application can only do that when the application names form a column.
   Deliberately not .rbc-ops-list, which OperationsModal also uses and which is a single-column
   list by design. */
.rbc-opstable {
	max-height: min(50vh, 420px);
	overflow-y: auto;
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-sm, 4px);
}

/* One template on every row, head included — that shared template is what makes the columns line
   up, so a row must never set its own. */
.rbc-opstable-row {
	display: grid;
	/* Operation, role, application/product. The operation is the shortest name of the three and
	   was over-wide; the application column has to carry a product name after it, so it takes the
	   room back. Role sits between them because it is what relates the other two. */
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr) minmax(0, 1.6fr);
	gap: var(--nu-space-3, 12px);
	align-items: center;
	padding: 6px var(--nu-space-3, 12px);
	font-size: var(--nu-fs-small, 0.8125rem);
	color: var(--nu-ink, #213b34);
}

/* The plan-operations dialog's table. Same treatment, one more column: those rows carry how the
   operation is granted and how far it reaches, which the comparison's do not, and which used to
   be a run-on muted string at the end of each row. */
.rbc-opstable--wide .rbc-opstable-row {
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) minmax(0, 1.3fr) minmax(0, 1.3fr);
}

/* The head is child 1, so the data rows are the even ones. The semantic stripe stays softly
   green in light mode but is neutral gray in dark mode; a green-black stripe on the dark modal
   read as both a status and a deeper hole rather than simple row separation. */
.rbc-opstable-row:nth-child(even) {
	background: var(--nu-table-stripe, #eef5f0);
}

/* Sticky against .rbc-opstable — its own scroll container, not the modal body. A row this dense
   is unreadable once the header has scrolled off. */
.rbc-opstable-head {
	position: sticky;
	top: 0;
	z-index: 1;
	background: var(--nu-surface, #fff);
	border-bottom: 1px solid var(--nu-border, #dfe5e1);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--nu-ink-3, #7d8e88);
}

/* Single line per cell: a cell that wraps pushes its row taller and breaks the alignment the
   columns exist for, so cells truncate and carry a title instead. */
.rbc-opstable-row > span {
	display: block;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Two classes, so it beats the block rule above on specificity rather than on source order. */
.rbc-opstable-row > span.rbc-opstable-op {
	display: flex;
	align-items: center;
	gap: 6px;
}

.rbc-opstable-op .bi {
	flex: 0 0 auto;
	color: var(--nu-accent, #006325);
}

/* The name is what gives inside the operation cell; the icon and the id keep their size. */
.rbc-opstable-trunc {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rbc-opstable-op .rbc-req-row-id {
	flex: 0 0 auto;
}

/* The plan-operations table's Assignment Scope cell: the one two-line cell in a table of one-line
   ellipsised ones, carrying the scope and where it reaches the way the role rows and the request
   grids do. Two classes so it beats `.rbc-opstable-row > span` on specificity rather than on source
   order — that rule's nowrap + overflow:hidden would clip the second line instead of showing it.
   Each line then ellipsises on its own, and because the row is a grid every cell in it grows to the
   taller height and stays vertically centred. */
.rbc-opstable-row > span.rbc-opstable-scope {
	white-space: normal;
	overflow: visible;
	text-overflow: clip;
}

.rbc-opstable-scope > span {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rbc-req-row--held {
	background: var(--nu-bg-tint, #eef5f0);
}

.rbc-req-row-name {
	font-weight: var(--nu-fw-semibold, 600);
	color: var(--nu-ink, #213b34);
}

.rbc-req-row-tags {
	display: flex;
	flex-wrap: wrap;
	gap: var(--nu-space-2, 8px);
	margin-top: var(--nu-space-1, 4px);
}

/* What a role means, in words, above the pills and operation chips that state it precisely.
   Supplied only by the Administration scope pages (RoleRequestList's SummaryFor), where the
   roles are auto-provisioned and their meaning is fixed. Body-weight rather than muted: it is
   the line most readers there are actually reading. */
.rbc-req-row-summary {
	margin-top: var(--nu-space-1, 4px);
	color: var(--nu-ink-2, #4a5b55);
	font-size: var(--nu-fs-small, 0.8125rem);
	line-height: 1.45;
}

/* The same line when it is an explanation rather than a fact about the row — what an
   auto-provisioned administration role means. Italic sets it apart from the data above it, which
   is all read off the record. */
.rbc-req-row-summary--gloss {
	font-style: italic;
}

/* A card row with a footer stacks: the title/specs and the row actions share the top band,
   and the provenance line runs the full width beneath them. */
.rbc-req-row--withfoot {
	flex-direction: column;
	align-items: stretch;
	gap: 0;
}

.rbc-req-row-body {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--nu-space-4, 16px);
}

/* The card's right-hand column: actions on top, then the pills saying what kind of grant this
   is. Those pills used to sit in the tag row on the left, among the flags describing how the
   request would be handled — but "this is an administration role" and "this is a super-user
   role" change what you are agreeing to, and they matter at the moment you reach for Approve.
   Putting them directly under the buttons is what makes them unmissable there. */
.rbc-req-row-side {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: var(--nu-space-2, 8px);
	flex-shrink: 0;
	/* Reserved, not fitted. .rbc-req-cols splits whatever width .rbc-req-row-main is left with,
	   so a row carrying a pill here took width from the two text columns and started its
	   "Requested for" and "Justification" further left than the plain row above it — the list
	   read as ragged. Holding the widest state (the ReBAC Admin Role pill) means every row hands
	   the same width to its text, whether it has a pill or not. */
	min-width: 11rem;
	/* Full height of the body band, overriding .rbc-req-row-body's align-items: flex-start, so
	   there is free space under the buttons for the pill to sit in the middle of — see the auto
	   margins on .rbc-req-row-flags. Without this the column is only as tall as its content and
	   the pill hangs directly off the buttons however much room is left beneath it. */
	align-self: stretch;
}

/* Right-aligned to the buttons above, and wrapping upward from that edge, so a second pill
   stacks under the first rather than pushing the block back across the card. */
.rbc-req-row-flags {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: var(--nu-space-2, 8px);
}

/* Centred vertically in what is left of the side column: the auto margins split the free space
   above and below, so the pill sits midway between the bottom of the action buttons and the
   footer rather than hanging off the buttons with an empty gap under it. The column's own 8px
   gap survives as a floor and so biases the result 8px low — deliberate, since the alternative
   is a pill flush against the buttons on a card whose left column is shorter than its right.

   Scoped to .rbc-req-row-side, which only PendingRequestRow has. Copy Permissions' role rows
   share .rbc-req-row-flags and put it straight in .rbc-req-row-body beside the dates, where
   there is no free space to centre in and auto margins would only shift the pills. */
.rbc-req-row-side .rbc-req-row-flags {
	align-content: center;
	margin-block: auto;
}

/* Request id at one end, requester at the other — quieter than anything above it, because it
   is what you quote when chasing the request rather than what you read to understand it. */
.rbc-req-row-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--nu-space-2, 8px) var(--nu-space-4, 16px);
	margin-top: var(--nu-space-3, 12px);
	padding-top: var(--nu-space-2, 8px);
	border-top: 1px solid var(--nu-border, #dfe5e1);
	font-size: var(--nu-fs-eyebrow, 0.75rem);
	color: var(--nu-ink-3, #7d8e88);
}

/* Title line that carries a pill beside the name. Scoped to its own class because
   .rbc-req-row-name is shared with the role-request list, where the name stands alone. */
.rbc-req-row-head {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--nu-space-2, 8px);
}

/* A card row's detail band: the request's facts on the left, its justification on the right.
   The prose column takes the larger share, and both collapse to full width when the card is
   too narrow to split. */
.rbc-req-cols {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	gap: var(--nu-space-2, 8px) var(--nu-space-5, 24px);
	align-items: start;
	margin-top: var(--nu-space-2, 8px);
}

@media (max-width: 800px) {
	.rbc-req-cols {
		grid-template-columns: 1fr;
	}
}

/* The request's own specs, inside a card row: label/value pairs on one wrapping line rather
   than a two-column list, so a short row stays one line tall and a long one grows by lines
   instead of stretching the card. */
.rbc-req-specs {
	display: flex;
	flex-wrap: wrap;
	gap: var(--nu-space-1, 4px) var(--nu-space-5, 24px);
	margin: var(--nu-space-2, 8px) 0 0;
	font-size: var(--nu-fs-small, 0.8125rem);
}

/* One pair per line, for the specs column inside .rbc-req-cols — the grid supplies the
   spacing above, so this drops its own top margin. The gap matches
   .rbc-req-reason-label--spaced's, since each pair is now two lines tall rather than one and the
   two columns have to keep one rhythm. */
.rbc-req-specs--stacked {
	flex-direction: column;
	flex-wrap: nowrap;
	gap: var(--nu-space-2, 8px);
	margin: 0;
}

/* Inside the two-column band a spec heads its value instead of sitting beside it, matching the
   reason column's label-over-value shape — so a caption is a caption in both halves of the card
   rather than bold on the right and muted-inline on the left. Two reasons beyond symmetry: a long
   application name or a "Other · Cold Finish Division" scope wrapped under its own label and read
   as a second value, and the label column's width was set by the longest label rather than by the
   content. Scoped to the modifier, so .rbc-req-spec keeps its inline shape wherever the specs are
   a wrapping row. */
.rbc-req-specs--stacked .rbc-req-spec {
	display: block;
}

.rbc-req-specs--stacked .rbc-req-spec dt {
	font-weight: var(--nu-fw-semibold, 600);
	color: var(--nu-ink-2, #4a5f58);
}

/* The value drops to regular weight now that the label above it carries the emphasis — medium
   under semibold read as two headings. */
.rbc-req-specs--stacked .rbc-req-spec dd {
	font-weight: var(--nu-fw-regular, 400);
}

.rbc-req-reason {
	min-width: 0;
	font-size: var(--nu-fs-small, 0.8125rem);
}

/* Heads its own column rather than labelling a pair, so it carries the weight the stacked
   spec labels beside it do not. */
.rbc-req-reason-label {
	font-weight: var(--nu-fw-semibold, 600);
	color: var(--nu-ink-2, #4a5f58);
}

.rbc-req-spec {
	display: flex;
	align-items: baseline;
	gap: 6px;
	min-width: 0;
}

.rbc-req-spec dt {
	color: var(--nu-ink-3, #7d8e88);
}

.rbc-req-spec dd {
	margin: 0;
	color: var(--nu-ink-2, #4a5f58);
	font-weight: var(--nu-fw-medium, 500);
	overflow-wrap: anywhere;
}

/* The requester's own words. Clamped to two lines: it is context inside a list, and the full
   text is on the request's detail page (and in the row's title attribute). */
/* The "requested for" value in the reason column. Same size and ink as the justification
   beneath it, but a single clamped line — it is one identifier, and letting a long UPN take two
   lines would push the justification out of the card. */
/* Separates the justification's label from the value above it. Only on the second label in the
   column, so the first still sits flush with the top of the block. */
.rbc-req-reason-label--spaced {
	margin-top: var(--nu-space-2, 8px);
}

.rbc-req-row-reason {
	margin: 0;
	font-size: var(--nu-fs-small, 0.8125rem);
	color: var(--nu-ink-2, #4a5f58);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Sits where the Request button sits on the rows that offer one, so the eye can run down the
   column and read which roles are already held. Deliberately not button-shaped: there is
   nothing to press, and larger and bolder than the button's label because it is the answer
   someone scanning this list is looking for. */
.rbc-req-assigned {
	align-self: center;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 4px;
	color: var(--nu-accent, #006325);
	font-size: var(--nu-fs-body, 0.9375rem);
	font-weight: var(--nu-fw-bold, 700);
	white-space: nowrap;
}

.rbc-req-assigned .bi {
	font-size: 1.05rem;
}

/* In the wizard picker the assigned marker is a secondary signal (the primary action is choosing a
   role), so it reads at the row's own scale rather than the catalog's deliberate larger emphasis. */
.rbc-rolepick-row .rbc-req-assigned {
	padding: 0;
	font-size: var(--nu-fs-small, 0.8125rem);
	font-weight: var(--nu-fw-semibold, 600);
}

.rbc-rolepick-row .rbc-req-assigned .bi {
	font-size: 1rem;
}

/* ---- Existing-assignment scopes on the wizard picker's selected row ----
   Sits under the operations the role grants, separated by a hairline so the two read as different
   kinds of fact rather than one long list. Amber, matching the review banner that names the same
   scopes: this is context the user should weigh, not an error and not part of what the role grants. */
.rbc-req-row-scopes {
	margin-top: var(--nu-space-2, 8px);
	padding-top: var(--nu-space-2, 8px);
	border-top: 1px solid var(--nu-border, #e3e8e5);
	font-size: var(--nu-fs-small, 0.8125rem);
}

.rbc-req-row-scopes-label {
	display: block;
	margin-bottom: 6px;
	font-weight: var(--nu-fw-semibold, 600);
	color: var(--nu-tone-amber-fg, #b3730f);
}

.rbc-req-scopes {
	display: flex;
	flex-wrap: wrap;
	gap: var(--nu-space-2, 8px);
}

.rbc-req-scope {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 9px;
	border-radius: var(--nu-radius-sm, 4px);
	background: var(--nu-tone-amber-bg, #fdf3e2);
	color: var(--nu-tone-amber-fg, #b3730f);
	font-size: var(--nu-fs-eyebrow, 0.75rem);
	font-weight: var(--nu-fw-semibold, 600);
}

/* The overflow count is a label, not another scope — outlined rather than filled so it does not
   read as one more place the role is held. */
.rbc-req-scope--more {
	background: transparent;
	border: 1px solid var(--nu-tone-amber-fg, #b3730f);
}

.rbc-req-empty {
	color: var(--nu-ink-3, #7d8e88);
	font-size: var(--nu-fs-small, 0.8125rem);
}

/* Grants list on the confirm step */
.rbc-req-grants {
	display: flex;
	flex-wrap: wrap;
	gap: var(--nu-space-2, 8px);
	margin-top: var(--nu-space-2, 8px);
}

.rbc-req-grant {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: var(--nu-fs-small, 0.8125rem);
	color: var(--nu-ink, #213b34);
	background: var(--nu-bg-tint, #eef5f0);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-pill, 999px);
	padding: 4px 10px;
}

.rbc-req-grant .bi {
	color: var(--nu-accent, #006325);
}


/* ===== Startup screen =====
   One appearance shared by every full-page loading state between opening the app and the shell
   being usable: the pre-Blazor screen in index.html, App.razor's Authorizing branch,
   Authentication.razor's sign-in overlays, and AppReadyGate.

   They belong to four different owners and fire at four different moments, and a cold start
   passes through several back to back — so what makes the startup read as one continuous load
   rather than pages flashing past is that none of the handovers are visible. Identical
   background, spinner geometry and text position mean the only thing that changes across a
   handover is the caption. Change one of these and change all four, or the seams come back.

   These live here rather than in index.html's own <style> because index.html links app.css in
   <head>, before the framework loads — so the static screen and the Blazor ones can genuinely
   share the declarations instead of keeping two copies that drift. */
.rbc-boot {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	/* --nu-bg-alt, not --nu-bg: this is the colour .rbc-content already paints, so the last
	   handover of all — boot screen to shell — leaves the background where it is and draws the
	   sidebar and content on top, rather than flashing white to off-white underneath them. */
	background: var(--nu-bg-alt, #f5f4f0);
}

.rbc-boot-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--nu-space-4, 16px);
	/* Optically centred: a block sitting on the true vertical centre reads as low. */
	transform: translateY(-6%);
}

.rbc-boot-spinner {
	/* border-box because this stylesheet has no global box-sizing reset: without it the border
	   lands outside the 2.5rem and the spinner is 46px, which is not what the rule says. */
	box-sizing: border-box;
	width: 2.5rem;
	height: 2.5rem;
	border: 3px solid var(--nu-border, #dfe5e1);
	border-top-color: var(--nu-accent, #006325);
	border-radius: 50%;
	animation: rbc-boot-spin 0.8s linear infinite;
}

@keyframes rbc-boot-spin {
	to { transform: rotate(360deg); }
}

.rbc-boot-text {
	margin: 0;
	font-size: var(--nu-fs-small, 0.8125rem);
	color: var(--nu-ink-2, #4a5f58);
}

/* Defined here rather than relied on from a vendor bundle: the pre-Blazor screen in index.html
   uses it for the spinner's screen-reader label, and app.css is the only stylesheet guaranteed
   to have loaded at that point. */
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (prefers-reduced-motion: reduce) {
	.rbc-boot-spinner { animation-duration: 2.4s; }
}

/* Loading / centered states */
.rbc-loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--nu-space-2, 8px);
	padding: var(--nu-space-7, 48px);
	color: var(--nu-ink-3, #7d8e88);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
	.rbc-detail-grid,
	.rbc-form-grid {
		grid-template-columns: 1fr;
	}

	.rbc-detail-groups--split {
		grid-template-columns: 1fr;
	}

	.rbc-rail,
	.rbc-help-card {
		position: static;
		max-height: none;
		overflow-y: visible;
	}
}

@media (max-width: 560px) {
	.rbc-application-settings-row {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.rbc-overview {
		grid-template-columns: 1fr;
		gap: 2px var(--nu-space-4, 16px);
	}

	.rbc-overview dt {
		margin-top: var(--nu-space-2, 8px);
	}
}

/* ============================================================================
   Sidebar navigation (GLOBAL)
   ----------------------------------------------------------------------------
   Must be global, not scoped to the NavMenu component: Blazor CSS isolation
   does NOT add the scope attribute to the <a> that <NavLink> renders, so
   scoped rules never reach the nav links. All classes are rbc-nav*/rbc-brand*
   so there is no leakage risk.
   ============================================================================ */
.rbc-nav {
	display: flex;
	flex-direction: column;
	height: 100vh;
	flex: 1 1 auto;
	min-height: 100vh;
	background: var(--nu-sidebar-bg, #213b34);
	color: var(--nu-ink-on-dark, #fff);
	overflow: hidden;
}

/* The same band as the top bar across from it: one line, centred, at --nu-topbar-h. Deliberately
   the *same recipe* as .rbc-topbar — that height, zero vertical padding, a 1px bottom border and
   no box-sizing of its own — rather than a number that matches today. Vertical padding would be
   added to the height wherever the page reset is content-box, and declaring border-box here alone
   would make this box 60px outer while the top bar's stayed 61px. Mirroring it keeps the two
   aligned under either reset.

   It was a two-line block (title over the Nucor wordmark) with 16px of vertical padding. The
   wordmark is gone; the title has the block to itself. */
.rbc-brand {
	display: flex;
	align-items: center;
	height: var(--nu-topbar-h, 60px);
	padding: 0 var(--nu-space-5, 24px);
	text-decoration: none;
	border-bottom: 1px solid var(--nu-line-on-dark, #34534a);
	overflow: hidden;
}

/* 1.8rem, between the 1.5 it wore under the wordmark and the 2.25 it took when the wordmark went.
   At 1.5 the word sat in the corner looking like a caption for the empty space beside it; at 2.25
   it crowded the band it sits in. ~37px is the hard ceiling rather than a preference — Termina's
   content area is 1.597em (see the metrics below), so past that it no longer fits the band's 59px
   at all, which is what kept 2.25 from reading as headroom.

   line-height: 1 because the box is what flex centres, and 1em is the smallest honest one here;
   the content area overflows it either way, invisibly, "ReBAC" having no descenders.

   `top` is an optical centring correction, measured from the font rather than guessed:
   Termina's ascent is 1100 and its descent 497 per 1000-unit em, so the content area's centre —
   which is what `align-items: center` lines up — sits 0.7985em below its top. The glyphs' own
   centre is the baseline less half the 700 cap height, 0.750em down. That leaves the word sitting
   0.0485em high (1.55px at this size), which is small and, in a band this shallow against a
   1px rule, visible. The correction is in em, so it rides a font-size change without recomputing. A transform would do it too; `top` keeps text off the compositor.
   **Recompute this if the font, its weight or the vertical padding changes** — it is specific to
   Termina 600 and to a cap-height-only word. */
.rbc-brand-title {
	font-family: termina, var(--fe-heading-font-family, var(--nu-font));
	font-size: 1.8rem;
	font-weight: var(--nu-fw-semibold, 600);
	color: var(--nu-ink-on-dark, #fff);
	line-height: 1;
	position: relative;
	top: 0.0485em;
}

.rbc-nav-scroll {
	flex: 1;
	overflow-y: auto;
	padding: var(--nu-space-3, 12px) var(--nu-space-3, 12px) var(--nu-space-5, 24px);
}

.rbc-nav-scroll::-webkit-scrollbar { width: 8px; }
.rbc-nav-scroll::-webkit-scrollbar-thumb { background: var(--nu-line-on-dark, #34534a); border-radius: 4px; }

.rbc-nav-group { margin-bottom: var(--nu-space-3, 12px); }

.rbc-nav-section {
	font-size: var(--nu-fs-small, 0.8125rem);
	letter-spacing: var(--nu-tracking-eyebrow, 0.08em);
	text-transform: uppercase;
	color: var(--nu-ink-on-dark-2, #b9ccc4);
	font-weight: var(--nu-fw-semibold, 600);
	padding: var(--nu-space-3, 12px) var(--nu-space-3, 12px) var(--nu-space-2, 8px);
}

/* The sections that collapse. Same type as the static headers — they read as one set —
   but rendered as a full-width button with a chevron. */
.rbc-nav-section--toggle {
	display: flex;
	align-items: center;
	gap: var(--nu-space-2, 8px);
	width: 100%;
	background: none;
	border: 0;
	font-family: inherit;
	text-align: left;
	cursor: pointer;
	border-radius: var(--nu-radius-sm, 4px);
}

.rbc-nav-section--toggle:hover,
.rbc-nav-section--toggle:focus-visible {
	color: var(--nu-ink-on-dark, #fff);
}

.rbc-nav-section-text {
	flex: 1 1 auto;
	min-width: 0;
}

/* Lifted half a pixel so the chevron reads as centred on the label rather than under it.
   `align-items: center` on the row centres the two *boxes*, which is not the same as centring
   what you see. Measured with the real fonts (Arial 600 @13px uppercase; Bootstrap Icons @11px):
   the label is all caps, so its ink is cap-height only — 34.54..44.17, centre 39.35 — while the
   chevron's ink runs 37.46..42.30, centre 39.88. The glyph therefore sits 0.53px low, about a
   tenth of its own 4.8px height, and on a 2x display that is a full device pixel.

   Offset with position rather than transform on purpose: the collapsed rule below owns transform
   for the rotation, and a translate here would be overwritten by it — the caret would jump as the
   section closed. */
.rbc-nav-section-caret {
	flex: 0 0 auto;
	font-size: 0.6875rem;
	position: relative;
	top: -0.5px;
	transition: transform 160ms ease;
}

.rbc-nav-section--collapsed .rbc-nav-section-caret {
	transform: rotate(-90deg);
}

/* The collapsing region.

   Height cannot be transitioned from a number to `auto`, so the wrapper is a one-row grid
   and the row itself animates between 0fr and 1fr — which does interpolate. The links stay
   in the DOM throughout, which is what makes the animation possible at all; visibility
   takes them out of the tab order once closed, delayed so they remain on screen for the
   duration of the collapse rather than vanishing at its start. */
.rbc-nav-collapse {
	display: grid;
	grid-template-rows: 1fr;
	transition: grid-template-rows 220ms ease;
}

.rbc-nav-collapse.is-collapsed {
	grid-template-rows: 0fr;
}

.rbc-nav-collapse-inner {
	overflow: hidden;
	min-height: 0;
	visibility: visible;
}

/* Held visible for the length of the collapse, then hidden — which also takes the links out
   of the tab order. Longhands rather than the shorthand, whose duration/delay ordering
   serializes ambiguously. */
.rbc-nav-collapse.is-collapsed .rbc-nav-collapse-inner {
	visibility: hidden;
	transition-property: visibility;
	transition-duration: 0s;
	transition-delay: 220ms;
}

/* Marks a closed section that contains the page being shown, so collapsing one never
   loses track of where you are. Same cool blue as the active-item marker. */
.rbc-nav-section-dot {
	flex: 0 0 auto;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--nu-accent-cool, #7cc5eb);
}

@media (prefers-reduced-motion: reduce) {
	.rbc-nav-section-caret { transition: none; }
	.rbc-nav-collapse { transition: none; }
	.rbc-nav-collapse.is-collapsed .rbc-nav-collapse-inner { transition: none; }
}

.rbc-nav-link {
	display: flex;
	align-items: center;
	gap: var(--nu-space-3, 12px);
	padding: 7px 12px;
	margin-bottom: 2px;
	border-radius: var(--nu-radius-md, 8px);
	border-left: 3px solid transparent;
	color: var(--nu-ink-on-dark-nav, #cdddd5);
	text-decoration: none;
	font-size: var(--nu-fs-small, 0.8125rem);
	font-weight: var(--nu-fw-medium, 500);
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
	white-space: nowrap;
}

.rbc-nav-link:hover {
	background: var(--nu-on-dark-wash-soft, rgba(255, 255, 255, 0.06));
	color: var(--nu-ink-on-dark, #fff);
}

.rbc-nav-link.active {
	background: var(--nu-on-dark-wash-selected, rgba(255, 255, 255, 0.10));
	color: var(--nu-ink-on-dark, #fff);
	font-weight: var(--nu-fw-bold, 700);
	border-left-color: var(--nu-accent-cool, #7cc5eb);
}

.rbc-nav-link.active .rbc-nav-icon { color: var(--nu-accent-cool, #7cc5eb); }

.rbc-nav-icon {
	flex-shrink: 0;
	width: 16px;
	font-size: 0.95rem;
	color: var(--nu-ink-on-dark-muted, #8aa79c);
	text-align: center;
}

.rbc-nav-label {
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rbc-nav-badge {
	margin-left: auto;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.7rem;
	font-weight: var(--nu-fw-bold, 700);
	color: var(--nu-on-accent, #fff);
	background: var(--nu-accent-fill, #006325);
	border-radius: var(--nu-radius-pill, 999px);
}

/* Collapsed rail (desktop) */
.rbc-nav--collapsed .rbc-nav-section,
.rbc-nav--collapsed .rbc-nav-label,
.rbc-nav--collapsed .rbc-nav-badge { display: none; }

.rbc-nav--collapsed .rbc-nav-link {
	justify-content: center;
	gap: 0;
	padding-left: 0;
	padding-right: 0;
}

/* Hide the whole brand/logo section on the collapsed rail — it only shows when expanded */
.rbc-nav--collapsed .rbc-brand { display: none; }

/* Collapsed footer: person icon only (hide name + chevron) */
.rbc-nav--collapsed .rbc-nav-footer .btn-link span,
.rbc-nav--collapsed .rbc-nav-footer .btn-link .bi-chevron-down { display: none; }

.rbc-nav--collapsed .rbc-nav-footer .btn-link {
	justify-content: center;
	padding-left: 0;
	padding-right: 0;
}

.rbc-nav--collapsed .rbc-nav-footer .btn-link .bi-person-circle {
	margin-right: 0 !important;
}

/* ===== Sidebar footer (logged-in user chip) ===== */
.rbc-nav-footer {
	margin-top: auto;
	flex-shrink: 0;
	border-top: 1px solid var(--nu-line-on-dark, #34534a);
	padding: var(--nu-space-1, 4px) var(--nu-space-2, 8px);
}

/* LoginDisplay renders a bootstrap .btn-link; make it a full-width chip on the dark sidebar */
.rbc-nav-footer .btn-link {
	color: var(--nu-ink-on-dark, #fff) !important;
	width: 100%;
	justify-content: flex-start;
	padding: 6px 8px;
	border-radius: var(--nu-radius-md, 8px);
}

.rbc-nav-footer .btn-link:hover {
	background: var(--nu-on-dark-wash-soft, rgba(255, 255, 255, 0.06));
	text-decoration: none;
}

.rbc-nav-footer .dropdown-menu {
	min-width: 220px;
}

/* Open the user menu upward so it isn't clipped at the bottom of the viewport */
.rbc-nav-footer .dropdown-menu.show {
	top: auto !important;
	bottom: 100%;
	left: 0;
	right: auto;
	margin: 0 0 var(--nu-space-2, 8px) 0 !important;
}

.rbc-user-preferences {
	display: flex;
	flex-direction: column;
}

.culture-selector {
	min-width: 150px;
	width: 100%;
}

/* CultureSelector deliberately remains a native select: a two-item language list does not need
   the search field or extra interaction of RbcCombobox. Its closed control still shares that
   component's surface, dimensions and focus treatment so the user menu reads as one system. */
.rbc-culture-select {
	position: relative;
}

.rbc-culture-select-control {
	appearance: none;
	width: 100%;
	min-height: 40px;
	padding: 8px 34px 8px 12px;
	background: var(--nu-surface, #fff);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-md, 8px);
	font: inherit;
	color: var(--nu-ink, #213b34);
	cursor: pointer;
}

.rbc-culture-select-control:hover {
	border-color: var(--nu-accent, #006325);
}

.rbc-culture-select-control:focus-visible {
	outline: none;
	border-color: var(--nu-accent, #006325);
	box-shadow: 0 0 0 3px var(--nu-focus-soft, #eef5f0);
}

.rbc-culture-select-caret {
	position: absolute;
	top: 50%;
	right: 12px;
	transform: translateY(-50%);
	color: var(--nu-ink-3, #7d8e88);
	pointer-events: none;
}

.rbc-theme-setting {
	display: flex;
	flex-direction: column;
}

.rbc-theme-setting--separated {
	margin-top: var(--nu-space-3, 12px);
	padding-top: var(--nu-space-3, 12px);
	border-top: 1px solid var(--nu-border, #dfe5e1);
}

.rbc-theme-tabs {
	align-self: flex-start;
}

.rbc-theme-tabs .rbc-tab {
	padding-inline: 9px;
	white-space: nowrap;
}

.rbc-theme-tabs .rbc-tab--active {
	background: var(--nu-theme-tab-selected-bg, var(--nu-surface, #fff));
}

/* ===== Developer documentation browser ===== */
.rbc-page--developer-docs {
	min-height: 0;
}

/* The User Guide page: TutorialBrowser on a card, sized like the docs viewer so the two
   Documentation pages sit the same on screen. The browser's own grid fills the card and each pane
   scrolls inside it. */
.rbc-page--user-guide {
	min-height: 0;
}

.rbc-user-guide-viewer {
	display: flex;
	flex-direction: column;
	min-width: 0;
	height: calc(100vh - 210px);
	min-height: 440px;
	padding: var(--nu-space-4, 16px) var(--nu-space-5, 24px);
	background: var(--nu-surface, #fff);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-lg, 14px);
	box-shadow: var(--nu-shadow-sm, 0 1px 3px rgba(33, 59, 52, 0.1));
}

.rbc-docs-viewer {
	display: flex;
	flex-direction: column;
	min-width: 0;
	height: calc(100vh - 210px);
	min-height: 440px;
	background: var(--nu-surface, #fff);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-lg, 14px);
	box-shadow: var(--nu-shadow-sm, 0 1px 3px rgba(33, 59, 52, 0.1));
	overflow: hidden;
}

.rbc-docs-viewer-head {
	display: flex;
	align-items: center;
	gap: var(--nu-space-2, 8px);
	padding: 10px var(--nu-space-4, 16px);
	border-bottom: 1px solid var(--nu-border, #dfe5e1);
	font-family: var(--nu-font-mono);
	font-size: var(--nu-fs-tiny, 0.6875rem);
	color: var(--nu-ink-3, #7d8e88);
	overflow-wrap: anywhere;
}

.rbc-docs-viewer-head .bi {
	color: var(--nu-accent, #006325);
}

.rbc-doc-markdown {
	flex: 1 1 auto;
	min-height: 0;
	overflow: auto;
	padding: var(--nu-space-5, 24px) clamp(20px, 4vw, 52px) var(--nu-space-7, 48px);
	color: var(--nu-ink-2, #4a5f58);
	font-size: var(--nu-fs-body, 0.9375rem);
	line-height: 1.65;
}

.rbc-doc-markdown > :first-child {
	margin-top: 0;
}

.rbc-doc-markdown h1,
.rbc-doc-markdown h2,
.rbc-doc-markdown h3,
.rbc-doc-markdown h4 {
	color: var(--nu-ink, #213b34);
	line-height: var(--nu-lh-snug, 1.3);
	scroll-margin-top: var(--nu-space-4, 16px);
}

.rbc-doc-markdown h1 {
	font-size: var(--nu-fs-h1, 1.75rem);
	margin: 0 0 var(--nu-space-5, 24px);
}

.rbc-doc-markdown h2 {
	font-size: var(--nu-fs-h2, 1.375rem);
	margin: var(--nu-space-7, 48px) 0 var(--nu-space-3, 12px);
	padding-bottom: var(--nu-space-2, 8px);
	border-bottom: 1px solid var(--nu-border, #dfe5e1);
}

.rbc-doc-markdown h3 {
	font-size: var(--nu-fs-h3, 1.125rem);
	margin: var(--nu-space-5, 24px) 0 var(--nu-space-2, 8px);
}

.rbc-doc-markdown h4 {
	font-size: var(--nu-fs-h4, 1rem);
	margin: var(--nu-space-4, 16px) 0 var(--nu-space-2, 8px);
}

.rbc-doc-markdown p,
.rbc-doc-markdown ul,
.rbc-doc-markdown ol,
.rbc-doc-markdown blockquote,
.rbc-doc-markdown pre,
.rbc-doc-markdown table {
	margin: 0 0 var(--nu-space-4, 16px);
}

.rbc-doc-markdown a {
	color: var(--nu-accent, #006325);
	font-weight: var(--nu-fw-semibold, 600);
	text-underline-offset: 2px;
}

.rbc-doc-markdown code {
	padding: 2px 5px;
	border-radius: var(--nu-radius-sm, 4px);
	background: var(--nu-bg-alt, #f5f4f0);
	font-family: var(--nu-font-mono);
	font-size: 0.88em;
	color: var(--nu-ink, #213b34);
}

.rbc-doc-markdown pre {
	max-width: 100%;
	padding: var(--nu-space-4, 16px);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-md, 8px);
	background: var(--nu-bg-alt, #f5f4f0);
	overflow-x: auto;
}

.rbc-doc-markdown pre code {
	padding: 0;
	background: transparent;
	font-size: var(--nu-fs-small, 0.8125rem);
}

.rbc-doc-markdown blockquote {
	padding: var(--nu-space-3, 12px) var(--nu-space-4, 16px);
	border-left: 3px solid var(--nu-accent, #006325);
	background: var(--nu-bg-tint, #eef5f0);
}

.rbc-doc-markdown blockquote > :last-child {
	margin-bottom: 0;
}

.rbc-doc-markdown table {
	display: block;
	max-width: 100%;
	border-collapse: collapse;
	overflow-x: auto;
}

.rbc-doc-markdown th,
.rbc-doc-markdown td {
	padding: 8px 10px;
	border: 1px solid var(--nu-border, #dfe5e1);
	text-align: left;
	vertical-align: top;
}

.rbc-doc-markdown th {
	background: var(--nu-bg-alt, #f5f4f0);
	color: var(--nu-ink, #213b34);
}

.rbc-doc-markdown img {
	max-width: 100%;
	height: auto;
}

.rbc-docs-empty {
	margin: 0;
	color: var(--nu-ink-3, #7d8e88);
}

@media (max-width: 900px) {
	.rbc-docs-viewer,
	.rbc-user-guide-viewer {
		min-height: 560px;
	}

	.rbc-user-guide-viewer {
		padding: var(--nu-space-3, 12px) var(--nu-space-4, 16px);
	}
}

.hover-shadow-lg:hover {
	box-shadow: var(--nu-shadow-lg) !important;
	transition: box-shadow 0.3s ease-in-out;
}


/* ==========================================================================
   3. APP-LEVEL OVERRIDES & FIXES
   ======================================================================= */

/* Paints a grid surface where the .rbc-grid-wrap card is deliberately absent — the Copy
   Permissions pickers are the only remaining users. Named for the FluentUI grid this app no
   longer contains; the rules that targeted fluent-data-grid* went with it.

   The value comes from the token. It was "#ffffff !important", which outranked
   .rbc-grid-wrap's own --nu-surface on every grid card in the app, so no change to the
   surface token could ever reach a grid. */
/* Fix for FeFlexGrid to prevent black areas on resize.
   Ensure proper background rendering across all screen sizes. */
.fe-flex-grid,
.fe-flex-grid-item {
    background-color: transparent !important;
}

/* Ensure main layout areas inherit the active page background. */
#app,
.page-no-sidebar,
main,
article {
    background-color: var(--nu-bg, #fff);
}

/* The pinned Iron bundle's semantic components follow data-fe-theme, but Bootstrap's direct
   colour utilities retain their light palette. These are the utilities ReBAC markup still uses;
   point their text roles at Iron's dark emphasis tokens so validation and diagnostic pages do
   not become the last light-only islands. Filled bg-* utilities intentionally keep their brand
   colours and matching contrast text. */
[data-fe-theme="dark"] .text-primary {
	color: var(--fe-primary-text-emphasis) !important;
}

[data-fe-theme="dark"] .text-success {
	color: var(--fe-success-text-emphasis) !important;
}

[data-fe-theme="dark"] .text-danger {
	color: var(--fe-danger-text-emphasis) !important;
}

[data-fe-theme="dark"] .text-warning {
	color: var(--fe-warning-text-emphasis) !important;
}

[data-fe-theme="dark"] .text-info {
	color: var(--fe-info-text-emphasis) !important;
}

[data-fe-theme="dark"] .text-dark {
	color: var(--nu-ink, #dee2e6) !important;
}

[data-fe-theme="dark"] .bg-light {
	background-color: var(--nu-bg-alt, #121412) !important;
	color: var(--nu-ink, #dee2e6);
}

[data-fe-theme="dark"] .border-warning {
	border-color: var(--nu-tone-amber-border, #916e03) !important;
}

/* Theme-aware replacements for the two Bootstrap utilities whose names pin a surface or ink to
   the light palette. Kept small and explicit so routed diagnostic/auth pages can share tokens
   without inventing page-local colours. */
.rbc-theme-surface-alt {
	background-color: var(--nu-bg-alt, #f5f4f0) !important;
	color: var(--nu-ink, #213b34);
}

.rbc-theme-ink {
	color: var(--nu-ink, #213b34) !important;
}


/* ==========================================================================
   4. MIGRATED COMPONENT & PAGE STYLES  (formerly co-located .razor.css)
   ----------------------------------------------------------------------------
   Consolidated here so all global rbc-* rules live in one file. Duplicate modal
   shell + card base rules were dropped (already defined above). No scoped
   .razor.css files remain in the project — see section 5 for the former shell
   and Copy-page styles.
   ======================================================================= */

/* ---- from StatusPill.razor.css: StatusPill (status badges) ---- */
.rbc-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: var(--nu-fs-eyebrow, 0.75rem);
    font-weight: var(--nu-fw-semibold, 600);
    line-height: 1;
    padding: 4px 10px;
    border-radius: var(--nu-radius-pill, 999px);
    white-space: nowrap;
}

.rbc-pill--green {
    background: var(--nu-tone-green-bg, #e8f2ec);
    color: var(--nu-tone-green-fg, #1a7a3e);
}

.rbc-pill--amber {
    background: var(--nu-tone-amber-bg, #fdf3e2);
    color: var(--nu-tone-amber-fg, #b3730f);
}

.rbc-pill--orange {
    background: var(--nu-tone-orange-bg, #fdf0e6);
    color: var(--nu-tone-orange-fg, #ac4e19);
}

.rbc-pill--red {
    background: var(--nu-tone-red-bg, #fdecea);
    color: var(--nu-tone-red-fg, #c0392b);
}

.rbc-pill--blue {
    background: var(--nu-tone-blue-bg, #eaf1f7);
    color: var(--nu-tone-blue-fg, #2b6f9e);
}

.rbc-pill--purple {
    background: var(--nu-tone-purple-bg, #f2eef7);
    color: var(--nu-tone-purple-fg, #6b5296);
}

.rbc-pill--gray {
    background: var(--nu-tone-gray-bg, #eef1ef);
    color: var(--nu-tone-gray-fg, #7d8e88);
}

/* ---- from ToggleSwitch.razor.css: ToggleSwitch (pill toggle) ---- */
.rbc-toggle {
    display: flex;
    align-items: flex-start;
    gap: var(--nu-space-3, 12px);
}

.rbc-toggle-track {
    position: relative;
    flex-shrink: 0;
    width: 40px;
    height: 22px;
    padding: 0;
    border: none;
    border-radius: var(--nu-radius-pill, 999px);
    background: var(--nu-switch-track, #cdd6d1);
    cursor: pointer;
    transition: background-color 0.15s ease;
    margin-top: 1px;
}

.rbc-toggle-track--on {
    background: var(--nu-accent-fill, #006325);
}

.rbc-toggle-track--danger {
    background: var(--nu-tone-red-fg, #c0392b);
}

.rbc-toggle-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--nu-switch-knob, #fff);
    box-shadow: var(--nu-shadow-switch, 0 1px 2px rgba(0, 0, 0, 0.2));
    transition: transform 0.15s ease;
}

.rbc-toggle-track--on .rbc-toggle-knob {
    transform: translateX(18px);
}

.rbc-toggle--disabled {
    opacity: 0.55;
}

.rbc-toggle--disabled .rbc-toggle-track {
    cursor: default;
}

.rbc-toggle-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.rbc-toggle-label {
	display: inline-flex;
	align-items: center;
	gap: 4px;
    font-size: var(--nu-fs-body, 0.9375rem);
    font-weight: var(--nu-fw-medium, 500);
    color: var(--nu-ink, #213b34);
}

.rbc-toggle-desc {
    font-size: var(--nu-fs-small, 0.8125rem);
    color: var(--nu-ink-3, #7d8e88);
    line-height: var(--nu-lh-snug, 1.3);
}

/* ---- from ConflictBanner.razor.css: ConflictBanner (guardrail banner) ---- */
.rbc-banner {
    display: flex;
    align-items: flex-start;
    gap: var(--nu-space-3, 12px);
    padding: var(--nu-space-3, 12px) var(--nu-space-4, 16px);
    border-radius: var(--nu-radius-md, 8px);
    border: 1px solid transparent;
}

/* .rbc-page is a flex column with a 24px gap, which is the right rhythm between a header and a
   working area and too much stacked above and below a two-line correction — 24 above, and 24 plus
   the picker's own margin below. A flex gap cannot be trimmed for one child, so the banner claws
   half of it back from each side rather than the page giving up its rhythm everywhere else.
   Reach for this on a banner that introduces the thing under it; leave a banner that interrupts
   a form alone, where the full gap is what separates it from the fields. */
.rbc-banner--tight {
    margin-top: calc(-1 * var(--nu-space-3, 12px));
    margin-bottom: calc(-1 * var(--nu-space-3, 12px));
}

/* A banner inserted between flat form controls needs to provide the gap before the next section;
   unlike a banner inside .rbc-section, there is no parent margin to do it. */
.rbc-banner--form-gap {
    margin-bottom: var(--nu-space-4, 16px);
}

.rbc-banner-icon {
    font-size: 1.05rem;
    margin-top: 1px;
    flex-shrink: 0;
}

/* The Grant/Request administration access modals open on this banner, directly against
   .rbc-modal-body's own padding with nothing below it — .rbc-section only carries a
   margin-bottom, so the "Role" label right after it sat almost flush against the banner's own
   bottom edge. Scoped to "first thing in the modal" rather than added to .rbc-banner itself,
   since the same component also sits mid-form for a separation-of-duties conflict, where the
   surrounding .rbc-section margins already provide the space. */
.rbc-modal-body > .rbc-banner:first-child {
    margin-bottom: var(--nu-space-4, 16px);
}

.rbc-banner-title {
    font-size: var(--nu-fs-body, 0.9375rem);
    font-weight: var(--nu-fw-semibold, 600);
    color: var(--nu-ink, #213b34);
}

.rbc-banner-message {
    font-size: var(--nu-fs-small, 0.8125rem);
    color: var(--nu-ink-2, #4a5f58);
    line-height: var(--nu-lh-normal, 1.5);
    margin-top: 2px;
}

/* A banner that carries several findings rather than one sentence: each row pairs a pill
   naming the kind with the message explaining it. Distinct from .rbc-banner-actions, which
   is a wrapping row for buttons — a list dropped in there sizes itself to its text. */
.rbc-banner-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--nu-space-2, 8px);
    margin: var(--nu-space-2, 8px) 0 0;
    padding: 0;
}

.rbc-banner-list li {
    display: flex;
    align-items: baseline;
    gap: var(--nu-space-2, 8px);
    font-size: var(--nu-fs-small, 0.8125rem);
    color: var(--nu-ink-2, #4a5f58);
    line-height: var(--nu-lh-normal, 1.5);
}

/* The message is the subject of the row, so it takes the remaining width and wraps
   rather than pushing the pill out of line. */
.rbc-banner-list-text {
    min-width: 0;
    overflow-wrap: anywhere;
}

.rbc-banner-actions {
    margin-top: var(--nu-space-3, 12px);
    display: flex;
    flex-wrap: wrap;
    gap: var(--nu-space-2, 8px);
}

/* A list in the action slot lays itself out; the flex row above would otherwise make its items
   flex children and strip the bullets' indent. */
.rbc-banner-actions > .rbc-copy-conflict-links {
    flex: 1 1 100%;
}

.rbc-banner--conflict {
    background: var(--nu-tone-red-bg, #fdecea);
    border-color: var(--nu-tone-red-border, #f3c9c2);
}

.rbc-banner--conflict .rbc-banner-icon {
    color: var(--nu-tone-red-fg, #c0392b);
}

.rbc-banner--warning {
    background: var(--nu-tone-amber-bg, #fdf3e2);
    border-color: var(--nu-tone-amber-border, #f0e2c6);
}

.rbc-banner--warning .rbc-banner-icon {
    color: var(--nu-tone-amber-fg, #b3730f);
}

.rbc-banner--info {
    background: var(--nu-tone-blue-bg, #eaf1f7);
    border-color: var(--nu-tone-blue-border, #cfe0ec);
}

.rbc-banner--info .rbc-banner-icon {
    color: var(--nu-tone-blue-fg, #2b6f9e);
}

/* ---- from EmptyState.razor.css: EmptyState ---- */
.rbc-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--nu-space-2, 8px);
    padding: var(--nu-space-7, 48px) var(--nu-space-5, 24px);
    color: var(--nu-ink-2, #4a5f58);
}

.rbc-empty-icon {
    font-size: 2rem;
    color: var(--nu-accent, #006325);
    margin-bottom: var(--nu-space-1, 4px);
}

.rbc-empty-title {
    font-size: var(--nu-fs-h4, 1rem);
    font-weight: var(--nu-fw-semibold, 600);
    color: var(--nu-ink, #213b34);
}

.rbc-empty-message {
    margin: 0;
    max-width: 42ch;
    font-size: var(--nu-fs-small, 0.8125rem);
    color: var(--nu-ink-3, #7d8e88);
    line-height: var(--nu-lh-normal, 1.5);
}

.rbc-empty-actions {
    margin-top: var(--nu-space-3, 12px);
}

/* ---- from HierarchySpine.razor.css: HierarchySpine (breadcrumb spine) ---- */






/* ---- TutorialDialog: topic list + article (modal sizing sits with .rbc-modal--tutorial) ---- */
.rbc-tutorial {
	flex: 1 1 auto;
	min-height: 0;
	display: grid;
	grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
	gap: var(--nu-space-5, 24px);
}

/* The list is a pane in the same alt tone as the hierarchy browser's, so the article beside it
   reads as the dialog's page and the list as the way around it. */
.rbc-tutorial-nav {
	display: flex;
	flex-direction: column;
	min-height: 0;
	padding: var(--nu-space-3, 12px);
	background: var(--nu-bg-alt, #f5f4f0);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-lg, 14px);
}

.rbc-tutorial-search {
	flex-shrink: 0;
}

/* Capped by the grid, scrolls itself, and its children hold their height — the sticky-rail rule
   (flex-shrink: 0 on every child) for the same reason: a squeezed list would clip its own rows. */
.rbc-tutorial-list {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.rbc-tutorial-list > * {
	flex-shrink: 0;
}

.rbc-tutorial-group {
	margin: var(--nu-space-4, 16px) var(--nu-space-2, 8px) var(--nu-space-1, 4px);
	font-size: var(--nu-fs-eyebrow, 0.75rem);
	letter-spacing: var(--nu-tracking-eyebrow, 0.08em);
	text-transform: uppercase;
	color: var(--nu-ink-3, #7d8e88);
	font-weight: var(--nu-fw-semibold, 600);
}

.rbc-tutorial-group:first-child {
	margin-top: var(--nu-space-1, 4px);
}

/* Indented under the group heading (which sits at 8px) so a topic never reads as a heading. */
.rbc-tutorial-topics {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	padding: 0 0 0 var(--nu-space-4, 16px);
	list-style: none;
}

.rbc-tutorial-topic {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--nu-space-2, 8px);
	width: 100%;
	padding: 7px 10px;
	background: none;
	border: 0;
	border-radius: var(--nu-radius-md, 8px);
	text-align: left;
	font: inherit;
	font-size: var(--nu-fs-small, 0.8125rem);
	color: var(--nu-ink-2, #4a5f58);
	cursor: pointer;
}

.rbc-tutorial-topic:hover {
	background: var(--nu-hover-wash, rgba(33, 59, 52, 0.06));
	color: var(--nu-ink, #213b34);
}

/* The selected topic: tinted, in the accent-text green, with a bar on its leading edge so it
   still reads as selected where the tint is faint against the pane. */
.rbc-tutorial-topic.is-active {
	background: var(--nu-bg-tint, #eef5f0);
	color: var(--nu-accent, #006325);
	font-weight: var(--nu-fw-semibold, 600);
	box-shadow: inset 3px 0 0 var(--nu-accent, #006325);
}

.rbc-tutorial-topic:focus-visible {
	outline: 2px solid var(--nu-accent, #006325);
	outline-offset: -2px;
}

.rbc-tutorial-topic-name {
	min-width: 0;
}

/* "This page" — the topic the dialog opened on. Filled, so it holds its own against the selected
   row's tint when the two are the same topic. */
.rbc-tutorial-here {
	flex-shrink: 0;
	padding: 1px 8px;
	border-radius: var(--nu-radius-pill, 999px);
	background: var(--nu-accent-fill, #006325);
	color: var(--nu-on-accent, #fff);
	font-size: 0.6875rem;
	font-weight: var(--nu-fw-semibold, 600);
	white-space: nowrap;
}

.rbc-tutorial-empty {
	margin: var(--nu-space-3, 12px) var(--nu-space-2, 8px);
	font-size: var(--nu-fs-small, 0.8125rem);
	color: var(--nu-ink-3, #7d8e88);
}

.rbc-tutorial-main {
	display: flex;
	flex-direction: column;
	min-height: 0;
	min-width: 0;
}

/* The scrolling region. Focusable so a keyboard reader can scroll it, which is why it carries a
   focus ring of its own rather than none. */
.rbc-tutorial-article {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	border-radius: var(--nu-radius-md, 8px);
	outline: none;
}

/* The article's padding sits on this wrapper, not the scroll container, so the scroll fade below
   meets the container's own bottom edge — browsers disagree on whether a sticky element respects
   its scroll container's padding. */
.rbc-tutorial-article-inner {
	padding: 0 var(--nu-space-3, 12px) var(--nu-space-5, 24px) var(--nu-space-1, 4px);
}

.rbc-tutorial-article:focus-visible {
	outline: 2px solid var(--nu-accent, #006325);
	outline-offset: -2px;
}

.rbc-tutorial-article-inner > .rbc-modal-toplink {
	margin-top: 0;
	margin-bottom: 0;
	float: right;
	margin-left: var(--nu-space-4, 16px);
}

.rbc-tutorial-title {
	margin: 2px 0 var(--nu-space-4, 16px);
	font-size: var(--nu-fs-h2, 1.375rem);
	font-weight: var(--nu-fw-bold, 700);
	color: var(--nu-ink, #213b34);
}

/* The guide's typography without the guide's viewport: here the article scrolls, not the body. */
.rbc-doc-markdown.rbc-tutorial-body {
	flex: none;
	min-height: auto;
	overflow: visible;
	padding: 0;
}

.rbc-doc-markdown.rbc-tutorial-body h3 {
	margin-top: var(--nu-space-5, 24px);
}

.rbc-tutorial-unavailable {
	color: var(--nu-ink-3, #7d8e88);
	font-style: italic;
}

.rbc-tutorial-related {
	margin-top: var(--nu-space-5, 24px);
	padding-top: var(--nu-space-4, 16px);
	border-top: 1px solid var(--nu-border, #dfe5e1);
}

.rbc-tutorial-related-title {
	margin: 0 0 var(--nu-space-2, 8px);
	font-size: var(--nu-fs-eyebrow, 0.75rem);
	letter-spacing: var(--nu-tracking-eyebrow, 0.08em);
	text-transform: uppercase;
	color: var(--nu-ink-3, #7d8e88);
	font-weight: var(--nu-fw-semibold, 600);
}

.rbc-tutorial-related-list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--nu-space-2, 8px);
}

.rbc-tutorial-chip {
	padding: 6px 12px;
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-pill, 999px);
	background: var(--nu-surface, #fff);
	font: inherit;
	font-size: var(--nu-fs-small, 0.8125rem);
	font-weight: var(--nu-fw-semibold, 600);
	color: var(--nu-accent, #006325);
	cursor: pointer;
}

.rbc-tutorial-chip:hover {
	background: var(--nu-bg-tint, #eef5f0);
	border-color: var(--nu-accent, #006325);
}

.rbc-tutorial-chip:focus-visible {
	outline: 2px solid var(--nu-accent, #006325);
	outline-offset: 2px;
}

/* Scroll hints. A pane fades whichever edge still hides content: the bottom 48px while more is
   below, the top 48px once the reader has scrolled down. rbcScrollTop.watchScrollEdges sets
   has-more-below / has-more-above, and each fade drops when its end is reached or nothing
   overflows at all.
   Sticky pseudo-elements at the two ends of the scrolled content rather than a mask on the
   container: a mask would fade the scrollbar too, and these never cover it. The negative margins
   keep them from adding scroll height, pointer-events: none keeps the rows under them clickable,
   and the fade colour is each pane's own surface so it reads the same in light and dark. Being
   positioned, they paint over the pane's in-flow content without a z-index. */
.rbc-tutorial-nav {
	--rbc-scroll-fade-bg: var(--nu-bg-alt, #f5f4f0);
}

.rbc-tutorial-main {
	--rbc-scroll-fade-bg: var(--nu-surface-raised, #fff);
}

/* On the page the article sits on the viewer card, not the modal's raised surface. */
.rbc-user-guide-viewer .rbc-tutorial-main {
	--rbc-scroll-fade-bg: var(--nu-surface, #fff);
}

.rbc-tutorial-list::before,
.rbc-tutorial-list::after,
.rbc-tutorial-article::before,
.rbc-tutorial-article::after {
	content: "";
	position: sticky;
	display: block;
	height: 48px;
	background: var(--rbc-scroll-fade-bg);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.15s ease;
}

.rbc-tutorial-list::before,
.rbc-tutorial-article::before {
	top: 0;
	margin-bottom: -48px;
	-webkit-mask-image: linear-gradient(to top, transparent, #000);
	mask-image: linear-gradient(to top, transparent, #000);
}

.rbc-tutorial-list::after,
.rbc-tutorial-article::after {
	bottom: 0;
	margin-top: -48px;
	-webkit-mask-image: linear-gradient(to bottom, transparent, #000);
	mask-image: linear-gradient(to bottom, transparent, #000);
}

.rbc-tutorial-list.has-more-above::before,
.rbc-tutorial-article.has-more-above::before,
.rbc-tutorial-list.has-more-below::after,
.rbc-tutorial-article.has-more-below::after {
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.rbc-tutorial-list::before,
	.rbc-tutorial-list::after,
	.rbc-tutorial-article::before,
	.rbc-tutorial-article::after {
		transition: none;
	}
}

/* Outside the scrolling article, so Previous and Next stay where the reader's hand is. */
.rbc-tutorial-pager {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--nu-space-3, 12px);
	padding-top: var(--nu-space-3, 12px);
	border-top: 1px solid var(--nu-border, #dfe5e1);
}

.rbc-tutorial-step {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px;
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-md, 8px);
	background: var(--nu-surface, #fff);
	font: inherit;
	font-size: var(--nu-fs-small, 0.8125rem);
	font-weight: var(--nu-fw-semibold, 600);
	color: var(--nu-ink, #213b34);
	cursor: pointer;
}

.rbc-tutorial-step:hover:not(:disabled) {
	background: var(--nu-bg-alt, #f5f4f0);
}

.rbc-tutorial-step:focus-visible {
	outline: 2px solid var(--nu-accent, #006325);
	outline-offset: 2px;
}

.rbc-tutorial-step:disabled {
	opacity: 0.45;
	cursor: default;
}

.rbc-tutorial-position {
	font-size: var(--nu-fs-small, 0.8125rem);
	color: var(--nu-ink-3, #7d8e88);
}

/* Stacked: the list above, capped, with the article taking the rest. Its own breakpoint — the
   two panes stop fitting side by side well before the sidebar becomes a drawer. */
@media (max-width: 900px) {
	.rbc-tutorial {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: minmax(150px, 34%) minmax(0, 1fr);
		gap: var(--nu-space-3, 12px);
	}

	.rbc-modal--tutorial .rbc-modal-body {
		padding: var(--nu-space-3, 12px) var(--nu-space-4, 16px);
	}

	.rbc-tutorial-article-inner > .rbc-modal-toplink {
		float: none;
		margin-left: 0;
	}
}

/* ---- AccessWalkthroughDialog: the top bar's Tutorial ----
   One height for every page, found by layout rather than measured: all six pages sit in the same
   grid cell (.rbc-walk-stack), only the current one visible, so the cell is as tall as the tallest
   page in the current language and width. Each page is stretched to that height and centres its
   main visual (.rbc-walk-stage) in whatever it has to spare, so a short page reads as balanced
   rather than ending above a band of white. The stack scrolls when the window is shorter, under
   .rbc-modal's own max-height. The body gives up its padding to the pages and the action row,
   which each carry their own. Every colour below is a semantic role or a tone pair, so the
   diagrams re-theme with the rest of the app; the tone a concept takes is the same on every page:
   Products orange and Applications blue (the app's scope tones), Operations and Roles green, who
   blue, where purple, when amber. */
.rbc-modal--walkthrough {
	max-width: 900px;
}

.rbc-modal--walkthrough .rbc-modal-body {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	padding: 0;
}

.rbc-walk-stack {
	display: grid;
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
}

/* visibility, not display: a hidden page still takes its height in the cell, which is the point.
   The markup also makes it inert, so it cannot take focus. */
.rbc-walk-page {
	grid-area: 1 / 1;
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: var(--nu-space-5, 24px) var(--nu-space-5, 24px) var(--nu-space-4, 16px);
	visibility: hidden;
}

.rbc-walk-page.is-current {
	visibility: visible;
}

/* Auto margins top and bottom split the page's spare height around its main visual. On the
   tallest page there is none, and they are zero. */
.rbc-walk-stage {
	margin-block: auto;
}

/* Dots, Skip, then Back / Next: three columns, so Skip is centred on the row whatever width the
   two sides take — and whichever of them is empty. */
.rbc-walk-actions {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	flex-shrink: 0;
	margin-top: 0;
	padding: var(--nu-space-4, 16px) var(--nu-space-5, 24px);
	border-top: 1px solid var(--nu-border, #dfe5e1);
}

/* The grid places them; a link's own auto margin would pull it out of its column. */
.rbc-walk-actions .rbc-modal-link {
	margin-left: 0;
}

.rbc-walk-skip {
	grid-column: 2;
}

.rbc-walk-nav {
	display: flex;
	align-items: center;
	grid-column: 3;
	justify-self: end;
	gap: var(--nu-space-2, 8px);
}

.rbc-walk-dots {
	display: flex;
	grid-column: 1;
	align-items: center;
	gap: var(--nu-space-2, 8px);
	margin: 0 auto 0 0;
	padding: 0;
	list-style: none;
}

.rbc-walk-dots li {
	display: flex;
}

.rbc-walk-dot {
	display: block;
	width: 10px;
	height: 10px;
	padding: 0;
	border: 2px solid var(--nu-border-strong, #b8c2bd);
	border-radius: var(--nu-radius-pill, 999px);
	background: transparent;
	transition: width 0.15s ease-out, background-color 0.15s ease-out;
}

/* A 10px dot is too small to hit, so the button's target reaches past its paint. */
button.rbc-walk-dot {
	position: relative;
	cursor: pointer;
}

button.rbc-walk-dot::after {
	content: "";
	position: absolute;
	inset: -7px;
}

button.rbc-walk-dot:hover {
	border-color: var(--nu-accent-hover, #1a7a3e);
}

button.rbc-walk-dot:focus-visible {
	outline: 2px solid var(--nu-focus-ring, #7cc5eb);
	outline-offset: 3px;
}

.rbc-walk-dot.is-visited {
	border-color: var(--nu-accent, #006325);
	background: var(--nu-tone-green-bg, #e8f2ec);
}

.rbc-walk-dot.is-current {
	width: 26px;
	border-color: var(--nu-accent-fill, #006325);
	background: var(--nu-accent-fill, #006325);
}

.rbc-walk-lead {
	margin: 0 0 var(--nu-space-4, 16px);
	font-size: var(--nu-fs-body, 0.9375rem);
	line-height: var(--nu-lh-normal, 1.5);
	color: var(--nu-ink-2, #4a5f58);
}

.rbc-walk-kicker {
	font-size: var(--nu-fs-eyebrow, 0.75rem);
	letter-spacing: var(--nu-tracking-eyebrow, 0.08em);
	text-transform: uppercase;
	font-weight: var(--nu-fw-semibold, 600);
	color: var(--nu-ink-3, #7d8e88);
}

.rbc-walk-foot {
	margin: var(--nu-space-4, 16px) 0 0;
	font-size: var(--nu-fs-small, 0.8125rem);
	line-height: var(--nu-lh-normal, 1.5);
	color: var(--nu-ink-2, #4a5f58);
}

/* Page 1 — the question, and its four parts. */
.rbc-walk-question {
	padding: var(--nu-space-5, 24px);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-lg, 14px);
	background: var(--nu-bg-alt, #f5f4f0);
}

.rbc-walk-question-text {
	margin: var(--nu-space-1, 4px) 0 var(--nu-space-4, 16px);
	font-size: var(--nu-fs-h3, 1.125rem);
	font-weight: var(--nu-fw-bold, 700);
	line-height: var(--nu-lh-snug, 1.3);
	color: var(--nu-ink, #213b34);
}

.rbc-walk-parts {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--nu-space-3, 12px);
}

/* A part (page 1) and a factor (page 3) are the same card: a tinted tile naming one piece of an
   answer. The tone modifiers below colour both. */
.rbc-walk-part,
.rbc-walk-factor {
	padding: var(--nu-space-3, 12px) var(--nu-space-3, 12px) var(--nu-space-4, 16px);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-md, 8px);
	background: var(--nu-surface-raised, #fff);
}

.rbc-walk-part-icon {
	display: block;
	font-size: 1.375rem;
	line-height: 1;
}

.rbc-walk-part-label {
	margin-top: var(--nu-space-2, 8px);
	font-weight: var(--nu-fw-bold, 700);
	color: var(--nu-ink, #213b34);
}

.rbc-walk-part-desc {
	margin-top: 2px;
	font-size: var(--nu-fs-small, 0.8125rem);
	line-height: var(--nu-lh-snug, 1.3);
	color: var(--nu-ink-2, #4a5f58);
}

.rbc-walk-part--who {
	border-color: var(--nu-tone-blue-border, #cfe0ec);
	background: var(--nu-tone-blue-bg, #eaf1f7);
}

.rbc-walk-part--who .rbc-walk-part-icon {
	color: var(--nu-tone-blue-fg, #2b6f9e);
}

/* What (an Operation) and a Role share green: a Role is its Operations, bundled. */
.rbc-walk-part--what,
.rbc-walk-part--role {
	border-color: var(--nu-tone-green-border, #cfe3d8);
	background: var(--nu-tone-green-bg, #e8f2ec);
}

.rbc-walk-part--what .rbc-walk-part-icon,
.rbc-walk-part--role .rbc-walk-part-icon {
	color: var(--nu-tone-green-fg, #1a7a3e);
}

.rbc-walk-part--where {
	border-color: var(--nu-tone-purple-border, #dccfeb);
	background: var(--nu-tone-purple-bg, #f2eef7);
}

.rbc-walk-part--where .rbc-walk-part-icon {
	color: var(--nu-tone-purple-fg, #6b5296);
}

.rbc-walk-part--when {
	border-color: var(--nu-tone-amber-border, #f0e2c6);
	background: var(--nu-tone-amber-bg, #fdf3e2);
}

.rbc-walk-part--when .rbc-walk-part-icon {
	color: var(--nu-tone-amber-fg, #b3730f);
}

/* Page 2 — the hierarchy as an indented tree. Each nested box draws an elbow from the box above
   it: up across the 12px row gap and its own 1px border (-13px), and down to its own middle. The
   elbow's x sits under the parent's icon, which is the indent less the icon's centre. */
.rbc-walk-tree {
	display: flex;
	flex-direction: column;
	gap: var(--nu-space-3, 12px);
}

.rbc-walk-tree-row {
	display: grid;
	grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
	align-items: center;
	gap: var(--nu-space-5, 24px);
}

.rbc-walk-box {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: var(--nu-space-3, 12px);
	padding: var(--nu-space-3, 12px) var(--nu-space-4, 16px) var(--nu-space-3, 12px) 14px;
	border: 1px solid var(--nu-border, #dfe5e1);
	border-left-width: 4px;
	border-radius: var(--nu-radius-md, 8px);
	background: var(--nu-surface-raised, #fff);
	box-shadow: var(--nu-shadow-sm, 0 1px 2px rgba(33, 59, 52, 0.06));
}

.rbc-walk-tree-row--l1 .rbc-walk-box {
	margin-left: 40px;
}

.rbc-walk-tree-row--l2 .rbc-walk-box {
	margin-left: 80px;
}

.rbc-walk-tree-row--l1 .rbc-walk-box::before,
.rbc-walk-tree-row--l2 .rbc-walk-box::before {
	content: "";
	position: absolute;
	left: -20px;
	top: -13px;
	width: 15px;
	height: calc(50% + 13px);
	border-left: 2px solid var(--nu-border-strong, #b8c2bd);
	border-bottom: 2px solid var(--nu-border-strong, #b8c2bd);
	border-bottom-left-radius: 6px;
}

.rbc-walk-box-icon {
	margin-top: 2px;
	font-size: 1.25rem;
	line-height: 1;
}

.rbc-walk-box-text {
	flex: 1 1 auto;
	min-width: 0;
}

.rbc-walk-box-kind {
	font-size: var(--nu-fs-tiny, 0.6875rem);
	letter-spacing: var(--nu-tracking-eyebrow, 0.08em);
	text-transform: uppercase;
	font-weight: var(--nu-fw-semibold, 600);
	color: var(--nu-ink-3, #7d8e88);
}

.rbc-walk-box-name {
	font-weight: var(--nu-fw-bold, 700);
	color: var(--nu-ink, #213b34);
}

.rbc-walk-box--product {
	border-left-color: var(--nu-tone-orange-fg, #ac4e19);
}

.rbc-walk-box--product .rbc-walk-box-icon {
	color: var(--nu-tone-orange-fg, #ac4e19);
}

.rbc-walk-box--application {
	border-left-color: var(--nu-tone-blue-fg, #2b6f9e);
}

.rbc-walk-box--application .rbc-walk-box-icon {
	color: var(--nu-tone-blue-fg, #2b6f9e);
}

.rbc-walk-box--operation,
.rbc-walk-box--role {
	border-left-color: var(--nu-tone-green-fg, #1a7a3e);
}

.rbc-walk-box--operation .rbc-walk-box-icon,
.rbc-walk-box--role .rbc-walk-box-icon {
	color: var(--nu-tone-green-fg, #1a7a3e);
}

.rbc-walk-box--assignment {
	width: 100%;
	max-width: 560px;
	border-left-color: var(--nu-accent, #006325);
}

.rbc-walk-box--assignment .rbc-walk-box-icon {
	color: var(--nu-accent, #006325);
}

.rbc-walk-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 6px;
}

/* An Operation's name, in the green its box carries — on the Role too, so the reader sees the
   same Operations arrive in it. A <code>, so the colour is set rather than inherited. */
.rbc-walk-chip {
	padding: 1px var(--nu-space-2, 8px);
	border: 1px solid var(--nu-tone-green-border, #cfe3d8);
	border-radius: var(--nu-radius-pill, 999px);
	background: var(--nu-tone-green-bg, #e8f2ec);
	color: var(--nu-tone-green-fg, #1a7a3e);
	font-family: var(--nu-font-mono, monospace);
	font-size: var(--nu-fs-tiny, 0.6875rem);
	white-space: nowrap;
}

.rbc-walk-tree-desc {
	margin: 0;
	font-size: var(--nu-fs-small, 0.8125rem);
	line-height: var(--nu-lh-normal, 1.5);
	color: var(--nu-ink-2, #4a5f58);
}

.rbc-walk-bundle {
	display: flex;
	align-items: center;
	gap: var(--nu-space-2, 8px);
	margin: var(--nu-space-3, 12px) 0 var(--nu-space-3, 12px) 92px;
	font-size: var(--nu-fs-small, 0.8125rem);
	font-style: italic;
	color: var(--nu-ink-3, #7d8e88);
}

.rbc-walk-bundle .bi {
	font-size: 1.125rem;
	font-style: normal;
}

/* Page 3 — Role + who + where + when = a Role Assignment. */
.rbc-walk-equation {
	display: flex;
	align-items: stretch;
	gap: var(--nu-space-2, 8px);
}

.rbc-walk-factor {
	flex: 1 1 0;
	min-width: 0;
}

.rbc-walk-op {
	align-self: center;
	color: var(--nu-ink-3, #7d8e88);
}

.rbc-walk-result {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--nu-space-2, 8px);
	margin-top: var(--nu-space-3, 12px);
}

.rbc-walk-result-arrow {
	font-size: 1.25rem;
	color: var(--nu-ink-3, #7d8e88);
}

.rbc-walk-facts {
	display: grid;
	gap: var(--nu-space-2, 8px);
	margin: var(--nu-space-5, 24px) 0 0;
	padding: 0;
	list-style: none;
}

.rbc-walk-facts li {
	display: flex;
	align-items: flex-start;
	gap: var(--nu-space-3, 12px);
	font-size: var(--nu-fs-small, 0.8125rem);
	line-height: var(--nu-lh-normal, 1.5);
	color: var(--nu-ink-2, #4a5f58);
}

.rbc-walk-facts .bi {
	margin-top: 1px;
	color: var(--nu-ink-3, #7d8e88);
}

/* Page 4 — the two ways an assignment is made, as two lanes of numbered steps. */
.rbc-walk-lanes {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
	gap: var(--nu-space-4, 16px);
}

.rbc-walk-lane {
	padding: var(--nu-space-4, 16px);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-lg, 14px);
	background: var(--nu-bg-alt, #f5f4f0);
}

.rbc-walk-lane-title {
	margin: 0 0 var(--nu-space-3, 12px);
	font-size: var(--nu-fs-h4, 1rem);
	font-weight: var(--nu-fw-bold, 700);
	color: var(--nu-ink, #213b34);
}

.rbc-walk-lane-title .bi {
	color: var(--nu-accent, #006325);
}

.rbc-walk-flow {
	margin: 0;
	padding: 0;
	list-style: none;
}

.rbc-walk-flow-step {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: var(--nu-space-3, 12px);
	padding-bottom: var(--nu-space-4, 16px);
	font-size: var(--nu-fs-small, 0.8125rem);
	line-height: var(--nu-lh-normal, 1.5);
	color: var(--nu-ink, #213b34);
}

/* The dashed line from one step's number to the next, behind both. */
.rbc-walk-flow-step:not(:last-child)::after {
	content: "";
	position: absolute;
	left: 11px;
	top: 26px;
	bottom: 2px;
	border-left: 2px dashed var(--nu-border-strong, #b8c2bd);
}

.rbc-walk-flow-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	border: 2px solid var(--nu-accent, #006325);
	border-radius: var(--nu-radius-pill, 999px);
	background: var(--nu-surface-raised, #fff);
	font-size: var(--nu-fs-tiny, 0.6875rem);
	font-weight: var(--nu-fw-bold, 700);
	color: var(--nu-accent, #006325);
}

.rbc-walk-flow-step--end {
	padding-bottom: 0;
	font-weight: var(--nu-fw-semibold, 600);
}

.rbc-walk-flow-step--end .rbc-walk-flow-num {
	border-color: var(--nu-accent-fill, #006325);
	background: var(--nu-accent-fill, #006325);
	color: var(--nu-on-accent, #fff);
}

.rbc-walk-lane-note {
	margin: var(--nu-space-3, 12px) 0 0;
	font-size: var(--nu-fs-small, 0.8125rem);
	line-height: var(--nu-lh-normal, 1.5);
	color: var(--nu-ink-2, #4a5f58);
}

.rbc-walk-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--nu-space-3, 12px);
	margin-top: var(--nu-space-4, 16px);
}

.rbc-walk-card {
	padding: var(--nu-space-3, 12px) var(--nu-space-4, 16px);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-md, 8px);
	background: var(--nu-surface-raised, #fff);
}

.rbc-walk-card-title {
	font-size: var(--nu-fs-small, 0.8125rem);
	font-weight: var(--nu-fw-bold, 700);
	color: var(--nu-ink, #213b34);
}

.rbc-walk-card-title .bi {
	color: var(--nu-accent, #006325);
}

.rbc-walk-card p,
.rbc-walk-api p,
.rbc-walk-findagain p {
	margin: var(--nu-space-1, 4px) 0 0;
	font-size: var(--nu-fs-small, 0.8125rem);
	line-height: var(--nu-lh-normal, 1.5);
	color: var(--nu-ink-2, #4a5f58);
}

/* Page 5 — the four checks as a flow chart. Each check is a grid row: the question card, a
   labelled arrow out to Denied, and Denied itself; a labelled connector runs down from the card to
   the next one, and the last runs down to Allowed. The two outer columns are fixed, not auto, so
   the card column is the same width on every row — including the closing Allowed row, which has
   nothing in them, and whose pill must centre under the cards above it. */
.rbc-walk-decide {
	--rbc-walk-branch-w: 96px;
	--rbc-walk-verdict-w: 9.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rbc-walk-check {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--rbc-walk-branch-w) var(--rbc-walk-verdict-w);
	align-items: center;
}

.rbc-walk-check-card {
	display: flex;
	align-items: center;
	gap: var(--nu-space-3, 12px);
	padding: var(--nu-space-3, 12px) var(--nu-space-4, 16px);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-md, 8px);
	background: var(--nu-surface-raised, #fff);
	box-shadow: var(--nu-shadow-sm, 0 1px 2px rgba(33, 59, 52, 0.06));
}

.rbc-walk-check-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 26px;
	height: 26px;
	border-radius: var(--nu-radius-pill, 999px);
	background: var(--nu-accent-fill, #006325);
	color: var(--nu-on-accent, #fff);
	font-size: var(--nu-fs-small, 0.8125rem);
	font-weight: var(--nu-fw-bold, 700);
}

.rbc-walk-check-text {
	flex: 1 1 auto;
	min-width: 0;
	font-weight: var(--nu-fw-semibold, 600);
	color: var(--nu-ink, #213b34);
}

/* Check 4's info icon, set just after the question's last word. */
.rbc-walk-check-text .rbc-infopop-wrap {
	margin-left: var(--nu-space-1, 4px);
	vertical-align: -3px;
}

/* The answer that stops: a line from the card to the Denied pill, with a border-drawn arrowhead
   at the pill end. The line is the only thing in the flow, so the row's centring puts it — and
   its arrowhead — level with the middle of the pill; the label sits above it out of the flow,
   where it would otherwise push the line down by its own height. The padding is the clear space
   between the arrow and the two things it joins. */
.rbc-walk-branch {
	position: relative;
	display: flex;
	align-items: center;
	padding: 0 var(--nu-space-3, 12px);
}

.rbc-walk-branch-label {
	position: absolute;
	left: 0;
	right: 0;
	bottom: calc(50% + 4px);
	text-align: center;
	line-height: 1.2;
}

.rbc-walk-branch-label,
.rbc-walk-down-label {
	font-size: var(--nu-fs-small, 0.8125rem);
	font-weight: var(--nu-fw-semibold, 600);
	color: var(--nu-ink-2, #4a5f58);
}

.rbc-walk-branch-line {
	position: relative;
	width: 100%;
	height: 2px;
	background: var(--nu-border-strong, #b8c2bd);
}

.rbc-walk-branch-line::after {
	content: "";
	position: absolute;
	right: 0;
	top: -4px;
	border-left: 8px solid var(--nu-border-strong, #b8c2bd);
	border-top: 5px solid transparent;
	border-bottom: 5px solid transparent;
}

.rbc-walk-check > .rbc-walk-verdict {
	justify-self: start;
}

/* The answer that continues: a line down the card column's centre, arrowhead at the bottom, its
   label just to the right of it. Spans only the card column, so it centres under the card. The
   line stops 8px short of each end — clear space under the card above and over the one below;
   its bottom inset leaves room for the 8px arrowhead hung below it. */
.rbc-walk-down {
	position: relative;
	grid-column: 1;
	height: 52px;
}

.rbc-walk-down-line {
	position: absolute;
	left: 50%;
	top: 8px;
	bottom: 16px;
	width: 2px;
	margin-left: -1px;
	background: var(--nu-border-strong, #b8c2bd);
}

.rbc-walk-down-line::after {
	content: "";
	position: absolute;
	left: -4px;
	bottom: -8px;
	border-top: 8px solid var(--nu-border-strong, #b8c2bd);
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
}

.rbc-walk-down-label {
	position: absolute;
	left: calc(50% + 10px);
	top: 50%;
	transform: translateY(-50%);
}

.rbc-walk-check--end > .rbc-walk-verdict {
	grid-column: 1;
	justify-self: center;
}

/* The outcomes, a size up from a status pill: they are where every path in the chart ends. */
.rbc-walk-verdict {
	display: inline-flex;
	align-items: center;
	gap: var(--nu-space-2, 8px);
	padding: 6px var(--nu-space-4, 16px);
	border: 1px solid;
	border-radius: var(--nu-radius-pill, 999px);
	font-size: var(--nu-fs-body, 0.9375rem);
	font-weight: var(--nu-fw-bold, 700);
	white-space: nowrap;
}

.rbc-walk-verdict .bi {
	font-size: 1rem;
}

.rbc-walk-verdict--deny {
	border-color: var(--nu-tone-red-border, #f3c9c2);
	background: var(--nu-tone-red-bg, #fdecea);
	color: var(--nu-tone-red-fg, #c0392b);
}

.rbc-walk-verdict--allow {
	border-color: var(--nu-tone-green-border, #cfe3d8);
	background: var(--nu-tone-green-bg, #e8f2ec);
	color: var(--nu-tone-green-fg, #1a7a3e);
}

/* Page 6 — recap, the API Integration Guide for developers, and where to find this again. */
.rbc-walk-recap {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--nu-space-3, 12px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.rbc-walk-recap li {
	display: flex;
	align-items: flex-start;
	gap: var(--nu-space-3, 12px);
	padding: var(--nu-space-3, 12px) var(--nu-space-4, 16px);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-md, 8px);
	background: var(--nu-bg-alt, #f5f4f0);
	font-size: var(--nu-fs-small, 0.8125rem);
	line-height: var(--nu-lh-normal, 1.5);
	color: var(--nu-ink, #213b34);
}

.rbc-walk-recap-icon {
	margin-top: 1px;
	font-size: 1.125rem;
	line-height: 1;
	color: var(--nu-accent, #006325);
}

/* A plain card, not the tinted one below it: this is a pointer onward for some readers, not part
   of the summary. The braces are the API Integration Guide's own sidebar glyph. */
.rbc-walk-api {
	display: flex;
	align-items: flex-start;
	gap: var(--nu-space-4, 16px);
	margin-top: var(--nu-space-4, 16px);
	padding: var(--nu-space-4, 16px);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-lg, 14px);
	background: var(--nu-surface-raised, #fff);
}

.rbc-walk-api-icon {
	margin-top: 1px;
	font-size: 1.25rem;
	line-height: 1;
	color: var(--nu-accent, #006325);
}

/* Green link text with the app's new-tab arrow, underlining on hover like .rbc-modal-link. */
.rbc-walk-api-link {
	display: inline-flex;
	align-items: center;
	gap: var(--nu-space-1, 4px);
	margin-top: var(--nu-space-2, 8px);
	font-size: var(--nu-fs-small, 0.8125rem);
	font-weight: var(--nu-fw-semibold, 600);
	color: var(--nu-accent, #006325);
	text-decoration: none;
}

.rbc-walk-api-link:hover {
	color: var(--nu-accent-hover, #1a7a3e);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.rbc-walk-api-link:focus-visible {
	outline: 2px solid var(--nu-focus-ring, #7cc5eb);
	outline-offset: 2px;
	border-radius: var(--nu-radius-sm, 4px);
}

.rbc-walk-findagain {
	display: flex;
	align-items: center;
	gap: var(--nu-space-5, 24px);
	margin-top: var(--nu-space-4, 16px);
	padding: var(--nu-space-4, 16px);
	border: 1px solid var(--nu-tone-green-border, #cfe3d8);
	border-radius: var(--nu-radius-lg, 14px);
	background: var(--nu-bg-tint, #eef5f0);
}

/* A picture of the top bar's two links — the same capitals and green as .rbc-topbar-link. */
.rbc-walk-topbar {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	gap: var(--nu-space-2, 8px);
	padding: var(--nu-space-2, 8px) var(--nu-space-4, 16px);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-md, 8px);
	background: var(--nu-surface-raised, #fff);
	box-shadow: var(--nu-shadow-sm, 0 1px 2px rgba(33, 59, 52, 0.06));
}

.rbc-walk-topbar-link {
	font-size: var(--nu-fs-eyebrow, 0.75rem);
	letter-spacing: var(--nu-tracking-eyebrow, 0.08em);
	text-transform: uppercase;
	font-weight: var(--nu-fw-semibold, 600);
	color: var(--nu-accent, #006325);
	white-space: nowrap;
}

/* Page 1's language and appearance, set apart from the explanation above them: language at the
   leading edge, appearance at the trailing one, the hint across the top. */
.rbc-walk-prefs {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: var(--nu-space-3, 12px) var(--nu-space-5, 24px);
	margin-top: var(--nu-space-4, 16px);
	padding-top: var(--nu-space-4, 16px);
	border-top: 1px solid var(--nu-border, #dfe5e1);
}

.rbc-walk-prefs-hint {
	flex: 1 0 100%;
	margin: 0;
	font-size: var(--nu-fs-small, 0.8125rem);
	line-height: var(--nu-lh-normal, 1.5);
	color: var(--nu-ink-2, #4a5f58);
}

.rbc-walk-prefs .culture-selector {
	flex: 0 1 240px;
	min-width: 180px;
}

/* margin-left: auto keeps it at the trailing edge even when CultureSelector hides itself, which it
   does when only one language is enabled. */
.rbc-walk-theme {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	margin-left: auto;
}

@media (max-width: 720px) {
	/* Dots, Skip and Back / Next do not fit one phone-width row: Skip takes a row of its own,
	   still centred, under the other two. */
	.rbc-walk-actions {
		grid-template-columns: minmax(0, 1fr) auto;
		row-gap: var(--nu-space-2, 8px);
	}

	.rbc-walk-nav {
		grid-column: 2;
	}

	.rbc-walk-skip {
		grid-column: 1 / -1;
		grid-row: 2;
		justify-self: center;
	}

	.rbc-walk-parts,
	.rbc-walk-equation {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* In a two-by-two grid the plus signs would land in cells of their own. */
	.rbc-walk-op {
		display: none;
	}

	.rbc-walk-tree-row {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--nu-space-1, 4px);
	}

	.rbc-walk-tree-row--l1 .rbc-walk-tree-desc {
		margin-left: 40px;
	}

	.rbc-walk-tree-row--l2 .rbc-walk-tree-desc {
		margin-left: 80px;
	}

	/* The description now sits between two boxes, so the elbow has further to reach. */
	.rbc-walk-tree-row--l1 .rbc-walk-box::before,
	.rbc-walk-tree-row--l2 .rbc-walk-box::before {
		display: none;
	}

	.rbc-walk-lanes,
	.rbc-walk-cards,
	.rbc-walk-recap {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Too narrow for three columns beside a question, so the card takes the full width and both
	   answers share the row under it: "↓ Yes" down from the number on the left, "No → Denied"
	   on the right. The down line moves under the number (card padding + half the badge), and
	   Allowed starts there too, so the path still reads as one line. */
	.rbc-walk-check {
		grid-template-columns: minmax(0, 1fr) 56px auto;
	}

	.rbc-walk-check-card {
		grid-column: 1 / -1;
	}

	.rbc-walk-down {
		grid-row: 2;
	}

	.rbc-walk-down-line {
		left: 29px;
	}

	.rbc-walk-down-label {
		left: 41px;
	}

	.rbc-walk-branch,
	.rbc-walk-check > .rbc-walk-verdict {
		grid-row: 2;
	}

	.rbc-walk-check > .rbc-walk-verdict {
		padding: 4px var(--nu-space-3, 12px);
		font-size: var(--nu-fs-small, 0.8125rem);
	}

	.rbc-walk-check--end > .rbc-walk-verdict {
		grid-row: 1;
		justify-self: start;
	}

	.rbc-walk-findagain {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--nu-space-3, 12px);
	}
}

/* ---- from TopBar.razor.css: TopBar (breadcrumb bar; iconbtn scoped to .rbc-topbar) ---- */
.rbc-topbar {
    height: var(--nu-topbar-h, 60px);
    display: flex;
    align-items: center;
    gap: var(--nu-space-3, 12px);
    padding: 0 var(--nu-space-5, 24px);
    background: var(--nu-surface, #fff);
    border-bottom: 1px solid var(--nu-border, #dfe5e1);
    position: sticky;
    top: 0;
    z-index: 40;
}

.rbc-topbar .rbc-iconbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: var(--nu-radius-md, 8px);
    background: transparent;
    color: var(--nu-ink-2, #4a5f58);
    font-size: 1.05rem;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.rbc-topbar .rbc-iconbtn:hover {
    background: var(--nu-bg-alt, #f5f4f0);
    color: var(--nu-ink, #213b34);
}

.rbc-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--nu-space-2, 8px);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.rbc-crumb {
    font-size: var(--nu-fs-small, 0.8125rem);
    color: var(--nu-ink-3, #7d8e88);
    text-decoration: none;
}

a.rbc-crumb:hover {
    color: var(--nu-accent, #006325);
    text-decoration: underline;
}

/* Roots and create pages: one line, no entity to name below it. */
.rbc-crumb--single {
	font-size: var(--nu-fs-eyebrow, 0.75rem);
	letter-spacing: var(--nu-tracking-eyebrow, 0.08em);
	text-transform: uppercase;
	font-weight: var(--nu-fw-semibold, 600);
}

.rbc-crumb--stacked {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 1px;
	line-height: 1.15;
	/* No cap here: it would clip the type line, and "EDIT ACCESS REQUEST · #181"
	   losing its last digit is worse than a wide crumb. Only the name is capped. */
	flex: none;
}

.rbc-crumb-kind {
	font-size: 0.6875rem;
	letter-spacing: var(--nu-tracking-eyebrow, 0.08em);
	text-transform: uppercase;
	font-weight: var(--nu-fw-semibold, 600);
	color: var(--nu-ink-3, #7d8e88);
	white-space: nowrap;
}

.rbc-crumb-id {
	font-weight: var(--nu-fw-regular, 400);
	letter-spacing: 0;
	opacity: 0.65;
}

.rbc-crumb-name {
	display: block;
	max-width: 26ch;
	min-height: 1.15em;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 0.75rem;
	color: var(--nu-ink-2, #4a5f58);
}

.rbc-crumb--current .rbc-crumb-name {
	color: var(--nu-ink, #213b34);
	font-weight: var(--nu-fw-semibold, 600);
}

/* underline the name only, not the whole stacked block */
a.rbc-crumb--stacked:hover {
	text-decoration: none;
}

a.rbc-crumb--stacked:hover .rbc-crumb-name {
	color: var(--nu-accent, #006325);
	text-decoration: underline;
}

a.rbc-crumb--stacked:hover .rbc-crumb-kind {
	color: var(--nu-accent, #006325);
}

/* A principal on a detail view: identifier first, display name beneath it. One line with a
   dot separator read as two equal facts and let long names crowd out the identifier. */
.rbc-identity-primary {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 6px;
	color: var(--nu-ink, #213b34);
}

.rbc-identity-secondary {
	font-size: var(--nu-fs-small, 0.8125rem);
	font-weight: var(--nu-fw-regular, 400);
	color: var(--nu-ink-3, #7d8e88);
}

.rbc-identity-tag {
	font-size: var(--nu-fs-small, 0.8125rem);
	color: var(--nu-ink-3, #7d8e88);
}

/* Closes the Details card with who last touched the record — small, muted, and out of
   the way of the fields above it. */
.rbc-card-foot {
	display: flex;
	justify-content: flex-end;
	margin-top: var(--nu-space-4, 16px);
	padding-top: var(--nu-space-3, 12px);
	border-top: 1px solid var(--nu-border, #dfe5e1);
}

/* A footer with a fact at each end rather than one right-aligned line: the Access Request card
   carries the request's id on the left and who raised it on the right. Both are about the record
   rather than about the access, which is why they share the footer instead of taking rows in the
   detail list above. */
.rbc-card-foot--split {
	justify-content: space-between;
	gap: var(--nu-space-3, 12px);
}

.rbc-audit-line {
	font-size: var(--nu-fs-small, 0.8125rem);
	color: var(--nu-ink-3, #7d8e88);
}

.rbc-crumb-more {
	position: relative;
	display: inline-flex;
	align-items: center;
	flex: none;
}

.rbc-crumb--overflow {
	appearance: none;
	background: none;
	border: 1px solid transparent;
	border-radius: var(--nu-radius-sm, 4px);
	padding: 0 6px;
	line-height: 1.4;
	color: var(--nu-ink-3, #7b8c85);
	cursor: pointer;
	letter-spacing: 1px;
}

.rbc-crumb--overflow:hover,
.rbc-crumb--overflow.is-open {
	color: var(--nu-accent, #006325);
	border-color: var(--nu-border, #dfe5e1);
	background: var(--nu-bg-alt, #f5f4f0);
}

.rbc-crumb-backdrop {
	position: fixed;
	inset: 0;
	z-index: 40;
}

.rbc-crumb-menu {
	position: absolute;
	z-index: 41;
	top: calc(100% + 6px);
	left: 0;
	min-width: 220px;
	max-width: 340px;
	max-height: 60vh;
	overflow-y: auto;
	background: var(--nu-surface-raised, #fff);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-md, 8px);
	box-shadow: var(--nu-shadow-lg);
	padding: var(--nu-space-2, 8px);
}

.rbc-crumb-menu-item {
	display: block;
	padding: 6px var(--nu-space-2, 8px);
	border-radius: var(--nu-radius-sm, 4px);
	text-decoration: none;
	line-height: 1.2;
}

.rbc-crumb-menu-item:hover {
	background: var(--nu-bg-alt, #f5f4f0);
}

.rbc-crumb-menu-item.is-current {
	background: var(--nu-tone-green-bg, #e8f2ec);
}

.rbc-crumb-menu-kind {
	display: block;
	font-size: 0.6875rem;
	letter-spacing: var(--nu-tracking-eyebrow, 0.08em);
	text-transform: uppercase;
	font-weight: var(--nu-fw-semibold, 600);
	color: var(--nu-ink-3, #7d8e88);
}

.rbc-crumb-menu-name {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: var(--nu-fs-small, 0.8125rem);
	color: var(--nu-ink, #213b34);
}

.rbc-crumb--current {
    color: var(--nu-ink, #213b34);
    font-weight: var(--nu-fw-semibold, 600);
    text-overflow: ellipsis;
    overflow: hidden;
}

.rbc-crumb-sep {
    font-size: 0.7rem;
    color: var(--nu-ink-3, #7d8e88);
    margin: 0 var(--nu-space-1, 4px);
}

.rbc-topbar-actions {
    display: flex;
    align-items: center;
    gap: var(--nu-space-2, 8px);
    margin-left: auto;
}

/* Tutorial and User Guide, the top bar's two actions: text buttons set in the bar's own capitals — the
   type of .rbc-crumb--single — in the accent-text green every link in the app uses, underlining on
   hover like .rbc-modal-link. Buttons, not links: each opens a dialog rather than going anywhere.
   The height of .rbc-topbar .rbc-iconbtn (the sidebar toggle), so the bar's controls share one hit
   height without moving its 60px band. */
.rbc-topbar-link {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    height: 38px;
    padding: 0 var(--nu-space-2, 8px);
    border: none;
    border-radius: var(--nu-radius-md, 8px);
    background: none;
    color: var(--nu-accent, #006325);
    font: inherit;
    font-size: var(--nu-fs-eyebrow, 0.75rem);
    letter-spacing: var(--nu-tracking-eyebrow, 0.08em);
    text-transform: uppercase;
    font-weight: var(--nu-fw-semibold, 600);
    white-space: nowrap;
    cursor: pointer;
}

.rbc-topbar-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.rbc-topbar-link:focus-visible {
    outline: 2px solid var(--nu-accent, #006325);
    outline-offset: 2px;
}

/* The muted bar between Tutorial and User Guide. Decoration, so it is aria-hidden in the markup;
   the walkthrough's picture of the bar reuses it. */
.rbc-topbar-sep {
    color: var(--nu-ink-3, #7d8e88);
    font-size: var(--nu-fs-small, 0.8125rem);
    user-select: none;
}

/* The bell's unread count sits above the button without changing the top bar's layout. The number
   counts release-note entries since the API's saved viewing time; 99+ keeps the compact control
   usable when a new user has never opened What's New. */
.rbc-whatsnew-button {
    position: relative;
    overflow: visible;
}

.rbc-whatsnew-count {
    position: absolute;
    top: -4px;
    right: -6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border: 2px solid var(--nu-bg, #fff);
    border-radius: 999px;
    background: var(--nu-danger, #c0392b);
    color: var(--nu-on-accent, #fff);
    font-size: 0.625rem;
    font-weight: var(--nu-fw-bold, 700);
    line-height: 1;
    letter-spacing: 0;
}

/* The environment badge: the name of a non-production environment (Local Dev, Dev, Staging,
   NonProd) in large bold red capitals inside a red box, left of Tutorial. Production renders no
   badge at all. Deliberately louder than everything else in the bar — its whole job is to stop
   someone mistaking a test site for the real one — so it takes the danger role rather than the
   accent green of the links beside it, and a size up from their eyebrow type. A button, because
   it opens EnvironmentInfoModal; the tinted fill on hover is what says it can be selected. A
   little shorter than .rbc-topbar-link's 38px so the box sits inside the bar rather than filling
   it; the extra right margin keeps it from reading as a third link in the Tutorial | User Guide
   pair. --nu-danger and --nu-tone-red-bg both have dark-theme
   values, so the badge needs no theme override. */
.rbc-env-badge {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    height: 32px;
    margin-right: var(--nu-space-3, 12px);
    padding: 0 10px;
    border: 2px solid var(--nu-danger, #c0392b);
    border-radius: var(--nu-radius-md, 8px);
    background: transparent;
    color: var(--nu-danger, #c0392b);
    font: inherit;
    font-size: var(--nu-fs-body, 0.9375rem);
    font-weight: var(--nu-fw-bold, 700);
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.rbc-env-badge:hover {
    background: var(--nu-tone-red-bg, #fdecea);
}

.rbc-env-badge:focus-visible {
    outline: 2px solid var(--nu-danger, #c0392b);
    outline-offset: 2px;
}

/* Phones: the bar also has to hold the hamburger and the breadcrumb, so the badge steps down to
   the links' own type size and drops its spacer — still red, boxed and bold. */
@media (max-width: 640.98px) {
    .rbc-env-badge {
        margin-right: 0;
        padding: 0 var(--nu-space-2, 8px);
        font-size: var(--nu-fs-small, 0.8125rem);
    }
}

/* The dialog the badge opens: a short facts card, so narrower than the shared default. */
.rbc-modal--environment {
    max-width: 600px;
}

/* The environment's name in that card, in the badge's red and weight so the two read as one. */
.rbc-env-name {
    color: var(--nu-danger, #c0392b);
    font-weight: var(--nu-fw-bold, 700);
}

/* What's New, the release notes the top bar's bell opens (WhatsNewModal): a reading list, a little
   wider than the shared default so a summary wraps to two or three lines, scrolling inside
   .rbc-modal-body. Each release is a date heading over its New / Improved / Fixed groups, separated
   from the next by a rule. Colours are the semantic --nu-* roles only, so the dialog reads in both
   themes. */
.rbc-modal--whatsnew {
    max-width: 760px;
}

.rbc-whatsnew-release + .rbc-whatsnew-release {
    margin-top: var(--nu-space-5, 24px);
    padding-top: var(--nu-space-5, 24px);
    border-top: 1px solid var(--nu-border, #dfe5e1);
}

.rbc-whatsnew-date {
    margin: 0 0 var(--nu-space-3, 12px);
    font-size: var(--nu-fs-body, 0.9375rem);
    font-weight: var(--nu-fw-semibold, 600);
    color: var(--nu-ink, #213b34);
}

/* The group heading takes the eyebrow type the dialog's own eyebrow uses. */
.rbc-whatsnew-type {
    margin: var(--nu-space-3, 12px) 0 var(--nu-space-2, 8px);
    font-size: var(--nu-fs-eyebrow, 0.75rem);
    letter-spacing: var(--nu-tracking-eyebrow, 0.08em);
    text-transform: uppercase;
    font-weight: var(--nu-fw-semibold, 600);
    color: var(--nu-ink-3, #7d8e88);
}

.rbc-whatsnew-items {
    display: flex;
    flex-direction: column;
    gap: var(--nu-space-3, 12px);
    margin: 0;
    padding-left: var(--nu-space-4, 16px);
    line-height: var(--nu-lh-normal, 1.5);
}

/* Title over summary, one entry per bullet. */
.rbc-whatsnew-title {
    display: block;
    font-weight: var(--nu-fw-semibold, 600);
    color: var(--nu-ink, #213b34);
}

.rbc-whatsnew-summary {
    display: block;
    font-size: var(--nu-fs-small, 0.8125rem);
    color: var(--nu-ink-2, #4a5f58);
}

/* ---- from Home.razor.css: Home / dashboard ---- */
.rbc-dash {
    display: flex;
    flex-direction: column;
    gap: var(--nu-space-5, 24px);
}

.rbc-dash-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--nu-space-6, 32px);
}

.rbc-viewall {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: var(--nu-space-2, 8px);
    padding: 10px;
    border: none;
    border-top: 1px solid var(--nu-border, #dfe5e1);
    background: transparent;
    color: var(--nu-accent, #006325);
    font-family: var(--nu-font);
    font-size: var(--nu-fs-small, 0.8125rem);
    font-weight: var(--nu-fw-semibold, 600);
    cursor: pointer;
}

.rbc-viewall:hover {
    color: var(--nu-accent-hover, #1a7a3e);
}

.rbc-viewall .bi {
    font-size: 0.7rem;
}

/* The rule under both dashboards' four tiles — on the administrator dashboard it also separates
   them from the scoped cards. Spaced by .rbc-dash's own gap on either side; the theme-paired
   hairline colour, so it holds in dark mode. */
.rbc-dash-rule {
    margin: 0;
    border: 0;
    border-top: 1px solid var(--nu-border, #dfe5e1);
    opacity: 1;
}

/* The administrator dashboard's caption and its two cards, held together so the caption sits a
   short step above the cards it qualifies instead of the full .rbc-dash gap. Subtitle size and
   muted ink: a label on the cards, not a heading competing with them. */
.rbc-dash-scoped {
    display: flex;
    flex-direction: column;
    gap: var(--nu-space-2, 8px);
}

.rbc-dash-scope {
    margin: 0;
    font-size: var(--nu-fs-small, 0.8125rem);
    color: var(--nu-ink-2, #4a5f58);
}

.rbc-nextstep-icon--amber { background: var(--nu-tone-amber-bg); color: var(--nu-tone-amber-fg); }

.rbc-nextstep-icon--blue { background: var(--nu-tone-blue-bg); color: var(--nu-tone-blue-fg); }

.rbc-nextstep-icon--purple { background: var(--nu-tone-purple-bg); color: var(--nu-tone-purple-fg); }

.rbc-nextstep-icon--red { background: var(--nu-tone-red-bg); color: var(--nu-tone-red-fg); }

/* The My Access tile — the on-ramp's green, from the same theme-paired tone tokens. */
.rbc-nextstep-icon--green { background: var(--nu-tone-green-bg); color: var(--nu-tone-green-fg); }

/* ===== Two-column grid =====
   Equal halves: both cards carry the same kind of row — a fact and an action — and the
   uneven split left the narrower one wrapping its buttons while the wider one had slack.
   minmax(0, …) so a long role or organization name cannot push a column past its share. */
.rbc-dash-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--nu-space-5, 24px);
    align-items: start;
}

/* ===== Needs attention list ===== */
/* ===== Row lists — one idiom, three lists =====
   The administrator dashboard's needs-attention and expiring cards, Check Access's pending and
   expiring pair, and its group memberships. Rows separated by a hairline and nothing else: no per-row border,
   background or radius, which is what makes a list read as a list instead of a stack of cards.
   Written as one selector list rather than three copies of the same declarations so the three
   cannot drift apart. `.rbc-ra` is the deliberate exception — a bordered block with a coloured
   left edge, for rows whose edge is carrying a verdict. */
.rbc-req-list,
.rbc-exp-list,
.rbc-grp-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.rbc-req,
.rbc-exp,
.rbc-grp {
    display: flex;
    align-items: center;
    gap: var(--nu-space-3, 12px);
    padding: var(--nu-space-3, 12px) 0;
    border-top: 1px solid var(--nu-border, #dfe5e1);
}

.rbc-req:first-child,
.rbc-exp:first-child,
.rbc-grp:first-child { border-top: none; }

.rbc-req-main,
.rbc-exp-main,
.rbc-grp-main { flex: 1; min-width: 0; }

/* Flexed because the name shares its line with a pill, and the identity block beside it is two
   stacked lines — hence align-items: center rather than baseline. The expiring row's name has no
   pill, so it stays a plain block. */
.rbc-req-who,
.rbc-grp-who {
    display: flex;
    align-items: center;
    gap: var(--nu-space-2, 8px);
    font-weight: var(--nu-fw-semibold, 600);
    color: var(--nu-ink, #213b34);
    font-size: var(--nu-fs-body, 0.9375rem);
}

/* The who-line is a flex container, so its text does not shrink on its own — without this it
   overflows its column instead, which since the markers moved to the row's right end means
   running underneath them rather than merely stretching the row. min-width: 0 lets the line
   shrink; .rbc-req-name is what actually gives, and the id beside it holds its width because a
   half-elided "#18…" is worse than no id at all. */
.rbc-req-who {
	min-width: 0;
}

.rbc-req-name {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rbc-req-id {
	flex-shrink: 0;
}

.rbc-req-meta,
.rbc-exp-meta,
.rbc-grp-meta {
    font-size: var(--nu-fs-small, 0.8125rem);
    color: var(--nu-ink-3, #7d8e88);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* RoleParentLine: where a pending or expiring row's role lives, under the meta line. A step
   smaller than that line and as quiet, since it qualifies the role rather than competing with
   the countdown; clipped like it so a long application name cannot wrap the row taller still. */
.rbc-req-parent {
    margin-top: 1px;
    font-size: var(--nu-fs-eyebrow, 0.75rem);
    color: var(--nu-ink-3, #7d8e88);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* The role on a dashboard row — a pending approval or an expiring assignment: the fact the
   reader is deciding about, so it carries weight while the organization beside it stays a
   qualifier. A step out of the muted ink too — semibold at --nu-ink-3 reads as smudged rather
   than emphasised. Named for the pending rows it started on; the expiring rows use it so the two
   cards read as the same kind of list. */
.rbc-req-role {
    font-weight: var(--nu-fw-semibold, 600);
    color: var(--nu-ink-2, #4a5f58);
}

/* A group's description is prose, not a fact line, so it wraps where the meta line clips. */
.rbc-grp-desc {
    margin: 2px 0 0;
    font-size: var(--nu-fs-small, 0.8125rem);
    color: var(--nu-ink-3, #7d8e88);
}

/* AdministratorList (CurrentAdministratorsModal / AdministrationScope's "Current administrators").
   Scoped to .rbc-admlist rather than changed on .rbc-section-title / .rbc-grp-list themselves,
   which the Requests and Expiring lists also use and must not shift just because this one wants
   to look different. */
.rbc-admlist-header {
    font-size: var(--nu-fs-small, 0.8125rem);
    letter-spacing: var(--nu-tracking-eyebrow, 0.08em);
    text-transform: uppercase;
    color: var(--nu-ink-2, #4a5f58);
    font-weight: var(--nu-fw-semibold, 600);
    margin-bottom: var(--nu-space-2, 8px);
}

/* The scope's own name, after the tier heading. Everything the header does to make itself a
   label is undone here — the uppercasing, the tracking, the weight — because this is the
   subject rather than the label, and a product named in small caps at 0.08em tracking is harder
   to read than the same name set plainly. Muted so the pair still reads as one heading line. */
.rbc-admlist-headername {
    margin-left: 6px;
    text-transform: none;
    letter-spacing: normal;
    font-weight: var(--nu-fw-regular, 400);
    color: var(--nu-ink-3, #7d8e88);
}

/* Indented so the rows read as nested under the header above them, rather than sitting flush
   with it at the same left edge. */
.rbc-admlist .rbc-grp-list,
.rbc-admlist-empty {
    padding-left: var(--nu-space-4, 16px);
}

.rbc-admlist-empty {
    margin: 0;
}

/* Shorter rows than the shared .rbc-grp default: a name-and-role line does not need this list's
   full padding or body-sized text to stay readable, and this list runs two tiers deep. */
.rbc-admlist .rbc-grp {
    padding: var(--nu-space-2, 8px) 0;
}

.rbc-admlist .rbc-grp-who {
    font-size: var(--nu-fs-small, 0.8125rem);
}

.rbc-admlist .rbc-grp-meta {
    font-size: var(--nu-fs-eyebrow, 0.75rem);
}

/* The Product-tier pill, floated to the row's right edge rather than sitting inline after the
   name — .rbc-grp is already a flex row (.rbc-grp-main plus this), so margin-left: auto pushes
   it to the far end without needing justify-content on the shared .rbc-grp rule itself. */
.rbc-admlist-tierpill {
    margin-left: auto;
    flex-shrink: 0;
}

/* The gap between the application-tier and product-tier sections when both render — without it
   the two lists ran together with nothing but their headers to tell them apart. Adjacent-sibling
   rather than a fixed margin on every instance, so a single-tier view (a product scope, or an
   application with nothing on one tier) does not carry a trailing gap to nothing. */
.rbc-admlist + .rbc-admlist {
    margin-top: var(--nu-space-5, 24px);
}

.rbc-req-actions {
    display: flex;
    gap: var(--nu-space-2, 8px);
    flex-shrink: 0;
}

.rbc-exp-who {
    font-weight: var(--nu-fw-semibold, 600);
    color: var(--nu-ink, #213b34);
    font-size: var(--nu-fs-body, 0.9375rem);
}

.rbc-exp-when {
    flex-shrink: 0;
    font-size: var(--nu-fs-small, 0.8125rem);
    font-weight: var(--nu-fw-semibold, 600);
    color: var(--nu-tone-amber-fg, #b3730f);
    white-space: nowrap;
}

/* The deadline, inline after the role name it belongs to. Inherits .rbc-exp-meta's size and
   takes .rbc-req-role's weight so the pair reads as one line rather than a label and an aside;
   red because it is the half that runs out. */
.rbc-exp-expires {
    font-weight: var(--nu-fw-semibold, 600);
    color: var(--nu-tone-red-fg, #c0392b);
}

/* The administration marker sits directly in these rows' flex line — beside the countdown on an
   expiring row, beside the Review button on a pending one. .rbc-pill is nowrap but shrinkable, so
   without this a narrow card squeezes it below its text width and clips it, instead of the
   flexible .rbc-*-main giving up the space — the same reason .rbc-exp-when above pins itself.
   Only direct children: a pill nested inside .rbc-req-who still wraps with the identity block. */
.rbc-exp > .rbc-pill,
.rbc-req > .rbc-pill {
    flex-shrink: 0;
}

/* ===== Next-step tiles (both dashboards, Shared/NextStepTiles) =====
   Four directive tiles — browse, request, track, my access. The standard dashboard is built around
   them; the administrator dashboard leads with them, above its scoped cards. Each carries a
   destination and a sentence saying why you would go there, with the icon beside the text. */
.rbc-nextsteps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--nu-space-4, 16px);
}

/* Four abreast leaves each tile too narrow for its sentence and chip once the sidebar takes its
   share, so the row goes two by two first; the responsive block below stacks it under 1024px. */
@media (max-width: 1400px) {
    .rbc-nextsteps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.rbc-nextstep {
    display: flex;
    align-items: center;
    gap: var(--nu-space-3, 12px);
    text-align: left;
    padding: var(--nu-space-4, 16px);
    background: var(--nu-surface, #fff);
    border: 1px solid var(--nu-border, #dfe5e1);
    border-radius: var(--nu-radius-lg, 14px);
    box-shadow: var(--nu-shadow-sm, 0 1px 3px rgba(33, 59, 52, 0.1));
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rbc-nextstep:hover {
    transform: translateY(-2px);
    box-shadow: var(--nu-shadow-md, 0 4px 12px rgba(33, 59, 52, 0.1));
}

.rbc-nextstep-icon,
.rbc-onramp-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--nu-radius-md, 8px);
    font-size: 1.15rem;
}

/* Takes the width so the trailing arrow (or the waiting / expiring-count pill) is pinned to the
   right edge and the tiles line their arrows up with each other. */
.rbc-nextstep-body,
.rbc-onramp-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
}

.rbc-nextstep-title,
.rbc-onramp-title {
    font-size: var(--nu-fs-body, 0.9375rem);
    font-weight: var(--nu-fw-semibold, 600);
    color: var(--nu-ink, #213b34);
}

.rbc-nextstep-desc,
.rbc-onramp-desc {
    font-size: var(--nu-fs-small, 0.8125rem);
    line-height: var(--nu-lh-normal, 1.5);
    color: var(--nu-ink-2, #4a5f58);
}

/* ===== Product on-ramp (standard-user dashboard) =====
   One row inside a plain card: icon, prompt, button. Shares the tiles' icon box and text scale
   through the selector lists above, so the two cannot drift apart. */
.rbc-onramp {
    display: flex;
    align-items: center;
    gap: var(--nu-space-3, 12px);
}

.rbc-onramp-icon {
    background: var(--nu-tone-green-bg, #e8f2ec);
    color: var(--nu-tone-green-fg, #1a7a3e);
}

/* ===== How access works strip ===== */
.rbc-model {
    background: var(--nu-sidebar-bg, #213b34);
    color: var(--nu-ink-on-dark, #fff);
    border: 1px solid var(--nu-line-on-dark, #34534a);
    border-radius: var(--nu-radius-lg, 14px);
    padding: var(--nu-space-5, 24px);
}

.rbc-model-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--nu-space-3, 12px);
}

.rbc-model-learn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--nu-ink-on-dark, #fff);
    font-size: var(--nu-fs-small, 0.8125rem);
    font-weight: var(--nu-fw-semibold, 600);
    cursor: pointer;
    white-space: nowrap;
}

.rbc-model-learn .bi {
    font-size: 0.75rem;
    transition: transform 0.15s ease;
}

.rbc-model-learn:hover {
    color: var(--nu-accent-cool, #7cc5eb);
}

.rbc-model-learn:hover .bi {
    transform: translate(2px, -2px);
}

.rbc-model-eyebrow {
    font-size: var(--nu-fs-eyebrow, 0.75rem);
    letter-spacing: var(--nu-tracking-eyebrow, 0.08em);
    text-transform: uppercase;
    color: var(--nu-accent-cool, #7cc5eb);
    font-weight: var(--nu-fw-semibold, 600);
}

.rbc-model-desc {
    margin: 6px 0 var(--nu-space-4, 16px);
    font-size: var(--nu-fs-small, 0.8125rem);
    color: var(--nu-ink-on-dark-2, #b9ccc4);
}

.rbc-model-chain {
    display: flex;
    align-items: stretch;
    gap: var(--nu-space-2, 8px);
    overflow-x: auto;
}

.rbc-model-node {
    flex: 1 1 0;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    text-align: left;
    background: var(--nu-on-dark-wash-faint, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--nu-line-on-dark, #34534a);
    border-radius: var(--nu-radius-md, 8px);
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

/* Only the steps that navigate react to the pointer. The standard-user dashboard renders the
   same chain as static chips, because its steps lead to grids scoped to what you manage. */
.rbc-model-node:not(.rbc-model-node--static):hover {
    background: var(--nu-on-dark-wash-hover, rgba(255, 255, 255, 0.08));
    border-color: var(--nu-accent-cool, #7cc5eb);
}

.rbc-model-node--static {
    cursor: default;
}

.rbc-model-icon {
    color: var(--nu-accent-cool, #7cc5eb);
    font-size: 1.15rem;
}

.rbc-model-label {
    color: var(--nu-ink-on-dark, #fff);
    font-weight: var(--nu-fw-semibold, 600);
    font-size: var(--nu-fs-body, 0.9375rem);
}

.rbc-model-arrow {
    align-self: center;
    flex-shrink: 0;
    color: var(--nu-ink-on-dark-2, #b9ccc4);
    font-size: 0.85rem;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .rbc-dash-grid { grid-template-columns: 1fr; }
    .rbc-nextsteps { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .rbc-req,
    .rbc-exp { flex-wrap: wrap; }
    .rbc-onramp {
        flex-wrap: wrap;
        align-items: flex-start;
    }
}


/* ===== Choice cards (in a dialog) =====
   Two large buttons a user picks between, each carrying the action *and* the reason to pick it.
   Not .rbc-nextstep: those are one-line destinations on a dashboard, whereas these have to hold
   enough text to make the difference between them clear, so the icon sits above the title rather
   than beside it and the whole card is a column.

   Used by StartManagingModal. Keep them equal-width and equal-height — the moment one looks
   bigger it reads as the recommended answer, and here neither is. */
.rbc-choices {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--nu-space-4, 16px);
	align-items: stretch;
}

.rbc-choice {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--nu-space-2, 8px);
	height: 100%;
	padding: var(--nu-space-5, 24px) var(--nu-space-4, 16px);
	text-align: left;
	background: var(--nu-surface, #fff);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-lg, 14px);
	cursor: pointer;
	font-family: var(--nu-font);
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}

.rbc-choice:hover {
	border-color: var(--nu-accent, #006325);
	box-shadow: var(--nu-shadow-md, 0 4px 12px rgba(33, 59, 52, 0.1));
}

.rbc-choice:active {
	transform: translateY(1px);
}

.rbc-choice:focus-visible {
	outline: 2px solid var(--nu-focus-ring, #7cc5eb);
	outline-offset: 2px;
}

.rbc-choice-icon {
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--nu-radius-md, 8px);
	font-size: 1.25rem;
}

.rbc-choice-icon--green { background: var(--nu-tone-green-bg, #e8f2ec); color: var(--nu-tone-green-fg, #1a7a3e); }

.rbc-choice-icon--blue { background: var(--nu-tone-blue-bg, #eaf1f7); color: var(--nu-tone-blue-fg, #2b6f9e); }

.rbc-choice-icon--purple { background: var(--nu-tone-purple-bg, #f2eef7); color: var(--nu-tone-purple-fg, #6b5296); }

.rbc-choice-title {
	font-size: var(--nu-fs-h4, 1rem);
	font-weight: var(--nu-fw-semibold, 600);
	color: var(--nu-ink, #213b34);
	line-height: var(--nu-lh-snug, 1.3);
}

.rbc-choice-desc {
	font-size: var(--nu-fs-small, 0.8125rem);
	line-height: var(--nu-lh-normal, 1.5);
	color: var(--nu-ink-2, #4a5f58);
}

/* Three abreast — ContinueManagingModal, whose reader already administers something and so has
   three genuinely different places to go rather than two. Needs .rbc-modal--choices with it: at
   the shared 680px these cards are ~200px wide and the titles wrap to three lines. Falls back to
   one column at the same 560px breakpoint the default pair does, below the rule at the end of
   this block. */
.rbc-choices--three {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Single column, full width — for a list of options rather than a pair of alternatives.
   GrantAdministrationAccessModal's role picker: 2-3 roles that are variants of the same tier
   rather than genuinely different actions, so they read better as a short stacked list than as
   StartManagingModal's equal-weight pair. */
.rbc-choices--stacked {
	grid-template-columns: 1fr;
}

/* A fact the form shows but cannot change — Roles/Edit's scope, which is fixed at creation.
   The lock icon is what marks it inert; the surface matches the form card around it. */
/* Faintly grey, not white like every other card on the form: this one states a fact that cannot
   be changed, and it sits directly beneath an editable field. On white it read as another input
   the reader had simply not clicked into yet. The tint is the only thing carrying "you cannot
   edit this" visually — the lock icon and the subtext say it in words, and words are what a
   reader skimming a form skips. */
.rbc-lockedfact {
	display: flex;
	align-items: flex-start;
	gap: var(--nu-space-3, 12px);
	padding: var(--nu-space-3, 12px) var(--nu-space-4, 16px);
	background: var(--nu-bg-alt, #f4f6f5);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-lg, 14px);
}

.rbc-lockedfact-icon {
	flex: none;
	margin-top: 2px;
	color: var(--nu-ink-3, #7d8e88);
}

.rbc-lockedfact-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

/* Name, muted id and scope pill on one line. Baseline-aligned so the pill sits on the name's
   baseline rather than centred in a taller line box, and wrapping so a long parent name pushes
   the pill to the next line instead of out of the card. */
.rbc-lockedfact-line {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: var(--nu-space-2, 8px);
	min-width: 0;
}

.rbc-lockedfact-name {
	font-size: var(--nu-fs-body, 0.9375rem);
	font-weight: var(--nu-fw-semibold, 600);
	color: var(--nu-ink, #213b34);
}

/* The id belongs to the name, so it gives back the row's gap and keeps its own 6px. */
.rbc-lockedfact-line .rbc-req-row-id {
	margin-left: -2px;
}

.rbc-lockedfact-sub {
	font-size: var(--nu-fs-small, 0.8125rem);
	color: var(--nu-ink-2, #4a5f58);
}

/* Icon beside the text instead of above it, and no fixed height — a role option is one or two
   short lines, not enough content to want the tall card shape .rbc-choice defaults to. */
.rbc-choice--row {
	flex-direction: row;
	align-items: flex-start;
	height: auto;
	padding: var(--nu-space-3, 12px) var(--nu-space-4, 16px);
}

/* The name-then-description column beside the icon in .rbc-choice--row. Without an explicit
   block + column here the title and description are two inline <span>s and sit on one line,
   wrapping only if they don't fit — the opposite of "description on its own line under the
   name" this exists to guarantee regardless of how short either string is. */
.rbc-choice--row .rbc-choice-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	flex: 1 1 auto;
}

/* The chosen option in a list meant to hold a selection, not just route to one. Tinted rather
   than the solid-fill treatment .rbc-scope-pill--active uses for a compact one-line pill — a
   filled block would fight the description text's own ink colour at this size. */
.rbc-choice--selected {
	border-color: var(--nu-accent, #006325);
	background: var(--nu-bg-tint, #eef5f0);
	box-shadow: none;
}

.rbc-choice--selected:hover {
	border-color: var(--nu-accent, #006325);
}

.rbc-choice-check {
	margin-left: auto;
	flex-shrink: 0;
	color: var(--nu-accent, #006325);
	font-size: 1.1rem;
}

/* The consequence of choosing this one — pushed to the bottom edge so the two notes line up
   across the pair even when the descriptions above them differ in length. */
.rbc-choice-foot {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	margin-top: auto;
	padding-top: var(--nu-space-3, 12px);
	font-size: var(--nu-fs-small, 0.8125rem);
	line-height: var(--nu-lh-normal, 1.5);
	color: var(--nu-ink-3, #7d8e88);
}

.rbc-choice-foot .bi {
	color: var(--nu-accent, #006325);
}

.rbc-choices-hint {
	display: flex;
	align-items: flex-start;
	gap: var(--nu-space-2, 8px);
	margin: var(--nu-space-4, 16px) 0 0;
	padding: var(--nu-space-3, 12px) var(--nu-space-4, 16px);
	background: var(--nu-bg-alt, #f5f4f0);
	border-radius: var(--nu-radius-md, 8px);
	font-size: var(--nu-fs-small, 0.8125rem);
	line-height: var(--nu-lh-normal, 1.5);
	color: var(--nu-ink-2, #4a5f58);
}

.rbc-choices-hint .bi {
	color: var(--nu-ink-3, #7d8e88);
}

@media (max-width: 560px) {
	.rbc-choices { grid-template-columns: 1fr; }
}

/* Three columns give out well before two do: .rbc-modal--choices caps at 900px but the dialog
   is also bounded by the viewport, so below that each card is under ~230px and the titles wrap
   to three lines. Collapse straight to one rather than to two — an orphaned third card sitting
   alone under a pair reads as the odd one out, which is the opposite of the equal weight these
   cards are supposed to carry. Listed after the rule above so it wins where both match. */
@media (max-width: 900px) {
	.rbc-choices--three { grid-template-columns: 1fr; }
}


/* ===== Standalone auth pages =====
   /signed-out and its siblings render under EmptyLayout — no sidebar, no top bar — so the page
   has to supply its own frame: one centred card on the warm alt background, with the Nucor
   wordmark standing in for the shell's brand block.

   `.rbc-auth` is fixed and scrolls inside itself rather than letting the document scroll, because
   EmptyLayout sets `overflow: hidden` on body/html for these routes. Without that, a short
   viewport put the sign-in button off-screen with no way to reach it.

   Written as a reusable block, not one page's styles: /logout-complete, /authentication/{action}
   and the error page are all still on Bootstrap's grid and should adopt this. */
.rbc-auth {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow-y: auto;
	padding: var(--nu-space-5, 24px);
	background: var(--nu-bg-alt, #f5f4f0);
	font-family: var(--nu-font);
	color: var(--nu-ink, #213b34);
}

.rbc-auth-card {
	width: 100%;
	max-width: 460px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: var(--nu-space-2, 8px);
	padding: var(--nu-space-7, 48px) var(--nu-space-6, 32px);
	background: var(--nu-surface, #fff);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-lg, 14px);
	/* The heaviest of the three shadows: this card is the whole page, not one of several. */
	box-shadow: var(--nu-shadow-lg, 0 18px 40px rgba(33, 59, 52, 0.16));
}

.rbc-auth-brand {
	height: 20px;
	margin-bottom: var(--nu-space-5, 24px);
}

.rbc-auth-brand--on-dark {
	display: none;
}

[data-fe-theme="dark"] .rbc-auth-brand--on-light {
	display: none;
}

[data-fe-theme="dark"] .rbc-auth-brand--on-dark {
	display: block;
}

/* The verdict as a mark, not a banner. The card is already the success state, so a tinted alert
   inside it read as a tile within a tile. */
.rbc-auth-mark {
	width: 56px;
	height: 56px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--nu-radius-pill, 999px);
	background: var(--nu-tone-green-bg, #e8f2ec);
	color: var(--nu-tone-green-fg, #1a7a3e);
	font-size: 1.75rem;
	margin-bottom: var(--nu-space-3, 12px);
}

.rbc-auth-title {
	margin: 0;
	font-size: var(--nu-fs-h2, 1.375rem);
	font-weight: var(--nu-fw-bold, 700);
	color: var(--nu-ink, #213b34);
}

.rbc-auth-desc {
	margin: 0;
	max-width: 40ch;
	font-size: var(--nu-fs-body, 0.9375rem);
	line-height: var(--nu-lh-normal, 1.5);
	color: var(--nu-ink-2, #4a5f58);
}

/* Each fact on its own row, left-aligned inside a centred card: they are statements about what
   happened, and centring them turned two short sentences into ragged text. */
.rbc-auth-facts {
	list-style: none;
	width: 100%;
	margin: var(--nu-space-4, 16px) 0 0;
	padding: var(--nu-space-3, 12px) var(--nu-space-4, 16px);
	display: flex;
	flex-direction: column;
	gap: var(--nu-space-2, 8px);
	text-align: left;
	background: var(--nu-bg-alt, #f5f4f0);
	border-radius: var(--nu-radius-md, 8px);
	font-size: var(--nu-fs-small, 0.8125rem);
	line-height: var(--nu-lh-normal, 1.5);
	color: var(--nu-ink-2, #4a5f58);
}

.rbc-auth-facts li {
	display: flex;
	align-items: flex-start;
	gap: var(--nu-space-2, 8px);
}

.rbc-auth-facts .bi {
	color: var(--nu-accent, #006325);
	line-height: inherit;
}

/* Stacked and full-width: one obvious next step with a way back under it. */
.rbc-auth-actions {
	width: 100%;
	margin-top: var(--nu-space-5, 24px);
	display: flex;
	flex-direction: column;
	gap: var(--nu-space-2, 8px);
}

.rbc-auth-note {
	margin: var(--nu-space-4, 16px) 0 0;
	display: flex;
	align-items: flex-start;
	gap: var(--nu-space-2, 8px);
	text-align: left;
	font-size: var(--nu-fs-small, 0.8125rem);
	line-height: var(--nu-lh-normal, 1.5);
	color: var(--nu-ink-3, #7d8e88);
}

@media (max-width: 560px) {
	.rbc-auth-card { padding: var(--nu-space-6, 32px) var(--nu-space-5, 24px); }
}

/* ==========================================================================
   5. SHELL & PAGE-LOCAL STYLES  (formerly the last two scoped .razor.css files)
   ----------------------------------------------------------------------------
   No scoped .razor.css files remain — all styles are global here. MainLayout's
   ::deep rules became plain descendant selectors; Copy's helpers are scoped
   under .rbc-copy to preserve their page-local behavior.
   ======================================================================= */

/* ---- from MainLayout.razor.css: authorized/anonymous shell (::deep removed — now global) ---- */
/* ============================================================================
   Authorized shell — sidebar + [topbar + content]
   ============================================================================ */
.rbc-shell {
    display: grid;
    grid-template-columns: var(--nu-sidebar-w, 272px) 1fr;
    min-height: 100vh;
    background: var(--nu-bg-alt, #f5f4f0);
    transition: grid-template-columns 0.2s ease;
}

.rbc-shell--collapsed {
    grid-template-columns: var(--nu-sidebar-w-collapsed, 72px) 1fr;
}

.rbc-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 20;
    background: var(--nu-sidebar-bg, #213b34);
    display: flex;
    flex-direction: column;
}

/* Pin the user chip to the bottom of the sidebar. These target elements
   NavMenu renders; as global rules (anchored under .rbc-sidebar) they reach them
   without needing scoped ::deep. */
.rbc-sidebar .rbc-nav {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    flex: 1 1 auto;
}

.rbc-sidebar .rbc-nav-scroll {
    flex: 1 1 auto;
    min-height: 0;
}

.rbc-sidebar .rbc-nav-footer {
    margin-top: auto;
    flex-shrink: 0;
}

.rbc-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100vh;
}

.rbc-content {
    flex: 1;
    padding: var(--nu-space-6, 32px);
    background: var(--nu-bg-alt, #f5f4f0);
    min-width: 0;
}

/* ===== Mobile: sidebar becomes an off-canvas overlay ===== */
@media (max-width: 640.98px) {
    .rbc-shell,
    .rbc-shell--collapsed {
        grid-template-columns: 1fr;
    }

    /* Off-canvas by default. This is the important word: the drawer used to be drawn at
       translateX(0) unless the shell was "collapsed", and the shell is not collapsed on first
       load — so a phone opened onto a drawer covering the page, above the top bar holding the
       only button that would close it. Closed is the only safe default for an overlay. */
    .rbc-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: var(--nu-sidebar-w, 272px);
        z-index: 60;
        transform: translateX(-100%);
        transition: transform 0.2s ease;
        box-shadow: var(--nu-shadow-lg, 0 18px 40px rgba(33, 59, 52, 0.16));
    }

    /* Opened explicitly, by the nav toggle. */
    .rbc-shell--drawer .rbc-sidebar {
        transform: translateX(0);
    }

    /* Sits over the page but under the drawer, so a tap anywhere outside closes it. The drawer
       covers the toggle while open, so this is what makes it dismissible. */
    .rbc-drawer-backdrop {
        position: fixed;
        inset: 0;
        z-index: 55;
        background: var(--nu-overlay, rgba(33, 59, 52, 0.45));
    }

    /* The rail is a desktop idea; on mobile the sidebar is either a full drawer or off-canvas,
       so the collapsed modifier must not narrow it here. */
    .rbc-shell--collapsed .rbc-sidebar {
        width: var(--nu-sidebar-w, 272px);
    }

    .rbc-content {
        padding: var(--nu-space-4, 16px);
    }
}

/* ============================================================================
   NotAuthorized shell (unchanged — login / public pages)
   ============================================================================ */
.page-no-sidebar {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--nu-bg, #fff);
}

.page-no-sidebar main {
    flex: 1;
    background-color: var(--nu-bg, #fff);
}

.top-row-minimal {
    background-color: var(--nu-surface-dark, #213b34);
    border-bottom: 1px solid var(--nu-line-on-dark, #34534a);
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.top-row-minimal a,
.top-row-minimal .btn-link {
    white-space: nowrap;
    margin-left: 1.5rem;
    text-decoration: none;
    color: var(--nu-ink-on-dark, #fff);
}

/* ---- from Copy.razor.css: Copy Permissions page-local helpers. Scoped under
   .rbc-copy (the page root) so generic names (.text-ellipsis/.text-amber/
   .row-actions) and the Bootstrap .badge.bg-* brand overrides do NOT leak
   to other pages. ---- */
.rbc-copy .text-ellipsis {
display: inline-block;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

.rbc-copy .text-amber {
color: var(--nu-tone-amber-fg, #b3730f);
}

.rbc-copy .row-actions {
display: flex;
    gap: 0.25rem;
    align-items: center;
    flex-wrap: wrap;
}

.rbc-copy .ops-filter-badge {
font-size: 0.75em;
    font-weight: normal;
    vertical-align: middle;
}

.rbc-copy .ops-filter-close {
font-size: 0.6em;
    vertical-align: middle;
}

.rbc-copy .badge.bg-success {
background-color: var(--nu-accent-fill, #006325) !important;
    color: var(--nu-on-accent, #fff) !important;
}

.rbc-copy .badge.bg-info {
background-color: var(--nu-accent-cool, #7CC5EB) !important;
    color: var(--nu-green-dark, #213B34) !important;
}

.rbc-copy .badge.bg-primary {
background-color: var(--nu-accent-fill, #006325) !important;
    color: var(--nu-on-accent, #fff) !important;
}

/* ===== Catalog: filter by operation =====
   A standing sidebar beside the role list rather than a drawer over it: on these pages the
   operation list is how people navigate a long list of roles, so it is always on screen. */
.rbc-opfilter-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--rbc-opfilter-w, 400px);
	gap: var(--nu-space-5, 24px);
	align-items: start;
}

.rbc-opfilter-main {
	min-width: 0;
}

/* The two cards stack in one column and travel with the page until it runs out. */
.rbc-opfilter {
	position: sticky;
	top: calc(var(--nu-topbar-h, 60px) + var(--nu-space-4, 16px));
	display: flex;
	flex-direction: column;
	gap: var(--nu-space-4, 16px);
	min-width: 0;
	/* Caps itself and scrolls, like .rbc-copy-rail — a sticky column taller than the space above
	   the fold pins its top and leaves its own bottom unreachable. Released again where the
	   layout stacks; see the media query. */
	max-height: calc(100vh - var(--nu-topbar-h, 60px) - var(--nu-space-6, 32px));
	overflow-y: auto;
}

.rbc-opfilter-inner {
	/* Explicit, so each card's own padding and border stay inside the column. */
	box-sizing: border-box;
	width: 100%;
}

/* Below the split point the sidebar would leave the roles too narrow to read, so it takes the
   full width and sits under them. */
@media (max-width: 900px) {
	.rbc-opfilter-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.rbc-opfilter {
		position: static;
		max-height: none;
		overflow-y: visible;
	}
}

.rbc-opfilter-head {
	margin-bottom: var(--nu-space-3, 12px);
}

.rbc-opfilter-head .rbc-section-title {
	margin-bottom: 2px;
}

.rbc-opfilter-head .rbc-help-text {
	margin: 0;
}

.rbc-opfilter-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
	/* Long enough to scan, short enough that the roles it filters — and the assigned-roles
	   card below it — stay in view. */
	max-height: min(calc(60vh - 150px), 370px);
	overflow-y: auto;
}

.rbc-opfilter-item {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	width: 100%;
	padding: 7px 10px;
	border: 1px solid transparent;
	border-radius: var(--nu-radius-md, 8px);
	background: transparent;
	color: var(--nu-ink, #213b34);
	font-family: var(--nu-font);
	font-size: var(--nu-fs-small, 0.8125rem);
	text-align: left;
	cursor: pointer;
}

.rbc-opfilter-item:hover {
	background: var(--nu-bg-alt, #f5f4f0);
}

.rbc-opfilter-item--on {
	border-color: var(--nu-accent, #006325);
	background: var(--nu-bg-tint, #eef5f0);
	color: var(--nu-ink, #213b34);
	font-weight: var(--nu-fw-semibold, 600);
}

.rbc-opfilter-item-icon {
	flex-shrink: 0;
	color: var(--nu-accent, #006325);
}

.rbc-opfilter-item-main {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.rbc-opfilter-item-name {
	overflow-wrap: anywhere;
}

/* Which application the operation belongs to. Quiet, but present on every row: two operations
   can share a name and this is the only thing separating them. */
.rbc-opfilter-item-app {
	font-size: var(--nu-fs-eyebrow, 0.75rem);
	font-weight: var(--nu-fw-regular, 400);
	color: var(--nu-ink-3, #7d8e88);
	overflow-wrap: anywhere;
}

/* Already held. The word alone, and quiet: it is a caveat on the row rather than the row's
   subject, and an icon beside it competed with the operation's own. */
.rbc-opfilter-item-held {
	flex-shrink: 0;
	font-size: var(--nu-fs-eyebrow, 0.75rem);
	font-weight: var(--nu-fw-medium, 500);
	color: var(--nu-ink-3, #7d8e88);
}

/* ===== Catalog: the roles you already hold =====
   Sits under the operation filter, in the same column. A standing answer to "what do I have
   here?", which the main list only answers row by row. */
.rbc-heldrole-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
	max-height: min(40vh, 340px);
	overflow-y: auto;
}

.rbc-heldrole {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--nu-space-3, 12px);
	padding: 7px 2px;
	font-size: var(--nu-fs-small, 0.8125rem);
}

.rbc-heldrole + .rbc-heldrole {
	border-top: 1px solid var(--nu-border, #dfe5e1);
}

.rbc-heldrole-name {
	min-width: 0;
	font-weight: var(--nu-fw-semibold, 600);
	color: var(--nu-ink, #213b34);
	overflow-wrap: anywhere;
}

.rbc-heldrole-ops {
	flex-shrink: 0;
	font-variant-numeric: tabular-nums;
}

/* No operations to open, so it states the count without offering to. */
.rbc-heldrole-ops--flat {
	color: var(--nu-ink-3, #7d8e88);
}

/* ===== Toasts =====
   Transient notifications, stacked under the top bar at the right. Built from the same tone
   tokens as the status pills, so a success toast and a success pill are the same green. The
   old Bootstrap treatment coloured the whole header band per type, which made an error toast
   a solid red slab; here the tone lives in a rail and an icon and the surface stays white,
   which reads at a glance without taking over the screen. */
.rbc-toasts {
	position: fixed;
	top: calc(var(--nu-topbar-h, 60px) + var(--nu-space-4, 16px));
	right: var(--nu-space-4, 16px);
	z-index: 1100;
	display: flex;
	flex-direction: column;
	gap: var(--nu-space-2, 8px);
	width: min(400px, calc(100vw - 32px));
	/* The stack is a pass-through: it spans the corner but must not swallow clicks on the
	   page behind it, so only the toasts themselves take pointer events. */
	pointer-events: none;
}

.rbc-toast {
	pointer-events: auto;
	display: flex;
	align-items: flex-start;
	gap: var(--nu-space-3, 12px);
	padding: var(--nu-space-3, 12px) var(--nu-space-3, 12px) var(--nu-space-3, 12px) var(--nu-space-4, 16px);
	background: var(--nu-surface-raised, #fff);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-left: 3px solid var(--rbc-toast-tone, var(--nu-ink-3, #7d8e88));
	border-radius: var(--nu-radius-md, 8px);
	box-shadow: var(--nu-shadow-lg, 0 18px 40px rgba(33, 59, 52, 0.16));
	animation: rbc-toast-in 0.22s cubic-bezier(0.2, 0.8, 0.3, 1);
}

@keyframes rbc-toast-in {
	from {
		opacity: 0;
		transform: translateX(12px) scale(0.98);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rbc-toast {
		animation: none;
	}
}

.rbc-toast-icon {
	flex-shrink: 0;
	margin-top: 1px;
	font-size: 1rem;
	color: var(--rbc-toast-tone, var(--nu-ink-3, #7d8e88));
}

.rbc-toast-main {
	flex: 1;
	min-width: 0;
}

.rbc-toast-title {
	font-size: var(--nu-fs-body, 0.9375rem);
	font-weight: var(--nu-fw-semibold, 600);
	color: var(--nu-ink, #213b34);
	line-height: 1.35;
}

.rbc-toast-message {
	margin: 2px 0 0;
	font-size: var(--nu-fs-small, 0.8125rem);
	color: var(--nu-ink-2, #4a5f58);
	line-height: 1.45;
	overflow-wrap: anywhere;
}

.rbc-toast-close {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	padding: 0;
	border: none;
	border-radius: var(--nu-radius-sm, 4px);
	background: transparent;
	color: var(--nu-ink-3, #7d8e88);
	font-size: 0.7rem;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.rbc-toast-close:hover {
	background: var(--nu-bg-alt, #f5f4f0);
	color: var(--nu-ink, #213b34);
}

.rbc-toast-close:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px var(--nu-focus-soft, #eef5f0);
}

/* One custom property per tone drives both the rail and the icon. */
.rbc-toast--success {
	--rbc-toast-tone: var(--nu-tone-green-fg, #1a7a3e);
}

.rbc-toast--error {
	--rbc-toast-tone: var(--nu-tone-red-fg, #c0392b);
}

.rbc-toast--warning {
	--rbc-toast-tone: var(--nu-tone-amber-fg, #b3730f);
}

.rbc-toast--info {
	--rbc-toast-tone: var(--nu-tone-blue-fg, #2b6f9e);
}

/* Full width on a phone, where a 400px card pinned right leaves an awkward margin. */
@media (max-width: 560px) {
	.rbc-toasts {
		left: var(--nu-space-3, 12px);
		right: var(--nu-space-3, 12px);
		width: auto;
	}
}

/* ===========================================================================
   Access Reviews (/access-reviews and a campaign's details page)
   =========================================================================== */

/* The page fills the space under the top bar and no further, so neither pane runs off the screen:
   the header takes what it needs and .rbc-reviews takes the rest. The content's own padding is
   subtracted top and bottom. The floor keeps a short window usable; below it the page scrolls. */
.rbc-page--reviews {
	height: calc(100vh - var(--nu-topbar-h, 60px) - 2 * var(--nu-space-6, 32px));
	min-height: 480px;
}

/* Campaigns on the left, the reader's own signoffs on the right, at 2:3 — a campaign card is a
   name, a date line and a bar, where a signoff card carries the role, the assignee, the
   organization and the campaign. One row that fills the page's remaining height; minmax(0, 1fr)
   rather than auto so a long list cannot grow the row past it. */
.rbc-reviews {
	flex: 1 1 auto;
	min-height: 0;
	display: grid;
	grid-template-columns: minmax(360px, 2fr) minmax(0, 3fr);
	grid-template-rows: minmax(0, 1fr);
	gap: var(--nu-space-4, 16px);
	align-items: start;
}

/* Each pane is as tall as its content and never taller than the row: the head, filter and search
   line stay put and only the card list scrolls (.rbc-reviews .rbc-review-cards). No overflow on
   the pane itself — the Status dropdown's menu opens out of it, and a clipping ancestor would cut
   it short. Its children refuse to shrink (see the load-bearing rule at the end of this file), all
   but the list, which is the one thing meant to give. */
.rbc-reviews-campaigns,
.rbc-reviews-mine {
	display: flex;
	flex-direction: column;
	min-height: 0;
	max-height: 100%;
}

.rbc-reviews .rbc-review-cards {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	/* Room for a card's focus ring and its 1px press inside the scroll box, without moving the
	   cards off the card head's alignment. */
	padding: 3px;
	margin: -3px;
}

/* Stacked, the page scrolls as usual; each list keeps its own scroll so a long one does not push
   the other pane a screen away. */
@media (max-width: 860px) {
	.rbc-page--reviews {
		height: auto;
		min-height: 0;
	}

	.rbc-reviews {
		grid-template-columns: 1fr;
		grid-template-rows: auto;
	}

	.rbc-reviews-campaigns,
	.rbc-reviews-mine {
		max-height: none;
	}

	.rbc-reviews .rbc-review-cards {
		max-height: 60vh;
	}
}

/* Under each card's head, above its cards: the card's search at the leading edge, its status
   dropdown at the trailing edge. Wraps when narrow, the dropdown keeping to the right. */
.rbc-reviews-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--nu-space-2, 8px) var(--nu-space-3, 12px);
	margin-bottom: var(--nu-space-3, 12px);
}

/* Narrower than a card head's search: these sit in a pane, not across a full-width card, and the
   dropdown beside them needs its room. */
.rbc-reviews-toolbar .rbc-card-search {
	flex: 0 1 300px;
	min-width: min(200px, 100%);
	max-width: 300px;
}

.rbc-reviews-toolbar .rbc-status-select {
	margin-left: auto;
	margin-right: 20px;
}

.rbc-review-cards {
	display: flex;
	flex-direction: column;
	gap: var(--nu-space-2, 8px);
	/* The 1px a pressed card moves down by — see .rbc-cat-approws for why it is load-bearing. */
	padding-bottom: 1px;
}

/* A campaign or a signoff, as a button: the catalog's application row (.rbc-cat-approw) in a
   stacked layout, with the same hover, press and focus treatment. */
.rbc-review-card {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 2px;
	width: 100%;
	text-align: left;
	color: var(--nu-ink, #1f2d28);
	background: var(--nu-surface, #fff);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-md, 8px);
	padding: var(--nu-space-3, 12px) var(--nu-space-4, 16px);
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}

.rbc-review-card:hover {
	border-color: var(--nu-accent, #006325);
	box-shadow: var(--nu-shadow-sm);
}

.rbc-review-card:active {
	transform: translateY(1px);
}

.rbc-review-card:focus-visible {
	outline: 2px solid var(--nu-accent, #006325);
	outline-offset: 2px;
}

/* Name and pill on one line; the pill keeps its width and the name wraps. */
.rbc-review-card-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--nu-space-2, 8px);
}

.rbc-review-card-name {
	min-width: 0;
	font-weight: var(--nu-fw-semibold, 600);
	overflow-wrap: anywhere;
}

.rbc-review-card-head .rbc-pill {
	flex: none;
}

.rbc-review-card-sub {
	display: block;
	color: var(--nu-ink-3, #7d8e88);
	font-size: var(--nu-fs-small, 0.8125rem);
}

/* "Overdue", in the muted line or under a due date. The red tone's text role, which has a dark
   counterpart, rather than a literal. */
.rbc-review-overdue {
	color: var(--nu-tone-red-fg, #c0392b);
	font-weight: var(--nu-fw-semibold, 600);
}

/* .rbc-progress at the card's full width. Spans inside a button, so the parts are made blocks. */
.rbc-progress--card {
	display: block;
	max-width: none;
	margin: var(--nu-space-2, 8px) 0 2px;
}

.rbc-progress--card .rbc-progress-fill {
	display: block;
}

.rbc-review-card .rbc-progress-count {
	display: block;
}

/* Campaign details: the status pills beside the campaign name, at a heading's scale rather than a
   grid cell's. Wraps under the name when it is long. */
.rbc-review-title-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--nu-space-2, 8px) var(--nu-space-3, 12px);
}

.rbc-review-title-row .rbc-title {
	margin: 2px 0 0;
}

.rbc-review-title-pills .rbc-pill {
	font-size: var(--nu-fs-small, 0.8125rem);
	padding: 6px 14px;
}

/* Campaign details card: Review window on the left, Progress on the right and wider. Stacks where
   the card is too narrow for both. */
.rbc-review-overview {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	gap: var(--nu-space-4, 16px) var(--nu-space-6, 32px);
}

.rbc-review-overview-value {
	font-weight: var(--nu-fw-semibold, 600);
}

.rbc-review-overview .rbc-progress {
	margin-top: var(--nu-space-2, 8px);
}

@media (max-width: 640px) {
	.rbc-review-overview {
		grid-template-columns: 1fr;
	}
}

/* A row action spoken as a word rather than an icon — Edit on a signoff the reader has already
   decided. The card-head create link's look, so green text reads as "a link" the same way here. */
.rbc-row-textlink {
	padding: 2px 4px;
	border: 0;
	background: none;
	font-size: var(--nu-fs-small, 0.8125rem);
	font-weight: var(--nu-fw-semibold, 600);
	color: var(--nu-accent, #006325);
	cursor: pointer;
	white-space: nowrap;
}

.rbc-row-textlink:hover {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.rbc-row-textlink:focus-visible {
	outline: 2px solid var(--nu-accent, #006325);
	outline-offset: 2px;
	border-radius: var(--nu-radius-sm, 4px);
}

/* A value with its qualifier on the same line — the review dialog's assignment window and its
   status pill, the due date and Overdue. Wraps the qualifier under the value when there is no room. */
.rbc-inline-fact {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--nu-space-1, 4px) var(--nu-space-2, 8px);
}

/* A signoff card: the stacked text, then a chevron saying it opens something. */
.rbc-signoff-card {
	flex-direction: row;
	align-items: center;
	gap: var(--nu-space-3, 12px);
}

.rbc-signoff-card-main {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1 1 auto;
	min-width: 0;
}

.rbc-signoff-card-who {
	display: flex;
	align-items: center;
	gap: var(--nu-space-1, 4px);
	font-size: var(--nu-fs-small, 0.8125rem);
	color: var(--nu-ink-2, #4a5a54);
	overflow-wrap: anywhere;
}

.rbc-review-card-chevron {
	flex: none;
	color: var(--nu-ink-3, #7d8e88);
}

/* The review dialog's decision row holds up to five buttons; on a narrow dialog they wrap
   rather than overflow. */
.rbc-review-signoff-actions {
	flex-wrap: wrap;
}

/* Certify and Mark pending are outlined among filled buttons, and Iron sizes the two variants for
   different borders. A medium outlined button pads calc(spacing - 1px) — 7px 11px — to make room
   for its 1px border, while a filled one pads the full 8px 12px. But filled buttons here carry a
   1px border too (Bootstrap's .btn-{color}, which FeButton also emits), so the outlined
   compensation over-corrects and leaves them 2px shorter and narrower than their neighbours.
   Measured against the rendered class lists: 34.2px against 36.2px. Giving the outlined ones the
   filled padding makes the row one height. Scoped to this row, where the two sit side by side. */
.rbc-review-signoff-actions .fe-button-outlined-size-md {
	padding: var(--fe-spacing-2, 0.5rem) var(--fe-spacing-3, 0.75rem);
}

.rbc-review-signoff-help {
	margin: var(--nu-space-4, 16px) 0 var(--nu-space-2, 8px);
}

.rbc-review-signoff-notes {
	margin-top: var(--nu-space-4, 16px);
}

.rbc-campaign-changes {
	margin-top: var(--nu-space-3, 12px);
}

.rbc-campaign-changes .rbc-help-list {
	margin: 0;
}

/* Add Signoffs: the wizards' transfer picker at a fixed height inside the dialog, so the
   assignment list scrolls rather than the whole dialog. Released where the columns stack. */
.rbc-addsignoffs {
	height: min(62vh, 620px);
	margin-top: 0;
}

.rbc-addsignoffs .rbc-pickpane {
	height: 100%;
}

.rbc-addsignoffs-reviewer {
	margin-bottom: var(--nu-space-3, 12px);
}

@media (max-width: 1100px) {
	.rbc-addsignoffs {
		height: auto;
	}

	.rbc-addsignoffs .rbc-rolepick-list .rbc-req-list,
	.rbc-addsignoffs .rbc-pickpane-list {
		max-height: 40vh;
	}
}

/* An assignment already in the campaign: listed, marked, not pickable. */
.rbc-rolepick-row.is-disabled {
	cursor: default;
	opacity: 0.65;
}

.rbc-rolepick-row.is-disabled:hover {
	border-color: var(--nu-border, #dfe5e1);
}

/* The chosen column's empty line, red once Add was pressed with nothing chosen. Derived from
   state, so it clears the moment a row is picked. */
.rbc-pickpane-empty--invalid {
	color: var(--nu-tone-red-fg, #c0392b);
}

/* A chosen assignment its own reviewer holds: advisory, so amber, and it wraps. */
.rbc-picked-warn {
	display: flex;
	align-items: flex-start;
	gap: var(--nu-space-1, 4px);
	font-size: var(--nu-fs-tiny, 0.75rem);
	color: var(--nu-tone-amber-fg, #b3730f);
}

/* Load-bearing with every max-height above. Flex children shrink by default, so a capped column
   COMPRESSES its cards instead of scrolling — and a card with overflow: hidden (the summary rails)
   then silently eats its own last rows rather than showing a scrollbar. Measured once at 560px
   tall: 324px of summary squeezed into 166px with 157px of content simply gone. Refusing to shrink
   is what hands the overflow back to the column. */
.rbc-rail > *,
.rbc-admcol > *,
.rbc-opfilter > *,
.rbc-approvals-filters > *,
.rbc-reviews-campaigns > *,
.rbc-reviews-mine > *,
.rbc-rolepick--detail .rbc-rolepick-filters > * {
	flex-shrink: 0;
}

/* Organization restructure is a server-paged workflow. Its definition uses the shared wizard
   shell; these rules cover only its mapping, saved-batch and execution surfaces. */
.rbc-org-restructure {
	display: grid;
	gap: var(--nu-space-4, 16px);
}

.rbc-org-notice,
.rbc-org-error {
	display: flex;
	gap: var(--nu-space-3, 12px);
	align-items: flex-start;
	padding: var(--nu-space-3, 12px) var(--nu-space-4, 16px);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-md, 8px);
	background: var(--nu-tone-gray-bg, #eef1ef);
}

.rbc-org-notice > .bi,
.rbc-org-error > .bi {
	font-size: 1.25rem;
}

.rbc-org-notice p,
.rbc-org-error p {
	margin: var(--nu-space-1, 4px) 0 0;
}

.rbc-org-source-changes {
	margin-bottom: var(--nu-space-4, 16px);
}

/* Let the disclosure consume the notice width while the warning glyph keeps its own column. The
   count remains visible when a long source-change list is collapsed. */
.rbc-org-source-changes > div {
	flex: 1 1 auto;
	min-width: 0;
}

.rbc-org-source-changes-toggle {
	font-size: var(--nu-fs-body, 0.875rem);
}

.rbc-org-source-changes-count {
	margin-left: var(--nu-space-1, 4px);
	color: var(--nu-ink-3, #7d8e88);
	font-weight: var(--nu-fw-regular, 400);
	font-variant-numeric: tabular-nums;
}

.rbc-org-source-changes ul {
	display: grid;
	gap: var(--nu-space-1, 4px);
	margin: var(--nu-space-2, 8px) 0 0;
	padding-left: var(--nu-space-5, 20px);
}

.rbc-org-source-changes li span {
	margin-left: var(--nu-space-2, 8px);
}

.rbc-org-error {
	border-color: var(--nu-tone-amber-border, #f0e2c6);
	background: var(--nu-tone-amber-bg, #fdf3e2);
	color: var(--nu-tone-amber-fg, #b3730f);
}

.rbc-org-error code {
	display: block;
	margin-top: var(--nu-space-2, 8px);
	white-space: pre-wrap;
}

.rbc-org-plan,
.rbc-org-summary,
.rbc-org-empty-plan,
.rbc-org-complete,
.rbc-org-recent {
	padding: var(--nu-space-4, 16px);
}

/* This record carries more overview fields than the ordinary detail rails. Give the values room
   beside their labels, and keep the overview and mappings cards visibly separate. */
.rbc-detail-grid.rbc-org-detail-grid {
	grid-template-columns: minmax(0, 1fr) minmax(340px, 380px);
}

.rbc-org-detail-grid .rbc-detail-side {
	display: grid;
	gap: var(--nu-space-4, 16px);
}

.rbc-org-detail-grid .rbc-overview {
	grid-template-columns: minmax(8.5rem, 0.85fr) minmax(0, 1.15fr);
	column-gap: var(--nu-space-5, 24px);
}

/* Reserve each summary step's expanded height from the start. Loading persisted batch values no
   longer pushes the separate Back/Next action card downward after the reader has aimed at it. */
.rbc-org-rail .rbc-summary-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--nu-space-2, 8px);
	box-sizing: border-box;
	min-height: 3.75rem;
}

.rbc-org-summary-item--details,
.rbc-org-summary-item--review {
	box-sizing: border-box;
	min-height: 7.25rem;
}

.rbc-org-summary-item--mappings,
.rbc-org-summary-item--confirm {
	box-sizing: border-box;
	min-height: 4.5rem;
}

.rbc-org-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--nu-space-4, 16px);
}

.rbc-label-with-info {
	display: flex;
	align-items: center;
	gap: var(--nu-space-2, 8px);
}

.rbc-label-with-info .rbc-label {
	margin-bottom: 0;
}

.rbc-check-row {
	display: flex;
	align-items: flex-start;
	gap: var(--nu-space-3, 12px);
	padding: var(--nu-space-3, 12px);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-md, 8px);
	background: var(--nu-bg-tint, #eef5f0);
	cursor: pointer;
}

.rbc-check-row input {
	margin-top: .2rem;
}

.rbc-check-row > span {
	display: grid;
	gap: var(--nu-space-1, 4px);
}

.rbc-check-row small {
	color: var(--nu-ink-3, #7d8e88);
}

.rbc-org-field-wide {
	grid-column: 1 / -1;
}

.rbc-org-textarea {
	min-height: 7rem;
	resize: vertical;
}

.rbc-org-map-entry {
	display: grid;
	gap: var(--nu-space-3, 12px);
	min-width: 0;
}

/* Keep the short mapping step from collapsing around an empty list. Besides making the wizard
   feel less jumpy between steps, the extra room gives both organization search menus somewhere
   to open without visually crowding the footer actions. */
.rbc-org-mappings-step {
	min-height: 32rem;
}

/* Organization names can be very long. minmax(0, 1fr), plus zero minimums on the two component
   wrappers, makes the existing combobox ellipsis do the shrinking instead of widening the wizard.
   The action is the third control in this row, matching other paired selectors rather than
   floating beneath them as a separate footer. */
.rbc-org-map-controls {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
	gap: var(--nu-space-3, 12px);
	align-items: start;
}

.rbc-org-map-entry .rbc-field,
.rbc-org-map-entry .rbc-combo {
	min-width: 0;
	margin-bottom: 0;
}

.rbc-org-map-add {
	display: flex;
	align-self: start;
	align-items: flex-start;
	/* Match the combobox label plus its five-pixel field gap, so the compact button begins on
	   the input row while both picker labels remain level even when one selected value is taller. */
	padding-top: 1.625rem;
}

.rbc-org-map-list {
	display: grid;
	gap: var(--nu-space-2, 8px);
}

.rbc-org-map-list {
	margin-top: var(--nu-space-4, 16px);
}

.rbc-org-history-grid {
	margin: 0;
}

/* Batch History uses the same Iron grid search, column filters, chips, pager and export as the
   collection pages. Keep long reasons and mapping-heavy mergers compact; the bound mapping text
   still gives grid search every organization name and ID, while the child row exposes the list. */
.rbc-org-history-justification {
	display: -webkit-box;
	max-width: 28rem;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.rbc-org-history-mapping-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	gap: var(--nu-space-1, 4px);
	padding: 0.375rem 0.625rem;
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-sm, 6px);
	background: var(--nu-surface, #fff);
	color: var(--nu-accent, #006325);
	font: inherit;
	font-size: var(--nu-fs-sm, 0.875rem);
	font-weight: 600;
	cursor: pointer;
}

.rbc-org-history-mapping-toggle:hover {
	border-color: var(--nu-accent, #006325);
	background: var(--nu-bg-tint, #eef5f0);
}

.rbc-org-history-mapping-toggle:focus-visible {
	outline: 2px solid var(--nu-accent, #006325);
	outline-offset: 2px;
}

.rbc-org-history-mapping-toggle > span:first-child {
	white-space: nowrap;
}

.rbc-org-history-mapping-detail {
	padding: var(--nu-space-3, 12px);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-md, 8px);
	background: var(--nu-surface-subtle, #f7f9f8);
}

.rbc-org-history-mapping-detail-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--nu-space-3, 12px);
	color: var(--nu-muted, #62726b);
	font-size: var(--nu-fs-sm, 0.875rem);
}

.rbc-org-history-mapping-detail-head strong {
	display: inline-flex;
	align-items: center;
	gap: var(--nu-space-2, 8px);
	color: var(--nu-text, #17332b);
}

.rbc-org-history-mapping-detail-list {
	display: grid;
	gap: var(--nu-space-2, 8px);
	max-height: 24rem;
	margin-top: var(--nu-space-3, 12px);
	overflow-y: auto;
}

.rbc-org-history-mapping-detail-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	gap: var(--nu-space-3, 12px);
	padding: var(--nu-space-3, 12px);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-sm, 6px);
	background: var(--nu-surface, #fff);
}

.rbc-org-history-mapping-detail-row > .bi {
	color: var(--nu-muted, #62726b);
}

.rbc-org-history-mapping-detail-organization {
	display: grid;
	min-width: 0;
	gap: 2px;
	overflow-wrap: anywhere;
}

.rbc-org-history-mapping-detail-organization > span {
	color: var(--nu-muted, #62726b);
	font-size: var(--nu-fs-xs, 0.75rem);
}

.rbc-org-map-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
	gap: var(--nu-space-2, 8px);
	align-items: center;
	padding: var(--nu-space-3, 12px);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-md, 8px);
}

.rbc-org-map-row > span:not(.bi) {
	min-width: 0;
	overflow-wrap: anywhere;
}

.rbc-org-map-row--review {
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.rbc-org-cannot-execute {
	display: flex;
	gap: var(--nu-space-2, 8px);
	color: var(--nu-tone-amber-fg, #b3730f);
}

.rbc-org-map-lock {
	display: flex;
	align-items: center;
	gap: var(--nu-space-2, 8px);
}

.rbc-org-actions {
	justify-content: flex-end;
}

.rbc-org-confirm-facts {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: var(--nu-space-1, 4px) var(--nu-space-3, 12px);
	margin: 0;
}

.rbc-org-confirm-facts dt {
	color: var(--nu-ink-3, #7d8e88);
}

.rbc-org-confirm-facts dd {
	margin: 0;
	font-weight: var(--nu-fw-semibold, 600);
	text-align: right;
}

.rbc-org-cancel-action {
	margin-top: var(--nu-space-1, 4px);
	padding-top: var(--nu-space-3, 12px);
	border-top: 1px solid var(--nu-border, #dfe5e1);
}

.rbc-org-batch-id,
.rbc-org-plan-count {
	color: var(--nu-ink-3, #7d8e88);
	font-variant-numeric: tabular-nums;
}

.rbc-org-summary {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: var(--nu-space-5, 24px);
}

.rbc-org-summary h2,
.rbc-org-summary p,
.rbc-org-complete h2,
.rbc-org-complete p {
	margin: var(--nu-space-1, 4px) 0;
}

.rbc-org-summary dl {
	display: grid;
	grid-template-columns: auto auto;
	gap: var(--nu-space-1, 4px) var(--nu-space-4, 16px);
	margin: 0;
}

.rbc-org-summary dt {
	color: var(--nu-ink-3, #7d8e88);
}

.rbc-org-plan-help {
	margin: 0 0 var(--nu-space-3, 12px);
}

.rbc-org-request-plan-head {
	margin-top: var(--nu-space-5, 24px);
	padding-top: var(--nu-space-4, 16px);
	border-top: 1px solid var(--nu-border, #dfe5e1);
}

.rbc-org-request-plan-list {
	display: grid;
	gap: var(--nu-space-3, 12px);
}

/* Assignment cards deliberately reuse Copy Permissions' parent drawers. The body keeps the role
   facts on the left and gives every successor choice a full-width, clearly selectable row on the
   right; long organization names wrap inside that column instead of widening the whole page. */
.rbc-org-plan-card {
	cursor: default;
}

.rbc-org-plan-card.is-selected {
	border-color: var(--nu-accent, #006325);
	box-shadow: 0 0 0 1px rgba(0, 99, 37, 0.16);
}

.rbc-org-plan-card.is-removal {
	border-color: var(--nu-tone-amber-border, #f0e2c6);
}

.rbc-org-plan-card-body {
	align-items: stretch;
}

.rbc-org-plan-destinations {
	flex: 0 1 25rem;
	min-width: min(20rem, 100%);
	display: grid;
	align-content: start;
	gap: var(--nu-space-2, 8px);
}

/* A split can expose several destinations for one assignment. These controls make that set act
   as a small multi-select without competing visually with the product/application-wide actions. */
.rbc-org-destination-actions {
	display: flex;
	justify-content: flex-end;
	align-items: baseline;
	gap: var(--nu-space-2, 8px);
	flex-wrap: wrap;
	font-size: var(--nu-fs-small, 0.8125rem);
}

.rbc-org-destination-actions .rbc-linkbtn {
	text-decoration: none;
	font-weight: var(--nu-fw-semibold, 600);
	color: var(--nu-ink-2, #4a5f58);
}

.rbc-org-destination-actions .rbc-linkbtn:disabled {
	font-weight: var(--nu-fw-regular, 400);
	color: var(--nu-ink-3, #7d8e88);
}

.rbc-org-unsaved {
	display: flex;
	align-items: center;
	gap: var(--nu-space-1, 4px);
	color: var(--nu-tone-amber-fg, #b3730f);
}

.rbc-org-removal-count {
	display: flex;
	align-items: center;
	gap: var(--nu-space-1, 4px);
	color: var(--nu-tone-amber-fg, #b3730f);
}

.rbc-org-plan-destination {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--nu-space-3, 12px);
	min-width: 0;
	padding: var(--nu-space-2, 8px) var(--nu-space-3, 12px);
	border: 1px solid var(--nu-border, #dfe5e1);
	border-radius: var(--nu-radius-md, 8px);
	background: var(--nu-surface, #fff);
	color: var(--nu-ink, #213b34);
	text-align: left;
}

button.rbc-org-plan-destination {
	cursor: pointer;
}

button.rbc-org-plan-destination:hover,
button.rbc-org-plan-destination:focus-visible,
.rbc-org-plan-destination.is-selected {
	border-color: var(--nu-accent, #006325);
	background: var(--nu-bg-tint, #eef5f0);
}

.rbc-org-plan-destination.is-removal {
	border-color: var(--nu-tone-amber-border, #f0e2c6);
	background: var(--nu-tone-amber-bg, #fdf3e2);
}

.rbc-org-plan-destination.is-removal > .bi {
	color: var(--nu-tone-amber-fg, #b3730f);
}

button.rbc-org-plan-destination:focus-visible {
	outline: 2px solid var(--nu-accent, #006325);
	outline-offset: 2px;
}

.rbc-org-plan-destination-text {
	display: grid;
	gap: var(--nu-space-1, 4px);
	min-width: 0;
	overflow-wrap: anywhere;
}

.rbc-org-plan-destination-text small {
	color: var(--nu-ink-3, #7d8e88);
}

/* Keep the hierarchy-content control separate from the destination's checkbox button. Besides
   avoiding nested buttons, this lets a split expose one independently accurate subtree per
   successor without a hierarchy lookup changing the reviewed selection. */
.rbc-org-plan-destination-shell {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: var(--nu-space-2, 8px);
	min-width: 0;
}

.rbc-org-plan-destination-shell > .rbc-org-plan-destination {
	width: 100%;
}

/* AssignmentScopeInfo deliberately renders nothing for a non-cascading assignment. In that case
   the destination is the shell's only child and must reclaim the information icon's column. */
.rbc-org-plan-destination-shell > .rbc-org-plan-destination:only-child {
	grid-column: 1 / -1;
}

.rbc-org-plan-loading {
	justify-content: center;
	min-height: 18rem;
	text-align: center;
}

.rbc-org-plan-loading h2,
.rbc-org-plan-loading p {
	margin: 0;
}

.rbc-org-plan-check {
	flex: 0 0 auto;
	color: var(--nu-accent, #006325);
}

.rbc-org-plan-origin {
	display: grid;
	gap: var(--nu-space-1, 4px);
	margin-top: var(--nu-space-3, 12px);
	padding-top: var(--nu-space-3, 12px);
	border-top: 1px solid var(--nu-border, #dfe5e1);
	font-size: var(--nu-fs-small, .875rem);
}

.rbc-org-plan-origin > strong,
.rbc-org-plan-origin > small {
	color: var(--nu-ink-3, #7d8e88);
}

.rbc-org-original-request-link {
	justify-self: start;
	text-align: left;
}

.rbc-org-plan-card > .rbc-banner {
	margin-top: var(--nu-space-3, 12px);
}

.rbc-org-complete {
	display: flex;
	align-items: flex-start;
	gap: var(--nu-space-3, 12px);
}

.rbc-org-complete > .bi {
	color: var(--nu-tone-green-fg, #1a7a3e);
	font-size: 1.5rem;
}

@media (max-width: 1024px) {
	.rbc-detail-grid.rbc-org-detail-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 900px) {
	.rbc-org-summary {
		grid-template-columns: 1fr;
	}

	.rbc-org-plan-card-body {
		flex-direction: column;
	}

	.rbc-org-plan-destinations {
		width: 100%;
		min-width: 0;
	}
}

@media (max-width: 640px) {
	.rbc-org-fields {
		grid-template-columns: 1fr;
	}

	.rbc-org-detail-grid .rbc-overview {
		grid-template-columns: 1fr;
		gap: 2px var(--nu-space-4, 16px);
	}

	.rbc-org-detail-grid .rbc-overview dt {
		margin-top: var(--nu-space-2, 8px);
	}

	.rbc-org-field-wide {
		grid-column: auto;
	}

	.rbc-org-map-controls {
		grid-template-columns: minmax(0, 1fr);
	}

	.rbc-org-map-add {
		justify-content: flex-end;
		padding-top: 0;
	}

	.rbc-org-mappings-step {
		min-height: 0;
	}

	.rbc-org-history-mapping-detail-row {
		grid-template-columns: minmax(0, 1fr);
	}

	.rbc-org-history-mapping-detail-row > .bi {
		transform: rotate(90deg);
	}

}
