html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: #b71c1c;
    color: #ffffff;
    font-weight: 500;
    bottom: 0;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 2.5rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .reload {
        color: #ffffff;
        font-weight: 700;
        text-decoration: underline;
    }

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
        color: #ffffff;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* index.html's loader: white like the manifests' background_color, the emblem centred where Android's splash draws the
   icon, so the splash hands over to it without a jump */
.app-loader {
    position: fixed;
    inset: 0;
    background: #ffffff;
    font-family: Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --emblem: 160px;
}

.app-loader-emblem {
    position: absolute;
    left: calc(50% - var(--emblem) / 2);
    top: calc(50% - var(--emblem) / 2);
    width: var(--emblem);
    height: var(--emblem);
}

.app-loader-name {
    position: absolute;
    top: calc(50% + var(--emblem) / 2 + 16px);
    width: 100%;
    text-align: center;
    color: #1E6FA0;
    font-size: 1.4rem;
    font-weight: 500;
}

    .app-loader-name b {
        color: #EF6C00;
        font-weight: 500;
    }

.app-loader-bar {
    position: absolute;
    top: calc(50% + var(--emblem) / 2 + 64px);
    left: calc(50% - 80px);
    width: 160px;
    height: 4px;
    border-radius: 2px;
    background: #DCEAF4;
    overflow: hidden;
}

    .app-loader-bar::after {
        content: "";
        display: block;
        width: var(--blazor-load-percentage, 0%);
        height: 100%;
        background: #2A8EC6;
        transition: width 0.05s ease-in-out;
    }

.app-loader-version {
    position: absolute;
    bottom: calc(16px + env(safe-area-inset-bottom));
    width: 100%;
    text-align: center;
    color: #6B7B88;
    font-size: 0.8rem;
}

/* a phone on its side: a smaller emblem keeps the bar clear of the version line */
@media (max-height: 480px) {
    .app-loader {
        --emblem: 96px;
    }
}

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Display-only fields carry the explicit "readonly-field" class. MudBlazor gives a read-only
   MudTextField no distinct styling and adds no .mud-readonly class to plain text inputs (only
   selects/checkboxes/switches), and its readonly markup also covers interactive selects/date-pickers
   — so we opt fields in by name. Lock at the START so it never clashes with an end-adornment; text
   stays selectable. .readonly-field is on the .mud-input-control root. */
.readonly-field .mud-input {
    background-color: rgba(128, 128, 128, .07);
}

.readonly-field input,
.readonly-field textarea {
    color: var(--mud-palette-text-secondary);
    cursor: text;
    padding-left: 1.6rem !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23888'%3E%3Cpath d='M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 0.3rem center;
    background-size: 1rem;
}

/* A popup's close "x" (DialogOptions.CloseButton) belongs on its own title bar. MudBlazor 9 leaves a
   centred .mud-dialog position:static, so the absolutely placed close button pinned to the full-screen
   container instead - the screen's top-right corner, over the app bar's SIGN OUT (gaps W08). The
   corner-anchored dialogs keep MudBlazor's own position:absolute (its rule is more specific). */
.mud-dialog {
    position: relative;
}

/* The Back Office in the desktop look (BackOfficeShell) keeps the pages' toasts; a till shows them bottom
   centre (MauiProgram), so a toast at the bottom sits just above the shell's 28 px status strip instead
   of over it. */
body:has(.bo-shell) .mud-snackbar-location-bottom-center,
body:has(.bo-shell) .mud-snackbar-location-bottom-left,
body:has(.bo-shell) .mud-snackbar-location-bottom-right {
    bottom: 36px;
}

/* A phone, an upright tablet or any touch screen (Android layout walk 2026-11-16, UW-31): the top-right toasts (the
   web app's default; "Print Queue: Slips given up" from the dashboard's alerts) landed on the Back Office's HOME /
   SIGN OUT and open-page tabs, or the app bar and the breadcrumb. There they go to the bottom centre, as a phone's
   own messages do - above the Back Office's status strip, as the rule above. A desktop with a mouse keeps them top
   right at every width; a till's familiar look keeps its own toast rules (till.css). */
