/* ---------- 0. Merged from wwwroot/app.css ----------
   Two files named app.css were BOTH linked from App.razor (@Assets["app.css"] -> wwwroot/app.css, and
   css/app.css). They each defined .empty-state and .stat-card, so the empty state on every list screen
   was assembled from both — this file won on padding because it loads second, while the other file's
   text-align and colour survived unchallenged. One stylesheet per host; the rules below are the ones
   that existed only in the deleted file.

   --radius-12 was never defined anywhere in the design system (0 definitions in main.css), so the
   corners fell through to the 12px literal. The real token is --border-radius-12.

   The same mistake ran wider: corners elsewhere in this file were set from the SPACING ramp
   (`var(--spacing-8)`) or written as a raw px value. --spacing-* and --border-radius-* are separate
   ramps that only happen to share numbers today, so retuning spacing would silently re-round every
   card, chip and icon tile in the app, and the raw px ones would not move at all when the radius ramp
   did. Every corner in this file now comes from the radius ramp, and each carries a literal fallback:
   three of the spacing-derived ones had none, and an unresolved var() in `border-radius` is invalid
   at computed-value time, i.e. square corners rather than the intended 8px.

   The ramp defines 0/4/6/8/12/16/32/full only. --border-radius-10 is referenced once inside main.css
   but never declared there, so it is not a token to reach for; there is no -20 or -24 either. Round
   to a real step instead of inventing one. */

.text-muted {
    color: var(--color-text-base-secondary);
}

/* Inline "edit" affordance under a page title. It is a <button> (it used to be an <a> with no href,
   which no keyboard user could reach), so the UA button chrome is reset for it to read as inline text. */
.edit-btn {
    cursor: pointer;
    color: var(--color-text-brand-default, #0058D2);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-4, 4px);
    background: none;
    border: none;
    padding: 0;
    font: inherit;
}

.preview-box {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid var(--color-border-base-default);
    border-radius: var(--border-radius-12);
    padding: var(--spacing-16, 16px);
    min-height: 120px;
}

/* Inbox.razor's hand-rolled message dialog (not FOD's IDialogService — see that file's own comment on
   why). It had role="dialog"/aria-modal/Escape wired up already, but NO CSS anywhere ever backed the
   class names: `git log -S "modal-overlay" -- app.css` returns nothing across this repo's history.
   Result: clicking "Deschide" DID open it, but as an unstyled, non-fixed block that just fell into the
   normal page flow below the table — no dimmed backdrop, no centering, easy to miss entirely and read
   as "the button does nothing". */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-16, 16px);
    background-color: rgba(27, 27, 27, 0.4);
}

.modal {
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    background-color: var(--color-background-base-default, white);
    border-radius: var(--border-radius-12);
    box-shadow: 0 8px 24px rgba(27, 27, 27, 0.16);
}

.modal--md {
    max-width: 560px;
}

.modal--header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-16, 16px);
    padding: var(--spacing-20, 20px) var(--spacing-24, 24px);
    border-bottom: 1px solid var(--color-border-base-default);
}

.modal--header-title {
    margin: 0;
    font-size: var(--text-heading-h3-font-size, 20px);
    font-weight: 600;
}

.modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: var(--border-radius-6, 6px);
    background: none;
    color: var(--color-text-base-secondary, #383838);
    cursor: pointer;
}

    /* The icon is an inline element: its line box and baseline gap push the glyph off the circle's centre. */
    .modal-close > * {
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 0;
        margin: 0;
    }

    .modal-close:hover {
        background-color: var(--gray-100, #f5f5f5);
    }

.modal-content {
    padding: var(--spacing-24, 24px);
}

.modal--footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-8, 8px);
    padding: var(--spacing-16, 16px) var(--spacing-24, 24px);
    border-top: 1px solid var(--color-border-base-default);
}

/* FOD ships no card component. */
.stat-card {
    border: 1px solid var(--color-border-base-default);
    border-radius: var(--border-radius-12);
    padding: var(--spacing-20, 20px);
    text-align: center;
}

.stat-card__value {
    font-size: var(--text-display-sm-font-size, 2rem);
    font-weight: 700;
    color: var(--color-text-brand-default);
}

.stat-card__label {
    color: var(--color-text-base-secondary);
    margin-top: var(--spacing-4, 4px);
}

.stat-card--ok .stat-card__value {
    color: var(--color-text-positive-default);
}

.stat-card--warn .stat-card__value {
    color: var(--color-text-warning-default);
}

.stat-card--err .stat-card__value {
    color: var(--color-text-danger-default);
}

.w-1 {
    width: 1%;
}

.nowrap {
    white-space: nowrap;
}


/************  empty state  **************/
.empty-state {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}


/**************campaign*********************/
.campaign-form-container {
    background-color: var(--white);
    border: 1px solid var(--color-border-base-default);
    border-radius: var(--border-radius-8, 8px);
    margin-bottom: var(--spacing-24);
}

    .campaign-form-container .campaign-form-container-header {
        background-color: var(--color-background-base-secondary);
        border-bottom: 1px solid var(--color-border-base-default);
        padding: var(--spacing-24);
        /* Rounds the header's own square-cornered background to match the card, instead of the card
       clipping it with overflow:hidden — that also clipped the "Grup" FodSelect's open dropdown list,
       which renders inside this same card rather than through a portal. */
        border-radius: var(--border-radius-8, 8px) var(--border-radius-8, 8px) 0 0;
    }

.mud-border {
    border-bottom: 1px solid var(--color-border-base-default);
}

.campaign-form-container .campaign-form-container-body {
    padding: var(--spacing-24);
}

/* A channel set that exists but cannot be chosen right now. FodSelectionCard has no Disabled state, so
   this mimics a card: same border and radius, muted, with its explanation inside. */
.selection-card-locked {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4, 4px);
    margin-top: var(--spacing-16);
    padding: var(--spacing-16);
    border: 1px solid var(--color-border-base-default);
    border-radius: var(--border-radius-8, 8px);
    background-color: var(--color-background-base-secondary);
    opacity: 0.7;
}

