@import '_content/Blazored.Toast/Blazored.Toast.bundle.scp.css';
@import '_content/LeafletForBlazor/LeafletForBlazor.bundle.scp.css';

/* _content/ALMS/Components/Account/Pages/ForgotPassword.razor.rz.scp.css */
/* ForgotPassword.razor only (scoped, so it ships in the fingerprinted ALMS.styles.css and can't be served stale).
   The auth card itself comes from css/components/auth-modern.css. */

/* The request code: big, monospace, easy to copy or photograph */
.auth-code[b-0b30c822cg] {
    margin: 0.25rem 0 0.5rem;
    padding: 0.875rem 1rem;
    border: 2px dashed var(--primary-300);
    border-radius: var(--radius-lg);
    background: var(--primary-50);
    color: var(--primary-900);
    font: 700 1.75rem/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: 0.15em;
    text-align: center;
    user-select: all;
}

/* Next steps */
.auth-steps[b-0b30c822cg] {
    margin: 1rem 0 1.25rem;
    padding-left: 1.25rem;
    font-size: var(--text-sm);
    line-height: 1.5;
    color: var(--foreground);
    text-align: left;
}

.auth-steps li + li[b-0b30c822cg] {
    margin-top: 0.5rem;
}

/* "Check my request" is a link drawn as the full-width primary auth button */
a.auth-btn-link[b-0b30c822cg] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-decoration: none;
}
/* _content/ALMS/Components/Account/Pages/Login.razor.rz.scp.css */
/* Login phone layout (navy band + overlapping card) now lives in css/components/auth-modern.css
   behind the .auth-phone-band modifier shared with Register. */
/* _content/ALMS/Components/Account/Pages/Manage/EnableAuthenticator.razor.rz.scp.css */
/* EnableAuthenticator.razor only: the three-step two-factor setup inside the page's <Card>.
   Desktop: QR beside the manual key. Phones: one column, "Open in authenticator app" first (you can't scan your own screen). */

.tfa-steps[b-sww76w2a0d] {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    margin: 0;
    padding: 0;
    list-style: none;
}

.tfa-step[b-sww76w2a0d] {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: var(--space-3);
}

.tfa-step + .tfa-step[b-sww76w2a0d] {
    padding-top: var(--space-5);
    border-top: 1px solid var(--neutral-100);
}

.tfa-step__num[b-sww76w2a0d] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--primary-50);
    color: var(--primary-700);
    font-weight: var(--font-semibold);
}

.tfa-step__title[b-sww76w2a0d] {
    margin: 0.25rem 0 var(--space-1);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--foreground);
}

.tfa-step__text[b-sww76w2a0d] {
    margin: 0 0 var(--space-3);
    font-size: var(--text-sm);
    color: var(--foreground-muted);
}

/* Step 1: one row per app, store buttons on the right */
.tfa-apps[b-sww76w2a0d] {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    max-width: 30rem;
}

.tfa-app[b-sww76w2a0d] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
}

.tfa-app__name[b-sww76w2a0d] {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
}

.tfa-app__links[b-sww76w2a0d] {
    display: inline-flex;
    gap: var(--space-2);
}

/* Step 2: QR | manual key */
.tfa-scan[b-sww76w2a0d] {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: var(--space-5);
}

.tfa-open[b-sww76w2a0d] {
    display: none;   /* phones only (below) */
}

.tfa-qr[b-sww76w2a0d] {
    display: block;
    padding: var(--space-2);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    background: #fff;
}

.tfa-manual__label[b-sww76w2a0d] {
    margin: 0 0 var(--space-2);
    font-size: var(--text-sm);
}

.tfa-key[b-sww76w2a0d] {
    padding: var(--space-3);
    border: 1px dashed var(--primary-300);
    border-radius: var(--radius-lg);
    background: var(--primary-50);
    color: var(--primary-900);
    font: 600 1.0625rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: 0.06em;
    word-spacing: 0.3em;
    overflow-wrap: anywhere;
    user-select: all;
}

.tfa-manual__hint[b-sww76w2a0d] {
    margin: var(--space-1) 0 var(--space-3);
    font-size: 0.8125rem;
    color: var(--foreground-muted);
}

.tfa-meta[b-sww76w2a0d] {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: var(--space-1) var(--space-3);
    margin: 0;
    font-size: 0.8125rem;
}

.tfa-meta dt[b-sww76w2a0d] {
    font-weight: var(--font-normal, 400);
    color: var(--foreground-muted);
}

.tfa-meta dd[b-sww76w2a0d] {
    margin: 0;
    overflow-wrap: anywhere;
}

/* Step 3: big code box + button on one line */
.tfa-verify[b-sww76w2a0d] {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: var(--space-2);
}

.tfa-verify[b-sww76w2a0d]  .tfa-code {
    width: 11rem;
    font: 600 1.375rem/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: 0.2em;
    text-align: center;
}

.tfa-verify[b-sww76w2a0d]  .tfa-code::placeholder {
    color: var(--neutral-300);
    letter-spacing: 0.2em;
}

/* Phones: stack; the app link comes first because you can't scan your own screen */
@media (max-width: 767.98px) {
    .tfa-step[b-sww76w2a0d] {
        grid-template-columns: 1.75rem minmax(0, 1fr);
        gap: var(--space-2);
    }

    .tfa-step__num[b-sww76w2a0d] {
        width: 1.75rem;
        height: 1.75rem;
        font-size: var(--text-sm);
    }

    .tfa-scan[b-sww76w2a0d] {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-3);
    }

    .tfa-open[b-sww76w2a0d] {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
    }

    .tfa-qr[b-sww76w2a0d] {
        width: 160px;
        height: 160px;
    }

    .tfa-app__links .btn[b-sww76w2a0d] {
        display: inline-flex;
        align-items: center;
        min-height: 40px;
    }

    .tfa-verify[b-sww76w2a0d]  .tfa-code {
        flex: 1 1 100%;
        width: 100%;
        min-height: 52px;
    }

    .tfa-verify__btn[b-sww76w2a0d] {
        flex: 1 1 100%;
        min-height: 48px;
    }
}
/* _content/ALMS/Components/Account/Pages/ResetRequest.razor.rz.scp.css */
/* ResetRequest.razor only (scoped, fingerprinted with ALMS.styles.css). */

/* The request code field: monospace capitals, like the code the person was shown */
.form-floating[b-soqgpxtrqm]  .auth-code-input {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
/* _content/ALMS/Components/Account/Shared/ManageLayout.razor.rz.scp.css */
/* Scoped to ManageLayout.razor: the same menu + content layout as System Settings. */
.account-settings[b-4gz7azl8lq] {
    display: grid;
    grid-template-columns: 14.5rem minmax(0, 1fr);
    gap: var(--space-6);
    align-items: start;
    padding: var(--space-5);
    border: 1px solid var(--neutral-100);
    border-radius: var(--radius-2xl);
    background: var(--alms-bg-light);
}

/* Profile tab strip: the global .up-tab styles are for <button>; these are links. */
.account-profile-head .up-tab[b-4gz7azl8lq] {
    display: inline-block;
    text-decoration: none;
}

.account-profile-head .up-tab:focus-visible[b-4gz7azl8lq] {
    outline: 2px solid var(--border-focus);
    outline-offset: -2px;
}

.account-settings--single[b-4gz7azl8lq] {
    grid-template-columns: minmax(0, 1fr);
}

.account-settings--single .account-settings__content[b-4gz7azl8lq] {
    width: 100%;
    max-width: 48rem;
    margin-inline: auto;
}

.account-settings__content[b-4gz7azl8lq] {
    min-width: 0;
}

@media (max-width: 991.98px) {
    .account-settings[b-4gz7azl8lq] {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-4);
        padding: var(--space-3);
    }
}

@media (max-width: 767.98px) {
    .account-settings[b-4gz7azl8lq] {
        padding: 0;
        border: 0;
        background: transparent;
    }

    /* Menu card is replaced by the profile tabs in the header; sub-pages are reached from Security rows */
    .account-settings__menu[b-4gz7azl8lq] {
        display: none;
    }

    .account-settings__content[b-4gz7azl8lq]  .form-control:not(.form-control-sm),
    .account-settings__content[b-4gz7azl8lq]  .form-select:not(.form-select-sm) {
        min-height: 50px;
        border-color: var(--neutral-300);
        border-radius: var(--radius-xl);
        padding-inline: var(--space-3);
    }

    .account-settings__content[b-4gz7azl8lq]  .form-label {
        font-weight: var(--font-semibold);
        color: var(--neutral-800);
    }

    .account-settings__content[b-4gz7azl8lq]  .btn-primary[type="submit"] {
        width: 100%;
        min-height: 50px;
        border-radius: var(--radius-xl);
    }

    .account-settings__content[b-4gz7azl8lq]  .ui-card {
        border-radius: var(--radius-xl);
        border-color: var(--neutral-200);
    }
}
/* _content/ALMS/Components/Account/Shared/ManageNavMenu.razor.rz.scp.css */
/* Scoped to ManageNavMenu.razor: matches the System Settings menu. ::deep reaches NavLink's own <a>. */
.account-nav[b-hygebi28cv] {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.account-nav[b-hygebi28cv]  .account-nav__item,
.account-nav__item[b-hygebi28cv] {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    color: var(--foreground);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    text-decoration: none;
}

.account-nav[b-hygebi28cv]  .account-nav__item:hover,
.account-nav__item:hover[b-hygebi28cv] {
    background: var(--background-subtle);
}

.account-nav[b-hygebi28cv]  .account-nav__item:focus-visible,
.account-nav__item:focus-visible[b-hygebi28cv] {
    outline: 2px solid var(--border-focus);
    outline-offset: -2px;
}

.account-nav[b-hygebi28cv]  .account-nav__item.is-active {
    border-color: var(--primary-100);
    background: var(--primary-50);
    color: var(--primary-800);
    font-weight: var(--font-bold);
}
/* _content/ALMS/Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-ancjkqkszd] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-ancjkqkszd] {
    flex: 1;
}

article.content[b-ancjkqkszd] {
    padding: 1.5rem 2rem;
}

/* Phones (< 768px): the sidebar's pieces become the app bar, More sheet and tab bar
   (NavMenu + mobile-shell.css). display: contents lets the app bar stick to the page
   and keeps the fixed sheet / tab bar out of the sidebar's stacking context. */
@media (max-width: 767.98px) {
    .sidebar[b-ancjkqkszd] {
        display: contents;
    }

    main[b-ancjkqkszd] {
        background: var(--neutral-50);
        min-height: 100vh;
    }

    article.content[b-ancjkqkszd] {
        padding: 0 var(--mobile-gutter) var(--space-4);   /* PageHeader sits flush at the top and bleeds the side padding */
        /* + room for the tab bar when it is shown: mobile-shell.css (.page:has(.mobile-tabbar)) */
    }
}

.sidebar[b-ancjkqkszd] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-ancjkqkszd] {
    background-color: var(--neutral-50);
    border-bottom: 1px solid var(--neutral-200);
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.top-row[b-ancjkqkszd]  a {
    white-space: nowrap;
    margin-left: 1.5rem;
    text-decoration: none;
}

.top-row[b-ancjkqkszd]  a:hover {
    text-decoration: underline;
}

.top-row[b-ancjkqkszd]  a:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 767.98px) {
.top-row[b-ancjkqkszd] {
        justify-content: space-between;
    }

    .top-row[b-ancjkqkszd]  a {
        margin-left: 0;
    }
}

@media (min-width: 768px) {
.page[b-ancjkqkszd] {
        flex-direction: row;
    }

    .sidebar[b-ancjkqkszd] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
        /* hairline between the white menu and the page */
        border-right: 1px solid var(--neutral-200);
    }

    .top-row[b-ancjkqkszd] {
        position: sticky;
        top: 0;
        z-index: var(--z-raised);
    }

    .top-row[b-ancjkqkszd] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

/* Tablet (768-1199.98px): the sidebar can be hidden to a 56px rail (JS/navToggle.js sets html[data-nav-hidden],
   saved in localStorage 'alms.navHidden'). The rail stays in flow so nothing overlaps the page. */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .sidebar[b-ancjkqkszd] {
        flex: 0 0 auto;
        overflow: hidden;
        transition: width 0.18s ease;
    }

    html[data-nav-hidden] .sidebar[b-ancjkqkszd] {
        width: 56px;
    }

    main[b-ancjkqkszd] {
        min-width: 0;   /* content takes the freed width instead of overflowing */
    }
}

@media (prefers-reduced-motion: reduce) {
    .sidebar[b-ancjkqkszd] {
        transition: none;
    }
}

#blazor-error-ui[b-ancjkqkszd] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: var(--z-dropdown);
}

#blazor-error-ui .dismiss[b-ancjkqkszd] {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

@font-face {
    font-family: 'Outfit-SemiBold';
    src: url('/fonts/Outfit-SemiBold.ttf') format('truetype');
    font-weight: normal;
}

@font-face {
    font-family: 'Outfit-Regular';
    src: url('/fonts/Outfit-Regular.ttf') format('truetype');
    font-weight: normal;
}

h2[b-ancjkqkszd] {
    font-family: 'Outfit-SemiBold', sans-serif;
}

label[b-ancjkqkszd] {
    font-family: 'Outfit-Regular', sans-serif;
}

/* 🟦 Toast Positioning */
/* 🟨 Navbar Padding Top (so content won't hide behind fixed navbar) */
/* 🟥 Navbar Styles */
/* 🟩 Navbar Links */
/* Animated dropdown reveal */
/* 🟫 Dropdown Hover Effect */
/* 🟧 Content Margin Adjustment */
/* Optional dropdown animation without breaking functionality */
/* _content/ALMS/Components/Layout/NavMenu.razor.rz.scp.css */
/* Sidebar look (brand row, links, section headers, spacing) lives in wwwroot/css/components/navmenu.css.
   The old template rules that were here (3rem rows, 1rem top/bottom padding on every first/last .nav-item,
   white-on-dark link colours) are gone: every link sits in its own wrapper, so each got the extra 2rem. */
.nav-item[b-srjuo1grdl] {
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .nav-scrollable[b-srjuo1grdl] {
        /* Never collapse the sidebar for wide screens */ display: block;
        /* Allow sidebar to scroll for tall menus */ height: calc(100vh - var(--nav-brand-h));
        overflow-y: auto;
    }
}

/* Phones (< 768px): no app bar; PageHeader is the phone header (page-header.css). The More sheet and
   tab bar (.nav-scrollable--sheet, MobileTabBar) are styled in wwwroot/css/components/mobile-shell.css. */
@media (max-width: 767.98px) {
    .top-row[b-srjuo1grdl] {
        display: none;
    }

    /* More sheet rows: spacing comes from mobile-shell.css */
    .nav-item[b-srjuo1grdl],
    .nav-item:first-of-type[b-srjuo1grdl],
    .nav-item:last-of-type[b-srjuo1grdl] {
        padding: 0;
    }

    .top-row .nav-brand-container[b-srjuo1grdl] {
        width: auto;
        flex: 0 0 auto;
        padding: 0 var(--space-2);
    }
}

/* User Profile Section */
.user-profile-container[b-srjuo1grdl] {
    margin-top: 2rem;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
}

.user-profile-card[b-srjuo1grdl] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.user-avatar-placeholder[b-srjuo1grdl] {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: #1e3a5f;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.user-profile-info[b-srjuo1grdl] {
    flex: 1;
    min-width: 0;
}

.user-profile-name[b-srjuo1grdl] {
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-profile-roles[b-srjuo1grdl] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.role-badge[b-srjuo1grdl] {
    font-size: 0.65rem;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-badge-root[b-srjuo1grdl] {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.role-badge-teller[b-srjuo1grdl] {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    color: #1a202c;
}

.role-badge-watcher[b-srjuo1grdl] {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #1a202c;
}

.user-nav-link[b-srjuo1grdl] {
    font-size: 0.9rem;
}

/* Tablet sidebar toggle (768-1199.98px). Hidden everywhere else: desktop keeps the sidebar, phones use the tab bar. */
.nav-toggle[b-srjuo1grdl] {
    display: none;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin-right: 0;
    padding: 0;
    border: 0;
    border-radius: var(--radius-md);
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.nav-toggle:hover[b-srjuo1grdl] {
    background: rgba(255, 255, 255, 0.15);
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .nav-toggle--hide[b-srjuo1grdl] {
        display: inline-flex;
    }

    html[data-nav-hidden] .nav-toggle--hide[b-srjuo1grdl] {
        display: none;
    }

    html[data-nav-hidden] .nav-toggle--show[b-srjuo1grdl] {
        display: inline-flex;
    }

    /* Collapsed rail: only the Show button. visibility:hidden also takes the links out of the tab order. */
    html[data-nav-hidden] .nav-scrollable[b-srjuo1grdl],
    html[data-nav-hidden] .nav-brand-container[b-srjuo1grdl],
    html[data-nav-hidden] .mobile-appbar__who[b-srjuo1grdl] {
        visibility: hidden;
    }

    html[data-nav-hidden] .nav-brand-container[b-srjuo1grdl] {
        display: none;
    }

    html[data-nav-hidden] .top-row[b-srjuo1grdl] {
        justify-content: center;
        padding-inline: 0;
    }

    html[data-nav-hidden] .nav-toggle[b-srjuo1grdl] {
        margin-right: 0;
    }
}
/* _content/ALMS/Components/Pages/AbanteBirthdays.razor.rz.scp.css */
/* Scoped to AbanteBirthdays.razor (Blazor CSS isolation). Moved from the page's <style> block. */

/* Animations */
@keyframes fadeIn-b-p8q4fh0b3a {
    from {
    opacity: 0;
    transform: translateY(10px);
    }
    to {
    opacity: 1;
    transform: translateY(0);
    }
}

@keyframes slideDown-b-p8q4fh0b3a {
    from {
    opacity: 0;
    transform: translateY(-10px);
    }
    to {
    opacity: 1;
    transform: translateY(0);
    }
}

@keyframes scaleIn-b-p8q4fh0b3a {
    from {
    opacity: 0;
    transform: scale(0.95);
    }
    to {
    opacity: 1;
    transform: scale(1);
    }
}

@keyframes pulse-b-p8q4fh0b3a {
    0%, 100% {
    transform: scale(1);
    }
    50% {
    transform: scale(1.05);
    }
}

@keyframes badgeGradientPulse-b-p8q4fh0b3a {
    0%, 100% {
    background-position: 0% 50%;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(245, 87, 108, 0.55);
    }
    50% {
    background-position: 100% 50%;
    transform: scale(1.15);
    box-shadow: 0 0 0 6px rgba(245, 87, 108, 0);
    }
}

/* Layout Components */
.leader-map-card[b-p8q4fh0b3a] {
    flex: 1 1 100%;
    min-width: 320px;
    animation: fadeIn-b-p8q4fh0b3a 0.5s ease-out;
}

.tab-content[b-p8q4fh0b3a] {
    margin-top: 1.5rem;
}

.calendar-list-row[b-p8q4fh0b3a] {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
    gap: 1.5rem;
}

.calendar-card[b-p8q4fh0b3a] {
    flex: 1 1 45%;
    min-width: 320px;
    height: 660px;
    transition: all 0.3s ease;
    animation: fadeIn-b-p8q4fh0b3a 0.4s ease-out;
}

.calendar-card:hover[b-p8q4fh0b3a] {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.birthday-list-card[b-p8q4fh0b3a] {
    flex: 1 1 50%;
    min-width: 320px;
    height: 660px;
    animation: fadeIn-b-p8q4fh0b3a 0.5s ease-out;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.birthday-list-card .card-body[b-p8q4fh0b3a] {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

/* Panel Headers (unified: Calendar / Birthday List / Locations / Chart) */
.panel-header[b-p8q4fh0b3a] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--alms-navy);
    color: #fff;
}

/* Person Profile Card */
.leader-profile-card[b-p8q4fh0b3a] {
    background: var(--alms-bg-light);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    gap: 1rem;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    animation: scaleIn-b-p8q4fh0b3a 0.3s ease-out;
}

.leader-profile-card:hover[b-p8q4fh0b3a] {
    border-color: var(--primary-600);
    box-shadow: 0 4px 16px rgba(var(--primary-rgb),0.15);
}

.leader-avatar[b-p8q4fh0b3a] {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    flex-shrink: 0;
    background: var(--alms-stat-indigo);
}

.leader-avatar-placeholder[b-p8q4fh0b3a] {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: var(--alms-stat-indigo);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    border: 3px solid #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    flex-shrink: 0;
}

.leader-info[b-p8q4fh0b3a] {
    flex: 1;
    min-width: 0;
}

.leader-name[b-p8q4fh0b3a] {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--birthday-ink);
    margin-bottom: 0.25rem;
}

.leader-age-badge[b-p8q4fh0b3a] {
    display: inline-block;
    background: var(--birthday-pink);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

.leader-contact[b-p8q4fh0b3a] {
    color: var(--alms-text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.leader-badges[b-p8q4fh0b3a] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.location-badge[b-p8q4fh0b3a] {
    background: var(--birthday-teal);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.status-badge[b-p8q4fh0b3a] {
    background: var(--birthday-teal-bg);
    color: var(--birthday-ink);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.type-badge-leader[b-p8q4fh0b3a] {
    background: var(--accent-blue-bg);
    color: var(--blue-800);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.type-badge-honoree[b-p8q4fh0b3a] {
    background: var(--accent-violet-bg);
    color: var(--birthday-violet-800);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.type-badge-both[b-p8q4fh0b3a] {
    background: linear-gradient(135deg, var(--accent-blue-bg) 0%, var(--accent-violet-bg) 100%);
    color: var(--service-indigo-fg);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.duplicate-warning-box[b-p8q4fh0b3a] {
    background: var(--birthday-warn-bg);
    border: 1px solid var(--birthday-warn-border);
    border-radius: 8px;
    padding: 0.75rem;
    margin-top: 0.5rem;
}

.cake-badge-special[b-p8q4fh0b3a] {
    background: linear-gradient(135deg, var(--birthday-gold) 0%, var(--birthday-gold-deep) 100%);
    color: var(--birthday-gold-ink);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.cake-badge-regular[b-p8q4fh0b3a] {
    background: var(--birthday-regular-bg);
    color: var(--alms-text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Calendar Styling */
.calendar-highlight[b-p8q4fh0b3a] {
    border: 2.5px solid transparent !important;
    background: var(--accent-violet-bg) !important;
    box-shadow: inset 0 0 0 2.5px var(--accent-violet), 0 0 0 3px rgba(124, 58, 237, 0.2);
    position: relative;
    animation: pulse-b-p8q4fh0b3a 1.5s ease-in-out infinite;
}

.calendar-cell[b-p8q4fh0b3a] {
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    background: #fff;
    height: 70px;
}

.calendar-today-dot[b-p8q4fh0b3a] {
    position: absolute;
    top: 7px;
    left: 7px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-600);
    z-index: var(--z-raised);
}

.calendar-cell:hover[b-p8q4fh0b3a] {
    background-color: var(--alms-bg-light) !important;
}

.calendar-day-number[b-p8q4fh0b3a] {
    position: absolute;
    bottom: 6px;
    left: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--alms-text-secondary);
    line-height: 1;
}

.calendar-badge[b-p8q4fh0b3a] {
    position: absolute;
    top: 6px;
    right: 6px;
    animation: scaleIn-b-p8q4fh0b3a 0.3s ease-out;
    z-index: 2;
}

.calendar-badge-today[b-p8q4fh0b3a] {
    background: linear-gradient(135deg, var(--birthday-grad-pink) 0%, var(--birthday-grad-coral) 55%, var(--birthday-grad-orange) 100%);
    background-size: 200% 200%;
    color: #fff;
    animation: scaleIn-b-p8q4fh0b3a 0.3s ease-out, badgeGradientPulse-b-p8q4fh0b3a 2.4s ease-in-out infinite;
}

.calendar-badge-done[b-p8q4fh0b3a] {
    background: var(--bs-gray-400);
    color: var(--alms-text-secondary);
}

/* Search Autocomplete */
.search-container[b-p8q4fh0b3a] {
    position: relative;
    animation: slideDown-b-p8q4fh0b3a 0.3s ease-out;
}

.leader-search-box[b-p8q4fh0b3a] {
    max-width: 600px;
}

.search-suggestions[b-p8q4fh0b3a] {
    position: absolute;
    z-index: var(--z-dropdown);
    width: 100%;
    max-height: 400px;
    overflow-y: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    margin-top: 0.5rem;
    animation: slideDown-b-p8q4fh0b3a 0.2s ease-out;
}

.search-suggestion-item[b-p8q4fh0b3a] {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--neutral-100);
}

.search-suggestion-item:hover[b-p8q4fh0b3a] {
    background: var(--primary-50);
}

.search-avatar[b-p8q4fh0b3a] {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.search-avatar-placeholder[b-p8q4fh0b3a] {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    background: var(--alms-stat-indigo);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

/* Map Button */
/* Scrollbar Styling */
.birthday-list-card .card-body[b-p8q4fh0b3a]::-webkit-scrollbar {
    width: 8px;
}

.birthday-list-card .card-body[b-p8q4fh0b3a]::-webkit-scrollbar-track {
    background: var(--neutral-100);
    border-radius: 10px;
}

.birthday-list-card .card-body[b-p8q4fh0b3a]::-webkit-scrollbar-thumb {
    background: var(--primary-600);
    border-radius: 10px;
}

.birthday-list-card .card-body[b-p8q4fh0b3a]::-webkit-scrollbar-thumb:hover {
    background: var(--primary-700);
}

/* Empty State */
.empty-state[b-p8q4fh0b3a] {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--alms-text-muted);
}

/* Manage Honorees modal */
/* Responsive */
@media (max-width: 768px) {
.calendar-card[b-p8q4fh0b3a],
    .birthday-list-card[b-p8q4fh0b3a] {
        flex: 1 1 100%;
    }

    .leader-avatar[b-p8q4fh0b3a],
    .leader-avatar-placeholder[b-p8q4fh0b3a] {
        width: 60px;
        height: 60px;
    }

    .leader-profile-card[b-p8q4fh0b3a] {
        flex-direction: column;
        text-align: center;
    }
}

/* Static styles that used to be inline style="" attributes (all widths) */
.alert-icon[b-p8q4fh0b3a]  .ab-archive-icon { font-size: 1.2rem; }

.ab-search-info[b-p8q4fh0b3a] { min-width: 0; }
.ab-body-md[b-p8q4fh0b3a] { padding: 1.5rem; }
.ab-body-lg[b-p8q4fh0b3a] { padding: 2rem; }

.calendar-card .ab-month-input[b-p8q4fh0b3a] {
    border: 2px solid var(--neutral-100);
    padding: 0.75rem;
}

.ab-panel-head[b-p8q4fh0b3a] { border-bottom: 2px solid var(--neutral-100); }
.ab-count-badge[b-p8q4fh0b3a] { padding: 0.5rem 1rem; }
.ab-map-body[b-p8q4fh0b3a] { border-radius: 0 0 8px 8px; }
.ab-map-loading[b-p8q4fh0b3a] { height: 450px; }

.ab-map-spinner[b-p8q4fh0b3a] {
    width: 3.5rem;
    height: 3.5rem;
    border-width: 0.3em;
}

.ab-map-loading__text[b-p8q4fh0b3a] { font-size: 1.1rem; }
.panel-header.ab-panel-indigo[b-p8q4fh0b3a] { background: var(--alms-stat-indigo); }
.ab-dup-line[b-p8q4fh0b3a] { border-top: 1px solid var(--birthday-warn-line); }

/* Opacity-only fade (the inline version resolved to the global fadeIn in roles.css) */
@keyframes abFadeOpacity-b-p8q4fh0b3a {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ab-chart-card[b-p8q4fh0b3a] { animation: abFadeOpacity-b-p8q4fh0b3a 0.6s ease-out; }

/* Moved from the global app.css (page-only rules). */

.search-input.has-clear[b-p8q4fh0b3a] {
    padding-right: 2.25rem;
}

.search-clear[b-p8q4fh0b3a] {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
    color: var(--bs-gray-500);
    transition: color 0.2s;
}

.search-clear:hover[b-p8q4fh0b3a] {
    color: var(--danger-600);
}

.search-container[b-p8q4fh0b3a] {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-container i[b-p8q4fh0b3a] {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--alms-text-muted);
}

.search-container input[b-p8q4fh0b3a] {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.search-container input:focus[b-p8q4fh0b3a] {
    outline: none;
    border-color: var(--primary-600);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

/* ── Phone layout (< 768px) · board DOCS/MOBILE_DESIGN/Birthdays.html ──────────────
   Page tabs → .ui-chip-row (markup), stat tiles → .ui-stat-strip, month grid → week strip, panels stack at
   natural height, birthday people as compact rows, honorees table → .ui-table--stack-sm. */
@media (max-width: 767.98px) {
    .tab-content[b-p8q4fh0b3a] {
        margin-top: var(--space-2);
    }

    .search-container input[b-p8q4fh0b3a] {
        font-size: 16px;
        min-height: 44px;
    }

    .calendar-list-row[b-p8q4fh0b3a] {
        gap: var(--space-4);
    }

    .birthday-list-card[b-p8q4fh0b3a],
    .leader-map-card[b-p8q4fh0b3a] {
        min-width: 0;
        height: auto;
    }

    /* Week strip lives in the PageHeader Below area (dark header): dots mark days with birthdays */
    .bday-week[b-p8q4fh0b3a] {
        margin-top: var(--space-2);
        color: #fff;
    }

    .bday-week__nav[b-p8q4fh0b3a] {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .bday-week__head[b-p8q4fh0b3a] {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-width: 0;
    }

    .bday-week__arrow[b-p8q4fh0b3a] {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border: none;
        border-radius: var(--radius-full);
        background: transparent;
        color: inherit;
    }

    .bday-week__arrow:focus-visible[b-p8q4fh0b3a],
    .bday-week__day:focus-visible[b-p8q4fh0b3a] {
        outline: 2px solid var(--warning-300);
        outline-offset: 2px;
    }

    .bday-week__range[b-p8q4fh0b3a] {
        font-size: var(--text-sm);
    }

    .bday-week__summary[b-p8q4fh0b3a] {
        color: var(--primary-100);
        font-size: var(--text-xs);
    }

    .bday-week__days[b-p8q4fh0b3a] {
        display: grid;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: var(--space-1);
    }

    .bday-week__day[b-p8q4fh0b3a] {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--space-1);
        min-height: 60px;
        padding: 0;
        border: none;
        border-radius: var(--radius-xl);
        background: transparent;
        color: inherit;
        font-family: inherit;
    }

    .bday-week__day small[b-p8q4fh0b3a] {
        color: var(--primary-100);
        font-size: var(--text-xs);
        font-weight: var(--font-semibold);
    }

    .bday-week__day b[b-p8q4fh0b3a] {
        font-size: var(--text-lg);
        line-height: 1;
    }

    .bday-week__dot[b-p8q4fh0b3a] {
        width: 6px;
        height: 6px;
        border-radius: var(--radius-full);
        background: transparent;
    }

    .bday-week__dot.has-birthdays[b-p8q4fh0b3a] {
        background: var(--warning-300);
    }

    .bday-week__day.is-active[b-p8q4fh0b3a] {
        background: #fff;
        color: var(--primary-900);
    }

    .bday-week__day.is-active small[b-p8q4fh0b3a] {
        color: var(--primary-900);
    }

    .bday-week__day.is-active .bday-week__dot.has-birthdays[b-p8q4fh0b3a] {
        background: var(--primary-600);
    }

    /* Birthday people: slim list-card rows (40px initials avatar, at most 2 soft tags) */
    .birthday-list-card > .card-body[b-p8q4fh0b3a] {
        padding: 0 !important;
    }

    .birthday-list-card > .card-body > .d-flex[b-p8q4fh0b3a] {
        padding: var(--space-3) var(--space-4);
        margin-bottom: 0 !important;
    }

    .leader-profile-card[b-p8q4fh0b3a] {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: var(--space-3);
        padding: var(--space-3) var(--space-4);
        margin-bottom: 0;
        border: 0;
        border-bottom: 1px solid var(--neutral-100);
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        text-align: left;
        animation: none;
    }

    .leader-profile-card:last-child[b-p8q4fh0b3a] {
        border-bottom: 0;
    }

    .leader-avatar[b-p8q4fh0b3a],
    .leader-avatar-placeholder[b-p8q4fh0b3a] {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
        animation: none;
    }

    .leader-info[b-p8q4fh0b3a] {
        flex: 1 1 0;
        min-width: 0;
    }

    .bday-person__meta[b-p8q4fh0b3a] {
        margin-bottom: var(--space-1) !important;
    }

    .bday-person__where[b-p8q4fh0b3a] {
        color: var(--neutral-600);
        font-size: var(--text-sm);
    }

    .leader-profile-card .btn[b-p8q4fh0b3a] {
        min-height: 44px;
    }

    /* Directions stays, but as a quiet text link under the row */
    .map-direction-btn[b-p8q4fh0b3a] {
        flex: 1 1 100%;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: var(--space-2);
        padding: 0 0 0 calc(40px + var(--space-3));
        border: 0;
        background: transparent;
        color: var(--primary-700);
        font-weight: var(--font-semibold);
        box-shadow: none;
    }

    .honoree-actions .btn[b-p8q4fh0b3a] {
        min-width: 44px;
        min-height: 44px;
    }
}

/* ── Phone redesign: compact person cards, month bar list, honorees header (< 768px) ── */
@media (max-width: 767.98px) {
    .ab-day[b-p8q4fh0b3a] {
        flex: 1 1 100%;
    }

    .ab-day__head[b-p8q4fh0b3a] {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-2);
        margin-bottom: var(--space-2);
    }

    .ab-day__title[b-p8q4fh0b3a],
    .ab-card__title[b-p8q4fh0b3a] {
        margin: 0;
        font-size: var(--text-base);
        font-weight: var(--font-bold);
        color: var(--neutral-900);
    }

    .ab-count[b-p8q4fh0b3a] {
        padding: 2px var(--space-3);
        border-radius: var(--radius-full);
        background: var(--neutral-100);
        color: var(--neutral-600);
        font-size: var(--text-xs);
        font-weight: var(--font-semibold);
        white-space: nowrap;
    }

    .ab-list[b-p8q4fh0b3a] {
        display: flex;
        flex-direction: column;
        gap: var(--space-2);
    }

    .ab-list--flush[b-p8q4fh0b3a] {
        padding: var(--space-2);
    }

    /* Avatar | name, meta, chips — the action buttons get their own row underneath (one line, right-aligned),
       so the name keeps the full width instead of wrapping beside a stack of icons. */
    .ab-person[b-p8q4fh0b3a] {
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr);
        align-items: start;
        column-gap: var(--space-3);
        row-gap: var(--space-2);
        padding: var(--space-3);
        border: 1px solid var(--neutral-200);
        border-radius: var(--radius-xl);
        background: var(--card-background, var(--neutral-0, transparent));
    }

    .ab-person.is-inactive[b-p8q4fh0b3a] {
        opacity: 0.7;
    }

    .ab-avatar[b-p8q4fh0b3a] {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        border-radius: var(--radius-full);
        background: var(--primary-100);
        color: var(--primary-800);
        font-size: var(--text-sm);
        font-weight: var(--font-bold);
        object-fit: cover;
    }

    .ab-person__body[b-p8q4fh0b3a] {
        flex: 1 1 0;
        min-width: 0;
    }

    .ab-person__name[b-p8q4fh0b3a] {
        font-weight: var(--font-bold);
        color: var(--neutral-900);
        overflow-wrap: anywhere;
    }

    .ab-person__meta[b-p8q4fh0b3a] {
        margin-top: 2px;
        color: var(--neutral-600);
        font-size: var(--text-xs);
    }

    .ab-person__chips[b-p8q4fh0b3a] {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-1);
        margin-top: var(--space-1);
    }

    .ab-person__chips:empty[b-p8q4fh0b3a] {
        display: none;
    }

    .ab-chip[b-p8q4fh0b3a] {
        padding: 2px var(--space-2);
        border-radius: var(--radius-full);
        font-size: var(--text-xs);
        font-weight: var(--font-semibold);
        line-height: 1.4;
    }

    .ab-chip.cake-badge-regular[b-p8q4fh0b3a] {
        background: var(--neutral-100);
        color: var(--neutral-700);
    }

    .ab-chip.cake-badge-special[b-p8q4fh0b3a] {
        background: var(--warning-100);
        color: var(--warning-900);
    }

    .ab-chip--tag[b-p8q4fh0b3a] {
        background: var(--primary-50);
        color: var(--primary-800);
    }

    .ab-chip--off[b-p8q4fh0b3a] {
        background: var(--neutral-200);
        color: var(--neutral-700);
    }

    /* Icon buttons; a third button wraps to a second row */
    .ab-person__actions[b-p8q4fh0b3a] {
        grid-column: 1 / -1;
        display: flex;
        justify-content: flex-end;
        gap: var(--space-2);
        padding-top: var(--space-2);
        border-top: 1px solid var(--neutral-100);
    }

    .ab-person__actions:empty[b-p8q4fh0b3a] {
        display: none;
    }

    /* Statistics: month bar list */
    .ab-card[b-p8q4fh0b3a] {
        margin-top: var(--space-3);
    }

    .ab-card__title[b-p8q4fh0b3a] {
        margin-bottom: var(--space-2);
    }

    .ab-bar-row[b-p8q4fh0b3a] {
        display: grid;
        grid-template-columns: 2.5rem minmax(0, 1fr) 2.5rem;
        align-items: center;
        gap: var(--space-2);
        min-height: 32px;
        font-size: var(--text-sm);
    }

    .ab-bar-track[b-p8q4fh0b3a] {
        display: block;
        height: 8px;
        overflow: hidden;
        border-radius: var(--radius-full);
        background: var(--neutral-100);
    }

    .ab-bar-fill[b-p8q4fh0b3a] {
        display: block;
        height: 100%;
        border-radius: var(--radius-full);
        background: var(--primary-300);
    }

    .ab-bar-val[b-p8q4fh0b3a] {
        text-align: right;
        font-variant-numeric: tabular-nums;
    }

    .ab-bar-row.is-current .ab-bar-name[b-p8q4fh0b3a],
    .ab-bar-row.is-current .ab-bar-val[b-p8q4fh0b3a] {
        font-weight: var(--font-bold);
    }

    .ab-bar-row.is-current .ab-bar-fill[b-p8q4fh0b3a] {
        background: var(--primary-700);
    }

    /* Honorees: TableCard header carries title + count + Add */
    .ab-add-btn[b-p8q4fh0b3a] {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: var(--space-1);
        min-height: 44px;
    }

    .ab-hon__empty[b-p8q4fh0b3a] {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: var(--space-3);
        padding: var(--space-4) var(--space-3);
    }
}


/* ── Delivered proof (Delivery Photos) ── */
.bday-delivered[b-p8q4fh0b3a] {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 2px var(--space-3);
    border-radius: var(--radius-full);
    background: var(--success-100);
    color: var(--success-900);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    white-space: nowrap;
}

.bday-delivered-count[b-p8q4fh0b3a] {
    color: var(--success-700);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
}

@media (max-width: 767.98px) {
    .ab-chip--delivered[b-p8q4fh0b3a] {
        display: inline-flex;
        align-items: center;
        gap: var(--space-1);
        background: var(--success-100);
        color: var(--success-900);
    }

    .ab-count--delivered[b-p8q4fh0b3a] {
        background: var(--success-100);
        color: var(--success-900);
    }
}
/* _content/ALMS/Components/Pages/AddEndorser.razor.rz.scp.css */
/* Scoped to AddEndorser.razor (Blazor CSS isolation). */

/* From 768px the modal's name / leader suggestions stay a floating dropdown
   (were the Bootstrap utilities .position-absolute .shadow, which phones can't override) */
.ae-suggestions[b-swrvbpe1xm] {
    position: absolute;
}

@media (min-width: 768px) {
    .ae-suggestions[b-swrvbpe1xm] {
        box-shadow: var(--bs-box-shadow);
    }
}

/* ── Phones (below 768px) — DOCS/MOBILE_DESIGN/Endorsers.html.
   Endorsers as .ui-table--stack-sm cards (shared), sort chips under the search,
   Add endorser pinned above the tab bar, add / edit in the AppModal bottom sheet.
   In the sheet the suggestions flow under the field as 44px cards. Desktop is unchanged. ── */
@media (max-width: 767.98px) {
    .ae-suggestions[b-swrvbpe1xm] {
        position: static;
        max-height: none;
    }

    .ae-suggestions > .list-group-item[b-swrvbpe1xm] {
        min-height: 44px;
        padding: var(--space-3) var(--space-4);
        border: 1px solid var(--neutral-200);
        border-radius: var(--radius-xl);
    }

    .ae-suggestions > .list-group-item + .list-group-item[b-swrvbpe1xm] {
        margin-top: var(--space-2);
        border-top-width: 1px;
    }

    .ui-stack-actions .btn-sm[b-swrvbpe1xm] {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Phones: the floating pager pill sits above the pinned Add endorser bar */
@media (max-width: 767.98px) {
    .ae-page[b-swrvbpe1xm] {
        --ui-mpager-float-bottom: calc(var(--mobile-bottom-offset) + 5rem);
    }
}

/* Phones: list-card rows (ui-table--list-sm) with the board's 44px avatar */
@media (max-width: 767.98px) {
    .ui-avatar-initials[b-swrvbpe1xm] {
        width: 44px;
        height: 44px;
        background: var(--primary-50);
        color: var(--primary-900);
        font-size: var(--text-sm);
        font-weight: var(--font-bold);
    }

    .ui-person__name[b-swrvbpe1xm] {
        font-size: var(--text-base);
        font-weight: var(--font-bold);
    }

    .ui-person__sub[b-swrvbpe1xm] {
        font-size: var(--text-sm);
        color: var(--neutral-600);
    }
}
/* _content/ALMS/Components/Pages/AddLeaders.razor.rz.scp.css */
/* Scoped to AddLeaders.razor (Blazor CSS isolation). Moved from the page's <style> block. */

/* Electoral Page Template Styles */
.section-title[b-n1dip5n3in] {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--alms-text-heading);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Voter Suggestion Styles */
.voter-suggestion-item[b-n1dip5n3in] {
    cursor: pointer;
    transition: all 0.2s ease;
}

.voter-suggestion-item:hover[b-n1dip5n3in] {
    background-color: var(--alms-bg-light);
}

.voter-suggestion-item.active[b-n1dip5n3in] {
    background-color: var(--primary-600);
    color: white;
}

.voter-suggestion-item.active .text-muted[b-n1dip5n3in] {
    color: rgba(255, 255, 255, 0.7) !important;
}

.voter-suggestion-occupied[b-n1dip5n3in] {
    opacity: 0.7;
    border-left: 3px solid var(--warning-500) !important;
}

.voter-suggestion-occupied.voter-suggestion-item:hover[b-n1dip5n3in] {
    background-color: #fff8e1;
}

/* Validation styling */
.form-control.is-invalid[b-n1dip5n3in],
.form-select.is-invalid[b-n1dip5n3in] {
    border-color: var(--danger-600) !important;
    border-width: 2px !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.invalid-feedback[b-n1dip5n3in] {
    color: var(--danger-600);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.invalid-feedback.d-block[b-n1dip5n3in] {
    display: block !important;
}

/* Voter suggestions: a dropdown over the form. Its box (was the Bootstrap utilities
   .position-absolute .shadow-sm .bg-white .rounded .border .scroll-280) applies from 768px. */
.al-suggestions[b-n1dip5n3in] {
    position: absolute;
}

/* Photo column divider (was .border-end) — from 768px only, the column stacks on phones */
@media (min-width: 768px) {
    .al-suggestions[b-n1dip5n3in] {
        max-height: 280px;
        overflow-y: auto;
        border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
        border-radius: var(--bs-border-radius);
        background-color: #fff;
        box-shadow: var(--bs-box-shadow-sm);
    }

    .al-photo-col[b-n1dip5n3in] {
        border-right: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
    }
}

/* ── Phones (below 768px) — DOCS/MOBILE_DESIGN/AddLeader.html. Registration is 2 steps with no
   fingerprint step (the enrollment prompt is skipped in code, AddLeaders.razor.cs → isPhone):
   "Step x of 2" header, fields full width, voter results flow under the search as cards,
   photo below the fields, Save pinned above the tab bar. Desktop is unchanged. ── */
@media (max-width: 767.98px) {
    .al-step[b-n1dip5n3in] {
        margin-bottom: var(--space-2);
        color: var(--neutral-600);
        font-size: var(--text-xs);
        font-weight: var(--font-semibold);
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .al-suggestions[b-n1dip5n3in] {
        position: static;
    }

    .al-suggestions > .list-group-item[b-n1dip5n3in] {
        min-height: 44px;
        padding: var(--space-3) var(--space-4);
        border: 1px solid var(--neutral-200);
        border-radius: var(--radius-xl);
    }

    .al-suggestions > .list-group-item + .list-group-item[b-n1dip5n3in] {
        margin-top: var(--space-2);
        border-top-width: 1px;
    }

    /* Status select on its own line, then "+" and Pick Location side by side */
    .al-status-group[b-n1dip5n3in] {
        flex-wrap: wrap;
        gap: var(--space-2);
    }

    .al-status-group > .form-select[b-n1dip5n3in] {
        flex: 1 1 100%;
        border-radius: var(--bs-border-radius);
    }

    .al-status-group > .btn[b-n1dip5n3in] {
        flex: 1 1 auto;
        border-radius: var(--bs-border-radius);
    }

    .al-photo-col[b-n1dip5n3in] {
        padding-top: var(--space-4);
        border-top: 1px solid var(--neutral-200);
    }

    .camera-placeholder[b-n1dip5n3in],
    .al-photo[b-n1dip5n3in] {
        width: 100%;
        max-width: 320px;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .cam-btn[b-n1dip5n3in] {
        min-width: 44px;
        min-height: 44px;
    }

    .camera-modal-content video[b-n1dip5n3in] {
        max-width: 100%;
        height: auto;
    }

    /* The card clips its children; visible lets the Register bar pin to the viewport (bug B2) */
    .al-card[b-n1dip5n3in] {
        overflow: visible;
    }

    /* Inside the padded card: no bleed. The card must not clip, or the
       sticky Register bar can't pin above the tab bar (base.css gives
       .card-standard overflow:hidden). */
    .al-save[b-n1dip5n3in] {
        --ui-sticky-action-bleed: 0;
    }

    .al-save .btn[b-n1dip5n3in] {
        min-height: 52px;
        border-radius: var(--radius-xl);
        font-size: var(--text-base);
        font-weight: var(--font-bold);
    }

    /* Step 2 fields: 50px, labels above */
    .al-card .form-label[b-n1dip5n3in] {
        margin-bottom: var(--space-1);
        font-size: var(--text-sm);
        font-weight: var(--font-semibold) !important;
    }

    .al-card .form-control[b-n1dip5n3in],
    .al-card .form-select[b-n1dip5n3in] {
        min-height: 50px;
        border-radius: var(--radius-xl);
    }

    /* Voter summary card with Change */
    .al-summary[b-n1dip5n3in] {
        margin-bottom: var(--space-4);
        padding: var(--space-3) var(--space-4);
        border: 1px solid var(--neutral-300);
        border-radius: var(--radius-xl);
        background: #fff;
    }

    .al-summary__head[b-n1dip5n3in] {
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: var(--neutral-600);
        font-size: var(--text-xs);
        font-weight: var(--font-bold);
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .al-summary__change[b-n1dip5n3in] {
        min-height: 44px;
        padding: 0 var(--space-2);
        border: 0;
        background: none;
        color: var(--primary-700);
        font-size: var(--text-sm);
        font-weight: var(--font-semibold);
        letter-spacing: 0;
        text-transform: none;
    }

    .al-summary__name[b-n1dip5n3in] {
        font-size: var(--text-lg);
        font-weight: var(--font-bold);
    }

    /* Use my location row */
    .al-loc__row[b-n1dip5n3in] {
        display: flex;
        align-items: center;
        gap: var(--space-3);
        width: 100%;
        min-height: 64px;
        padding: var(--space-2) var(--space-3);
        border: 1px solid var(--neutral-400);
        border-radius: var(--radius-xl);
        background: #fff;
        color: var(--neutral-900);
        text-align: left;
    }

    .al-loc__row:disabled[b-n1dip5n3in] {
        opacity: 0.6;
    }

    .al-loc__tile[b-n1dip5n3in] {
        display: grid;
        flex: 0 0 40px;
        height: 40px;
        place-items: center;
        border-radius: var(--radius-lg);
        background: var(--primary-50);
        color: var(--primary-900);
    }

    .al-loc__text[b-n1dip5n3in] {
        display: flex;
        flex: 1;
        flex-direction: column;
    }

    .al-loc__title[b-n1dip5n3in] {
        font-size: var(--text-base);
        font-weight: var(--font-bold);
    }

    .al-loc__sub[b-n1dip5n3in] {
        color: var(--neutral-600);
        font-size: var(--text-sm);
    }

    .al-loc__link[b-n1dip5n3in] {
        min-height: 44px;
        border: 0;
        background: none;
        color: var(--primary-700);
        font-size: var(--text-sm);
        font-weight: var(--font-semibold);
    }
}

/* ── Tablet / desktop (768px and up) layout fixes ── */
@media (min-width: 768px) {
    /* Photo column (col-md-4) is narrower than the 320px photo below ~1400px: scale it down instead of
       spilling into the form column. (.camera-placeholder is fluid in encoder.css.) */
    .al-photo[b-n1dip5n3in] {
        width: 100%;
        max-width: 320px;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    /* Voter search + Save: the Save button was squeezed into a col-md-2 (about 60px at 1024px)
       and overflowed over the input. Input takes the rest, Save keeps its natural width. */
    .al-search-row > .col-md-10[b-n1dip5n3in] {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
    }

    .al-search-row > .col-md-2[b-n1dip5n3in] {
        flex: 0 0 auto;
        width: auto;
    }

    /* Status + "+" + Pick Location + Use my location all sit in one input-group inside a half-width
       column, which leaves the select no room below about 1900px. Measure the column itself. */
    .al-status-col[b-n1dip5n3in] {
        container-type: inline-size;
    }
}

/* Narrow status column: select on its own line, the buttons side by side beneath it.
   The repeated .al-status-group out-ranks Bootstrap's :not()-heavy input-group radius/margin rules. */
@container (max-width: 34rem) {
    .al-status-group.al-status-group.al-status-group.al-status-group.al-status-group[b-n1dip5n3in] {
        flex-wrap: wrap;
        gap: var(--space-2);
    }

    .al-status-group.al-status-group.al-status-group.al-status-group.al-status-group > .form-select[b-n1dip5n3in] {
        flex: 1 1 100%;
        margin-left: 0;
        border-radius: var(--bs-border-radius);
    }

    .al-status-group.al-status-group.al-status-group.al-status-group.al-status-group > .btn[b-n1dip5n3in] {
        flex: 1 1 auto;
        margin-left: 0;
        border-radius: var(--bs-border-radius);
    }
}

/* Header step text + 2-segment bar (phones), per board AddLeader */
.al-hdr-step[b-n1dip5n3in] { display: flex; flex-direction: column; gap: var(--space-2); color: #fff; font-size: var(--text-sm); font-weight: var(--font-semibold); }
.al-hdr-step__bars[b-n1dip5n3in] { display: flex; gap: var(--space-2); }
.al-hdr-step__bars span[b-n1dip5n3in] { flex: 1; height: 4px; border-radius: var(--radius-full); background: var(--primary-700); }
.al-hdr-step__bars .is-on[b-n1dip5n3in] { background: #fff; }
/* _content/ALMS/Components/Pages/AddMembers.razor.rz.scp.css */
/* Scoped to AddMembers.razor (Blazor CSS isolation). Moved from the page's <style> block. */

/* Electoral Page Template Styles */
.section-title[b-02whhf1qxj] {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--alms-text-heading);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* From 768px the result lists keep their old look (were the Bootstrap utilities
   .shadow-sm .bg-white .rounded .border .scroll-280 / .position-absolute, which phones can't override) */
.am-suggestions[b-02whhf1qxj] {
    position: absolute;
    z-index: var(--z-modal);
}

/* "N added today" (board decision D4) — page header on desktop, step header on phones */
.am-today[b-02whhf1qxj] {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-3);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.12);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    font-variant-numeric: tabular-nums;
}

@media (min-width: 768px) {
    .am-leader-results[b-02whhf1qxj] {
        max-height: 280px;
        overflow-y: auto;
        border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
        border-radius: var(--bs-border-radius);
        background-color: #fff;
        box-shadow: var(--bs-box-shadow-sm);
    }

    .am-suggestions[b-02whhf1qxj] {
        background-color: #fff;
        box-shadow: var(--bs-box-shadow-sm);
    }

    .am-suggestions--scroll[b-02whhf1qxj] {
        max-height: 280px;
        overflow-y: auto;
    }
}

/* ── Phones (below 768px) — DOCS/MOBILE_DESIGN/AddMembers.html (pick leader) + AddMembers2.html (add voters).
   Step 1: paged leader list (filter band + one list card), the desktop Quick/Table card is hidden.
   Step 2: header title = leader name, compact leader summary row, voter fields 50px, results and
   members as grouped list cards, Add all / Clear pinned above the tab bar. Desktop is unchanged. ── */
@media (max-width: 767.98px) {
    .am-today[b-02whhf1qxj] {
        display: none;
    }

    /* Step 1 */
    .am-count[b-02whhf1qxj] {
        margin: 0 0 var(--space-3);
        font-size: var(--text-sm);
        color: var(--neutral-700);
    }

    .am-count b[b-02whhf1qxj] {
        color: var(--neutral-900);
    }

    .am-members-count[b-02whhf1qxj] {
        flex-direction: column;
        align-items: flex-end;
        gap: 0;
        color: var(--primary-900);
        line-height: 1.2;
    }

    .am-members-count b[b-02whhf1qxj] {
        font-size: var(--text-lg);
    }

    .am-members-count small[b-02whhf1qxj] {
        font-size: var(--text-xs);
        font-weight: var(--font-medium);
        color: var(--neutral-600);
    }

    /* Leader ID card stays behind the summary row until opened */
    .am-details-collapsed[b-02whhf1qxj] {
        display: none;
    }

    .am-step-card[b-02whhf1qxj] {
        padding: var(--space-4);
    }

    /* Voter results flow under the field as one grouped card */
    .am-suggestions[b-02whhf1qxj] {
        position: static;
        overflow: hidden;
        border: 1px solid var(--neutral-200);
        border-radius: var(--radius-xl);
    }

    .am-suggestions > .list-group-item[b-02whhf1qxj] {
        min-height: 60px;
        padding: var(--space-3) var(--space-4);
        border: 0;
        border-bottom: 1px solid var(--neutral-100);
        border-radius: 0;
    }

    .am-suggestions > .list-group-item:last-child[b-02whhf1qxj] {
        border-bottom: 0;
    }

    /* 44px voter fields */
    .am-field > .form-control[b-02whhf1qxj],
    .am-field > .btn[b-02whhf1qxj] {
        min-height: 44px;
    }

    .am-field > .form-control[b-02whhf1qxj] {
        font-size: var(--text-base);
        border-radius: var(--radius-xl);
    }

    .am-field > .btn[b-02whhf1qxj] {
        min-width: 44px;
    }

    .am-leader-row .btn-sm[b-02whhf1qxj] {
        min-width: 44px;
        min-height: 44px;
    }

    /* The sticky bars sit inside a padded card: no bleed */
    .am-add-actions[b-02whhf1qxj],
    .am-remove-actions[b-02whhf1qxj] {
        --ui-sticky-action-bleed: 0;
    }

    /* Bulk remove bar: count on its own line, Cancel + Remove Selected share the row */
    .am-remove-actions[b-02whhf1qxj] {
        flex-wrap: wrap;
        align-items: center;
    }

    .am-remove-count[b-02whhf1qxj] {
        flex: 1 0 100%;
        font-size: var(--text-sm);
        font-weight: var(--font-semibold);
        color: var(--neutral-700);
    }

    /* Multi-select checkboxes: 44px tap targets */
    .am-select-check[b-02whhf1qxj] {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
        margin: 0;
    }

    .am-members-toolbar .form-check-input[b-02whhf1qxj] {
        width: 28px;
        height: 28px;
    }

    .am-members-toolbar[b-02whhf1qxj] {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-3);
    }

    .am-members-toolbar > div[b-02whhf1qxj] {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .am-members-toolbar .form-select[b-02whhf1qxj] {
        flex: 1 1 auto;
    }

    /* Members: one grouped list card */
    .am-members-card .list-group[b-02whhf1qxj] {
        overflow: hidden;
        border: 1px solid var(--neutral-200);
        border-radius: var(--radius-xl);
    }

    .am-member-item[b-02whhf1qxj] {
        flex-wrap: wrap;
        gap: var(--space-2);
        min-height: 60px;
        border: 0;
        border-bottom: 1px solid var(--neutral-100);
        border-radius: 0;
    }

    .am-member-item:last-child[b-02whhf1qxj] {
        border-bottom: 0;
    }

    .am-member-actions[b-02whhf1qxj] {
        display: flex;
        gap: var(--space-2);
        margin-left: auto;
    }
}

@media (max-width: 767.98px) {
    /* Header: stepper + "N today" pill on one row; the pill wraps below, right-aligned, when it cannot fit */
    .am-hdr-row[b-02whhf1qxj] {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-2) var(--space-3);
    }

    .am-hdr-steps[b-02whhf1qxj] {
        display: flex;
        align-items: center;
        gap: var(--space-3);
        margin: 0;
        padding: 0;
        list-style: none;
        color: var(--primary-200);
        font-size: var(--text-sm);
        font-weight: var(--font-semibold);
    }

    .am-hdr-steps li[b-02whhf1qxj] {
        display: flex;
        align-items: center;
        gap: var(--space-2);
        margin: 0;
        line-height: 24px;
        white-space: nowrap;
    }

    .am-hdr-num[b-02whhf1qxj] {
        display: inline-flex;
        flex: 0 0 24px;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        width: 24px;
        height: 24px;
        border: 1.5px solid var(--primary-200);
        border-radius: var(--radius-full);
        background: transparent;
        color: var(--primary-200);
        font-size: var(--text-xs);
        font-weight: var(--font-semibold);
        font-variant-numeric: tabular-nums;
        line-height: 1;
    }

    .am-hdr-steps .is-current[b-02whhf1qxj] { color: #fff; }

    .am-hdr-steps .is-current .am-hdr-num[b-02whhf1qxj] {
        border-color: #fff;
        background: #fff;
        color: var(--primary-900);
    }

    .am-hdr-label[b-02whhf1qxj] { line-height: 24px; }

    .am-hdr-today[b-02whhf1qxj] {
        margin-left: auto;
        padding: 2px var(--space-3);
        border: 1px solid rgba(255, 255, 255, 0.4);
        border-radius: var(--radius-full);
        background: rgba(255, 255, 255, 0.12);
        color: var(--primary-100);
        font-size: var(--text-xs);
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
    }

    .am-hdr-today b[b-02whhf1qxj] { color: #fff; font-size: var(--text-sm); }

    /* Step 1 filter pills: 40px, own chevron centred (the native one sat against the text) */
    .am-phone-leaders .ui-chip-row > .ui-chip[b-02whhf1qxj],
    .am-phone-leaders .ui-chip-row > button[b-02whhf1qxj] {
        min-height: 40px;
    }

    .am-phone-leaders .ui-chip-row > .am-chip-select[b-02whhf1qxj] {
        position: relative;
        padding: 0;
    }

    .am-chip-select select[b-02whhf1qxj] {
        appearance: none;
        -webkit-appearance: none;
        box-sizing: border-box;
        height: 40px;
        max-width: 12rem;
        padding: 0 2.25rem 0 var(--space-4);
        border: 0;
        border-radius: var(--radius-full);
        background-color: transparent;
        background-image: none;
        color: inherit;
        font: inherit;
        line-height: 40px;
        text-overflow: ellipsis;
    }

    .am-chip-select[b-02whhf1qxj]::after {
        content: "";
        position: absolute;
        top: 50%;
        right: var(--space-4);
        width: 7px;
        height: 7px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: translateY(-70%) rotate(45deg);
        pointer-events: none;
    }

    .am-chip-select select:disabled[b-02whhf1qxj] { opacity: 0.5; }

    .am-chip-select select:focus-visible[b-02whhf1qxj] {
        outline: 2px solid var(--primary-600);
        outline-offset: -2px;
    }

    /* Step 2 leader card */
    .am-leader-card[b-02whhf1qxj] {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        align-items: center;
        column-gap: var(--space-2);
        width: 100%;
        padding: var(--space-3);
        border: 1px solid var(--neutral-200);
        border-radius: var(--radius-xl);
        background: #fff;
        color: inherit;
        font: inherit;
        text-align: left;
    }

    .am-leader-card:focus-visible[b-02whhf1qxj] { outline: 2px solid var(--primary-600); outline-offset: 2px; }

    .am-leader-card__main[b-02whhf1qxj] { display: block; min-width: 0; }

    .am-leader-card__name[b-02whhf1qxj] {
        display: block;
        color: var(--neutral-900);
        font-size: var(--text-base);
        font-weight: var(--font-bold);
        overflow-wrap: anywhere;
    }

    .am-leader-card__sub[b-02whhf1qxj] {
        display: block;
        margin-top: 2px;
        color: var(--neutral-600);
        font-size: var(--text-sm);
    }

    .am-leader-card__count[b-02whhf1qxj] {
        color: var(--neutral-600);
        font-size: var(--text-sm);
        white-space: nowrap;
    }

    .am-leader-card__count b[b-02whhf1qxj] { color: var(--primary-900); font-size: var(--text-base); }

    /* No card inside card: the action and members areas sit flat on the page card */
    .am-action-card.card[b-02whhf1qxj],
    .am-members-card.card[b-02whhf1qxj] {
        border: 0;
        background: transparent;
        box-shadow: none !important;
    }

    /* Voter search block */
    .am-field__icon[b-02whhf1qxj] {
        position: absolute;
        top: 50%;
        left: var(--space-3);
        z-index: 4;
        transform: translateY(-50%);
        color: var(--neutral-600);
        pointer-events: none;
    }

    .am-field > .form-control[b-02whhf1qxj] {
        padding-left: 2.5rem;
    }

    .am-suggestions > .list-group-item[b-02whhf1qxj] {
        display: flex;
        align-items: center;
        gap: var(--space-3);
        min-height: 52px;
        padding: var(--space-2) var(--space-3);
    }

    .am-suggestions > .list-group-item > div[b-02whhf1qxj] {
        flex: 1 1 auto;
        min-width: 0;
    }

    .am-suggestions svg[b-02whhf1qxj] { display: none; }

    .am-suggestions .small.d-flex > span + span[b-02whhf1qxj]::before { content: "· "; }

    .am-sug-add[b-02whhf1qxj] {
        flex: 0 0 auto;
        padding: var(--space-1) var(--space-3);
        border-radius: var(--radius-full);
        background: var(--primary-50);
        color: var(--primary-800);
        font-size: var(--text-sm);
        font-weight: var(--font-semibold);
    }

    /* Members header: title left, sort select + order toggle right */
    .am-members-head[b-02whhf1qxj] {
        display: flex;
        align-items: center;
        gap: var(--space-2);
        margin-bottom: var(--space-3);
    }

    .am-members-head__title[b-02whhf1qxj] {
        flex: 1 1 auto;
        min-width: 0;
        margin: 0;
        color: var(--neutral-900);
        font-size: var(--text-base);
        font-weight: var(--font-bold);
    }

    .am-members-head .am-sort-select[b-02whhf1qxj] {
        flex: 0 0 auto;
        width: auto;
        height: 40px;
        min-height: 40px;
        font-size: var(--text-sm);
    }

    .am-member-item[b-02whhf1qxj] { min-height: 52px; }
}

/* ── Phones, audit fixes (2026-11-10) ───────────────────────────────────────────── */
@media (max-width: 767.98px) {
    /* Search icon: SvgIcon is a child component, so its class only matches through ::deep */
    .am-field[b-02whhf1qxj] {
        position: relative;
    }

    .am-field[b-02whhf1qxj]  .am-field__icon {
        position: absolute;
        top: 50%;
        left: var(--space-3);
        z-index: 5;
        transform: translateY(-50%);
        color: var(--neutral-500);
        pointer-events: none;
    }

    .am-seg[b-02whhf1qxj] {
        display: flex;
        width: 100%;
    }

    .am-seg > button[b-02whhf1qxj] {
        flex: 1 1 0;
    }

    /* Leader details (opened from the leader card): compact facts instead of the desktop ID card */
    .leader-id-card.card[b-02whhf1qxj] {
        padding: var(--space-3) !important;
        border: 1px solid var(--neutral-200) !important;
        border-radius: var(--radius-xl);
        box-shadow: none !important;
    }

    .leader-id-card > .d-flex[b-02whhf1qxj] {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: var(--space-2) !important;
    }

    /* Photo is a 56px thumbnail with the status badge beside it */
    .leader-id-card .photo-and-badge-container[b-02whhf1qxj] {
        display: flex;
        align-items: center;
        gap: var(--space-2);
    }

    .leader-id-card .leader-photo-square[b-02whhf1qxj] {
        width: 56px;
        height: 56px;
        border-radius: var(--radius-full);
        object-fit: cover;
    }

    .leader-id-card .photo-and-badge-container .badge[b-02whhf1qxj] { margin-top: 0 !important; }

    .leader-id-card .text-center.flex-shrink-0[b-02whhf1qxj] { text-align: left !important; }

    /* The card above already shows the name: keep only the edit / save / close buttons */
    .leader-id-card .leader-name-resize[b-02whhf1qxj] { font-size: var(--text-base) !important; }

    .leader-id-card hr[b-02whhf1qxj] { display: none; }

    /* Facts: 2-column grid, sentence-case label above a bold value, no icons */
    .leader-id-card .leader-details-grid[b-02whhf1qxj] {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2) var(--space-4);
        margin: 0;
    }

    .leader-id-card.is-editing .leader-details-grid[b-02whhf1qxj] { grid-template-columns: 1fr; }

    .leader-id-card .leader-details-grid > [class*="col-"][b-02whhf1qxj] {
        width: auto;
        max-width: none;
        margin: 0 !important;
        padding: 0;
    }

    .leader-id-card .leader-details-grid[b-02whhf1qxj]  .detail-icon { display: none; }

    .leader-id-card .leader-details-grid .label[b-02whhf1qxj] {
        display: block;
        font-size: var(--text-xs);
        font-weight: var(--font-semibold);
        text-transform: none;
        letter-spacing: 0;
        color: var(--neutral-600);
    }

    .leader-id-card .leader-details-grid .value[b-02whhf1qxj] {
        display: block;
        font-size: var(--text-sm);
        font-weight: var(--font-semibold);
        color: var(--neutral-900);
        overflow-wrap: anywhere;
    }

    /* Members toolbar: only while selecting (select-all); the sticky bar carries Cancel / Remove */
    .am-toolbar--idle[b-02whhf1qxj] {
        display: none !important;
    }

    /* Member row: number, name (wraps) and badges on the left, view / remove inline on the right */
    .am-member-item[b-02whhf1qxj] {
        flex-wrap: nowrap;
        align-items: center;
        gap: var(--space-2);
        padding: var(--space-2) var(--space-3);
    }

    .am-member-main[b-02whhf1qxj] {
        flex: 1 1 auto;
        min-width: 0;
        gap: var(--space-2) !important;
    }

    .am-member-main[b-02whhf1qxj]  .am-member-icon { display: none; }

    .am-member-no[b-02whhf1qxj] {
        min-width: 1.75rem;
        background: var(--primary-50) !important;
        color: var(--primary-800);
        font-weight: var(--font-semibold);
    }

    .am-member-name[b-02whhf1qxj] {
        font-weight: var(--font-semibold);
        color: var(--neutral-900);
        overflow-wrap: anywhere;
    }

    .am-member-actions[b-02whhf1qxj] {
        flex: 0 0 auto;
        margin-left: 0;
        gap: var(--space-1);
    }
}

/* ── Desktop / tablet (768px and up) audit fixes (2026-11-19) ───────────────────── */
@media (min-width: 768px) {
    /* Leader ID card: the photo column and the details wrap instead of squeezing the details
       (the card is only ~410px wide at 1200-1300px, the Bootstrap sm breakpoint cannot know that) */
    .am-id-top[b-02whhf1qxj] {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    /* A long status ("UNDER INVESTIGATION") wraps under the photo instead of widening the column */
    .am-id-photo[b-02whhf1qxj] {
        max-width: 130px;
    }

    .am-id-status[b-02whhf1qxj] {
        max-width: 100%;
        white-space: normal;
        text-align: center;
    }

    .am-id-main[b-02whhf1qxj] {
        flex: 1 1 16rem;
        min-width: 0;
        container-type: inline-size;
    }

    /* Facts: ONE grid for every row, so the labels of a column share a width and its values start on one line.
       Each .am-fact is display:contents with exactly three children: icon | label | value. */
    .am-facts-grid[b-02whhf1qxj] {
        display: grid;
        grid-template-columns:
            1.25rem max-content minmax(0, 1fr)
            1.25rem max-content minmax(0, 1fr);
        align-items: center;
        column-gap: var(--space-3);
        row-gap: var(--space-4);
        margin: 0;
    }

    .am-fact[b-02whhf1qxj] {
        display: contents;
    }

    /* space between the left and right column */
    .am-fact:nth-child(even)[b-02whhf1qxj]  .am-fact__icon {
        margin-left: var(--space-4);
    }

    .am-fact[b-02whhf1qxj]  .am-fact__icon {
        width: 1.25rem;
        margin: 0;
        justify-self: center;
    }

    .am-fact__label[b-02whhf1qxj] {
        margin: 0;
        white-space: nowrap;
    }

    .am-fact__value[b-02whhf1qxj] {
        min-width: 0;
    }

    /* Voter scope toggle: two equal halves that fit the narrow action card (~270px wide at 1200px) */
    .am-seg[b-02whhf1qxj] { display: flex; width: 100%; }

    .am-seg > button[b-02whhf1qxj] {
        flex: 1 1 0;
        min-width: 0;
    }

    /* Members toolbar: wraps instead of overflowing when "Select/Deselect All" + Remove Selected are showing */
    .am-members-toolbar[b-02whhf1qxj] {
        flex-wrap: wrap;
        gap: var(--space-3) var(--space-4);
    }

    .am-members-toolbar label[b-02whhf1qxj] {
        white-space: nowrap;
    }

    .am-toolbar-actions[b-02whhf1qxj] {
        flex-wrap: wrap;
        justify-content: flex-end;
        margin-left: auto;
    }

    .am-member-item--multi[b-02whhf1qxj] {
        cursor: pointer;
    }

    .am-member-item--selected[b-02whhf1qxj] {
        background-color: var(--primary-50);
    }
}

/* Narrow details column (about 1200-1500px wide screens; full-width below 1200px stays two columns): one column, values still share one line */
@media (min-width: 768px) {
    @container (max-width: 34rem) {
        .am-facts-grid[b-02whhf1qxj] {
            grid-template-columns: 1.25rem max-content minmax(0, 1fr);
        }

        .am-fact:nth-child(even)[b-02whhf1qxj]  .am-fact__icon {
            margin-left: 0;
        }
    }
}
/* _content/ALMS/Components/Pages/AddSpecialVoter.razor.rz.scp.css */
/* Scoped to AddSpecialVoter.razor (Blazor CSS isolation). Moved from the page's <style> block. */

.endorser-name-resize[b-egsdrud4jz] {
    min-width: 0;
    font-size: 1.25rem;
    line-height: 1.2;
    display: block;
    font-weight: bold;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

.photo-and-badge-container[b-egsdrud4jz] {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.endorser-photo-square[b-egsdrud4jz] {
    width: 130px;
    height: 130px;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    border: 2px solid var(--bs-gray-800);
}

.card.endorser-id-card[b-egsdrud4jz] {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
    border-radius: 12px;
    background-color: #fff;
    box-shadow: var(--bs-box-shadow-sm);
}

/* Photo column + details: stacked and centred on phones, side by side from 576px */
.asv-id-top[b-egsdrud4jz] {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 576px) {
    .asv-id-top[b-egsdrud4jz] {
        flex-direction: row;
        align-items: flex-start;
    }
}

.endorser-id-card > .d-flex > .me-4[b-egsdrud4jz] {
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.endorser-details-grid[b-egsdrud4jz] {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.endorser-details-grid .col-6[b-egsdrud4jz] {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.endorser-details-grid .d-flex[b-egsdrud4jz] {
    align-items: flex-start;
}

.endorser-details-grid[b-egsdrud4jz]  .detail-icon {
    font-size: 1.6rem;
    width: 40px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 2px;
    margin-right: 0.8rem;
    color: var(--alms-text-secondary);
}

.detail-item-content[b-egsdrud4jz] {
    flex-grow: 1;
}

strong.label[b-egsdrud4jz] {
    display: block;
    font-size: 0.8rem;
    color: var(--alms-text-muted);
    font-weight: 600;
    margin-bottom: 2px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

span.value[b-egsdrud4jz] {
    display: block;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--alms-text-heading);
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.badge-violet[b-egsdrud4jz] {
    background-color: var(--asv-violet);
    color: #fff;
    font-size: 0.85em;
    font-weight: 600;
    border-radius: 0.5em;
    padding: 0.35em 0.7em;
}

.bg-light-warning-subtle[b-egsdrud4jz] {
    background-color: var(--tint-warning-faint);
}

.bg-light-danger-subtle[b-egsdrud4jz] {
    background-color: var(--asv-danger-faint);
}

.border-start-warning-subtle[b-egsdrud4jz] {
    border-left: 4px solid var(--asv-warn-accent);
}

.border-start-danger-subtle[b-egsdrud4jz] {
    border-left: 4px solid var(--asv-danger-accent);
}

.voter-suggestions-dropdown[b-egsdrud4jz] {
    position: absolute;
    z-index: var(--z-modal);
}

/* From 768px the result lists keep their old look (were the Bootstrap utilities
   .shadow-sm .bg-white .rounded .border .scroll-200 / .position-absolute, which phones can't override) */
@media (min-width: 768px) {
    .asv-endorser-results[b-egsdrud4jz] {
        max-height: 200px;
        overflow-y: auto;
        border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
        border-radius: var(--bs-border-radius);
        background-color: #fff;
        box-shadow: var(--bs-box-shadow-sm);
    }

    .voter-suggestions-dropdown[b-egsdrud4jz] {
        max-height: 200px;
        overflow-y: auto;
        background-color: #fff;
        box-shadow: var(--bs-box-shadow-sm);
    }
}

/* Layout the markup used to get from Bootstrap utilities (.d-flex, .gap-3, .bg-primary): utilities are
   always win, so the phone rules below could only override them by forcing too. Now plain rules, phone wins by order. */
.asv-members-toolbar[b-egsdrud4jz] {
    display: flex;
}

.asv-member-main[b-egsdrud4jz] {
    gap: var(--space-4);
}

.asv-member-no[b-egsdrud4jz] {
    background-color: var(--bs-primary);
}

/* Desktop / tablet card shadow (was .shadow-sm on the cards; phones show these flat) */
@media (min-width: 768px) {
    .asv-action-card.card[b-egsdrud4jz],
    .asv-members-card.card[b-egsdrud4jz],
    .asv-members-list.card[b-egsdrud4jz] {
        box-shadow: var(--bs-box-shadow-sm);
    }

    .asv-member-actions .btn:first-child[b-egsdrud4jz] {
        margin-right: var(--space-1);
    }
}

.member-row-selected[b-egsdrud4jz] {
    background: var(--asv-row-selected);
}

/* From 768px: below 1200px the card is full width (two fact columns); from 1200px it sits in a col-xl-7 column
   next to the photo, so the details area is only ~180-300px. Bootstrap's col-sm-6 split that into two ~100px columns (40px icon + label + value
   left almost no room, values wrapped letter by letter). The facts now flow in an auto-fit grid: two columns
   when there is room, one when not. Same icon / stacked label-over-value look as before. */
@media (min-width: 768px) {
    .endorser-details-grid[b-egsdrud4jz] {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
        column-gap: var(--space-4);
        margin-left: 0;
        margin-right: 0;
    }

    .endorser-details-grid > [class*="col-"][b-egsdrud4jz] {
        width: auto;
        max-width: none;
        min-width: 0;
        padding-left: 0;
        padding-right: 0;
        margin-top: 0;
    }

    .detail-item-content[b-egsdrud4jz] {
        min-width: 0;
    }

    /* "UNDER INVESTIGATION" is wider than the 130px photo: wrap instead of widening the photo column */
    .photo-and-badge-container .badge[b-egsdrud4jz] {
        max-width: 130px;
        white-space: normal;
    }

    /* Action card (col-md-5, ~250px of room at 1024): Add / Add All / Clear wrap onto rows with a gap */
    .asv-field-actions[b-egsdrud4jz] {
        display: flex;
        flex-wrap: wrap;
        row-gap: var(--space-2);
    }

    /* Special voters toolbar: sort, order and the bulk controls wrap instead of squeezing at 1024 */
    .asv-members-toolbar[b-egsdrud4jz] {
        flex-wrap: wrap;
        gap: var(--space-3);
    }

    .asv-members-toolbar > div[b-egsdrud4jz] {
        flex-wrap: wrap;
    }

    .asv-members-toolbar .btn[b-egsdrud4jz] {
        white-space: nowrap;
    }

    /* Rows: long names / badge runs wrap inside the row, the view / remove buttons never get pushed out */
    .asv-member-main[b-egsdrud4jz] {
        flex: 1 1 auto;
        min-width: 0;
    }

    .asv-member-name[b-egsdrud4jz],
    .asv-flag-name[b-egsdrud4jz] {
        overflow-wrap: break-word;
    }

    .asv-member-actions[b-egsdrud4jz] {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .asv-flag-name[b-egsdrud4jz] {
        flex: 1 1 auto;
        min-width: 0;
    }

    .asv-flag-btn[b-egsdrud4jz] {
        flex: 0 0 auto;
    }

    /* Many pages: wrap the numbered pager instead of overflowing */
    .pagination[b-egsdrud4jz] {
        flex-wrap: wrap;
        row-gap: var(--space-1);
    }
}

/* ── Phones (below 768px) — mirrors the finished Add Members page (AddMembers.razor.css).
   Step 1: header stepper row, one paged endorser list (filter pills + list card); the desktop
   Quick/Table card is hidden. Step 2: compact endorser summary card (details open from it), scope
   segmented control, category chips, 44px voter field with a "Select" chip on suggestions, special
   voters as one grouped list with single-line rows, Add all / Clear and Remove Selected pinned
   above the tab bar. Desktop is unchanged. ── */
@media (max-width: 767.98px) {
    /* Header: stepper + count pill on one row; the pill wraps below, right-aligned, when it cannot fit */
    .asv-hdr-row[b-egsdrud4jz] {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-2) var(--space-3);
    }

    .asv-hdr-steps[b-egsdrud4jz] {
        display: flex;
        align-items: center;
        gap: var(--space-3);
        margin: 0;
        padding: 0;
        list-style: none;
        color: var(--primary-200);
        font-size: var(--text-sm);
        font-weight: var(--font-semibold);
    }

    .asv-hdr-steps li[b-egsdrud4jz] {
        display: flex;
        align-items: center;
        gap: var(--space-2);
        margin: 0;
        line-height: 24px;
        white-space: nowrap;
    }

    .asv-hdr-num[b-egsdrud4jz] {
        display: inline-flex;
        flex: 0 0 24px;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        width: 24px;
        height: 24px;
        border: 1.5px solid var(--primary-200);
        border-radius: var(--radius-full);
        background: transparent;
        color: var(--primary-200);
        font-size: var(--text-xs);
        font-weight: var(--font-semibold);
        font-variant-numeric: tabular-nums;
        line-height: 1;
    }

    .asv-hdr-steps .is-current[b-egsdrud4jz] { color: #fff; }

    .asv-hdr-steps .is-current .asv-hdr-num[b-egsdrud4jz] {
        border-color: #fff;
        background: #fff;
        color: var(--primary-900);
    }

    .asv-hdr-label[b-egsdrud4jz] { line-height: 24px; }

    .asv-hdr-count[b-egsdrud4jz] {
        margin-left: auto;
        padding: 2px var(--space-3);
        border: 1px solid rgba(255, 255, 255, 0.4);
        border-radius: var(--radius-full);
        background: rgba(255, 255, 255, 0.12);
        color: var(--primary-100);
        font-size: var(--text-xs);
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
    }

    .asv-hdr-count b[b-egsdrud4jz] { color: #fff; font-size: var(--text-sm); }

    /* Step 1 */
    .asv-count[b-egsdrud4jz] {
        margin: 0 0 var(--space-3);
        font-size: var(--text-sm);
        color: var(--neutral-700);
    }

    .asv-count b[b-egsdrud4jz] {
        color: var(--neutral-900);
    }

    .asv-endorser-count[b-egsdrud4jz] {
        flex-direction: column;
        align-items: flex-end;
        gap: 0;
        color: var(--primary-900);
        line-height: 1.2;
    }

    .asv-endorser-count b[b-egsdrud4jz] { font-size: var(--text-lg); }

    .asv-endorser-count small[b-egsdrud4jz] {
        font-size: var(--text-xs);
        font-weight: var(--font-medium);
        color: var(--neutral-600);
    }

    /* Filter pills: 40px, own chevron centred (the native one sat against the text) */
    .asv-phone-endorsers .ui-chip-row > .ui-chip[b-egsdrud4jz],
    .asv-phone-endorsers .ui-chip-row > button[b-egsdrud4jz] {
        min-height: 40px;
    }

    .asv-phone-endorsers .ui-chip-row > .asv-chip-select[b-egsdrud4jz] {
        position: relative;
        padding: 0;
    }

    .asv-chip-select select[b-egsdrud4jz] {
        appearance: none;
        -webkit-appearance: none;
        box-sizing: border-box;
        height: 40px;
        max-width: 12rem;
        padding: 0 2.25rem 0 var(--space-4);
        border: 0;
        border-radius: var(--radius-full);
        background-color: transparent;
        background-image: none;
        color: inherit;
        font: inherit;
        line-height: 40px;
        text-overflow: ellipsis;
    }

    .asv-chip-select[b-egsdrud4jz]::after {
        content: "";
        position: absolute;
        top: 50%;
        right: var(--space-4);
        width: 7px;
        height: 7px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: translateY(-70%) rotate(45deg);
        pointer-events: none;
    }

    .asv-chip-select select:disabled[b-egsdrud4jz] { opacity: 0.5; }

    .asv-chip-select select:focus-visible[b-egsdrud4jz] {
        outline: 2px solid var(--primary-600);
        outline-offset: -2px;
    }

    /* Step 2 endorser card */
    .asv-endorser-card[b-egsdrud4jz] {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        align-items: center;
        column-gap: var(--space-2);
        width: 100%;
        padding: var(--space-3);
        border: 1px solid var(--neutral-200);
        border-radius: var(--radius-xl);
        background: #fff;
        color: inherit;
        font: inherit;
        text-align: left;
    }

    .asv-endorser-card:focus-visible[b-egsdrud4jz] { outline: 2px solid var(--primary-600); outline-offset: 2px; }

    .asv-endorser-card__main[b-egsdrud4jz] { display: block; min-width: 0; }

    .asv-endorser-card__name[b-egsdrud4jz] {
        display: block;
        color: var(--neutral-900);
        font-size: var(--text-base);
        font-weight: var(--font-bold);
        overflow-wrap: anywhere;
    }

    .asv-endorser-card__sub[b-egsdrud4jz] {
        display: block;
        margin-top: 2px;
        color: var(--neutral-600);
        font-size: var(--text-sm);
    }

    .asv-endorser-card__count[b-egsdrud4jz] {
        color: var(--neutral-600);
        font-size: var(--text-sm);
        white-space: nowrap;
    }

    .asv-endorser-card__count b[b-egsdrud4jz] { color: var(--primary-900); font-size: var(--text-base); }

    /* Endorser ID card stays behind the summary card until opened */
    .asv-details-collapsed[b-egsdrud4jz] {
        display: none;
    }

    /* No card inside card: the action and special-voter areas sit flat on the page */
    .asv-action-card.card[b-egsdrud4jz],
    .asv-members-card.card[b-egsdrud4jz],
    .asv-members-list.card[b-egsdrud4jz] {
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    /* Endorser details (opened from the summary card): compact facts instead of the desktop ID card */
    .endorser-id-card.card[b-egsdrud4jz] {
        margin-bottom: var(--space-3);
        padding: var(--space-3);
        border: 1px solid var(--neutral-200);
        border-radius: var(--radius-xl);
        box-shadow: none;
    }

    .endorser-id-card > .asv-id-top[b-egsdrud4jz] {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-2);
    }

    .endorser-id-card .photo-and-badge-container[b-egsdrud4jz] {
        flex-direction: row;
        gap: var(--space-2);
    }

    .endorser-id-card .endorser-photo-square[b-egsdrud4jz] {
        width: 56px;
        height: 56px;
        border: 0;
        border-radius: var(--radius-full);
    }

    /* The next three beat Bootstrap utilities in the markup (.mt-2, .text-center, .mb-3), which are themselves important */
    .endorser-id-card .photo-and-badge-container .badge[b-egsdrud4jz] { margin-top: 0 !important; }

    .endorser-id-card .text-center.flex-shrink-0[b-egsdrud4jz] { text-align: left !important; }

    /* The summary card already shows the name: keep only the edit / save / close buttons */
    .endorser-id-card .endorser-name-resize[b-egsdrud4jz] { font-size: var(--text-base); }

    .endorser-id-card hr[b-egsdrud4jz] { display: none; }

    .endorser-id-card .endorser-details-grid[b-egsdrud4jz] {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2) var(--space-4);
        margin: 0;
    }

    .endorser-id-card.is-editing .endorser-details-grid[b-egsdrud4jz] { grid-template-columns: 1fr; }

    .endorser-id-card .endorser-details-grid > [class*="col-"][b-egsdrud4jz] {
        width: auto;
        max-width: none;
        margin: 0 !important;
        padding: 0;
    }

    .endorser-id-card .endorser-details-grid[b-egsdrud4jz]  .detail-icon { display: none; }

    .endorser-id-card .endorser-details-grid .label[b-egsdrud4jz] {
        display: block;
        font-size: var(--text-xs);
        font-weight: var(--font-semibold);
        text-transform: none;
        letter-spacing: 0;
        color: var(--neutral-600);
    }

    .endorser-id-card .endorser-details-grid .value[b-egsdrud4jz] {
        display: block;
        font-size: var(--text-sm);
        font-weight: var(--font-semibold);
        color: var(--neutral-900);
        overflow-wrap: anywhere;
    }

    .asv-endorser-row .btn-sm[b-egsdrud4jz] {
        min-width: 44px;
        min-height: 44px;
    }

    /* Scope switch: full-width segmented control */
    .asv-seg-scope[b-egsdrud4jz] {
        display: flex;
        width: 100%;
    }

    .asv-seg-scope > button[b-egsdrud4jz] {
        flex: 1 1 0;
    }

    /* Category: one horizontally scrolling row of 40px chips */
    .asv-cat > button[b-egsdrud4jz] {
        min-height: 40px;
    }

    /* Voter search field: 44px with the search icon inside */
    .asv-field[b-egsdrud4jz] {
        position: relative;
    }

    .asv-field[b-egsdrud4jz]  .asv-field__icon {
        position: absolute;
        top: 50%;
        left: var(--space-3);
        z-index: 5;
        transform: translateY(-50%);
        color: var(--neutral-500);
        pointer-events: none;
    }

    .asv-field > .form-control[b-egsdrud4jz],
    .asv-field > .btn[b-egsdrud4jz] {
        min-height: 44px;
    }

    .asv-field > .form-control[b-egsdrud4jz] {
        padding-left: 2.5rem;
        font-size: var(--text-base);
        border-radius: var(--radius-xl);
    }

    .asv-field > .btn[b-egsdrud4jz] {
        min-width: 44px;
    }

    /* Voter results flow under the field as one grouped list card with a "Select" chip */
    .voter-suggestions-dropdown[b-egsdrud4jz] {
        position: static;
        overflow: hidden;
        border: 1px solid var(--neutral-200);
        border-radius: var(--radius-xl);
    }

    .voter-suggestions-dropdown > .list-group-item[b-egsdrud4jz] {
        display: flex;
        align-items: center;
        gap: var(--space-3);
        min-height: 52px;
        padding: var(--space-2) var(--space-3);
        border: 0;
        border-bottom: 1px solid var(--neutral-100);
        border-radius: 0;
    }

    .voter-suggestions-dropdown > .list-group-item:last-child[b-egsdrud4jz] {
        border-bottom: 0;
    }

    .voter-suggestions-dropdown > .list-group-item > div[b-egsdrud4jz] {
        flex: 1 1 auto;
        min-width: 0;
    }

    .asv-sug-sub[b-egsdrud4jz] {
        color: var(--neutral-600);
        font-size: var(--text-xs);
        overflow-wrap: anywhere;
    }

    /* Unresolved / Not found: flat section, compact rows, 40px remove button.
       The forced values beat Bootstrap utilities in the markup (.mt-4 .p-4 .border .bg-white .shadow-sm .mb-2 .mb-3). */
    .asv-flag-card.card[b-egsdrud4jz] {
        margin-top: var(--space-4) !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .asv-flag-card h5[b-egsdrud4jz] {
        margin-bottom: var(--space-2) !important;
        font-size: var(--text-base);
    }

    .asv-flag-list[b-egsdrud4jz] {
        margin-bottom: var(--space-2) !important;
    }

    .asv-flag-row[b-egsdrud4jz] {
        gap: var(--space-2);
        min-height: 48px;
        margin-bottom: var(--space-1) !important;
        padding: var(--space-1) var(--space-2);
    }

    .asv-flag-name[b-egsdrud4jz] {
        flex: 1 1 auto;
        min-width: 0;
        font-weight: var(--font-semibold);
        overflow-wrap: anywhere;
    }

    .asv-flag-note .small[b-egsdrud4jz],
    .asv-flag-note[b-egsdrud4jz] {
        font-size: var(--text-xs);
    }

    .asv-sug-add[b-egsdrud4jz] {
        flex: 0 0 auto;
        padding: var(--space-1) var(--space-3);
        border-radius: var(--radius-full);
        background: var(--primary-50);
        color: var(--primary-800);
        font-size: var(--text-sm);
        font-weight: var(--font-semibold);
    }

    /* The sticky bars sit inside the page: no bleed */
    .asv-add-actions[b-egsdrud4jz],
    .asv-remove-actions[b-egsdrud4jz] {
        --ui-sticky-action-bleed: 0;
    }

    /* Bulk remove bar: count on its own line, Cancel + Remove Selected share the row */
    .asv-remove-actions[b-egsdrud4jz] {
        flex-wrap: wrap;
        align-items: center;
    }

    .asv-remove-count[b-egsdrud4jz] {
        flex: 1 0 100%;
        font-size: var(--text-sm);
        font-weight: var(--font-semibold);
        color: var(--neutral-700);
    }

    /* Special voters header: title left, sort select + order toggle + select toggle right */
    .asv-members-head[b-egsdrud4jz] {
        display: flex;
        align-items: center;
        gap: var(--space-2);
        margin-bottom: var(--space-3);
    }

    .asv-members-head__title[b-egsdrud4jz] {
        flex: 1 1 auto;
        min-width: 0;
        margin: 0;
        color: var(--neutral-900);
        font-size: var(--text-base);
        font-weight: var(--font-bold);
    }

    .asv-members-head .asv-sort-select[b-egsdrud4jz] {
        flex: 0 0 auto;
        width: auto;
        height: 40px;
        min-height: 40px;
        font-size: var(--text-sm);
    }

    /* Toolbar: only while selecting (select-all); the sticky bar carries Cancel / Remove */
    .asv-toolbar--idle[b-egsdrud4jz] {
        display: none;
    }

    .asv-members-toolbar[b-egsdrud4jz] {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-3);
    }

    .asv-members-toolbar > div[b-egsdrud4jz] {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .asv-members-toolbar .form-check-input[b-egsdrud4jz] {
        width: 28px;
        height: 28px;
    }

    /* Multi-select checkboxes: 44px tap targets */
    .asv-select-check[b-egsdrud4jz] {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
        margin: 0;
    }

    /* Special voters: one grouped list card */
    .asv-members-list .list-group[b-egsdrud4jz] {
        overflow: hidden;
        border: 1px solid var(--neutral-200);
        border-radius: var(--radius-xl);
    }

    /* Row: number, name (wraps) and badges on the left, view / remove inline on the right */
    .asv-member-item[b-egsdrud4jz] {
        flex-wrap: nowrap;
        align-items: center;
        gap: var(--space-2);
        min-height: 52px;
        padding: var(--space-2) var(--space-3);
        border: 0;
        border-bottom: 1px solid var(--neutral-100);
        border-radius: 0;
    }

    .asv-member-item:last-child[b-egsdrud4jz] {
        border-bottom: 0;
    }

    .asv-member-main[b-egsdrud4jz] {
        flex: 1 1 auto;
        min-width: 0;
        gap: var(--space-2);
    }

    .asv-member-main[b-egsdrud4jz]  .asv-member-icon { display: none; }

    .asv-member-no[b-egsdrud4jz] {
        min-width: 1.75rem;
        background: var(--primary-50);
        color: var(--primary-800);
        font-weight: var(--font-semibold);
    }

    .asv-member-name[b-egsdrud4jz] {
        font-weight: var(--font-semibold);
        color: var(--neutral-900);
        overflow-wrap: anywhere;
    }

    .asv-member-actions[b-egsdrud4jz] {
        display: flex;
        flex: 0 0 auto;
        gap: var(--space-1);
    }
}
/* _content/ALMS/Components/Pages/AdminSettings.razor.rz.scp.css */
/* Scoped to AdminSettings.razor (Blazor CSS isolation). Moved from the page's <style> block. */

/* Layout: a tinted tray holding the Settings menu (flat, left) and the open page's cards (right). */
.admin-settings-container[b-bl4vxc8qtt] {
    display: grid;
    grid-template-columns: 14.5rem minmax(0, 1fr);
    gap: var(--space-6);
    align-items: start;
    padding: var(--space-5);
    border: 1px solid var(--neutral-100);
    border-radius: var(--radius-2xl);
    background: var(--alms-bg-light);
}

.admin-sidebar[b-bl4vxc8qtt] {
    position: sticky;
    top: var(--space-4);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
}

/* No overflow here: the unsaved-changes bar (.ui-save-bar) sticks to the viewport, not to this box. */
.admin-content[b-bl4vxc8qtt] {
    min-width: 0;
}

@media (max-width: 991.98px) {
    .admin-settings-container[b-bl4vxc8qtt] {
        grid-template-columns: minmax(0, 1fr);
        padding: var(--space-3);
    }

    .admin-sidebar[b-bl4vxc8qtt] {
        position: static;
        max-height: none;
    }
}

/* 768-991: the menu stacks above the page, so its groups flow in two columns instead of one tall list. */
@media (min-width: 768px) and (max-width: 991.98px) {
    .admin-sidebar[b-bl4vxc8qtt]  .settings-nav {
        display: block;
        column-count: 2;
        column-gap: var(--space-6);
    }

    .admin-sidebar[b-bl4vxc8qtt]  .settings-nav__group {
        break-after: avoid;
    }

    .admin-sidebar[b-bl4vxc8qtt]  .settings-nav__list {
        break-inside: avoid;
    }

    .admin-sidebar[b-bl4vxc8qtt]  .settings-nav__legend {
        column-span: all;
    }
}

/* Precinct cluster cards: as many columns as the page has room for (the page is narrower than the viewport). */
.cluster-grid[b-bl4vxc8qtt] {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-4);
}

@media (min-width: 768px) {
    .cluster-grid[b-bl4vxc8qtt] {
        grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr));
    }
}

.cluster-grid > *[b-bl4vxc8qtt] {
    min-width: 0;
}

.cluster-inactive[b-bl4vxc8qtt] {
    opacity: 0.75;
}

/* Electoral returns: position tabs scroll instead of wrapping to a ragged second row. */
.er-tabs[b-bl4vxc8qtt] {
    gap: var(--space-2);
}

@media (min-width: 768px) {
    .er-tabs[b-bl4vxc8qtt] {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .er-tabs .ui-chip[b-bl4vxc8qtt] {
        white-space: nowrap;
    }
}

.er-cell[b-bl4vxc8qtt] {
    max-width: 5rem;
}

.er-avatar[b-bl4vxc8qtt] {
    flex: none;
    width: 2rem;
    height: 2rem;
}

/* Barangay survey cells and per-barangay turnout inputs. */
.survey-cell[b-bl4vxc8qtt] {
    width: 5.125rem;
    margin: auto;
}

.turnout-input[b-bl4vxc8qtt] {
    max-width: 8.125rem;
}

.survey-progress[b-bl4vxc8qtt] {
    height: 6px;
    max-width: 12.5rem;
}

/* Survey share, barangay election: one tinted box per barangay. */
.brgy-group[b-bl4vxc8qtt] {
    background: var(--neutral-50);
}

.brgy-group__title[b-bl4vxc8qtt] {
    color: var(--neutral-700);
}

.pos-label[b-bl4vxc8qtt] {
    margin-bottom: 0.4rem;
    color: var(--neutral-400);
}

/* Wraps the pages so a view-only tier gets every field disabled at once. */
.settings-scope[b-bl4vxc8qtt] {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

/* "All settings" back control: phones only (.ui-mobile-only). */
.settings-back[b-bl4vxc8qtt] {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    min-height: 44px;
    margin: 0 0 var(--space-2) calc(-1 * var(--space-2));
    padding: 0 var(--space-2);
    border: 0;
    color: var(--primary-900);
    font-weight: var(--font-semibold);
}

.settings-back:hover[b-bl4vxc8qtt] {
    color: var(--primary-700);
}

/* Form label used by the page's dialogs (Quota, Cluster). */
.form-label-custom[b-bl4vxc8qtt] {
    font-weight: 500;
    color: var(--alms-text-secondary);
    margin-bottom: 0.5rem;
}

/* Strip Bootstrap gradient from all buttons on this page */
.admin-settings-container .btn[b-bl4vxc8qtt] {
    background-image: none !important;
}

/* ── Phones (mobile plan §6, boards SetMenu … SetFeatures) ──
   The list (.admin-sidebar) and the open page (.admin-content) take turns on screen;
   the markup swaps them with .ui-mobile-hide. Here they lose the desktop tray. */
@media (max-width: 767.98px) {
    .admin-settings-container[b-bl4vxc8qtt] {
        gap: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .admin-sidebar.ui-card[b-bl4vxc8qtt] {
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .admin-sidebar.ui-card > .ui-card__body--padded[b-bl4vxc8qtt] {
        gap: var(--space-3);
        padding: 0;
    }

    /* Wide grids (barangay survey, electoral returns) scroll sideways inside their TableCard,
       first column pinned by .ui-table--matrix; keep that column narrow so the numbers show. */
    .admin-content[b-bl4vxc8qtt]  .ui-table--matrix > :not(caption) > tr > :first-child {
        max-width: 9rem;
        white-space: normal;
    }
}

/* ── Phones: Payment amounts, Win probability, System features (boards SetPayments, SetWinProb, SetFeatures) ── */
@media (max-width: 767.98px) {
    .wp-sub[b-bl4vxc8qtt] {
        margin: 0 0 var(--space-3);
        font-size: 0.78125rem;
        color: var(--neutral-600);
    }

    /* 16px text / 50px fields, so iOS does not zoom on focus */
    .pay-card .form-control[b-bl4vxc8qtt],
    .pay-card .input-group-text[b-bl4vxc8qtt],
    .sf-map .form-control[b-bl4vxc8qtt] {
        min-height: 50px;
        font-size: 16px;
    }

    .sf-map .form-control[b-bl4vxc8qtt] {
        border-color: var(--neutral-300);
        border-radius: var(--radius-xl);
    }

    .sf-map .form-label[b-bl4vxc8qtt] {
        font-size: 0.875rem;
        font-weight: var(--font-semibold);
        color: var(--neutral-800);
    }

    /* Peso fields: 52px, grey peso cell, bold figures */
    .pay-card .input-group[b-bl4vxc8qtt] {
        flex-wrap: nowrap;
    }

    .pay-card .input-group-text[b-bl4vxc8qtt] {
        justify-content: center;
        min-width: 44px;
        padding: 0;
        border-color: var(--neutral-300);
        border-radius: var(--radius-xl) 0 0 var(--radius-xl);
        background: var(--neutral-100);
        font-size: 1.0625rem;
        font-weight: var(--font-bold);
        color: var(--neutral-700);
    }

    .pay-card .input-group .form-control[b-bl4vxc8qtt] {
        min-height: 52px;
        border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
        font-size: 1.125rem;
        font-weight: var(--font-bold);
        font-variant-numeric: tabular-nums;
    }

    .wp-needed[b-bl4vxc8qtt] {
        margin-top: var(--space-1);
        font-size: 0.78125rem;
        font-weight: var(--font-semibold);
        color: var(--warning-900);
    }

    /* Barangay rates link card */
    .pay-link[b-bl4vxc8qtt] {
        display: flex;
        align-items: center;
        gap: var(--space-3);
        min-height: 64px;
        margin-bottom: var(--space-3);
        padding: 14px;
        border: 1px solid var(--neutral-200);
        border-radius: var(--radius-xl);
        background: #fff;
        color: var(--neutral-900);
        text-decoration: none;
    }

    .pay-link__icon[b-bl4vxc8qtt] {
        display: inline-flex;
        flex: none;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 10px;
        background: var(--primary-50);
        color: var(--primary-900);
    }

    .pay-link__main[b-bl4vxc8qtt] {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        min-width: 0;
    }

    .pay-link__main strong[b-bl4vxc8qtt] {
        font-size: 0.9375rem;
    }

    .pay-link__main span[b-bl4vxc8qtt] {
        font-size: 0.78125rem;
        color: var(--neutral-600);
    }

    .pay-link[b-bl4vxc8qtt]  svg:last-child {
        flex: none;
        color: var(--neutral-600);
    }

    /* System features: one switch row and a note strip */
    .sf-card[b-bl4vxc8qtt] {
        overflow: hidden;
        margin-bottom: var(--space-3);
        border: 1px solid var(--neutral-200);
        border-radius: var(--radius-xl);
        background: #fff;
    }

    .sf-row[b-bl4vxc8qtt] {
        display: flex;
        align-items: center;
        gap: var(--space-3);
        padding: 14px 8px 14px 14px;
    }

    .sf-text[b-bl4vxc8qtt] {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        gap: 3px;
        min-width: 0;
    }

    .sf-text strong[b-bl4vxc8qtt] {
        font-size: 1rem;
    }

    .sf-text span[b-bl4vxc8qtt] {
        font-size: 0.78125rem;
        color: var(--neutral-600);
    }

    .sf-foot[b-bl4vxc8qtt] {
        padding: 10px 14px;
        border-top: 1px solid var(--neutral-100);
        background: var(--neutral-50);
        font-size: 0.8125rem;
        color: var(--neutral-700);
    }
}

/* ── Card migration A (payments … system-features) ── */
/* Stat strips: the quota calculator's two system figures and the electoral returns summary. */
.calc-strip[b-bl4vxc8qtt] {
    --n: 2;
    border-bottom: 1px solid var(--neutral-100);
}

.er-strip[b-bl4vxc8qtt] {
    --n: 3;
}

.calc-strip__value[b-bl4vxc8qtt] {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    line-height: 1.1;
    color: var(--primary-900);
    font-variant-numeric: tabular-nums;
}

/* Fields in a card row keep a readable width instead of stretching across the page. */
.ui-card__control > .form-control[b-bl4vxc8qtt],
.ui-card__control > .form-select[b-bl4vxc8qtt],
.ui-card__control > .input-group[b-bl4vxc8qtt] {
    max-width: 24rem;
}

/* A notice that closes a row-based card body needs room under it. */
.settings-note-end[b-bl4vxc8qtt] {
    margin-bottom: var(--space-4);
}

/* Last-updated stamp under an electoral returns cell. */
.er-stamp[b-bl4vxc8qtt] {
    font-size: 0.625rem;
}

@media (max-width: 767.98px) {
    /* The phone sub-line sits above the first row of its card. */
    .pay-card .wp-sub[b-bl4vxc8qtt],
    .sf-map .wp-sub[b-bl4vxc8qtt] {
        padding-top: var(--space-3);
    }

    .ui-card__control > .form-control[b-bl4vxc8qtt],
    .ui-card__control > .form-select[b-bl4vxc8qtt],
    .ui-card__control > .input-group[b-bl4vxc8qtt] {
        max-width: none;
    }
}
/* ── end Card migration A ── */

/* ── Card migration B (lifecycle … municipality) ── */
/* Archive / statistics modals: two rows of three figures. */
.lifecycle-strip[b-bl4vxc8qtt] {
    --n: 3;
}

.lifecycle-strip + .lifecycle-strip[b-bl4vxc8qtt] {
    border-top: 1px solid var(--neutral-100);
}

/* Win probability cards: the phone field styling the old section-card gave (board SetWinProb). */
@media (max-width: 767.98px) {
    .wp-card .form-control:not(.form-control-sm)[b-bl4vxc8qtt] {
        min-height: 50px;
        border-color: var(--neutral-300);
        border-radius: var(--radius-xl);
        font-size: 16px;
    }

    .wp-card .form-label[b-bl4vxc8qtt] {
        font-size: 0.875rem;
        font-weight: var(--font-semibold);
        color: var(--neutral-800);
    }

    .wp-card .form-control.is-needed[b-bl4vxc8qtt] {
        border: 1.5px solid var(--warning-600);
        background: var(--warning-50);
    }
}
/* ── end Card migration B ── */

/* ── leftover fixes D ── */
/* Fingerprint note: a readable width (the generic card-control cap is narrower than a sentence needs). */
.ui-card__control > .sf-fp-note[b-bl4vxc8qtt] {
    max-width: 32rem;
}

@media (max-width: 767.98px) {
    .ui-card__control > .sf-fp-note[b-bl4vxc8qtt] {
        max-width: none;
    }
}
/* ── end leftover fixes D ── */
/* _content/ALMS/Components/Pages/AttendanceManagement.razor.rz.scp.css */
/* Scoped to AttendanceManagement.razor (Blazor CSS isolation). Moved from the page's <style> block. */

/* Moved from the global app.css (page-only rules). */

/* FullCalendar draws its own DOM (hence ::deep) and styles it with `.fc .fc-button-primary:...` selectors of up to
   four classes. The #attendanceCalendar id in every selector below outranks all of them, so none of these rules
   needs to force itself. FullCalendar sets no inline styles on the properties restyled here. */
#attendanceCalendar[b-4bbp6yp70u] {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(var(--alms-navy-rgb), 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(var(--alms-navy-rgb), 0.10);
    padding: 20px;
    font-family: var(--font-sans);
}

#attendanceCalendar[b-4bbp6yp70u]  .fc-toolbar {
    margin-bottom: 20px;
    gap: 12px;
}

#attendanceCalendar[b-4bbp6yp70u]  .fc-toolbar-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--alms-navy);
    letter-spacing: -0.01em;
}

#attendanceCalendar[b-4bbp6yp70u]  .fc-button {
    background: var(--att-surface-alt);
    border: 1px solid rgba(var(--alms-navy-rgb), 0.20);
    color: var(--alms-navy);
    font-weight: 600;
    font-size: 0.82rem;
    border-radius: 8px;
    padding: 6px 14px;
    transition: all 0.15s ease;
    text-transform: capitalize;
    box-shadow: none;
}

#attendanceCalendar[b-4bbp6yp70u]  .fc-button:hover {
    background: var(--alms-navy);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(var(--alms-navy-rgb), 0.3);
}

#attendanceCalendar[b-4bbp6yp70u]  .fc-button-active {
    background: var(--alms-navy);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(var(--alms-navy-rgb), 0.25);
}

#attendanceCalendar[b-4bbp6yp70u]  .fc-button.fc-button-active {
    background: var(--alms-navy);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(var(--alms-navy-rgb), 0.25);
}

#attendanceCalendar[b-4bbp6yp70u]  .fc-button:focus {
    box-shadow: 0 0 0 3px rgba(var(--alms-navy-rgb), 0.18);
}

#attendanceCalendar[b-4bbp6yp70u]  .fc-button:disabled {
    opacity: 0.45;
}

#attendanceCalendar[b-4bbp6yp70u]  .fc-today-button {
    font-weight: 700;
}

#attendanceCalendar[b-4bbp6yp70u]  .fc-button-group > .fc-button {
    border-radius: 0;
}

#attendanceCalendar[b-4bbp6yp70u]  .fc-button-group > .fc-button:first-child {
    border-radius: 8px 0 0 8px;
}

#attendanceCalendar[b-4bbp6yp70u]  .fc-button-group > .fc-button:last-child {
    border-radius: 0 8px 8px 0;
}

#attendanceCalendar[b-4bbp6yp70u]  .fc-col-header {
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}

#attendanceCalendar[b-4bbp6yp70u]  .fc-col-header-cell {
    background: var(--alms-navy-dark);
    border-color: rgba(255, 255, 255, 0.08);
    padding: 10px 0;
}

#attendanceCalendar[b-4bbp6yp70u]  .fc-col-header-cell-cushion {
    color: #fff;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
}

#attendanceCalendar[b-4bbp6yp70u]  .fc-daygrid-day {
    transition: background-color 0.12s ease;
    border-color: var(--att-line);
}

#attendanceCalendar[b-4bbp6yp70u]  .fc-daygrid-day-number {
    color: var(--alms-text-secondary);
    font-weight: 500;
    font-size: 0.85rem;
    padding: 8px 10px;
    text-decoration: none;
}

#attendanceCalendar[b-4bbp6yp70u]  .fc-day-today {
    background: rgba(59, 130, 246, 0.08);
}

#attendanceCalendar[b-4bbp6yp70u]  .fc-day-today .fc-daygrid-day-number {
    background: var(--alms-stat-blue);
    color: #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 4px;
    padding: 0;
}

#attendanceCalendar[b-4bbp6yp70u]  .fc-day-other .fc-daygrid-day-number {
    color: var(--att-muted-fg);
}

#attendanceCalendar[b-4bbp6yp70u]  .fc-event {
    border-radius: 6px;
    border: none;
    padding: 3px 8px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.10);
}

#attendanceCalendar[b-4bbp6yp70u]  .fc-event:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

#attendanceCalendar[b-4bbp6yp70u]  .fc-event .fc-event-title {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#attendanceCalendar[b-4bbp6yp70u]  .fc-event .fc-event-time {
    font-weight: 500;
    opacity: 0.9;
}

#attendanceCalendar[b-4bbp6yp70u]  .fc-daygrid-more-link {
    color: var(--alms-navy);
    font-weight: 700;
    font-size: 0.78rem;
}

#attendanceCalendar[b-4bbp6yp70u]  .fc-scroller::-webkit-scrollbar {
    width: 6px;
}

#attendanceCalendar[b-4bbp6yp70u]  .fc-scroller::-webkit-scrollbar-thumb {
    background: rgba(var(--alms-navy-rgb), 0.25);
    border-radius: 3px;
}

#attendanceCalendar[b-4bbp6yp70u]  .fc-scrollgrid {
    border-color: var(--att-line);
    border-radius: 10px;
    overflow: hidden;
}

#attendanceCalendar[b-4bbp6yp70u]  .fc-scrollgrid td {
    border-color: var(--att-line);
}

#attendanceCalendar[b-4bbp6yp70u]  .fc-scrollgrid th {
    border-color: var(--att-line);
}

/* ── Phones (mobile plan §5: view only) — 768px+ unchanged ── */
@media (max-width: 767.98px) {
    /* The empty calendar box is useless on phones; the table view is the phone view */
    #attendanceCalendar[b-4bbp6yp70u] {
        display: none;
    }

    /* Details sheet: the five counts as a 3-up grid instead of five squeezed columns */
    .att-counts > .col[b-4bbp6yp70u] {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }

    .att-counts .card-body[b-4bbp6yp70u] {
        padding: var(--space-2);
    }

    .att-counts h3[b-4bbp6yp70u] {
        font-size: var(--text-xl);
    }
}
/* _content/ALMS/Components/Pages/AttendanceRecording.razor.rz.scp.css */
/* Scoped to AttendanceRecording.razor (Blazor CSS isolation). Moved from the page's <style> block. */

.attendance-status-filter > button[b-69d1qry93x] {
    white-space: nowrap;
}

/* Header subtitle: date · time · status on one line that wraps on narrow screens */
.ar-meta[b-69d1qry93x] {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-1) var(--space-3);
}

.ar-meta > .badge[b-69d1qry93x] {
    font-size: var(--text-xs);
    letter-spacing: .02em;
}

.stat-card[b-69d1qry93x] {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.stat-card:hover[b-69d1qry93x] {
    transform: translateY(-5px);
}

.stat-number[b-69d1qry93x] {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.leader-photo[b-69d1qry93x] {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 0.375rem;
}

.fingerprint-required[b-69d1qry93x] {
    background: var(--bs-warning-bg-subtle);
    border-left: 4px solid var(--warning-500);
    padding: 1rem;
    margin-bottom: 1rem;
}

.search-box[b-69d1qry93x] {
    border-radius: 0.5rem;
    border: 2px solid var(--neutral-100);
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.search-box:focus[b-69d1qry93x] {
    border-color: var(--primary-900);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 39, 104, 0.1);
}

/* ID Card Styles for Most Recent Scan */
.scan-id-card[b-69d1qry93x] {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-800) 100%);
    border-radius: 0.75rem;
    padding: 1.5rem;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-bottom: 1rem;
}

.scan-id-card-photo[b-69d1qry93x] {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.scan-id-card-placeholder[b-69d1qry93x] {
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.2);
    border-radius: 0.5rem;
    border: 3px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255,255,255,0.5);
}

.scan-id-card-details[b-69d1qry93x] {
    background: rgba(255,255,255,0.15);
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-top: 1rem;
}

.scan-id-card-detail-item[b-69d1qry93x] {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.scan-id-card-detail-item:last-child[b-69d1qry93x] {
    border-bottom: none;
}

.scan-id-card-label[b-69d1qry93x] {
    font-weight: 600;
    opacity: 0.9;
}

.scan-id-card-value[b-69d1qry93x] {
    font-weight: 500;
}

/* Simple Scan Entry */
.scan-simple-entry[b-69d1qry93x] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--alms-bg-light);
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.scan-simple-photo[b-69d1qry93x] {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 0.375rem;
    border: 2px solid var(--bs-border-color);
}

.scan-simple-placeholder[b-69d1qry93x] {
    width: 50px;
    height: 50px;
    background: var(--neutral-100);
    border-radius: 0.375rem;
    border: 2px solid var(--bs-border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--bs-gray-500);
}

.scan-id-card-time[b-69d1qry93x] {
    opacity: 0.8;
}

.scan-simple-info[b-69d1qry93x] {
    flex: 1;
    min-width: 0;
}

.scan-simple-name[b-69d1qry93x] {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--primary-900);
}

.scan-simple-time[b-69d1qry93x] {
    font-size: 0.875rem;
    color: var(--alms-text-muted);
}

.scan-simple-status[b-69d1qry93x] {
    font-size: 0.875rem;
    font-weight: 600;
}
/* _content/ALMS/Components/Pages/AuditTrail.razor.rz.scp.css */
/* Desktop: keep the timestamp and IP address on one line so the row height comes from the Account / Result text. */
@media (min-width: 768px) {
    .ui-table td[data-label="When"][b-qytj55hger],
    .ui-table td[data-label="IP address"][b-qytj55hger] {
        white-space: nowrap;
    }

    .ui-table td[data-label="Result"][b-qytj55hger] {
        overflow-wrap: break-word;
    }
}
/* _content/ALMS/Components/Pages/CandidatePerformance.razor.rz.scp.css */
/* Scoped to CandidatePerformance.razor (Blazor CSS isolation). Moved from the page's <style> block. */

.cp-stat-card[b-4zcf5g9gsg] {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}

.cp-stat-card:hover[b-4zcf5g9gsg] {
    transform: translateY(-2px);
}

.cp-stat-value[b-4zcf5g9gsg] {
    font-size: 1.75rem;
    font-weight: 700;
}

.cp-stat-label[b-4zcf5g9gsg] {
    font-size: 0.8rem;
    color: var(--alms-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cp-section-nav .btn[b-4zcf5g9gsg] {
    border-radius: 2rem;
    font-size: 0.85rem;
}

.cp-section-nav .btn.active[b-4zcf5g9gsg] {
    font-weight: 600;
}

.cp-cutline[b-4zcf5g9gsg] {
    border-bottom: 3px solid var(--danger-600);
}

.cp-rank-winner[b-4zcf5g9gsg] {
    background-color: rgba(25, 135, 84, 0.08) !important;
}

.cp-rank-loser[b-4zcf5g9gsg] {
    background-color: rgba(220, 53, 69, 0.05) !important;
}

.cp-slate-own[b-4zcf5g9gsg] {
    border-left: 4px solid var(--success-700);
}

.cp-slate-opp[b-4zcf5g9gsg] {
    border-left: 4px solid var(--danger-600);
}

.cp-priority-badge[b-4zcf5g9gsg] {
    font-size: 0.65rem;
    vertical-align: middle;
}

.cp-funnel-stage[b-4zcf5g9gsg] {
    text-align: center;
    padding: 1rem;
    border-radius: 0.5rem;
    min-width: 120px;
    display: flex;
    flex-direction: column;
}

/* "+N special" badge: inside the stage, under the number (no absolute positioning) */
.cp-funnel-special[b-4zcf5g9gsg] {
    align-self: flex-start;
    margin-block: 0.25rem;
}

.cp-funnel-arrow[b-4zcf5g9gsg] {
    display: flex;
    align-items: center;
    color: var(--alms-text-muted);
    font-size: 1.5rem;
}

.cp-conversion[b-4zcf5g9gsg] {
    font-size: 0.7rem;
    color: var(--alms-text-muted);
    text-align: center;
}

.cp-brgy-card[b-4zcf5g9gsg] {
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.cp-brgy-card:hover[b-4zcf5g9gsg] {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.cp-funnel-stage--paid[b-4zcf5g9gsg] {
    background-color: color-mix(in srgb, var(--alms-stat-purple) 10%, transparent);
    border: 1px solid var(--alms-stat-purple);
}

.cp-landing-head[b-4zcf5g9gsg],
.cp-slate-head[b-4zcf5g9gsg],
.cp-h2h-head[b-4zcf5g9gsg] {
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
}

.cp-stat-value[b-4zcf5g9gsg],
.cp-stat-label[b-4zcf5g9gsg] {
    overflow-wrap: break-word;
}

/* Tablet widths: six KPI tiles share ~700px, so the 1.75rem figure overflows
   a col-md-2 tile. Step it down until the content area is wide enough. */
@media (min-width: 768px) and (max-width: 1399.98px) {
    .cp-stat-value[b-4zcf5g9gsg] {
        font-size: 1.35rem;
    }
}

/* ── Phones (below 768px) — DOCS/MOBILE_DESIGN/CandPerf.html ──
   Section buttons and position tabs are chip rows, KPI tiles a stat strip
   (both d-md-none in the markup), every table a .ui-table--stack-sm card
   list and the funnel stages stack top to bottom. */
@media (max-width: 767.98px) {
    .cp-expand-cell > div[b-4zcf5g9gsg] {
        width: 100%;
        border-radius: var(--radius-lg);
    }

    .cp-funnel-stage[b-4zcf5g9gsg] {
        flex: 1 1 100%;
    }

    .cp-funnel-arrow[b-4zcf5g9gsg] {
        flex: 1 1 100%;
        justify-content: center;
        font-size: var(--text-base);
    }

    .cp-funnel-arrow[b-4zcf5g9gsg]  svg {
        transform: rotate(90deg);
    }
}
/* _content/ALMS/Components/Pages/Components/DeviceDetailsView.razor.rz.scp.css */
/* Scoped to DeviceDetailsView.razor (device detail modal body). */

.device-detail-section[b-jbuyyy96b4] {
    margin-bottom: var(--space-6);
}

.device-detail-section-title[b-jbuyyy96b4] {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--neutral-900);
    margin-bottom: var(--space-3);
    padding-bottom: var(--space-2);
    border-bottom: 2px solid var(--neutral-200);
}

.device-detail-grid[b-jbuyyy96b4] {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

@media (max-width: 767.98px) {
    .device-detail-grid[b-jbuyyy96b4] {
        grid-template-columns: 1fr;
    }
}

.device-detail-item[b-jbuyyy96b4] {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.device-detail-label[b-jbuyyy96b4] {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--neutral-600);
}

.device-detail-value[b-jbuyyy96b4] {
    font-size: var(--text-base);
    color: var(--neutral-900);
}

/* Grid tracks are 1fr (min-content floor): a long unbroken value such as the connection id would
   push the second column out of the modal. */
.device-detail-item[b-jbuyyy96b4] {
    min-width: 0;
}

.device-detail-value code[b-jbuyyy96b4] {
    word-break: break-all;
}
/* _content/ALMS/Components/Pages/Components/DeviceRegistrationForm.razor.rz.scp.css */
/* Scoped to DeviceRegistrationForm.razor — the one-time credential panel shown after registering a device. */

.credential-display[b-xgfe6dh6e8] {
    background: var(--warning-200);
    border: 2px solid var(--warning-600);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin: var(--space-4) 0;
}

.credential-warning[b-xgfe6dh6e8] {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--warning-800);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-3);
}

.credential-item[b-xgfe6dh6e8] {
    margin-bottom: var(--space-3);
}

.credential-label[b-xgfe6dh6e8] {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--neutral-700);
    margin-bottom: var(--space-1);
}

.credential-value[b-xgfe6dh6e8] {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background: #fff;
    border: 1px solid var(--neutral-300);
    border-radius: var(--radius-md);
    padding: var(--space-3);
    font-family: 'Courier New', monospace;
    font-size: var(--text-sm);
    word-break: break-all;
}

.btn-copy[b-xgfe6dh6e8] {
    padding: var(--space-1) var(--space-2);
    background: var(--primary-600);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: var(--text-xs);
    white-space: nowrap;
}

.btn-copy:hover[b-xgfe6dh6e8] {
    background: var(--primary-700);
}
/* _content/ALMS/Components/Pages/Dashboard.razor.rz.scp.css */
/* Scoped to Dashboard.razor (Blazor CSS isolation). Moved from the page's <style> block. */

/* ── Page header ─────────────────────────────────────────── */
/* ── KPI: hide left stripe on this page ─────────────────── */
.kpi-card[b-znxe8a9owv]::before {
    display: none;
}

/* ── Desktop / tablet (768px and up) ─────────────────────── */
@media (min-width: 768px) {
    /* Tab strip: six tabs do not fit one line below 1200px, so tighten the
       padding and drop the icons there instead of wrapping to a ragged 2nd row. */
    .ed-tabs .nav-link[b-znxe8a9owv] {
        white-space: nowrap;
    }

    /* Turnout donut card: ring + legend wrap (legend under the ring) when the
       card is too narrow for both side by side (992-1300px). */
    .ed-donut-body[b-znxe8a9owv] {
        flex-wrap: wrap;
        row-gap: var(--space-3);
    }

    /* Velocity card (Overview): legend and "encoded last 7 days" share the
       top edge with the centred title pill, so they overlap when the card is
       narrow. In a narrow card they drop below the pill. */
    .ed-vel[b-znxe8a9owv] {
        container-type: inline-size;
    }

    /* Chart heights: shared .chart-fit / .chart-fit--compact in base.css */

    /* Turnout donut: ring scales with the card, capped so it never gets huge
       (was fixed 220px); the wrapper shrink-wraps on phones (140px override). */
    .ed-donut-body[b-znxe8a9owv] {
        container-type: inline-size;
    }

    .ed-donut-ring[b-znxe8a9owv] {
        width: clamp(220px, 38cqi, 300px);
        height: clamp(220px, 38cqi, 300px);
    }

    .ed-donut-ring[b-znxe8a9owv]  > div:first-child {
        width: 100%;
        height: 100%;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .ed-tabs .nav-link[b-znxe8a9owv] {
        padding-inline: 0.7rem;
        font-size: 0.84rem;
    }

    .ed-tabs .nav-link[b-znxe8a9owv]  .svg-icon {
        display: none;
    }
}

/* Velocity overlays (legend top-left, stat top-right) — all widths */
.ed-vel__legend[b-znxe8a9owv],
.ed-vel__stat[b-znxe8a9owv] {
    top: 0.75rem;
    z-index: var(--z-overlay-local);
}

.ed-vel__legend[b-znxe8a9owv] {
    left: 1.25rem;
}

.ed-vel__stat[b-znxe8a9owv] {
    right: 1.25rem;
}

@container (max-width: 38rem) {
    .ed-vel__legend[b-znxe8a9owv],
    .ed-vel__stat[b-znxe8a9owv] {
        top: 2.25rem;
    }

    .ed-vel .card-body > .ui-mobile-hide[b-znxe8a9owv] {
        padding-top: 1.75rem;
    }
}

/* ── Tab min-height override (shared base is 300px) ─────── */
.ed-expected-tick[b-znxe8a9owv] {
    display: none;
}

.ed-tab-content[b-znxe8a9owv] {
    min-height: 320px;
}

/* ── Leaderboard ─────────────────────────────────────────── */
.rank-badge[b-znxe8a9owv] {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.rank-gold[b-znxe8a9owv] {
    background: linear-gradient(135deg, var(--warning-400), var(--warning-500));
    color: var(--neutral-800);
}

.rank-silver[b-znxe8a9owv] {
    background: linear-gradient(135deg, var(--neutral-200), var(--neutral-300));
    color: var(--neutral-800);
}

.rank-bronze[b-znxe8a9owv] {
    background: linear-gradient(135deg,#cd7f32,#b87333);   /* bronze: no token */
    color: var(--neutral-0);
}

.rank-default[b-znxe8a9owv] {
    background: var(--neutral-100);
    color: var(--neutral-600);
}

.rank-badge--sm[b-znxe8a9owv] {
    width: 28px;
    height: 28px;
}

.ed-lb-card[b-znxe8a9owv] {
    border: 0.5px solid rgb(0 0 0 / .15);
}

.ed-quota[b-znxe8a9owv] {
    height: 6px;
}

.metric-val[b-znxe8a9owv] {
    font-size: 1.15rem;
    font-weight: 700;
}

/* ── Donut center overlay ───────────────────────────────── */
.donut-center-value[b-znxe8a9owv] {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--neutral-900);
    line-height: 1.1;
}

.donut-center-label[b-znxe8a9owv] {
    font-size: .7rem;
    color: var(--foreground-muted);
    margin-top: 2px;
}

/* ── Special voter accent ───────────────────────────── */
.text-purple[b-znxe8a9owv] {
    color: var(--purple);
}

.bg-purple[b-znxe8a9owv] {
    background-color: var(--purple) !important;
}

/* ── Phones (below 768px) — DOCS/MOBILE_DESIGN/EncoderDash.html ──
   Page tabs are a chip row and KPIs a stat strip (both d-md-none in the
   markup), the donut and 14-day velocity bars are 140px (Responsive option
   in .razor.cs) and every table is a .ui-table--stack-sm card list. */
@media (max-width: 767.98px) {
    /* No white container under the header: the cards sit straight on the
       page (made white in responsive.css, main:has(.ed-tab-content)). */
    .ed-tab-content[b-znxe8a9owv] {
        min-height: 0;
        padding: 0.5rem 0 0;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .ed-donut-legend[b-znxe8a9owv] {
        font-size: var(--text-sm);
    }

    /* Expected turnout inside the 140px ring: sized to fit the hole */
    .donut-center-value[b-znxe8a9owv] { font-size: 1rem; }
    .donut-center-label[b-znxe8a9owv] { font-size: 0.5625rem; margin-top: 1px; }

    /* Turnout legend: pushed to the right edge, text then colour dot */
    .ed-donut-legend[b-znxe8a9owv] {
        margin-left: auto;
    }

    .ed-donut-legend .chart-legend-row[b-znxe8a9owv] {
        flex-direction: row-reverse;
        justify-content: flex-start;
    }

    /* Barangay Snapshot (Overview) + Geographic tab, barangay rows as a
       strip. The row itself is unframed: the barangay name stands OUTSIDE,
       vertical at the left, and a bordered box (the row's ::before) holds
       the numbers. Line 1 = Leaders, Members, Special, Unresolved; line 2 =
       Voters, Expected, Phantom, centred. The name adapts to the card
       (font scales with --name-len, set in the markup), never the reverse.
       "Not found" + "Risk" hidden; purok drill-down rows stay stacked. */
    .ed-brgy > tbody > tr:not(.is-drilldown)[b-znxe8a9owv] {
        position: relative;
        /* Stats fill TWO rows: --ed-per-row (set on the table in the markup,
           = half the visible stats, rounded up) per line, a short last line
           centred. 5 stats = 3 + 2, 7 stats = 4 + 3. */
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 0.625rem;
        align-items: flex-start;
        padding: 0.875rem 0.75rem 0.875rem 2.75rem;
        overflow: hidden;
        border: 1px solid var(--neutral-200);
        border-radius: 14px;
        background: var(--card-background, #fff) !important;   /* beats .row-danger / .row-warning (base.css, !important); no risk tint, the badges carry the state */
    }

    .ed-brgy > tbody > tr:not(.is-drilldown) > td[b-znxe8a9owv] {
        border: 0 !important;   /* no cell borders: the card's own border is the only line */
        position: relative;
        box-shadow: none !important;   /* the table paints the row tint into every cell */
        background: transparent;
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        justify-content: flex-end;
        flex: 0 0 calc(100% / var(--ed-per-row, 4));
        width: calc(100% / var(--ed-per-row, 4));
        gap: 0.25rem;
        padding: 0;
        text-align: center;
        font-size: 1.125rem;
        font-weight: 800;
        line-height: 1.1;
        white-space: nowrap;
        font-variant-numeric: tabular-nums;
    }

    .ed-brgy > tbody > tr:not(.is-drilldown) > td[b-znxe8a9owv]::before {
        max-width: none;
        margin: 0;
        padding: 0;
        font-size: 0.6875rem;
        font-weight: 500;
        text-align: center;
    }

    /* Name: outside the box, vertical, bottom to top. Absolute so it can
       never make the row taller; font shrinks with the name's length. */
    .ed-brgy > tbody > tr:not(.is-drilldown) > td.ui-stack-title[b-znxe8a9owv] {
        position: absolute;
        inset: 0 auto 0 0.25rem;
        width: 2rem;
        display: flex;
        align-items: center;
        justify-content: center;
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        overflow: hidden;
        font-size: clamp(0.625rem, calc(8.5rem / max(var(--name-len, 8), 1)), 0.9375rem);
        font-weight: 900;
        text-overflow: ellipsis;
    }

    .ed-brgy > tbody > tr:not(.is-drilldown) > td.ui-stack-title svg[b-znxe8a9owv],
    .ed-brgy > tbody > tr:not(.is-drilldown) > td.ui-stack-title .svg-icon[b-znxe8a9owv] {
        display: none !important;   /* the sheet replaces the inline arrow */
    }

    .ed-brgy > tbody > tr:not(.is-drilldown)[b-znxe8a9owv] {
        min-height: 7rem;   /* room for a long vertical name even when the strip is gone */
    }

    /* Section headings on every tab: a tinted 36px icon circle beside the
       title, with the optional description as a muted line under it. */
    .ed-tab-content[b-znxe8a9owv]  .ui-table-card__head {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        column-gap: 0.75rem;
        row-gap: 0.125rem;
        align-items: center;
        padding-inline: 0;
    }

    .ed-tab-content[b-znxe8a9owv]  .ui-table-card__head > svg {
        grid-row: 1 / span 2;
        box-sizing: border-box;
        width: 2.25rem;
        height: 2.25rem;
        padding: 0.5rem;
        border-radius: var(--radius-full);
        background: var(--primary-50);
        color: var(--primary-900);
    }

    .ed-tab-content[b-znxe8a9owv]  .ui-table-card__head > .ui-table-card__title {
        grid-column: 2;
        font-size: 1.0625rem;
        font-weight: var(--font-bold);
        line-height: 1.25;
    }

    .ed-tab-content[b-znxe8a9owv]  .ui-table-card__head > .ui-table-card__desc {
        grid-column: 2;
        margin: 0;
        font-size: var(--text-sm);
        font-weight: var(--font-normal);
        color: var(--foreground-muted);
    }

    /* No subtext: the icon takes one row, so it centres on the title */
    .ed-tab-content[b-znxe8a9owv]  .ui-table-card__head:not(:has(> .ui-table-card__desc)) > svg { grid-row: 1; }

    /* Every section is frameless on phones, even with no card list inside
       (the empty state used to keep the box, with the icon pressed on its edge). */
    .ed-tab-content[b-znxe8a9owv]  .ui-table-card {
        border-color: transparent;
        background: transparent;
        overflow: visible;
    }

    .ed-tab-content[b-znxe8a9owv]  .ui-table-card__head {
        border-bottom: 0;
    }

    .ed-tab-content[b-znxe8a9owv]  .ui-table-card__head > .ui-table-card__title {
        color: var(--neutral-900);
    }

    .ed-tab-content[b-znxe8a9owv]  .ui-table-card__head > .ui-count,
    .ed-tab-content[b-znxe8a9owv]  .ui-table-card__head > .ui-table-card__actions {
        grid-column: 3;
        grid-row: 1 / span 2;
    }

    /* Geographic: tapping a barangay opens its puroks in a bottom sheet
       (AppModal in Dashboard.razor), so the cards never grow. */
    .ed-purok[b-znxe8a9owv] {
        padding: 0.75rem 0;
        border-top: 1px solid var(--neutral-200);
    }

    .ed-purok:first-child[b-znxe8a9owv] {
        padding-top: 0;
        border-top: 0;
    }

    .ed-purok__name[b-znxe8a9owv] {
        margin: 0 0 0.5rem;
        font-size: 1rem;
        font-weight: 700;
    }

    .ed-purok__grid[b-znxe8a9owv] {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(var(--ed-detail-rows, 4), auto);
        grid-auto-flow: column;
        column-gap: 1.5rem;
        row-gap: 0.375rem;
        margin: 0;
    }

    .ed-purok__grid > div[b-znxe8a9owv] {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .ed-purok__grid dt[b-znxe8a9owv] {
        font-size: var(--text-xs);
        font-weight: 600;
        white-space: nowrap;
        color: var(--foreground-muted);
    }

    .ed-purok__grid dd[b-znxe8a9owv] {
        margin: 0;
        font-size: var(--text-sm);
        font-weight: 700;
        font-variant-numeric: tabular-nums;
    }
    .ed-brgy > tbody > tr:not(.is-drilldown) > td[data-label="Not found"][b-znxe8a9owv],
    .ed-brgy > tbody > tr:not(.is-drilldown) > td[data-label="Risk"][b-znxe8a9owv] {
        display: none;
    }

    
    /* Overview cards, trimmed to what a phone needs (board: EncoderDash).
       Desktop keeps every detail. */

    /* Encoding Cycle Tracker: bar, "encoded … target", expected + pace */
    .deadline-card .col-auto[b-znxe8a9owv],
    .deadline-card .col > .d-flex:first-child[b-znxe8a9owv],
    .deadline-card .progress + .d-flex > span:nth-child(2)[b-znxe8a9owv],
    .deadline-card .progress ~ .d-flex.mt-2 > span:nth-child(3)[b-znxe8a9owv] {
        display: none;
    }

    .deadline-card .row[b-znxe8a9owv] {
        --bs-gutter-y: 0;
    }

    .deadline-card .progress[b-znxe8a9owv] {
        height: 12px;
        margin-top: 0.25rem;
        position: relative;
        overflow: visible;
    }

    .ed-expected-tick[b-znxe8a9owv] {
        position: absolute;
        top: -4px;
        width: 2px;
        height: 20px;
        background: var(--primary-900);
    }

    /* Velocity: title + bars + toggle; drop the legend and 7-day stat */
    .chart-card > .position-absolute[b-znxe8a9owv] {
        display: none;
    }

    .chart-card > .card-body.mt-4[b-znxe8a9owv] {
        margin-top: 0 !important;
    }

    }

/* ── Encoders tab (phones): floating filter / view buttons + filter sheet ── */
.ed-fab[b-znxe8a9owv] {
    position: fixed;
    right: var(--mobile-gutter);
    z-index: var(--z-fixed);
    width: 56px;
    height: 56px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--card-background);
    border: 1px solid var(--neutral-200);
    box-shadow: 0 4px 12px rgb(0 0 0 / .18);
    color: var(--primary-900);
    font-size: 24px;
}

.ed-fab:active[b-znxe8a9owv] { background: var(--neutral-100); }
.ed-fab:focus-visible[b-znxe8a9owv] { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.ed-fab--view[b-znxe8a9owv]   { bottom: calc(var(--mobile-bottom-offset, 3.75rem) + 1rem); }
.ed-fab--filter[b-znxe8a9owv] { bottom: calc(var(--mobile-bottom-offset, 3.75rem) + 1rem + 56px + 12px); }

.ed-sheet-form[b-znxe8a9owv] {
    display: grid;
    gap: 1rem;
}

.ed-sheet-form label[b-znxe8a9owv] {
    display: grid;
    gap: .25rem;
    font-weight: 600;
    font-size: var(--text-sm);
}

.ed-sheet-form .form-select[b-znxe8a9owv],
.ed-sheet-form .form-control[b-znxe8a9owv] {
    min-height: 50px;
    font-weight: 400;
}

/* â”€â”€ Phones: filter dot, bottom clearance, leaderboard, leaders, quota sheet â”€â”€ */
.ed-fab--dot[b-znxe8a9owv]::after {
    content: "";
    position: absolute;
    top: 6px;
    right: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-600);
    border: 2px solid var(--card-background);
}

.ed-sheet-form--pair[b-znxe8a9owv] {
    grid-template-columns: 1fr 1fr;
}

.ed-chip-wrap[b-znxe8a9owv] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.ed-quota-row[b-znxe8a9owv] {
    padding: 0.75rem 0;
    border-top: 1px solid var(--neutral-200);
}

.ed-quota-row:first-of-type[b-znxe8a9owv] {
    padding-top: 0;
    border-top: 0;
}

.ed-quota-row__name[b-znxe8a9owv] {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.ed-quota-row__sub[b-znxe8a9owv] {
    margin: 0 0 0.5rem;
    font-size: var(--text-sm);
    color: var(--foreground-muted);
}

@media (max-width: 767.98px) {
    /* Special tab: per-barangay target card, compact. Row 1 = pin + name with Auto Suggest on the right;
       rows 2-3 = six stats in three columns (value over label). */
    .ed-targets.ui-table--stack-sm > tbody > tr[b-znxe8a9owv] {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 0;
        row-gap: var(--space-3);
        padding: var(--space-3) var(--space-4) var(--space-4);
        border-radius: var(--radius-xl);
    }

    .ed-targets.ui-table--stack-sm > tbody > tr > td[b-znxe8a9owv] {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0.125rem;
        min-width: 0;
        padding: 0 var(--space-2) 0 0;
        text-align: left;
        font-size: 1rem;
        font-weight: var(--font-bold);
        line-height: 1.2;
        font-variant-numeric: tabular-nums;
    }

    .ed-targets.ui-table--stack-sm > tbody > tr > td[b-znxe8a9owv]::before {
        order: 2;
        max-width: none;
        margin: 0;
        padding: 0;
        font-size: var(--text-xs);
        font-weight: var(--font-normal);
        line-height: 1.3;
        color: var(--foreground-muted);
    }

    .ed-targets.ui-table--stack-sm > tbody > tr > .ui-stack-title[b-znxe8a9owv] {
        flex-direction: row;
        align-items: center;
        gap: var(--space-2);
        grid-column: 1 / 3;
        grid-row: 1;
        padding: var(--space-1) 0 var(--space-3);
        border-bottom: 1px solid var(--border);
        font-size: var(--text-sm);
        letter-spacing: 0.02em;
        text-transform: uppercase;
        overflow-wrap: anywhere;
    }

    .ed-targets__pin[b-znxe8a9owv] { width: 1rem; height: 1rem; flex: none; color: var(--primary-900); }

    .ed-targets.ui-table--stack-sm > tbody > tr > [data-label="Voters"][b-znxe8a9owv] { grid-column: 1; grid-row: 2; }
    .ed-targets.ui-table--stack-sm > tbody > tr > [data-label="Members"][b-znxe8a9owv] { grid-column: 2; grid-row: 2; }
    .ed-targets.ui-table--stack-sm > tbody > tr > [data-label="Goal"][b-znxe8a9owv] { grid-column: 3; grid-row: 2; }
    .ed-targets.ui-table--stack-sm > tbody > tr > [data-label="Specials"][b-znxe8a9owv] { grid-column: 1; grid-row: 3; }
    .ed-targets.ui-table--stack-sm > tbody > tr > [data-label="Remaining"][b-znxe8a9owv] { grid-column: 2; grid-row: 3; }
    .ed-targets.ui-table--stack-sm > tbody > tr > [data-label="Progress"][b-znxe8a9owv] { grid-column: 3; grid-row: 3; }

    .ed-targets.ui-table--stack-sm > tbody > tr > .ui-stack-actions[b-znxe8a9owv] {
        grid-column: 3;
        grid-row: 1;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        padding: var(--space-1) 0 var(--space-3);
        margin: 0;
        border-top: 0;
        border-bottom: 1px solid var(--border);
    }

    /* Overrides the global 44px phone .btn-sm height: a 32px chip that sits on the name's line */
    .ed-targets .ed-targets__btn.btn-sm[b-znxe8a9owv] {
        display: inline-flex;
        align-items: center;
        gap: var(--space-1);
        min-height: 2rem;
        padding: 0 var(--space-3);
        line-height: 1;
        border-radius: var(--radius-lg);
        font-size: var(--text-xs);
        font-weight: var(--font-bold);
        white-space: nowrap;
    }

    /* The floating buttons never cover the last item */
    .ed-tab-content:has(.ed-fab)[b-znxe8a9owv] {
        padding-bottom: calc(var(--mobile-bottom-offset, 3.75rem) + 5.5rem);
    }

    /* A lone filter button (Leaders) takes the bottom slot */
    .ed-fab--filter:only-child[b-znxe8a9owv] {
        bottom: calc(var(--mobile-bottom-offset, 3.75rem) + 1rem);
    }

    /* Special: the period toggle gets its own full-width line under the title */
    .ed-tab-content[b-znxe8a9owv]  .ui-table-card__actions:has(.ed-lb-toggle) {
        flex: 1 0 100%;
    }

    /* Leaderboard cards: flat, neutral, no gold outline */
    .ed-lb-card[b-znxe8a9owv] {
        border: 1px solid var(--neutral-200) !important;
        box-shadow: none !important;
    }

    /* Leaders cards: no risk tint, the chip carries the state; open button is a 44px corner target */
    .ed-leaders > tbody > tr:not(.is-drilldown)[b-znxe8a9owv] {
        position: relative;
        background: var(--card-background) !important;
    }

    .ed-leaders > tbody > tr:not(.is-drilldown) > td[b-znxe8a9owv] {
        box-shadow: none !important;
    }

    .ed-leaders > tbody > tr > td.ui-stack-title[b-znxe8a9owv] {
        padding-right: 2.75rem;
    }

    .ui-table.ui-table--stack-sm.ed-leaders > tbody > tr > td.ui-stack-actions[b-znxe8a9owv] {
        position: absolute;
        top: 0;
        right: 0;
        margin: 0;
        padding: 0;
        border-top: 0;
    }

    .ed-expand[b-znxe8a9owv] {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
    }
}
/* _content/ALMS/Components/Pages/DeliveryPhotos.razor.rz.scp.css */
/* Scoped to DeliveryPhotos.razor (Blazor CSS isolation). Phone rules live in the media query at the bottom. */

/* ── Field app call-to-action (Upload tab) ── */
.dp-field-cta[b-n1wq1z3jjp] {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--primary-200);
    border-radius: var(--radius-xl);
    background: var(--primary-50);
}

.dp-field-cta__icon[b-n1wq1z3jjp] {
    display: inline-flex;
    flex: 0 0 auto;
    color: var(--primary-600);
}

.dp-field-cta__body[b-n1wq1z3jjp] {
    flex: 1 1 auto;
    min-width: 0;
}

.dp-field-cta__title[b-n1wq1z3jjp] {
    font-weight: var(--font-semibold);
    color: var(--neutral-900);
}

.dp-field-cta__hint[b-n1wq1z3jjp] {
    font-size: var(--text-sm);
    color: var(--neutral-700);
}

.dp-field-cta__btn[b-n1wq1z3jjp] {
    flex: 0 0 auto;
}

/* ── Upload drop zone ── */
.dp-drop[b-n1wq1z3jjp] {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-5) var(--space-4);
    border: 2px dashed var(--neutral-300);
    border-radius: var(--radius-xl);
    background: var(--neutral-50);
    color: var(--neutral-700);
    text-align: center;
}

.dp-drop:hover[b-n1wq1z3jjp],
.dp-drop:focus-within[b-n1wq1z3jjp] {
    border-color: var(--primary-600);
    background: var(--primary-50);
}

.dp-drop[b-n1wq1z3jjp]  .dp-drop__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.dp-drop__title[b-n1wq1z3jjp] {
    font-weight: var(--font-semibold);
    color: var(--neutral-900);
}

.dp-drop__hint[b-n1wq1z3jjp] {
    max-width: 38rem;
    font-size: var(--text-sm);
    color: var(--neutral-600);
}

.dp-progress[b-n1wq1z3jjp] {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    margin-top: var(--space-3);
}

/* ── Thumbnails, cards ── */
.dp-thumb[b-n1wq1z3jjp] {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius-md);
    background: var(--neutral-100);
}

.dp-thumb--empty[b-n1wq1z3jjp] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-500);
}

/* Review list: the Match column takes the leftover width and truncates, so the narrow (5/12) list never scrolls sideways */
td:has(> .dp-match-name)[b-n1wq1z3jjp] {
    width: 100%;
    max-width: 0;
}

.dp-match-name[b-n1wq1z3jjp] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dp-flags[b-n1wq1z3jjp] {
    display: inline-flex;
    flex-wrap: wrap;
    gap: var(--space-1);
}

.dp-review-bar[b-n1wq1z3jjp] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.dp-cards[b-n1wq1z3jjp] {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-2);
}

.dp-card[b-n1wq1z3jjp] {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    width: 100%;
    padding: var(--space-3);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-xl);
    background: var(--card-background, transparent);
    text-align: left;
    color: inherit;
}

button.dp-card:focus-visible[b-n1wq1z3jjp] {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

.dp-card.is-selected[b-n1wq1z3jjp] {
    border-color: var(--primary-600);
    background: var(--primary-50);
}

.dp-card .dp-thumb[b-n1wq1z3jjp] {
    width: 56px;
    height: 56px;
    flex: 0 0 auto;
}

.dp-card__body[b-n1wq1z3jjp] {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.dp-card__name[b-n1wq1z3jjp] {
    font-weight: var(--font-semibold);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dp-card__meta[b-n1wq1z3jjp] {
    font-size: var(--text-xs);
    color: var(--neutral-600);
}

.dp-card__flags[b-n1wq1z3jjp] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
}

.dp-iconbtn[b-n1wq1z3jjp] {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--neutral-300);
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--neutral-700);
}

/* ── History filters ── */
.dp-filters[b-n1wq1z3jjp] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    width: 100%;
}

.dp-filters__search[b-n1wq1z3jjp] {
    flex: 1 1 220px;
    min-width: 200px;
}

.dp-filters__grid[b-n1wq1z3jjp] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

/* ── Details panel (inline on desktop, bottom sheet on phones) ── */
.dp-detail[b-n1wq1z3jjp] {
    padding: var(--space-4);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-xl);
    background: var(--card-background, transparent);
}

.dp-panel[b-n1wq1z3jjp] {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.dp-h[b-n1wq1z3jjp] {
    margin: 0 0 var(--space-2);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
}

.dp-flaglist[b-n1wq1z3jjp] {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin: 0;
    padding: 0;
    list-style: none;
}

.dp-flagitem[b-n1wq1z3jjp] {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
}

.dp-flagitem--warning[b-n1wq1z3jjp] {
    background: var(--warning-100);
    color: var(--warning-900);
}

.dp-flagitem--danger[b-n1wq1z3jjp] {
    background: var(--danger-100);
    color: var(--danger-900);
}

.dp-flagitem--neutral[b-n1wq1z3jjp] {
    background: var(--neutral-100);
    color: var(--neutral-700);
}

.dp-picks[b-n1wq1z3jjp] {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.dp-pick[b-n1wq1z3jjp] {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    width: 100%;
    min-height: 44px;
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    background: transparent;
    text-align: left;
    color: inherit;
}

.dp-pick:hover[b-n1wq1z3jjp] {
    border-color: var(--primary-600);
}

.dp-pick:focus-visible[b-n1wq1z3jjp] {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

.dp-pick.is-picked[b-n1wq1z3jjp] {
    border-color: var(--primary-600);
    background: var(--primary-50);
}

.dp-pick__body[b-n1wq1z3jjp] {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

.dp-pick__name[b-n1wq1z3jjp] {
    font-weight: var(--font-semibold);
}

.dp-pick__meta[b-n1wq1z3jjp] {
    font-size: var(--text-xs);
    color: var(--neutral-600);
}

.dp-avatar[b-n1wq1z3jjp] {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    object-fit: cover;
    background: var(--neutral-100);
}

.dp-avatar--initials[b-n1wq1z3jjp] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--primary-700);
    background: var(--primary-100);
}

.dp-search[b-n1wq1z3jjp] {
    position: relative;
    margin-top: var(--space-3);
}

.dp-search[b-n1wq1z3jjp]  .dp-search__icon {
    position: absolute;
    top: 50%;
    left: var(--space-3);
    transform: translateY(-50%);
    color: var(--neutral-500);
    pointer-events: none;
}

.dp-search .form-control[b-n1wq1z3jjp] {
    min-height: 44px;
    padding-left: calc(var(--space-3) + 1.75rem);
}

.dp-compare[b-n1wq1z3jjp] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
}

.dp-fig[b-n1wq1z3jjp] {
    margin: 0;
}

.dp-fig figcaption[b-n1wq1z3jjp] {
    margin-bottom: var(--space-1);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: var(--neutral-600);
}

.dp-fig img[b-n1wq1z3jjp] {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-lg);
    background: var(--neutral-100);
}

.dp-fig__empty[b-n1wq1z3jjp] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 1px dashed var(--neutral-300);
    border-radius: var(--radius-lg);
    color: var(--neutral-500);
    font-size: var(--text-sm);
}

.dp-map[b-n1wq1z3jjp] {
    width: 100%;
    height: 220px;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    background: var(--neutral-100);
}

.dp-legend[b-n1wq1z3jjp] {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-1);
    font-size: var(--text-xs);
    color: var(--neutral-600);
}

.dp-dot[b-n1wq1z3jjp] {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
}

.dp-dot--photo[b-n1wq1z3jjp] { background: var(--success-700); }
.dp-dot--saved[b-n1wq1z3jjp] { background: var(--primary-600); margin-left: var(--space-2); }

.dp-locline[b-n1wq1z3jjp] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    margin-top: var(--space-2);
    font-size: var(--text-sm);
}

.dp-distance[b-n1wq1z3jjp] {
    margin-top: var(--space-1);
    font-weight: var(--font-semibold);
}

.dp-actions[b-n1wq1z3jjp] {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: var(--space-2);
}

.dp-actions__delete[b-n1wq1z3jjp] {
    margin-right: auto;
}

/* Who the approval will tag, right above the buttons */
.dp-tagline[b-n1wq1z3jjp] {
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
    text-align: right;
}

/* Where the photo came from (top of the details panel) */
.dp-origin[b-n1wq1z3jjp] {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--neutral-600);
}

/* "Use as profile photo?" prompt */
.dp-prompt-photo[b-n1wq1z3jjp] {
    display: block;
    width: 100%;
    max-height: 40vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    background: var(--neutral-100);
}

/* Bulk approve confirmation: exactly who gets approved */
.dp-bulklist[b-n1wq1z3jjp] {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    max-height: 40vh;
    margin: 0 0 var(--space-2);
    padding: 0;
    overflow-y: auto;
    list-style: none;
}

.dp-bulklist li[b-n1wq1z3jjp] {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.dp-kbd[b-n1wq1z3jjp] {
    margin-left: var(--space-1);
    padding: 0 var(--space-1);
    border: 1px solid currentColor;
    border-radius: var(--radius-md);
    background: transparent;
    color: inherit;
    font-size: var(--text-xs);
    opacity: 0.7;
}

/* ── Phones ── */
@media (max-width: 767.98px) {
    .dp-drop[b-n1wq1z3jjp] {
        padding: var(--space-5) var(--space-3);
    }

    .dp-bulk[b-n1wq1z3jjp] {
        width: 100%;
        min-height: 44px;
    }

    .dp-filters__search[b-n1wq1z3jjp],
    .dp-filters__grid[b-n1wq1z3jjp] {
        flex: 1 1 100%;
    }

    .dp-filters__grid[b-n1wq1z3jjp] {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dp-filters .form-select[b-n1wq1z3jjp],
    .dp-filters .form-control[b-n1wq1z3jjp],
    .dp-filters__clear[b-n1wq1z3jjp] {
        min-height: 44px;
        width: 100%;
    }

    .dp-field-cta[b-n1wq1z3jjp] {
        flex-wrap: wrap;
        padding: var(--space-3);
    }

    .dp-field-cta__btn[b-n1wq1z3jjp] {
        width: 100%;
        min-height: 44px;
    }

    .dp-tagline[b-n1wq1z3jjp] {
        text-align: left;
    }

    .dp-actions[b-n1wq1z3jjp] {
        display: grid;
        grid-template-columns: auto repeat(3, minmax(0, 1fr));
    }

    .dp-actions__delete[b-n1wq1z3jjp] {
        margin-right: 0;
    }

    .dp-actions .btn[b-n1wq1z3jjp] {
        min-height: 44px;
    }

    .dp-compare[b-n1wq1z3jjp] {
        gap: var(--space-2);
    }
}
/* _content/ALMS/Components/Pages/DeviceManagement.razor.rz.scp.css */
/* Scoped to DeviceManagement.razor (Blazor CSS isolation). Moved from the page's <style> block. */

.device-status-dot[b-foyr1yy48l] {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: currentColor;
}
/* _content/ALMS/Components/Pages/GeneralMap.razor.rz.scp.css */
/* General Map — full-screen map layout, floating toolbar, layers panel, phone sheets.
   The Leaflet DOM (.leaflet-*, .gm-map-label markers) is created by wwwroot/JS/influenceMap.js
   under #influenceMap (.gm-map-bg), so those selectors use ::deep. Choropleth/legend colours
   (--map-*) must match influenceMap.js. */

/* ===== Full-screen map layout ===== */
.gm-fullscreen-wrapper[b-1lymq4bvbs] {
    position: fixed;
    top: 0;
    left: var(--sidebar-width); /* follows the tablet menu toggle (navToggle.js) */
    right: 0;
    bottom: 0;
    z-index: 5;
    overflow: hidden;
}

.gm-map-bg[b-1lymq4bvbs] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* ===== Loading overlay ===== */
.gm-loading-overlay[b-1lymq4bvbs] {
    position: absolute;
    inset: 0;
    z-index: var(--z-sticky);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.88);
    gap: 10px;
}

/* ===== Floating toolbar ===== */
.gm-toolbar[b-1lymq4bvbs] {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: var(--z-sticky);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: rgba(255, 255, 255, 0.93);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 8px 14px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.85);
}

.gm-toolbar-brand[b-1lymq4bvbs] {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: var(--alms-navy);
    font-size: 0.9rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.gm-toolbar-actions[b-1lymq4bvbs] {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.gm-brgy-select[b-1lymq4bvbs] {
    max-width: 220px;
    min-width: 140px;
}

.gm-btn[b-1lymq4bvbs] {
    white-space: nowrap;
    font-size: 0.8rem;
}

/* ===== Collapsible side panel ===== */
.gm-side-panel[b-1lymq4bvbs] {
    position: absolute;
    top: 64px;
    left: 12px;
    bottom: 12px;
    width: 262px;
    z-index: var(--z-sticky);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 14px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.85);
    overflow-y: auto;
    padding: 12px 14px;
}

.gm-panel-header[b-1lymq4bvbs] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.gm-panel-title[b-1lymq4bvbs] {
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--alms-navy);
    letter-spacing: 0.01em;
}

.gm-panel-divider[b-1lymq4bvbs] {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin: 7px 0;
}

/* ===== Legend dot — colours match influenceMap.js (tokens --map-*) ===== */
.gm-legend-dot[b-1lymq4bvbs] {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    flex-shrink: 0;
}

/* Tagging coverage (influence) */
.gm-legend-dot--success[b-1lymq4bvbs] { background: var(--success-500); }
.gm-legend-dot--lime[b-1lymq4bvbs] { background: var(--map-influence-lime); }
.gm-legend-dot--warning[b-1lymq4bvbs] { background: var(--warning-500); }
.gm-legend-dot--orange[b-1lymq4bvbs] { background: var(--bs-orange); }
.gm-legend-dot--danger[b-1lymq4bvbs] { background: var(--danger-600); }

/* GPS-outside-barangay marker: dashed ring, no fill */
.gm-legend-dot--flagged[b-1lymq4bvbs] {
    background: transparent;
    border: 1.5px dashed var(--danger-600);
}

/* Opposition overlay */
.gm-legend-dot--opp-strong[b-1lymq4bvbs] { background: var(--map-opp-strong); }
.gm-legend-dot--opp-high[b-1lymq4bvbs] { background: var(--map-opp-high); }
.gm-legend-dot--opp-mid[b-1lymq4bvbs] { background: var(--map-opp-mid); }
.gm-legend-dot--opp-low[b-1lymq4bvbs] { background: var(--map-opp-low); }

/* Weak-areas choropleth */
.gm-legend-dot--weak-1[b-1lymq4bvbs] { background: var(--map-weak-1); }
.gm-legend-dot--weak-2[b-1lymq4bvbs] { background: var(--map-weak-2); }
.gm-legend-dot--weak-3[b-1lymq4bvbs] { background: var(--map-weak-3); }
.gm-legend-dot--weak-4[b-1lymq4bvbs] { background: var(--map-weak-4); }
.gm-legend-dot--weak-5[b-1lymq4bvbs] {
    background: var(--map-weak-5);
    border: 1px solid var(--map-swatch-border);
}

/* ===== Map labels (barangay / purok names drawn on the Leaflet map) =====
   Map tiles stay light in dark mode, so labels use fixed colours with a halo. */
.gm-map-bg[b-1lymq4bvbs]  .gm-map-label {
    background: transparent;
    border: none;
    pointer-events: none;
}

.gm-map-bg[b-1lymq4bvbs]  .gm-map-label span {
    display: inline-block;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    font-weight: 700;
    line-height: 1.1;
    text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 2px #fff;
}

.gm-map-bg[b-1lymq4bvbs]  .gm-map-label--barangay span {
    font-size: 0.78rem;
    color: var(--alms-navy);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.gm-map-bg[b-1lymq4bvbs]  .gm-map-label--purok span {
    font-size: 0.68rem;
    color: var(--neutral-800);
}

/* ===== Spinner in layer label ===== */
.gm-layer-spinner[b-1lymq4bvbs] {
    width: 0.7rem;
    height: 0.7rem;
    border-width: 0.1em;
}

/* ===== Side-panel toggle tab ===== */
.gm-panel-tab[b-1lymq4bvbs] {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: var(--z-fixed);
    background: rgba(255, 255, 255, 0.93);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(200, 200, 200, 0.6);
    border-left: none;
    border-radius: 0 8px 8px 0;
    box-shadow: 3px 2px 10px rgba(0, 0, 0, 0.13);
    width: 20px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    color: var(--alms-navy);
    transition: left 0.25s ease, background 0.15s;
}

.gm-panel-tab:hover[b-1lymq4bvbs] {
    background: rgba(230, 240, 255, 0.97);
}

.gm-panel-tab.tab-open[b-1lymq4bvbs] {
    left: 274px; /* panel left (12px) + panel width (262px) */
}

.gm-panel-tab.tab-closed[b-1lymq4bvbs] {
    left: 12px;
    border-left: 1px solid rgba(200, 200, 200, 0.6);
    border-radius: 8px;
}

/* ===== Collapsible section toggle ===== */
.gm-section-toggle[b-1lymq4bvbs] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 5px 0;
    cursor: pointer;
    color: inherit;
    border-radius: 6px;
    transition: background 0.15s;
}

.gm-section-toggle:hover[b-1lymq4bvbs] {
    background: rgba(0, 0, 0, 0.05);
    padding-left: 4px;
    padding-right: 4px;
}

/* ===== Desktop/tablet fixes ===== */
@media (min-width: 768px) {
    /* Critical Areas modal: long labels/values wrap instead of pushing the badge out */
    .gm-ca-modal-label[b-1lymq4bvbs] {
        min-width: 0;
        overflow-wrap: break-word;
    }

    .gm-ca-modal-badge[b-1lymq4bvbs] {
        flex: 0 1 auto;
        max-width: 50%;
        white-space: normal;
        text-align: right;
    }
}

/* ===== Phones (below 768px) — DOCS/MOBILE_DESIGN/GenMap.html =====
   The map fills the space between the app bar and the tab bar (no sidebar).
   The side panel becomes a bottom sheet closed by .gm-panel-close. The side
   tab and Export (computer only) are hidden with .ui-mobile-hide in the
   markup; detail modals are AppModal bottom sheets. */

@media (max-width: 767.98px) {
    .gm-fullscreen-wrapper[b-1lymq4bvbs] {
        left: 0;
        top: 0;
        bottom: var(--mobile-bottom-offset);
    }

    /* Fixed-height header over the top; map and toolbar start below it (shared --gm-header-h) */
    .gm-fullscreen-wrapper[b-1lymq4bvbs] { --gm-header-h: 4rem; }

    .gm-fullscreen-wrapper > .gm-map-bg[b-1lymq4bvbs] {
        inset: var(--gm-header-h) 0 0 0;
        height: auto;
    }

    /* PageHeader is a child component: its root has no page scope attribute, so it needs ::deep */
    .gm-fullscreen-wrapper[b-1lymq4bvbs] >  .gm-phone-header {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        margin: 0;
        z-index: var(--z-fixed);
        height: var(--gm-header-h);
        overflow: hidden;
    }

    .gm-toolbar[b-1lymq4bvbs] {
        top: calc(var(--gm-header-h) + var(--space-2));
        left: var(--space-2);
        right: var(--space-2);
        gap: var(--space-2);
        padding: var(--space-2);
        border-radius: var(--radius-xl);
    }

    .gm-toolbar-brand[b-1lymq4bvbs] {
        display: none;
    }

    .gm-toolbar-actions[b-1lymq4bvbs] {
        flex: 1 1 auto;
        min-width: 0;
    }

    .gm-brgy-select[b-1lymq4bvbs] {
        flex: 1 1 auto;
        min-width: 0;
        max-width: none;
        min-height: 44px;
    }

    .gm-btn[b-1lymq4bvbs] {
        min-width: 44px;
        min-height: 44px;
    }

    .gm-side-panel[b-1lymq4bvbs] {
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        width: auto;
        max-height: 70%;
        padding: var(--space-3) var(--mobile-gutter) var(--space-4);
        border-radius: var(--mobile-sheet-radius) var(--mobile-sheet-radius) 0 0;
    }

    .gm-panel-close[b-1lymq4bvbs] {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        margin: calc(-1 * var(--space-2)) calc(-1 * var(--space-2)) calc(-1 * var(--space-2)) 0;
        color: var(--neutral-600);
    }

    .gm-section-toggle[b-1lymq4bvbs] {
        min-height: 44px;
    }

    /* P6.8 map chrome (GenMap board): layer chips, 48px round zoom, small legend, Critical Areas peek sheet */
    .gm-chips[b-1lymq4bvbs] {
        position: absolute;
        top: calc(var(--gm-header-h) + var(--space-3));
        left: 0;
        right: 0;
        z-index: var(--z-map-controls);
        padding: 0 var(--space-3);
    }

    .gm-chips > button[b-1lymq4bvbs] { box-shadow: var(--shadow-sm); }

    /* Zoom stack under the chips, right side; attribution stays at the bottom */
    .gm-map-bg[b-1lymq4bvbs]  .leaflet-bottom.leaflet-right {
        top: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    .gm-map-bg[b-1lymq4bvbs]  .leaflet-bottom.leaflet-right .leaflet-control-zoom { order: 1; margin-top: 68px; }
    .gm-map-bg[b-1lymq4bvbs]  .leaflet-bottom.leaflet-right .leaflet-control-attribution { order: 2; margin-top: auto; }

    .gm-fullscreen-wrapper .gm-map-bg[b-1lymq4bvbs]  .leaflet-control-zoom {
        margin-right: var(--space-3);
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .gm-fullscreen-wrapper .gm-map-bg[b-1lymq4bvbs]  .leaflet-control-zoom a,
    .gm-fullscreen-wrapper .gm-map-bg[b-1lymq4bvbs]  .leaflet-control-zoom a:first-child,
    .gm-fullscreen-wrapper .gm-map-bg[b-1lymq4bvbs]  .leaflet-control-zoom a:last-child {
        width: 48px;
        height: 48px;
        margin-bottom: var(--space-2);
        border: 1px solid var(--neutral-200);
        border-radius: var(--radius-full);
        background: #fff;
        color: var(--primary-900);
        font-size: 22px;
        line-height: 46px;
        box-shadow: var(--shadow-sm);
    }

    .gm-legend-float[b-1lymq4bvbs] {
        position: absolute;
        top: calc(var(--gm-header-h) + 68px);
        left: var(--space-3);
        z-index: var(--z-map-controls);
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: 8px 10px;
        border: 1px solid var(--neutral-200);
        border-radius: 10px;
        background: #fff;
        font-size: 12px;
        color: var(--neutral-800);
    }

    .gm-legend-row[b-1lymq4bvbs] {
        display: flex;
        align-items: center;
        gap: var(--space-2);
    }

    .gm-legend-row i[b-1lymq4bvbs] {
        flex: 0 0 auto;
        width: 14px;
        height: 14px;
        border: 1px solid var(--neutral-200);
        border-radius: 4px;
    }

    .gm-ca-sheet[b-1lymq4bvbs] {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: var(--z-sticky);
        border-top: 1px solid var(--neutral-200);
        border-radius: 20px 20px 0 0;
        background: #fff;
        box-shadow: var(--shadow-lg);
    }

    .gm-ca-head[b-1lymq4bvbs] {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        min-height: 64px;
        padding: 8px var(--space-4) var(--space-3);
        border: 0;
        background: transparent;
        text-align: left;
    }

    .gm-ca-handle[b-1lymq4bvbs] {
        align-self: center;
        width: 40px;
        height: 5px;
        margin-bottom: var(--space-2);
        border-radius: 3px;
        background: var(--neutral-300);
    }

    .gm-ca-title[b-1lymq4bvbs] { font-size: 17px; font-weight: 700; color: var(--neutral-900); }
    .gm-ca-sub[b-1lymq4bvbs] { font-size: var(--text-sm); color: var(--neutral-600); }

    .gm-ca-list[b-1lymq4bvbs] {
        max-height: 40vh;
        overflow-y: auto;
    }

    .gm-ca-row[b-1lymq4bvbs] {
        display: flex;
        align-items: center;
        gap: var(--space-3);
        min-height: 60px;
        padding: 10px var(--space-4);
        border-top: 1px solid var(--neutral-100);
    }

    .gm-ca-dot[b-1lymq4bvbs] {
        flex: 0 0 auto;
        width: 14px;
        height: 14px;
        border-radius: 4px;
        background: var(--warning-600);
    }

    .gm-ca-dot--danger[b-1lymq4bvbs] { background: var(--danger-600); }

    .gm-ca-text[b-1lymq4bvbs] { display: flex; flex-direction: column; min-width: 0; }
    .gm-ca-label[b-1lymq4bvbs] { font-size: 15px; font-weight: 700; color: var(--neutral-900); overflow-wrap: break-word; }
    .gm-ca-detail[b-1lymq4bvbs] { font-size: var(--text-sm); color: var(--neutral-600); }
}
/* _content/ALMS/Components/Pages/GeneralMapExportModal.razor.rz.scp.css */
/* General Map — print export modal */

.gm-export[b-wn6zqz6wh3] {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.gm-export__section + .gm-export__section[b-wn6zqz6wh3] {
    margin-top: var(--space-5);
    padding-top: var(--space-4);
    border-top: 1px solid var(--neutral-100);
}

.gm-export__heading[b-wn6zqz6wh3] {
    margin: 0 0 var(--space-2);
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary-800);
}

/* Segmented choices fill the row so the options read as equal alternatives */
.gm-export__seg[b-wn6zqz6wh3] {
    display: flex;
    width: 100%;
}

.gm-export__seg > button[b-wn6zqz6wh3] {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.gm-export__hint[b-wn6zqz6wh3] {
    margin: var(--space-2) 0 0;
    font-size: var(--text-sm);
    color: var(--foreground-muted);
}

.gm-export__summary[b-wn6zqz6wh3] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
    gap: var(--space-3);
    margin: 0;
}

.gm-export__summary > div[b-wn6zqz6wh3] {
    padding: var(--space-3);
    border: 1px solid var(--primary-100);
    border-radius: var(--radius-lg);
    background: var(--primary-50);
}

.gm-export__summary dt[b-wn6zqz6wh3] {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: var(--foreground-muted);
}

.gm-export__summary dd[b-wn6zqz6wh3] {
    margin: 2px 0 0;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--primary-900);
}

@media (max-width: 575.98px) {
    .gm-export__seg > button[b-wn6zqz6wh3] {
        white-space: normal;
    }
}
/* _content/ALMS/Components/Pages/Home.razor.rz.scp.css */
/* =====================================================================
   Home page — public landing page (hero, news, services, footer) plus the
   preloader and floating nav the GSAP script (wwwroot/JS/homeAnimations.js)
   drives. Everything here is in Home.razor's own markup.
   Global: the two :has(.landing-hero) rules that reach OUTSIDE this page
   (the layout's .content / main) live in wwwroot/css/features/landing-shell.css.
   ===================================================================== */

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp-b-xajhlikr0e {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn-b-xajhlikr0e {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==================== HERO SECTION ==================== */
/* Fixed hero background — lives outside the GSAP-transformed container so
   position:fixed is relative to the viewport, not the animated parent. */
.hero-bg-fixed[b-xajhlikr0e] {
    position: fixed;
    inset: 0;
    background: url('/Images/municipality/hero-bg.jpg') center/cover no-repeat;
    z-index: 0;
    pointer-events: none;
}

.landing-hero[b-xajhlikr0e] {
    position: relative;
    z-index: var(--z-raised);
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--municipality-primary);
    color: var(--municipality-text-white);
    overflow: hidden;
}

/* Public (not-authorized) hero: transparent so the fixed bg image shows through.
   padding-top offsets the fixed floating navbar (~80px) so the flex-center
   falls below it and the hero-identity block is never obscured. */
.landing-hero--public[b-xajhlikr0e] {
    background: transparent;
    padding-top: 5.5rem;
}

/* Wrapper that keeps the logo + municipality title together as one unit */
.hero-identity[b-xajhlikr0e] {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ==================== GRADIENT MESH ANIMATION ==================== */
.hero-gradient-mesh[b-xajhlikr0e] {
    position: absolute;
    inset: 0;
    z-index: var(--z-raised);
    pointer-events: none;
    overflow: hidden;
}

.mesh-blob[b-xajhlikr0e] {
    position: absolute;
    border-radius: 50%;
    filter: blur(72px);
    will-change: transform;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

/* Blob 1 — medium blue, drifts from top-left toward center */
.mesh-blob--1[b-xajhlikr0e] {
    width: 55%;
    height: 65%;
    background: radial-gradient(ellipse, rgba(37, 99, 235, 0.55) 0%, transparent 70%);
    top: -15%;
    left: -10%;
    animation: meshDrift1-b-xajhlikr0e 10s ease-in-out infinite alternate;
}

/* Blob 2 — deep indigo-navy, anchored bottom-right */
.mesh-blob--2[b-xajhlikr0e] {
    width: 52%;
    height: 70%;
    background: radial-gradient(ellipse, rgba(49, 46, 129, 0.6) 0%, transparent 70%);
    bottom: -20%;
    right: -5%;
    animation: meshDrift2-b-xajhlikr0e 13s ease-in-out infinite alternate;
}

/* Blob 3 — bright blue highlight, roams center */
.mesh-blob--3[b-xajhlikr0e] {
    width: 42%;
    height: 52%;
    background: radial-gradient(ellipse, rgba(96, 165, 250, 0.38) 0%, transparent 70%);
    top: 25%;
    left: 28%;
    animation: meshDrift3-b-xajhlikr0e 8s ease-in-out infinite alternate;
}

/* Blob 4 — cyan-blue, top-right */
.mesh-blob--4[b-xajhlikr0e] {
    width: 46%;
    height: 58%;
    background: radial-gradient(ellipse, rgba(14, 165, 233, 0.32) 0%, transparent 70%);
    top: -12%;
    right: -8%;
    animation: meshDrift4-b-xajhlikr0e 11s ease-in-out infinite alternate;
}

@keyframes meshDrift1-b-xajhlikr0e {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(18%, 22%) scale(1.15); }
}

@keyframes meshDrift2-b-xajhlikr0e {
    from { transform: translate(0, 0) scale(1.05); }
    to   { transform: translate(-20%, -18%) scale(0.88); }
}

@keyframes meshDrift3-b-xajhlikr0e {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(-15%, 18%) scale(1.2); }
}

@keyframes meshDrift4-b-xajhlikr0e {
    from { transform: translate(0, 0) scale(0.95); }
    to   { transform: translate(-12%, 16%) scale(1.1); }
}

/* Gradient overlay on top of the hero background */
.landing-hero[b-xajhlikr0e]::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient( 135deg, rgba(30, 58, 138, 0.78) 0%, rgba(59, 130, 246, 0.65) 100% );
    z-index: var(--z-raised);
}

.landing-hero-content[b-xajhlikr0e] {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: var(--municipality-spacing-xl);
    animation: scaleIn-b-xajhlikr0e 0.8s ease-out 0.2s both;
}

.landing-hero-logo[b-xajhlikr0e] {
    width: 120px;
    height: 120px;
    margin: 0;
    padding: 0;
    animation: scaleIn-b-xajhlikr0e 0.6s ease-out 0.3s both;
}

.landing-hero-logo img[b-xajhlikr0e] {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.hero-identity-svg[b-xajhlikr0e] {
    width: min(680px, 90vw);
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
    filter: drop-shadow(0 3px 14px rgba(0, 0, 0, 0.28));
    animation: fadeInUp-b-xajhlikr0e 0.8s ease-out 0.4s both;
}

/* ==================== SECTION CONTAINER ==================== */
.landing-section-container[b-xajhlikr0e] {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--municipality-spacing-md);
}

.landing-section-header[b-xajhlikr0e] {
    text-align: center;
    margin-bottom: var(--municipality-spacing-xl);
    animation: fadeInUp-b-xajhlikr0e 0.6s ease-out;
}

.landing-section-title[b-xajhlikr0e] {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--municipality-text-primary);
    margin-bottom: 1rem;
}

.landing-section-subtitle[b-xajhlikr0e] {
    font-size: 1.125rem;
    color: var(--municipality-text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* ==================== FOOTER SECTION ==================== */
.landing-footer[b-xajhlikr0e] {
    background: var(--municipality-text-primary);
    color: var(--municipality-text-white);
    padding: var(--municipality-spacing-xl) 0 var(--municipality-spacing-lg);
    position: relative;
    z-index: var(--z-raised);
}

.landing-footer-grid[b-xajhlikr0e] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: var(--municipality-spacing-lg);
}

.landing-footer-section h4[b-xajhlikr0e] {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--municipality-text-white);
}

.landing-footer-section p[b-xajhlikr0e],
.landing-footer-section a[b-xajhlikr0e] {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    transition: all var(--municipality-transition-fast);
}

.landing-footer-section a:hover[b-xajhlikr0e] {
    color: var(--municipality-text-white);
    padding-left: 0.5rem;
}

.landing-footer-social[b-xajhlikr0e] {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.landing-footer-social-link[b-xajhlikr0e] {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--municipality-text-white);
    font-size: 1.25rem;
    transition: all var(--municipality-transition-normal);
}

.landing-footer-social-link:hover[b-xajhlikr0e] {
    background: var(--municipality-accent);
    transform: translateY(-3px);
    color: var(--municipality-text-white);
}

.landing-footer-bottom[b-xajhlikr0e] {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--municipality-spacing-md);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 992px) {
    .landing-footer-grid[b-xajhlikr0e] {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .landing-hero[b-xajhlikr0e] {
        min-height: 500px;
    }

    .landing-section-title[b-xajhlikr0e] {
        font-size: 2rem;
    }

    .landing-footer-grid[b-xajhlikr0e] {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    .landing-hero-logo[b-xajhlikr0e] {
        width: 80px;
        height: 80px;
    }

    .landing-section-title[b-xajhlikr0e] {
        font-size: 1.75rem;
    }
}

/* ==================== NEWS AND UPDATES SECTION ==================== */
.landing-news[b-xajhlikr0e] {
    background: #fff;
    padding: var(--municipality-spacing-xl) 0;
}

.news-grid[b-xajhlikr0e] {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.news-card[b-xajhlikr0e] {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--slate-100);
    text-decoration: none;
    color: inherit;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-card:hover[b-xajhlikr0e] {
    transform: translateY(-7px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.13);
}

.news-card-image[b-xajhlikr0e] {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--slate-200);
    flex-shrink: 0;
    position: relative;
}

.news-card-image img[b-xajhlikr0e] {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.news-card:hover .news-card-image img[b-xajhlikr0e] {
    transform: scale(1.04);
}

.news-card-image-placeholder[b-xajhlikr0e] {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--slate-200) 0%, var(--slate-300) 100%);
    color: var(--slate-400);
    font-size: 2.5rem;
}

.news-card-body[b-xajhlikr0e] {
    padding: 1.25rem 1.375rem 1.375rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex: 1;
}

.news-card-category[b-xajhlikr0e] {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--municipality-secondary, var(--alms-stat-blue));
}

.news-card-title[b-xajhlikr0e] {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-900);
    line-height: 1.4;
    margin: 0;
    /* Trim-path underline: draws left-to-right on card hover */ background-image: linear-gradient(var(--primary-900), var(--primary-900));
    background-size: 0% 1.5px;
    background-repeat: no-repeat;
    background-position: left bottom;
    padding-bottom: 2px;
    transition: background-size 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-card:hover .news-card-title[b-xajhlikr0e] {
    background-size: 100% 1.5px;
}

.news-card-excerpt[b-xajhlikr0e] {
    font-size: 0.875rem;
    color: var(--slate-500);
    line-height: 1.55;
    margin: 0;
}

.news-card-date[b-xajhlikr0e] {
    font-size: 0.75rem;
    color: var(--slate-400);
    margin-top: auto;
    padding-top: 0.5rem;
}

.news-more-row[b-xajhlikr0e] {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.25rem;
}

.news-more-btn[b-xajhlikr0e] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--primary-900);
    text-decoration: none;
    padding: 0.5rem 1.1rem;
    border: 1.5px solid var(--primary-900);
    border-radius: 100px;
    transition: background 0.2s ease, color 0.2s ease;
}

.news-more-btn:hover[b-xajhlikr0e] {
    background: var(--primary-900);
    color: #fff;
}

@media (max-width: 768px) {
    .news-grid[b-xajhlikr0e] {
        grid-template-columns: 1fr;
    }

    .news-card-image[b-xajhlikr0e] {
        height: 200px;
    }
}

/* ==================== GOVERNMENT SERVICES SECTION ==================== */
.landing-services[b-xajhlikr0e] {
    background: var(--slate-50);
    padding: var(--municipality-spacing-xl) 0;
    position: relative;
    z-index: var(--z-raised);
}

.services-grid[b-xajhlikr0e] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.service-card[b-xajhlikr0e] {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--slate-200);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.service-card:hover[b-xajhlikr0e] {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

.service-icon[b-xajhlikr0e] {
    width: 50px;
    height: 50px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-bottom: 0.25rem;
}

.service-icon--blue[b-xajhlikr0e] {
    background: var(--service-blue-bg);
    color: var(--service-blue-fg);
}

.service-icon--green[b-xajhlikr0e] {
    background: var(--service-green-bg);
    color: var(--service-green-fg);
}

.service-icon--rose[b-xajhlikr0e] {
    background: var(--service-rose-bg);
    color: var(--service-rose-fg);
}

.service-icon--teal[b-xajhlikr0e] {
    background: var(--service-teal-bg);
    color: var(--service-teal-fg);
}

.service-icon--orange[b-xajhlikr0e] {
    background: var(--service-orange-bg);
    color: var(--service-orange-fg);
}

.service-icon--purple[b-xajhlikr0e] {
    background: var(--service-purple-bg);
    color: var(--service-purple-fg);
}

.service-icon--amber[b-xajhlikr0e] {
    background: var(--service-amber-bg);
    color: var(--service-amber-fg);
}

.service-icon--red[b-xajhlikr0e] {
    background: var(--service-red-bg);
    color: var(--service-red-fg);
}

.service-icon--lime[b-xajhlikr0e] {
    background: var(--service-lime-bg);
    color: var(--service-lime-fg);
}

.service-icon--indigo[b-xajhlikr0e] {
    background: var(--service-indigo-bg);
    color: var(--service-indigo-fg);
}

.service-title[b-xajhlikr0e] {
    font-size: 0.975rem;
    font-weight: 700;
    color: var(--slate-800);
    margin: 0;
    line-height: 1.3;
}

.service-desc[b-xajhlikr0e] {
    font-size: 0.82rem;
    color: var(--slate-500);
    line-height: 1.55;
    margin: 0;
}

.service-list[b-xajhlikr0e] {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-top: auto;
    padding-top: 0.65rem;
    border-top: 1px solid var(--slate-100);
}

.service-list li[b-xajhlikr0e] {
    font-size: 0.775rem;
    color: var(--slate-600);
    padding-left: 1rem;
    position: relative;
    line-height: 1.4;
}

.service-list li[b-xajhlikr0e]::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--municipality-primary);
    font-weight: 700;
}

@media (max-width: 768px) {
    .services-grid[b-xajhlikr0e] {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 575.98px) {
    .services-grid[b-xajhlikr0e] {
        grid-template-columns: 1fr;
    }
}

/* ==================== PRELOADER OVERLAY ==================== */
.preloader-overlay[b-xajhlikr0e] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--municipality-gradient-hero);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
}

/* SVG circle loader */
.preloader-circle-svg[b-xajhlikr0e] {
    width: 120px;
    height: 120px;
    transform-origin: center;
}

.preloader-circle-svg circle[b-xajhlikr0e] {
    stroke: rgba(255, 255, 255, 0.9);
    stroke-width: 4;
    fill: none;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

/* Logo — initially hidden, GSAP reveals it */
.preloader-logo[b-xajhlikr0e] {
    position: absolute;
    width: 150px;
    height: 150px;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.8);
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.3));
}

/* Title — initially hidden and shifted down, GSAP reveals it */
.preloader-title[b-xajhlikr0e] {
    position: absolute;
    top: calc(50% - 10px);
    font-family: 'Playball', cursive;
    font-size: 9.5rem;
    font-weight: 700;
    color: #fff;
    opacity: 0;
    transform: translateY(20px);
    text-shadow: 0 3px 20px rgba(0, 0, 0, 0.25);
    margin: 0;
    white-space: nowrap;
    letter-spacing: -0.04em;
    line-height: 1;
}

/* ==================== MAIN PAGE CONTENT ==================== */
/* Hidden until preloader dismisses */
.home-main-content[b-xajhlikr0e] {
    opacity: 0;
    transform: translateY(12px);
    width: 100%;
}

@media (max-width: 768px) {
    .preloader-logo[b-xajhlikr0e] {
        width: 110px;
        height: 110px;
    }

    .preloader-title[b-xajhlikr0e] {
        font-size: 5.5rem;
        top: calc(50% + 50px);
    }

    .preloader-circle-svg[b-xajhlikr0e] {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 576px) {
    .preloader-logo[b-xajhlikr0e] {
        width: 85px;
        height: 85px;
    }

    .preloader-title[b-xajhlikr0e] {
        font-size: 3.75rem;
        top: calc(50% + 42px);
    }

    .preloader-circle-svg[b-xajhlikr0e] {
        width: 84px;
        height: 84px;
    }
}

/* ==================== FLOATING NAV HEADER ==================== */
.home-nav[b-xajhlikr0e] {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100vw - 2rem);
    z-index: var(--z-dropdown);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.10), 0 1px 4px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 100px;
    transition: background 0.3s ease;
}

.home-nav-inner[b-xajhlikr0e] {
    display: flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
}

/* Brand — hidden at rest; GSAP drives all transitions via initScrollMorph() */
.home-nav-brand[b-xajhlikr0e] {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    padding-right: 0;
    pointer-events: none;
    white-space: nowrap;
}

/* Inner items start invisible so GSAP fade plays clean on each reveal */
.home-nav-logo[b-xajhlikr0e],
.home-nav-brand-text[b-xajhlikr0e] {
    opacity: 0;
}

.home-nav-logo[b-xajhlikr0e] {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.home-nav-brand-text[b-xajhlikr0e] {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.home-nav-title[b-xajhlikr0e] {
    font-family: 'Playball', cursive;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-900);
    letter-spacing: -0.02em;
    white-space: nowrap;
    line-height: 1;
}

.home-nav-subtitle[b-xajhlikr0e] {
    font-size: 0.6rem;
    color: rgba(30, 58, 138, 0.58);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    margin-top: 0.1rem;
}

.home-nav-links[b-xajhlikr0e] {
    display: flex;
    gap: 1.75rem;
    align-items: center;
}

.home-nav-link[b-xajhlikr0e] {
    color: rgba(30, 58, 138, 0.7);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.home-nav-link:hover[b-xajhlikr0e] {
    color: var(--primary-900);
}

.home-nav-login[b-xajhlikr0e] {
    margin-left: 1.5rem;
    background: var(--primary-900);
    color: #fff;
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.home-nav-login:hover[b-xajhlikr0e] {
    background: var(--blue-800);
    color: #fff;
    box-shadow: 0 2px 10px rgba(30, 58, 138, 0.3);
}

/* ==================== NAV RESPONSIVE ==================== */
@media (max-width: 768px) {
    .home-nav-links[b-xajhlikr0e] {
        gap: 1.1rem;
    }

    .home-nav-link[b-xajhlikr0e] {
        font-size: 0.72rem;
    }
}

@media (max-width: 576px) {
    .home-nav[b-xajhlikr0e] {
        border-radius: 20px;
        top: 0.75rem;
    }

    .home-nav-inner[b-xajhlikr0e] {
        padding: 0.45rem 1rem;
    }

    .home-nav-links[b-xajhlikr0e] {
        display: none;
    }

    .home-nav-login[b-xajhlikr0e] {
        padding: 0.45rem 1rem;
        font-size: 0.75rem;
        margin-left: 0;
    }
}
/* _content/ALMS/Components/Pages/IdCardTemplateEditor.razor.rz.scp.css */
/* =========================================================
   ID Card Template Editor — Styles
   ========================================================= */

/* ── Top bar ────────────────────────────────────────────── */
.card-editor-topbar[b-vkdytpwj6c] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background: #fff;
    border-bottom: 1px solid var(--bs-border-color);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    gap: 1rem;
    flex-wrap: wrap;
}

/* ── Three-panel layout ─────────────────────────────────── */
/* There is no top navbar on desktop (the sidebar carries it). The only chrome above/below the layout is
   the article's 1.5rem top + bottom padding (MainLayout.razor.css) and this page's own top bar
   (0.75rem padding x2 + a small button, about --topbar-height). */
.card-editor-layout[b-vkdytpwj6c] {
    display: flex;
    height: calc(100vh - 3rem - var(--topbar-height));
    height: calc(100dvh - 3rem - var(--topbar-height));
    min-height: 24rem;
    overflow: hidden;
    background: var(--neutral-100);
}

/* ── Left: Field Palette ────────────────────────────────── */
/* 200px from 1400px up; slims to 160px at 992px so the card keeps room beside the 250px sidebar */
.card-editor-palette[b-vkdytpwj6c] {
    width: clamp(160px, 14.3vw, 200px);
    min-width: 160px;
    background: #fff;
    border-right: 1px solid var(--bs-border-color);
    overflow-y: auto;
    flex-shrink: 0;
}

.palette-header[b-vkdytpwj6c] {
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--alms-text-muted);
    background: var(--alms-bg-light);
    border-bottom: 1px solid var(--bs-border-color);
    position: sticky;
    top: 0;
}

.palette-divider[b-vkdytpwj6c] {
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--bs-gray-500);
    background: var(--alms-bg-light);
    border-top: 1px solid var(--bs-border-color);
    border-bottom: 1px solid var(--bs-border-color);
    margin-top: 0.5rem;
}

.palette-item[b-vkdytpwj6c] {
    display: flex;
    align-items: center;
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
    cursor: grab;
    border-bottom: 1px solid var(--neutral-100);
    transition: background 0.15s;
    user-select: none;
}

.palette-item:hover[b-vkdytpwj6c] {
    background: var(--primary-50);
    color: var(--primary-600);
}

.palette-item:active[b-vkdytpwj6c] { cursor: grabbing; }

.palette-item.placed[b-vkdytpwj6c] {
    color: var(--neutral-800);
    background: var(--success-50);
}

.palette-item.placed:hover[b-vkdytpwj6c] {
    background: var(--success-100);
}

.palette-upload-btn[b-vkdytpwj6c] {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    background: var(--neutral-50);
    color: var(--neutral-600);
    transition: background 0.15s, border-color 0.15s;
}

.palette-upload-btn:hover[b-vkdytpwj6c] {
    background: var(--primary-50);
    border-color: var(--primary-600);
    color: var(--primary-600);
}


/* ── Center: Canvas area ────────────────────────────────── */
.card-editor-canvas-area[b-vkdytpwj6c] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* "safe" falls back to start alignment when the content overflows, so nothing is pushed off the
       left edge where scrolling cannot reach it. Browsers without "safe" keep plain centre. */
    align-items: safe center;
    padding: 1.5rem;
    overflow-y: auto;
    background: var(--neutral-100);
}

/* 992-1399px with the 250px sidebar: slim the canvas padding so the card keeps as much room as possible */
@media (min-width: 992px) and (max-width: 1399.98px) {
    .card-editor-canvas-area[b-vkdytpwj6c] {
        padding: 1rem;
    }
}

/* CR80 canvas: 85.6mm × 54mm at 5px/mm = 428 × 270 px.
   The wrapper (428 + 2×16 padding = 460 wide, 270 + 32 = 302 tall) is scaled DOWN to fit the canvas area
   by cardEditor.js, which sets --card-scale (1 = no scaling, the default). Field positions stay in
   unscaled card px: the JS divides every mouse coordinate by the scale. The negative right/bottom
   margins hand the space the scaled-away pixels no longer need back to the flex layout. */
.card-canvas-wrapper[b-vkdytpwj6c] {
    flex: none;
    padding: 16px;
    background: var(--neutral-200);
    border-radius: 0.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transform: scale(var(--card-scale, 1));
    transform-origin: top left;
    margin: 0 calc(-460px * (1 - var(--card-scale, 1))) calc(-302px * (1 - var(--card-scale, 1))) 0;
}

.card-canvas[b-vkdytpwj6c] {
    position: relative;
    width: 428px;
    height: 270px;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
    border: 1px solid var(--neutral-200);
}

/* ── Card fields ────────────────────────────────────────── */
.card-field[b-vkdytpwj6c] {
    position: absolute;
    cursor: move;
    user-select: none;
    border-radius: 2px;
    /* Use outline (non-layout-affecting) instead of border so the field's
       top-left corner is exactly at X_MM*5 / Y_MM*5 — matching the PDF render.
       A border would shift inner content by 1px, causing visual misalignment. */
    outline: 1px solid transparent;
    transition: outline-color 0.1s;
}

.card-field:hover[b-vkdytpwj6c] {
    outline-color: rgba(var(--primary-rgb), 0.5);
    background: rgba(var(--primary-rgb),0.04);
}

/* Declared after :hover at equal specificity, so the selected outline wins without !important */
.card-field.selected[b-vkdytpwj6c] {
    outline: 2px solid var(--primary-600);
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb),0.35);
    background: rgba(var(--primary-rgb),0.06);
}

.card-field.hidden-field[b-vkdytpwj6c] {
    opacity: 0.4;
}

.text-field-box[b-vkdytpwj6c] {
    position: relative;
    display: inline-flex;
    align-items: center;
    border: 1.5px dashed var(--neutral-300);
    border-radius: 3px;
    padding: 1px 12px 1px 2px; /* right padding reserves space for the resize handle */
    box-sizing: border-box;
    overflow: hidden;           /* clips text that exceeds the box width */
    min-width: 12px;
}

.field-text-preview[b-vkdytpwj6c] {
    white-space: nowrap;
    display: block;
    line-height: 1.2;
    overflow: hidden;
    flex: 1;
}

/* Resize handle — right edge of text field box */
.resize-handle-x[b-vkdytpwj6c] {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 12px;
    cursor: ew-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.12);
    border-left: 1px solid rgba(var(--primary-rgb), 0.4);
    border-radius: 0 2px 2px 0;
    transition: background 0.15s;
}

.resize-handle-x:hover[b-vkdytpwj6c] {
    background: rgba(var(--primary-rgb), 0.3);
}

.resize-handle-x[b-vkdytpwj6c]::after {
    content: '⋮';
    font-size: 0.55rem;
    color: var(--primary-600);
    pointer-events: none;
}

.field-image-placeholder[b-vkdytpwj6c] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box; /* border is INSIDE Width_MM*5 × Height_MM*5 so outer edge matches PDF */
    border: 1.5px dashed var(--neutral-300);
    border-radius: 4px;
    background: rgba(255,255,255,0.6);
    font-size: 0.65rem;
    color: var(--neutral-500);
    gap: 2px;
}

.field-hidden-badge[b-vkdytpwj6c] {
    position: absolute;
    top: -8px;
    right: -1px;
    font-size: 0.55rem;
    background: var(--alms-text-muted);
    color: #fff;
    padding: 1px 3px;
    border-radius: 2px;
    pointer-events: none;
}

/* ── Right: Properties inspector ────────────────────────── */
/* 240px from 1400px up; slims to 220px at 992px */
.card-editor-props[b-vkdytpwj6c] {
    width: clamp(220px, 17.2vw, 240px);
    min-width: 220px;
    background: #fff;
    border-left: 1px solid var(--bs-border-color);
    overflow-y: auto;
    flex-shrink: 0;
}

.props-empty[b-vkdytpwj6c] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 2rem 1rem;
    text-align: center;
}

.props-header[b-vkdytpwj6c] {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-900);
    background: var(--primary-50);
    border-bottom: 1px solid var(--bs-border-color);
    position: sticky;
    top: 0;
}

.props-body[b-vkdytpwj6c] {
    padding: 0.75rem 1rem;
}

.prop-row[b-vkdytpwj6c] {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.75rem;
}

.prop-label[b-vkdytpwj6c] {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--alms-text-muted);
    margin-bottom: 0.25rem;
}

/* ── Responsive fallback ────────────────────────────────── */
/* Below 992px the three panels no longer fit side by side: stack them. */
@media (max-width: 991.98px) {
    .card-editor-layout[b-vkdytpwj6c] {
        flex-direction: column;
        height: auto;
    }

    .card-editor-palette[b-vkdytpwj6c],
    .card-editor-props[b-vkdytpwj6c] {
        width: 100%;
        max-height: 200px;
    }
}

/* ── Background config controls ─────────────────────────── */
.palette-divider-sm[b-vkdytpwj6c] {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--neutral-400);
    padding: 0.35rem 0 0.2rem;
    border-top: 1px dashed var(--neutral-200);
    margin-top: 0.25rem;
}

.bg-section[b-vkdytpwj6c] {
    border-bottom: 1px solid var(--neutral-100);
}

.bg-config-block[b-vkdytpwj6c] {
    background: var(--alms-bg-light);
    border: 1px solid var(--neutral-100);
    border-radius: 6px;
    padding: 0.5rem;
}

.bg-config-label[b-vkdytpwj6c] {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--alms-text-muted);
    margin-bottom: 0.15rem;
}

/* ── Properties section label (shadow, stroke, border) ──── */
.props-section-label[b-vkdytpwj6c] {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--bs-gray-500);
    background: var(--alms-bg-light);
    border-top: 1px solid var(--neutral-100);
    border-bottom: 1px solid var(--neutral-100);
    padding: 0.3rem 0;
    margin: 0.5rem 0 0.5rem -1rem;
    padding-left: 1rem;
    width: calc(100% + 2rem);
}
/* _content/ALMS/Components/Pages/LeaderIntegrity.razor.rz.scp.css */
/* Phones (below 768px): Leaders-by-grade list card (DOCS/MOBILE_DESIGN/Integrity.html) */
@media (max-width: 767.98px) {
    .li-intro[b-nlu2dh7wzy] {
        margin: 0 0 var(--space-3);
        font-size: var(--text-sm);
        color: var(--neutral-600);
    }

    .li-list[b-nlu2dh7wzy] { margin-bottom: var(--space-3); }

    .li-row[b-nlu2dh7wzy] { align-items: flex-start; }

    .li-grade[b-nlu2dh7wzy] {
        display: inline-flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
        width: 52px;
        height: 36px;
        border-radius: 10px;
        font-size: 13px;
        font-weight: 800;
    }

    .li-grade--poor[b-nlu2dh7wzy] { background: var(--danger-100); color: var(--danger-800); }
    .li-grade--watch[b-nlu2dh7wzy] { background: var(--warning-100); color: var(--warning-900); }

    .li-row[b-nlu2dh7wzy]  .ui-list-row__chev { align-self: center; }

    .li-flags[b-nlu2dh7wzy] {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 4px;
    }

    .li-flag[b-nlu2dh7wzy] {
        padding: 2px 8px;
        border-radius: 6px;
        background: var(--neutral-100);
        color: var(--neutral-800);
        font-size: 12px;
        font-weight: 600;
    }
}

/* Phones, Contested / Flags lists: the floating pager replaces the card footer. */
@media (max-width: 767.98px) {
    .ui-list-page[b-nlu2dh7wzy]  .ui-list-page__fill .ui-table-card__foot { display: none; }
}
/* _content/ALMS/Components/Pages/LiveElectionCount.razor.rz.scp.css */
/* ============================================================
   LIVE ELECTION COUNT — Component Styles
   Electoral page: functional, data-dense, minimal animation
   ============================================================ */
/* ── Replay chart card (the pill header itself is the shared .chart-pill-header in base.css) ── */
.lec-chart-card[b-16exoqhq7y] {
    position: relative;
    overflow: visible;
    border: 0.5px solid rgba(0,0,0,0.15);
}

/* ── Layout ────────────────────────────────────────────────── */
.lec-container[b-16exoqhq7y] {
    padding: 0 0 3rem;
}

.lec-loading[b-16exoqhq7y] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
}

/* ── Header ──────────────────────────────────────────────────
   REGENERATED: dark navy CARD pattern — the canonical page-header
   style across the ALMS design system.
*/
/* ── Progress section ──────────────────────────────────────── */
.lec-progress-section[b-16exoqhq7y] {
    background: var(--alms-bg-light);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    padding: 0.875rem 1rem;
    margin-bottom: 1.25rem;
}

.lec-progress-label[b-16exoqhq7y] {
    font-size: 0.9rem;
    color: var(--alms-text-secondary);
}

.lec-progress-pct[b-16exoqhq7y] {
    font-size: 1rem;
    font-weight: 700;
    color: var(--alms-text-heading);
}

.lec-progress-bar[b-16exoqhq7y] {
    height: 10px;
    border-radius: 5px;
    background-color: var(--neutral-100);
}

.lec-updated[b-16exoqhq7y] {
    font-size: 0.78rem;
    color: var(--alms-text-muted);
    margin-top: 0.35rem;
    text-align: right;
}

/* ── Position tabs ─────────────────────────────────────────── */
.lec-tabs[b-16exoqhq7y] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.lec-tab[b-16exoqhq7y] {
    background: #fff;
    border: 1px solid var(--bs-gray-400);
    border-radius: 0.4rem;
    padding: 0.45rem 0.9rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--alms-text-secondary);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    white-space: nowrap;
}

.lec-tab:hover[b-16exoqhq7y] {
    background: var(--neutral-100);
    border-color: var(--bs-gray-500);
    color: var(--alms-text-heading);
}

.lec-tab.active[b-16exoqhq7y] {
    background: var(--primary-900);
    border-color: var(--primary-900);
    color: #fff;
    font-weight: 600;
}

.lec-tab-slots[b-16exoqhq7y] {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-left: 0.3rem;
}

/* ── Candidate list ────────────────────────────────────────── */
.lec-candidates[b-16exoqhq7y] {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── Candidate card ────────────────────────────────────────── */
.lec-card[b-16exoqhq7y] {
    display: grid;
    grid-template-columns: 52px 56px 1fr auto;
    grid-template-rows: auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1px solid var(--bs-border-color);
    border-left: 4px solid transparent;
    margin-bottom: 4px;
    border-radius: 0.4rem;
    transition: background 0.2s, border-left-color 0.2s;
    position: relative;
}

.lec-card:hover[b-16exoqhq7y] {
    background: var(--neutral-50);
}

.lec-card-winning[b-16exoqhq7y] {
    border-left-color: var(--success-500);
    background: var(--success-50);
}

.lec-card-cutline[b-16exoqhq7y] {
    border-left-color: var(--warning-500);
}

/* Rank-change animations */
@keyframes lec-slide-down-b-16exoqhq7y {
    from { transform: translateY(-6px); opacity: 0.7; }
    to   { transform: translateY(0);    opacity: 1; }
}

@keyframes lec-slide-up-b-16exoqhq7y {
    from { transform: translateY(6px);  opacity: 0.7; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* Same specificity as .lec-card-winning / .lec-card-cutline but declared after them, so no !important needed */
.rank-moved-up[b-16exoqhq7y] {
    animation: lec-slide-up-b-16exoqhq7y 0.5s ease;
    border-left-color: var(--success-500);
}

.rank-moved-down[b-16exoqhq7y] {
    animation: lec-slide-down-b-16exoqhq7y 0.5s ease;
    border-left-color: var(--danger-600);
}

/* ── Rank badge ────────────────────────────────────────────── */
.lec-rank[b-16exoqhq7y] {
    font-size: 1.15rem;
    font-weight: 800;
    text-align: center;
    color: var(--alms-text-muted);
    min-width: 42px;
}

.win-status-winner[b-16exoqhq7y] {
    color: var(--success-800);
}

.win-status-safe[b-16exoqhq7y] {
    color: var(--success-700);
}

.win-status-contested[b-16exoqhq7y] {
    color: var(--warning-900);
}

.win-status-out[b-16exoqhq7y] {
    color: var(--danger-800);
}

/* ── Photo ─────────────────────────────────────────────────── */
.lec-photo-wrapper[b-16exoqhq7y] {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.lec-photo[b-16exoqhq7y] {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bs-border-color);
}

.lec-photo-placeholder[b-16exoqhq7y] {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--neutral-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-gray-500);
}

/* ── Candidate info ─────────────────────────────────────────── */
.lec-info[b-16exoqhq7y] {
    min-width: 0;
}

.lec-ballot-name[b-16exoqhq7y] {
    font-size: 0.975rem;
    font-weight: 700;
    color: var(--alms-text-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.lec-legal-name[b-16exoqhq7y] {
    font-size: 0.78rem;
    margin-top: 1px;
}

/* ── Slate badges ───────────────────────────────────────────── */
.lec-slate-badge[b-16exoqhq7y] {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 1rem;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.slate-own[b-16exoqhq7y] {
    background: var(--primary-50);
    color: var(--primary-700);
}

.slate-opposition[b-16exoqhq7y] {
    background: var(--danger-100);
    color: var(--danger-700);
}

.slate-independent[b-16exoqhq7y] {
    background: var(--neutral-100);
    color: var(--neutral-700);
}

.lec-winner-badge[b-16exoqhq7y] {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 1rem;
    font-size: 0.72rem;
    font-weight: 700;
    background: var(--success-100);
    color: var(--success-800);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* ── Vote count section ─────────────────────────────────────── */
.lec-votes-section[b-16exoqhq7y] {
    text-align: right;
    min-width: 120px;
}

.lec-vote-count[b-16exoqhq7y] {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--alms-text-heading);
    line-height: 1.1;
}

.lec-vote-share[b-16exoqhq7y] {
    font-size: 0.8rem;
    color: var(--alms-text-muted);
    margin-bottom: 4px;
}

.lec-vote-bar[b-16exoqhq7y] {
    height: 5px;
    border-radius: 3px;
    background: var(--neutral-100);
    width: 100px;
    margin-left: auto;
}

.lec-rank-delta[b-16exoqhq7y] {
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 3px;
}

.rank-delta-up[b-16exoqhq7y] {
    color: var(--success-700);
}

.rank-delta-down[b-16exoqhq7y] {
    color: var(--danger-600);
}

/* ── Projection panel ───────────────────────────────────────── */
.lec-projection[b-16exoqhq7y] {
    grid-column: 1 / -1;
    background: var(--alms-bg-light);
    border-top: 1px dashed var(--bs-border-color);
    padding: 0.5rem 0.75rem;
    margin-top: 0.25rem;
    border-radius: 0 0 0.3rem 0.3rem;
    font-size: 0.82rem;
}

.lec-proj-row[b-16exoqhq7y] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2px;
}

.lec-proj-label[b-16exoqhq7y] {
    color: var(--alms-text-muted);
    min-width: 90px;
}

.lec-proj-value[b-16exoqhq7y] {
    font-weight: 700;
    color: var(--alms-text-heading);
}

/* ── Cutline divider ─────────────────────────────────────────── */
.lec-cutline-label[b-16exoqhq7y] {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 0.75rem;
    color: var(--bs-gray-500);
    letter-spacing: 2px;
    padding: 0.4rem 0 0.6rem;
    margin-top: 0.25rem;
}

/* ══════════════════════════════════════════════════════════════
   RANKING REPLAY
   ══════════════════════════════════════════════════════════════ */
/* ── Playback controls bar ──────────────────────────────────── */
.lec-replay-controls[b-16exoqhq7y] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.lec-replay-speed[b-16exoqhq7y] {
    width: auto;
    min-width: 72px;
}

.lec-replay-slider[b-16exoqhq7y] {
    flex: 1;
    min-width: 120px;
}

/* ── Step info bar ──────────────────────────────────────────── */
.lec-replay-step-info[b-16exoqhq7y] {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.45rem 0.75rem;
    background: var(--alms-bg-light);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.4rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.lec-replay-step-badge[b-16exoqhq7y] {
    background: var(--primary-900);
    color: #fff;
    padding: 0.15rem 0.65rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

/* ── Leaderboard ────────────────────────────────────────────── */
.lec-replay-leaderboard[b-16exoqhq7y] {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.lec-replay-item[b-16exoqhq7y] {
    display: grid;
    grid-template-columns: 52px 44px 1fr auto 64px;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.875rem;
    background: #fff;
    border: 1px solid var(--bs-border-color);
    border-left: 4px solid transparent;
    border-radius: 0.35rem;
    transition: border-left-color 0.25s, background 0.25s;
}

.lec-replay-winning[b-16exoqhq7y] {
    border-left-color: var(--success-500);
    background: var(--success-50);
}

/* Declared after .lec-replay-winning at equal specificity, so no !important needed */
.lec-replay-moved-up[b-16exoqhq7y] {
    border-left-color: var(--success-700);
    animation: replaySlideUp-b-16exoqhq7y 0.4s ease;
}

.lec-replay-moved-down[b-16exoqhq7y] {
    border-left-color: var(--danger-600);
    animation: replaySlideDown-b-16exoqhq7y 0.4s ease;
}

@keyframes replaySlideUp-b-16exoqhq7y {
    from { transform: translateY(5px); opacity: 0.65; }
    to   { transform: translateY(0);   opacity: 1; }
}

@keyframes replaySlideDown-b-16exoqhq7y {
    from { transform: translateY(-5px); opacity: 0.65; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* ── Rank number ────────────────────────────────────────────── */
.lec-replay-rank-num[b-16exoqhq7y] {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--alms-text-muted);
    text-align: center;
}

.lec-replay-rank-num.rank-winning[b-16exoqhq7y] {
    color: var(--success-800);
}

/* ── Photo ──────────────────────────────────────────────────── */
.lec-replay-photo[b-16exoqhq7y] {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.lec-replay-photo-img[b-16exoqhq7y] {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bs-border-color);
}

.lec-replay-photo-sm[b-16exoqhq7y] {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
}

/* ── Info (name + slate) ────────────────────────────────────── */
.lec-replay-info[b-16exoqhq7y] {
    min-width: 0;
    overflow: hidden;
}

/* ── Vote count ─────────────────────────────────────────────── */
.lec-replay-votes[b-16exoqhq7y] {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--alms-text-heading);
    text-align: right;
    white-space: nowrap;
}

/* ── Rank change indicator ──────────────────────────────────── */
.lec-replay-change[b-16exoqhq7y] {
    font-size: 0.875rem;
    font-weight: 700;
    text-align: center;
    min-width: 52px;
}

.lec-replay-rank-up[b-16exoqhq7y] {
    color: var(--success-700);
}

.lec-replay-rank-down[b-16exoqhq7y] {
    color: var(--danger-600);
}

.lec-replay-no-change[b-16exoqhq7y] {
    font-size: 0.8rem;
}

/* ── Cutline divider (replay) ───────────────────────────────── */
.lec-replay-cutline[b-16exoqhq7y] {
    text-align: center;
    font-size: 0.72rem;
    color: var(--bs-gray-500);
    letter-spacing: 2px;
    padding: 0.25rem 0;
    margin: 0.1rem 0;
}

/* ── Turning-point / changes summary bar ───────────────────── */
.lec-replay-changes-bar[b-16exoqhq7y] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.65rem;
    padding: 0.5rem 0.875rem;
    background: var(--warning-50);
    border: 1px solid var(--warning-300);
    border-radius: 0.4rem;
    font-size: 0.82rem;
}

.lec-replay-change-chip[b-16exoqhq7y] {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 1rem;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.chip-up[b-16exoqhq7y] {
    background: var(--success-100);
    color: var(--success-800);
}

.chip-down[b-16exoqhq7y] {
    background: var(--danger-100);
    color: var(--danger-700);
}

/* ── Responsive ─────────────────────────────────────────────── */
/* The old (max-width: 600px) block was removed: every declaration in it is overridden by the
   (max-width: 767.98px) block below, so it had no effect at any width. */

/* Phones: replay leaderboard, position tabs and replay controls */
@media (max-width: 575.98px) {
    .lec-replay-item[b-16exoqhq7y] {
        grid-template-columns: 36px 40px 1fr;
        row-gap: 0.25rem;
        padding: 0.5rem 0.65rem;
    }

    /* votes and rank change drop to a second row under the name */
    .lec-replay-item > .lec-replay-votes[b-16exoqhq7y],
    .lec-replay-item > .lec-replay-change[b-16exoqhq7y] {
        grid-column: 3 / -1;
        text-align: left;
    }

    .lec-replay-controls > *[b-16exoqhq7y] {
        flex: 1 1 auto;
    }

    .lec-updated[b-16exoqhq7y] {
        text-align: left;
    }
}

/* ── Phones below 768px (mobile plan §8, board LiveCount) ───────
   Position chips (.lec-chips, a .ui-chip-row) replace .lec-tabs; the
   ranked list stays one card per candidate with votes on the right; the
   replay slider gets its own full-width row; header actions wrap at 44px.
   Projection panel markup and gating are unchanged. Desktop untouched. */
@media (max-width: 767.98px) {
    .lec-container[b-16exoqhq7y] { padding-bottom: var(--space-4); }

    .lec-actions[b-16exoqhq7y] {
        flex-wrap: wrap;
        width: 100%;
    }

    .lec-actions > .btn[b-16exoqhq7y] {
        flex: 1 1 auto;
        min-height: 44px;
        margin-left: 0;
    }

    .lec-actions > .form-select[b-16exoqhq7y] {
        flex: 1 1 100%;
        max-width: none;
        min-height: 44px;
    }

    .lec-progress-section[b-16exoqhq7y] {
        padding: var(--space-3);
        margin-bottom: var(--space-3);
    }

    /* Ranked list: rank · photo · name/slate · votes */
    .lec-card[b-16exoqhq7y] {
        grid-template-columns: 36px 40px minmax(0, 1fr) auto;
        grid-template-rows: auto;
        gap: var(--space-2);
        padding: var(--space-3);
        margin-bottom: var(--space-2);
        border-radius: var(--radius-xl);
    }

    .lec-rank[b-16exoqhq7y] {
        min-width: 0;
        font-size: var(--text-base);
    }

    .lec-photo-wrapper[b-16exoqhq7y],
    .lec-photo[b-16exoqhq7y],
    .lec-photo-placeholder[b-16exoqhq7y] {
        width: 40px;
        height: 40px;
    }

    .lec-ballot-name[b-16exoqhq7y] { font-size: var(--text-sm); }

    .lec-votes-section[b-16exoqhq7y] {
        grid-column: auto;
        display: block;
        min-width: 0;
        text-align: right;
    }

    .lec-vote-count[b-16exoqhq7y] { font-size: var(--text-lg); }

    .lec-vote-bar[b-16exoqhq7y] {
        width: 64px;
        margin-left: auto;
    }

    .lec-projection[b-16exoqhq7y] { padding: var(--space-2) var(--space-3); }

    .lec-proj-row[b-16exoqhq7y] { flex-wrap: wrap; }

    .lec-proj-label[b-16exoqhq7y] { min-width: 0; }

    .lec-cutline-label[b-16exoqhq7y] { padding: var(--space-1) 0 var(--space-3); }

    /* Replay: slider first, full width and easy to grab; buttons below */
    .lec-replay-section .card-body[b-16exoqhq7y] { padding: var(--space-3); }

    .lec-replay-controls > .lec-replay-slider[b-16exoqhq7y] {
        order: -1;
        flex: 1 1 100%;
        min-width: 0;
        height: 44px;
    }

    .lec-replay-controls > .btn[b-16exoqhq7y],
    .lec-replay-controls > .lec-replay-speed[b-16exoqhq7y] {
        flex: 1 1 0;
        min-height: 44px;
    }

    .lec-replay-step-info[b-16exoqhq7y] {
        gap: var(--space-2);
        padding: var(--space-2) var(--space-3);
    }
}


/* ===== Desktop/tablet and phone refinements (loaded after the base rules above) ===== */
/* Desktop/tablet: banner actions wrap instead of overflowing the banner at 768-1100px;
   the barangay select keeps its old 200px cap (was an inline style). */
@media (min-width: 768px) {
	.lec-actions[b-16exoqhq7y] {
		flex-wrap: wrap;
		justify-content: flex-end;
	}

	.lec-actions > .btn[b-16exoqhq7y] {
		white-space: nowrap;
	}

	.lec-actions > .lec-barangay-select[b-16exoqhq7y] {
		flex: 1 1 9rem;
		min-width: 0;
		max-width: 200px;
	}
}

/* Desktop/tablet: cap and centre the candidate list and replay leaderboard so name and votes
   don't drift ~1600px apart at 1920px. Phones keep their full-width flat list. */
@media (min-width: 768px) {
	.lec-candidates[b-16exoqhq7y],
	.lec-replay-leaderboard[b-16exoqhq7y] {
		max-width: 64rem;
		margin-inline: auto;
	}
}

/* Reserve the rank-change line on every card so heights don't jump on live updates.
   Same box as the real delta (same font/margin), just invisible. Phones hide .lec-rank-delta entirely. */
.lec-rank-delta-empty[b-16exoqhq7y] {
	visibility: hidden;
}

/* Phone-only elements stay hidden on desktop (d-md-none handles it); nothing here changes desktop. */
@media (max-width: 767.98px) {
	/* One flat ranked list card */
	.lec-candidates[b-16exoqhq7y] {
		background: var(--neutral-0);
		border: 1px solid var(--neutral-200);
		border-radius: var(--radius-xl);
		overflow: hidden;
	}

	.lec-caption[b-16exoqhq7y] {
		padding: var(--space-3) var(--space-4) var(--space-2);
		font-size: var(--text-sm);
		color: var(--neutral-600);
	}

	.lec-candidates .lec-card[b-16exoqhq7y] {
		grid-template-columns: 28px minmax(0, 1fr) auto 30px;
		gap: var(--space-2);
		min-height: 58px;
		margin: 0;
		padding: var(--space-2) var(--space-4);
		border: 0;
		border-bottom: 1px solid var(--neutral-100);
		border-radius: 0;
		background: var(--neutral-0);
	}

	.lec-candidates .lec-card:last-child[b-16exoqhq7y] { border-bottom: 0; }

	/* Below the cutline: quieter */
	.lec-candidates .lec-card:not(.lec-card-winning)[b-16exoqhq7y] { background: var(--neutral-50); }
	.lec-candidates .lec-card:not(.lec-card-winning) .lec-ballot-name[b-16exoqhq7y] { font-weight: 600; color: var(--neutral-700); }

	.lec-candidates .lec-card.lec-card-cutline-last[b-16exoqhq7y] { border-bottom: 2px dashed var(--primary-600); }

	/* No photos, share %, legal name, per-card projection, cutline text, old badges */
	.lec-photo-wrapper[b-16exoqhq7y],
	.lec-legal-name[b-16exoqhq7y],
	.lec-vote-share[b-16exoqhq7y],
	.lec-vote-bar[b-16exoqhq7y],
	.lec-rank-delta[b-16exoqhq7y],
	.lec-winner-badge[b-16exoqhq7y],
	.lec-slate-badge[b-16exoqhq7y],
	.lec-projection[b-16exoqhq7y],
	.lec-cutline-label[b-16exoqhq7y] { display: none; }

	.lec-candidates .lec-rank[b-16exoqhq7y] {
		color: var(--neutral-600);
		font-size: var(--text-sm);
		font-weight: 800;
		font-variant-numeric: tabular-nums;
	}

	.lec-candidates .lec-card-winning .lec-rank[b-16exoqhq7y] { color: var(--primary-900); }

	.lec-candidates .lec-ballot-name[b-16exoqhq7y] {
		font-size: 0.9375rem;
		font-weight: 700;
		letter-spacing: 0;
		text-transform: none;
	}

	.lec-own-pill[b-16exoqhq7y] {
		margin-left: var(--space-2);
		padding: 1px 7px;
		border-radius: 999px;
		background: var(--primary-50);
		color: var(--primary-900);
		font-size: 11px;
		font-weight: 700;
		vertical-align: 1px;
	}

	.lec-bar[b-16exoqhq7y] {
		height: 6px;
		margin-top: var(--space-1);
		border-radius: 3px;
	}

	.lec-bar > i[b-16exoqhq7y] {
		display: block;
		height: 100%;
		border-radius: 3px;
		background: var(--primary-200);
	}

	.lec-bar > i.lec-bar-own[b-16exoqhq7y] { background: var(--primary-600); }

	.lec-candidates .lec-vote-count[b-16exoqhq7y] { font-size: 0.9375rem; font-weight: 700; font-variant-numeric: tabular-nums; }

	.lec-move[b-16exoqhq7y] {
		text-align: center;
		font-size: 12px;
		font-weight: 700;
		color: var(--neutral-600);
	}

	.lec-move-up[b-16exoqhq7y] { color: var(--success-800); }
	.lec-move-down[b-16exoqhq7y] { color: var(--danger-700); }

	/* Projections: one card for the two candidates at the cutline */
	.lec-proj-card[b-16exoqhq7y] {
		display: grid;
		gap: var(--space-2);
		margin-top: var(--space-3);
		padding: var(--space-3) var(--space-4);
		background: var(--neutral-0);
		border: 1px solid var(--neutral-200);
		border-radius: var(--radius-xl);
	}

	.lec-proj-title[b-16exoqhq7y] { font-size: 0.9375rem; font-weight: 700; }
	.lec-proj-sub[b-16exoqhq7y] { font-size: var(--text-sm); color: var(--neutral-600); }
	.lec-proj-name[b-16exoqhq7y] { font-weight: 700; }
	.lec-proj-need[b-16exoqhq7y] { color: var(--warning-900); font-weight: 600; }

	/* Replay: flat rows, no photos (data still loads only when Replay is toggled) */
	.lec-replay-photo[b-16exoqhq7y] { display: none; }
}
/* _content/ALMS/Components/Pages/ManageConcerns.razor.rz.scp.css */
/* Scoped to ManageConcerns.razor (Blazor CSS isolation).
   Phone layout (< 768px, tracker S5, boards Concerns + ConcernReview). Desktop has no rules here. */

@media (max-width: 767.98px) {
    /* No card-inside-card: the page cards go flat on phones */
    .mc-flat.card[b-4udqgyat4v] {
        padding: 0 !important;
        border: 0;
        box-shadow: none;
        background: transparent;
    }

    .mc-vh[b-4udqgyat4v] {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    /* Group heading above a phone concern card list (leader / raised-by) */
    .mc-group-head[b-4udqgyat4v] {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-2);
        margin: var(--space-2) 0;
        font-size: var(--text-sm);
        font-weight: var(--font-semibold);
        color: var(--neutral-700);
    }

    /* Header tab counts: yellow pills */
    .mc-tabs .ui-chip__count[b-4udqgyat4v] {
        padding: 0 var(--space-2);
        border-radius: var(--radius-full);
        background: var(--warning-400);
        color: var(--neutral-900);
        font-size: var(--text-xs);
    }

    /* Flat filters: search with the icon inside, selects in two columns, 44px controls */
    .mc-filters[b-4udqgyat4v],
    .mc-logfilters[b-4udqgyat4v] {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-2);
        margin: 0 0 var(--space-3);
    }

    .mc-filters > div[b-4udqgyat4v],
    .mc-logfilters > div[b-4udqgyat4v] {
        min-width: 0;
        width: auto;
        max-width: none;
        margin: 0;
        padding: 0;
    }

    .mc-filters__search[b-4udqgyat4v],
    .mc-logfilters > div:first-child[b-4udqgyat4v] {
        grid-column: 1 / -1;
        position: relative;
    }

    .mc-filters__search .form-control[b-4udqgyat4v] { padding-left: var(--space-8, 2.25rem); }

    .mc-filters[b-4udqgyat4v]  .mc-filters__icon {
        position: absolute;
        left: var(--space-3);
        top: 50%;
        transform: translateY(-50%);
        pointer-events: none;
        color: var(--neutral-500);
    }

    .mc-filters .form-select[b-4udqgyat4v],
    .mc-filters .form-control[b-4udqgyat4v],
    .mc-filters .btn[b-4udqgyat4v],
    .mc-logfilters .form-select[b-4udqgyat4v],
    .mc-logfilters .form-control[b-4udqgyat4v] {
        min-height: 44px;
    }

    /* Sort select + 44px order toggle side by side */
    .mc-filters > .mc-sort[b-4udqgyat4v] {
        grid-column: 1 / -1;
        display: flex;
        gap: var(--space-2);
    }

    .mc-sort .form-select[b-4udqgyat4v] { flex: 1 1 auto; min-width: 0; }
    .mc-sort .ui-icon-btn[b-4udqgyat4v] { flex: 0 0 auto; }

    /* Compact list rows (accounts / leaders): .ui-mcard--btn, three columns (body | count | chevron) */
    .mc-row[b-4udqgyat4v] {
        grid-template-columns: minmax(0, 1fr) auto auto;
        min-height: 56px;
    }

    .mc-row__body[b-4udqgyat4v] { display: block; min-width: 0; }
    .mc-row__name[b-4udqgyat4v] { display: block; font-weight: var(--font-semibold); text-transform: uppercase; overflow-wrap: anywhere; }
    .mc-row__sub[b-4udqgyat4v] { display: block; margin-top: 2px; font-size: var(--text-xs); color: var(--neutral-600); }

    /* Concern card inside the bottom sheet: .ui-mcard; only the body lines are local */
    .mc-card__line[b-4udqgyat4v] { margin-top: var(--space-2); font-size: var(--text-sm); color: var(--neutral-700); }
    .mc-card__note[b-4udqgyat4v] { margin-top: var(--space-1); font-size: var(--text-sm); font-style: italic; color: var(--neutral-600); }

    .mc-act[b-4udqgyat4v] {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2);
        padding-top: var(--space-3);
    }

    .mc-act .btn[b-4udqgyat4v] { min-height: 44px; font-weight: var(--font-bold); }

    .mc-review-note[b-4udqgyat4v] {
        margin-top: var(--space-3);
        padding: var(--space-3);
        border-radius: var(--radius-lg);
        font-size: var(--text-sm);
        background: var(--neutral-50);
    }

    .mc-review-note strong[b-4udqgyat4v] { display: block; color: var(--neutral-600); }

    /* Pager: [Prev] [n / N] [Next] + count line */
    .mc-pager[b-4udqgyat4v] {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: center;
        gap: var(--space-2);
        padding: var(--space-3) 0;
    }

    .mc-pager .btn[b-4udqgyat4v] { min-height: 44px; box-shadow: none; }

    .mc-pager__page[b-4udqgyat4v] {
        text-align: center;
        font-weight: 600;
        font-variant-numeric: tabular-nums;
    }

    .mc-pager__count[b-4udqgyat4v] {
        grid-column: 1 / -1;
        text-align: center;
        color: var(--neutral-600);
    }

    /* Logs: group-by and sort controls full width */
    .mc-logbar[b-4udqgyat4v] { width: 100%; }
    .mc-logbar .ui-segmented[b-4udqgyat4v] { width: 100%; }
    .mc-logbar .ui-segmented > button[b-4udqgyat4v] { flex: 1 1 0; min-height: 40px; }
    .mc-logs .ui-stack-actions .btn[b-4udqgyat4v],
    .ui-stack-actions .btn[b-4udqgyat4v] { min-height: 40px; min-width: 40px; }
}

/* Desktop / tablet (>= 768px) */
@media (min-width: 768px) {
    .mc-loading[b-4udqgyat4v] { height: 18.75rem; }

    /* The list card is a container: its width, not the viewport, decides how the filters lay out */
    .mc-flat[b-4udqgyat4v] { container-type: inline-size; }

    /* Logs filters: the search placeholder is long, so the search grows and the selects share the rest */
    .mc-logfilters > div[b-4udqgyat4v] { flex: 1 1 10rem; width: auto; max-width: 17rem; min-width: 0; }
    .mc-logfilters > div:first-child[b-4udqgyat4v] { flex: 2 1 20rem; max-width: 34rem; }

    /* Dates stay on one line; Concern / Date no longer render a size smaller than their sibling cells */
    .mc-logs .ui-table td > small[b-4udqgyat4v] { font-size: inherit; }
}

/* Barangay / Purok selects: one per row once the list card is too narrow for two */
@container (max-width: 24rem) {
    .mc-fsel[b-4udqgyat4v] { flex: 0 0 auto; width: 100%; }
}
/* _content/ALMS/Components/Pages/ManageLeaders.razor.rz.scp.css */
/* Scoped to ManageLeaders.razor (Blazor CSS isolation). Moved from the page's <style> block. */
/* Electoral Page Template Styles */
.section-title[b-v97w9nkio4] {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--alms-text-heading);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Component-Specific Styles */
.form-control[b-v97w9nkio4],
.form-select[b-v97w9nkio4] {
    flex: 1 1 0;
    min-width: 0;
}

.photo-container[b-v97w9nkio4] {
    position: relative;
    min-width: 140px;
    min-height: 140px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.leader-photo-square[b-v97w9nkio4] {
    display: block;
}

.ml-photo[b-v97w9nkio4] {
    height: 140px;
    border: 2px solid var(--bs-gray-800);
    border-radius: var(--radius-lg);
}

.photo-overlay[b-v97w9nkio4] {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

/* Edit-photo button sits on the photo: give the outline button a surface */
.photo-overlay .btn:not(:hover)[b-v97w9nkio4] {
    background: var(--background);
}

/* Details panel: nothing may push past its card (phone sheet and the narrow desktop column) */
.ml-details[b-v97w9nkio4] {
    min-width: 0;
    container-type: inline-size;
}

/* Header (desktop): name + status on the left, actions on the right. The actions drop below the name
   (still right-aligned) when the name would get less than 10rem, e.g. the edit-mode toolbar in a narrow panel. */
.ml-head-row[b-v97w9nkio4] {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-2);
}

.ml-name-block[b-v97w9nkio4] {
    flex: 1 1 10rem;
    min-width: 0;
    overflow-wrap: anywhere;
}

.ml-head-actions[b-v97w9nkio4] {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: var(--space-2);
    max-width: 100%;
    margin-left: auto;
}

/* Fact grid (desktop): two columns of icon | label | value. One grid for all rows, so the label track is as wide as
   the column's longest label and every value in a column starts on the same line. .ml-fact is display:contents. */
.ml-facts-grid[b-v97w9nkio4] {
    display: grid;
    grid-template-columns:
        1.5rem max-content minmax(0, 1fr)
        1.5rem max-content minmax(0, 1fr);
    align-items: center;
    column-gap: var(--space-3);
    row-gap: var(--space-4);
    margin: 0;
}

.ml-fact[b-v97w9nkio4] {
    display: contents;
}

/* space between the left and right column */
.ml-fact:nth-child(even)[b-v97w9nkio4]  .ml-fact__icon {
    margin-left: var(--space-4);
}

.ml-fact[b-v97w9nkio4]  .ml-fact__icon {
    justify-self: center;
    color: var(--foreground-muted);
}

.ml-fact__label[b-v97w9nkio4] {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    letter-spacing: var(--tracking-wide);
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--foreground-muted);
}

.ml-fact__value[b-v97w9nkio4] {
    min-width: 0;
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    line-height: 1.3;
    color: var(--foreground);
    overflow-wrap: break-word;
}

.ml-fact__value .badge[b-v97w9nkio4] {
    max-width: 100%;
    white-space: normal;
    text-align: left;
}

/* Narrow details panel: one column, values still share one line */
@container (max-width: 34rem) {
    .ml-facts-grid[b-v97w9nkio4] {
        grid-template-columns: 1.5rem max-content minmax(0, 1fr);
    }

    .ml-fact:nth-child(even)[b-v97w9nkio4]  .ml-fact__icon {
        margin-left: 0;
    }
}

/* Attendance summary: the same six tiles as on phones, 3 x 2 (one row of 6 on wide screens) */
@media (min-width: 768px) {
    .ml-att-strip[b-v97w9nkio4] {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: var(--space-2);
    }

    .ml-att-strip[b-v97w9nkio4]  .ui-stat {
        padding: var(--space-2) var(--space-3);
    }
}

@media (min-width: 1400px) {
    .ml-att-strip[b-v97w9nkio4] {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

/* Left list: the three selects share a row while there is room (min 9rem each), then wrap evenly */
.ml-filter-selects > .form-select[b-v97w9nkio4] {
    flex: 1 1 9rem;
    min-width: 0;
}

/* Heading + button row: heading wraps, button keeps its size and never collides */
.ml-section-head[b-v97w9nkio4] {
    display: flex;
    height: auto;
    margin-bottom: var(--space-3);
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
}

.ml-section-head__title[b-v97w9nkio4] {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

.ml-section-head__btn[b-v97w9nkio4] {
    flex: 0 0 auto;
    white-space: nowrap;
}

/* Attendance history: meeting wraps, the action column stays narrow */
.ml-att-table[b-v97w9nkio4] {
    width: 100%;
}

.ml-att-table .ml-att-meeting[b-v97w9nkio4] {
    min-width: 0;
    overflow-wrap: anywhere;
}

.ml-att-table .ml-att-act[b-v97w9nkio4] {
    width: 1%;
    white-space: nowrap;
}

.ml-att-edit[b-v97w9nkio4] {
    min-width: 0;
    width: 100%;
}

.ml-att-edit .form-control[b-v97w9nkio4] {
    min-width: 0;
}

@media (max-width: 767.98px) {
    .ml-att-table > :not(caption) > * > *[b-v97w9nkio4] {
        padding-inline: var(--space-2);
    }

    .ml-att-table .ml-att-act .ml-att-edit[b-v97w9nkio4] {
        min-width: 9rem;
    }
}

/* Left list while it reloads */
.is-refreshing[b-v97w9nkio4] {
    opacity: 0.6;
    transition: opacity 0.15s;
}

/* ── Phones (below 768px) — DOCS/MOBILE_DESIGN/Leaders.html. Issues / Manage as a chip row
   (Export is computer only), quick filters as one sideways chip row, leader tables as
   .ui-table--stack-sm cards, 44px buttons in the details panel. Fingerprint enrollment and
   exports are hidden (.ui-mobile-hide) and refused in code. Desktop is unchanged. ── */
@media (max-width: 767.98px) {
    /* .ui-toolbar stretches every child full width on phones; quick filters swipe instead */
    .ml-quick-chips[b-v97w9nkio4] {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .ml-quick-chips[b-v97w9nkio4]::-webkit-scrollbar {
        display: none;
    }

    .ml-quick-chips > .ui-chip[b-v97w9nkio4] {
        flex: 0 0 auto;
        width: auto;
        min-height: 44px;
        white-space: nowrap;
    }

    /* Issue badges + notes: a left-aligned line under the barangay / purok rows */
    .ui-table--stack-sm .ml-issues-cell[b-v97w9nkio4] {
        justify-content: flex-start;
        gap: var(--space-1);
        text-align: left;
    }

    /* Sort row: the select and the order button side by side (the shared toolbar stacks every child full width) */
    .ui-toolbar > #manageSortSelect[b-v97w9nkio4] {
        flex: 1 1 0;
        min-height: 44px;
    }

    .ui-toolbar > .ui-icon-btn[b-v97w9nkio4] {
        flex: 0 0 44px;
    }

    /* Details inside the bottom sheet: the sheet is the card */
    .ml-details--sheet[b-v97w9nkio4] {
        padding: 0;
        border: 0;
        box-shadow: none;
        background: transparent;
    }

    /* Header row: 56px avatar, name + badges, edit button */
    .ml-head[b-v97w9nkio4] {
        display: flex;
        align-items: center;
        gap: var(--space-3);
        margin-bottom: var(--space-4);
    }

    .ml-head__avatar[b-v97w9nkio4] {
        position: relative;
        display: inline-flex;
        flex: 0 0 56px;
        width: 56px;
        height: 56px;
        padding: 0;
        border: 0;
        border-radius: var(--radius-full);
        background: var(--primary-50);
        color: var(--primary-700);
        font-weight: var(--font-bold);
        overflow: visible;
    }

    .ml-head__avatar--edit[b-v97w9nkio4] {
        cursor: pointer;
    }

    .ml-head__img[b-v97w9nkio4] {
        width: 56px;
        height: 56px;
        border-radius: var(--radius-full);
        object-fit: cover;
    }

    .ml-head__initials[b-v97w9nkio4] {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        font-size: var(--text-lg);
    }

    .ml-head__avatar[b-v97w9nkio4]  .ml-head__cam {
        position: absolute;
        right: -2px;
        bottom: -2px;
        padding: 3px;
        box-sizing: content-box;
        border-radius: var(--radius-full);
        background: var(--primary-600);
        color: var(--neutral-0, #fff);
    }

    .ml-head__main[b-v97w9nkio4] {
        flex: 1 1 auto;
        min-width: 0;
    }

    .ml-head__name[b-v97w9nkio4] {
        margin: 0 0 var(--space-1);
        font-size: var(--text-base);
        font-weight: var(--font-bold);
        overflow-wrap: anywhere;
    }

    .ml-head__badges[b-v97w9nkio4] {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-1);
    }

    .ml-head .ui-icon-btn[b-v97w9nkio4] {
        flex: none;
    }

    /* Facts: compact two-column label / value grid */
    .ml-facts[b-v97w9nkio4] {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-3) var(--space-4);
        margin: 0 0 var(--space-3);
    }

    .ml-facts > div[b-v97w9nkio4] {
        min-width: 0;
    }

    .ml-facts__wide[b-v97w9nkio4] {
        grid-column: 1 / -1;
    }

    .ml-facts dt[b-v97w9nkio4] {
        font-size: var(--text-xs);
        font-weight: 400;
        color: var(--foreground-muted);
    }

    .ml-facts dd[b-v97w9nkio4] {
        margin: 0;
        font-size: var(--text-sm);
        font-weight: 600;
        font-variant-numeric: tabular-nums;
        overflow-wrap: anywhere;
    }

    /* Edit form + filter sheet: stacked, full width, labelled */
    .ml-form[b-v97w9nkio4] {
        display: flex;
        flex-direction: column;
        gap: var(--space-3);
    }

    .ml-form .form-label[b-v97w9nkio4] {
        margin-bottom: var(--space-1);
        font-size: var(--text-xs);
        color: var(--foreground-muted);
    }

    .ml-form .form-select[b-v97w9nkio4],
    .ml-form .form-control[b-v97w9nkio4] {
        width: 100%;
        min-height: 44px;
    }

    /* Attendance: six tiles, three per row */
    .ml-att-strip[b-v97w9nkio4] {
        gap: var(--space-2);
    }

    /* Filters button + removable chips under the search */
    .ml-filter-row[b-v97w9nkio4] {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: var(--space-2);
    }

    .ml-filter-btn[b-v97w9nkio4] {
        display: inline-flex;
        align-items: center;
        gap: var(--space-1);
    }

    .ml-filter-row .ui-chip[b-v97w9nkio4] {
        min-height: 36px;
    }

    /* Issues tab: compact cards (.ui-mcard family); the card is a <button>, so it needs full width + left text */
    .ml-card[b-v97w9nkio4] {
        width: 100%;
        text-align: left;
    }

    .ml-avatar[b-v97w9nkio4] {
        display: inline-flex;
        flex: 0 0 32px;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: var(--radius-full);
        background: var(--primary-50);
        color: var(--primary-700);
        font-size: var(--text-xs);
        font-weight: var(--font-bold);
    }

    .ml-card__open[b-v97w9nkio4] {
        display: inline-flex;
        align-items: center;
        flex: 0 0 auto;
        color: var(--primary-600);
        font-size: var(--text-xs);
        font-weight: 600;
    }

    /* Leader list rows: Members / Meetings figures under the name */
    .ml-row.is-selected[b-v97w9nkio4] {
        background: var(--primary-50);
    }

    .ml-metrics[b-v97w9nkio4] {
        display: flex;
        gap: var(--space-5);
        margin-top: var(--space-1);
        font-size: var(--text-sm);
        color: var(--neutral-600);
    }

    .ml-metrics strong[b-v97w9nkio4] {
        color: var(--primary-900);
        font-size: var(--text-base);
        font-weight: var(--font-bold);
        font-variant-numeric: tabular-nums;
    }
}

/* Phones (same look as the Watcher pages): white page via responsive.css
   (main:has(.ml-page)), and the lists sit straight on it — the table card
   loses its frame, so each leader card is the only box. */
@media (max-width: 767.98px) {
    .tab-pane[b-v97w9nkio4]  .ui-table-card {
        margin-bottom: var(--space-4);
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .tab-pane[b-v97w9nkio4]  .ui-table-card__head,
    .tab-pane[b-v97w9nkio4]  .ui-table-card__toolbar,
    .tab-pane[b-v97w9nkio4]  .ui-table-card__foot {
        padding-inline: 0;
        border: 0;
        background: transparent;
    }

    .tab-pane[b-v97w9nkio4]  .ui-table-card__foot {
        padding-top: var(--space-4);
    }
}

/* Phones, Issues / Manage tabs: header + filters stay fixed, only the list scrolls.
   .ml-fill chains the flex column down from .tab-content to the list's TableCard (.ui-list-page__fill). */
@media (max-width: 767.98px) {
    .ml-fill[b-v97w9nkio4],
    .tab-content > .ml-fill.tab-pane[b-v97w9nkio4] {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        flex-wrap: nowrap;
        min-height: 0;
    }

    .ml-fill > *[b-v97w9nkio4] { flex: 0 0 auto; }

    .ml-fill > .ml-fill[b-v97w9nkio4],
    .ml-fill[b-v97w9nkio4] >  .ui-list-page__fill { flex: 1 1 auto; }

    .ml-fill > .ui-filter-band[b-v97w9nkio4],
    .ml-fill > .ui-stat-strip[b-v97w9nkio4] { margin-bottom: 0; }

    /* the floating pager replaces the footer on phones */
    .ml-fill[b-v97w9nkio4]  .ui-table-card__foot { display: none; }
}
/* _content/ALMS/Components/Pages/ManageMembers.razor.rz.scp.css */
/* Scoped to ManageMembers.razor (Blazor CSS isolation). Moved from the page's <style> block. */

.section-title[b-0mpg212zyn] {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--alms-text-heading);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Desktop / tablet (>= 768px) */
@media (min-width: 768px) {
    /* The leaders column is 5/12 of the page: size its filters by the column, not the viewport */
    .mm-left[b-0mpg212zyn] { container-type: inline-size; }

    /* Search-mode row: Fuzzy / Cross-Barangay / tolerance steps wrap instead of overflowing the 7/12 panel */
    .mm-fuzzy[b-0mpg212zyn] {
        flex-wrap: wrap;
        row-gap: var(--space-2);
    }

}

/* Narrow leaders column (1024px-ish): the Barangay / Purok selects stack so names are not clipped */
@container (max-width: 22rem) {
    .mm-filters > .col-6[b-0mpg212zyn] {
        flex: 0 0 100%;
        width: 100%;
    }
}

/* Phone layout (< 768px, tracker S5, board Members). Desktop has no rules below. */
@media (max-width: 767.98px) {
    /* Flat page shells: no card inside the page, no grey boxes */
    .mm-shell[b-0mpg212zyn] {
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        overflow: visible;
    }

    .section-title[b-0mpg212zyn] {
        font-size: var(--text-base);
        margin-bottom: var(--space-2);
    }

    .mm-shell .list-group-item[b-0mpg212zyn] { min-height: 44px; }

    /* Flat filters: full-width search (icon inside), 2-column selects, 44px controls */
    .mm-filters[b-0mpg212zyn] {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-2);
        margin: 0 0 var(--space-3) !important;
        padding: 0;
        border: 0;
        background: transparent;
    }

    .mm-filters > *[b-0mpg212zyn] {
        width: auto;
        max-width: none;
        min-width: 0;
        margin: 0;
        padding: 0;
    }

    .mm-filters > :first-child[b-0mpg212zyn] { grid-column: 1 / -1; }

    .mm-filters .form-select[b-0mpg212zyn],
    .mm-filters .form-control[b-0mpg212zyn] { min-height: 44px; }

    /* Manage selects: the pin/signpost add-ons only eat width on phones */
    .mm-filters .input-group-text[b-0mpg212zyn] { display: none; }

    .mm-filters .input-group > .form-select[b-0mpg212zyn] {
        border-left: 1px solid var(--bs-border-color) !important;
        border-radius: var(--bs-border-radius) !important;
    }

    /* Manage header: view-by chips, then count + sort select on one row */
    .mm-manage-tools[b-0mpg212zyn] { width: 100%; }

    .mm-total[b-0mpg212zyn] {
        font-size: var(--text-sm) !important;
        font-weight: 600 !important;
        color: var(--neutral-600) !important;
    }

    .mm-sort[b-0mpg212zyn] {
        flex: 1 1 0;
        min-width: 0;
        min-height: 44px;
    }

    /* Fixed-header list layout: the Manage tab's tab-pane / row / column pass the page's height down to the list card */
    .mm-fillchain[b-0mpg212zyn] {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        min-height: 0;
        margin-bottom: 0;
    }

    /* Scrolling list bodies leave room for the floating pager */
    .mm-shell .mm-fill-body[b-0mpg212zyn] { padding-bottom: calc(var(--space-4) + 4.5rem); }

    /* Issues: leader groups sit flat inside the one TableCard */
    .mm-group[b-0mpg212zyn] {
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .mm-group + .mm-group[b-0mpg212zyn] { border-top: 1px solid var(--neutral-200); }

    /* Unresolved-members sheet: no card inside the sheet */
    .mm-unres[b-0mpg212zyn] {
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    /* Search-mode row: two toggle buttons side by side, tolerance as a select */
    .mm-fuzzy[b-0mpg212zyn] {
        flex-wrap: wrap;
        gap: var(--space-2);
    }

    .mm-fuzzy > .btn[b-0mpg212zyn] {
        flex: 1 1 calc(50% - var(--space-1));
        margin: 0 !important;
        white-space: nowrap;
    }

    .mm-tol-select[b-0mpg212zyn] {
        flex: 1 1 100%;
        min-height: 44px;
    }

    /* Unresolved rows: 44px controls; while editing the actions wrap under the input */
    .mm-unres .input-group > .btn[b-0mpg212zyn] {
        min-width: 44px;
    }

    .mm-unres .input-group > .form-control[b-0mpg212zyn] { min-height: 44px; }

    .mm-unres .input-group.mm-editing[b-0mpg212zyn] {
        flex-wrap: wrap;
        gap: var(--space-1);
    }

    .mm-editing > .form-control[b-0mpg212zyn] {
        flex: 1 1 calc(100% - 3rem);
        min-width: 0;
        border-left-width: 1px !important;
    }

    .mm-editing > .btn[b-0mpg212zyn] { flex: 1 1 0; }

    .mm-editing > *[b-0mpg212zyn] {
        margin-left: 0 !important;
        border-radius: var(--radius-md) !important;
    }

    /* Suggestions list flows inside the sheet instead of floating over it */
    .mm-unres .suggestions-dropdown[b-0mpg212zyn] {
        position: static !important;
        flex: 1 1 100%;
        max-height: 50vh;
        overflow-y: auto;
        margin-top: var(--space-1) !important;
    }

    .mm-sugg[b-0mpg212zyn] {
        min-height: 44px;
        padding-block: var(--space-2);
    }

    .mm-sugg-meta[b-0mpg212zyn] { gap: 0 !important; }

    .mm-sugg-meta > span + span[b-0mpg212zyn]::before {
        content: "\00b7";
        margin: 0 var(--space-1);
    }

    /* Logs header: group-by chips + one 44px A-Z / Z-A toggle on one row */
    .mm-log-tools[b-0mpg212zyn] {
        flex-wrap: nowrap !important;
        align-items: center;
        width: 100%;
    }

    .mm-log-group[b-0mpg212zyn] {
        flex: 1 1 auto;
        min-width: 0;
    }

    /* P5.9: soft issue tags (radius 6) */
    .mm-tag[b-0mpg212zyn] {
        margin-right: var(--space-1);
        padding: 2px 7px;
        border-radius: 6px;
        font-size: 11.5px;
        font-weight: var(--font-bold);
        letter-spacing: .04em;
    }

    .mm-group-name[b-0mpg212zyn] { min-width: 0; overflow-wrap: anywhere; }
}
/* _content/ALMS/Components/Pages/ManageRoles.razor.rz.scp.css */
/* Moved from the global app.css (page-only rules). */

.role-assign-chips[b-oftdnpxv01] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.role-badge-success[b-oftdnpxv01] {
    background: var(--success-100);
    color: var(--success-700);
}

.role-badge-warning[b-oftdnpxv01] {
    background: var(--bs-warning-bg-subtle);
    color: var(--warning-800);
}

.role-badge-danger[b-oftdnpxv01] {
    background: var(--bs-danger-bg-subtle);
    color: var(--danger-600);
}

.role-badge-info[b-oftdnpxv01] {
    background: var(--info-100);
    color: var(--info-800);
}

.role-badge-purple[b-oftdnpxv01] {
    background: var(--purple-100);
    color: var(--purple);
}

.role-badge-dark[b-oftdnpxv01] {
    background: var(--neutral-200);
    color: var(--alms-text-heading);
}

.legacy-roles-grid[b-oftdnpxv01] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Role management accordion */
.role-accordion-head[b-oftdnpxv01] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
    padding-right: var(--space-5);
}

.role-accordion-head > .ui-accordion__header[b-oftdnpxv01] {
    flex: 1 1 auto;
    width: auto;
}

.role-accordion-filters[b-oftdnpxv01] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    padding-left: var(--space-5);
}

.role-family[b-oftdnpxv01] {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--space-3);
    padding: var(--space-2) 0;
}

.role-family__label[b-oftdnpxv01] {
    flex: 0 0 80px;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--foreground-muted);
}

.role-family__chips[b-oftdnpxv01] {
    display: flex;
    flex: 1 1 0;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.role-chip[b-oftdnpxv01] {
    gap: 0;
    padding: 0;
}

.role-chip__main[b-oftdnpxv01],
.role-chip__remove[b-oftdnpxv01] {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
}

.role-chip__main[b-oftdnpxv01] {
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
}

.role-chip__remove[b-oftdnpxv01] {
    padding: var(--space-1) var(--space-2) var(--space-1) 0;
    border-radius: var(--radius-full);
    color: var(--danger-600);
}

.role-chip__main:focus-visible[b-oftdnpxv01],
.role-chip__remove:focus-visible[b-oftdnpxv01] {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

.role-add-row[b-oftdnpxv01] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border);
}

.role-add-row__input[b-oftdnpxv01] {
    flex: 0 1 260px;
}

.role-add-row__legacy[b-oftdnpxv01] {
    margin-left: auto;
}

@media (max-width: 767.98px) {
    .role-family__label[b-oftdnpxv01] { flex-basis: 100%; }
    .role-add-row__input[b-oftdnpxv01] { flex-basis: 100%; }
    .role-add-row__legacy[b-oftdnpxv01] { margin-left: 0; }
    .role-accordion-filters[b-oftdnpxv01] { padding-left: var(--space-5); }
}
/* _content/ALMS/Components/Pages/ManageSpecialVoters.razor.rz.scp.css */
/* Scoped to ManageSpecialVoters.razor (Blazor CSS isolation).
   Phone layout (< 768px, tracker S5, board Specials). Desktop has no rules here. */

@media (max-width: 767.98px) {
    /* Search-mode row: wrap instead of overflowing */
    .msv-fuzzy[b-4n3h3xdaw6] {
        flex-wrap: wrap;
        row-gap: var(--space-2);
    }

    /* List logs: the delete button sits first in the row; show it at the bottom of the card */
    .msv-log-list > tbody > tr[b-4n3h3xdaw6] {
        display: flex;
        flex-direction: column;
    }

    .msv-log-list > tbody > tr > .msv-log-actions[b-4n3h3xdaw6] { order: 1; }

    /* P5.9: soft category tags (radius 6), 44px resolve buttons */
    .msv-tag[b-4n3h3xdaw6] {
        margin-right: var(--space-1);
        padding: 2px 7px;
        border-radius: 6px;
        font-size: 11.5px;
        font-weight: var(--font-bold);
        letter-spacing: .04em;
    }

    .msv-group-name[b-4n3h3xdaw6] { min-width: 0; overflow-wrap: anywhere; }

    .msv-panel .input-group > .btn[b-4n3h3xdaw6],
    .msv-panel .msv-fuzzy > .btn[b-4n3h3xdaw6] {
        min-width: 44px;
        min-height: 44px;
    }

    /* Details panel inside the bottom sheet: no card inside the sheet */
    .msv-panel[b-4n3h3xdaw6] {
        margin: 0 !important;
        padding: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }

    /* Suggestions flow inside the sheet instead of floating over it */
    .msv-panel .suggestions-dropdown[b-4n3h3xdaw6] {
        position: static !important;
        max-height: 40vh;
        overflow-y: auto;
    }

    /* Flat filter bar: search full width, selects in 2 columns, 44px controls */
    .msv-filters[b-4n3h3xdaw6] {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-2);
        margin: 0 0 var(--space-3);
    }

    .msv-filters > *[b-4n3h3xdaw6] {
        width: auto;
        max-width: none;
        min-width: 0;
        padding: 0;
        margin: 0;
    }

    .msv-filters__search[b-4n3h3xdaw6] { grid-column: 1 / -1; }

    .msv-filters .form-select[b-4n3h3xdaw6],
    .msv-filters .form-control[b-4n3h3xdaw6],
    .msv-filters .btn[b-4n3h3xdaw6],
    .msv-manage-filters .form-select[b-4n3h3xdaw6],
    .msv-manage-filters .form-control[b-4n3h3xdaw6] {
        min-height: 44px;
    }

    .msv-search[b-4n3h3xdaw6] { position: relative; }

    .msv-search .form-control[b-4n3h3xdaw6] { padding-left: 2.25rem; }

    .msv-search[b-4n3h3xdaw6]  .msv-search__icon {
        position: absolute;
        left: var(--space-3);
        top: 50%;
        transform: translateY(-50%);
        color: var(--neutral-500);
        pointer-events: none;
    }

    /* Endorser row sub line */
    .msv-sub[b-4n3h3xdaw6] {
        display: block;
        margin-top: 2px;
        font-size: 12.5px;
        font-weight: 400;
        color: var(--neutral-600);
    }

    /* Fixed-header list layout: the Manage tab's tab-pane / row / column pass the page's height down to the list card */
    .msv-fillchain[b-4n3h3xdaw6] {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        min-height: 0;
        margin-bottom: 0;
    }

    /* Scrolling list bodies leave room for the floating pager */
    .card-standard .msv-fill-body[b-4n3h3xdaw6] { padding-bottom: calc(var(--space-4) + 4.5rem); }

}

/* Desktop / tablet (>= 768px): fixes only, layout unchanged */
@media (min-width: 768px) {
    /* Right-hand details panel is narrow at 1024 (7/12 column): let the search-mode row wrap */
    .msv-fuzzy[b-4n3h3xdaw6] {
        flex-wrap: wrap;
        row-gap: var(--space-2);
    }
}
/* _content/ALMS/Components/Pages/ManageTellers.razor.rz.scp.css */
/* Scoped to ManageTellers.razor (Blazor CSS isolation). Moved from the page's <style> block. */

/* Phase 5: ManageRoles Template Styles */
.section-title[b-004zyftvp0] {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--alms-text-heading);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.leader-row[b-004zyftvp0] {
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Row-state backgrounds on <tr class="leader-row">: forced because the row also carries ui-table / Bootstrap table
   row-state backgrounds that would otherwise win (the same applies to .conflict-row:hover below). */
.leader-row:hover[b-004zyftvp0] {
    background-color: var(--alms-bg-light) !important;
    transform: translateX(2px);
}

.leader-row.assigned[b-004zyftvp0] {
    background-color: var(--teller-info-bg) !important;
    border-left: 4px solid var(--primary-600);
}

.leader-row.assigned:hover[b-004zyftvp0] {
    background-color: var(--teller-info-bg-hover) !important;
}

/* Inherit Leaders - group labels */
.inherit-group-label[b-004zyftvp0] {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}

.best-match-label[b-004zyftvp0] {
    background-color: var(--bs-warning-bg-subtle);
    color: var(--teller-warning-fg);
}

.compatible-label[b-004zyftvp0] {
    background-color: var(--bs-primary-bg-subtle);
    color: var(--teller-info-fg);
}

.best-emergency-label[b-004zyftvp0] {
    background-color: var(--bs-danger-bg-subtle);
    color: var(--teller-danger-fg);
    border-left: 3px solid var(--danger-600);
}

.compatible-emergency-label[b-004zyftvp0] {
    background-color: var(--bs-warning-bg-subtle);
    color: var(--bs-warning-text-emphasis);
    border-left: 3px solid var(--warning-500);
}

/* Inheritor candidate cards */
.inherit-candidate-card[b-004zyftvp0] {
    border-radius: 8px;
    padding: 12px;
    height: 100%;
    transition: box-shadow 0.15s ease;
}

.inherit-candidate-card:hover[b-004zyftvp0] {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.best-match-card[b-004zyftvp0] {
    background-color: var(--tint-warning-faint);
    border: 1px solid var(--warning-500);
}

.compatible-card[b-004zyftvp0] {
    background-color: var(--teller-info-bg-soft);
    border: 1px solid var(--teller-info-border);
}

.teller-badge[b-004zyftvp0] {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

.teller-i[b-004zyftvp0] {
    background: var(--teller-cyan-bg);
    color: var(--teller-cyan-fg);
}

.teller-ii[b-004zyftvp0] {
    background: var(--teller-green-bg);
    color: var(--teller-green-fg);
}

.teller-iii[b-004zyftvp0] {
    background: var(--bs-warning-bg-subtle);
    color: var(--teller-warning-fg);
}

.teller-iv[b-004zyftvp0] {
    background: var(--bs-danger-bg-subtle);
    color: var(--teller-danger-fg-dark);
}

.cluster-card[b-004zyftvp0] {
    background: white;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.75rem;
    padding: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cluster-card:hover[b-004zyftvp0] {
    border-color: var(--primary-600);
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.1);
}

.purok-tag[b-004zyftvp0] {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--teller-chip-bg);
    color: var(--teller-chip-fg);
    padding: 0.25rem 0.625rem;
    border-radius: 1rem;
    margin: 0.15rem;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--teller-chip-border);
}

.purok-tag-remove[b-004zyftvp0] {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    display: inline-flex;
    align-items: center;
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.15s, color 0.15s;
}

.purok-tag-remove:hover[b-004zyftvp0] {
    opacity: 1;
    color: var(--danger-600);
}

.teller-select-item[b-004zyftvp0] {
    display: block;
    padding: 12px;
    border: 2px solid var(--neutral-100);
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.teller-select-item:hover[b-004zyftvp0] {
    border-color: var(--primary-600);
    background-color: var(--alms-bg-light);
}

.teller-select-item.selected[b-004zyftvp0] {
    border-color: var(--primary-600);
    background-color: var(--teller-info-bg);
}

/* SuperCluster Styles */
.supercluster-card[b-004zyftvp0] {
    background: white;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.supercluster-card:hover[b-004zyftvp0] {
    border-color: var(--primary-600);
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.1);
}

.supercluster-card .card-header[b-004zyftvp0] {
    background: var(--alms-bg-light);
    border-bottom: 1px solid var(--neutral-100);
    padding: 0.875rem 1rem;
}

.supercluster-card .card-body[b-004zyftvp0] {
    padding: 1rem;
}

.supercluster-card .sc-section[b-004zyftvp0] {
    padding-top: 0.875rem;
    margin-top: 0.875rem;
    border-top: 1px solid var(--neutral-100);
}

.supercluster-card .sc-section:first-child[b-004zyftvp0] {
    padding-top: 0;
    margin-top: 0;
    border-top: none;
}

.supercluster-card .sc-section-label[b-004zyftvp0] {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--alms-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* Statistics */
.stat-value[b-004zyftvp0] {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-600);
}

.stat-label[b-004zyftvp0] {
    font-size: 0.75rem;
    color: var(--alms-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Summary stat mini cards */
.cm-stat-card[b-004zyftvp0] {
    background: var(--alms-bg-light);
    border-radius: 0.5rem;
    padding: 0.75rem 0.5rem;
    text-align: center;
    border: 1px solid var(--neutral-100);
}

.cm-stat-card .stat-value[b-004zyftvp0] {
    font-size: 1.5rem;
}

.cm-stat-card .stat-label[b-004zyftvp0] {
    font-size: 0.7rem;
}

/* Teller Badge Item */
/* Clusters List */
.clusters-list[b-004zyftvp0] {
    max-height: 250px;
    overflow-y: auto;
}

.cluster-item[b-004zyftvp0] {
    background: white;
    border: 1px solid var(--neutral-100);
    border-radius: 0.5rem;
    padding: 0.625rem 0.75rem;
    margin-bottom: 0.375rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.15s ease;
}

.cluster-item:hover[b-004zyftvp0] {
    background-color: var(--alms-bg-light);
}

.cluster-item:last-child[b-004zyftvp0] {
    margin-bottom: 0;
}

.cluster-name[b-004zyftvp0] {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--alms-text-heading);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.cluster-item button[b-004zyftvp0] {
    flex-shrink: 0;
}

/* SC inline stats */
.sc-inline-stats[b-004zyftvp0] {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--alms-text-muted);
}

.sc-inline-stats span[b-004zyftvp0] {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Shift Summary Panel */
.shift-summary-panel[b-004zyftvp0] {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    overflow: hidden;
}

.shift-summary-header[b-004zyftvp0] {
    background: linear-gradient(135deg, var(--alms-bg-light) 0%, var(--neutral-100) 100%);
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--alms-text-secondary);
    border-bottom: 1px solid var(--bs-border-color);
}

.shift-summary-card[b-004zyftvp0] {
    padding: 0.6rem;
    border-radius: 0.375rem;
    border: 1px solid var(--bs-border-color);
    background: #fff;
}

.shift-am[b-004zyftvp0] {
    border-left: 3px solid var(--primary-600);
}

.shift-pm[b-004zyftvp0] {
    border-left: 3px solid var(--danger-600);
}

.shift-detail-row[b-004zyftvp0] {
    display: flex;
    align-items: center;
    font-size: 0.78rem;
    padding: 0.1rem 0;
    gap: 0.25rem;
}

.shift-conflict-badges[b-004zyftvp0] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.35rem 0;
}

.shift-conflict-badges .badge[b-004zyftvp0] {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
}

/* Conflict Modal */
.conflict-area-comparison[b-004zyftvp0] {
    background: var(--alms-bg-light);
    border-radius: 0.375rem;
    padding: 0.75rem;
}

.conflict-area-row[b-004zyftvp0] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

/* Moved from the global app.css (page-only rules). */

.conflict-row[b-004zyftvp0] {
    background-color: var(--bs-warning-bg-subtle);
    border-left: 3px solid var(--warning-500);
}

.conflict-row:hover[b-004zyftvp0] {
    background-color: var(--teller-warning-bg) !important;
}

.shift-badge-am[b-004zyftvp0] {
    background-color: var(--bs-primary-bg-subtle);
    color: var(--teller-info-fg);
}

.shift-badge-pm[b-004zyftvp0] {
    background-color: var(--bs-danger-bg-subtle);
    color: var(--teller-danger-fg);
}

.mt-shift-dot[b-004zyftvp0] {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    margin-right: 0.25rem;
    border-radius: 50%;
}

.mt-shift-dot--am[b-004zyftvp0] { background: var(--primary-600); }
.mt-shift-dot--pm[b-004zyftvp0] { background: var(--danger-600); }

.teller-ii-details-card[b-004zyftvp0] {
    border-radius: 12px;
    overflow: hidden;
}

.teller-ii-details-card .card-header[b-004zyftvp0] {
    padding: 0.75rem 1rem;
}

.hierarchy-item[b-004zyftvp0] {
    background: var(--alms-bg-light);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    min-width: 120px;
}

.hierarchy-label[b-004zyftvp0] {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--alms-text-muted);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hierarchy-value[b-004zyftvp0] {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--alms-text-heading);
    margin-top: 0.25rem;
}

.nav-tabs-sm .nav-link[b-004zyftvp0] {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
}

.nav-tabs-sm .nav-link.active[b-004zyftvp0] {
    font-weight: 600;
}

.user-cards-container[b-004zyftvp0] {
    scrollbar-width: thin;
    scrollbar-color: var(--bs-border-color) transparent;
}

.user-cards-container[b-004zyftvp0]::-webkit-scrollbar {
    width: 6px;
}

.user-cards-container[b-004zyftvp0]::-webkit-scrollbar-track {
    background: transparent;
}

.user-cards-container[b-004zyftvp0]::-webkit-scrollbar-thumb {
    background-color: var(--bs-border-color);
    border-radius: 3px;
}

.user-cards-container[b-004zyftvp0]::-webkit-scrollbar-thumb:hover {
    background-color: var(--bs-gray-500);
}

.supercluster-card[b-004zyftvp0] {
    transition: all 0.2s ease;
    border: 1px solid var(--neutral-100);
}

.supercluster-card:hover[b-004zyftvp0] {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.15);
    border-color: var(--primary-600);
}

.shift-section[b-004zyftvp0] {
    border: 1px solid var(--neutral-100);
    border-radius: 8px;
    overflow: hidden;
}

.shift-header[b-004zyftvp0] {
    border-bottom: 1px solid var(--neutral-100);
}

.teller-iii-details-card[b-004zyftvp0] {
    border-radius: 12px;
    overflow: hidden;
}

.teller-iii-details-card .card-header[b-004zyftvp0] {
    padding: 0.75rem 1rem;
}

.teller-iii-details-card .accordion-button[b-004zyftvp0] {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

.teller-iii-details-card .accordion-button:not(.collapsed)[b-004zyftvp0] {
    background-color: rgba(25, 135, 84, 0.1);
    color: var(--success-700);
}

.teller-iii-details-card .accordion-body[b-004zyftvp0] {
    padding: 1rem;
}

.teller-iii-details-card .accordion-item[b-004zyftvp0] {
    border-color: var(--bs-border-color);
}

.badge.teller-i[b-004zyftvp0] {
    background-color: var(--info-600);
    color: white;
}

.badge.teller-ii[b-004zyftvp0] {
    background-color: var(--success-500);
    color: white;
}

.badge.teller-iii[b-004zyftvp0] {
    background-color: var(--warning-500);
    color: var(--alms-text-heading);
}

.badge.teller-iv[b-004zyftvp0] {
    background-color: var(--alms-stat-purple);
    color: white;
}

.hierarchy-summary[b-004zyftvp0] {
    background: linear-gradient(135deg, var(--alms-bg-light) 0%, var(--neutral-100) 100%);
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}

.hierarchy-tree[b-004zyftvp0] {
    padding-right: 4px;
}

.hierarchy-level[b-004zyftvp0] {
    border-radius: 6px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.hierarchy-barangay[b-004zyftvp0] {
    border: 1px solid var(--teller-purple-border);
    border-left: 4px solid var(--alms-stat-purple);
    background: var(--teller-purple-bg);
}

.hierarchy-supercluster[b-004zyftvp0] {
    border: 1px solid var(--teller-card-blue-border);
    border-left: 4px solid var(--primary-600);
    background: var(--teller-card-blue-bg);
}

.hierarchy-cluster[b-004zyftvp0] {
    border: 1px solid var(--teller-card-green-border);
    border-left: 4px solid var(--success-700);
    background: var(--teller-card-green-bg);
}

.hierarchy-header[b-004zyftvp0] {
    width: 100%;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    user-select: none;
    gap: 0.5rem;
    transition: background-color 0.15s;
}

.hierarchy-header:hover[b-004zyftvp0] {
    background: rgba(0, 0, 0, 0.03);
}

[b-004zyftvp0] .hierarchy-toggle {
    font-size: 0.75rem;
    color: var(--alms-text-muted);
    flex-shrink: 0;
    width: 14px;
}

[b-004zyftvp0] .hierarchy-icon-barangay {
    color: var(--alms-stat-purple);
}

[b-004zyftvp0] .hierarchy-icon-sc {
    color: var(--primary-600);
}

[b-004zyftvp0] .hierarchy-icon-cluster {
    color: var(--success-700);
}

.hierarchy-stats[b-004zyftvp0] {
    font-size: 0.8rem;
    color: var(--alms-text-muted);
    font-weight: 400;
}

.hierarchy-children[b-004zyftvp0] {
    padding: 0.25rem 0.5rem 0.5rem 1.25rem;
}

.hierarchy-badge-iii[b-004zyftvp0] {
    background: var(--alms-stat-purple);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

.hierarchy-badge-ii[b-004zyftvp0] {
    background: var(--primary-600);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

.hierarchy-badge-i[b-004zyftvp0] {
    background: var(--success-700);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
}

.hierarchy-badge-empty[b-004zyftvp0] {
    background: var(--neutral-100);
    color: var(--alms-text-muted);
    font-size: 0.7rem;
    font-weight: 500;
    font-style: italic;
}

.hierarchy-shift-am[b-004zyftvp0] {
    background: var(--bs-primary-bg-subtle);
    color: var(--primary-700);
    font-size: 0.7rem;
    font-weight: 600;
}

.hierarchy-shift-pm[b-004zyftvp0] {
    background: var(--bs-warning-bg-subtle);
    color: var(--teller-warning-fg-dark);
    font-size: 0.7rem;
    font-weight: 600;
}

.hierarchy-teller[b-004zyftvp0] {
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.375rem;
    background: white;
    border: 1px solid var(--neutral-100);
    border-radius: 4px;
}

.hierarchy-leaders[b-004zyftvp0] {
    margin-top: 0.25rem;
    padding-left: 0.5rem;
}

.hierarchy-leader-row[b-004zyftvp0] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.15rem 0.5rem;
    font-size: 0.8rem;
    border-bottom: 1px dotted var(--neutral-100);
}

.hierarchy-leader-row:last-child[b-004zyftvp0] {
    border-bottom: none;
}

.hierarchy-leader-name[b-004zyftvp0] {
    color: var(--alms-text-secondary);
}

.hierarchy-leader-name i[b-004zyftvp0] {
    color: var(--bs-gray-500);
    font-size: 0.7rem;
}

.hierarchy-leader-count[b-004zyftvp0] {
    color: var(--alms-text-muted);
    font-weight: 500;
    font-size: 0.75rem;
    min-width: 20px;
    text-align: right;
}

/* ── Phase 5 (UI management pages): Assign / Inherit / Cluster tabs ── */

/* Role filter segmented control stretches over the narrow left panel */
.role-seg[b-004zyftvp0] {
    display: flex;
    width: 100%;
}

.role-seg > button[b-004zyftvp0] {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: var(--space-2);
    font-size: var(--text-xs);
    white-space: nowrap;
}

/* Compact selectable rows (tellers, barangays) */
.pick-list[b-004zyftvp0] {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    min-height: 0;
}

.pick-list--assign[b-004zyftvp0] { max-height: calc(100vh - 420px); }
.pick-list--cluster[b-004zyftvp0] { max-height: calc(100vh - 350px); }

.pick-row[b-004zyftvp0] {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    width: 100%;
    padding: var(--space-2) var(--space-3);
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    background: transparent;
    text-align: left;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.pick-row:hover[b-004zyftvp0] { background: var(--background-muted); }
.pick-row:focus-visible[b-004zyftvp0] { outline: 2px solid var(--border-focus); outline-offset: -2px; }

.pick-row.is-selected[b-004zyftvp0] {
    border-color: var(--primary-400);
    background: var(--primary-50);
}

.pick-row__body[b-004zyftvp0] {
    flex: 1 1 auto;
    min-width: 0;
}

.pick-row__body .ui-person__name[b-004zyftvp0],
.pick-row__body .ui-person__sub[b-004zyftvp0] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Skeleton chip while the summary loads */
.chip-skeleton[b-004zyftvp0] {
    display: inline-block;
    width: 7rem;
    height: 1.9rem;
}

/* Filter selects in the leader toolbar */
.toolbar-select[b-004zyftvp0] {
    flex: 0 1 180px;
    min-width: 140px;
    width: auto;
}

/* Shift coverage: one head line per card */
.shift-summary-body[b-004zyftvp0] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-2);
    padding: var(--space-2);
}

.shift-head-line[b-004zyftvp0] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-1);
}

.shift-head-stats[b-004zyftvp0] {
    display: flex;
    gap: var(--space-2);
    margin-left: auto;
    font-size: 0.78rem;
}

.shift-head-stats > span[b-004zyftvp0] {
    display: inline-flex;
    align-items: center;
}

/* Teller II / III detail cards: light heads */
.teller-ii-details-card .card-header h6[b-004zyftvp0],
.teller-iii-details-card .card-header h6[b-004zyftvp0] {
    font-family: var(--font-heading);
    color: var(--primary-900);
}

/* Card grids inside the right-hand detail panel: sized by the panel's own width, not the viewport.
   Single column on phones (as before); auto-fill from 768px up. */
.mt-card-grid[b-004zyftvp0] {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2);
}

.mt-card-grid--wide[b-004zyftvp0] {
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.mt-card-grid__item[b-004zyftvp0] { min-width: 0; }

/* Cluster summary stat tiles: five across when they fit, otherwise equal-width wrapped rows */
.mt-stat-grid[b-004zyftvp0] {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--space-2);
}

@media (min-width: 768px) {
    .mt-card-grid[b-004zyftvp0] {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
    }

    .mt-card-grid--wide[b-004zyftvp0] {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
    }

    .mt-stat-grid[b-004zyftvp0] {
        grid-template-columns: repeat(auto-fill, minmax(max(7.5rem, calc((100% - 4 * var(--space-2)) / 5)), 1fr));
    }

    /* Auto-assign review tree: long names / badges wrap instead of overflowing the panel */
    .hierarchy-header[b-004zyftvp0] { flex-wrap: wrap; }

    .hierarchy-header > div[b-004zyftvp0] {
        flex: 1 1 14rem;
        flex-wrap: wrap;
        min-width: 0;
    }
}

/* Teller III details head: barangay name + stat tiles wrap instead of squeezing each other */
.mt-t3-head[b-004zyftvp0] { gap: var(--space-3) var(--space-4); }

.mt-t3-stats[b-004zyftvp0] { min-width: min(100%, 16rem); }

/* Auto-assign debug log + export teller list */
.mt-debug-log[b-004zyftvp0] { background-color: var(--neutral-900); }

.mt-debug-log__pre[b-004zyftvp0] { font-family: var(--font-mono); }

.mt-export-list[b-004zyftvp0] { max-height: 25rem; }

@media (max-width: 767.98px) {
    .toolbar-select[b-004zyftvp0] {
        flex: 1 1 100%;
        min-width: 0;
    }

    /* Phones (view only): the teller list grows with the page instead of a fixed-height scroller */
    .pick-list--assign[b-004zyftvp0] { max-height: none; }

    .pick-row[b-004zyftvp0] { min-height: 56px; }

    /* Role filter: one line that scrolls sideways, 44px targets */
    .role-seg[b-004zyftvp0] {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .role-seg[b-004zyftvp0]::-webkit-scrollbar { display: none; }

    .role-seg > button[b-004zyftvp0] {
        flex: 1 0 auto;
        min-height: 44px;
    }

    /* ── Everything works on phones: stacked cards, 44px targets, pinned bars ── */
    .ui-data-card__head[b-004zyftvp0] { flex-wrap: wrap; }

    .ui-data-card__actions .btn[b-004zyftvp0],
    .mt-select-row .btn[b-004zyftvp0],
    .ui-toolbar > .btn[b-004zyftvp0],
    .ui-danger-zone .btn[b-004zyftvp0] { min-height: 44px; }

    /* Leader / barangay cards: checkbox column pinned at the card's left edge */
    .mt-selrow[b-004zyftvp0] {
        position: relative;
        padding-left: calc(var(--space-4) + 36px);
    }

    .mt-selrow > td.mt-selcell[b-004zyftvp0] {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        padding: 0;
    }

    .mt-selcell .form-check-input[b-004zyftvp0] {
        width: 22px;
        height: 22px;
        margin: 0;
    }

    .mt-pill[b-004zyftvp0] {
        display: block;
        margin-top: var(--space-1);
    }

    .mt-select-row[b-004zyftvp0] {
        display: flex;
        gap: var(--space-2);
        margin-bottom: var(--space-3);
    }

    /* AM | - | PM toggle fills the card width */
    .mt-selrow > td.mt-shiftcell[b-004zyftvp0] {
        justify-content: stretch;
        padding-top: var(--space-2);
    }

    /* Auto assign: readiness segmented control scrolls sideways */
    .readiness-seg[b-004zyftvp0] {
        max-width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .readiness-seg[b-004zyftvp0]::-webkit-scrollbar { display: none; }

    .readiness-seg > button[b-004zyftvp0] {
        flex: 1 0 auto;
        min-height: 44px;
        white-space: nowrap;
    }

    .hierarchy-header[b-004zyftvp0] { flex-wrap: wrap; min-height: 44px; }
    .hierarchy-header .badge[b-004zyftvp0] { white-space: normal; text-align: left; }

    /* Teller II / III detail cards stack */
    .teller-ii-details-card .row.align-items-stretch > [class*="col"][b-004zyftvp0] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* forced: beats the .d-flex utility on the same element */
    .teller-ii-details-card .row.align-items-stretch > .col-auto.d-flex[b-004zyftvp0] { display: none !important; }

    .teller-ii-details-card .nav-tabs-sm[b-004zyftvp0],
    .teller-ii-details-card .nav-tabs[b-004zyftvp0] {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .teller-ii-details-card .nav-tabs .nav-link[b-004zyftvp0] { white-space: nowrap; min-height: 44px; }

    .teller-iii-details-card .card-body > .d-flex.align-items-center.mb-4[b-004zyftvp0] { flex-wrap: wrap; gap: var(--space-3); }
    .teller-iii-details-card .card-body > .d-flex.align-items-center.mb-4 > .mt-t3-stats[b-004zyftvp0] { width: 100%; }
    .teller-iii-details-card .accordion-button .ms-auto[b-004zyftvp0] { flex-wrap: wrap; justify-content: flex-end; }

    /* Cluster management */
    .mt-inline-form > input[b-004zyftvp0] { flex: 1 1 100%; min-height: 44px; }
    .mt-inline-form > .btn[b-004zyftvp0] { flex: 1 1 0; min-height: 44px; }

    .cluster-card .form-control[b-004zyftvp0],
    .cluster-card .form-select[b-004zyftvp0],
    .supercluster-card .form-control[b-004zyftvp0],
    .supercluster-card .form-select[b-004zyftvp0] { min-height: 44px; width: 100%; }

    .purok-tag[b-004zyftvp0] { min-height: 32px; }

    .purok-tag-remove[b-004zyftvp0] {
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        margin: calc(-1 * var(--space-3)) calc(-1 * var(--space-3)) calc(-1 * var(--space-3)) 0;
        opacity: 0.8;
    }

    .teller-select-item[b-004zyftvp0] { min-height: 56px; }
}

/* Phones (P6.2): teller picker reads as a list card (same look as .ui-list-card / .ui-list-row) */
@media (max-width: 767.98px) {
    .pick-list[b-004zyftvp0] {
        gap: 0;
        max-height: none;
        overflow: hidden;
        border: 1px solid var(--neutral-200);
        border-radius: var(--radius-xl);
        background: #fff;
    }

    .pick-row[b-004zyftvp0] {
        min-height: 60px;
        padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4);
        border: 0;
        border-bottom: 1px solid var(--neutral-100);
        border-radius: 0;
    }

    .pick-row:last-child[b-004zyftvp0] { border-bottom: 0; }
    .pick-row.is-selected[b-004zyftvp0] { border-bottom-color: var(--neutral-100); }
}
/* _content/ALMS/Components/Pages/ManageWatchers.razor.rz.scp.css */
/* Scoped to ManageWatchers.razor (Blazor CSS isolation). */

.role-badge[b-y2bi3jbjmt] {
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}

.role-badge-watcher-i[b-y2bi3jbjmt] {
    background: var(--info-100);
    color: var(--info-900);
}

.role-badge-watcher-ii[b-y2bi3jbjmt] {
    background: var(--success-100);
    color: var(--success-800);
}

.role-badge-watcher-iii[b-y2bi3jbjmt] {
    background: var(--purple-100);
    color: var(--purple);
}

.wm-actions[b-y2bi3jbjmt] {
    white-space: nowrap;
}

.coverage-warning[b-y2bi3jbjmt] {
    color: var(--warning-800);
    font-weight: var(--font-medium);
}

@media (max-width: 767.98px) {
    /* Phones: the 3 counts sit side by side instead of swiping */
    .wm-stats[b-y2bi3jbjmt] {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: var(--space-2);
        overflow: visible;
    }

    .wm-stats[b-y2bi3jbjmt]  > * {
        min-width: 0;
        max-width: none;
        width: auto;
    }
}
/* _content/ALMS/Components/Pages/Profile/MyProfile.razor.rz.scp.css */
/* Scoped to MyProfile.razor. Phone layout only (mobile plan §2, boards Profile + Security);
   768px+ is unchanged. */
@media (max-width: 767.98px) {
	.my-profile[b-s6wgk41zpa] {
		padding-left: var(--space-4);
		padding-right: var(--space-4);
	}

	/* Identity row inside the navy header (no second banner) */
	.my-profile-hero[b-s6wgk41zpa] {
		display: flex;
		align-items: center;
		gap: var(--space-3);
		margin-bottom: var(--space-3);
	}

	.my-profile-hero[b-s6wgk41zpa]  .up-avatar--initial {
		background: var(--primary-100);
		color: var(--primary-900);
		font-weight: 800;
	}

	.my-profile-hero__text[b-s6wgk41zpa] {
		min-width: 0;
	}

	.my-profile-hero__name[b-s6wgk41zpa] {
		margin: 0 0 var(--space-1);
		font-size: var(--text-xl);
		font-weight: var(--font-bold);
		color: #fff;
		overflow-wrap: anywhere;
	}

	.my-profile-hero .up-role-badge[b-s6wgk41zpa] {
		background: var(--primary-50);
		color: var(--primary-900);
		padding: 2px 9px;
		font-size: var(--text-xs);
		letter-spacing: 0;
		text-transform: none;
	}

	/* Panel becomes transparent; each section is a label + white list card */
	.up-panel[b-s6wgk41zpa] {
		padding: 0;
		border: 0;
		background: transparent;
		box-shadow: none;
	}

	.up-panel[b-s6wgk41zpa]  .up-section-title {
		margin-bottom: var(--space-2);
		font-size: var(--text-xs);
		font-weight: var(--font-bold);
		letter-spacing: .08em;
		color: var(--neutral-600);
	}

	/* About: label left, value right-aligned, divider per row */
	.up-panel[b-s6wgk41zpa]  .up-detail-list {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr);
		column-gap: 0;
		overflow: hidden;
		border: 1px solid var(--neutral-200);
		border-radius: var(--radius-xl);
		background: #fff;
		font-size: var(--text-sm);
	}

	.up-panel[b-s6wgk41zpa]  .up-detail-list dt,
	.up-panel[b-s6wgk41zpa]  .up-detail-list dd {
		margin: 0;
		padding: var(--space-3) var(--space-4);
		border-bottom: 1px solid var(--neutral-100);
	}

	.up-panel[b-s6wgk41zpa]  .up-detail-list dt {
		padding-right: var(--space-3);
		color: var(--neutral-600);
	}

	.up-panel[b-s6wgk41zpa]  .up-detail-list dd {
		padding-left: 0;
		font-weight: var(--font-semibold);
		text-align: right;
		overflow-wrap: anywhere;
	}

	.up-panel[b-s6wgk41zpa]  .up-detail-list > :nth-last-child(-n+2) {
		border-bottom: 0;
	}

	/* Recent activity: one white card, dot + time under the text */
	.up-panel[b-s6wgk41zpa]  .up-timeline {
		overflow: hidden;
		border: 1px solid var(--neutral-200);
		border-radius: var(--radius-xl);
		background: #fff;
	}

	.up-panel[b-s6wgk41zpa]  .up-timeline li {
		position: relative;
		flex-direction: column;
		align-items: flex-start;
		padding: 10px var(--space-4) 10px 34px;
		font-size: var(--text-sm);
	}

	.up-panel[b-s6wgk41zpa]  .up-timeline li::before {
		content: "";
		position: absolute;
		left: var(--space-4);
		top: 16px;
		width: 8px;
		height: 8px;
		border-radius: 50%;
		background: var(--primary-600);
	}

	.up-panel[b-s6wgk41zpa]  .up-timeline-when {
		font-size: var(--text-xs);
		color: var(--neutral-600);
	}

	/* Security: one list card of 48px+ link rows */
	.up-security-grid[b-s6wgk41zpa] {
		display: block;
		overflow: hidden;
		border: 1px solid var(--neutral-200);
		border-radius: var(--radius-xl);
		background: #fff;
	}

	.up-security-card[b-s6wgk41zpa] {
		min-height: 56px;
		border: 0;
		border-bottom: 1px solid var(--neutral-100);
		border-radius: 0;
		background: transparent;
	}

	.up-security-card:last-child[b-s6wgk41zpa] {
		border-bottom: 0;
	}
}
/* _content/ALMS/Components/Pages/Profile/UserProfilePage.razor.rz.scp.css */
/* Scoped to UserProfilePage.razor. Phone layout only (mobile plan §2, board Profile);
   768px+ is unchanged. */
@media (max-width: 767.98px) {
	.user-profile-page[b-1wtrwk8q4y] {
		padding-left: 0;
		padding-right: 0;
	}

	.user-profile-page[b-1wtrwk8q4y]  .up-page-header {
		padding: var(--space-4);
		margin-bottom: var(--space-3);
	}

	.up-panel[b-1wtrwk8q4y] {
		padding: var(--space-4);
	}
}
/* _content/ALMS/Components/Pages/SetupWizard/OrphanedDataWarning.razor.rz.scp.css */
/* Scoped to OrphanedDataWarning.razor (Blazor CSS isolation). Moved from the page's <style> block. */

.orphaned-data-container[b-4iffpwgpra] {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-800) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.orphaned-data-card[b-4iffpwgpra] {
    background: white;
    border-radius: 1rem;
    padding: 3rem;
    width: 100%;
    max-width: 700px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.error-icon[b-4iffpwgpra] {
    width: 80px;
    height: 80px;
    background: var(--danger-600);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: white;
}

.error-title[b-4iffpwgpra] {
    text-align: center;
    color: var(--danger-600);
    font-weight: 700;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.error-description[b-4iffpwgpra] {
    text-align: center;
    color: var(--alms-text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.orphaned-tables-list[b-4iffpwgpra] {
    background: var(--alms-bg-light);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.orphaned-tables-list h6[b-4iffpwgpra] {
    font-weight: 700;
    color: var(--alms-text-secondary);
    margin-bottom: 1rem;
}

.orphaned-table-item[b-4iffpwgpra] {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--bs-border-color);
}

.orphaned-table-item:last-child[b-4iffpwgpra] {
    border-bottom: none;
}

.table-name[b-4iffpwgpra] {
    font-weight: 600;
    color: var(--alms-text-secondary);
}

.record-count[b-4iffpwgpra] {
    color: var(--danger-600);
    font-weight: 700;
}

.reset-actions[b-4iffpwgpra] {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.reset-actions > .btn[b-4iffpwgpra] {
    flex: 1;
}

.password-input-group[b-4iffpwgpra] {
    margin-bottom: 1.5rem;
}

.password-input-group label[b-4iffpwgpra] {
    font-weight: 600;
    color: var(--alms-text-secondary);
    margin-bottom: 0.5rem;
    display: block;
}

.password-input-group input[b-4iffpwgpra] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--bs-border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
}

.password-input-group input:focus[b-4iffpwgpra] {
    outline: none;
    border-color: var(--primary-600);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}
/* _content/ALMS/Components/Pages/SetupWizard/SetupWizard.razor.rz.scp.css */
/* Scoped to SetupWizard.razor (Blazor CSS isolation). Moved from the page's <style> block. */

.setup-wizard-container[b-apyljo1rdt] {
    display: flex;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-800) 100%);
}

.setup-sidebar[b-apyljo1rdt] {
    width: 300px;
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem 1.5rem;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.setup-logo[b-apyljo1rdt] {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--neutral-100);
}

.setup-logo h2[b-apyljo1rdt] {
    color: var(--primary-600);
    font-weight: 700;
    margin: 0;
    font-size: 1.5rem;
}

.setup-logo p[b-apyljo1rdt] {
    color: var(--alms-text-muted);
    font-size: 0.85rem;
    margin: 0.5rem 0 0 0;
}

.setup-steps[b-apyljo1rdt] {
    list-style: none;
    padding: 0;
    margin: 0;
}

.setup-step[b-apyljo1rdt] {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.setup-step.completed[b-apyljo1rdt] {
    background: var(--success-100);
    border-color: var(--success-500);
}

.setup-step.active[b-apyljo1rdt] {
    background: var(--primary-50);
    border-color: var(--primary-600);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.2);
}

.setup-step.pending[b-apyljo1rdt] {
    background: var(--alms-bg-light);
    color: var(--bs-gray-500);
}

.setup-step-icon[b-apyljo1rdt] {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-weight: 700;
    font-size: 0.9rem;
}

.setup-step.completed .setup-step-icon[b-apyljo1rdt] {
    background: var(--success-500);
    color: white;
}

.setup-step.active .setup-step-icon[b-apyljo1rdt] {
    background: var(--primary-600);
    color: white;
}

.setup-step.pending .setup-step-icon[b-apyljo1rdt] {
    background: var(--neutral-100);
    color: var(--alms-text-muted);
}

.setup-step-text[b-apyljo1rdt] {
    flex: 1;
}

.setup-step-title[b-apyljo1rdt] {
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
    color: var(--alms-text-secondary);
}

.setup-step.completed .setup-step-title[b-apyljo1rdt] {
    color: var(--success-500);
}

.setup-step.active .setup-step-title[b-apyljo1rdt] {
    color: var(--primary-600);
}

.setup-content[b-apyljo1rdt] {
    flex: 1;
    padding: 3rem;
    overflow-y: auto;
}

.setup-content-card[b-apyljo1rdt] {
    background: white;
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    max-width: 900px;
    margin: 0 auto;
}

.setup-header[b-apyljo1rdt] {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--neutral-100);
}

.setup-header h1[b-apyljo1rdt] {
    color: var(--alms-text-secondary);
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    font-size: 1.75rem;
}

.setup-header p[b-apyljo1rdt] {
    color: var(--alms-text-muted);
    margin: 0;
    font-size: 1rem;
}

.setup-actions[b-apyljo1rdt] {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--neutral-100);
    display: flex;
    justify-content: space-between;
}

/* Tablet / small desktop: the app sidebar (250px) + this 300px stepper + two paddings leave a ~230px form at 1024.
   Lay the stepper out as a row above the content instead so the form gets the full width. */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .setup-wizard-container[b-apyljo1rdt] {
        flex-direction: column;
    }

    .setup-sidebar[b-apyljo1rdt] {
        width: auto;
        padding: 1.25rem 1.5rem;
    }

    .setup-logo[b-apyljo1rdt] {
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }

    .setup-steps[b-apyljo1rdt] {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .setup-step[b-apyljo1rdt] {
        flex: 1 1 9rem;
        min-width: 0;
        margin-bottom: 0;
        padding: 0.65rem 0.75rem;
    }

    .setup-step-icon[b-apyljo1rdt] {
        flex: 0 0 32px;
        margin-right: 0.65rem;
    }

    .setup-content[b-apyljo1rdt] {
        padding: 1.5rem;
    }

    .setup-content-card[b-apyljo1rdt] {
        padding: 1.75rem;
    }
}
/* _content/ALMS/Components/Pages/Tabs/AdvancedImportTab.razor.rz.scp.css */
/* Import cards: as many ~32rem columns as the settings content area fits (one on narrow screens, two on wide ones).
   Sized by the container, not a viewport breakpoint, because the settings menu takes part of the width. */
.ai-grid[b-ggexr6envk] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 32rem), 1fr));
    align-items: stretch;
}
/* _content/ALMS/Components/Pages/Tabs/BarangaysPuroksTab.razor.rz.scp.css */
/* Server response shown inside the GeoJSON import error note. */
.bp-error-pre[b-mh6wciclgg] {
    margin: var(--space-1) 0 0;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    background: var(--primary-900);
    color: #fff;
    font-size: var(--text-sm);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
/* _content/ALMS/Components/Pages/Tabs/CandidatesTab.razor.rz.scp.css */
/* Scoped to CandidatesTab.razor (Blazor CSS isolation). The cards and the strip come from card.css. */

/* A position with open seats shows its count in the warning colour. */
.cand-open[b-n6unud35bi] {
    color: var(--warning-900);
}

/* A fixed-size slot, so the search never grows and pushes the buttons onto a second line. */
.cand-search[b-n6unud35bi] {
    flex: 0 1 14rem;
    min-width: 10rem;
}

.cand-group td[b-n6unud35bi] {
    background: var(--background-muted);
    color: var(--primary-800);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.cand-photo[b-n6unud35bi] {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

/* The strip sits in a card beside the settings menu (about 600px at 1024): five tiles need tighter padding below xl. */
@media (min-width: 768px) and (max-width: 1399.98px) {
    .cand-strip > *[b-n6unud35bi] {
        padding-inline: var(--space-3);
    }

    /* Keep the name column readable; the table card scrolls sideways instead of squeezing it. */
    .cand-table td:first-child[b-n6unud35bi] {
        min-width: 14rem;
    }
}

.cand-dialog[b-n6unud35bi] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-5);
}

.cand-dialog__col[b-n6unud35bi] {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    min-width: 0;
}

.cand-dialog__step[b-n6unud35bi] {
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--foreground-subtle);
}

.cand-voters[b-n6unud35bi] {
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.cand-voters li + li[b-n6unud35bi] {
    border-top: 1px solid var(--border);
}

.cand-voters__item[b-n6unud35bi] {
    display: block;
    width: 100%;
    padding: var(--space-2) var(--space-3);
    border: 0;
    background: transparent;
    text-align: left;
}

.cand-voters__item:hover[b-n6unud35bi],
.cand-voters__item:focus-visible[b-n6unud35bi] {
    background: var(--primary-50);
}

.cand-voters__badges[b-n6unud35bi] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
}

.cand-photo-preview[b-n6unud35bi] {
    width: 64px;
    height: 64px;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    object-fit: cover;
}

.cand-priority-group[b-n6unud35bi] {
    margin: var(--space-4) 0 var(--space-2);
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    color: var(--foreground-muted);
}

.cand-share-input[b-n6unud35bi] {
    display: inline-block;
    width: 5.5rem;
}

@media (max-width: 767.98px) {
    .cand-dialog[b-n6unud35bi] {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ── Phones: position chips band + tap-to-edit rows (board SetCandidates) ── */
@media (max-width: 767.98px) {
    .cand-poschips[b-n6unud35bi] {
        margin: calc(-1 * var(--space-4)) calc(-1 * var(--mobile-gutter)) var(--space-3);
        padding: 12px var(--mobile-gutter);
        background: #fff;
        border-bottom: 1px solid var(--neutral-200);
    }

    .cand-sub[b-n6unud35bi] {
        margin: 0 0 var(--space-2);
        font-size: 0.78125rem;
        color: var(--neutral-600);
    }

    .cand-row[b-n6unud35bi] {
        display: flex;
        align-items: center;
        gap: var(--space-3);
        width: 100%;
        min-height: 72px;
        padding: 10px 12px 10px 14px;
        border: 0;
        border-bottom: 1px solid var(--neutral-100);
        background: #fff;
        text-align: left;
    }

    .cand-row:last-child[b-n6unud35bi] {
        border-bottom: 0;
    }

    .cand-row:active[b-n6unud35bi] {
        background: var(--primary-50);
    }

    .cand-row.is-muted .cand-row__name[b-n6unud35bi] {
        color: var(--neutral-600);
    }

    .cand-row__main[b-n6unud35bi] {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        gap: 6px;
        min-width: 0;
    }

    .cand-row__name[b-n6unud35bi] {
        font-size: 0.9375rem;
        font-weight: var(--font-bold);
        color: var(--neutral-900);
        overflow-wrap: anywhere;
    }

    .cand-row__tags[b-n6unud35bi] {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .cand-tag[b-n6unud35bi] {
        padding: 2px 7px;
        border-radius: 6px;
        font-size: 0.71875rem;
        font-weight: var(--font-bold);
    }

    .cand-tag--own[b-n6unud35bi] {
        background: var(--primary-900);
        color: #fff;
    }

    .cand-tag--other[b-n6unud35bi] {
        background: var(--neutral-100);
        color: var(--neutral-800);
    }

    .cand-tag--prio[b-n6unud35bi] {
        background: var(--warning-100);
        color: var(--warning-900);
    }

    .cand-share[b-n6unud35bi] {
        display: flex;
        flex: none;
        flex-direction: column;
        align-items: flex-end;
    }

    .cand-share b[b-n6unud35bi] {
        font-size: 1.0625rem;
        font-variant-numeric: tabular-nums;
    }

    .cand-share span[b-n6unud35bi] {
        font-size: 0.71875rem;
        color: var(--neutral-600);
    }

    .cand-share.is-none b[b-n6unud35bi],
    .cand-share.is-none span[b-n6unud35bi] {
        color: var(--warning-900);
    }
}
/* _content/ALMS/Components/Pages/Tabs/CreateAccountTab.razor.rz.scp.css */
/* Manage Roles → Create account (CreateAccountTab.razor). Cards, rows and the sticky action come from the kit;
   only the field grids, chip wrap and password line are page-specific. */

.ca[b-9x237gkvfa] {
    max-width: 60rem;
}

/* Fields side by side; 1 column on phones and in narrow cards */
.ca-grid[b-9x237gkvfa] {
    display: grid;
    gap: var(--space-3);
    width: 100%;
}

.ca-grid--2[b-9x237gkvfa] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ca-grid--3[b-9x237gkvfa] { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@container (max-width: 39.99rem) {
    .ca-grid--3[b-9x237gkvfa] { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 575.98px) {
    .ca-grid--2[b-9x237gkvfa],
    .ca-grid--3[b-9x237gkvfa] { grid-template-columns: minmax(0, 1fr); }
}

.ca-grid .form-label[b-9x237gkvfa] {
    margin-bottom: var(--space-1);
    font-size: 0.8125rem;
    color: var(--foreground-muted);
}

/* A control cell holding a field plus its message / extra buttons stacks them */
.ca-stack[b-9x237gkvfa] {
    flex-direction: column;
    align-items: stretch;
}

.ca-pass-actions[b-9x237gkvfa] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.ca-chips[b-9x237gkvfa] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.ca-password[b-9x237gkvfa] {
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-md);
    background: var(--neutral-100);
    color: var(--foreground);
    font-size: var(--text-base);
    user-select: all;
}

/* Phones: 44px touch targets */
@media (max-width: 767.98px) {
    .ca-pass-actions .btn[b-9x237gkvfa],
    .ca-chips .ui-chip[b-9x237gkvfa] {
        min-height: 44px;
    }
}
/* _content/ALMS/Components/Pages/Tabs/ElectionSlatesTab.razor.rz.scp.css */
/* Scoped to ElectionSlatesTab.razor (Blazor CSS isolation). The cards themselves come from card.css. */

/* A changed segmented value is outlined, next to "Was 8". */
.ui-segmented button.is-changed[b-to6r8u1rt7] {
    background: var(--warning-50);
    box-shadow: 0 0 0 2px var(--warning-500);
}

.es-new-slate[b-to6r8u1rt7] {
    max-width: 22.5rem;
}

/* Tracking switch: the shared .ui-switch with its On/Off word (the word hides on phones; the row title names it). */
.es-switch[b-to6r8u1rt7] {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

/* ── Phones: slates as list rows (board SetElection) ── */
@media (max-width: 767.98px) {
    .es-switch label[b-to6r8u1rt7] {
        display: none;
    }

    .es-list .ui-list-row[b-to6r8u1rt7] {
        min-height: 60px;
    }

    .es-list .ui-list-row.is-new[b-to6r8u1rt7] {
        background: var(--warning-50);
    }

    .es-list .ui-list-row.is-new .ui-list-row__sub[b-to6r8u1rt7],
    .es-list .es-sub-changed[b-to6r8u1rt7] {
        color: var(--warning-900);
    }

    .es-own[b-to6r8u1rt7] {
        padding: 2px 9px;
        border-radius: var(--radius-full);
        background: var(--primary-900);
        color: #fff;
        font-size: var(--text-xs);
        font-weight: var(--font-bold);
    }

    .es-kebab[b-to6r8u1rt7] {
        display: inline-flex;
        flex: none;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border: 0;
        border-radius: var(--radius-full);
        background: transparent;
        color: var(--neutral-700);
    }

    .es-kebab:disabled[b-to6r8u1rt7] {
        opacity: 0.5;
    }

    .es-add[b-to6r8u1rt7] {
        display: flex;
        gap: var(--space-2);
        padding: 12px 14px;
        border-top: 1px solid var(--neutral-100);
    }

    .es-add .form-control[b-to6r8u1rt7] {
        flex: 1 1 auto;
        min-width: 0;
        height: 46px;
        border-radius: 10px;
        font-size: 16px;
    }

    .es-add .btn[b-to6r8u1rt7] {
        flex: none;
        height: 46px;
        border-radius: 10px;
        font-weight: var(--font-bold);
        white-space: nowrap;
    }
}
/* _content/ALMS/Components/Pages/TellerDashboard.razor.rz.scp.css */
/* Scoped to TellerDashboard.razor (Blazor CSS isolation). Moved from the page's <style> block. */

/* ── Teller-specific badges ───────────────────────────────── */
.custom-rate-badge[b-4pz5fnmqc8] {
    font-size: .7rem;
    padding: .2em .5em;
}

/* ── Pagination ───────────────────────────────────────────── */
.td-pagination .page-link[b-4pz5fnmqc8] {
    font-size: .82rem;
    padding: .3rem .65rem;
}

/* ── Modal header ─────────────────────────────────────────── */

/* ── Donut / chart bodies (was an inline min-height) ──────── */
/* Donut: total released in the hole (desktop and phones) */
.td-donut-center[b-4pz5fnmqc8] { inset: 0; }
.td-donut-center > div[b-4pz5fnmqc8] { line-height: 1.2; }
.td-donut-center__value[b-4pz5fnmqc8] { font-size: 1.2rem; color: var(--neutral-900); }

.td-chart-body[b-4pz5fnmqc8] {
    min-height: 280px;
}

/* ── Phones (below 768px) — DOCS/MOBILE_DESIGN/TellerDash.html ──
   Page tabs are a chip row (Biometrics is computer only), KPIs a stat
   strip, the donut is 140px (Responsive option in .razor.cs) and
   "Payments by barangay" is a top-5 bar list with "Show all". */
@media (max-width: 767.98px) {
    .td-chart-body[b-4pz5fnmqc8] {
        min-height: 0;
        margin-top: var(--space-2);
    }

    /* Fixed ring box so the legend keeps its room inside the card (a full-width box pushed it past the edge) */
    .td-donut[b-4pz5fnmqc8] {
        flex: 0 0 9.5rem;
        width: 9.5rem;
    }

    .td-donut-center__value[b-4pz5fnmqc8] { font-size: 0.875rem; }
    .td-donut-center .fs-mini[b-4pz5fnmqc8] { font-size: 0.625rem; }

    .td-bgy-hint[b-4pz5fnmqc8] {
        margin: 0 0 var(--space-2);
        color: var(--neutral-600);
        font-size: var(--text-xs);
    }

    .td-bgy-row[b-4pz5fnmqc8] {
        display: grid;
        grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr) 3rem;
        align-items: center;
        gap: var(--space-2);
        min-height: 32px;
        font-size: var(--text-sm);
    }

    .td-bgy-name[b-4pz5fnmqc8] {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .td-bgy-track[b-4pz5fnmqc8] {
        display: block;
        height: 8px;
        overflow: hidden;
        border-radius: var(--radius-full);
        background: var(--neutral-100);
    }

    .td-bgy-fill[b-4pz5fnmqc8] {
        display: block;
        height: 100%;
        border-radius: var(--radius-full);
        background: var(--primary-600);
    }

    .td-bgy-pct[b-4pz5fnmqc8] {
        text-align: right;
        font-variant-numeric: tabular-nums;
    }
}

/* Open-concerns link card (below the KPIs): the whole card is the link. */
.td-concern-link[b-4pz5fnmqc8] {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-height: 56px;
    padding: var(--space-3);
    border: 1px solid var(--warning-300);
    border-radius: var(--radius-xl);
    background: var(--warning-50);
    color: var(--warning-900);
    font-size: var(--text-sm);
    text-decoration: none;
}

.td-concern-text[b-4pz5fnmqc8] {
    flex: 1;
    font-weight: 700;
}

@media (max-width: 767.98px) {
    .td-bgy-fill--low[b-4pz5fnmqc8] {
        background: var(--warning-600);
    }
}

/* Teller detail modal: AM/PM chart body (the Responsive option shrinks the chart to 180px on phones) */
.td-modal-chart[b-4pz5fnmqc8] {
    min-height: 240px;
}

/* ── Phones (below 768px), part 2 — flat tab content, donut legend, barangay
   tiles (.td-brgy), purok bottom sheet (.td-purok*). Same approach as the
   Encoder Dashboard (.ed-brgy, .ed-purok*). ─────────────────────────── */
@media (max-width: 767.98px) {
    /* No white container under the header: the cards sit straight on the
       page (made white in responsive.css, main:has(.td-tab-content)). */
    .td-tab-content[b-4pz5fnmqc8] {
        min-height: 0;
        padding: 0.5rem 0 0;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .td-modal-chart[b-4pz5fnmqc8] {
        min-height: 0;
    }

    /* Custom donut legend: pushed to the right edge, text then colour dot */
    .td-donut-legend[b-4pz5fnmqc8] {
        flex: 1 1 auto;
        min-width: 0;
        margin-left: auto;
        font-size: var(--text-xs);
    }

    .td-donut-legend .chart-legend-row[b-4pz5fnmqc8] {
        flex-direction: row-reverse;
        justify-content: flex-start;
    }

    /* Turnout bars: faint = encoded (full width), solid = paid */
    .td-bgy-track--dual[b-4pz5fnmqc8] {
        background: var(--primary-200);
    }

    /* Barangay tiles (Release summary + Turnout detail). The row itself is
       unframed: the barangay name stands OUTSIDE, vertical at the left, and
       a bordered box holds the numbers. --td-per-row (set on the table) =
       stats per line; a short last line is centred. 7 stats = 4 + 3. */
    .td-brgy > tbody > tr:not(.is-drilldown)[b-4pz5fnmqc8] {
        position: relative;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 0.625rem;
        align-items: flex-start;
        padding: 0.875rem 0.75rem 0.875rem 2.75rem;
        overflow: hidden;
        min-height: 7rem;
        border: 1px solid var(--neutral-200);
        border-radius: 14px;
        background: var(--card-background, #fff) !important;   /* beats .row-danger / .row-warning (base.css, !important) */
    }

    .td-brgy > tbody > tr:not(.is-drilldown) > td[b-4pz5fnmqc8] {
        border: 0 !important;
        position: relative;
        box-shadow: none !important;
        background: transparent;
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        justify-content: flex-end;
        flex: 0 0 calc(100% / var(--td-per-row, 4));
        width: calc(100% / var(--td-per-row, 4));
        gap: 0.25rem;
        padding: 0;
        text-align: center;
        font-size: 1.125rem;
        font-weight: 800;
        line-height: 1.1;
        white-space: nowrap;
        font-variant-numeric: tabular-nums;
    }

    .td-brgy > tbody > tr:not(.is-drilldown) > td[b-4pz5fnmqc8]::before {
        max-width: none;
        margin: 0;
        padding: 0;
        font-size: 0.6875rem;
        font-weight: 500;
        text-align: center;
    }

    /* Name: outside the box, vertical, bottom to top. Absolute so it can
       never make the row taller; font shrinks with the name's length. */
    .td-brgy > tbody > tr:not(.is-drilldown) > td.ui-stack-title[b-4pz5fnmqc8] {
        position: absolute;
        inset: 0 auto 0 0.25rem;
        width: 2rem;
        display: flex;
        align-items: center;
        justify-content: center;
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        overflow: hidden;
        font-size: clamp(0.625rem, calc(8.5rem / max(var(--name-len, 8), 1)), 0.9375rem);
        font-weight: 900;
        text-overflow: ellipsis;
    }

    /* The chevron is a child component (SvgIcon), which scoped CSS cannot reach without ::deep */
    .td-brgy > tbody > tr:not(.is-drilldown) > td.ui-stack-title[b-4pz5fnmqc8]  svg,
    .td-brgy > tbody > tr:not(.is-drilldown) > td.ui-stack-title[b-4pz5fnmqc8]  .svg-icon {
        display: none !important;   /* the sheet replaces the inline arrow */
    }

    /* Long names: the tile grows (never crops) once the name is at its smallest size */
    .td-brgy > tbody > tr:not(.is-drilldown)[b-4pz5fnmqc8] {
        min-height: max(7rem, calc(var(--name-len, 8) * 0.5rem + 1.75rem));
    }

    .td-brgy > tbody > tr:not(.is-drilldown) > td.ui-stack-title strong[b-4pz5fnmqc8] {
        white-space: nowrap;
        overflow: visible;
    }

    /* Purok bottom sheet (AppModal in TellerDashboard.razor) */
    .td-purok[b-4pz5fnmqc8] {
        padding: 0.75rem 0;
        border-top: 1px dashed var(--neutral-200);
    }

    .td-purok:first-child[b-4pz5fnmqc8] {
        padding-top: 0;
        border-top: 0;
    }

    .td-purok__name[b-4pz5fnmqc8] {
        margin: 0 0 0.5rem;
        font-size: 1rem;
        font-weight: 700;
    }

    .td-purok__grid[b-4pz5fnmqc8] {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(var(--td-detail-rows, 4), auto);
        grid-auto-flow: column;
        column-gap: 1.5rem;
        row-gap: 0.375rem;
        margin: 0;
    }

    .td-purok__grid > div[b-4pz5fnmqc8] {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .td-purok__grid dt[b-4pz5fnmqc8] {
        font-size: var(--text-xs);
        font-weight: 600;
        white-space: nowrap;
        color: var(--foreground-muted);
    }

    .td-purok__grid dd[b-4pz5fnmqc8] {
        margin: 0;
        font-size: var(--text-sm);
        font-weight: 700;
        font-variant-numeric: tabular-nums;
    }

    /* Phone cards (endorsers, rate overrides, biometrics) use the shared .ui-mcards / .ui-mcard
       family (list-card.css); only the rate-edit field is page-specific. */
    .td-field[b-4pz5fnmqc8] {
        display: block;
        margin-top: var(--space-2);
        font-size: var(--text-xs);
        font-weight: 600;
        color: var(--neutral-600);
    }

    .td-field .form-control[b-4pz5fnmqc8] { margin-top: 2px; }

    /* Rates */
    .td-global-rates[b-4pz5fnmqc8] {
        margin-bottom: var(--space-3);
        padding: var(--space-3);
        border: 1px solid var(--neutral-200);
        border-radius: var(--radius-xl);
    }

    .td-global-rates__head[b-4pz5fnmqc8] {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-2);
    }

    .td-global-rates__grid[b-4pz5fnmqc8],
    .td-rate-grid[b-4pz5fnmqc8] {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: var(--space-2);
        margin-top: var(--space-2);
    }

    .td-global-rates__grid > div[b-4pz5fnmqc8],
    .td-rate-grid > div[b-4pz5fnmqc8] {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .td-global-rates__grid > div[b-4pz5fnmqc8] { align-items: center; text-align: center; }

    .td-stat__label[b-4pz5fnmqc8] {
        font-size: var(--text-xs);
        color: var(--neutral-600);
    }

    .td-stat__value[b-4pz5fnmqc8] {
        font-weight: 700;
        font-variant-numeric: tabular-nums;
    }

    .td-stat__value--custom[b-4pz5fnmqc8] { color: var(--primary-600); }

    /* Biometrics */
    /* the bypass-rate bar is a .ui-mcard__bar; only its thinner track is page-specific */
    .td-bypass__bar[b-4pz5fnmqc8] { height: 6px; }

    .td-legend[b-4pz5fnmqc8] { font-size: var(--text-xs); }
}

/* ── Phone polish: filters, compact teller card, rates heading ── */
@media (max-width: 767.98px) {
    /* Flat filter bar: 2-column selects, search full width (+ 44px CSV icon) */
    .td-filters[b-4pz5fnmqc8] {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-2);
        padding: 0;
        margin-bottom: var(--space-3);
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .td-filters--one[b-4pz5fnmqc8] { grid-template-columns: minmax(0, 1fr); }

    .td-filters > div[b-4pz5fnmqc8] { min-width: 0; }

    .td-filters__label[b-4pz5fnmqc8] {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .td-filters .form-select[b-4pz5fnmqc8],
    .td-filters .form-control[b-4pz5fnmqc8],
    .td-filters .btn[b-4pz5fnmqc8] {
        min-height: 44px;
    }

    .td-filters__search[b-4pz5fnmqc8] {
        grid-column: 1 / -1;
    }

    .td-filters__search .form-control[b-4pz5fnmqc8] {
        flex: 1 1 auto;
        min-width: 0;
    }

    .td-filters__csv[b-4pz5fnmqc8] {
        flex: 0 0 auto;
        width: 44px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Compact teller operator card (.ui-mcard--btn): inner layout is page-specific */
    .td-acct__body[b-4pz5fnmqc8] { display: block; min-width: 0; }

    .td-acct__head[b-4pz5fnmqc8] {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: var(--space-2);
    }

    /* sub line is a span inside .td-acct__body (not a direct card child): block + its own 2px gap */
    .td-acct__sub[b-4pz5fnmqc8] {
        display: block;
        margin-top: 2px;
    }

    .td-acct__counts[b-4pz5fnmqc8] {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: var(--space-2);
        margin-top: var(--space-2);
    }

    .td-count-grid[b-4pz5fnmqc8] {
        display: grid;
        flex: 1 1 auto;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: var(--space-1);
    }

    .td-count-grid > span[b-4pz5fnmqc8] {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .td-count-grid .td-stat__label[b-4pz5fnmqc8] { font-size: 0.625rem; }

    .td-acct__endorsers[b-4pz5fnmqc8] { flex: 0 0 auto; white-space: nowrap; font-weight: 500; }

    /* Rates heading: no icon, shorter one-line title */
    .td-rates-card[b-4pz5fnmqc8]  .ui-table-card__head > svg,
    .td-rates-card[b-4pz5fnmqc8]  .ui-table-card__head > .svg-icon {
        display: none;
    }

    .td-rates-card[b-4pz5fnmqc8]  .ui-table-card__title {
        font-size: 0;
        white-space: nowrap;
    }

    .td-rates-card[b-4pz5fnmqc8]  .ui-table-card__title::after {
        content: "Barangay rate overrides";
        font-size: var(--text-base, 1rem);
    }
}

/* ── Desktop / tablet (768px and up) ─────────────────────────────
   Phone rules above are untouched. */
@media (min-width: 768px) {
    /* Tab row: six tabs overflowed the content width at ~1024px and wrapped the
       last one onto a second line. Tighter padding below 1200px, never wrap a label. */
    .td-tabs .nav-link[b-4pz5fnmqc8] {
        white-space: nowrap;
    }

    /* Donut: a definite width so it follows the card (a shrink-wrapped box never
       re-measured on resize); the total in the hole scales with the ring. */
    .td-donut[b-4pz5fnmqc8] {
        width: 100%;
        max-width: 26rem;
        container-type: inline-size;
    }

    /* Ring height follows the donut box width (was fixed 300px), capped so it never gets huge.
       The chart div is the first child; the second is the centre label overlay. */
    .td-donut[b-4pz5fnmqc8]  > div:first-child {
        height: clamp(220px, 85cqi, 340px);
    }

    /* Bar chart heights: shared .chart-fit / .chart-fit--modal in base.css */

    .td-donut-center__value[b-4pz5fnmqc8] {
        font-size: clamp(0.85rem, 7cqi, 1.2rem);
    }

    .td-chart-body[b-4pz5fnmqc8] {
        flex-wrap: wrap;
        align-content: center;
    }

    /* Series legend (the built-in Apex legend is hidden inside .chart-card by base.css) */
    .td-series-legend[b-4pz5fnmqc8] {
        flex: 1 0 100%;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: var(--space-1) var(--space-4);
        margin-bottom: var(--space-2);
        font-size: var(--text-sm);
    }

    .td-series-legend__item[b-4pz5fnmqc8] {
        display: inline-flex;
        align-items: center;
        gap: var(--space-2);
    }

    /* Global-rates banner: text left, "Edit Global Rates" button pushed right */
    .td-rates-banner[b-4pz5fnmqc8] {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: var(--space-2) var(--space-4);
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .td-tabs .nav-link[b-4pz5fnmqc8] {
        padding: 0.55rem 0.65rem;
    }
}
/* _content/ALMS/Components/Pages/TellerPayroll.razor.rz.scp.css */
/* Scoped to TellerPayroll.razor (Blazor CSS isolation). Moved from the page's <style> block. */
/* Base Variables */
/* Summary Cards */
.summary-cards[b-h9f1jy72el] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Compact variant for selected barangay view */
.summary-cards.compact[b-h9f1jy72el] {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.summary-cards.compact .summary-card[b-h9f1jy72el] {
    padding: 0.75rem;
}

.summary-cards.compact .summary-card-icon[b-h9f1jy72el] {
    font-size: 1.25rem;
}

.summary-cards.compact .summary-card-label[b-h9f1jy72el] {
    font-size: 0.7rem;
}

.summary-cards.compact .summary-card-value[b-h9f1jy72el] {
    font-size: 1.25rem;
}

.summary-cards.compact .summary-card-subvalue[b-h9f1jy72el] {
    font-size: 0.75rem;
}

.summary-card[b-h9f1jy72el] {
    background: white;
    border-radius: 0.75rem;
    padding: 1.25rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    border-left: 4px solid var(--primary-600);
    transition: transform 0.2s, box-shadow 0.2s;
}

.summary-card:hover[b-h9f1jy72el] {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}

.summary-card.success[b-h9f1jy72el] {
    border-left-color: var(--success-700);
}

.summary-card.warning[b-h9f1jy72el] {
    border-left-color: var(--warning-500);
}

.summary-card.info[b-h9f1jy72el] {
    border-left-color: var(--info-700);
}

.summary-card.dark[b-h9f1jy72el] {
    border-left-color: var(--alms-text-heading);
}

.summary-card-icon[b-h9f1jy72el] {
    font-size: 2rem;
    opacity: 0.8;
}

.summary-card-label[b-h9f1jy72el] {
    font-size: 0.85rem;
    color: var(--alms-text-muted);
    margin: 0.5rem 0 0.25rem;
}

.summary-card-value[b-h9f1jy72el] {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--alms-text-heading);
}

.summary-card-subvalue[b-h9f1jy72el] {
    font-size: 0.9rem;
    color: var(--alms-text-muted);
    margin-top: 0.25rem;
}

/* Progress Bar */
.progress-bar-custom[b-h9f1jy72el] {
    height: 8px;
    border-radius: 4px;
    background: var(--neutral-100);
    margin-top: 0.5rem;
    overflow: hidden;
}

.progress-bar-custom .progress-fill[b-h9f1jy72el] {
    height: 100%;
    background: linear-gradient(90deg, var(--success-700) 0%, var(--bs-teal) 100%);
    transition: width 0.3s ease;
    border-radius: 4px;
}

/* Transfer Section */
.transfer-section[b-h9f1jy72el] {
    background: white;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.transfer-badge[b-h9f1jy72el] {
    position: relative;
}

.transfer-badge .notification-dot[b-h9f1jy72el] {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger-600);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid white;
    animation: pulse-b-h9f1jy72el 2s infinite;
}

@keyframes pulse-b-h9f1jy72el {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Filter Section */
.filter-section[b-h9f1jy72el] {
    background: white;
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.leader-header[b-h9f1jy72el] {
    border-bottom: 2px solid #f1f3f5;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.leader-photo-square[b-h9f1jy72el] {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid var(--neutral-100);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.leader-info-grid[b-h9f1jy72el] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    font-size: 0.9rem;
}

.leader-info-grid .info-item[b-h9f1jy72el] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.leader-info-grid .info-item i[b-h9f1jy72el] {
    color: var(--primary-600);
    width: 20px;
}

.leader-actions[b-h9f1jy72el] {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.75rem;
}

/* Badge Styles */
.badge-leader[b-h9f1jy72el] {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge.bg-purple[b-h9f1jy72el] {
    background-color: var(--purple);
    color: white;
    font-size: 0.7rem;
    padding: 0.35em 0.55em;
    border-radius: 0.5rem;
}

/* Member Table */

/* Modal Enhancements */
/* Loading States */
.loading-overlay[b-h9f1jy72el] {
    background: rgba(255,255,255,0.9);
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
}

.spinner-border[b-h9f1jy72el] {
    width: 3rem;
    height: 3rem;
}

/* Request Card Styles */
.request-card[b-h9f1jy72el] {
    background: white;
    border: 2px solid var(--neutral-100);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: border-color 0.2s;
}

.request-card:hover[b-h9f1jy72el] {
    border-color: var(--primary-600);
}

.request-card.transfer-received[b-h9f1jy72el] {
    border-left: 4px solid var(--warning-500);
}

.request-card.transfer-sent[b-h9f1jy72el] {
    border-left: 4px solid var(--info-700);
}

.request-card.substitution[b-h9f1jy72el] {
    border-left: 4px solid #ff9800;
}

.request-card.unlock[b-h9f1jy72el] {
    border-left: 4px solid var(--alms-text-heading);
}

/* Fingerprint Section Styling */
.fingerprint-section[b-h9f1jy72el] {
    background: linear-gradient(135deg, var(--alms-bg-light) 0%, var(--neutral-100) 100%);
    transition: all 0.3s ease;
}

.fingerprint-section.scanning[b-h9f1jy72el] {
    background: linear-gradient(135deg, var(--bs-primary-bg-subtle) 0%, #e7f1ff 100%);
    border-color: var(--primary-600) !important;
}

.fingerprint-section.verified[b-h9f1jy72el] {
    background: linear-gradient(135deg, var(--bs-success-bg-subtle) 0%, #f1f8f4 100%);
    border-color: var(--success-700) !important;
}

.fingerprint-section.error[b-h9f1jy72el] {
    background: linear-gradient(135deg, var(--bs-danger-bg-subtle) 0%, #f5c2c7 100%);
    border-color: var(--danger-600) !important;
}

/* Fingerprint Scanning Animation */
.fingerprint-scanning-animation[b-h9f1jy72el] {
    position: relative;
    display: inline-block;
}

[b-h9f1jy72el] .pulse-animation {
    animation: pulse-fingerprint-b-h9f1jy72el 2s infinite;
}

@keyframes pulse-fingerprint-b-h9f1jy72el {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* Scanning Rays Effect */
.fingerprint-scanning-animation[b-h9f1jy72el]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--primary-600);
    animation: scan-rays-b-h9f1jy72el 2s infinite;
    opacity: 0;
}

@keyframes scan-rays-b-h9f1jy72el {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

/* Fingerprint Icon Styling */
/* Success Checkmark Animation */
@keyframes checkmark-appear-b-h9f1jy72el {
    0% { transform: scale(0) rotate(-45deg); opacity: 0; }
    50% { transform: scale(1.2) rotate(0deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* Enhanced Button State */
.btn-success:disabled[b-h9f1jy72el] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Offline Mode Badge */
.badge.bg-warning[b-h9f1jy72el] {
    animation: blink-warning-b-h9f1jy72el 2s infinite;
}

@keyframes blink-warning-b-h9f1jy72el {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Phase 5: Barangay Card View Styles */
.barangay-overview-section[b-h9f1jy72el] {
    margin-bottom: 2rem;
}

/* Status Summary Header */
.summary-stats-grid[b-h9f1jy72el] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.summary-stat[b-h9f1jy72el] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--alms-bg-light);
    border-radius: 0.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.summary-stat:hover[b-h9f1jy72el] {
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.summary-stat .stat-icon[b-h9f1jy72el] {
    font-size: 1.75rem;
    width: 40px;
    text-align: center;
}

.summary-stat .stat-content[b-h9f1jy72el] {
    flex: 1;
}

.summary-stat .stat-value[b-h9f1jy72el] {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--alms-text-heading);
    line-height: 1.2;
}

.summary-stat .stat-label[b-h9f1jy72el] {
    font-size: 0.75rem;
    color: var(--alms-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.barangay-cards-grid[b-h9f1jy72el] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.barangay-card[b-h9f1jy72el] {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    display: block;
    width: 100%;
    text-align: left;
    font: inherit;
    color: inherit;
}

.barangay-card:hover[b-h9f1jy72el] {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border-color: var(--primary-600);
}

.barangay-name[b-h9f1jy72el] {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--alms-text-heading);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.barangay-name[b-h9f1jy72el]::before {
    content: '🏘️';
    font-size: 1.5rem;
}

.barangay-card .stat-row[b-h9f1jy72el] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.barangay-card .stat-row i[b-h9f1jy72el] {
    font-size: 1.1rem;
}

.barangay-card .stat-label[b-h9f1jy72el] {
    color: var(--alms-text-muted);
    font-weight: 500;
}

.barangay-card .stat-value[b-h9f1jy72el] {
    font-weight: 700;
    color: var(--alms-text-heading);
    margin-left: auto;
}

.barangay-card .completion-bar[b-h9f1jy72el] {
    margin-top: 1rem;
}

.barangay-card .completion-bar .progress[b-h9f1jy72el] {
    height: 8px;
    border-radius: 4px;
    background: var(--neutral-100);
}

.barangay-card .completion-bar .progress-bar[b-h9f1jy72el] {
    border-radius: 4px;
    font-size: 0.7rem;
    line-height: 8px;
    font-weight: 700;
}

/* ── Shift Overview ─────────────────────────────── */
.my-shift-summary[b-h9f1jy72el] {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.shift-overview-card[b-h9f1jy72el] {
    border-radius: 0.75rem;
    padding: 1.25rem;
    border: 1px solid var(--bs-border-color);
    height: 100%;
}

.shift-overview-card.shift-am[b-h9f1jy72el] {
    border-left: 4px solid var(--primary-600);
    background: linear-gradient(135deg, #f0f7ff 0%, #fff 100%);
}

.shift-overview-card.shift-pm[b-h9f1jy72el] {
    border-left: 4px solid var(--danger-600);
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
}

.shift-section-header[b-h9f1jy72el] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 1.05rem;
}

.shift-am-header[b-h9f1jy72el] {
    background: linear-gradient(90deg, #dbeafe 0%, var(--alms-bg-light) 100%);
    border-left: 4px solid var(--primary-600);
}

.shift-pm-header[b-h9f1jy72el] {
    background: linear-gradient(90deg, #fee2e2 0%, var(--alms-bg-light) 100%);
    border-left: 4px solid var(--danger-600);
}

.barangay-card.barangay-card-am:hover[b-h9f1jy72el] {
    border-color: var(--primary-600);
}

.barangay-card.barangay-card-pm:hover[b-h9f1jy72el] {
    border-color: var(--danger-600);
}

/* Moved from the global app.css (page-only rules). */
.barangay-card.active[b-h9f1jy72el] {
    border-color: var(--primary-600);
    background: linear-gradient(135deg, var(--primary-50) 0%, #fff 100%);
}

.barangay-card .card-header[b-h9f1jy72el] {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.barangay-name[b-h9f1jy72el] {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.5rem 0;
}

.completion-bar[b-h9f1jy72el] {
    margin-top: 1rem;
}

.completion-bar .progress[b-h9f1jy72el] {
    height: 24px;
    border-radius: 12px;
    background-color: #f0f0f0;
}

.completion-bar .progress-bar[b-h9f1jy72el] {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    transition: width 0.6s ease;
}

.teller-card[b-h9f1jy72el] {
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-3);
    cursor: pointer;
    transition: border-color var(--transition-fast);
}

.teller-card:hover[b-h9f1jy72el] {
    border-color: var(--border-hover);
}

.teller-card.selected[b-h9f1jy72el] {
    border-color: var(--primary-600);
}
/* ── Member details sheet (phones; AppModal = bottom sheet) — MemberSheet.html ── */
/* Concern sheet (phones): chips wrap; picked substitute is a card with Change */
@media (max-width: 767.98px) {
    .concern-chips[b-h9f1jy72el] {
        flex-wrap: wrap;
        overflow: visible;
    }

    .concern-substitute[b-h9f1jy72el] {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-3);
        padding: var(--space-3);
        border: 1px solid var(--neutral-200);
        border-radius: var(--radius-lg);
        background: var(--neutral-50);
    }

    .concern-substitute__text[b-h9f1jy72el] {
        display: flex;
        flex-direction: column;
        min-width: 0;
        font-size: var(--text-sm);
        color: var(--neutral-600);
    }

    .concern-substitute__text strong[b-h9f1jy72el] {
        color: var(--neutral-900);
        overflow-wrap: anywhere;
    }
}

.member-sheet-actions[b-h9f1jy72el] {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: var(--space-2);
    width: 100%;
}

/* ── Phones (below 768px) — Payroll.html ─────────────
   Pay buttons are hidden with .ui-mobile-hide unless payment fingerprints
   are off (PayControlsMobileClass); the pay openers refuse otherwise (.razor.cs).
   Reverts, transfers and unlock requests are available on phones. */
@media (max-width: 767.98px) {
    .payroll-phone-note[b-h9f1jy72el] {
        margin-bottom: var(--space-3);
    }

    .barangay-cards-grid[b-h9f1jy72el] {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-3);
    }

    .shift-section-header[b-h9f1jy72el] {
        flex-wrap: wrap;
    }

    .shift-section-header > .ms-auto[b-h9f1jy72el] {
        flex: 1 1 100%;
    }

    .transfer-section[b-h9f1jy72el],
    .filter-section[b-h9f1jy72el] {
        padding: var(--space-3);
        margin-bottom: var(--space-3);
    }

    .leader-card[b-h9f1jy72el] {
        padding: var(--space-4);
        margin-bottom: var(--space-3);
    }

    .leader-photo-square[b-h9f1jy72el] {
        width: 56px;
        height: 56px;
    }

    .leader-info-grid[b-h9f1jy72el] {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-1);
        font-size: var(--text-sm);
    }

    .member-sheet-actions > .btn[b-h9f1jy72el],
    .concern-actions > .btn[b-h9f1jy72el] {
        flex: 1 1 0;
    }

}

/* ── Desktop/tablet audit fixes ───────────────────── */
/* Former inline styles: apply at all widths */
.pr-shift-progress[b-h9f1jy72el] { height: 8px; }
.pr-transfer-leaders[b-h9f1jy72el] { max-height: 220px; }
.pr-requests-body[b-h9f1jy72el] { max-height: 60vh; }
.pr-prewrap[b-h9f1jy72el] { white-space: pre-line; }
.pr-suggest-list[b-h9f1jy72el] { z-index: var(--z-modal); }
.pr-shift-head[b-h9f1jy72el] { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.pr-shift-head--am[b-h9f1jy72el] { background: var(--warning-100); }
.pr-shift-head--pm[b-h9f1jy72el] { background: var(--info-100); }

/* Leader action buttons and shift headers wrap instead of overflowing */
.leader-actions[b-h9f1jy72el] { flex-wrap: wrap; }
.shift-section-header[b-h9f1jy72el] { flex-wrap: wrap; }

/* The page's .spinner-border { 3rem } also won over Bootstrap's .spinner-border-sm: button spinners were 3rem (all widths) */
.spinner-border.spinner-border-sm[b-h9f1jy72el] {
    width: 1rem;
    height: 1rem;
}

/* 768-1199: 5 tiles no longer leave an orphan (4+1): a 3 + 2 layout with even rows */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .summary-cards.compact[b-h9f1jy72el],
    .summary-stats-grid[b-h9f1jy72el] {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .summary-cards.compact > .summary-card[b-h9f1jy72el],
    .summary-stats-grid > .summary-stat[b-h9f1jy72el] {
        grid-column: span 2;
    }

    .summary-cards.compact > .summary-card:nth-child(n+4)[b-h9f1jy72el],
    .summary-stats-grid > .summary-stat:nth-child(n+4)[b-h9f1jy72el] {
        grid-column: span 3;
    }
}

/* Header paid progress (phones), per board Payroll */
.pr-hdr-progress[b-h9f1jy72el] { display: flex; align-items: center; gap: var(--space-3); color: #fff; font-size: var(--text-sm); font-weight: var(--font-semibold); font-variant-numeric: tabular-nums; }
.pr-hdr-progress__bar[b-h9f1jy72el] { flex: 1; height: 8px; overflow: hidden; border-radius: var(--radius-full); background: var(--primary-700); }
.pr-hdr-progress__bar > div[b-h9f1jy72el] { height: 100%; border-radius: var(--radius-full); background: #fff; }

/* Phones (below 768px): restyle within the current flow (P5.6). Requests bell + segmented shift on the
   navy header, search band, leader cards and 60px member rows with a flag (raise concern) button.
   Only pay stays hidden and guarded on phones (BlockedOnPhoneAsync). */
@media (max-width: 767.98px) {
    .pr-bell.btn[b-h9f1jy72el] {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        min-width: 44px;
        padding: 0;
        border: 0;
        border-radius: var(--radius-full);
        background: transparent;
        color: #fff;
    }

    .pr-bell__dot[b-h9f1jy72el] {
        position: absolute;
        top: 8px;
        right: 8px;
        width: 9px;
        height: 9px;
        border-radius: var(--radius-full);
        background: var(--warning-400);
    }

    /* Shift filter: segmented control on the navy header */
    .pr-seg.ui-segmented[b-h9f1jy72el] {
        background: var(--primary-800);
        margin-bottom: var(--space-3);
    }

    .pr-seg.ui-segmented > button[b-h9f1jy72el] {
        min-height: 40px;
        color: var(--primary-50);
        font-size: var(--text-sm);
    }

    .pr-seg.ui-segmented > button.is-active[b-h9f1jy72el] {
        background: #fff;
        color: var(--primary-900);
        box-shadow: none;
    }

    /* Info note: borderless, 12px radius */
    .payroll-phone-note[b-h9f1jy72el] {
        border: 0;
        border-radius: var(--radius-xl);
        padding: var(--space-3) var(--space-4);
        background: var(--primary-50);
        color: var(--primary-900);
        font-size: 0.84375rem;
        line-height: 1.45;
        text-align: left;
    }

    .transfer-section[b-h9f1jy72el] {
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    /* Leader card: one bordered list card, tinted header */
    .leader-card[b-h9f1jy72el] {
        padding: 0;
        overflow: hidden;
        border: 1px solid var(--neutral-300);
        border-radius: var(--radius-xl);
        box-shadow: none;
    }

    .leader-card:hover[b-h9f1jy72el] { transform: none; box-shadow: none; }

    .leader-card .leader-header[b-h9f1jy72el] {
        margin: 0;
        padding: var(--space-3) var(--space-4);
        border-bottom: 1px solid var(--neutral-200);
        background: var(--primary-50);
    }

    .leader-card .leader-header h5[b-h9f1jy72el] { margin-bottom: 2px !important; font-size: var(--text-base); font-weight: var(--font-bold); }

    .pr-leader-sub[b-h9f1jy72el] { margin-bottom: var(--space-2); font-size: 0.78125rem; color: var(--neutral-700); }

    .leader-card[b-h9f1jy72el]  .ui-table-card {
        margin: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    /* Member rows: name + precinct left, status + flag right */
    .pr-members.ui-table--list-sm > tbody > tr[b-h9f1jy72el] {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        column-gap: var(--space-2);
        min-height: 60px;
        padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4);
    }

    .pr-members.ui-table--list-sm > tbody > tr > td[b-h9f1jy72el] {
        justify-content: flex-start;
        width: auto;
        padding: 0;
        text-align: left;
    }

    .pr-members.ui-table--list-sm > tbody > tr > .ui-stack-title[b-h9f1jy72el] { grid-column: 1; font-size: 0.9375rem; }

    .pr-members.ui-table--list-sm > tbody > tr > td[data-label="Precinct"][b-h9f1jy72el] {
        grid-column: 1;
        font-size: 0.78125rem;
        color: var(--neutral-600);
    }

    .pr-members.ui-table--list-sm > tbody > tr > td[data-label="Precinct"][b-h9f1jy72el]::before {
        content: "Precinct ";
        max-width: none;
        margin: 0;
        padding: 0;
        font-size: inherit;
    }

    .pr-members.ui-table--list-sm > tbody > tr > .pr-end[b-h9f1jy72el] {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-items: center;
        gap: var(--space-1);
    }

    .pr-flag[b-h9f1jy72el] {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        border-radius: var(--radius-full);
        background: transparent;
        color: var(--warning-900);
    }

    .pr-flag:focus-visible[b-h9f1jy72el] { outline: 2px solid var(--primary-600); outline-offset: -2px; }
}
/* _content/ALMS/Components/Pages/UiKit.razor.rz.scp.css */
/* Scoped to UiKit.razor only (Blazor CSS isolation). */

.kit-section[b-6aqh7gfm92] {
    margin-bottom: var(--space-10);
}

.kit-h2[b-6aqh7gfm92] {
    margin: 0 0 var(--space-3);
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--primary-900);
}

.kit-note[b-6aqh7gfm92] {
    margin: 0 0 var(--space-4);
    font-size: var(--text-sm);
    color: var(--foreground-muted);
}

.kit-scale[b-6aqh7gfm92] {
    display: grid;
    grid-template-columns: 80px repeat(10, minmax(0, 1fr));
    align-items: end;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.kit-scale-name[b-6aqh7gfm92] {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    align-self: center;
}

.kit-swatch[b-6aqh7gfm92] {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.kit-swatch-chip[b-6aqh7gfm92] {
    height: 36px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.kit-swatch code[b-6aqh7gfm92] {
    font-size: var(--text-xs);
    color: var(--foreground-muted);
}

.kit-grid-4[b-6aqh7gfm92] {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-4);
}

.kit-grid-2[b-6aqh7gfm92] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
}

.kit-card[b-6aqh7gfm92] {
    padding: var(--space-4);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card-background);
}

.kit-card-label[b-6aqh7gfm92] {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--foreground-subtle);
}

.kit-search[b-6aqh7gfm92] {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    max-width: 420px;
}

@media (max-width: 991.98px) {
    .kit-grid-4[b-6aqh7gfm92] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kit-grid-2[b-6aqh7gfm92] { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
    .kit-grid-4[b-6aqh7gfm92] { grid-template-columns: 1fr; }
    .kit-scale[b-6aqh7gfm92] { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .kit-scale-name[b-6aqh7gfm92] { grid-column: 1 / -1; }
}

/* FingerprintEnrollment demo: modal-sized card */
.kit-fp[b-6aqh7gfm92] {
    max-width: 520px;
    padding: var(--space-5);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    background: var(--card-background);
}
/* _content/ALMS/Components/Pages/VoterRealignment/ReviewMatchesTable.razor.rz.scp.css */
/* Scoped to ReviewMatchesTable.razor (Blazor CSS isolation). Moved from the page's <style> block. */

.review-matches-container[b-fyt1i5r6qh] {
    font-size: 0.9rem;
}

/* 10% of a ~700-1100px modal is too narrow for the Accept/Accepted button and the % badge. */
.rm-col-match[b-fyt1i5r6qh] {
    min-width: 6.5rem;
}

.rm-col-action[b-fyt1i5r6qh] {
    min-width: 8rem;
}

.voter-card[b-fyt1i5r6qh] {
    padding: 0.5rem;
}

.voter-name[b-fyt1i5r6qh] {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.voter-details small[b-fyt1i5r6qh] {
    display: block;
    line-height: 1.6;
}

.highlight-diff[b-fyt1i5r6qh] {
    background-color: var(--bs-warning-bg-subtle);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
}

.similarity-badge[b-fyt1i5r6qh] {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: bold;
    font-size: 1.1rem;
}

.similarity-high[b-fyt1i5r6qh] {
    background-color: #d4edda;
    color: #155724;
}

.similarity-medium[b-fyt1i5r6qh] {
    background-color: var(--bs-warning-bg-subtle);
    color: #856404;
}

.similarity-low[b-fyt1i5r6qh] {
    background-color: var(--bs-danger-bg-subtle);
    color: #721c24;
}

/* _content/ALMS/Components/Pages/VoterSearchAdvanced.razor.rz.scp.css */
/* Scoped to VoterSearchAdvanced.razor (Blazor CSS isolation). Moved from the page's <style> block. */

.electoral-section-title[b-9fpf75turf] {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--alms-text-heading);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ── Row indicators + legend for voters that have notes (the panel itself: Shared/VoterNotesPanel.razor.css) ── */

.voter-row-note[b-9fpf75turf] {
    border-left: 4px solid transparent;
}

.voter-row-note.note-stance-opposition[b-9fpf75turf] { border-left-color: var(--danger-600); }
.voter-row-note.note-stance-leaning[b-9fpf75turf] { border-left-color: var(--warning-600); }
.voter-row-note.note-stance-undecided[b-9fpf75turf] { border-left-color: var(--alms-text-muted); }
.voter-row-note.note-stance-info[b-9fpf75turf] { border-left-color: var(--secondary-600); }
.voter-row-note.note-stance-supporter[b-9fpf75turf] { border-left-color: var(--success-600); }

.voter-notes-badge[b-9fpf75turf] {
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    display: inline-flex;
    align-items: center;
}

.notes-legend[b-9fpf75turf] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--alms-text-muted);
    margin-bottom: 0.75rem;
}

.notes-legend-swatch[b-9fpf75turf] {
    display: inline-block;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 2px;
    margin-right: 0.3rem;
    vertical-align: middle;
}

/* Desktop: the Fuzzy chip sits at the right of its own chip row under the filters */
.avs-chips[b-9fpf75turf] {
    flex-wrap: wrap;
    overflow: visible;
}

.avs-fuzzy-chip[b-9fpf75turf] {
    margin-left: auto;
}

/* ── Phones (below 768px) — DOCS/MOBILE_DESIGN/AdvSearch.html + TagSheet.html.
   Name search + Filters button on one row, active filters as removable chips (.ui-chip-row),
   the desktop filter card hidden (its fields open in the AppModal bottom sheet), voters as
   .ui-table--stack-sm cards keeping their note-stance left bar, the tag modal laid out as a sheet:
   who is being tagged, 44px tag pills, full-width footer buttons. Desktop is unchanged. ── */
@media (max-width: 767.98px) {
    /* Search field in the navy header with an inner 40px "All filters" button */
    .avs-search[b-9fpf75turf] {
        padding-right: 6px;
        border-radius: var(--radius-xl);
    }

    .avs-search__filters[b-9fpf75turf] {
        position: relative;
        display: inline-flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0;
        border: 0;
        border-radius: var(--radius-lg);
        background: var(--primary-50);
        color: var(--primary-900);
    }

    .avs-search__dot[b-9fpf75turf] {
        position: absolute;
        top: -4px;
        right: -4px;
        min-width: 18px;
        height: 18px;
        padding: 0 4px;
        border-radius: 999px;
        background: var(--primary-600);
        color: #fff;
        font-size: var(--text-xs);
        font-weight: var(--font-bold);
        line-height: 18px;
        text-align: center;
    }

    /* Age / SK pills under the voter's sub-line */
    .avs-pills[b-9fpf75turf] {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-2);
        margin-top: var(--space-1);
    }

    .avs-pills:empty[b-9fpf75turf] { display: none; }

    .avs-pill[b-9fpf75turf] {
        padding: 1px var(--space-2);
        border-radius: 999px;
        background: var(--neutral-100);
        color: var(--neutral-800);
        font-size: var(--text-xs);
        font-weight: var(--font-semibold);
    }

    .avs-pill--info[b-9fpf75turf] {
        background: var(--primary-50);
        color: var(--primary-900);
    }

    .ui-stack-actions .btn-sm[b-9fpf75turf] {
        min-height: 44px;
        margin-bottom: 0;
    }
    .avs-sheet-btn[b-9fpf75turf] {
        flex: 1 1 0;
    }

    .avs-tag-who[b-9fpf75turf] {
        margin-bottom: var(--space-4);
    }

    .avs-tag-list .ui-chip[b-9fpf75turf] {
        min-height: 44px;
    }

    .avs-clear-tags[b-9fpf75turf] {
        min-height: 44px;
    }
}

/* ── Tablet / desktop (768px and up) ── */
@media (min-width: 768px) {
    /* Tag + Notes stay side by side instead of stacking when the Actions column is narrow */
    .ui-stack-actions[b-9fpf75turf] {
        white-space: nowrap;
    }
}
/* _content/ALMS/Components/Pages/VoterSearchBasic.razor.rz.scp.css */
/* Voter Search — row click opens the details sheet; phone layout per the Search + VoterSheet boards.
   Phones: results are one list card (shared .ui-table--list-sm); the sheet body is .ui-kv. */

.voter-row[b-u7nf8d1z6j] {
	cursor: pointer;
}

.voter-sheet-label[b-u7nf8d1z6j] {
	margin: var(--space-4) 0 var(--space-2);
	color: var(--neutral-600);
	font-size: var(--text-xs);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.voter-sheet-links li[b-u7nf8d1z6j] {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	min-height: 44px;
	padding: var(--space-2) var(--space-3);
	border: 1px solid var(--neutral-200);
	border-radius: var(--radius-xl);
}

.voter-sheet-links li + li[b-u7nf8d1z6j] {
	margin-top: var(--space-2);
}

/* Desktop: tag chips and the Fuzzy chip share one row; Fuzzy sits at the right and the row wraps when narrow */
.voter-tag-chips[b-u7nf8d1z6j] {
	flex-wrap: wrap;
	overflow: visible;
}

.voter-fuzzy-chip[b-u7nf8d1z6j] {
	margin-left: auto;
}

@media (max-width: 767.98px) {
	/* The card keeps only the lookup note / fuzzy tolerance on phones (rest moved to the band) */
	.voter-filters[b-u7nf8d1z6j] {
		padding: var(--space-4);
	}

	.voter-filters .section-title[b-u7nf8d1z6j] {
		display: none;
	}

	/* Result count line replaces the "Voters List" card head */
	.voter-count[b-u7nf8d1z6j] {
		margin: 0 calc(50% - 50vw);
		padding: var(--space-2) var(--mobile-gutter);
		border-bottom: 1px solid var(--neutral-200);
		background: var(--card-background);
		color: var(--neutral-700);
		font-size: var(--text-sm);
	}

	.voter-count strong[b-u7nf8d1z6j] {
		color: var(--neutral-900);
	}

	.vs-page[b-u7nf8d1z6j]  .ui-table-card__head {
		display: none;
	}

	/* Row: name + two grey sub-lines on the left, badge on the right */
	.ui-table.voter-list > tbody > tr[b-u7nf8d1z6j] {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		column-gap: var(--space-3);
		align-items: center;
		min-height: 72px;
		padding: var(--space-3) 14px;
	}

	.ui-table.voter-list > tbody > tr > td[b-u7nf8d1z6j] {
		grid-column: 1;
		padding: 0;
	}

	.ui-table.voter-list > tbody > tr > td.ui-stack-title[b-u7nf8d1z6j] {
		font-size: 0.9375rem;
	}

	.ui-table.voter-list > tbody > tr > td.voter-sub[b-u7nf8d1z6j] {
		display: block;
		color: var(--neutral-600);
		font-size: 0.78125rem;
		text-align: left;
	}

	.ui-table.voter-list > tbody > tr > td.voter-badge[b-u7nf8d1z6j] {
		grid-column: 2;
		grid-row: 1 / span 3;
		width: auto;
	}

	/* "No voters found" row spans the card */
	.ui-table.voter-list > tbody > tr > td[colspan][b-u7nf8d1z6j] {
		grid-column: 1 / -1;
	}
}
/* _content/ALMS/Components/Pages/WatcherDashboard.razor.rz.scp.css */
/* Scoped to WatcherDashboard.razor (Blazor CSS isolation). Moved from the page's <style> block. */

/* Election day banners */
.banner-election-day[b-2xdjfmfllb] {
    background: linear-gradient(135deg, var(--success-700), #0d6832);
    color: white;
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(25,135,84,0.3);
    animation: pulse-green-b-2xdjfmfllb 2s infinite;
}

.banner-countdown[b-2xdjfmfllb] {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    color: white;
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(var(--primary-rgb),0.3);
}

.banner-post-election[b-2xdjfmfllb] {
    background: var(--alms-text-muted);
    color: white;
    border-radius: 0.75rem;
    padding: 0.75rem 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.banner-no-date[b-2xdjfmfllb] {
    background: var(--neutral-100);
    color: var(--alms-text-secondary);
    border-radius: 0.75rem;
    padding: 0.75rem 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

@keyframes pulse-green-b-2xdjfmfllb {
    0%, 100% { box-shadow: 0 2px 8px rgba(25,135,84,0.3); }
    50% { box-shadow: 0 4px 20px rgba(25,135,84,0.6); }
}

/* Tab nav */
.wd-tabs[b-2xdjfmfllb] {
    border-bottom: 2px solid var(--bs-border-color);
    margin-bottom: 1.5rem;
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.wd-tab-btn[b-2xdjfmfllb] {
    padding: 0.6rem 1.1rem;
    border: none;
    background: transparent;
    color: var(--alms-text-muted);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    white-space: nowrap;
}

.wd-tab-btn:hover[b-2xdjfmfllb] {
    color: var(--wd-purple);
}

.wd-tab-btn.active[b-2xdjfmfllb] {
    color: var(--wd-purple);
    border-bottom-color: var(--wd-purple);
    font-weight: 600;
}

/* Win probability card */
.win-prob-value[b-2xdjfmfllb] {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
}

.status-dot[b-2xdjfmfllb] {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-active[b-2xdjfmfllb] {
    background: var(--wd-active);
}

.status-idle[b-2xdjfmfllb] {
    background: var(--wd-idle);
}

.status-inactive[b-2xdjfmfllb] {
    background: var(--wd-inactive);
}

.status-none[b-2xdjfmfllb] {
    background: var(--bs-gray-500);
}

/* SignalR status */
/* Loading overlay */
.wd-loading[b-2xdjfmfllb] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

/* Position badge */
.pos-badge-win[b-2xdjfmfllb] {
    background: #d1fae5;
    color: #065f46;
    padding: 0.2rem 0.5rem;
    border-radius: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.pos-badge-risk[b-2xdjfmfllb] {
    background: #fee2e2;
    color: #991b1b;
    padding: 0.2rem 0.5rem;
    border-radius: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ── Card body padding ───────────────────────────────────────── */
.card-border-body[b-2xdjfmfllb] {
    padding: 1rem 1.25rem;
}

/* Live clock in the page header actions */
.wd-clock[b-2xdjfmfllb] {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-1);
}

.wd-clock-time[b-2xdjfmfllb] {
    font-family: var(--font-mono);
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    letter-spacing: var(--tracking-wide);
    color: #fff;
}

.wd-clock-meta[b-2xdjfmfllb] {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.85);
}

.wd-live[b-2xdjfmfllb] {
    color: var(--success-200);
    font-weight: var(--font-semibold);
}

/* ── Phones (below 768px): command center (mobile plan §8, board Command) ── */
@media (max-width: 767.98px) {
    .banner-election-day[b-2xdjfmfllb],
    .banner-countdown[b-2xdjfmfllb],
    .banner-post-election[b-2xdjfmfllb],
    .banner-no-date[b-2xdjfmfllb] {
        padding: var(--space-3) var(--space-4);
        gap: var(--space-3);
    }

    .card-border-body[b-2xdjfmfllb] { padding: var(--space-3); }

    /* Position pickers: one sideways row of 44px buttons */
    .wd-pos-row[b-2xdjfmfllb] {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .wd-pos-row[b-2xdjfmfllb]::-webkit-scrollbar { display: none; }

    .wd-pos-row > *[b-2xdjfmfllb] {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .wd-pos-row > .ui-chip[b-2xdjfmfllb] { min-height: 44px; }
}

/* ── Phones: Command overview (board Command, plan P4.6) ── */
@media (max-width: 767.98px) {
    .wd-phone[b-2xdjfmfllb] { display: flex; flex-direction: column; gap: var(--space-4); margin-bottom: var(--space-4); }

    .wd-phone__card[b-2xdjfmfllb] {
        background: var(--neutral-0);
        border: 1px solid var(--neutral-200);
        border-radius: 12px;
        padding: var(--space-3) var(--space-4);
        display: flex;
        flex-direction: column;
        gap: var(--space-3);
    }

    .wd-phone__h[b-2xdjfmfllb] { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-2); margin: 0; font-size: var(--text-base); font-weight: 700; color: var(--neutral-900); }
    .wd-phone__h--out[b-2xdjfmfllb] { font-size: var(--text-lg); margin-bottom: var(--space-2); }
    .wd-phone__sub[b-2xdjfmfllb] { font-size: var(--text-xs); font-weight: 400; color: var(--neutral-600); }

    .wd-lms[b-2xdjfmfllb] { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }

    .wd-pair[b-2xdjfmfllb] { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--neutral-100); padding-top: var(--space-3); }
    .wd-pair > div + div[b-2xdjfmfllb] { border-left: 1px solid var(--neutral-100); padding-left: var(--space-4); }
    .wd-pair__val[b-2xdjfmfllb] { font-size: var(--text-xl); font-weight: 700; font-variant-numeric: tabular-nums; }
    .wd-pair__val--warn[b-2xdjfmfllb] { color: var(--warning-900); }
    .wd-pair__val--info[b-2xdjfmfllb] { color: var(--primary-900); }

    .wd-hours[b-2xdjfmfllb] { display: flex; align-items: flex-end; gap: 4px; height: 72px; }
    .wd-hours > i[b-2xdjfmfllb] { flex: 1 1 0; min-height: 2px; background: var(--primary-200); border-radius: 3px 3px 0 0; }
    .wd-hours > i.is-now[b-2xdjfmfllb] { background: var(--primary-600); }
    .wd-hours__axis[b-2xdjfmfllb] { display: flex; justify-content: space-between; font-size: var(--text-xs); color: var(--neutral-600); }

    .wd-race[b-2xdjfmfllb] { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); min-height: 60px; border-bottom: 1px solid var(--neutral-100); }
    .wd-race:last-child[b-2xdjfmfllb] { border-bottom: 0; }
    .wd-race__main[b-2xdjfmfllb] { flex: 1 1 auto; min-width: 0; }
    .wd-race__name[b-2xdjfmfllb] { font-size: var(--text-base); font-weight: 700; }
    .wd-race__end[b-2xdjfmfllb] { text-align: right; }
    .wd-race__val[b-2xdjfmfllb] { font-size: var(--text-xl); font-weight: 700; font-variant-numeric: tabular-nums; }
    .wd-race__val--good[b-2xdjfmfllb] { color: var(--success-800); }
    .wd-race__val--mid[b-2xdjfmfllb] { color: var(--primary-900); }
    .wd-race__val--low[b-2xdjfmfllb] { color: var(--warning-900); }

    .wd-sim-cta[b-2xdjfmfllb] { min-height: 50px; border-radius: 12px; font-weight: 700; margin-bottom: var(--space-4); }
}

/* ── Phones: one level of card only (page is white via responsive.css, main:has(.wd-page)) ── */
@media (max-width: 767.98px) {
    /* The one bordered card; tables, stat tiles and chart pills inside it go flat */
    .card-border[b-2xdjfmfllb] {
        border: 1px solid var(--neutral-200);
        border-radius: 12px;
        box-shadow: none;
        background: var(--neutral-0);
    }

    .card-border[b-2xdjfmfllb]  .ui-table-card {
        margin-bottom: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .wd-lms[b-2xdjfmfllb]  .ui-stat {
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }
}

.wd-search[b-2xdjfmfllb] { max-width: 280px; }

/* Former inline styles: apply at every width, as they did inline */
.wd-trend-card[b-2xdjfmfllb] { padding: 1rem 1.25rem 0.75rem; }

.wd-trend-legend[b-2xdjfmfllb] { gap: var(--space-4); }

/* Role badge, progress heights and the LIVE pulse (were inline styles) */
.wd-role-badge[b-2xdjfmfllb] { background: var(--wd-purple); }
.wd-prog-5[b-2xdjfmfllb] { height: 5px; }
.wd-prog-8[b-2xdjfmfllb] { height: 8px; }
.wd-prog-10[b-2xdjfmfllb] { height: 10px; }
.wd-returns-select[b-2xdjfmfllb] { max-width: 240px; }
.wd-pick-select[b-2xdjfmfllb] { max-width: 320px; }

.wd-live-badge[b-2xdjfmfllb] { animation: wd-live-pulse-b-2xdjfmfllb 2s infinite; }

@keyframes wd-live-pulse-b-2xdjfmfllb {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@media (prefers-reduced-motion: reduce) {
    .wd-live-badge[b-2xdjfmfllb] { animation: none; }
}

/* Running projection / rankings header: title, hint, LIVE badge and "as of" wrap instead of overflowing */
.wd-head__sub[b-2xdjfmfllb] { margin-left: var(--space-2); }

.wd-cluster-row[b-2xdjfmfllb] {
    flex-wrap: wrap;
    gap: var(--space-1) var(--space-3);
    background: var(--neutral-50);
    border-left: 3px solid var(--alms-stat-purple);
}

/* ── Tablet / desktop (768px and up) ── */
@media (min-width: 768px) {
    /* Position pickers wrap instead of running off the card when there are many positions */
    .wd-pos-row[b-2xdjfmfllb] { flex-wrap: wrap; }

    /* Search fills its toolbar slot so the placeholder is never clipped */
    .wd-search[b-2xdjfmfllb] { flex: 1 1 18rem; max-width: 22rem; }

    /* Cumulative trends: legend and total sit in the card's top corners beside the chart pill
       (the meta wrapper is layout-neutral here; on phones it is a normal row, see below) */
    .wd-trend-meta[b-2xdjfmfllb] { display: contents; }

    .wd-trend-legend[b-2xdjfmfllb] {
        position: absolute;
        top: var(--space-3);
        left: 1.25rem;
        z-index: var(--z-overlay-local);
    }

    .wd-trend-stat[b-2xdjfmfllb] {
        position: absolute;
        top: var(--space-3);
        right: 1.25rem;
        z-index: var(--z-overlay-local);
    }
}

/* Simulator controls: sticky beside the results, scrolls inside itself when taller than the screen */
@media (min-width: 1200px) {
    .wd-sim-panel[b-2xdjfmfllb] {
        position: sticky;
        top: var(--space-4);
        max-height: calc(100vh - 2rem);
        display: flex;
        flex-direction: column;
    }

    .wd-sim-panel > .card-border-body[b-2xdjfmfllb] {
        overflow-y: auto;
        min-height: 0;
    }
}

/* Marking Breakdown: the PAID / MARKED / BOTH figures sit under the ring (all widths;
   was Bootstrap border-top pt-2 on the row). */
.wd-mb__stats[b-2xdjfmfllb] {
    padding-top: 0.5rem;
    border-top: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
}

/* Charts scale with their card on desktop/tablet (were fixed 260-280px): the wrapper is
   the size container, the ApexChart's own div (height 100% in the chart options) is the
   box. ~280px in a 600px card up to 420px at 1100px+. Phones keep the 140px responsive
   override from .razor.cs. */
@media (min-width: 768px) {
    /* Chart heights: shared .chart-fit in base.css */
    .wd-mb[b-2xdjfmfllb] {
        container-type: inline-size;
    }

    /* Radial ring is height-bound: capped so it never gets huge */
    .wd-mb__ring[b-2xdjfmfllb]  > div {
        height: clamp(240px, calc(150px + 20cqi), 340px);
    }
}

/* Wide card (stacked layout at 768-1399px, and the 5/12 card at 1920): ring on the
   left, the figures on the right as a vertical legend, both vertically centred. */
@container (min-width: 36rem) {
    .wd-mb__grid[b-2xdjfmfllb] {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(12rem, 18rem);
        align-items: center;
        gap: var(--space-4);
    }

    .wd-mb__stats[b-2xdjfmfllb] {
        flex-direction: column;
        row-gap: var(--space-3);
        padding-top: 0;
        border-top: 0;
    }

    .wd-mb__stats > .col-4[b-2xdjfmfllb] {
        width: 100%;
    }
}

/* Simulator action buttons: a stacked column on desktop (was Bootstrap flex-column) */
.wd-sim-actions[b-2xdjfmfllb] { flex-direction: column; }

/* Former inline styles (all widths) */
.wd-win-flag[b-2xdjfmfllb] { opacity: 0.8; }
.wd-plurality-note[b-2xdjfmfllb] { color: var(--foreground-faint); }
.wd-dash-sep[b-2xdjfmfllb] { border-bottom: 1px dashed var(--border-faint); }
.wd-dot-leaders[b-2xdjfmfllb] { background: var(--info-700); }
.wd-dot-members[b-2xdjfmfllb] { background: var(--success-700); }
.wd-rank-badge[b-2xdjfmfllb] { min-width: 26px; }
.wd-rank-badge--wide[b-2xdjfmfllb] { min-width: 28px; }
.wd-badge-projected[b-2xdjfmfllb] { background: var(--success-700); }
.wd-prob-col[b-2xdjfmfllb] { min-width: 52px; }
.wd-brgy-cand[b-2xdjfmfllb] { border-left: 2px solid var(--bs-border-color); }
.wd-prog-fill[b-2xdjfmfllb] { transition: width 0.6s; }

/* ── Phones (below 768px): Turnout / Performance / Barangay / Returns / simulator (tracker row W1) ── */
@media (max-width: 767.98px) {
    /* Figures read in columns */
    .card-border-body[b-2xdjfmfllb],
    .wd-cards[b-2xdjfmfllb],
    .ui-stat-strip[b-2xdjfmfllb],
    .wd-sim-results[b-2xdjfmfllb] {
        font-variant-numeric: tabular-nums;
    }

    /* KPI strips with four tiles: 2 x 2 instead of 3 + 1 */
    .wd-strip-2up[b-2xdjfmfllb] { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    /* Cumulative trends: the legend and the "marked all time" total are a normal row
       under the chart title instead of corner overlays that collide with it */
    .wd-trend-meta[b-2xdjfmfllb] {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-1) var(--space-4);
    }

    .wd-trend-legend[b-2xdjfmfllb] { flex-wrap: wrap; gap: var(--space-1) var(--space-3); }

    /* Card headers: title, hint, badges and "as of" wrap */
    .wd-head--wrap[b-2xdjfmfllb] { flex-wrap: wrap; row-gap: var(--space-1); }
    .wd-head__sub[b-2xdjfmfllb] { flex: 1 0 100%; margin-left: 0; }

    /* Controls: 44px targets, full width */
    .wd-returns-bar[b-2xdjfmfllb] { flex-wrap: wrap; }
    .wd-returns-select[b-2xdjfmfllb] { max-width: none; flex: 1 1 100%; min-height: 44px; }

    .wd-search[b-2xdjfmfllb] { max-width: none; flex: 1 1 100%; }
    .wd-search .form-control[b-2xdjfmfllb],
    .wd-search .input-group-text[b-2xdjfmfllb],
    .wd-search .btn[b-2xdjfmfllb] { min-height: 44px; }

    .card-border-body .btn-sm[b-2xdjfmfllb] { min-height: 44px; }

    .card-border-header .btn-link[b-2xdjfmfllb] {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        margin-block: calc(-1 * var(--space-2));
    }

    .wd-note--wrap[b-2xdjfmfllb] { flex-wrap: wrap; }
    .wd-note--wrap .btn[b-2xdjfmfllb] { width: 100%; }

    .wd-proj-row[b-2xdjfmfllb] { min-height: 44px; }

    /* Compact cards (watchers, barangays, clusters) use the shared .ui-mcards / .ui-mcard family
       (list-card.css). Page-specific: the title is pinned to base size / dark text because the
       card body can inherit smaller text. */
    .wd-card__title[b-2xdjfmfllb] {
        font-size: var(--text-base);
        color: var(--neutral-900);
    }

    .wd-status[b-2xdjfmfllb] { display: inline-flex; align-items: center; font-size: var(--text-sm); }

    /* Returns card: Tagged / Paid / Marked / Actual in a 4-up mini grid */
    .wd-mini[b-2xdjfmfllb] {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: var(--space-2);
        margin: 0;
    }

    .wd-mini > div[b-2xdjfmfllb] { min-width: 0; }
    .wd-mini dt[b-2xdjfmfllb] { font-size: var(--text-xs); font-weight: 600; color: var(--neutral-600); }
    .wd-mini dd[b-2xdjfmfllb] { margin: 0; font-size: var(--text-base); font-weight: 700; }

    /* Barangay sheet: cluster cards, each expands to simple precinct rows */
    .wd-sheet[b-2xdjfmfllb] { display: flex; flex-direction: column; gap: var(--space-2); }

    .wd-cluster[b-2xdjfmfllb] {
        border: 1px solid var(--neutral-200);
        border-radius: 12px;
        background: var(--neutral-0);
        overflow: hidden;
    }

    .wd-cluster__btn[b-2xdjfmfllb] {
        display: flex;
        flex-direction: column;
        gap: var(--space-2);
        width: 100%;
        min-height: 44px;
        padding: var(--space-3);
        border: 0;
        background: transparent;
        text-align: left;
        color: inherit;
        font: inherit;
    }

    .wd-cluster__head[b-2xdjfmfllb] {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: var(--space-2);
    }

    .wd-cluster__name[b-2xdjfmfllb] { display: flex; flex-direction: column; min-width: 0; overflow-wrap: break-word; }

    .wd-figs[b-2xdjfmfllb] { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); }

    .wd-fig[b-2xdjfmfllb] {
        display: inline-flex;
        flex-direction: column;
        gap: 2px;
        font-variant-numeric: tabular-nums;
    }

    .wd-fig__label[b-2xdjfmfllb] { font-size: var(--text-xs); color: var(--neutral-600); }
    .wd-fig__val[b-2xdjfmfllb] { font-size: var(--text-base); font-weight: 700; }

    .wd-cluster__note[b-2xdjfmfllb] { margin: 0 var(--space-3) var(--space-3); }

    .wd-prec[b-2xdjfmfllb] { list-style: none; margin: 0; padding: 0 var(--space-3) var(--space-2); }

    .wd-prec__row[b-2xdjfmfllb] {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: var(--space-1) var(--space-3);
        padding: var(--space-2) 0;
        border-top: 1px solid var(--neutral-100);
        font-size: var(--text-sm);
        font-variant-numeric: tabular-nums;
    }

    .wd-prec__no[b-2xdjfmfllb] { min-width: 4rem; font-weight: 700; }
    .wd-prec__ret[b-2xdjfmfllb] { margin-left: auto; font-weight: 600; }
    .wd-prec__by[b-2xdjfmfllb] { flex: 1 0 100%; }

    /* Simulator on phones: controls first, results below; Reset / Apply pinned above the tab bar.
       The panel's overflow is opened so the sticky bar can stick (card-border clips by default). */
    .wd-sim-controls[b-2xdjfmfllb] { order: -1; }
    .wd-sim-panel[b-2xdjfmfllb] { overflow: visible; }

    .wd-sim-controls .form-range[b-2xdjfmfllb] { min-height: 44px; }

    .wd-sim-controls .form-check-label[b-2xdjfmfllb] {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    .wd-sim-actions[b-2xdjfmfllb] {
        position: sticky;
        bottom: var(--mobile-bottom-offset);
        z-index: var(--z-sticky);
        flex-direction: row;
        margin-inline: calc(-1 * var(--space-3));
        margin-bottom: calc(-1 * var(--space-3));
        padding: var(--space-3);
        border-top: 1px solid var(--neutral-200);
        background: var(--neutral-0);
    }

    .wd-sim-actions > .btn[b-2xdjfmfllb] { flex: 1 1 0; min-height: 44px; }

    .wd-sim-results .win-prob-value[b-2xdjfmfllb] { font-size: 2.5rem; }

    .wd-sim-results .candidate-dual-card .d-flex[b-2xdjfmfllb] {
        flex-wrap: wrap;
        gap: var(--space-1) var(--space-2);
    }
}
/* _content/ALMS/Components/Pages/WatchersList.razor.rz.scp.css */
/* Scoped to WatchersList.razor (Blazor CSS isolation). Moved from the page's <style> block. */

/* Base Variables */
/* Summary Cards */
/* Also .ui-stat-strip: the grid below applies from 768px; phones get the strip's swipe row */
.summary-cards[b-2abi2q4b8g] {
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .summary-cards[b-2abi2q4b8g] {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
}

.summary-card[b-2abi2q4b8g] {
    background: white;
    border-radius: 0.75rem;
    padding: 1.25rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    border-left: 4px solid var(--primary-600);
    transition: transform 0.2s, box-shadow 0.2s;
}

.summary-card:hover[b-2abi2q4b8g] {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}

.summary-card.success[b-2abi2q4b8g] {
    border-left-color: var(--success-700);
}

.summary-card.warning[b-2abi2q4b8g] {
    border-left-color: var(--warning-500);
}

.summary-card.info[b-2abi2q4b8g] {
    border-left-color: var(--info-700);
}

.summary-card.dark[b-2abi2q4b8g] {
    border-left-color: var(--alms-text-heading);
}

.summary-card-icon[b-2abi2q4b8g] {
    font-size: 2rem;
    opacity: 0.8;
}

.summary-card-label[b-2abi2q4b8g] {
    font-size: 0.85rem;
    color: var(--alms-text-muted);
    margin: 0.5rem 0 0.25rem;
}

.summary-card-value[b-2abi2q4b8g] {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--alms-text-heading);
}

.summary-card-subvalue[b-2abi2q4b8g] {
    font-size: 0.9rem;
    color: var(--alms-text-muted);
    margin-top: 0.25rem;
}

/* Progress Bar */
.progress-bar-custom[b-2abi2q4b8g] {
    height: 8px;
    border-radius: 4px;
    background: var(--neutral-100);
    margin-top: 0.5rem;
    overflow: hidden;
}

.progress-bar-custom .progress-fill[b-2abi2q4b8g] {
    height: 100%;
    background: linear-gradient(90deg, var(--success-700) 0%, var(--bs-teal) 100%);
    transition: width 0.3s ease;
    border-radius: 4px;
}

/* Action Section */
.action-section[b-2abi2q4b8g] {
    background: white;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Filter Section */
.filter-section[b-2abi2q4b8g] {
    background: white;
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.leader-header[b-2abi2q4b8g] {
    border-bottom: 2px solid #f1f3f5;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.leader-photo-square[b-2abi2q4b8g] {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid var(--neutral-100);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.leader-info-grid[b-2abi2q4b8g] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    font-size: 0.9rem;
}

.leader-info-grid .info-item[b-2abi2q4b8g] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.leader-info-grid .info-item i[b-2abi2q4b8g] {
    color: var(--purple);
    width: 20px;
}

/* Badge Styles */
.badge-leader[b-2abi2q4b8g] {
    background: linear-gradient(135deg, var(--purple) 0%, #5a32a3 100%);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Member Table */

/* Checkbox Styling */
.form-check-input[b-2abi2q4b8g] {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

/* Modal Enhancements */
/* Loading States */
.loading-overlay[b-2abi2q4b8g] {
    background: rgba(255,255,255,0.9);
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
}

.spinner-border[b-2abi2q4b8g] {
    width: 3rem;
    height: 3rem;
}

/* Pagination */
.pagination-sm .page-link[b-2abi2q4b8g] {
    border-radius: 0.5rem;
    margin: 0 0.125rem;
}

/* Modified Row Indicator */

/* â”€â”€ Phones (below 768px): election-day marking screen (mobile plan Â§8, board WatcherList) â”€â”€ */
@media (max-width: 767.98px) {
    .summary-cards[b-2abi2q4b8g] { margin-bottom: var(--space-3); }

    .summary-card[b-2abi2q4b8g] {
        padding: var(--space-3) var(--space-4);
    }

    .summary-card:hover[b-2abi2q4b8g] { transform: none; }

    .summary-card-icon[b-2abi2q4b8g] { font-size: var(--text-lg); }

    .summary-card-label[b-2abi2q4b8g] { margin: var(--space-1) 0 0; }

    .summary-card-value[b-2abi2q4b8g] { font-size: var(--text-xl); }

    .action-section[b-2abi2q4b8g],
    .filter-section[b-2abi2q4b8g] {
        padding: var(--space-3);
        margin-bottom: var(--space-3);
    }

    .action-section > .btn[b-2abi2q4b8g] {
        flex: 1 1 auto;
        margin-left: 0;
    }

    /* Leader = one bordered card on the white page; match tray tucks behind it */
    .wl-leader-card[b-2abi2q4b8g] {
        padding: 0;
        margin-bottom: var(--space-3);
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .wl-leader-btn[b-2abi2q4b8g] {
        position: relative;
        z-index: 1;
        display: flex;
        flex-direction: column;
        gap: var(--space-1);
        width: 100%;
        padding: var(--space-4) var(--space-5);
        border: 1px solid var(--neutral-200);
        border-radius: var(--radius-xl);
        background: #fff;
        text-align: left;
    }

    .wl-leader-btn:focus-visible[b-2abi2q4b8g] { outline: 3px solid var(--primary-500); outline-offset: 2px; }

    .wl-leader-btn__name[b-2abi2q4b8g] { font-size: var(--text-lg); font-weight: var(--font-bold); text-transform: uppercase; overflow-wrap: anywhere; }

    .wl-leader-btn__sub[b-2abi2q4b8g] { font-size: var(--text-sm); color: var(--neutral-600); }

    .wl-tray[b-2abi2q4b8g] {
        margin-top: -16px;
        padding: 16px var(--space-3) var(--space-1);
        border: 1px solid var(--neutral-200);
        border-top: 0;
        border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    }

    .wl-tray__row[b-2abi2q4b8g] {
        display: flex;
        align-items: center;
        gap: var(--space-3);
        width: 100%;
        min-height: 44px;
        padding: 0 var(--space-2);
        border: 0;
        background: transparent;
        color: var(--primary-700);
        font-weight: var(--font-bold);
        text-align: left;
        text-transform: uppercase;
    }

    .wl-tray__row[b-2abi2q4b8g]::before {
        content: "";
        flex: none;
        border-left: 8px solid currentColor;
        border-top: 5px solid transparent;
        border-bottom: 5px solid transparent;
    }

    .wl-tray__row:focus-visible[b-2abi2q4b8g] { outline: 3px solid var(--primary-500); outline-offset: -2px; }

    .ui-table.wl-marks > tbody > tr + tr[b-2abi2q4b8g] { border-top: 1px solid var(--neutral-200); }


    .wl-polls-strip[b-2abi2q4b8g] {
        display: flex;
        align-items: center;
        gap: var(--space-2);
        min-height: 34px;
        margin-inline: calc(50% - 50vw);   /* full bleed, same as the navy header */
        padding: 0 var(--mobile-gutter);
        background: var(--warning-100);
        color: var(--warning-900);
        font-size: var(--text-sm);
        font-weight: var(--font-semibold);
    }

    /* Rows: flat 60px, check on the left, name + one sub line on the right */
    .ui-table.wl-marks > tbody > tr[b-2abi2q4b8g] {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        column-gap: var(--space-3);
        align-items: center;
        min-height: 60px;
        padding-block: var(--space-1);
    }

    /* Phones: no row tint for marked rows; the checkbox shows it */
    .ui-table.wl-marks > tbody > tr.is-marked[b-2abi2q4b8g] { --bs-table-bg-state: transparent; --bs-table-hover-bg: transparent; }

    /* Cells draw nothing (no per-cell border, fill or state shadow): one divider per row, set on the tr */
    .ui-table.wl-marks > tbody > tr > td[b-2abi2q4b8g] {
        grid-column: 2;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .ui-table.wl-marks > tbody > tr.wl-match[b-2abi2q4b8g] { background: var(--primary-50); }

    .ui-table.wl-marks > tbody > tr > td.wl-mark-cell[b-2abi2q4b8g] {
        grid-column: 1;
        grid-row: 1 / span 3;
        align-self: center;
        justify-content: center;
        padding: 0;
    }

    .wl-mark-cell .form-check[b-2abi2q4b8g] {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        margin: 0;
        padding: 0;
    }

    .wl-mark-cell .form-check-input[b-2abi2q4b8g] {
        width: 30px;
        height: 30px;
        margin: 0;
        float: none;
        border-width: 2px;
        border-radius: var(--radius-md);
        accent-color: var(--success-700);
    }

    .wl-sub[b-2abi2q4b8g] { display: block; }

    .wl-sub.is-marked[b-2abi2q4b8g] { color: var(--success-800); }

    /* Footer pager: 44px targets */
    .pagination-sm .page-link[b-2abi2q4b8g] {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Returns modal: position tabs scroll sideways on one line */
    .wl-returns-tabs[b-2abi2q4b8g] {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
    }

    .wl-returns-tabs[b-2abi2q4b8g]::-webkit-scrollbar { display: none; }

    .wl-returns-tabs .nav-link[b-2abi2q4b8g] {
        white-space: nowrap;
        min-height: 44px;
    }
}

/* Header progress (phones): count + bar inside the navy header, per board WatcherList */
.wl-hdr-progress[b-2abi2q4b8g] { display: flex; align-items: center; gap: var(--space-3); color: #fff; }
.wl-hdr-progress > b[b-2abi2q4b8g] { font-family: var(--font-heading, inherit); font-size: 1.875rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.wl-hdr-progress__bar[b-2abi2q4b8g] { display: flex; flex: 1; flex-direction: column; gap: var(--space-2); font-size: var(--text-sm); }
.wl-hdr-progress__bar > div[b-2abi2q4b8g] { height: 8px; overflow: hidden; border-radius: var(--radius-full); background: var(--primary-700); }
.wl-hdr-progress__bar > div > div[b-2abi2q4b8g] { height: 100%; border-radius: var(--radius-full); background: var(--success-500); }

/* _content/ALMS/Components/Shared/ContestedClaimsPanel.razor.rz.scp.css */
@media (max-width: 767.98px) {
    .cc-hint[b-sagtnef0td] { font-size: var(--text-xs); }

    .cc-card__main[b-sagtnef0td] { min-width: 0; }

    .cc-card__leaders[b-sagtnef0td] {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-2);
        margin: 0;
    }

    .cc-card__leaders dt[b-sagtnef0td] {
        font-size: var(--text-xs);
        font-weight: 500;
        color: var(--neutral-600);
    }

    .cc-card__leaders dd[b-sagtnef0td] {
        margin: 0;
        font-size: var(--text-sm);
        overflow-wrap: anywhere;
    }

    .cc-card__actions .btn[b-sagtnef0td] { box-shadow: none; }

    .ui-segmented button[b-sagtnef0td] { min-height: 40px; white-space: nowrap; }
}
/* _content/ALMS/Components/Shared/EncoderProgressBar.razor.rz.scp.css */
/* One row on wide screens; the stat tiles drop under the progress cards when space runs out. */
.encoder-metrics[b-odgxnpflw6] {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-stat .card-body[b-odgxnpflw6] {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.metric-stat[b-odgxnpflw6] {
    min-width: 0;
}

@media (min-width: 992px) {
    .encoder-metrics[b-odgxnpflw6] {
        grid-template-columns: minmax(0, 2fr) minmax(0, 2fr) repeat(3, minmax(90px, 1fr));
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .encoder-metrics[b-odgxnpflw6] {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .encoder-metrics > .metric-progress[b-odgxnpflw6] {
        grid-column: span 3;
    }

    .encoder-metrics > .metric-stat[b-odgxnpflw6] {
        grid-column: span 2;
    }
}

@media (max-width: 575.98px) {
    .encoder-metrics[b-odgxnpflw6] {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .encoder-metrics > .metric-progress[b-odgxnpflw6] {
        grid-column: 1 / -1;
    }
}
/* _content/ALMS/Components/Shared/HomeAdminPanel.razor.rz.scp.css */
/* HomeAdminPanel — phone layout below 768px (board: DOCS/MOBILE_DESIGN/HomeAdmin.html). Desktop is unchanged. */

/* Stat row: .ui-stat-strip gives the phone swipe row (stat-card.css). From 768px this keeps the
   previous Bootstrap grid (col-sm-6 col-xl-3, g-3): 2 columns, then 4 from 1200px, 16px gaps. */
@media (min-width: 768px) {
	.home-stats[b-ulgtloygn1] {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: start;
		gap: var(--space-4);
	}

	.home-progress__name[b-ulgtloygn1] {
		width: 120px;
	}
}

@media (min-width: 1200px) {
	.home-stats[b-ulgtloygn1] {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 767.98px) {
	/* KPI swipe row runs to the screen edge; first tile lines up with the gutter */
	.home-stats[b-ulgtloygn1] {
		margin-inline: calc(-1 * var(--mobile-gutter));
		padding-inline: var(--mobile-gutter);
		scroll-padding-inline: var(--mobile-gutter);
	}

	.home-stats[b-ulgtloygn1]  .home-stat--navy .ui-stat__value { color: var(--primary-900); }

	.home-section[b-ulgtloygn1] { margin-bottom: var(--space-4); }
	.home-section > .ui-section-head[b-ulgtloygn1] { margin-bottom: var(--space-2); }

	/* Needs attention: whole-row links, regular label, bold count */
	.home-count-row[b-ulgtloygn1] { min-height: 52px; }
	.home-count-row .ui-list-row__title[b-ulgtloygn1] { font-weight: var(--font-normal); font-size: 0.9375rem; }
	.home-count-row--danger .ui-list-row__end[b-ulgtloygn1] { color: var(--danger-700); }

	/* Barangay rows: name and % on top, 6px bar below */
	.home-bar-row[b-ulgtloygn1] {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 6px;
		min-height: 0;
		padding: 10px 14px;
	}

	.home-bar-row__top[b-ulgtloygn1] {
		display: flex;
		justify-content: space-between;
		gap: var(--space-3);
		font-size: 0.9375rem;
		font-variant-numeric: tabular-nums;
	}

	/* Links inside the desktop cards that stay in the DOM: 44px touch targets */
	.ui-mobile-hide a[b-ulgtloygn1] {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
		font-weight: 600;
	}
}
/* _content/ALMS/Components/Shared/HomeEncoderPanel.razor.rz.scp.css */
/* HomeEncoderPanel — phone layout below 768px (board: DOCS/MOBILE_DESIGN/HomeEncoder.html). Desktop is unchanged. */

/* Stat row: .ui-stat-strip gives the phone swipe row (stat-card.css). From 768px this keeps the
   previous Bootstrap grid (col-sm-6 col-xl-3, g-3): 2 columns, then 4 from 1200px, 16px gaps. */
@media (min-width: 768px) {
	.home-stats[b-ph7g3ogr0o] {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: start;
		gap: var(--space-4);
	}
}

@media (min-width: 1200px) {
	.home-stats[b-ph7g3ogr0o] {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 767.98px) {
	.home-bleed[b-ph7g3ogr0o] {
		margin-inline: calc(-1 * var(--mobile-gutter));
		padding-inline: var(--mobile-gutter);
		scroll-padding-inline: var(--mobile-gutter);
	}

	.home-stats[b-ph7g3ogr0o]  .ui-stat--warning .ui-stat__value { color: var(--warning-700); }
	.home-stats[b-ph7g3ogr0o]  .home-stat--navy .ui-stat__value { color: var(--primary-900); }

	/* Daily quota hero */
	.home-quota[b-ph7g3ogr0o] {
		display: flex;
		flex-direction: column;
		gap: 10px;
		margin-bottom: var(--space-4);
		padding: var(--space-4);
		border: 1px solid var(--neutral-200);
		border-radius: var(--radius-xl);
		background: #fff;
	}

	.home-quota__top[b-ph7g3ogr0o] {
		display: flex;
		align-items: flex-end;
		justify-content: space-between;
		gap: var(--space-3);
	}

	.home-quota__label[b-ph7g3ogr0o] {
		margin: 0;
		font-size: var(--text-xs);
		font-weight: var(--font-bold);
		letter-spacing: 0.08em;
		text-transform: uppercase;
		color: var(--neutral-600);
	}

	.home-quota__count[b-ph7g3ogr0o] {
		display: flex;
		align-items: baseline;
		gap: var(--space-2);
		font-variant-numeric: tabular-nums;
	}

	.home-quota__count b[b-ph7g3ogr0o] {
		font-family: var(--font-heading);
		font-size: 2.125rem;
		font-weight: 800;
		line-height: 1.1;
		color: var(--primary-900);
	}

	.home-quota__count span[b-ph7g3ogr0o] { font-size: var(--text-sm); color: var(--neutral-600); }
	.home-quota__pct[b-ph7g3ogr0o] { font-size: 1.25rem; color: var(--primary-900); }
	.home-quota__bar .ui-progress__bar[b-ph7g3ogr0o] { background: var(--success-700); }

	.home-quota__cta[b-ph7g3ogr0o] {
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 48px;
		border-radius: var(--radius-xl);
		font-size: var(--text-base);
		font-weight: var(--font-bold);
	}
}
/* _content/ALMS/Components/Shared/HomeOffCyclePanel.razor.rz.scp.css */
/* HomeOffCyclePanel — phone layout only (board: Home.dc.html). Desktop is unchanged. */

@media (max-width: 767.98px) {
	.offcycle-home[b-slfhwjqf0u] {
		display: flex;
		flex-direction: column;
	}

	.offcycle-search[b-slfhwjqf0u] {
		display: none; /* the header search link is the one phone search */
	}

	/* Everyday tools first on phones */
	.offcycle-tools[b-slfhwjqf0u] {
		order: -1;
		margin-bottom: var(--space-2);
	}

	/* Tools heading matches .ui-section-head__title */
	.offcycle-tools__title[b-slfhwjqf0u] {
		margin-bottom: 0;
		min-height: 44px;
		display: flex;
		align-items: center;
		text-transform: none;
		font-family: var(--font-heading);
		font-size: 1.0625rem;
		font-weight: var(--font-bold);
		color: var(--neutral-900);
	}

	/* Tools: 2-column tiles (HomeToolsPanel has no Layout parameter, so the grid is styled from here) */
	.offcycle-tools[b-slfhwjqf0u]  .home-tiles {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--space-2);
	}

	.offcycle-tools[b-slfhwjqf0u]  .home-tile {
		justify-content: center;
		gap: 2px;
		min-height: 72px;
		padding: var(--space-3);
		border: 1px solid var(--neutral-200);
		border-radius: var(--radius-xl);
		background: #fff;
	}

	.offcycle-tools[b-slfhwjqf0u]  .home-tile__title {
		font-size: var(--text-sm);
		font-weight: var(--font-bold);
	}

	.offcycle-tools[b-slfhwjqf0u]  .home-tile__hint {
		font-size: var(--text-xs);
	}

	.offcycle-tools[b-slfhwjqf0u]  .home-tile__tier {
		display: none;
	}

	/* Birthday rows: 40px initials avatar */
	.offcycle-avatar[b-slfhwjqf0u] {
		width: 40px;
		height: 40px;
		font-size: var(--text-sm);
	}
}
/* _content/ALMS/Components/Shared/HomeSponsorPanel.razor.rz.scp.css */
/* HomeSponsorPanel — phone layout below 768px (board: DOCS/MOBILE_DESIGN/HomeSponsor.html). Desktop is unchanged. */

/* Stat row: .ui-stat-strip gives the phone swipe row (stat-card.css). From 768px this keeps the
   previous Bootstrap grid (col-sm-6 col-xl-3, g-3): 2 columns, then 4 from 1200px, 16px gaps. */
@media (min-width: 768px) {
	.home-stats[b-4zq48jtg6o] {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: start;
		gap: var(--space-4);
	}
}

@media (min-width: 1200px) {
	.home-stats[b-4zq48jtg6o] {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 767.98px) {
	.home-bleed[b-4zq48jtg6o] {
		margin-inline: calc(-1 * var(--mobile-gutter));
		padding-inline: var(--mobile-gutter);
		scroll-padding-inline: var(--mobile-gutter);
	}

	.home-stats[b-4zq48jtg6o]  .home-stat--navy .ui-stat__value { color: var(--primary-900); }
}
/* _content/ALMS/Components/Shared/HomeTellerPanel.razor.rz.scp.css */
/* HomeTellerPanel — phone layout below 768px (board: DOCS/MOBILE_DESIGN/HomeTeller.html). Desktop is unchanged. */

/* Teller Dashboard view stat row: .ui-stat-strip gives the phone swipe row (stat-card.css). From 768px
   this keeps the previous Bootstrap grid (col-sm-6 col-xl-4, g-3): 2 columns, then 3 from 1200px.
   The TELLER I/II strip (no .home-stats) keeps the plain .ui-stat-strip grid it already had. */
@media (min-width: 768px) {
	.home-stats[b-azras1eiai] {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: start;
		gap: var(--space-4);
	}

	.home-progress__name[b-azras1eiai] {
		width: 120px;
	}
}

@media (min-width: 1200px) {
	.home-stats--3[b-azras1eiai] {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767.98px) {
	/* KPI swipe row runs to the screen edge; first tile lines up with the gutter */
	.home-bleed[b-azras1eiai] {
		margin-inline: calc(-1 * var(--mobile-gutter));
		padding-inline: var(--mobile-gutter);
		scroll-padding-inline: var(--mobile-gutter);
	}

	/* Paid counts are navy on the board; unpaid stays amber (700) */
	.home-bleed[b-azras1eiai]  .ui-stat--success .ui-stat__value { color: var(--primary-900); }
	.home-bleed[b-azras1eiai]  .ui-stat--warning .ui-stat__value { color: var(--warning-700); }

	/* "Open payroll" button card */
	.home-cta[b-azras1eiai] {
		display: flex;
		align-items: center;
		gap: var(--space-3);
		min-height: 64px;
		margin-bottom: var(--space-4);
		padding: 14px;
		border-radius: var(--radius-xl);
		background: var(--primary-900);
		color: #fff;
		text-decoration: none;
	}

	.home-cta:hover[b-azras1eiai],
	.home-cta:focus-visible[b-azras1eiai] { color: #fff; }
	.home-cta:focus-visible[b-azras1eiai] { outline: 2px solid var(--primary-100); outline-offset: 2px; }

	.home-cta__text[b-azras1eiai] {
		display: flex;
		flex: 1;
		flex-direction: column;
		gap: 2px;
	}

	.home-cta__text b[b-azras1eiai] { font-size: var(--text-base); font-weight: var(--font-bold); }
	.home-cta__text span[b-azras1eiai] { font-size: var(--text-xs); color: var(--primary-100); }

	.home-section[b-azras1eiai] { margin-bottom: var(--space-4); }
	.home-section > .ui-section-head[b-azras1eiai] { margin-bottom: var(--space-2); }

	/* Barangay rows: name and % on top, 6px bar below */
	.home-bar-row[b-azras1eiai] {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 6px;
		min-height: 0;
		padding: 10px 14px;
	}

	.home-bar-row__top[b-azras1eiai] {
		display: flex;
		justify-content: space-between;
		gap: var(--space-3);
		font-size: 0.9375rem;
		font-variant-numeric: tabular-nums;
	}

	/* Card links that stay in the DOM ("Open payroll" footer): 44px touch targets */
	a:not(.home-cta)[b-azras1eiai] {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
		font-weight: 600;
	}
}
/* _content/ALMS/Components/Shared/HomeTiles.razor.rz.scp.css */
.home-tiles[b-vnea3iktzm] {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: var(--space-3);
}

.home-tile[b-vnea3iktzm] {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	min-height: 44px;
	padding: var(--space-4);
	border: 1px solid var(--neutral-200);
	border-radius: var(--radius-xl);
	background: #fff;
	color: var(--neutral-900);
	text-decoration: none;
}

.home-tile:hover[b-vnea3iktzm],
.home-tile:focus-visible[b-vnea3iktzm] {
	border-color: var(--primary-200);
	background: var(--primary-50);
	color: var(--neutral-900);
}

.home-tile__title[b-vnea3iktzm] {
	font-weight: 600;
	font-size: var(--text-base);
}

.home-tile__hint[b-vnea3iktzm] {
	font-size: var(--text-sm);
	color: var(--neutral-600);
}

.home-tile__tier[b-vnea3iktzm] {
	align-self: flex-start;
	margin-top: var(--space-1);
	padding: 2px var(--space-2);
	border-radius: var(--radius-md);
	background: var(--primary-50);
	color: var(--primary-700);
	font-size: var(--text-xs);
	font-weight: 700;
}

.home-tiles__note[b-vnea3iktzm] {
	margin: var(--space-2) 0 0;
	font-size: var(--text-sm);
	color: var(--neutral-600);
}

/* Phones (DOCS/MOBILE_DESIGN_PLAN.md §8 Home): one card of 56px rows instead of the tile grid;
   computer-only tools hidden. Desktop tiles above are unchanged. */
@media (max-width: 767.98px) {
	.home-tiles[b-vnea3iktzm] {
		display: flex;
		flex-direction: column;
		gap: 1px;               /* the grey background shows through as row dividers (skips hidden tiles) */
		overflow: hidden;
		border: 1px solid var(--neutral-200);
		border-radius: var(--radius-xl);
		background: var(--neutral-200);
	}

	.home-tile[b-vnea3iktzm] {
		justify-content: center;
		gap: 2px;
		min-height: 56px;
		padding: var(--space-3) var(--space-4);
		border: 0;
		border-radius: 0;
	}

	.home-tile__tier[b-vnea3iktzm],
	.home-tile--computer[b-vnea3iktzm] {
		display: none;
	}

	/* Layout="list": rows with a chevron on the right */
	.home-tiles--list .home-tile[b-vnea3iktzm] {
		position: relative;
		padding-right: 44px;
	}

	.home-tiles--list[b-vnea3iktzm]  .home-tile__chev {
		position: absolute;
		top: 50%;
		right: var(--space-4);
		translate: 0 -50%;
		color: var(--neutral-600);
	}

	/* Layout="grid": two columns of separate 72px tiles */
	.home-tiles--grid[b-vnea3iktzm] {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--space-2);
		overflow: visible;
		border: 0;
		background: transparent;
	}

	.home-tiles--grid .home-tile[b-vnea3iktzm] {
		min-height: 72px;
		padding: var(--space-3);
		border: 1px solid var(--neutral-200);
		border-radius: var(--radius-xl);
	}

	.home-tiles--grid .home-tile__title[b-vnea3iktzm] { font-weight: var(--font-bold); font-size: var(--text-sm); }
	.home-tiles--grid .home-tile__hint[b-vnea3iktzm] { font-size: var(--text-xs); }
}

@media (max-width: 767.98px) {
	.home-tiles__heading[b-vnea3iktzm] {
		margin-bottom: var(--space-2);
		font-family: var(--font-sans);
		font-size: var(--text-xs);
		font-weight: var(--font-bold);
		letter-spacing: 0.08em;
		color: var(--neutral-600) !important;
	}
}
/* _content/ALMS/Components/Shared/HomeWatcherPanel.razor.rz.scp.css */
/* HomeWatcherPanel — phone layout below 768px (board: DOCS/MOBILE_DESIGN/HomeWatcher.html). Desktop is unchanged. */

/* Stat row: .ui-stat-strip gives the phone swipe row (stat-card.css). From 768px this keeps the
   previous Bootstrap grid (col-sm-6 col-xl-3, g-3): 2 columns, then 4 from 1200px, 16px gaps. */
@media (min-width: 768px) {
	.home-stats[b-9v9knx6rn7] {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: start;
		gap: var(--space-4);
	}
}

@media (min-width: 1200px) {
	.home-stats[b-9v9knx6rn7] {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 767.98px) {
	.home-bleed[b-9v9knx6rn7] {
		margin-inline: calc(-1 * var(--mobile-gutter));
		padding-inline: var(--mobile-gutter);
		scroll-padding-inline: var(--mobile-gutter);
	}

	.home-stats[b-9v9knx6rn7]  .home-stat--navy .ui-stat__value { color: var(--primary-900); }

	.home-hero[b-9v9knx6rn7],
	.home-marking[b-9v9knx6rn7] {
		display: flex;
		flex-direction: column;
		margin-bottom: var(--space-4);
		border: 1px solid var(--neutral-200);
		border-radius: var(--radius-xl);
		background: #fff;
	}

	.home-hero[b-9v9knx6rn7] { gap: 6px; padding: var(--space-4); }

	.home-hero__label[b-9v9knx6rn7] {
		margin: 0;
		font-size: var(--text-xs);
		font-weight: var(--font-bold);
		letter-spacing: 0.08em;
		text-transform: uppercase;
		color: var(--neutral-600);
	}

	.home-hero__value[b-9v9knx6rn7] {
		font-family: var(--font-heading);
		font-size: 1.875rem;
		font-weight: 800;
		line-height: 1.1;
		color: var(--primary-900);
	}

	.home-hero__sub[b-9v9knx6rn7],
	.home-marking > span[b-9v9knx6rn7] { font-size: var(--text-xs); color: var(--neutral-600); }

	.home-marking[b-9v9knx6rn7] { gap: var(--space-2); padding: 14px; }
	.home-marking > b[b-9v9knx6rn7] { font-size: 0.9375rem; font-weight: var(--font-bold); color: var(--neutral-900); }
}
/* _content/ALMS/Components/Shared/OdometerNumber.razor.rz.scp.css */
.odometer-number[b-zsnt5p6buf] {
	display: inline-block;
	white-space: nowrap;
}

/* Digit window: one digit tall, clipped. clip-path (not overflow: hidden) keeps the
   in-flow .odometer-sizer as the box's baseline, so digits sit on the text baseline. */
.odometer-digit[b-zsnt5p6buf] {
	display: inline-block;
	position: relative;
	height: 1em;
	line-height: 1em;
	width: 1ch;
	text-align: center;
	vertical-align: baseline;
	clip-path: inset(0);
}

.odometer-sizer[b-zsnt5p6buf] {
	visibility: hidden;
}

.odometer-strip[b-zsnt5p6buf] {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	transition: transform 0.5s cubic-bezier(0.34, 1.15, 0.64, 1);
	will-change: transform;
}

.odometer-strip span[b-zsnt5p6buf] {
	display: block;
	height: 1em;
	line-height: 1em;
	text-align: center;
}

.odometer-static[b-zsnt5p6buf] {
	display: inline-block;
	line-height: 1em;
	vertical-align: baseline;
}

@media (prefers-reduced-motion: reduce) {
	.odometer-strip[b-zsnt5p6buf] { transition: none; }
}
/* _content/ALMS/Components/Shared/PhotoCropEditor.razor.rz.scp.css */
/* ==========================================================================
   Photo Crop Editor Modal — scoped to PhotoCropEditor.razor.
   Reusable component for repositioning and resizing profile photos.
   The crop canvas (wwwroot/JS/photo-crop-editor.js) draws into the markup's own
   <canvas id="cropEditorCanvas">, so nothing here needs ::deep.
   ========================================================================== */

/* Backdrop */
.crop-editor-backdrop[b-fd4es2vm8y] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    z-index: var(--z-tooltip);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: cropBackdropIn-b-fd4es2vm8y 0.18s ease-out;
}

@keyframes cropBackdropIn-b-fd4es2vm8y {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Panel */
.crop-editor-panel[b-fd4es2vm8y] {
    background: #fff;
    border-radius: 16px;
    max-width: 400px;
    width: calc(100% - 32px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
    animation: cropPanelIn-b-fd4es2vm8y 0.22s cubic-bezier(0.34, 1.45, 0.64, 1);
    overflow: hidden;
}

@keyframes cropPanelIn-b-fd4es2vm8y {
    from { opacity: 0; transform: scale(0.90) translateY(16px); }
    to   { opacity: 1; transform: scale(1)    translateY(0);     }
}

/* Header */
.crop-editor-header[b-fd4es2vm8y] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--ash-100);
    background: var(--ash-50);
}

.crop-editor-header h5[b-fd4es2vm8y] {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--alms-text-body);
}

.crop-editor-close-btn[b-fd4es2vm8y] {
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--alms-text-muted);
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
    transition: background 0.15s, color 0.15s;
    line-height: 1;
}

.crop-editor-close-btn:hover[b-fd4es2vm8y] {
    background: var(--ash-150);
    color: var(--alms-text-heading);
}

/* Body */
.crop-editor-body[b-fd4es2vm8y] {
    padding: 20px;
}

/* ── SOURCE SELECTION ─────────────────────────────────────────── */
.crop-source-current[b-fd4es2vm8y] {
    text-align: center;
    margin-bottom: 18px;
}

.crop-source-current-img[b-fd4es2vm8y] {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--neutral-100);
}

.crop-source-placeholder[b-fd4es2vm8y] {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--surface-cool);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-gray-500);
    font-size: 2rem;
}

.crop-source-label[b-fd4es2vm8y] {
    display: block;
    font-size: 0.78rem;
    color: var(--alms-text-muted);
    margin-top: 6px;
}

.crop-source-grid[b-fd4es2vm8y] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.crop-source-btn[b-fd4es2vm8y] {
    padding: 20px 12px;
    border: 2px dashed var(--bs-border-color);
    border-radius: 12px;
    background: var(--alms-bg-light);
    text-align: center;
    cursor: pointer;
    color: var(--alms-text-secondary);
    width: 100%;
    transition: border-color 0.18s, background 0.18s, transform 0.12s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.crop-source-btn:hover[b-fd4es2vm8y] {
    border-color: var(--primary-600);
    background: var(--tint-periwinkle);
    transform: translateY(-2px);
    color: var(--periwinkle-600);
}

.crop-source-btn span[b-fd4es2vm8y] {
    font-size: 0.83rem;
    font-weight: 500;
}

/* ── CAMERA MODE ──────────────────────────────────────────────── */
.crop-camera-wrapper[b-fd4es2vm8y] {
    width: 300px;
    height: 300px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    background: var(--black);
    position: relative;
}

.crop-camera-video[b-fd4es2vm8y] {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Subtle guide frame overlay on camera */
.crop-camera-frame-guide[b-fd4es2vm8y] {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 240px;
    height: 240px;
    border: 2px solid rgba(255, 255, 255, 0.65);
    border-radius: 4px;
    pointer-events: none;
}

/* ── CROPPING MODE ────────────────────────────────────────────── */
.crop-canvas-wrapper[b-fd4es2vm8y] {
    width: 300px;
    height: 300px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    touch-action: none;
    display: block;
}

.crop-canvas-wrapper:active[b-fd4es2vm8y] {
    cursor: grabbing;
}

#cropEditorCanvas[b-fd4es2vm8y] {
    display: block;
    border-radius: 10px;
}

.crop-hint-text[b-fd4es2vm8y] {
    text-align: center;
    font-size: 0.77rem;
    color: var(--slate-350);
    margin-top: 8px;
}

/* Zoom slider row */
.crop-zoom-row[b-fd4es2vm8y] {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.crop-zoom-icon[b-fd4es2vm8y] {
    color: var(--slate-350);
    font-size: 0.85rem;
    flex-shrink: 0;
    line-height: 1;
}

#cropZoomSlider[b-fd4es2vm8y] {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(to right, var(--primary-600), var(--primary-800));
    outline: none;
    cursor: pointer;
}

#cropZoomSlider[b-fd4es2vm8y]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--primary-600);
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(var(--primary-rgb), 0.5);
}

#cropZoomSlider[b-fd4es2vm8y]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--primary-600);
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(var(--primary-rgb), 0.5);
}

/* ── FOOTER ───────────────────────────────────────────────────── */
.crop-editor-footer[b-fd4es2vm8y] {
    padding: 10px 20px 16px;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    border-top: 1px solid var(--ash-100);
}

.crop-editor-footer .btn[b-fd4es2vm8y] {
    font-size: 0.875rem;
    padding: 7px 18px;
}

/* ── Phones: the crop canvas already supports touch drag and pinch zoom
   (JS/photo-crop-editor.js); this only enlarges the touch targets. 768px+ unchanged. ── */
@media (max-width: 767.98px) {
    .crop-editor-close-btn[b-fd4es2vm8y] {
        width: 44px;
        height: 44px;
    }

    .crop-source-btn[b-fd4es2vm8y] {
        min-height: 96px;
    }

    .crop-editor-footer .btn[b-fd4es2vm8y] {
        min-height: 44px;
    }
}
/* _content/ALMS/Components/Shared/ProfileEditPanel.razor.rz.scp.css */
/* Scoped to ProfileEditPanel.razor. The Save row uses the shared .ui-sticky-action
   (pinned above the tab bar on phones); from 768px it keeps its old left alignment. */
.pe-save[b-ikxy5682kx] {
	--ui-sticky-action-bleed: var(--space-4);
}

@media (min-width: 768px) {
	.pe-save[b-ikxy5682kx] {
		justify-content: flex-start;
	}
}
/* _content/ALMS/Components/Shared/SettingsNav.razor.rz.scp.css */
/* Scoped to SettingsNav.razor (Blazor CSS isolation). */

.settings-nav[b-qhny71zt52] {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.settings-nav__group[b-qhny71zt52] {
    padding: var(--space-3) var(--space-3) var(--space-1);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--foreground-subtle);
}

.settings-nav__group:first-child[b-qhny71zt52] {
    padding-top: var(--space-1);
}

.settings-nav__item[b-qhny71zt52] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    width: 100%;
    padding: var(--space-2) var(--space-3);
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    background: transparent;
    color: var(--foreground);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    text-align: left;
}

.settings-nav__item:hover[b-qhny71zt52] {
    background: var(--background-subtle);
}

.settings-nav__item:focus-visible[b-qhny71zt52] {
    outline: 2px solid var(--border-focus);
    outline-offset: -2px;
}

.settings-nav__item.is-active[b-qhny71zt52] {
    border-color: var(--primary-100);
    background: var(--primary-50);
    color: var(--primary-800);
    font-weight: var(--font-bold);
}

.settings-nav__dot[b-qhny71zt52] {
    display: inline-block;
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--neutral-300);
}

.settings-nav__dot--ok[b-qhny71zt52] { background: var(--success-700); }
.settings-nav__dot--need[b-qhny71zt52] { background: var(--warning-600); }
.settings-nav__dot--act[b-qhny71zt52] { background: var(--danger-600); }

.settings-nav__empty[b-qhny71zt52] {
    padding: var(--space-5) var(--space-3);
    text-align: center;
    font-size: var(--text-sm);
    color: var(--foreground-subtle);
}

.settings-nav__legend[b-qhny71zt52] {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    margin-top: var(--space-3);
    padding: var(--space-3) var(--space-3) var(--space-1);
    border-top: 1px solid var(--neutral-100);
    font-size: var(--text-xs);
    color: var(--foreground-muted);
}

.settings-nav__legend > span[b-qhny71zt52] {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

/* Same spacing as when the items were direct children of .settings-nav. */
.settings-nav__list[b-qhny71zt52] {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Phone-only marks ("View only" / "Computer"). */
.settings-nav__mark[b-qhny71zt52] {
    display: none;
}

/* ── Phones (mobile plan §6, board SetMenu): a full-screen list of white group cards ── */
@media (max-width: 767.98px) {
    .settings-nav[b-qhny71zt52] {
        gap: var(--space-2);
    }

    .settings-nav__group[b-qhny71zt52] {
        padding: var(--space-2) var(--space-1) 0;
        color: var(--neutral-600);
    }

    .settings-nav__group:first-child[b-qhny71zt52] {
        padding-top: 0;
    }

    .settings-nav__list[b-qhny71zt52] {
        gap: 0;
        overflow: hidden;
        border: 1px solid var(--neutral-200);
        border-radius: var(--radius-xl);
        background: #fff;
    }

    .settings-nav__item[b-qhny71zt52],
    .settings-nav__item.is-active[b-qhny71zt52] {
        gap: var(--space-3);
        min-height: 52px;
        padding: 0 var(--space-3) 0 14px;
        border-width: 0 0 1px;
        border-color: var(--neutral-100);
        border-radius: 0;
        font-size: 0.9375rem;
    }

    .settings-nav__item.is-active[b-qhny71zt52] {
        background: #fff;
        color: var(--foreground);
        font-weight: var(--font-medium);
    }

    .settings-nav__item:last-child[b-qhny71zt52] {
        border-bottom-width: 0;
    }

    .settings-nav__item--computer[b-qhny71zt52] {
        color: var(--neutral-600);
    }

    .settings-nav__label[b-qhny71zt52] {
        flex-grow: 1;
        min-width: 0;
    }

    .settings-nav__mark[b-qhny71zt52] {
        display: inline-flex;
        align-items: center;
        gap: var(--space-1);
        font-size: var(--text-xs);
        font-weight: var(--font-semibold);
        color: var(--neutral-600);
        white-space: nowrap;
    }

    .settings-nav__dot[b-qhny71zt52] {
        width: 10px;
        height: 10px;
    }

    .settings-nav__empty[b-qhny71zt52] {
        border: 1px solid var(--neutral-200);
        border-radius: var(--radius-xl);
        background: #fff;
    }

    .settings-nav__legend[b-qhny71zt52] {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 6px var(--space-4);
        margin-top: 0;
        padding: 10px var(--space-1) 0;
        font-size: 0.78125rem;
        color: var(--neutral-700);
        border-top: 0;
    }
}
/* _content/ALMS/Components/Shared/UI/ComputerOnly.razor.rz.scp.css */
/* ComputerOnly guard card (phones only; hidden from 768px by .ui-mobile-only). Board: SetComputer. */
.ui-computer-only[b-8b21ij7p1o] {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    min-height: calc(100dvh - var(--mobile-bottom-offset) - var(--space-8));
    padding: var(--space-5) var(--space-1) var(--space-2);
}

.ui-computer-only__hero[b-8b21ij7p1o] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3) 0;
    text-align: center;
}

.ui-computer-only__icon[b-8b21ij7p1o] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-2xl);
    background: var(--primary-50);
    color: var(--primary-900);
}

.ui-computer-only__title[b-8b21ij7p1o] {
    margin: 0;
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--neutral-900);
}

.ui-computer-only__reason[b-8b21ij7p1o] {
    margin: 0;
    max-width: 32ch;
    font-size: var(--text-base);
    line-height: 1.5;
    color: var(--neutral-700);
}

/* Read-only facts. Callers can use .ui-computer-only__row ("label … value") rows. */
.ui-computer-only__summary[b-8b21ij7p1o] {
    overflow: hidden;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-xl);
    background: #fff;
}

.ui-computer-only__summary[b-8b21ij7p1o]  .ui-computer-only__row {
    display: flex;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--neutral-100);
    font-size: var(--text-sm);
}

.ui-computer-only__summary[b-8b21ij7p1o]  .ui-computer-only__row:last-child {
    border-bottom: 0;
}

.ui-computer-only__summary[b-8b21ij7p1o]  .ui-computer-only__row > :first-child {
    color: var(--neutral-600);
}

.ui-computer-only__summary[b-8b21ij7p1o]  .ui-computer-only__row > :last-child {
    font-weight: var(--font-semibold);
    text-align: right;
}

.ui-computer-only__actions[b-8b21ij7p1o] {
    display: flex;
    gap: var(--space-3);
    margin-top: auto;
}

.ui-computer-only__actions > .btn[b-8b21ij7p1o] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    border-radius: var(--radius-xl);
    font-weight: var(--font-bold);
}

.ui-computer-only__copy[b-8b21ij7p1o] {
    flex: 1 1 auto;
}

.ui-computer-only__status[b-8b21ij7p1o] {
    margin: calc(-1 * var(--space-3)) 0 0;
    min-height: 1.25em;
    text-align: center;
    font-size: var(--text-sm);
    color: var(--neutral-600);
}
/* _content/ALMS/Components/Shared/UI/FuzzyToleranceControl.razor.rz.scp.css */
/* FuzzyToleranceControl: switch + tolerance slider. Tokens only; fill/stops positioned by the
   fuzzy-idx-N / fuzzy-max-N classes (--idx / --max), measured to the thumb centre. */

.fuzzy-control[b-my8qjrn70x] {
	--thumb: 1.75rem;
	font-family: inherit;
}

/* Switch */
.fuzzy-control__switch[b-my8qjrn70x] {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	min-height: 44px;
	cursor: pointer;
}

.fuzzy-control__switch input[b-my8qjrn70x] {
	appearance: none;
	position: relative;
	flex: none;
	width: 2.75rem;
	height: 1.5rem;
	margin: 0;
	border-radius: var(--radius-full);
	background: var(--neutral-300);
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.fuzzy-control__switch input[b-my8qjrn70x]::before {
	content: "";
	position: absolute;
	top: 0.125rem;
	left: 0.125rem;
	width: 1.25rem;
	height: 1.25rem;
	border-radius: var(--radius-full);
	background: var(--neutral-0);
	box-shadow: var(--shadow-sm);
	transition: transform 0.15s ease;
}

.fuzzy-control__switch input:checked[b-my8qjrn70x] {
	background: var(--primary-600);
}

.fuzzy-control__switch input:checked[b-my8qjrn70x]::before {
	transform: translateX(1.25rem);
}

.fuzzy-control__switch input:focus-visible[b-my8qjrn70x] {
	outline: 2px solid var(--primary-600);
	outline-offset: 2px;
}

.fuzzy-control__range:focus-visible[b-my8qjrn70x]::-webkit-slider-thumb {
	outline: 2px solid var(--primary-600);
	outline-offset: 2px;
}

.fuzzy-control__switch-label[b-my8qjrn70x] {
	color: var(--neutral-600);
	font-size: var(--text-sm);
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* Tolerance part */
.fuzzy-control__body[b-my8qjrn70x] {
	margin-top: var(--space-4);
	text-align: center;
}

.fuzzy-control.is-off .fuzzy-control__body[b-my8qjrn70x] {
	opacity: 0.5;
}

.fuzzy-control__caption[b-my8qjrn70x] {
	margin: 0;
	color: var(--neutral-600);
	font-size: var(--text-xs);
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.fuzzy-control__level[b-my8qjrn70x] {
	margin: var(--space-1) 0 var(--space-4);
	color: var(--tone-text);
	font-size: var(--text-3xl);
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.1;
	text-transform: uppercase;
}

.fuzzy-control__description[b-my8qjrn70x] {
	margin: var(--space-4) 0 0;
	color: var(--neutral-700);
	font-size: var(--text-lg);
	font-weight: 600;
}

/* Level colours (semantic tokens). Text uses a darker yellow so it stays readable on white. */
.fuzzy-tone-danger[b-my8qjrn70x] {
	--tone: var(--danger-600);
	--tone-text: var(--danger-600);
}

.fuzzy-tone-warning[b-my8qjrn70x] {
	--tone: var(--warning-500);
	--tone-text: var(--warning-700);
}

.fuzzy-tone-info[b-my8qjrn70x] {
	--tone: var(--info-600);
	--tone-text: var(--info-800);
}

.fuzzy-tone-primary[b-my8qjrn70x] {
	--tone: var(--primary-600);
	--tone-text: var(--primary-600);
}

.fuzzy-tone-success[b-my8qjrn70x] {
	--tone: var(--success-700);
	--tone-text: var(--success-700);
}

/* Slider */
.fuzzy-idx-0[b-my8qjrn70x] { --idx: 0; }
.fuzzy-idx-1[b-my8qjrn70x] { --idx: 1; }
.fuzzy-idx-2[b-my8qjrn70x] { --idx: 2; }
.fuzzy-idx-3[b-my8qjrn70x] { --idx: 3; }
.fuzzy-idx-4[b-my8qjrn70x] { --idx: 4; }
.fuzzy-idx-5[b-my8qjrn70x] { --idx: 5; }
.fuzzy-idx-6[b-my8qjrn70x] { --idx: 6; }
.fuzzy-max-1[b-my8qjrn70x] { --max: 1; }
.fuzzy-max-2[b-my8qjrn70x] { --max: 2; }
.fuzzy-max-3[b-my8qjrn70x] { --max: 3; }
.fuzzy-max-4[b-my8qjrn70x] { --max: 4; }
.fuzzy-max-5[b-my8qjrn70x] { --max: 5; }
.fuzzy-max-6[b-my8qjrn70x] { --max: 6; }

.fuzzy-control__slider[b-my8qjrn70x] {
	--at: calc(var(--thumb) / 2 + (100% - var(--thumb)) * var(--idx) / var(--max));
	position: relative;
	height: var(--thumb);
}

.fuzzy-control__track[b-my8qjrn70x] {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 0.75rem;
	transform: translateY(-50%);
	border-radius: var(--radius-full);
	background: linear-gradient(to right, var(--tone) var(--at), var(--neutral-100) var(--at));
}

.fuzzy-control__stops[b-my8qjrn70x] {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.fuzzy-control__stop[b-my8qjrn70x] {
	--at: calc(var(--thumb) / 2 + (100% - var(--thumb)) * var(--idx) / var(--max));
	position: absolute;
	top: 50%;
	left: var(--at);
	width: 0.375rem;
	height: 0.375rem;
	transform: translate(-50%, -50%);
	border-radius: var(--radius-full);
	background: var(--neutral-300);
}

.fuzzy-control__stop[hidden][b-my8qjrn70x] {
	display: none;
}

.fuzzy-control__range[b-my8qjrn70x] {
	appearance: none;
	position: relative;
	display: block;
	width: 100%;
	height: var(--thumb);
	margin: 0;
	background: transparent;
	cursor: pointer;
}

.fuzzy-control__range:disabled[b-my8qjrn70x] {
	cursor: not-allowed;
}

.fuzzy-control__range[b-my8qjrn70x]::-webkit-slider-runnable-track {
	height: var(--thumb);
	background: transparent;
}

.fuzzy-control__range[b-my8qjrn70x]::-moz-range-track {
	height: var(--thumb);
	background: transparent;
}

.fuzzy-control__range[b-my8qjrn70x]::-webkit-slider-thumb {
	appearance: none;
	width: var(--thumb);
	height: var(--thumb);
	border: 1px solid var(--neutral-200);
	border-radius: var(--radius-full);
	background: var(--neutral-0);
	box-shadow: var(--shadow-md);
}

.fuzzy-control__range[b-my8qjrn70x]::-moz-range-thumb {
	width: var(--thumb);
	height: var(--thumb);
	box-sizing: border-box;
	border: 1px solid var(--neutral-200);
	border-radius: var(--radius-full);
	background: var(--neutral-0);
	box-shadow: var(--shadow-md);
}

.fuzzy-control__range:focus-visible[b-my8qjrn70x] {
	outline: none;
}

.fuzzy-control__range:focus-visible[b-my8qjrn70x]::-moz-range-thumb {
	outline: 2px solid var(--primary-600);
	outline-offset: 2px;
}
/* _content/ALMS/Components/Shared/VelocityMonthBars.razor.rz.scp.css */
/* Phone-only (see VelocityMonthBars.razor). Plot is 96px tall; each month group
   draws its own three gridlines, so the lines break between months. */
.vel-m[b-t75qggwsxe] {
    display: none;
}

@media (max-width: 767.98px) {
    .vel-m[b-t75qggwsxe] {
        display: flex;
        gap: 0.375rem;
        padding: 0;
    }

    .vel-m__y[b-t75qggwsxe] {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 96px;
        min-width: 0;   /* shrink-wrap: no empty strip left of the numbers */
        font-size: 0.8125rem;
        font-weight: 900;
        line-height: 1;
        text-align: left;   /* flush with the card's inner edge, like the title */
        font-variant-numeric: tabular-nums;
        /* centre each label on its gridline */
        margin-top: -0.375rem;
        padding-bottom: 0;
    }

    .vel-m__plot[b-t75qggwsxe] {
        display: flex;
        flex: 1 1 0;
        gap: 0.5rem;
        min-width: 0;
    }

    .vel-m__group[b-t75qggwsxe] {
        flex-basis: 0;
        min-width: 2.25rem;   /* a month with one day left still fits "31" */
        display: flex;
        flex-direction: column;
    }

    .vel-m__bars[b-t75qggwsxe] {
        display: flex;
        align-items: flex-end;
        height: 96px;
        background:
            linear-gradient(var(--neutral-300), var(--neutral-300)) top / 100% 1px no-repeat,
            linear-gradient(var(--neutral-300), var(--neutral-300)) center / 100% 1px no-repeat,
            linear-gradient(var(--foreground), var(--foreground)) bottom / 100% 1px no-repeat;
    }

    .vel-m__col[b-t75qggwsxe] {
        flex: 1 1 0;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        height: 100%;
        min-width: 0;
    }

    .vel-m__col > i[b-t75qggwsxe] {
        display: block;
        width: 62%;
        max-width: 14px;
        min-height: 0;
        border-radius: 3px 3px 0 0;
    }

    .vel-m__days[b-t75qggwsxe] {
        display: flex;
        margin-top: 0.375rem;
        padding: 0.375rem 0.5rem;
        border-radius: 8px;
        background: var(--neutral-100);
        color: var(--alms-chart-pill-bg);
    }

    .vel-m__days > span[b-t75qggwsxe] {
        flex: 1 1 0;
        min-width: 0;
        font-size: 0.625rem;
        font-weight: 800;
        text-align: center;
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
    }

    .vel-m__month[b-t75qggwsxe] {
        margin-top: 0.25rem;
        font-size: 0.75rem;
        font-weight: 900;
        text-align: center;
        color: var(--alms-chart-pill-bg);
    }
}

/* Small phones: shrink the whole chart so two-digit days ("30", "31") stay on one line.
   Deliberate breakpoint exception (419.98px): the day labels only stop fitting below ~420px; see DOCS/CSS_SYSTEM.md */
@media (max-width: 419.98px) {
    .vel-m[b-t75qggwsxe] { gap: 0.25rem; }
    .vel-m__y[b-t75qggwsxe] { height: 80px; font-size: 0.6875rem; }
    .vel-m__plot[b-t75qggwsxe] { gap: 0.25rem; }
    .vel-m__bars[b-t75qggwsxe] { height: 80px; }

    .vel-m__days[b-t75qggwsxe] {
        padding: 0.25rem 0.125rem;
        border-radius: 6px;
    }

    .vel-m__days > span[b-t75qggwsxe] {
        font-size: clamp(0.5rem, 2.4vw, 0.5625rem);
        letter-spacing: -0.02em;
        white-space: nowrap;
    }

    .vel-m__group[b-t75qggwsxe] { min-width: 1.75rem; }
    .vel-m__month[b-t75qggwsxe] { font-size: 0.6875rem; }
}
/* _content/ALMS/Components/Shared/VoterNotesPanel.razor.rz.scp.css */
/* Voter Notes Panel — timeline of prior-observed voter stance/behavior.
   Scoped to VoterNotesPanel.razor (the stance classes come from its code-behind).
   The row indicators + legend used by Advanced Voter Search live in VoterSearchAdvanced.razor.css. */

.notes-panel-backdrop[b-2tswffv6yw] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: var(--z-toast);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 1rem;
    overflow-y: auto;
}

.notes-panel[b-2tswffv6yw] {
    background: var(--alms-bg-white);
    border-radius: 0.75rem;
    width: 100%;
    max-width: 700px;
    box-shadow: var(--alms-shadow-lg);
    max-height: calc(100vh - 4rem);
    display: flex;
    flex-direction: column;
}

.notes-panel-header[b-2tswffv6yw] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
}

.notes-panel-header h5[b-2tswffv6yw] {
    margin: 0;
    display: flex;
    align-items: center;
}

.notes-panel-close-btn[b-2tswffv6yw] {
    background: none;
    border: none;
    color: var(--alms-text-muted);
    padding: 0.25rem;
    line-height: 1;
}

.notes-panel-body[b-2tswffv6yw] {
    padding: 1.25rem;
    overflow-y: auto;
}

/* ── Embedded mode — inline read-only preview inside another modal ───── */

.notes-embedded-wrapper[b-2tswffv6yw] {
    display: block;
}

.notes-embedded[b-2tswffv6yw] {
    max-height: 50vh;
    overflow-y: auto;
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
}

.notes-embedded .notes-panel-body[b-2tswffv6yw] {
    padding: 0.75rem;
}

.notes-context-banner[b-2tswffv6yw] {
    background: var(--info-50);
    border: 1px solid var(--info-200);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

/* ── Timeline ─────────────────────────────────────────── */

.notes-timeline[b-2tswffv6yw] {
    position: relative;
    padding-left: 1.5rem;
}

.notes-timeline-entry[b-2tswffv6yw] {
    position: relative;
    padding-bottom: 1.25rem;
    border-left: 2px solid var(--gray-200);
    padding-left: 1rem;
    margin-left: 0.25rem;
}

.notes-timeline-entry:last-child[b-2tswffv6yw] {
    border-left-color: transparent;
}

.notes-timeline-marker[b-2tswffv6yw] {
    position: absolute;
    left: -0.4rem;
    top: 0.15rem;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    background: var(--alms-text-muted);
}

.notes-timeline-entry.note-stance-opposition .notes-timeline-marker[b-2tswffv6yw] { background: var(--danger-600); }
.notes-timeline-entry.note-stance-leaning .notes-timeline-marker[b-2tswffv6yw] { background: var(--warning-600); }
.notes-timeline-entry.note-stance-undecided .notes-timeline-marker[b-2tswffv6yw] { background: var(--alms-text-muted); }
.notes-timeline-entry.note-stance-info .notes-timeline-marker[b-2tswffv6yw] { background: var(--secondary-600); }
.notes-timeline-entry.note-stance-supporter .notes-timeline-marker[b-2tswffv6yw] { background: var(--success-600); }

.notes-timeline-header[b-2tswffv6yw] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
}

.notes-timeline-date[b-2tswffv6yw],
.notes-timeline-author[b-2tswffv6yw] {
    color: var(--alms-text-muted);
}

.notes-stance-pill[b-2tswffv6yw] {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
}

.notes-stance-pill.note-stance-opposition[b-2tswffv6yw] { background: var(--danger-600); }
.notes-stance-pill.note-stance-leaning[b-2tswffv6yw] { background: var(--warning-600); color: var(--alms-text-heading); }
.notes-stance-pill.note-stance-undecided[b-2tswffv6yw] { background: var(--alms-text-muted); }
.notes-stance-pill.note-stance-info[b-2tswffv6yw] { background: var(--secondary-600); }
.notes-stance-pill.note-stance-supporter[b-2tswffv6yw] { background: var(--success-600); }

.notes-timeline-body[b-2tswffv6yw] {
    font-size: 0.9rem;
}

.notes-bullet[b-2tswffv6yw] {
    position: relative;
    padding-left: 0.9rem;
    margin-bottom: 0.25rem;
}

.notes-bullet[b-2tswffv6yw]::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--alms-text-muted);
}

.notes-timeline-links[b-2tswffv6yw] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.4rem;
}

.notes-link-chip[b-2tswffv6yw] {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    padding: 0.15rem 0.5rem;
    background: var(--alms-bg-light);
    border: 1px solid var(--gray-200);
    border-radius: 0.35rem;
    color: var(--primary-700);
    text-decoration: none;
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notes-timeline-photos[b-2tswffv6yw] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.notes-timeline-photo[b-2tswffv6yw] {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 0.35rem;
    border: 1px solid var(--gray-200);
}

.notes-timeline-actions[b-2tswffv6yw] {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.notes-dismiss-inline[b-2tswffv6yw] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.4rem;
}

.notes-dismiss-inline .form-control[b-2tswffv6yw] {
    max-width: 260px;
}

/* ── Dismissed section ────────────────────────────────── */

.notes-timeline-dismissed[b-2tswffv6yw] {
    opacity: 0.7;
}

/* Dismissed entries carry no stance class, so this plain rule already out-ranks .notes-timeline-marker */
.notes-timeline-entry-dismissed .notes-timeline-marker[b-2tswffv6yw] {
    background: var(--alms-text-muted);
}

.notes-dismiss-reason[b-2tswffv6yw] {
    font-size: 0.8rem;
    color: var(--alms-text-muted);
    font-style: italic;
    margin-top: 0.35rem;
}

/* ── Add/Edit form ────────────────────────────────────── */

.notes-pending-thumbs[b-2tswffv6yw] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.notes-pending-thumb[b-2tswffv6yw] {
    position: relative;
    width: 64px;
    height: 64px;
}

.notes-pending-thumb img[b-2tswffv6yw] {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.35rem;
    border: 1px solid var(--gray-200);
}

.notes-pending-thumb-remove[b-2tswffv6yw] {
    position: absolute;
    top: -0.4rem;
    right: -0.4rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: var(--danger-600);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}