@media (max-width: 1023.98px), (hover: none) and (pointer: coarse) {
    body:not(:has(.till-familiar)) .mud-snackbar-location-top-right {
        top: auto;
        right: auto;
        bottom: 24px;
        left: 50%;
        transform: translateX(-50%);
    }

    body:not(:has(.till-familiar)):has(.bo-shell) .mud-snackbar-location-top-right {
        bottom: 36px;
    }
}

/* Shared fill-remaining layout for the POS screens (order / settle / restaurant).
   The page body flexes to fill the viewport below the app bar so the sticky bottom
   nav bar sits at the true screen bottom (no dead band) and the inner panes scroll
   rather than the page. Replaces the per-screen magic-number calc(100vh - 250/260/
   160px) guesses with ONE consistent offset. 120px ~= dense MudAppBar (48) + the
   MudContainer pa-4 top/bottom (32) + the breadcrumb row (~40). 100dvh tracks the
   *visible* mobile viewport (100vh counts the area behind the Android/iOS URL bar,
   which is what left a gap/scrollbar); the 100vh line is a fallback for old engines. */
.pos-fill-root {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 120px);
    min-height: calc(100dvh - 120px);
}

/* Responsive button-menu grid for the full-width landing pages (Back Office,
   Reports home). FullWidth buttons in these cells fill the column, so a menu of
   buttons uses the whole desktop width (auto-fill packs as many ~240px columns as
   fit) yet collapses to a single column on a phone — instead of one skinny centred
   stack that left most of a wide screen empty. */
.btn-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 8px;
}

/* CollapsibleCard (report sections): MudBlazor gives an OPEN collapse overflow-y:auto, so a chart's
   fraction-of-a-pixel overflow (slanted axis labels) drew a scrollbar's arrows down the card. The
   body is sized to its content, so clip instead. (Not "visible": beside MudBlazor's overflow-x:hidden
   that computes back to auto.) */
.collapsible-card__body.mud-collapse-entered .mud-collapse-wrapper {
    overflow-y: hidden;
}

/* ReportTiles' "Key figures" fold: the tiles' MudGrid sits flush with the collapse box, so ANY clip
   there cuts the tiles' shadows (sides and bottom). Open, clip nothing — the tiles draw exactly as they
   did before the fold existed. Only while moving does the collapse clip, as it must to animate. */
.report-tiles .collapsible-card__body.mud-collapse-entered .mud-collapse-wrapper {
    overflow: visible;
}

/* ---- Report readability (every report web view; Pawel 2026-10-18: "the section name is not very visible") ----
   A section title (CollapsibleCard: Payments, Revenue, Key figures…) was subtitle1 at weight 400, the same as the
   table text: now bold, a little larger, with a blue bar. Cards get a light border (the elevation-1 shadow alone
   hardly parted them from a white page); a SectionTable's header row sits on a light blue band and its total row on
   a grey one under a rule, like the A4's total line; rows are striped for the 9-column tables. Each selector outranks the MudBlazor
   rule it overrides, whatever the load order. */
.mud-typography.collapsible-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    border-left: 4px solid var(--mud-palette-primary);
    padding-left: 8px;
}

/* the whole title row (chevron too) on a tint of the bar's blue (Pawel 2026-10-19: "even more visible") — the
   strongest band on the page, well above a SectionTable's 7% header band, so a title right above a table's header
   row (Cash Due) reads as the section, not as another header (the hex = the mix, for an old browser) */
.collapsible-card__head {
    background-color: #d9ebf5;
    background-color: color-mix(in srgb, var(--mud-palette-primary) 18%, var(--mud-palette-surface));
    padding: 4px 8px 4px 0;
}

.report-card {
    border: 1px solid var(--mud-palette-lines-default);
}

/* SectionTable's zebra: every other row in screen order (its RowClass; MudTable's Striped re-counted a virtualized
   list's rendered rows, so stripes swapped rows as it scrolled). 3.5% black — MudBlazor's 2% barely showed — and the
   hover goes up with it, so a striped row still lights up. Find's highlights are cell backgrounds, drawn over it. */
