﻿.busy-cursor, .busy-cursor * {
    cursor: wait !important;
}

.bridge-loader-overlay {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.65); /* soft backdrop */
    z-index: 2100; /* above page chrome */
}

.bridge-loader-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    background: var(--rz-surface, #fff);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.bridge-loader-text {
    font: 500 14px/1.2 var(--rz-font-family, system-ui);
    color: var(--rz-text-color, #333);
}

/* Highlighted/selected text readability fix (Lauren punch-list #6).
   The Radzen theme selected --rz-primary-light bg + --rz-on-primary-light text,
   which is low-contrast and hard to read. Force a solid high-contrast pair. */
::selection,
.rz-layout ::selection {
    background-color: rgba(47,111,235,0.28) !important;
}
::-moz-selection,
.rz-layout ::-moz-selection {
    background-color: rgba(47,111,235,0.28) !important;
}

/* ---------------------------------------------------------------------------
   portal-layout-2026-09-25 — action rows wrap; they never collide or truncate.

   A horizontal RadzenStack of buttons renders as .rz-stack.rz-flex-row, which
   sets `gap` but not `flex-wrap`, so it defaults to nowrap.  Inside a grid
   column (max-width: N/12) a group wider than its column overflows; with
   JustifyContent.End the overflow spills leftwards over the previous column
   and paints on top of it.  Separately, .rz-button is display:inline-block
   with overflow:hidden and a label that can wrap internally, so as a shrinking
   flex item it collapses below its one-line label and clips the text.

   Both are layout faults, not styling: the row should reflow, which is also
   what makes the page survive browser zoom (zoom == a narrower viewport).
   These rules change nothing where the group already fits.
   --------------------------------------------------------------------------- */
.rz-stack.rz-flex-row.rz-justify-content-flex-end,
.bpx-action-group {
    flex-wrap: wrap;
}

.rz-stack.rz-flex-row.rz-justify-content-flex-end > .rz-button,
.bpx-action-group > .rz-button {
    flex: 0 0 auto;      /* keep the button at its label width - never shrink */
    white-space: nowrap; /* never wrap the label inside the button           */
}
