/*
 * LifePathOps UI refinements, loaded after the theme (pushed onto after_styles by
 * AppServiceProvider) so they apply to every theme. Uses the theme's own variables,
 * so brand and non-brand themes both stay consistent.
 */

/* ------------------------------------------------------------------ Tabs
 * Use Tabler's card pattern:
 *   <div class="card"><div class="card-header">
 *     <ul class="nav nav-tabs card-header-tabs nav-tabs-responsive"> … <span class="tab-label">…</span>
 * The active tab gets a brand-colored accent (like the top menu's underline). */
.nav-tabs .nav-link { color: var(--tblr-secondary-color); }
.nav-tabs .nav-link:hover { color: var(--tblr-body-color); }
.nav-tabs .nav-link.active {
    color: var(--tblr-body-color);
    font-weight: 600;
    box-shadow: inset 0 2px 0 var(--tblr-primary);
}

/* Tab styles to compare (temporary, 2026-10-23): Tabler 1.4 ships folder tabs (card-header-tabs, ours), bordered
   (nav-bordered), underline (nav-underline), segmented (nav-segmented) and pills. The switcher on Groups sets
   html[data-tab-style] for this browser (localStorage lp-tab-style, applied in header_metas), on every page with tabs;
   the markup stays the same. Remove the variants not chosen. */
html[data-tab-style="folder-under"] .nav-tabs .nav-link.active { box-shadow: inset 0 -2px 0 var(--lp-accent, var(--tblr-primary)); }

/* Bordered: flat text tabs on the header's hairline, a 2px accent line under the active one (like the top menu). */
html[data-tab-style="bordered"] .card-header-tabs { background: transparent; gap: 1.6rem; padding: 0 var(--tblr-card-cap-padding-x); }
html[data-tab-style="bordered"] .card-header-tabs .nav-link { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; box-shadow: none; padding: .8rem 0 .7rem; margin: 0; }
html[data-tab-style="bordered"] .card-header-tabs .nav-link:hover { border-bottom-color: var(--tblr-border-color-dark, var(--tblr-border-color)); }
html[data-tab-style="bordered"] .card-header-tabs .nav-link.active { border-bottom-color: var(--lp-accent, var(--tblr-primary)); background: transparent; }