.section-table .mud-table-body .mud-table-row.section-table__stripe {
    background-color: rgba(0, 0, 0, 0.035);
}

/* above MudBlazor's .mud-table-hover .mud-table-container .mud-table-root .mud-table-body .mud-table-row:hover (4%) */
@media (hover: hover) and (pointer: fine) {
    .section-table .mud-table-hover .mud-table-container .mud-table-root .mud-table-body .mud-table-row:hover {
        background-color: rgba(0, 0, 0, 0.07);
    }
}

/* SectionColumn.Sticky (Product Mix By store's item name): the cells scrolling sideways under a pinned one must not show
   through, so it's opaque — the card's surface with its row's zebra / hover tint drawn over it. A subtotal cell gets
   the surface; tfoot keeps its own grey. A hairline marks its edge, and it keeps a readable width: a table wider than
   its card shrinks every column to its longest word, which put most names on two lines. The group titles stay in view
   with it (16px = the dense cell's padding). */
.section-table .mud-table-cell.section-table__sticky {
    box-shadow: inset -1px 0 0 var(--mud-palette-lines-default);
}

.section-table .mud-table-body .mud-table-cell.section-table__sticky {
    background-color: var(--mud-palette-surface);
    min-width: 12em;
}

/* SectionColumn.StickyEnd (By employee's Total): the same opaque cell at the RIGHT edge, its hairline on its left */
.section-table .mud-table-cell.section-table__sticky-end {
    box-shadow: inset 1px 0 0 var(--mud-palette-lines-default);
}

.section-table .mud-table-body .mud-table-cell.section-table__sticky-end {
    background-color: var(--mud-palette-surface);
}

.section-table .mud-table-body .mud-table-row.section-table__stripe > .mud-table-cell.section-table__sticky,
.section-table .mud-table-body .mud-table-row.section-table__stripe > .mud-table-cell.section-table__sticky-end {
    background-image: linear-gradient(rgba(0, 0, 0, 0.035), rgba(0, 0, 0, 0.035));
}

@media (hover: hover) and (pointer: fine) {
    .section-table .mud-table-hover .mud-table-body .mud-table-row:hover > .mud-table-cell.section-table__sticky,
    .section-table .mud-table-hover .mud-table-body .mud-table-row:hover > .mud-table-cell.section-table__sticky-end {
        background-image: linear-gradient(rgba(0, 0, 0, 0.07), rgba(0, 0, 0, 0.07));
    }
}

.section-table__sticky-title {
    position: sticky;
    left: 16px;
    display: inline-block;
}

/* SectionTable ScrollBox (By employee: ~100 employee columns × ~700 rows): the table scrolls in a box no taller than
   the window, so MudTable's fixed header and fixed footer stick to it and its sideways scrollbar is on screen - not
   under the last row. A max-height, so a short table keeps its own height. Five classes beat MudBlazor's fixed-footer
   rule (.mud-table-sticky-footer * .mud-table-root .mud-table-foot * .mud-table-cell = white) for tfoot's grey. */
.section-table__box .mud-table-container {
    max-height: calc(100vh - 140px);
    max-height: max(320px, calc(100dvh - 140px));
}

/* a narrow report (no index rail) floats its Index / Find button over the window's bottom-right corner: the box ends
   above it, so the grand total's Total cell isn't under the button */
.report-frame[data-rf-rail="0"] .section-table__box .mud-table-container {
    max-height: calc(100vh - 200px);
    max-height: max(320px, calc(100dvh - 200px));
}

.section-table .section-table__box .mud-table-root .mud-table-foot .mud-table-cell {
    background-color: var(--mud-palette-background-gray);
}

/* a light tint of the title bar's blue, so the header band differs from the grey zebra (Pawel), and lighter than
   the section title's 18% band (Pawel 2026-10-19); opaque, so a virtualized table's sticky header still hides the
   rows scrolling under it (the hex = the mix, for an old browser). Five classes beat MudBlazor's sticky-header rule
   (.mud-table-sticky-header * .mud-table-root .mud-table-head .mud-table-cell = white). */
