html, body {
    margin: 0;
    font-family: 'Archivo', 'Roboto', Helvetica, Arial, sans-serif;
}

/* The calendar's competition color. Fixed rather than the theme's tertiary: tertiary is the gym's own
   accent color (Settings → Gym), and Park Buffalo's is the same green as open gym. */
:root {
    --agilis-calendar-competition: #7B52AB;
    --agilis-calendar-special-event: #8C564B;
    --agilis-calendar-private: #1F8A8A;
    --agilis-calendar-field-trip: #7A8B2E;
}

/* Focus rings are for keyboard navigation only. Suppress them for mouse/programmatic
   focus (e.g. moving focus to a heading on page navigation) so no stray outline shows;
   keyboard users still get a visible ring via :focus-visible. */
:focus:not(:focus-visible) {
    outline: none;
}

/* Material Symbols helper, if you use raw <span class="msi"> anywhere
   (MudIcon does not need this). */
.msi {
    font-family: 'Material Symbols Outlined';
    line-height: 1;
    vertical-align: middle;
}

#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--pb-brand);
    color: #fff;
    padding: 0.75rem 1.25rem;
    font: 500 14px var(--pb-font);
    box-shadow: 0 -1px 4px rgba(0,0,0,.2);
    z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; float: right; }

/* MudBlazor applies a picker's Style/Class (e.g. max-width:170px on a MudDatePicker field)
   to its calendar/clock popover too, which squeezes and clips the ~310px calendar. Free the
   popover paper from that width so the whole calendar always shows, whatever the field width. */
.mud-picker-popover-paper {
    max-width: none !important;
    width: auto !important;
}

/* ---------------------------------------------------------------------------
   Printing. The roster sheets are the first surface here meant to leave the
   screen and live in a binder, so printing hides the app shell rather than
   rendering a separate document: what staff proof-read on screen is exactly
   what comes out of the printer, with no second layout to drift.

   These rules are global, not component-scoped, because most of what has to be
   hidden (app bar, nav drawer, snackbars) belongs to the layout.
   --------------------------------------------------------------------------- */
@page {
    margin: 12mm;
}

@media print {
    .mud-appbar,
    .mud-drawer,
    .mud-drawer-mini,
    .mud-overlay,
    .mud-snackbar-provider,
    .no-print {
        display: none !important;
    }

    /* MudMainContent reserves room for the app bar it sits under; with no bar to
       sit under, that reservation is a blank band at the top of every sheet. */
    .mud-layout,
    .mud-main-content {
        padding: 0 !important;
        margin: 0 !important;
    }

    /* The drawer's width is held open by a margin MudBlazor sets !important from a
       state class on the layout (.mud-drawer-close-mini-md-left and friends), which a
       plain .mud-main-content rule ties with rather than beats. Hiding the drawer does
       not reclaim it — measured at a 248px empty gutter down the left of every sheet.
       The extra `body` is there to win the specificity outright rather than by
       stylesheet order. */
    body .mud-layout .mud-main-content {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .mud-main-content > .mud-container {
        padding: 0 !important;
        max-width: none !important;
    }

    body {
        background: #fff !important;
    }

    /* One sheet per page — but not after the last, which would eject a blank one. */
    .print-sheet {
        break-after: page;
    }

    .print-sheet:last-of-type {
        break-after: auto;
    }

    /* A student never splits across the fold, and the column headings reprint
       when a class runs longer than a page. */
    .print-sheet tr {
        break-inside: avoid;
    }

    .print-sheet thead {
        display: table-header-group;
    }
}

/* On a phone the menu slides over the page, so the page keeps no room for it. The drawer only turns
   into the sliding kind once the browser says it's a phone, and the layout keeps the mini rail's
   56px margin from the first render (2026-10-31 release run). Same specificity trick as print. Not
   .pb-phone: that's branded.css's "phones only" class, which hides things from 600px up. */
body .mud-layout.pb-sliding-menu .mud-main-content {
    margin-left: 0 !important;
}

/* The top-bar search's list: wide enough for "Age 9 · Reyes Family · (716) 555-0100" on one line, even
   though the box itself is narrow. */
.pb-quick-search {
    min-width: 360px;
}

/* The box itself sits on the navy app bar, where MudBlazor's default input colors are dark on dark — the
   placeholder all but vanished (2026-11-28). Light text, placeholder, icon and outline, white on focus. */
.pb-quick-search-box .mud-input,
.pb-quick-search-box .mud-input input,
.pb-quick-search-box .mud-input-adornment .mud-icon-root {
    color: #fff;
}
.pb-quick-search-box .mud-input input::placeholder {
    color: rgba(255, 255, 255, .72);
    opacity: 1;
}
.pb-quick-search-box .mud-input-outlined-border {
    border-color: rgba(255, 255, 255, .45) !important;
}
.pb-quick-search-box .mud-input:hover .mud-input-outlined-border {
    border-color: rgba(255, 255, 255, .75) !important;
}
.pb-quick-search-box .mud-input.mud-focused .mud-input-outlined-border {
    border-color: #fff !important;
}

/* Centred card for the standalone auth pages (forgot / reset password), which use the
   bare EmptyLayout and so have no app chrome to sit inside. */
.pb-auth-panel {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.pb-auth-panel > .mud-paper {
    width: 100%;
    max-width: 26rem;
}

/*  Settings → branding. The native color input, sized to sit beside a dense Mud field. */
.pb-color-input {
    width: 44px;
    height: 40px;
    padding: 2px;
    border: 1px solid var(--mud-palette-lines-inputs);
    border-radius: var(--mud-default-borderradius);
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
}

/*  The current logo, shown on the brand color it will sit on. */
.pb-logo-sample {
    display: inline-flex;
    align-items: center;
    height: 44px;
    padding: 6px 10px;
    border-radius: 6px;
}

    .pb-logo-sample img {
        height: 32px;
        width: auto;
        max-width: 140px;
        object-fit: contain;
    }

/*  A staff schedule row on a day the gym is closed (a holiday or full closure): an amber wash and a
    stripe down its left edge, with ClosureDayChip naming the closure. Set on list items and on table
    rows (via RowClassFunc); a table row puts the stripe on its first cell, since rows don't draw one.
    No !important: a clickable row still shows its hover (MudTable's own hover rule outranks this one). */
.closure-day {
    background-color: var(--mud-palette-warning-hover);
    box-shadow: inset 3px 0 0 var(--mud-palette-warning);
}

    .closure-day.mud-list-item-clickable:hover,
    a.closure-day:hover {
        background-color: color-mix(in srgb, var(--mud-palette-warning) 14%, transparent);
    }

tr.closure-day {
    box-shadow: none;
}

    tr.closure-day > td:first-child {
        box-shadow: inset 3px 0 0 var(--mud-palette-warning);
    }

/*  The closure chip wraps rather than widening its column: a long name ("Day after Thanksgiving · holiday")
    would otherwise push a narrow table into scrolling sideways. */
.mud-chip.closure-chip {
    height: auto;
    min-height: 24px;
    max-width: 100%;
    white-space: normal;
    text-align: left;
}

    .mud-chip.closure-chip .mud-chip-content {
        white-space: normal;
        padding-block: 2px;
    }