/* Segmented: a gray tray with the active view raised on white, like a phone's segmented control. */
html[data-tab-style="segmented"] .card-header-tabs { flex: 0 1 auto; margin: 0; padding: 3px; gap: 2px; border-radius: 9px; background: var(--tblr-bg-surface-tertiary); }
html[data-tab-style="segmented"] .card-header-tabs .nav-link { border: 0; border-radius: 7px; background: transparent; box-shadow: none; padding: .35rem .9rem; margin: 0; }
html[data-tab-style="segmented"] .card-header-tabs .nav-link:hover { background: rgba(0, 0, 0, .04); }
html[data-tab-style="segmented"] .card-header-tabs .nav-link.active { background: var(--tblr-bg-surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 0 0 1px var(--tblr-border-color); }

/* Pills: rounded highlights, the active one tinted in the accent. */
html[data-tab-style="pills"] .card-header-tabs { flex: 0 1 auto; margin: 0; padding: 0; gap: .3rem; background: transparent; }
html[data-tab-style="pills"] .card-header-tabs .nav-link { border: 0; border-radius: 999px; background: transparent; box-shadow: none; padding: .35rem .9rem; margin: 0; }
html[data-tab-style="pills"] .card-header-tabs .nav-link:hover { background: var(--tblr-bg-surface-secondary); }
html[data-tab-style="pills"] .card-header-tabs .nav-link.active { color: var(--lp-accent, var(--tblr-primary)); background: color-mix(in srgb, var(--lp-accent, var(--tblr-primary)) 10%, transparent); }
.tab-style-demo { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .75rem; padding: .5rem .75rem; border: 1px dashed var(--tblr-border-color-dark, var(--tblr-border-color)); border-radius: 8px; font-size: .8rem; }

/* Responsive tabs: one row that scrolls sideways instead of wrapping; below 768px only the
   icons show, except on the active tab. Each link carries a title/aria-label for the full name. */
.nav-tabs-responsive { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.nav-tabs-responsive::-webkit-scrollbar { display: none; }
.nav-tabs-responsive .nav-link { white-space: nowrap; }
@media (max-width: 767.98px) {
    .nav-tabs-responsive .nav-link:not(.active) .tab-label { display: none; }
    .nav-tabs-responsive .nav-link:not(.active) i { margin-right: 0 !important; }
    .nav-tabs-responsive .nav-link { padding-left: .6rem; padding-right: .6rem; }
}

/* ------------------------------------------------------------------ Notifications
 * Backpack shows alerts with Noty (theme "backstrap"). Restyled to match Tabler's toasts:
 * a card surface with a colored accent and icon, instead of solid color blocks. */
.noty_layout { width: 360px !important; max-width: calc(100vw - 2rem) !important; }
html .noty_theme__backstrap.noty_bar {
    display: flex;
    align-items: flex-start;
    margin: 0 0 .5rem;
    background: rgb(var(--lp-surface-rgb, 255, 255, 255)) !important;   /* solid, never glass */
    color: var(--tblr-body-color) !important;
    border: 1px solid var(--tblr-border-color) !important;
    border-left: 4px solid var(--noty-accent, var(--tblr-primary)) !important;
    border-radius: var(--tblr-border-radius-lg, 8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
    backdrop-filter: none;
}
html .noty_theme__backstrap.noty_bar::before {
    content: var(--noty-icon, "\f05a");
    font-family: "Line Awesome Free";
    font-weight: 900;
    font-size: 1.35rem;
    line-height: 1;
    color: var(--noty-accent, var(--tblr-primary));
    padding: .8rem 0 0 .9rem;
}
html .noty_theme__backstrap.noty_bar .noty_body { flex: 1; padding: .8rem .9rem; font-weight: 500; }
html .noty_theme__backstrap.noty_bar .noty_close_button {
    position: static; order: 2; margin: .55rem .6rem 0 0; color: var(--tblr-secondary-color); text-shadow: none; font-weight: 400;
}
html[data-bs-theme=dark] .noty_theme__backstrap.noty_bar { background: rgb(var(--lp-surface-rgb, 31, 32, 35)) !important; }
html .noty_theme__backstrap.noty_type__success { --noty-accent: var(--tblr-success, #2fb344); --noty-icon: "\f058"; }
html .noty_theme__backstrap.noty_type__error,
html .noty_theme__backstrap.noty_type__danger { --noty-accent: var(--tblr-danger, #d63939); --noty-icon: "\f06a"; }
html .noty_theme__backstrap.noty_type__warning { --noty-accent: var(--tblr-warning, #f76707); --noty-icon: "\f071"; }
html .noty_theme__backstrap.noty_type__info,
html .noty_theme__backstrap.noty_type__information { --noty-accent: var(--tblr-info, #4299e1); --noty-icon: "\f05a"; }

/* Position (layout set app-wide in the overridden inc/alerts.blade.php): bottom-right on
   larger screens, full-width bottom-center on phones. */
@media (max-width: 575.98px) {
    #noty_layout__bottomRight { left: 1rem !important; right: 1rem !important; bottom: 1rem !important; width: auto !important; max-width: none !important; }
}

/* ------------------------------------------------------------ Side panels
 * Offcanvas panels (e.g. a person's details over a list) stay solid over glass, like the
 * notifications, so the page behind doesn't show through. */
.offcanvas { background-color: rgb(var(--lp-surface-rgb, var(--tblr-body-bg-rgb))); }

/* ------------------------------------------------------------ Toggle buttons
 * A checked .btn-check (view switchers, filter toggles) gets the primary color, so the selected
 * option is obvious; the theme's default only darkens the border slightly. */
.btn-check:checked + .btn:not(.btn-primary):not([class*="btn-outline-"]) {
    color: var(--tblr-primary);
    border-color: var(--tblr-primary);
    background-color: color-mix(in srgb, var(--tblr-primary) 10%, transparent);
}

/* Frozen table headers and sortable columns (public/js/table-tools.js). The section tabs, a table's
   toolbar and its header row stay in view under the app's sticky header. On narrow screens the table
   scrolls sideways (.table-responsive), which a frozen header can't share, so only the tabs stay. */
.sticky-tabs { position: sticky; top: var(--lp-sticky-top, 0px); z-index: 6; background: var(--tblr-bg-surface); border-top-left-radius: inherit; border-top-right-radius: inherit; }
[data-sticky-toolbar] { position: sticky; top: calc(var(--lp-sticky-top, 0px) + var(--lp-tabs-height, 0px) + var(--lp-card-height, 0px)); z-index: 8; background: var(--tblr-bg-surface); padding-top: .5rem; padding-bottom: .5rem; margin-top: -.5rem; }
/* Backpack's theme makes every header cell transparent (!important), so a frozen header needs its own
   background: the card's surface, frosted, so rows scrolling underneath blur instead of showing through. */
.table-sticky thead th { position: sticky; top: calc(var(--lp-sticky-top, 0px) + var(--lp-tabs-height, 0px) + var(--lp-toolbar-height, 0px)); z-index: 4; background-color: var(--tblr-bg-surface) !important; box-shadow: inset 0 -1px 0 var(--tblr-border-color); }
.table-sticky thead th, .sticky-tabs, [data-sticky-toolbar] { -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); }
@media (min-width: 992px) { .table-responsive:has(> .table-sticky) { overflow: visible; } }
/* A table that scrolls both ways inside its card, like a phone app's list (People › Directory first; meant
   for other wide tables too): the box is at most the window's height under the frozen bars, its header row is
   frozen at its own top and its first column at its own left edge. .table-fit sizes every column to its content
   (never wrapped into a squeezed second line), so a short table leaves room on the right instead of stretching.
   Long text columns (.cell-clip) stop at a width and show the rest on hover. */
.table-scroll { overflow: auto; max-height: calc(100dvh - var(--lp-sticky-top, 0px) - var(--lp-tabs-height, 0px) - var(--lp-toolbar-height, 0px) - 4.5rem); min-height: 12rem; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.table-fit { width: max-content; min-width: 100%; }
.table-fit th, .table-fit td { white-space: nowrap; }
.table-fit .cell-clip { max-width: 15rem; overflow: hidden; text-overflow: ellipsis; }
.table-fit .cell-clip.cell-wide { max-width: 19rem; }
/* Two short lines in one cell (an icon, then up to two names stacked), keeping the row's height. */
.table-fit .cell-stack { display: flex; align-items: center; gap: .3rem; line-height: 1.3; font-size: .9em; }
/* A list that wraps between items, never inside one ("AVL, Worship" breaks only at a comma), up to three lines
   in a fixed width; only a row that needs the third line grows. */
.table-fit .cell-wrap { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; max-width: 15rem; white-space: normal; line-height: 1.3; }
.table-fit .cell-wrap > span { white-space: nowrap; }
.table-fit .cell-stack > .min-w-0 { min-width: 0; }
/* A select whose longest option is long (Observations' service list) never runs past the screen. */
.lp-select-fit { max-width: 100%; }
/* On phones a table's toolbar scrolls away with the page (only the table's own header row stays), so the table gets the screen. */
/* Not frozen on phones; z-index back to auto, since a card is a flex box and its children take a z-index even when
   static (with 8 the toolbar scrolled over the frozen tabs). */
@media (max-width: 767.98px) {
    [data-sticky-toolbar] { position: static; margin-top: 0; z-index: auto; }
    /* ...but while one of its menus is open it rises (above the list's header row), then settles back. */
    /* (top: auto, or the frozen bar's `top`, the tabs' height, would push it down while relative.) */
    [data-sticky-toolbar]:has(.dropdown-menu.show) { position: relative; top: auto; z-index: 8; }
}
/* Frozen cells are solid (the card's surface without its glass transparency), or what scrolls under them shows through. */
.table-scroll { --lp-solid-surface: var(--tblr-bg-surface); }
@supports (color: rgb(from red r g b / 1)) { .table-scroll { --lp-solid-surface: rgb(from var(--tblr-bg-surface) r g b / 1); } }
.table-scroll thead th { position: sticky; top: 0; z-index: 3; background-color: var(--lp-solid-surface) !important; box-shadow: inset 0 -1px 0 var(--tblr-border-color); }
.table-scroll tbody td:first-child, .table-scroll thead th:first-child { position: sticky; left: 0; z-index: 2; background-color: var(--lp-solid-surface) !important; }
.table-scroll thead th:first-child { z-index: 4; }
/* A page-scroll box (data-table-scroll="page", first on Services): no height limit, so only the page scrolls; it
   still scrolls sideways. table-tools.js moves the header row down (--lp-head-y) to sit under the frozen bars. */
.table-scroll[data-table-scroll="page"] { max-height: none; min-height: 0; overflow-y: hidden; }
.table-scroll[data-table-scroll="page"] thead th { transform: translateY(var(--lp-head-y, 0px)); z-index: 5; }
.table-scroll[data-table-scroll="page"] thead th:first-child { z-index: 6; }
/* Columns that give way (first on Services): a card with data-cols is a size container, and its table's cells carry
   col-hide-1 (first to go), col-hide-2 and so on; each page sets the widths in its own CSS, e.g.
   @container (max-width: 1330px) { .cols-auto #list .col-hide-1 { display: none; } }
   The All Columns switch (data-cols-switch, table-tools.js) removes .cols-auto, so every column shows again. */
[data-cols] { container-type: inline-size; }
/* When the table fits its width (.fits-width, set by table-tools.js) the box isn't a scroll box at all, so the
   header cells stick to the page with CSS alone, under the frozen bars. */
.table-scroll[data-table-scroll="page"].fits-width { overflow: visible; }
.table-scroll[data-table-scroll="page"].fits-width thead th { transform: none; top: calc(var(--lp-sticky-top, 0px) + var(--lp-tabs-height, 0px) + var(--lp-card-height, 0px) + var(--lp-toolbar-height, 0px)); box-shadow: inset 0 -1px 0 var(--tblr-border-color), 0 6px 8px -6px rgba(0, 0, 0, .18); }
.table-scroll.is-head-floating thead th { box-shadow: inset 0 -1px 0 var(--tblr-border-color), 0 6px 8px -6px rgba(0, 0, 0, .18); }
/* A toolbar that is its card's own child: the card's whole width (rows passing under it don't show at its sides),
   frozen for the card's whole length. */
.card > .card-toolbar { padding: .75rem var(--tblr-card-spacer-x, 1.25rem); border-top-left-radius: inherit; border-top-right-radius: inherit; }
.card > .card-toolbar[data-sticky-toolbar] { margin-top: 0; padding-top: .75rem; padding-bottom: .75rem; }
/* A toolbar in two groups spread apart: on one row the second sits at the right; once it wraps to its own row it
   starts at the left (space-between puts a lone item at the start). */
.toolbar-split { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.toolbar-group { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; min-width: 0; }
.toolbar-pair { display: flex; flex-wrap: nowrap; align-items: center; gap: .5rem; }   /* wraps as one */
.toolbar-grow { flex: 0 1 30rem; flex-wrap: nowrap; }
.toolbar-grow .input-icon { flex: 1 1 auto; min-width: 12rem; }
/* Groups' one search: its suggestions (groups.js) open under the box, grouped Groups · People · Places. */
.group-search .group-suggest { top: 100%; left: 0; margin-top: 4px; width: min(24rem, calc(100vw - 2rem)); max-height: 22rem; overflow-y: auto; }
.group-search .group-suggest .dropdown-item { display: flex; align-items: center; min-width: 0; }
.group-search .group-suggest .dropdown-header { padding-top: .5rem; }
/* The funnel (public/js/toolbar-funnel.js, next/partials/funnel.blade.php): filters fold into one menu, one at a time,
   as the toolbar narrows. fold-N on the toolbar hides inline control N and shows its twin in the menu. */
.toolbar-funnel { position: relative; }
.funnel-btn { position: relative; width: 32px; height: 32px; padding: 0; justify-content: center; }
.funnel-btn .funnel-count[hidden] { display: none; }
.funnel-menu { width: 17rem; padding: .5rem .75rem .75rem; }
.funnel-menu .funnel-item { margin-top: .5rem; }
.funnel-menu .funnel-item > .funnel-label { display: block; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--tblr-secondary); margin-bottom: .2rem; }
.funnel-menu .funnel-item .form-select, .funnel-menu .funnel-item .form-control, .funnel-menu .funnel-item .dropdown > .btn, .funnel-menu .funnel-item .input-group { width: 100% !important; }
.funnel-menu .funnel-item .lp-toggle { width: 100%; justify-content: space-between; }
/* A joined control (the Map's area: how far, then where from) stacks in the menu's narrow column. */
.funnel-menu .input-group { flex-wrap: wrap !important; gap: .35rem; }
.funnel-menu .input-group > .form-select { flex: 1 1 100%; border-radius: 6px !important; margin-left: 0 !important; }
.funnel-menu .funnel-checks { display: flex; flex-direction: column; gap: .15rem; font-size: .85rem; }
.funnel-menu .funnel-checks label { display: flex; align-items: center; gap: .45rem; margin: 0; }
.funnel-menu .funnel-checks .text-secondary { margin-left: auto; }
.funnel-menu .funnel-divider { border-top: 1px solid var(--tblr-border-color); margin: .75rem -.75rem 0; }
.funnel-menu [data-fold-twin], .funnel-menu .funnel-item:has(> [data-fold-slot]):not(.is-holding) { display: none; }
.funnel-menu .funnel-heading { font-size: .75rem; color: var(--tblr-secondary); }
.fold-1 [data-fold="1"]:not(.funnel-menu *), .fold-2 [data-fold="2"]:not(.funnel-menu *), .fold-3 [data-fold="3"]:not(.funnel-menu *),
.fold-4 [data-fold="4"]:not(.funnel-menu *), .fold-5 [data-fold="5"]:not(.funnel-menu *), .fold-6 [data-fold="6"]:not(.funnel-menu *),
.fold-7 [data-fold="7"]:not(.funnel-menu *), .fold-8 [data-fold="8"]:not(.funnel-menu *), .fold-9 [data-fold="9"]:not(.funnel-menu *) { display: none !important; }
.fold-1 .funnel-menu [data-fold-twin="1"], .fold-2 .funnel-menu [data-fold-twin="2"], .fold-3 .funnel-menu [data-fold-twin="3"],
.fold-4 .funnel-menu [data-fold-twin="4"], .fold-5 .funnel-menu [data-fold-twin="5"], .fold-6 .funnel-menu [data-fold-twin="6"],
.fold-7 .funnel-menu [data-fold-twin="7"], .fold-8 .funnel-menu [data-fold-twin="8"], .fold-9 .funnel-menu [data-fold-twin="9"] { display: block; }
/* On a phone the funnel sits at the end of the search's row (it was left on a row of its own). */
@media (max-width: 575.98px) {
    .card-toolbar[data-funnel] { position: relative; }
    .card-toolbar[data-funnel] .toolbar-search { flex: 0 0 calc(100% - 32px - .5rem) !important; }
    .card-toolbar[data-funnel] .toolbar-funnel { position: absolute; top: .75rem; right: var(--tblr-card-spacer-x, 1.25rem); }
}
/* On a phone a pair takes the row and its controls share it (Directory's "All ages" + "Quick lists…" ran past the
   screen), and a search box (.toolbar-search) takes a row of its own. */
@media (max-width: 575.98px) {
    .card-toolbar .toolbar-pair { width: 100%; }
    .card-toolbar .toolbar-pair > * { flex: 1 1 0; min-width: 0; }
    .card-toolbar .toolbar-pair > .w-auto { width: auto !important; }
    .card-toolbar .toolbar-pair > .dropdown > .form-select { width: 100%; overflow: hidden; text-overflow: ellipsis; }
    .card-toolbar .toolbar-search { flex: 1 1 100%; min-width: 0 !important; }
}
.toolbar-show:not(:has(:is(label, button):not([hidden]))) { display: none; }
.toolbar-show:not(:has(label:not([hidden]))) > .text-secondary { display: none; }   /* no "Show:" over Reset All alone */
/* Layers (lowest first): a list's header row 3–6, the frozen tabs 6, a frozen toolbar 8 (so its menus, e.g. Tag
   Filter, open over the header row), a frozen page card 9 (its ⋯ menu opens over the toolbar). */
/* Focus (2026-10-23, Josh): a thin blue border with a soft glow, in place of Bootstrap's 4px ring, which looked
   heavy and dated. --lp-focus is Tabler's azure. */
:root { --lp-focus: #4299e1; }
.form-control:focus, .form-select:focus { border-color: var(--lp-focus); box-shadow: 0 0 0 1px color-mix(in srgb, var(--lp-focus) 15%, transparent), 0 0 7px color-mix(in srgb, var(--lp-focus) 30%, transparent); }
.form-check-input:focus { border-color: var(--lp-focus); box-shadow: 0 0 6px color-mix(in srgb, var(--lp-focus) 40%, transparent); }
.btn:focus-visible { box-shadow: 0 0 0 1px var(--lp-focus), 0 0 7px color-mix(in srgb, var(--lp-focus) 35%, transparent); }
/* Dark mode: Backpack borders text boxes with --tblr-primary-border-subtle, which the charcoal primary makes nearly
   black (#0c0c0c: the search box all but disappeared beside buttons bordered #3c3c3c). Use the usual border color, and
   keep the blue focus over Backpack's stronger rule. */
html[data-bs-theme="dark"], html [data-bs-theme="dark"] { --tblr-primary-border-subtle: var(--tblr-border-color); }
[data-bs-theme="dark"] input:not(input[type="hidden"]).form-control:not(:disabled):focus, [data-bs-theme="dark"] textarea.form-control:not(:disabled):focus, [data-bs-theme="dark"] select.form-select:not(:disabled):focus { border-color: var(--lp-focus); }

/* A toolbar's controls share one size: 32px tall with 6px corners, like the search box (small buttons were 28px with
   4px corners beside it). */
.card-toolbar .btn-sm, .lp-tools .btn-sm { min-height: 32px; border-radius: 6px; }
.card-toolbar .form-select-sm, .card-toolbar .form-control-sm, .lp-tools .form-select-sm { height: 32px; border-radius: 6px; }

/* A view switcher inside a card (Tabler's nav-segmented: a gray tray, the chosen view raised on white), for views of
   the same data (Groups › Season's Weekly / Who Comes / Getting There, Calendar's Agenda / Week / Month); sized to the
   32px controls. */
.nav-segmented.lp-segmented { --tblr-nav-height: 32px; --tblr-nav-radius: 6px; font-size: .8rem; }
.nav-segmented.lp-segmented .nav-link { padding: 0 .75rem; }
/* A count beside a choice's label ("Baptism (4)"), in a soft pill so it reads with its label (2026-10-29, Josh's pick C). */
/* The link's own gap sets the space before the pill; a control with counts takes a little less side padding (Josh). */
.nav-segmented.lp-segmented:has(.seg-count) .nav-link { padding: 0 .5rem; }
.seg-count { display: inline-flex; align-items: center; justify-content: center; min-width: 1.25rem; height: 1.25rem; padding: 0 .3rem;
    border-radius: 999px; background: rgba(var(--tblr-secondary-rgb, 108, 117, 125), .14); color: var(--tblr-secondary); font-size: .7rem; font-weight: 600; line-height: 1; }
.active > .seg-count { background: rgba(var(--tblr-secondary-rgb, 108, 117, 125), .2); color: var(--tblr-body-color); }

/* A switch with its words, as one control (.lp-toggle; first on Groups' All Columns): the toolbar's 32px box with the
   words and a small track inside; the track turns blue and its knob slides when on. The real checkbox stays in the
   label (invisible) for clicks, the keyboard and screen readers. Markup:
   <label class="lp-toggle"><input type="checkbox" class="lp-toggle-input"><span>Words</span><span class="lp-toggle-track"></span></label> */
.lp-toggle { position: relative; display: inline-flex; align-items: center; gap: 9px; height: 32px; margin: 0; padding: 0 7px 0 11px; border: 1px solid var(--tblr-border-color); border-radius: 6px; background: var(--tblr-bg-surface); font-size: 12px; color: var(--tblr-secondary); cursor: pointer; user-select: none; box-shadow: var(--tblr-box-shadow-input, none); transition: border-color .15s, color .15s; }
.lp-toggle[hidden] { display: none; }
.lp-toggle:hover { color: var(--tblr-body-color); border-color: var(--tblr-border-color-dark, var(--tblr-border-color)); }
.lp-toggle-input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.lp-toggle-track { position: relative; width: 28px; height: 16px; border-radius: 8px; background: var(--tblr-border-color-dark, #d0d0d4); transition: background-color .15s; flex-shrink: 0; }
.lp-toggle-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .15s; }
.lp-toggle:has(.lp-toggle-input:checked) { color: var(--tblr-body-color); border-color: color-mix(in srgb, var(--lp-focus) 45%, var(--tblr-border-color)); }
.lp-toggle:has(.lp-toggle-input:checked) .lp-toggle-track { background: var(--lp-focus); }
.lp-toggle:has(.lp-toggle-input:checked) .lp-toggle-track::after { transform: translateX(12px); }
.lp-toggle:has(.lp-toggle-input:focus-visible) { border-color: var(--lp-focus); box-shadow: 0 0 0 1px color-mix(in srgb, var(--lp-focus) 15%, transparent), 0 0 7px color-mix(in srgb, var(--lp-focus) 30%, transparent); }
@media (prefers-reduced-motion: reduce) { .lp-toggle-track, .lp-toggle-track::after { transition: none; } }
/* How many rows show, quietly in the first column's header (e.g. "Service  25 shown"). */
.th-count { margin-left: .4rem; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--tblr-secondary); opacity: .85; }
.table-scroll.is-scrolled-x tbody td:first-child, .table-scroll.is-scrolled-x thead th:first-child { box-shadow: inset -1px 0 0 var(--tblr-border-color), 6px 0 8px -6px rgba(0, 0, 0, .25); }
.table-scroll.is-scrolled-x thead th:first-child { box-shadow: inset -1px -1px 0 var(--tblr-border-color), 6px 0 8px -6px rgba(0, 0, 0, .25); }
.table-scroll tbody tr:hover td:first-child { background-color: color-mix(in srgb, var(--tblr-body-color) 4%, var(--lp-solid-surface)) !important; }
.table-fit .col-name .text-truncate { max-width: 13rem; }
/* On phones the frozen name column takes at most about 40% of the width (smaller photo, the name cut short with
   "…", the second line hidden), so the columns scrolling beside it have room. */
@media (max-width: 575.98px) {
    .table-scroll .table-fit .col-name { max-width: 42vw; }
    .table-scroll .col-name .avatar { --tblr-avatar-size: 1.6rem; font-size: .65rem; }
    .table-scroll .col-name .fw-medium { overflow: hidden; text-overflow: ellipsis; }
    .table-scroll .col-name .fw-medium .badge, .table-scroll .col-name .small { display: none; }
    .table-scroll .col-name > .d-flex { gap: .4rem !important; }
    .table-scroll .table-fit > :is(thead, tbody) > tr > :first-child { padding-left: .6rem; padding-right: .4rem; }
}
th[data-sort] { cursor: pointer; user-select: none; white-space: nowrap; }
th[data-sort]::after { content: '\2195'; opacity: .3; margin-left: .3rem; font-size: .8em; }
th[data-sort].sort-asc::after { content: '\2191'; opacity: .9; }
th[data-sort].sort-desc::after { content: '\2193'; opacity: .9; }
th[data-sort]:focus-visible { outline: 2px solid var(--tblr-primary); outline-offset: -2px; }

/* The divider between the app's menu (App\Support\NextNav) and the second Admin menu ("Still to Move": the screens
   that haven't moved yet). A labelled rule in a sidebar or the phone menu; a thin upright line in a horizontal top
   bar. Remove it (and the rules below) when that second menu goes. */
/* A menu entry still on the "Still to Move" menu, shown where it will live (NextNav 'pending'): greyed, with a tag. */
.lp-menu-pending { display: flex; align-items: center; gap: .5rem; opacity: .6; cursor: default; }
.lp-menu-pending .badge, .lp-menu-moving .badge { font-size: .65rem; font-weight: 500; }
.lp-menu-moving { display: flex; align-items: center; gap: .5rem; }
/* A page's stage on the menu (NextNav 'tag', 2026-10-31): Preview / Mockup / Temporary / Previous, right-aligned,
   instead of a badge on the page itself. */
.lp-menu-tagged { display: flex; align-items: center; }
.lp-menu-tag { margin-left: auto; padding-left: 1rem; }
.lp-menu-tag .badge { font-size: .62rem; font-weight: 500; }
.lp-nav-divider { list-style: none; }
.lp-nav-divider span { display: block; margin: .75rem .75rem .25rem; padding-top: .5rem; border-top: 1px solid var(--tblr-border-color); font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--tblr-secondary); }
@media (min-width: 992px) {
    [bp-layout^="horizontal"] .lp-nav-divider { display: flex; align-items: center; margin: 0 .5rem; }
    [bp-layout^="horizontal"] .lp-nav-divider span { width: 0; height: 1.75rem; margin: 0; padding: 0; border-top: 0; border-left: 2px solid var(--tblr-border-color); font-size: 0; }
}
/* In the top bar, items sit a little closer and the second Admin menu drops its icon. Menu icons stay down to 1100 px
   (Josh, 2026-10-13: the bar isn't full): Backpack's menu components hide them between 992 and 1200 px with
   d-lg-none / d-xl-block, so this overrides that here rather than editing Backpack's files; below 1100 they go. */
@media (min-width: 992px) {
    [bp-layout^="horizontal"] header .navbar-nav > .nav-item > .nav-link { padding-left: .45rem; padding-right: .45rem; }
    [bp-layout^="horizontal"] header .lp-nav-divider ~ .nav-item > .nav-link > .nav-icon { display: none !important; }
}
@media (min-width: 1100px) and (max-width: 1199.98px) {
    .navbar .nav-link > .nav-icon.d-lg-none, .navbar .dropdown-item > .nav-icon.d-lg-none { display: inline-flex !important; }
    [bp-layout^="horizontal"] header .lp-nav-divider ~ .nav-item > .nav-link > .nav-icon { display: none !important; }
}
@media (min-width: 992px) and (max-width: 1099.98px) {
    [bp-layout^="horizontal"] header .navbar-nav > .nav-item > .nav-link > .nav-icon { display: none !important; }
}
/* A little more room between the logo and Home (Josh, 2026-10-26). */
@media (min-width: 992px) {
    [bp-layout^="horizontal"] header .navbar-nav > .nav-brand { margin-right: .45rem; }
}

/* The top bar's right side (2026-10-26): Search, the Launcher, the user menu. Search is a quiet box with its shortcut
   where the bar has room (1400px+), its icon below that. */
.lp-search-link { display: inline-flex; align-items: center; gap: .45rem; }
.lp-search-link .lpi { width: 1.25rem; height: 1.25rem; }
.lp-search-text, .lp-search-key { display: none; }
@media (min-width: 1400px) {
    .lp-search-link { height: 2rem; min-width: 11rem; padding: 0 .4rem 0 .6rem !important; border: 1px solid var(--tblr-border-color); border-radius: 6px; color: var(--tblr-secondary) !important; background: rgba(var(--lp-surface-rgb, 255,255,255), .6); }
    .lp-search-link:hover { border-color: var(--tblr-border-color-dark, var(--tblr-border-color)); color: var(--tblr-body-color) !important; }
    .lp-search-link .lpi { width: 1rem; height: 1rem; }
    .lp-search-text { display: inline; flex: 1; font-size: .8125rem; }
    .lp-search-key { display: inline; padding: .05rem .3rem; font: 500 .68rem/1.4 var(--tblr-font-sans-serif); color: var(--tblr-secondary); background: var(--tblr-bg-surface-tertiary); border: 1px solid var(--tblr-border-color); border-radius: 4px; box-shadow: none; }
}
/* The user menu: who you are, Account, Preferences, Light / Dark / System side by side, Log out. */
.lp-user-menu { min-width: 15rem; }
/* The name beside the avatar only where the bar has room (it's at the top of the menu either way): at 1200px it pushed
   the bar 23px past the window. */
@media (max-width: 1399.98px) { .lp-user > .nav-link > .d-xl-block { display: none !important; } }
.lp-user-menu .dropdown-item { gap: .6rem; }
.lp-user-menu .dropdown-item .lpi { width: 1.125rem; height: 1.125rem; color: var(--tblr-secondary); }
.lp-user-who { padding: .35rem 1rem .25rem; max-width: 18rem; line-height: 1.35; }
.lp-mode { display: flex; gap: 2px; margin: .4rem .75rem .25rem; padding: 3px; border-radius: 8px; background: var(--tblr-bg-surface-tertiary); }
.lp-mode-btn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .35rem .25rem .3rem; border: 0; border-radius: 6px; background: transparent; color: var(--tblr-secondary); font-size: .72rem; font-weight: 500; line-height: 1.2; cursor: pointer; }
.lp-mode-btn .lpi { width: 1.125rem; height: 1.125rem; }
.lp-mode-btn:hover { color: var(--tblr-body-color); }
.lp-mode-btn[aria-pressed="true"] { background: rgb(var(--lp-surface-rgb, 255,255,255)); color: var(--tblr-body-color); box-shadow: 0 1px 2px rgba(0, 0, 0, .1), 0 0 0 1px var(--tblr-border-color); }
.lp-mode-btn:focus-visible { outline: 2px solid var(--lp-focus, #4299e1); outline-offset: -2px; }

/* The phone menu (under 992px, 2026-10-26). The bar: the menu button beside the church's mark (the full logo from
   576px; layouts/partials/mobile_toggle_btn). The menu drops over the page as a card, only as wide as it needs, with
   the page blurred behind it (.lp-menu-shade, added while it's open), instead of pushing everything down. Selected
   entries are separate rounded rows: the page you're on tinted, its section in bold, never one gray block. */
.lp-mobile-start { display: flex; flex-direction: row !important; align-items: center; gap: .75rem; }
.lp-mobile-brand { display: flex; align-items: center; text-decoration: none; }
.lp-mobile-mark { width: 32px; height: 32px; display: block; }
.lp-mobile-logo { display: none; }
@media (min-width: 576px) {
    .lp-mobile-mark { display: none; }
    .lp-mobile-logo { display: flex; align-items: center; }
}
@media (max-width: 991.98px) {
    aside.navbar:has(#mobile-menu) { position: relative; z-index: 1035; }
    aside.navbar #mobile-menu { position: absolute; top: calc(100% + .35rem); left: .75rem; z-index: 1036; width: max-content; min-width: 15rem; max-width: min(22rem, calc(100vw - 1.5rem)); max-height: calc(100dvh - 100% - 1.5rem); overflow-y: auto; overscroll-behavior: contain; padding: .4rem; border: 1px solid var(--tblr-border-color); border-radius: 12px; background: rgb(var(--lp-surface-rgb, 255,255,255)); box-shadow: 0 12px 32px rgba(0, 0, 0, .18), 0 2px 6px rgba(0, 0, 0, .08); }
    aside.navbar #mobile-menu.collapsing { transition-duration: .2s; }
    aside.navbar #mobile-menu > .navbar-nav { padding-top: 0 !important; margin: 0; }
    aside.navbar #mobile-menu .nav-item { margin: 1px 0; }
    aside.navbar #mobile-menu .nav-link, aside.navbar #mobile-menu .dropdown-item { gap: .1rem; min-height: 2.4rem; padding: .45rem .65rem; border-radius: 8px; background: transparent; }
    aside.navbar #mobile-menu .nav-link:hover, aside.navbar #mobile-menu .dropdown-item:hover { background: var(--tblr-bg-surface-tertiary); }
    /* A section with the page you're on: bold, no fill (the page itself carries the tint). */
    aside.navbar #mobile-menu .nav-item.active > .nav-link, aside.navbar #mobile-menu .nav-link.active { background: transparent; font-weight: 600; color: var(--tblr-body-color); }
    aside.navbar #mobile-menu .nav-link.dropdown-toggle.show { background: transparent; }
    aside.navbar #mobile-menu .dropdown-menu { margin: 2px 0 4px; padding: 0 0 0 .9rem; border: 0; background: transparent; box-shadow: none; }
    aside.navbar #mobile-menu .dropdown-item { margin: 1px 0; }
    /* The page you're on: a soft tint of the accent with a short bar at its start. */
    aside.navbar #mobile-menu .nav-item:not(.dropdown) > .nav-link.active,
    aside.navbar #mobile-menu .dropdown-item.active { position: relative; font-weight: 600; color: var(--tblr-body-color); background: color-mix(in srgb, var(--lp-accent, var(--tblr-primary)) 11%, transparent); }
    aside.navbar #mobile-menu .nav-item:not(.dropdown) > .nav-link.active::before,
    aside.navbar #mobile-menu .dropdown-item.active::before { content: ''; position: absolute; left: 0; top: .55rem; bottom: .55rem; width: 3px; border-radius: 3px; background: var(--lp-accent, var(--tblr-primary)); }
    aside.navbar #mobile-menu .nav-link.active .nav-icon, aside.navbar #mobile-menu .dropdown-item.active .nav-icon { color: var(--lp-accent, var(--tblr-primary)); }
    aside.navbar #mobile-menu .lp-nav-divider span { margin: .5rem .5rem .25rem; }
    .lp-menu-shade { position: fixed; inset: 0; z-index: 1034; background: rgba(15, 17, 20, .18); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); opacity: 0; transition: opacity .2s ease; }
    .lp-menu-shade.show { opacity: 1; }
    body.lp-menu-open { overflow: hidden; }
}

/* Phosphor icons drawn inline (App\Support\Icons::la()): Phosphor draws in about 78% of its box, so a 1.1em box gives
   about the glyph size of the old font icons (1.2em read a touch large, Josh 2026-10-13). */
.phi { display: inline-block; width: 1.1em; height: 1.1em; flex-shrink: 0; vertical-align: -.2em; }
/* An icon in a box (<span class="phi"><svg>): Tabler's `img, svg { vertical-align: middle }` set the drawing on the
   box's own text line, about a third of the box too low (Josh found it, 2026-11-06; 4.4px on Weekly Review's lists).
   The box centers it instead, at its own size; the box's vertical-align above then places it on the text. An icon that
   is the svg itself (svg.phi) never had the offset. Measured before and after on 13 pages, 2026-11-07. */
.phi:not(svg) { display: inline-flex; align-items: center; justify-content: center; }
.phi:not(svg) > svg { display: block; flex: none; }

/* Menu and page-title icons: Phosphor Regular (Josh, 2026-10-13), drawn as a mask over currentColor so they take the
   menu's colors like the old font icons, from public/icons/regular (App\Support\NextNav's "lpi lpi-{name}"). */
.lpi { display: inline-block; width: 1.25em; height: 1.25em; flex-shrink: 0; vertical-align: -.25em; background-color: currentColor; -webkit-mask: var(--lpi) center / contain no-repeat; mask: var(--lpi) center / contain no-repeat; }
/* 1.125rem = 18px in the menu (Josh had 1.1rem in mind, 2026-10-13): a whole number of pixels keeps the mask's edges
   crisp at 100% scaling, and the drawn glyph (about 78% of the box) comes out near the 14px label's size. */
.nav-icon.lpi { width: 1.125rem; height: 1.125rem; }
/* Checklist icons (App\Support\ChecklistIcons): a Phosphor duotone file as a mask, so its lighter layer keeps its
   transparency and one color (the icon's group, set inline) draws both shades. */
.cli { display: inline-block; width: 1.25em; height: 1.25em; flex-shrink: 0; vertical-align: -.25em; background-color: currentColor; -webkit-mask: var(--cli) center / contain no-repeat; mask: var(--cli) center / contain no-repeat; }
.lpi-house { --lpi: url("../icons/regular/house.svg"); }
.lpi-church { --lpi: url("../icons/regular/church.svg"); }
.lpi-cross { --lpi: url("../icons/regular/cross.svg"); }
.lpi-sun-horizon { --lpi: url("../icons/regular/sun-horizon.svg"); }
.lpi-dots-three { --lpi: url("../icons/regular/dots-three.svg"); }
.lpi-x { --lpi: url("../icons/regular/x.svg"); }
.lpi-plus { --lpi: url("../icons/regular/plus.svg"); }
.lpi-plus-circle { --lpi: url("../icons/regular/plus-circle.svg"); }
/* A search box with its own clear button (.input-clearable > [data-clear-input], table-tools.js): the ✕ shows while
   there's something typed; the browser's own clear button (Chrome and Safari only) is hidden so there's one way. */
.input-clearable input[type="search"]::-webkit-search-cancel-button { display: none; }
.input-clearable input { padding-right: 2rem; }
.input-clear { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 1.4rem; height: 1.4rem; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--tblr-secondary); z-index: 5; }
.input-clear:hover { color: var(--tblr-body-color); background: var(--tblr-bg-surface-secondary); }
.input-clear[hidden] { display: none; }
.input-clear .lpi { width: .95rem; height: .95rem; }
.lpi-users-three { --lpi: url("../icons/regular/users-three.svg"); }
.lpi-heart { --lpi: url("../icons/regular/heart.svg"); }
.lpi-note-pencil { --lpi: url("../icons/regular/note-pencil.svg"); }
.lpi-address-book { --lpi: url("../icons/regular/address-book.svg"); }
.lpi-user-list { --lpi: url("../icons/regular/user-list.svg"); }
.lpi-eye { --lpi: url("../icons/regular/eye.svg"); }
.lpi-cake { --lpi: url("../icons/regular/cake.svg"); }
.lpi-house-line { --lpi: url("../icons/regular/house-line.svg"); }
.lpi-users-four { --lpi: url("../icons/regular/users-four.svg"); }
.lpi-map-trifold { --lpi: url("../icons/regular/map-trifold.svg"); }
.lpi-handshake { --lpi: url("../icons/regular/handshake.svg"); }
.lpi-chart-line-up { --lpi: url("../icons/regular/chart-line-up.svg"); }
.lpi-newspaper { --lpi: url("../icons/regular/newspaper.svg"); }
.lpi-calendar-check { --lpi: url("../icons/regular/calendar-check.svg"); }
.lpi-chart-bar { --lpi: url("../icons/regular/chart-bar.svg"); }
.lpi-chart-line { --lpi: url("../icons/regular/chart-line.svg"); }
.lpi-plant { --lpi: url("../icons/regular/plant.svg"); }
.lpi-baby { --lpi: url("../icons/regular/baby.svg"); }
.lpi-device-mobile { --lpi: url("../icons/regular/device-mobile.svg"); }
.lpi-door-open { --lpi: url("../icons/regular/door-open.svg"); }
.lpi-trophy { --lpi: url("../icons/regular/trophy.svg"); }
.lpi-play { --lpi: url("../icons/regular/play.svg"); }
.lpi-user-check { --lpi: url("../icons/regular/user-check.svg"); }
.lpi-compass { --lpi: url("../icons/regular/compass.svg"); }
.lpi-signpost { --lpi: url("../icons/regular/signpost.svg"); }
.lpi-handshake { --lpi: url("../icons/regular/handshake.svg"); }
.lpi-hand-heart { --lpi: url("../icons/regular/hand-heart.svg"); }
.lpi-copy { --lpi: url("../icons/regular/copy.svg"); }
.lpi-caret-left { --lpi: url("../icons/regular/caret-left.svg"); }
.lpi-squares-four { --lpi: url("../icons/regular/squares-four.svg"); }
.lpi-calendar-blank { --lpi: url("../icons/regular/calendar-blank.svg"); }
.lpi-arrow-square-out { --lpi: url("../icons/regular/arrow-square-out.svg"); }
.lpi-gear-six { --lpi: url("../icons/regular/gear-six.svg"); }
.lpi-sliders-horizontal { --lpi: url("../icons/regular/sliders-horizontal.svg"); }
.lpi-palette { --lpi: url("../icons/regular/palette.svg"); }
.lpi-list-checks { --lpi: url("../icons/regular/list-checks.svg"); }
.lpi-tree-structure { --lpi: url("../icons/regular/tree-structure.svg"); }
.lpi-key { --lpi: url("../icons/regular/key.svg"); }
.lpi-plugs-connected { --lpi: url("../icons/regular/plugs-connected.svg"); }
.lpi-paper-plane-tilt { --lpi: url("../icons/regular/paper-plane-tilt.svg"); }
.lpi-heartbeat { --lpi: url("../icons/regular/heartbeat.svg"); }
.lpi-clock-counter-clockwise { --lpi: url("../icons/regular/clock-counter-clockwise.svg"); }
.lpi-seal-check { --lpi: url("../icons/regular/seal-check.svg"); }
.lpi-user-circle { --lpi: url("../icons/regular/user-circle.svg"); }
.lpi-broadcast { --lpi: url("../icons/regular/broadcast.svg"); }
.lpi-images { --lpi: url("../icons/regular/images.svg"); }
.lpi-magnifying-glass { --lpi: url("../icons/regular/magnifying-glass.svg"); }
.lpi-tag { --lpi: url("../icons/regular/tag.svg"); }
.lpi-ruler { --lpi: url("../icons/regular/ruler.svg"); }
.lpi-download-simple { --lpi: url("../icons/regular/download-simple.svg"); }

/* The tagline header (Home and the Live View, in place of a page title and breadcrumb), close under the menu. */
/* The tagline sits centered in a 48px band between the top bar and the first cards (3x the 16px card gap; Josh 2026-10-14). */
.home-header { padding-top: 0; margin-top: -.75rem; margin-bottom: .75rem; text-align: center; }
/* Whole-pixel line height (it was 23.99px a line): anything drawn below it then lands on whole pixels, which keeps
   SVG icons sharp (a half-pixel offset blurs their edges; text snaps to pixels by itself). */
.home-tagline { display: block; font-size: 1.05rem; line-height: 24px; font-weight: 600; color: var(--tblr-secondary); }
.home-tagline.is-empty { font-size: .9rem; font-weight: 400; font-style: italic; text-decoration: underline dotted; }

/* min-w-0: lets a flex child shrink below its content so text-truncate works. Many views use it; the theme (Tabler /
   Bootstrap 5) doesn't define it, so long lines ran off narrow screens (the Live View's service details, 2026-10-04). */
.min-w-0 { min-width: 0 !important; }
/* A card toolbar with folding filters (.lp-toolbar, People › Directory first): from 768px, search, filters and
   the view buttons sit in one wrapping row. On phones the search takes the row with a filter button beside it
   (the filters fold out below it, full width) and the count and view buttons are centered on a second row; the
   toolbar scrolls away there instead of staying frozen, so the table gets the screen. */
.lp-toolbar { display: flex; flex-wrap: wrap; align-items: center; }
.lp-toolbar-search { flex: 1 1 14rem; max-width: 22rem; }
.lp-toolbar-end { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.lp-toolbar-filter-btn .badge-notification { top: -.35rem; right: -.35rem; }
@media (min-width: 768px) {
    .lp-toolbar-filter-btn { display: none; }
    .lp-toolbar-filters.collapse { display: flex !important; flex-wrap: wrap; gap: .5rem; height: auto !important; }
    .lp-toolbar-filters > .form-select, .lp-toolbar-filters > .dropdown > .form-select { width: auto; }
}
@media (max-width: 767.98px) {
    .lp-toolbar.sticky-tabs { position: static; }
    .lp-toolbar-search { max-width: none; }
    .lp-toolbar-filters { flex-basis: 100%; }
    .lp-toolbar-filters.show, .lp-toolbar-filters.collapsing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
    .lp-toolbar-filters .dropdown > .form-select { width: 100%; overflow: hidden; text-overflow: ellipsis; }
    .lp-toolbar-end { flex-basis: 100%; margin-left: 0; justify-content: center; }
    .lp-toolbar-filters .lp-toolbar-pair { grid-column: 1 / -1; }
    .lp-toolbar-pair > .form-select { flex: 1 1 0; min-width: 0; }
}

/* A page's introduction (next/partials/page-card.blade.php, first on Services): tile, name and one line of context;
   quiet totals that filter (a total isn't a metric, so it gets a number and a word, not a card of its own); one
   primary action and ⋯. One row on a computer; on a phone the totals move to their own row, four across. */
.page-card { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; padding: .75rem 1rem; margin-bottom: 1rem; background: var(--tblr-bg-surface); border: 1px solid var(--tblr-border-color); border-radius: var(--tblr-border-radius-lg, var(--tblr-border-radius)); box-shadow: var(--tblr-box-shadow-card, none); }
.page-card-id { display: flex; align-items: center; gap: .75rem; min-width: 0; flex: 1 1 16rem; }
.page-card-tile { width: 2.6rem; height: 2.6rem; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; font-size: 1.35rem; color: var(--lp-accent, var(--tblr-primary)); background: color-mix(in srgb, var(--lp-accent, var(--tblr-primary)) 10%, transparent); }
/* Or a larger duotone icon in the area's color, with no tile (as on Home's cards); being compared, Groups first. */
/* 36px (2.25rem; 2.75 competed with the logo beside it in the top bar), whole pixels so it stays sharp. */
.page-card-duo { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; }
.page-card-duo svg { width: 100%; height: 100%; }
/* ‹ Directory: the way back from a page that belongs to another, set off by a hairline before the page's own icon. */
.page-card-back { display: inline-flex; align-items: center; gap: .2rem; height: 28px; padding: 0 .75rem 0 .1rem; margin-right: .1rem; border-right: 1px solid var(--tblr-border-color); color: var(--tblr-secondary); font-size: .8125rem; font-weight: 500; text-decoration: none; white-space: nowrap; flex-shrink: 0; }
.page-card-back:hover { color: var(--tblr-body-color); text-decoration: none; }
.page-card-back .lpi { width: 1rem; height: 1rem; }
/* A long way back (an event's name, from its Name Tags) is cut rather than crowding the page's own name. */
.page-card-back span { max-width: 14rem; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 575.98px) { .page-card-back span { display: none; } .page-card-back { padding-right: .5rem; } }
/* A line still loading (e.g. "Sync in progress…"): a soft light passes across the text. */
.text-shimmer { background: linear-gradient(90deg, var(--tblr-secondary) 0%, var(--tblr-body-color) 40%, var(--tblr-secondary) 60%) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: text-shimmer 1.6s linear infinite; }
@keyframes text-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .text-shimmer { animation: none; color: var(--tblr-secondary); } }
/* 24px + the 18px line = 42px: an even height, so a 36px icon beside it is centered on whole pixels. */
.page-body .container-fluid h1.page-card-title { margin: 0; font-size: 1.15rem; font-weight: 600; line-height: 24px; }
/* The name with an optional badge beside it (a service's status); a long name is cut before the badge is. */
.page-card-name { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.page-card-name h1.page-card-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.page-card-name .badge { flex-shrink: 0; }
/* Or a picture that is the page's identity (a service's series art): 16:9 at the name and line's 42px height. */
.page-card-art { width: 75px; height: 42px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
/* Previous, the list, next (a service's page): one small group before the button. */
.page-card-nav .btn { width: 28px; height: 28px; padding: 0; justify-content: center; }
.page-card-sub { font-size: .8rem; line-height: 18px; color: var(--tblr-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-card-sub a { color: inherit; }
/* A rotating line (page-card.blade.php's ticker): the lines share one spot and cross-fade, rising a little. */
.page-card-ticker { display: grid; }
.ticker-line { grid-area: 1 / 1; display: flex; align-items: center; gap: .35rem; min-width: 0; text-decoration: none !important; opacity: 0; transform: translateY(.3rem); transition: opacity .45s ease, transform .45s ease; pointer-events: none; }
.ticker-line.is-on { opacity: 1; transform: none; pointer-events: auto; }
.ticker-line:hover span { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.ticker-line span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticker-line .lpi { width: 16px; height: 16px; flex-shrink: 0; vertical-align: 0; }
@media (prefers-reduced-motion: reduce) { .ticker-line { transition: none; } }
/* The totals and buttons are one group (.page-card-side): beside the name while the card is wide enough, and on a
   card under 760px both move to a row of their own together (totals left, buttons right), so neither row is left
   cramped or nearly empty. On a phone the buttons return beside the name and the totals take the row (below). */
.page-card { container: page-card / inline-size; }
.page-card-side { display: flex; align-items: center; gap: 1.25rem; margin-left: auto; flex: 0 0 auto; }
@container page-card (max-width: 760px) {
    .page-card-side { flex-basis: 100%; justify-content: space-between; margin-left: 0; }
    /* With no totals there's nothing to share a row with: the buttons stay beside the name. */
    .page-card-side:not(:has(.page-card-stats)) { flex-basis: auto; margin-left: auto; }
}
.page-card-stats { display: flex; gap: .25rem; }
.page-card-stat { display: flex; flex-direction: column; align-items: center; text-align: center; padding: .25rem .7rem; border-radius: 8px; line-height: 1.15; color: inherit; text-decoration: none !important; }
.page-card-stat:hover { background: var(--tblr-bg-surface-secondary); }
.page-card-stat b { font-size: 1.05rem; font-weight: 600; }
.page-card-stat small { font-size: .72rem; color: var(--tblr-secondary); white-space: nowrap; }
.page-card-stat.is-selected { background: var(--tblr-bg-surface-tertiary); }
.page-card-stat.is-zero { pointer-events: none; }
.page-card-stat.is-zero b { color: var(--tblr-secondary); font-weight: 500; }
/* Two versions of a page to compare (next/partials/draft-switch, 2026-11-05): in the card's free space, just before
   the totals and buttons, at their 28px height; on phones a row of its own under the name. */
.page-card .draft-switch { --tblr-nav-height: 28px; flex: 0 0 auto; margin-left: auto; }
.page-card .draft-switch + .page-card-side { margin-left: 0; }
.page-card-actions { display: flex; align-items: center; gap: .4rem; flex-shrink: 0; }
/* The card's buttons: small and plain, a Phosphor icon each (the action's own color, e.g. Live View's red). */
.page-card-btn { gap: .35rem; }
.page-card-btn .lpi { width: 1.1rem; height: 1.1rem; }
.page-card-more { width: 28px; height: 28px; padding: 0; justify-content: center; }
/* A page card that follows the page ($sticky): only where there's height to spare (a computer, 760px+ tall); the
   toolbar and header row stack under it. Frozen, it joins the toolbar below it (square bottom, a soft shadow). */
@media (min-width: 768px) and (min-height: 760px) {
    .page-card[data-sticky] { position: sticky; top: var(--lp-sticky-top, 0px); z-index: 9; -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); }
    .page-card[data-sticky].is-stuck { border-bottom-left-radius: 0; border-bottom-right-radius: 0; box-shadow: 0 6px 10px -8px rgba(0, 0, 0, .25); }
}
@media (max-width: 575.98px) {
    .page-card { gap: .6rem; padding: 10px 12px; }
    .page-card-id { flex: 1 1 0; }
    .page-card-side { display: contents; }
    .page-card-tile { width: 2.2rem; height: 2.2rem; font-size: 1.1rem; }
    .page-card-duo { width: 32px; height: 32px; }
    .page-card-art { width: 64px; height: 36px; }
    /* With ‹ ☰ › (a service's page) there are too many buttons to sit beside the name: the name takes the width and
       the buttons a row of their own, the way there on the left, the action and ⋯ on the right (with its words). */
    .page-card:has(.page-card-nav) .page-card-id { flex-basis: 100%; }
    .page-card:has(.page-card-nav) .page-card-actions { width: 100%; }
    .page-card:has(.page-card-nav) .page-card-nav + * { margin-left: auto; }
    .page-card:has(.page-card-nav) .page-card-actions .btn-label { display: inline; }
    .page-card-stats { order: 3; width: 100%; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
    .page-card-stat { padding: .25rem .2rem; text-align: center; min-width: 0; }
    /* Five totals (Impact) on a phone: smaller words that may wrap, instead of running into each other. */
    .page-card-stat small { font-size: .66rem; white-space: normal; line-height: 1.15; overflow-wrap: anywhere; }
    .page-card-actions .btn-label { display: none; }
}

/* Compact metric cards (next/partials/metric.blade.php; Groups draws the same markup in groups.js): a duotone
   icon, "136 People" on one line with a short note under it, and a detail line on wide screens only. Two across
   on phones (cards marked .metric-wide are left out there), three from 768px, up to six in a row from 1200px. */
.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-bottom: 1rem; }
@media (min-width: 768px) { .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .metric-grid { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); } }
@media (max-width: 767.98px) { .metric-wide { display: none !important; } }
/* Seven cards (Groups › Season): one row on a computer, 4 + 3 on a tablet, never one left alone on a row. */
@media (min-width: 768px) and (max-width: 1199.98px) { .metric-grid-7 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) {
    .metric-grid-7 { grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .5rem; }
    /* A little tighter, so "9.8 Per Meeting" fits beside its icon at about 1400px. */
    .metric-grid-7 .metric { padding: .55rem .6rem; gap: .5rem; }
    .metric-grid-7 .metric-icon { font-size: 1.6rem; }
}
.metric { display: flex; align-items: center; gap: .65rem; min-width: 0; padding: .6rem .75rem; color: inherit; text-decoration: none !important; background: var(--tblr-bg-surface); border: 1px solid var(--tblr-border-color); border-radius: var(--tblr-border-radius-lg, var(--tblr-border-radius)); }
a.metric:hover { border-color: var(--metric-tint); color: inherit; }
.metric.is-selected { outline: 2px solid var(--metric-tint); outline-offset: -1px; }
/* No tile behind the icon: the duotone's own lighter layer does that job (Josh's demo, 2026-10-12). */
.metric-icon { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--metric-tint); }
.metric-icon svg { display: block; }
.metric-text { min-width: 0; line-height: 1.2; }
.metric-line { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric-value { font-size: 1.2rem; font-weight: 600; }
.metric-label { font-weight: 600; }
.metric-sub { display: block; font-size: .78rem; color: var(--tblr-secondary-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric-detail { display: none; font-size: .75rem; color: var(--tblr-secondary-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 1200px) { .metric-detail { display: block; } }
@media (max-width: 575.98px) {
    .metric { padding: .5rem .55rem; gap: .45rem; }
    .metric-icon { font-size: 1.7rem; }
    .metric-value { font-size: 1.1rem; }
    .metric-label { font-size: .85rem; }
}

/* Copy buttons (public/js/copy.js): a small icon beside a value that stays a link; "Copied!" floats above it a moment. */
.copy-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; padding: 0; margin: -.2rem 0; border: 0; border-radius: var(--tblr-border-radius); background: none; color: var(--tblr-secondary); vertical-align: middle; opacity: .7; }
.copy-btn:hover, .copy-btn:focus-visible { opacity: 1; background: var(--tblr-bg-surface-secondary); color: var(--tblr-body-color); }
.copy-btn.is-copied { opacity: 1; color: var(--tblr-green); }
.copy-note { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); padding: .15rem .45rem; border-radius: .35rem; background: var(--tblr-dark); color: #fff; font-size: .72rem; line-height: 1.3; white-space: nowrap; pointer-events: none; z-index: 5; animation: copy-note 1.4s ease forwards; }
@keyframes copy-note { 0% { opacity: 0; transform: translate(-50%, 3px); } 12%, 75% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }
/* A side panel's header with an icon (2026-11-02; the Calendar's item panel and Admin › Integrations): no rule under it
   (the picture or the facts start right below), the body's side padding so the icon lines up with what's under it, and a
   2.75rem icon tile, the height of the two lines beside it (the kind and the title). Tabler's default (1.5rem all round
   and a rule) stays for panels with a title only. */
.offcanvas-header.lp-panel-head { border-bottom: 0; padding: 1.25rem var(--tblr-offcanvas-padding-x, 1.5rem) .75rem; gap: .75rem; }
.lp-panel-icon { width: 2.75rem; height: 2.75rem; flex: none; border-radius: .6rem; display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.lp-panel-head .btn-close { align-self: flex-start; margin-top: .6rem; }