.section-table .mud-table-container .mud-table-root .mud-table-head .mud-table-cell {
    background-color: #f0f7fb;
    background-color: color-mix(in srgb, var(--mud-palette-primary) 7%, var(--mud-palette-surface));
    font-weight: 600;
}

/* tfoot only: a grouped table's subtotal rows (in the body) stay as they were */
.section-table .mud-table-foot .mud-table-cell {
    border-top: 2px solid var(--mud-palette-lines-inputs);
    background-color: var(--mud-palette-background-gray);
}

/* The A4's cash-up colours (CashupCells, SectionColumn's CellClass / TotalClass / HeaderClass): a difference that
   isn't 0 red, a staff bag's 0 difference green, the POS's own figures blue (the system-cash Cashback green, bold).
   Palette vars, so dark mode follows the theme; a header's sort label takes its cell's colour. */
.section-table .mud-table-cell.cashup-diff {
    color: var(--mud-palette-error);
}

.section-table .mud-table-cell.cashup-balanced {
    color: var(--mud-palette-success);
}

.section-table .mud-table-cell.cashup-pos-figure {
    color: var(--mud-palette-info);
}

.section-table .mud-table-cell.cashup-pos-figure--cash {
    color: var(--mud-palette-success);
    font-weight: 600;
}

.section-table .mud-table-head .mud-table-cell[class*="cashup-"] .mud-table-sort-label {
    color: inherit;
}

/* Sales Summary's Revenue block: its "Total" line */
.kv-total > td {
    border-top: 2px solid var(--mud-palette-lines-inputs);
}

/* A full-width bar chart spread Payments' 4 bars ~600px apart on a wide screen: stop at 900px, centred */
.report-chart-cap {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* ReportChartGrid: MudChart draws its legend ~3px past the chart box, hence the margin; and it
   right-aligns the y-axis labels 20px into its svg, so a wider one ("1,5k") lost its first characters
   at the svg's edge — let the labels draw past it. Inside a CollapsibleCard the collapse wrapper
   clips at the chart's own left edge (MudGrid's negative margin eats the item padding), so the box
   keeps 8px of room for them. */
.report-chart {
    margin-bottom: 4px;
    padding-left: 8px;
}

.report-chart svg {
    overflow: visible;
}

/* A report's receipt text (Report Sets' Receipt tab, FullSummaryView / EOD Range "Report" tabs).
   The POS lays it out in 42-character thermal lines; the font scales with the box so a line always
   fits — full size on a wide screen, down to 8px on a phone (100cqw / 26 ≈ 42 monospace characters
   at 0.6em each, with a little slack). The few longer lines (the FILTERS header, a paid-in comment)
   wrap instead of forcing a sideways scroll. The first font-size is the fallback for a browser
   without container units. */
.receipt-text {
    container-type: inline-size;
}

.receipt-text pre {
    margin: 0;
    white-space: pre-wrap;
    overflow-x: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, 'Cascadia Mono', Consolas, 'Courier New', monospace;
    line-height: 1.3;
    font-size: 0.78rem;
    font-size: clamp(8px, calc(100cqw / 26), 0.78rem);
}

/* Reports on a phone (below MudBlazor's sm, 600px). Nested cards leave a 375px screen ~230px for a
   report table, so: SectionTable cells get 6px sides instead of 16/24, and no room is held for the
   sort arrow (invisible until hovered, which a touch screen never does). The report output tab
   strips (.report-tabs) drop their icons and let tabs shrink to the text — MudTabs pins
   min-width:160px INLINE, hence !important — so Web / Receipt / PDF / Excel all show instead of one
   tab behind a scroll arrow. */