.campaign-preview {
    background-color: var(--color-background-base-secondary);
    border-radius: var(--border-radius-8, 8px);
    padding: var(--spacing-24);
}

    .campaign-preview.sticky-position {
        position: sticky;
        top: 104px;
    }

    .campaign-preview .preview-item {
        background-color: var(--white);
        border-radius: var(--border-radius-8, 8px);
        border: 1px solid var(--color-border-base-default);
        padding: var(--spacing-20);
        margin-top: var(--spacing-16);
    }

        /* The rule keeps its type declarations rather than deferring to a .text-* utility, because
   margin-bottom and text-transform are doing work no utility carries. Leading came off the spacing
   ramp, which froze it at 16px: the moment either ramp is retuned it stops tracking the font-size it
   is supposed to be a ratio of. The caption token IS that ratio.
   `font-size: var(--spacing-12)` below is the same defect on the other axis and is left for whoever
   owns this rule's markup — swapping it to --text-caption-md-font-size is a no-op at today's values. */
        .campaign-preview .preview-item .preview-item-title {
            font-size: var(--spacing-12);
            font-weight: 600;
            line-height: var(--text-caption-md-line-height, 140%);
            margin-bottom: var(--spacing-12);
            text-transform: uppercase;
        }

        .campaign-preview .preview-item .preview-title {
            font-size: 18px;
            font-weight: 600;
            line-height: 26px;
            margin-bottom: var(--spacing-12);
            overflow-wrap: break-word;
        }

        .campaign-preview .preview-item .preview-message {
            margin-top: var(--spacing-12);
            overflow-wrap: break-word;
        }

    /* Push-notification preview mockup (Figma node 1885:16556's sibling "preview push" card) — the inner
   light box a push notification renders as on a phone: app icon + title + body. */
    .campaign-preview .preview-push-card {
        display: flex;
        align-items: center;
        gap: var(--spacing-12, 12px);
        background-color: var(--color-background-base-secondary, #F5F5F5);
        border-radius: var(--border-radius-8, 8px);
        padding: var(--spacing-12, 12px);
        margin-top: var(--spacing-12);
    }

    .campaign-preview .preview-push-logo {
        width: 34px;
        height: 34px;
        border-radius: var(--border-radius-8, 8px);
        flex-shrink: 0;
        object-fit: cover;
    }

    /* min-width: 0 overrides the flex item default of min-width: auto — without it, a title/body with no
   spaces to break on (a long word, a pasted URL, a run of test characters) refused to shrink below its
   own content width and pushed the card past its container instead of wrapping. */
    .campaign-preview .preview-push-text {
        min-width: 0;
    }

    .campaign-preview .preview-push-title {
        font-size: var(--spacing-14, 14px);
        font-weight: 500;
        color: var(--color-text-base-tertiary, #757575);
        overflow-wrap: break-word;
    }

    .campaign-preview .preview-push-body {
        font-size: var(--spacing-14, 14px);
        color: var(--color-text-base-tertiary, #757575);
        overflow-wrap: break-word;
    }


.campaign-form-container--popover {
    position: relative;
}

    .campaign-form-container--popover:focus-within {
        z-index: 101;
    }

.campaign-form-actions {
    position: sticky;
    bottom: 0;
    border-top: 1px solid var(--color-border-base-default);
    background-color: var(--white);
    z-index: 100;
}

.text-align-right {
    text-align: right;
}

/* ---------- 1. Page shell: stop content forcing the page wider than the viewport ----------
   `main { flex: 1 }` inside the flex-row `.page` has an automatic min-width of `auto`, so any wide
   child (every data table) pushed <main> past the viewport and produced a horizontal scrollbar on
   /templates, /campaigns, /registry/contacts and the compose form — at 375px the document was
   806px wide. `min-width: 0` lets the flex item shrink, so a wide table scrolls inside the column
   instead of widening the document.

   There is deliberately no `.table-scroll` here any more. FodTable already emits its own
   `.fod-table-wrapper { width: 100%; overflow-x: auto }`, so every `.table-scroll` around a FodTable
   nested one overflow container inside another — two elements that can each scroll, only one of which
   the design system will ever keep in step with the table (sticky columns, scroll shadows, the
   scrollbar's own placement). A hand-written <table> that genuinely needs a scroller should use
   `.table-responsive`, which main.css ships with exactly the declarations this rule duplicated; a
   private copy only drifts from it. */
.page > main {
    min-width: 0;
}

.min-w-0 {
    min-width: 0;
}

/* The title must be allowed to shrink/ellipsize, or it widens the top bar on narrow screens. */
.top-row .page-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- Typography tokens: aligned to the Figma design system (MNotify file, Desktop styles) ----------
   Family is Onest everywhere. FOD ships its line heights as percentages (140% body/caption, 150% heading)
   where Figma uses fixed pixel leading, and its H4/H5 weights are 500 where Figma uses SemiBold (600).
   FOD's own main.css ships no 600 file, but mud.css (loaded by FodProviders) declares Onest as a variable
   font covering 100-900, so 600 renders as a true SemiBold:

     Heading/H3    24 / 32  600  tracking -1%   (full-screen page titles)
     Heading/H4    20 / 28  600  tracking -1%   (dashboard page titles, section headings)
     Heading/H5    18 / 26  600  tracking -1%   (sidebar brand)
     Body/Default  16 / 24  400 and 500
     Body/Small    14 / 20  400 and 500
     Caption/Medium 12 / 16  400 and 500
     Caption/Small 10 / 12  400

   Overriding the tokens (instead of per-class rules) keeps every .text-* class, FOD component and
   mud-site-kit surface that reads them in step with the design. app.css loads after main.css, so these win. */
:root {
    --text-heading-h3-sm-line-height: 32px;
    --text-heading-h4-xs-font-weight: 600;
    --text-heading-h4-xs-line-height: 28px;
    --text-heading-h5-2xs-font-weight: 600;
    --text-heading-h5-2xs-line-height: 26px;
    --text-body-md-line-height: 24px;
    --text-body-md-500-line-height: 24px;
    --text-body-sm-line-height: 20px;
    --text-body-sm-500-line-height: 20px;
    --text-caption-md-line-height: 16px;
    --text-caption-md-500-line-height: 16px;
    --text-caption-sm-line-height: 12px;
}

/* The h1 carries .text-heading-h4-xs (MainLayout, DashboardLayout) or .text-heading-h3-sm (FullScreenLayout), which sets family, size, weight, line-height and
   tracking together — that is the point of the class. This rule used to restate size/weight/line-height
   from the SPACING scale, so the title rendered at 32px leading against the system's 150% (36px), and
   the design-system class on the element was dead weight. Only the margin reset remains, and only
   because the utilities that would do it are applied per-page. */
h1.page-title {
    margin: 0;
}

    /* FocusOnNavigate moves focus to this heading after every navigation (that is the point — it tells a
   screen reader where it landed). Now that the selector actually matches, the UA drew a focus ring
   around the title on each page load. The heading is not interactive, so hide the ring. */
    h1.page-title:focus {
        outline: none;
    }

/* Content column: this class was used by every page but defined nowhere, so forms stretched to the
   full 1400px window (the compose "Subiect" field was 1080px wide). */
/*.content-page-container {
    box-sizing: border-box;
    max-width: 1320px;
    padding-block: var(--spacing-24, 24px);
}*/

/* Long-form prose and single-column forms get a comfortable measure. */
.content-page {
    max-width: 68ch;
}

/* ---------- 2. Responsive two-column forms ---------- */
/* Two-column compose/preview layouts collapse before the columns get too narrow to use. */
@media (max-width: 1199px) {
    .campaign-preview.sticky-position {
        position: static;
    }
}

/* ---------- 4. Rich-text editor chrome ----------
   `.mnotify-rte__label` / `__error` were referenced by RichTextEditor.razor but never styled, so the
   editor's label did not match the `.text-body-sm-500` labels every other field uses. */
.mnotify-rte__label {
    display: block;
    margin-bottom: var(--spacing-4, 4px);
    font-size: var(--text-body-sm-font-size, 14px);
    font-weight: 500;
    color: var(--gray-900);
}

.mnotify-rte__error {
    margin-top: var(--spacing-4, 4px);
    font-size: var(--text-caption-md-font-size, 12px);
    color: var(--color-text-danger-default, #D92D20);
}

/* ---------- 5. Empty states ----------
   `min-height: calc(100vh - 73px)` centred the message in a full viewport height *below* the page's
   own filters/toolbar, so /sender/notifications and /inbox scrolled (1147px tall) just to show
   "no results". Cap it so a genuinely empty list fits on one screen. */
.empty-state {
    min-height: min(calc(100vh - 260px), 420px);
    padding: var(--spacing-24, 24px);
    box-sizing: border-box;
    /* Carried over from the deleted wwwroot/app.css, which was silently supplying both of these to
       every empty state in the app. */
    text-align: center;
    color: var(--color-text-base-secondary);
}

    .empty-state.lists-height {
        min-height: min(calc(100vh - 320px), 360px);
    }

/* A notice rather than an empty list — the role-context guard, a disclaimer, a short "nothing to do
   here" line. The `min-height` above reserves a screenful for a message one line long, so every one of
   these sites had grown the same `style="min-height:auto; padding:32px;"` (14 verbatim copies across
   Pages/). Inline copies cannot be re-tuned together and drift the moment one of them is edited. */
.empty-state--compact {
    min-height: auto;
    padding: var(--spacing-32, 32px);
}

.empty-state__hint {
    color: var(--gray-600);
    margin: var(--spacing-8, 8px) 0 var(--spacing-16, 16px);
    max-width: 46ch;
    text-align: center;
}

/* First-run illustration (CampaignIllustration/CampaignIllustrationItem): four stacked placeholder
   rows, the second one enlarged via .highlighted, fading out top and bottom so the block reads as a
   peek into a longer list rather than four fixed rows. Deliberately UNSCOPED (no .empty-state/
   .empty-state-split ancestor requirement) — it used to be scoped under .empty-state alone, which
   silently broke it the moment it was reused inside .empty-state-split (a sibling class, not a
   descendant of .empty-state on Campaigns/Groups' true-empty pages). The class names themselves
   (illustration-wrapper/-item, .rectangle) are unique enough not to need scoping for collision safety. */
.illustration-wrapper {
    /* A flex item with no width of its own shrinks to content — and this wrapper's only content is
       .illustration-item at width:100%, a circular reference with nothing concrete to resolve against.
       Without an explicit width here the whole block collapses to its own padding (2 x 16px = 32px) and
       the percentage-width .rectangle bars inside it compute to 0. Mirrors .illustration-item's own
       max-width so both agree. */
    width: 100%;
    max-width: 257px;
    margin-bottom: 7px;
    position: relative;
}

    .illustration-wrapper.highlighted {
        height: 71px;
    }

.illustration-item {
    background-color: #F7F7F7;
    border-radius: var(--spacing-8, 8px);
    height: var(--spacing-64, 64px);
    width: 100%;
    box-sizing: border-box;
    max-width: 257px;
    position: relative;
    overflow: hidden;
}

.illustration-wrapper.highlighted .illustration-item {
    transform: scale(1.1095);
    transform-origin: top;
}

.illustration-item .rectangle {
    border-radius: var(--spacing-12, 12px);
    height: var(--spacing-12, 12px);
    background-color: var(--gray-200, #E4E4E4);
}

    .illustration-item .rectangle:first-child {
        margin-bottom: var(--spacing-6, 6px);
    }

.illustration-wrapper:last-child .illustration-item::after,
.illustration-wrapper:first-child .illustration-item::after {
    content: '';
    position: absolute;
    left: -1px;
    right: -1px;
    height: 64px;
    pointer-events: none;
    opacity: 0.8;
}

.illustration-wrapper:last-child .illustration-item::after {
    bottom: -1px;
    background: linear-gradient(0deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%);
}

.illustration-wrapper:first-child .illustration-item::after {
    top: -1px;
    background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%);
}

/* Footer action row of FodDialogProvider dialogs (<div class="dialog-actions" slot="actions">).
   The row is ONE slotted child of the modal's .footer, so the footer's own gap never reaches the
   buttons inside it — this rule is what spaces them. Global so every dialog gets it; a scoped copy
   only styles the dialog it belongs to (AddContactsDialog rendered its buttons touching without it). */
.dialog-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Contact import (CreateGroupDialog, AddContactsDialog, ContactImportReportView): FodAlert renders
   the design system's <mud-banner> custom element, which is inline by default and so shrinks to its
   text. Block + full width lets the alert span the modal like the dropzone above it. */
.contact-import mud-banner {
    display: block;
    width: 100%;
}

/* First-run empty state (Figma "Empty campaign"/"Empty Templates" — same two-column treatment on
   both: left-aligned title/hint/button next to a skeleton illustration on the right), unlike the
   shared .empty-state's single centered column used by every "no search results"/"load failed" case.
   Shared by Campaigns.razor and Templates.razor; reuses CampaignIllustration/.illustration-wrapper
   for the right-hand block (a generic decorative skeleton, despite the component's name). */
.empty-state-split {
    display: flex;
    align-items: center;
    /* Figma (node 589:7732): text block (531px) and illustration (290px) sit only ~20px apart, with the
       PAIR centered as one group in the content column — not stretched to the column's own edges.
       `space-between` did exactly that stretching: on anything wider than ~850px it opened a growing
       dead gap between the two blocks instead of keeping them together. `center` + a fixed `gap` keeps
       their relative spacing constant and moves the whole pair as a unit instead. */
    justify-content: center;
    gap: var(--spacing-48, 48px);
    min-height: min(calc(100vh - 260px), 420px);
    padding: var(--spacing-24, 24px);
    box-sizing: border-box;
    /* Templates.razor nests this inside the shared .empty-state (center-aligned/text-align:center) —
       override both so the split layout reads the same regardless of its wrapper. */
    text-align: left;
    width: 100%;
}

.empty-state-split__text {
    max-width: 480px;
}

.empty-state-split__title {
    font-size: 32px;
    font-weight: 600;
    line-height: 40px;
    letter-spacing: -0.02em;
    color: var(--color-text-base-default, #121212);
    /* Figma (589:7732): title box bottom (y331 center, 40px line-height → y351) to hint top (y359) is
       only ~8px — a tight title/subtitle pairing, not the 24px I'd used for every gap in this block. */
    margin: 0 0 var(--spacing-8, 8px);
}

.empty-state-split__hint {
    font-size: 18px;
    line-height: 28px;
    color: var(--color-text-base-secondary, #383838);
    /* Figma: hint bottom (y359+28=387) to button top (y447) is ~60px — the real gap before the CTA,
       not 24px. Getting this backwards (tight where Figma is loose, loose where Figma is tight) is
       exactly the kind of mismatch that reads as "cramped" even though *a* gap exists everywhere. */
    margin: 0 0 60px;
}

.empty-state-split__illustration {
    flex-shrink: 0;
    width: 290px;
}

@media (max-width: 900px) {
    .empty-state-split {
        flex-direction: column;
        text-align: center;
    }

    .empty-state-split__text {
        max-width: 100%;
    }
}

/* Shared table action trigger and its anchored popup. */
.table-actions {
    position: relative;
    display: inline-flex;
}

.table-actions__backdrop {
    position: fixed;
    inset: 0;
    z-index: 20;
}

.table-actions__menu {
    position: absolute;
    top: calc(100% + var(--spacing-4, 4px));
    right: 0;
    z-index: 99;
    min-width: 160px;
    padding: var(--spacing-8, 8px);
    background: var(--white, #fff);
    border: 1px solid var(--color-border-base-default, var(--gray-200));
    border-radius: var(--border-radius-8, 8px);
    box-shadow: 0 4px 16px rgba(16, 24, 40, 0.12);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.table-actions__menu-item {
    font: inherit;
    font-size: var(--text-body-sm-font-size, 14px);
    text-align: left;
    color: var(--color-text-base-primary);
    background: none;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    white-space: nowrap;
}

    .table-actions__menu-item:hover {
        background: var(--color-background-base-secondary, var(--gray-100));
    }

.table-actions__menu-item--destructive {
    color: var(--color-text-danger-default, #D92D20);
}

/* StatusPill (status-tag / status-tag--{variant} / is-subtle): copied verbatim, values included, from
   the reference design's own CSS so /campaigns' badge measures identically (4px radius, 2px/6px
   padding, 12px/500 text) rather than approximating it through FodTag's shadow-DOM styling, which this
   app's CSS cannot reach. */
.status-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-4, 4px);
    font-size: var(--text-body-sm-500-font-size, 14px);
    font-weight: 500;
    line-height: 1;
    border-radius: var(--border-radius-4, 4px);
    padding: var(--spacing-4, 4px) var(--spacing-8, 8px);
    user-select: none;
}

.status-tag--small {
    font-size: var(--text-caption-md-font-size, 12px);
    line-height: 1.167;
    padding: var(--spacing-2, 2px) var(--spacing-6, 6px);
}

.status-tag--neutral.is-subtle {
    background-color: var(--gray-200, #E4E4E4);
    color: var(--black, #121212);
    border: 1px solid transparent;
}

.status-tag--brand.is-subtle {
    background-color: var(--blue-sky-100, #E8F0FB);
    color: var(--blue-sky-600, #0058D2);
    border: 1px solid transparent;
}

.status-tag--accent.is-subtle {
    background-color: var(--apricot-100, #FDE9D7);
    color: var(--apricot-700, #B5540A);
    border: 1px solid transparent;
}

.status-tag--success.is-subtle {
    background-color: var(--green-100, #E1F5E1);
    color: var(--green-700, #1D7A1D);
    border: 1px solid transparent;
}

.status-tag--danger.is-subtle {
    background-color: var(--red-100, #FBE7E7);
    color: var(--red-700, #B32424);
    border: 1px solid transparent;
}

/* ---------- 6. Hit targets ----------
   Bare native radios/checkboxes render at the UA's 13x13px, well under a comfortable pointer target.
   Scoped with :not() so the design system's own controls — where the real <input> is deliberately
   `opacity: 0` behind a `.radio-custom`/`.checkbox-custom` span — are left completely alone. */
input[type="radio"]:not(.radio-input):not(.checkbox-input),
input[type="checkbox"]:not(.radio-input):not(.checkbox-input) {
    width: var(--spacing-20, 20px);
    height: var(--spacing-20, 20px);
    flex: 0 0 auto;
    accent-color: var(--color-background-brand-default, #0058D2);
    cursor: pointer;
}

/* ---------- 7. Visible keyboard focus ----------
   FodButton renders a bare `.btn`, and the design system suppresses the UA ring on it in places. */
.btn:focus-visible {
    outline: 2px solid var(--color-border-brand-default, #0058D2);
    outline-offset: 2px;
}

/* ---------- 9. Form affordances the pages were missing ----------
   No page marked required fields, gave field-level help, or constrained field width, so a 13-digit
   IDNP and a one-line subject both got ~1080px-wide inputs and users only learned a field was
   mandatory from a toast after pressing Send. */
.required-mark {
    color: var(--color-text-danger-default, #D92D20);
    margin-left: 2px;
}

.field-hint {
    font-size: var(--text-caption-md-font-size, 12px);
    line-height: var(--text-caption-md-line-height, 140%);
    color: var(--gray-600);
    max-width: 60ch;
    margin: 0;
}

/* A single-line form field has no business being as wide as the window. */
.field-column {
    max-width: 720px;
}

/* A single-column compose form has no measure of its own, so it sits flush left with a large dead band
   to its right instead of centred the way Campaigns' own compose
   form is (CampaignForm.razor's Bootstrap .container, which centres itself by default). 720px matches
   the field/dropzone measure already established below. */
.compose-form {
    max-width: 720px;
    margin-inline: auto;
}

    .compose-form .dropzone {
        max-width: 720px;
    }

/* ---------- 10. Home page ----------
   Replaces the lone centred hero (which left ~700px of empty viewport) with hero + task cards. */
.home-hero {
    max-width: 640px;
    margin-inline: auto;
    text-align: center;
    padding-block: var(--spacing-40, 40px) var(--spacing-32, 32px);
}

.home-hero__eyebrow {
    margin: 0;
    font-size: var(--text-caption-md-font-size, 12px);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-brand-default, #0058D2);
}

.home-hero__title {
    margin: var(--spacing-8, 8px) 0 0;
    font-size: 40px;
    line-height: 48px;
    font-weight: 700;
}

.home-hero__lead {
    color: var(--color-text-base-secondary, #383838);
    margin: var(--spacing-12, 12px) 0 var(--spacing-24, 24px);
}

.task-card {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-6, 6px);
    height: 100%;
    box-sizing: border-box;
    padding: var(--spacing-20, 20px);
    border: 1px solid var(--color-border-base-default);
    border-radius: var(--border-radius-12, 12px);
    background-color: var(--white);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

    .task-card:hover {
        border-color: var(--color-border-brand-default, #0058D2);
        box-shadow: 0 1px 6px rgba(27, 27, 27, 0.08);
    }

    .task-card:focus-visible {
        outline: 2px solid var(--color-border-brand-default, #0058D2);
        outline-offset: 2px;
    }

.task-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--spacing-40, 40px);
    height: var(--spacing-40, 40px);
    border-radius: var(--border-radius-8, 8px);
    background-color: var(--color-background-brand-secondary, #E8F0FB);
    color: var(--color-icon-brand-on-secondary, #0058D2);
    margin-bottom: var(--spacing-8, 8px);
}

.task-card__title {
    font-size: var(--text-body-md-font-size, 16px);
    font-weight: 600;
}

.task-card__text {
    font-size: var(--text-body-sm-font-size, 14px);
    color: var(--gray-600);
}

/* ---------- 11. Cards / definition lists on content pages ---------- */
.surface-card {
    box-sizing: border-box;
    padding: var(--spacing-24, 24px);
    border: 1px solid var(--color-border-base-default);
    border-radius: var(--border-radius-12, 12px);
    background-color: var(--white);
}

.contact-list {
    display: grid;
    grid-template-columns: minmax(96px, auto) 1fr;
    gap: var(--spacing-8, 8px) var(--spacing-16, 16px);
    margin: 0;
}

    .contact-list dt {
        font-size: var(--text-body-sm-font-size, 14px);
        font-weight: 500;
        color: var(--gray-600);
    }

    .contact-list dd {
        margin: 0;
    }

    .contact-list a {
        color: var(--blue-sky-600, #0058D2);
    }

/* ---------- 12. Error pages ---------- */
.error-page {
    text-align: center;
    padding: var(--spacing-48, 48px) var(--spacing-24, 24px);
    max-width: 52ch;
    margin-inline: auto;
}

.error-page__code {
    font-size: 64px;
    line-height: 72px;
    font-weight: 700;
    color: var(--gray-300, #b2b2b2);
    margin: 0 0 var(--spacing-8, 8px);
}

/* ---------- 13. List page toolbar ----------
   The search field was 712px on /campaigns but 436px on /templates and /registry/contacts, and the
   create button was laid out with grid columns so it drifted with the breakpoint. */
.list-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-16, 16px);
}

/* Pushes one toolbar child (the page's primary action button) to the row's trailing edge while the
   filter controls stay left-aligned, without a dedicated grid/spacer element. */
.ml-auto {
    margin-left: auto;
}

/* A link whose colour is entirely up to its own content (e.g. Campaigns' name cell, where the same
   <a> reads as blue when named and grey when untitled): without this, the browser's default anchor
   underline and blue still show through around the inner coloured text. */
.link {
    text-decoration: none;
    color: inherit;
}

.list-toolbar > :first-child {
    flex: 0 1 420px;
    min-width: 240px;
}

/* A toolbar of FILTER controls rather than one search box: the fields carry labels, so centring them
   hangs the trailing button (which has no label above it) half a label-height too low — which is what
   pages were papering over with `style="height:48px"` on the button. Baseline-align the row instead,
   and start from a filter-sized first field rather than the 420px search box. */
.list-toolbar--filters {
    align-items: flex-end;
}

    .list-toolbar--filters > :first-child {
        flex: 0 1 220px;
        /* The base rule also sets min-width:240px, which wins at equal specificity and would pin this field
       to 240 — so the 220px basis above would never take effect without restating it here. */
        min-width: 220px;
    }

/* Campaign audience summary (replaces the single permanently-disabled radio). */
.audience-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: var(--spacing-40, 40px);
    height: var(--spacing-40, 40px);
    border-radius: var(--border-radius-8, 8px);
    background-color: var(--color-background-brand-secondary, #E8F0FB);
    color: var(--color-icon-brand-on-secondary, #0058D2);
}

/* ---------- 15. Variable-token picker ----------
   The `{{FirstName}}` tokens were <button>s styled as plain text, giving no hint they were clickable. */
.token-picker {
    padding: var(--spacing-12, 12px);
    border: 1px solid var(--color-border-base-default);
    border-radius: var(--border-radius-8, 8px);
    background-color: var(--color-background-base-secondary);
}

.token-chip {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: var(--text-caption-md-font-size, 12px);
    padding: var(--spacing-4, 4px) var(--spacing-8, 8px);
    border: 1px solid var(--color-border-base-default);
    border-radius: var(--border-radius-6, 6px);
    background-color: var(--white);
    color: var(--blue-sky-600, #0058D2);
    cursor: pointer;
}

    .token-chip:hover {
        border-color: var(--color-border-brand-default, #0058D2);
        background-color: var(--color-background-brand-secondary, #E8F0FB);
    }

    .token-chip:focus-visible {
        outline: 2px solid var(--color-border-brand-default, #0058D2);
        outline-offset: 2px;
    }

/* ---------- 16. Section headings inside pages ----------
   Pages jumped h1 -> h5 (skipping h4) because h5 was chosen for its size. Style h2 to match what
   h5 looked like so the outline can be correct without changing the visual design. */
.section-heading {
    font-size: var(--text-body-md-font-size, 16px);
    line-height: var(--text-body-md-line-height, 140%);
    font-weight: 600;
    margin: 0;
}

/* ---------- 17. Sidebar items (Layout/NavSidebar, used inside DashboardLayout) ----------
   The contents are our markup over the design tokens: FodSidebar/FodSidebarGroup/FodSidebarItem
   hydrate and then render nothing in the shipped bundle, and main.css has no .fod-sidebar rules. */

/* The toggle exists only where the sidebar is off-canvas. Above 992px the sidebar is permanent, so a
   button that "opens" it would toggle something already on screen. */
.app-nav-toggle {
    display: none;
}

@media (max-width: 991px) {
    .app-nav-toggle {
        display: inline-flex;
    }
}

.app-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-24, 24px);
    padding: var(--spacing-24, 24px) var(--spacing-16, 16px);
}

.app-sidebar__group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2, 2px);
}

.app-sidebar__heading {
    margin: 0 0 var(--spacing-8, 8px);
    padding-inline: var(--spacing-12, 12px);
    color: var(--color-text-base-secondary, #383838);
    font-size: var(--text-caption-md-font-size, 12px);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.app-sidebar__item {
    display: block;
    padding: var(--spacing-12, 12px);
    border-radius: var(--border-radius-8, 8px);
    color: var(--color-text-base-default, #121212);
    text-decoration: none;
    font-size: var(--text-body-md-font-size, 16px);
    line-height: 150%;
}

    .app-sidebar__item:hover {
        background-color: var(--gray-100, #F5F5F5);
    }

    .app-sidebar__item:focus-visible {
        outline: 2px solid var(--color-border-brand-default, #0058D2);
        outline-offset: 2px;
    }

/* aria-current="page" carries the same fact for assistive tech, so this is reinforcement rather than
   the only signal. */
.app-sidebar__item--active {
    background-color: var(--blue-sky-100, #E8F0FB);
    color: var(--color-text-brand-default, #0058D2);
    font-weight: 500;
}

/* ---------- 18. Public landing page (Pages/Home.razor, anonymous visitor) ----------
   Implements the Figma "landing" frame (MNotify file, node 3924:1050): hero panel, integration row,
   FAQ row + report box. Components are FOD's (FodButton, FodAccordion, FodInfoBox); this section only
   carries the page geometry from the design. Values come from the design's tokens, with the FOD
   custom properties first so the palette keeps tracking the design system. */

/* FULL-BLEED BANDS. The alternating background has to reach both edges, but the landing sits inside
   three nested constraints: .fod-app-layout__scroll-area (the real full-width element) > main.container
   (max-width 1248px + 12px padding + an AUTO margin) > article.content.px-24. A negative margin cannot
   cancel that reliably because the auto margin varies with the viewport, and the usual 100vw pseudo-
   element trick overflows by the scrollbar width — the scroll area is 1265px wide while 100vw is
   1280px, and .fod-app-layout has overflow:auto, so it would produce a horizontal scrollbar.
   Neutralising the two ancestors is the honest fix, and :has() keeps it scoped to this one page —
   the same route still renders the signed-in task cards inside the normal measure. */
body:has(.landing) .fod-app-layout__main {
    max-width: none;
    padding-inline: 0;
    margin-inline: 0;
}

/* The element selector is load-bearing, not decoration: .px-24 is an !important utility, and at narrow
   widths a rule in the cross-origin MUD stylesheet re-applies a 16px inset that a plain
   `body:has(.landing) .content` loses to. Measured at 375px — without `article` the band stops 16px
   short of both edges. */
body:has(.landing) article.content {
    padding-inline: 0 !important;
}

/* The page-title bar carries the app h1, which is right for an application screen but reads as a
   stray label above a marketing hero. !important because the element also carries .d-flex, and every
   display utility in main.css is declared !important. */
body:has(.landing) .page-title-bar {
    display: none !important;
}

/* Content measure: the design centres a 1200px column; the 24px gutter keeps it off the screen edge. */
.landing-container {
    max-width: 1248px;
    margin-inline: auto;
    padding-inline: var(--spacing-24, 24px);
}

.landing-section {
    padding-block: var(--spacing-64, 64px);
}

.landing-section--gray {
    background-color: var(--color-background-base-secondary, var(--gray-100, #F5F5F5));
}

/* ---- Hero: a rounded tinted panel, content centred (design: 10px inset, 32px radius) ---- */
.landing-hero {
    padding: var(--spacing-8, 8px) 10px 0;
}

.landing-hero__panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 88px var(--spacing-24, 24px);
    border-radius: var(--border-radius-32, 32px);
    background-color: color-mix(in srgb, var(--color-background-brand-secondary, #E8F0FB) 40%, transparent);
}

.landing-hero__title {
    margin: 0;
    max-width: 665px;
    color: var(--color-text-base-default, #121212);
    font-size: var(--font-size-48, 48px);
    font-weight: var(--font-weight-semibold, 600);
    line-height: var(--line-height-56, 56px);
    letter-spacing: -0.96px;
}

.landing-hero__lead {
    margin: var(--spacing-16, 16px) 0 0;
    max-width: 659px;
    color: var(--color-text-base-default, #121212);
    font-size: var(--font-size-18, 18px);
    line-height: var(--line-height-28, 28px);
}

.landing-hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-12, 12px);
    margin-top: var(--spacing-32, 32px);
}

/* ---- Two-column rows (integration, FAQ): title on the left, content on the right ---- */
.landing-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 80px;
    align-items: start;
}

.landing-split__lead {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-24, 24px);
}

.landing-section__title {
    margin: 0;
    color: var(--color-text-base-default, #121212);
    font-size: var(--font-size-40, 40px);
    font-weight: var(--font-weight-semibold, 600);
    line-height: var(--line-height-48, 48px);
    letter-spacing: -0.8px;
}

.landing-lead {
    margin: 0;
    color: var(--color-text-base-secondary, #383838);
    font-size: var(--font-size-18, 18px);
    line-height: var(--line-height-28, 28px);
}

/* ---- Integration card ---- */
.landing-card {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-24, 24px);
    padding: var(--spacing-24, 24px);
    border-radius: var(--border-radius-16, 16px);
    background-color: var(--color-background-base-secondary, var(--gray-100, #F5F5F5));
}

.landing-card__logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-8, 8px);
    height: 40px;
}

.landing-card__logo-text {
    color: var(--color-text-base-default, #121212);
    font-size: var(--font-size-10, 10px);
    font-weight: var(--font-weight-medium, 500);
    line-height: var(--line-height-12, 12px);
}

.landing-card__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--color-text-base-secondary, #383838);
}

.landing-card__title {
    margin: 0;
    font-size: var(--font-size-18, 18px);
    font-weight: var(--font-weight-semibold, 600);
    line-height: var(--line-height-26, 26px);
    letter-spacing: -0.18px;
}

.landing-card__text {
    margin: 0;
    font-size: var(--font-size-16, 16px);
    line-height: var(--line-height-24, 24px);
}

/* ---- FAQ accordion: transparent rows on the grey band, 16px padding, 18/26 semibold heading, a 1px
   divider under every item (design: 64px row + 1px line). Driven by the component's own custom
   properties; only the divider placement needs real rules, because the component draws a line ABOVE
   each item and the design has none above the first and one under the last. ---- */
.landing mud-accordion {
    --accordion-item-container-background-default: transparent;
    --accordion-item-padding-block-desktop: var(--spacing-16, 16px);
    --accordion-item-heading-font-size-desktop: var(--font-size-18, 18px);
    --accordion-item-heading-line-height-desktop: var(--line-height-26, 26px);
    /* The design's +/- control is a 32px circular text button with a 16px glyph; the component's
       default 48px trigger is what made every row 80px instead of 64px + 1px divider. */
    --accordion-item-trigger-size: 32px;
    --accordion-item-trigger-icon-size: 16px;
    --accordion-item-trigger-border-radius: var(--border-radius-full, 999px);
}

.landing mud-accordion-item {
    background-color: transparent;
}

/* The panel has no padding of its own (Figma "Content Slot": the content spaces itself). Our answers are
   plain text, so the 12px under an open answer is supplied here — the same rule the component's own
   stories use for plain-text panels. */
.landing mud-accordion-item::part(panel) {
    padding-block-end: var(--spacing-12, 12px);
}

.landing mud-accordion-item:first-child {
    border-block-start: 0;
}

.landing mud-accordion-item:last-child {
    border-block-end: var(--accordion-item-border-width, 1px) solid var(--accordion-item-border-color-default, #D9D9D9);
}

/* ---- Report box under the FAQ: sits 80px below the row, white on the grey band ---- */
.landing-report {
    margin-top: 80px;
}

/* No FAQ rendered (Infoportal returned nothing): the box is alone in the band, so the gap meant for
   separating it from the FAQ goes and the section padding centres it vertically. */
.landing-report:first-child {
    margin-top: 0;
}

/* The white card and the button-on-the-right layout are ours; the info box inside is transparent so the
   card shows through (its background is driven by this FOD/MUD custom property). */
.landing-report__box {
    display: flex;
    align-items: center;
    gap: var(--spacing-64, 64px);
    padding-inline: var(--spacing-32, 32px);
    border-radius: var(--border-radius-16, 16px);
    background-color: var(--color-background-base-default, #FFFFFF);
}

.landing-report__box mud-info-box {
    --info-box-subtle-info-background: transparent;
    flex: 1 1 auto;
    min-inline-size: 0;
}

/* ---- Narrow screens: stack the rows and relax the hero ---- */
@media (max-width: 991.98px) {
    .landing-split {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--spacing-32, 32px);
    }

    .landing-section {
        padding-block: var(--spacing-48, 48px);
    }

    .landing-report {
        margin-top: var(--spacing-48, 48px);
    }
}

/* Report box: text above the button (flex column) below 600px. */
@media (max-width: 599.98px) {
    .landing-report__box {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-16, 16px);
        padding: var(--spacing-24, 24px) var(--spacing-24, 24px);
    }

    .landing-report__box mud-info-box {
        flex: 0 0 auto;
        inline-size: 100%;
    }
}

@media (max-width: 575.98px) {
    .landing-hero__panel {
        padding-block: var(--spacing-48, 48px);
    }

    .landing-hero__title {
        font-size: var(--font-size-32, 32px);
        line-height: var(--line-height-40, 40px);
        letter-spacing: -0.64px;
    }

    .landing-section__title {
        font-size: var(--font-size-32, 32px);
        line-height: var(--line-height-40, 40px);
    }
}

/* Toolbar rules and the paginated-table footer. These were dropped by accident when the landing-page styles were
   rewritten; every list page still uses them. */
.list-toolbar > .list-toolbar__actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 0;
    margin-left: auto;
    gap: var(--spacing-12, 12px);
}

.list-toolbar--actions-only {
    margin-bottom: var(--spacing-16, 16px);
}

/* Responsive toolbar (search + filters + main action).
   Desktop (>=992px): one row, main action on the trailing edge, wraps only when tight.
   Tablet (576-991px): search takes its own full row, filters share the next row(s), actions right-aligned.
   Phone (<=575px): every control is a full-width row, the main action button fills the row. */
@media (max-width: 991px) {
    .list-toolbar > :first-child,
    .list-toolbar--filters > :first-child {
        flex: 1 1 100%;
        min-width: 0;
    }

    .list-toolbar--actions-only > :first-child {
        flex: 0 1 auto;
    }
}

@media (max-width: 575px) {
    .list-toolbar > *,
    .list-toolbar > .list-toolbar__actions {
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
        margin-left: 0;
        max-width: none !important;
    }

    .list-toolbar > .list-toolbar__actions > * {
        flex: 1 1 auto;
    }
}

.paginated-page {
    display: flex;
    flex-direction: column;
    min-height: calc(100dvh - 104px);
}

/* Signed-in shell: the content column (.dashboard-layout__scroll) is already one screen minus the pre-header and
   title bar, so the 100dvh-based min-height above is always taller than the room available and forced a scrollbar
   even for a 10-row page. Here the page just fills the content box (flex), so it scrolls only when rows overflow. */
.dashboard-layout__app .dashboard-layout__content:has(> div[style*="contents"] > .paginated-page) {
    display: flex;
    flex-direction: column;
}

.dashboard-layout__app .dashboard-layout__content > div[style*="contents"] > .paginated-page {
    flex: 1 0 auto;
    min-height: 0;
}

/* Table footer ("pagination" container in the design). Always stuck to the bottom of the page: the page is a column
   at least one screen tall and the footer takes the free space above it (margin-top:auto), then sticks while the
   table scrolls. */
.table-pagination-container {
    position: sticky;
    bottom: 0;
    z-index: 6;
    margin-top: auto;
    background: var(--white, #fff);
}

.table-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-24, 24px);
    border-top: 1px solid var(--color-border-base-default, #d9d9d9);
}

/* Left group: summary, then "Rows per page" with its select (12px apart, 24px between the two). */
.table-pagination__details {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-24, 24px);
}

.table-pagination__page-size {
    display: flex;
    align-items: center;
    gap: var(--spacing-12, 12px);
    white-space: nowrap;
}

.table-pagination__details,
.table-pagination__page-size,
.table-pagination__info {
    color: var(--color-text-base-secondary, #383838);
    font-family: var(--text-body-sm-font-family, "Onest", sans-serif);
    font-size: var(--text-body-sm-font-size, 14px);
    font-weight: var(--text-body-sm-font-weight, 400);
    line-height: var(--text-body-sm-line-height, 20px);
    letter-spacing: var(--text-body-sm-letter-spacing, 0);
}

/* The numbers in "Showing 1 to 16 of 56 results" are medium weight and darker than the words. */
.table-pagination__num {
    color: var(--color-text-base-default, #121212);
    font-weight: 500;
}

/* The design's select is 69px wide. With the kit's default 12px side padding and 8px gap only 15px are left for the
   value, which cuts "25" and "100". A tighter inner padding keeps the 69px box and shows all of them. */
.table-pagination__select {
    display: block;
    width: 69px;
    --select-container-padding-inline-medium: 8px;
    --select-container-gap-medium: 4px;
}

/* The open list is as wide as the select by default (69px), which cuts every option ("1..", "2..") and leaves only
   the check mark on the selected one. Let it grow to fit its options instead. */
.table-pagination__select::part(listbox) {
    width: max-content;
    min-width: 100%;
    box-sizing: border-box;
}

/* One line at any width: the footer degrades in steps, on ITS OWN width (container query) rather than the window's, since
   the table's width also depends on the sidebar. Order of what goes first: the long summary sentence, then the
   "Rows per page" wording, then the label altogether (the select stays, with a title), then the labelled pager,
   then the select. Below the last step it wraps, as a fallback. */
.table-pagination-container {
    container: table-pagination / inline-size;
}

.table-pagination__info-short,
.table-pagination__label--short,
.table-pagination__pages--sm {
    display: none;
}

.table-pagination__pages {
    display: flex;
    align-items: center;
}

/* After the rule above on purpose: same specificity, so the later one wins and keeps the small pager hidden. */
.table-pagination__pages--sm {
    display: none;
}

@container table-pagination (max-width: 1060px) {
    .table-pagination__info-full { display: none; }
    .table-pagination__info-short { display: inline; }
}

@container table-pagination (max-width: 900px) {
    .table-pagination__label--full { display: none; }
    .table-pagination__label--short { display: inline; }
}

@container table-pagination (max-width: 840px) {
    .table-pagination__pages--md { display: none; }
    .table-pagination__pages--sm { display: flex; }
}

/* Phones: only two square arrows on the right, each disabled at its own end (as in the cabinet reference). The summary,
   the page-size select and the page numbers are gone. */
.table-pagination__steps {
    display: none;
}

@container table-pagination (max-width: 640px) {
    .table-pagination { justify-content: flex-end; }
    .table-pagination__details,
    .table-pagination__pages { display: none; }
    .table-pagination__steps {
        display: flex;
        gap: var(--spacing-8, 8px);
    }
}
