/* --- Body & Background --- */
body {
    font-family: var(--rz-text-font-family);
    color: var(--adv-text);
    font-size: var(--rz-body-font-size);
    line-height: var(--rz-body-line-height);
    background-color: var(--adv-bg);
    background-image:
        linear-gradient(160deg, rgba(233,241,248,0.94) 0%, rgba(220,236,250,0.88) 40%, rgba(214,232,248,0.90) 100%),
        url('../images/background-pattern.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    min-height: 100vh;
    margin: 0;
}

/* --- Layout --- */
.rz-layout {
    background: transparent !important;
    height: 100vh;
}

.rz-body {
    --rz-body-padding: 0;
    background: transparent !important;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* --- Content area --- */
.adv-content {
    flex: 1;
    padding: 0 1.5rem 1.5rem;
}

/*
 * Admin / feature pages opt into the full-height surface via either
 * (a) a page-specific "*-page" container class (existing convention
 *     used by /performances, /calculations, /parties, etc.), or
 * (b) the generic `.adv-page-container` class for pages that don't
 *     introduce their own name.
 *
 * The previous broad rule `.adv-content > div:first-child` matched
 * the `<RadzenStack>` loading placeholder rendered by FeatureFlagView
 * and inflated pages wrapped in it to ~600px of empty space above
 * their content (E2E verification pass 2 regression — ADR-007).
 */
.adv-content > [class*="-page"],
.adv-content > .adv-page-container {
    /* No module-level white sheet: the page is just a layout container so the
       body background image shows through; inner widgets are frosted-glass blocks. */
    background: transparent;
    border-radius: 12px;
    /* #1777 tightens the module-edge padding; #1776 drops the card shadow since
       the wrapper is transparent (a shadow on a transparent rect is an artifact). */
    padding: 1rem;
    box-shadow: none;
    min-height: calc(100vh - 3rem);
}