@media (max-width: 599.98px) {
    .section-table .mud-table-dense .mud-table-row .mud-table-cell {
        padding-left: 6px;
        padding-right: 6px;
        padding-inline-start: 6px;
        padding-inline-end: 6px;
    }

    .section-table .mud-table-sort-label-icon.mud-direction-none {
        display: none;
    }

    .section-table__sticky-title {
        left: 6px;
    }

    .section-table .mud-table-body .mud-table-cell.section-table__sticky {
        min-width: 8em;
    }

    /* a long folded-list title ("Credit Card Payments (52) · 12 315,00") wraps less */
    .mud-typography.collapsible-card__title {
        font-size: 1rem;
    }

    /* a several-series chart legend (ReportChartGrid) wraps to a second line, ~45px past the box */
    .report-chart--legend {
        margin-bottom: 48px;
    }

    .report-tabs .mud-tab {
        min-width: 0 !important;
        padding-left: 10px;
        padding-right: 10px;
    }

    .report-tabs .mud-tab .mud-icon-root {
        display: none;
    }

    /* A MudButtonGroup never wraps, so three icon buttons (Report Sets' Business Days / Calendar
       Days / Clock In/Out) ran off the card: split the width evenly instead, no icons, labels wrap. */
    .phone-fill-group {
        display: flex;
        width: 100%;
    }

    .phone-fill-group .mud-button-root {
        flex: 1 1 0;
        min-width: 0;
        padding-left: 6px;
        padding-right: 6px;
    }

    .phone-fill-group .mud-button-icon-start {
        display: none;
    }
}

/* ---- The report index (ReportFrame / ReportIndex / reportIndex.js): the web's Document Map ----
   A report web view's sections, with a sticky rail beside them (the report 960px wide or more: a container
   query on .report-frame__box, so it's right from the first paint) or an "Index" button + bottom sheet
   (narrower: a phone). The rail is open at 1200px+, else a thin "Index" strip, until someone opens / folds
   it (.rf-open / .rf-folded, remembered). Without an index (a 1-table report) none of this renders and the
   frame is the report's old MudStack in two plain divs. reportIndex.js sets the variables (--rf-top: the
   sticky top, under a fixed app bar; --rf-avail: the scroller's height; --rf-fab-*: the buttons inside the
   Back Office's scroll box) and the data-rf-* attributes. */
.report-frame__box {
    container: rframe / inline-size;
}

.report-frame__row {
    display: flex;
    align-items: flex-start;
}

.report-frame__main {
    flex: 1 1 0;
    min-width: 0;
}

/* a jump lands a section's title just under the sticky top */
.report-frame .report-anchor {
    scroll-margin-top: var(--rf-top, 8px);
}

.report-frame__rail {
    display: none;
}

@container rframe (min-width: 960px) {
    .report-frame__rail {
        display: block;
        flex: 0 0 auto;
        position: sticky;
        top: var(--rf-top, 8px);
        margin-right: 12px;
    }

    .report-frame__rail .rf-panel { display: flex; }
    .report-frame__rail .rf-strip { display: none; }
    .report-frame__rail.rf-folded .rf-panel,
    .report-frame__rail.rf-auto .rf-panel { display: none; }
    .report-frame__rail.rf-folded .rf-strip,
    .report-frame__rail.rf-auto .rf-strip { display: flex; }
}

@container rframe (min-width: 1200px) {
    .report-frame__rail.rf-auto .rf-panel { display: flex; }
    .report-frame__rail.rf-auto .rf-strip { display: none; }
}

/* Sticky needs every box between the rail and the real scroller (.bo-dbody, or the window) NOT to be a scroll
   container. Two MudBlazor boxes are, without ever scrolling: a rounded MudTabs (overflow:hidden — the report
   output tabs) and an open collapse's wrapper (overflow-y:auto — Report Sets' Output panel, a store's panel).
   overflow:clip clips exactly as they do (rounded corners, nothing spilling) but isn't a scroll container.
   Only around a rail, and the collapse only while fully open. Since 2026-11-07 also around every report output tab
   strip (ReportTabs: the strip itself sticks to the top, with or without a rail - Product Mix has none). */
.mud-tabs.mud-tabs-rounded:has(.report-frame__rail),
.mud-tabs.report-tabs,
.mud-collapse-entered .mud-collapse-wrapper:has(.report-frame__rail),
.mud-collapse-entered .mud-collapse-wrapper:has(.report-tabs) {
    overflow: clip;
}

.rf-panel {
    width: 240px;
    max-height: calc(var(--rf-avail, 100vh) - var(--rf-top, 8px) - 16px);
    flex-direction: column;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: var(--mud-default-borderradius);
    background: var(--mud-palette-surface);
}

.rf-strip {
    width: 40px;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 4px 0 10px;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: var(--mud-default-borderradius);
    background: var(--mud-palette-surface);
}

.rf-strip__label {
    display: block;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    border: 0;
    background: none;
    padding: 0;
    font: inherit;
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    color: inherit;
    opacity: 0.75;
    cursor: pointer;
}

.rf-head {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 4px 4px 2px 12px;
}

.rf-head__title {
    flex: 1 1 auto;
    font-weight: 600;
}

.rf-filter {
    padding: 0 8px 6px;
}

.rf-filter .mud-input-control {
    margin-top: 0;
}

.rf-tree {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 4px 8px;
}

.rf-item {
    display: flex;
    align-items: center;
    min-height: 30px;
    border-radius: 4px;
}

.rf-item.is-active {
    background: var(--mud-palette-action-default-hover);
    box-shadow: inset 3px 0 0 var(--mud-palette-primary);
}

.rf-item.is-active > .rf-label {
    color: var(--mud-palette-primary);
    font-weight: 600;
}

/* display:block: MudBlazor makes every button an inline-flex centring its text */
.rf-label {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    padding: 4px 6px;
    border: 0;
    border-radius: 4px;
    background: none;
    font: inherit;
    font-size: 0.875rem;
    color: inherit;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.rf-label:hover {
    background: var(--mud-palette-action-default-hover);
}

.rf-sub > .rf-label {
    font-size: 0.8125rem;
}

.rf-path {
    opacity: 0.6;
}

.rf-chev,
.rf-chev-space {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
}

.rf-chev {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.15s;
}

.rf-chev.is-open {
    transform: rotate(90deg);
}

.rf-empty {
    padding: 8px 12px;
    font-size: 0.8125rem;
    opacity: 0.7;
}

/* the index's footer: the report's data check, only when the reply is missing something (ReportIndex) */
.rf-datacheck {
    flex: none;
    padding: 4px 8px 6px;
    border-top: 1px solid var(--mud-palette-lines-default);
    font-size: 0.75rem;
}

.rf-datacheck__line {
    display: flex;
    align-items: center;
    justify-content: flex-start;   /* MudBlazor centres every button */
    gap: 4px;
    width: 100%;
    border: 0;
    background: none;
    padding: 2px 4px;
    font: inherit;
    color: inherit;
    opacity: 0.75;
    text-align: left;
    cursor: pointer;
}

.rf-datacheck__list {
    padding: 2px 4px 0 24px;
    opacity: 0.85;
    overflow-wrap: anywhere;
}

/* The floating part, a dock in the corner of the scroller's box, shown only for the frame on screen: back to
   the top (after about a screen) above a row of the find bar (a find with matches, while no open rail panel
   shows them) and the Index / Find button (while the rail isn't displayed: a phone, or a report with no
   index). A row with nothing in it takes no room, so back-to-top sits where it always did. */
.report-frame .rf-dock {
    display: none;
    position: fixed;
    right: var(--rf-fab-right, 16px);
    bottom: var(--rf-fab-bottom, 16px);
    z-index: 1050;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
    pointer-events: none;
}

.report-frame[data-rf-active] .rf-dock {
    display: flex;
}

.rf-dock__row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-frame .rf-dock .rf-fab,
.report-frame .rf-dock .rf-top,
.report-frame .rf-dock .rf-findbar {
    display: none;
    pointer-events: auto;
}

.report-frame[data-rf-rail="0"] .rf-dock .rf-fab {
    display: inline-flex;
}

/* Below 1024 px, where the Index / Find button floats over the report (Android layout walk 2026-11-16, UW-31: on a
   phone it covered half the Guests card), the end of the report can scroll clear of the dock: back to the top (40 px)
   + the 20 px gap + the button (48 px) + its 16 px offset - the page's own 16 px + 8 px air = 116 px. Content passing
   under the button while scrolling is a floating button's nature; 1024 px and wider draw the frame as before, and so
   does a print (an A4 page is narrower than 1024 px). */
@media screen and (max-width: 1023.98px) {
    .report-frame[data-rf-rail="0"] {
        padding-bottom: 116px;
    }
}

.report-frame[data-rf-scrolled] .rf-dock .rf-top {
    display: inline-flex;
}

.report-frame:not([data-rf-panel="1"]) .rf-dock .rf-findbar {
    display: flex;
}

.report-frame[data-rf-rail="1"][data-rf-panel="1"] .rf-dock__row,
.report-frame[data-rf-rail="1"] .rf-dock__row:not(:has(.rf-findbar)) {
    display: none;
}

.rf-findbar {
    align-items: center;
    gap: 0;
    padding: 2px 2px 2px 4px;
    border-radius: 24px;
    background: var(--mud-palette-surface);
    color: var(--mud-palette-text-primary);
    box-shadow: var(--mud-elevation-6);
}

/* display:block: MudBlazor makes every button an inline-flex centring its text */
.rf-findbar__count {
    display: block;
    min-width: 3.4em;
    padding: 4px 2px;
    border: 0;
    border-radius: 4px;
    background: none;
    font: inherit;
    font-size: 0.875rem;
    font-variant-numeric: tabular-nums;
    color: inherit;
    text-align: center;
    cursor: pointer;
}

/* Find in report's controls under the search box: previous / "3 of 12" / next, Only matching rows, and where
   the current match is. */
.rf-findnav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0 4px 2px;
}

.rf-findnav__count {
    min-width: 5.2em;
    font-size: 0.8125rem;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.rf-findnav .rf-only {
    margin: 0 0 0 4px;
}

.rf-findnav .rf-only .mud-typography {
    font-size: 0.8125rem;
}

.rf-findcur {
    padding: 0 12px 6px;
    font-size: 0.75rem;
    opacity: 0.75;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rf-group {
    padding: 8px 10px 2px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.6;
}

.rf-count {
    flex: 0 0 auto;
    padding: 0 8px 0 4px;
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
    opacity: 0.7;
}

/* Find's matches in the tables: the row tinted, the cells that hold the match stronger, the current match
   framed. The theme's warning colour, so it reads in light and dark. */
.report-frame tr.rf-hit > td {
    background-color: color-mix(in srgb, var(--mud-palette-warning) 10%, transparent);
}

.report-frame tr > td.rf-hit-cell {
    background-color: color-mix(in srgb, var(--mud-palette-warning) 32%, transparent);
}

.report-frame tr.rf-hit--current > td,
.report-frame tr > td.rf-hit--current {
    box-shadow: inset 0 2px 0 var(--mud-palette-warning), inset 0 -2px 0 var(--mud-palette-warning);
}

/* Only matching rows: a card with no match steps aside; the tables' captions say what's shown */
.report-frame .report-anchor.rf-find-hidden {
    display: none;
}

.rf-find-caption {
    opacity: 0.75;
}

.rf-scrim {
    position: fixed;
    inset: 0;
    z-index: 1340;
    background: rgba(0, 0, 0, 0.32);
}

.rf-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1350;
    display: flex;
    flex-direction: column;
    max-height: 75vh;
    max-height: 75dvh;
    padding-bottom: env(safe-area-inset-bottom);
    border-radius: 12px 12px 0 0;
    background: var(--mud-palette-surface);
    color: var(--mud-palette-text-primary);
    box-shadow: var(--mud-elevation-16);
    outline: none;
}

.rf-sheet .rf-item {
    min-height: 40px;
}

/* a tablet or a narrow window: a panel in the corner rather than a full-width sheet */
@media (min-width: 600px) {
    .rf-sheet {
        left: auto;
        right: 16px;
        bottom: 16px;
        width: 360px;
        border-radius: 12px;
    }
}

/* where a jump landed (a table row, or a text card's line: a Key figures tile) */
.report-frame tr.rf-flash > td,
.report-frame .rf-flash:not(tr) {
    animation: rf-flash 1.6s ease-out;
}

@keyframes rf-flash {
    0%, 35% { background-color: var(--mud-palette-warning-hover, rgba(255, 152, 0, 0.25)); }
    100% { background-color: transparent; }
}