/* /Components/Layout/BasicLayout.razor.rz.scp.css */
.basic-layout-container[b-w6wqzlz6hc] {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}
/* /Components/Layout/PortalLayout.razor.rz.scp.css */
/* /Components/Layout/TopNavBar.razor.rz.scp.css */
.topbar[b-1xg2wybjf4] {
    position: sticky;
    top: 0;
    z-index: 40;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.topbar-inner[b-1xg2wybjf4] {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* ---------- Brand / logo ---------- */
.brand[b-1xg2wybjf4] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: #1f2937;
    font-weight: 700;
    font-size: 1.05rem;
    flex-shrink: 0;
    margin-right: auto;
}

.gateway-logo[b-1xg2wybjf4] {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffffff 0%, #a3d5a3 40%, #4caf50 100%);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.15);
    transition: width .2s ease, height .2s ease;
}

.gateway-logo-sm[b-1xg2wybjf4] {
    width: 32px;
    height: 32px;
    min-width: 32px;
}

.brand-text[b-1xg2wybjf4] {
    white-space: nowrap;
}

/* ---------- Desktop nav ---------- */
.nav-desktop[b-1xg2wybjf4] {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link[b-1xg2wybjf4] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    color: #374151;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    background: transparent;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .15s ease, color .15s ease;
}

.nav-link:hover[b-1xg2wybjf4],
.nav-link:focus-visible[b-1xg2wybjf4] {
    background: #f3f4f6;
    color: #15803d;
}

.nav-link:focus-visible[b-1xg2wybjf4] {
    outline: 2px solid #2f9e44;
    outline-offset: 2px;
}

.nav-cta[b-1xg2wybjf4] {
    background: #2f9e44;
    color: #ffffff;
    margin-left: 0.25rem;
}

.nav-cta:hover[b-1xg2wybjf4],
.nav-cta:focus-visible[b-1xg2wybjf4] {
    background: #26833a;
    color: #ffffff;
}

.nav-divider[b-1xg2wybjf4] {
    width: 1px;
    align-self: stretch;
    margin: 0.5rem 0.35rem;
    background: #e5e7eb;
}

.nav-logout[b-1xg2wybjf4] {
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.nav-logout:hover[b-1xg2wybjf4],
.nav-logout:focus-visible[b-1xg2wybjf4] {
    background: #f9fafb;
    color: #374151;
}

.chevron[b-1xg2wybjf4] {
    transition: transform .15s ease;
}

.nav-dropdown.open .chevron[b-1xg2wybjf4],
.chevron.rotated[b-1xg2wybjf4] {
    transform: rotate(180deg);
}

/* ---------- Admin dropdown ---------- */
.nav-dropdown[b-1xg2wybjf4] {
    position: relative;
}

.dropdown-panel[b-1xg2wybjf4] {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 240px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.18);
    padding: 0.4rem;
    display: none;
    flex-direction: column;
    gap: 2px;
    z-index: 50;
}

.nav-dropdown.open .dropdown-panel[b-1xg2wybjf4] {
    display: flex;
}

.dropdown-item[b-1xg2wybjf4] {
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
    color: #374151;
    text-decoration: none;
    font-size: 0.9rem;
}

.dropdown-item:hover[b-1xg2wybjf4],
.dropdown-item:focus-visible[b-1xg2wybjf4] {
    background: #eaf7ec;
    color: #15803d;
}

.dropdown-overlay[b-1xg2wybjf4] {
    position: fixed;
    inset: 0;
    z-index: 30;
    background: transparent;
}

/* ---------- Hamburger (mobile trigger) ---------- */
.hamburger[b-1xg2wybjf4] {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
}

.hamburger:hover[b-1xg2wybjf4],
.hamburger:focus-visible[b-1xg2wybjf4] {
    background: #f3f4f6;
}

.hamburger span[b-1xg2wybjf4] {
    display: block;
    height: 2px;
    width: 22px;
    margin: 0 auto;
    background: #374151;
    border-radius: 2px;
}

/* ---------- Mobile slide-out panel ---------- */
.mobile-overlay[b-1xg2wybjf4] {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    z-index: 45;
}

.mobile-overlay.visible[b-1xg2wybjf4] {
    opacity: 1;
    pointer-events: auto;
}

.mobile-panel[b-1xg2wybjf4] {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(85vw, 320px);
    background: #ffffff;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform .25s ease;
    z-index: 50;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-panel.open[b-1xg2wybjf4] {
    transform: translateX(0);
}

.mobile-panel-header[b-1xg2wybjf4] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.mobile-panel-header .brand-text[b-1xg2wybjf4] {
    font-weight: 700;
    color: #1f2937;
    margin-right: auto;
}

.mobile-close[b-1xg2wybjf4] {
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    cursor: pointer;
    color: #6b7280;
}

.mobile-close:hover[b-1xg2wybjf4],
.mobile-close:focus-visible[b-1xg2wybjf4] {
    background: #f3f4f6;
    color: #374151;
}

.mobile-nav[b-1xg2wybjf4] {
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    gap: 2px;
}

.mobile-divider[b-1xg2wybjf4] {
    height: 1px;
    background: #e5e7eb;
    margin: 0.5rem 0.25rem;
}

.mobile-link[b-1xg2wybjf4] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1rem;
    min-height: 48px;
    border-radius: 10px;
    color: #374151;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.mobile-link:hover[b-1xg2wybjf4],
.mobile-link:focus-visible[b-1xg2wybjf4] {
    background: #f3f4f6;
}

.mobile-cta[b-1xg2wybjf4] {
    background: #2f9e44;
    color: #ffffff;
    justify-content: center;
    margin-top: 0.5rem;
}

.mobile-cta:hover[b-1xg2wybjf4],
.mobile-cta:focus-visible[b-1xg2wybjf4] {
    background: #26833a;
    color: #ffffff;
}

.mobile-logout[b-1xg2wybjf4] {
    color: #6b7280;
    border-top: 1px solid #e5e7eb;
    margin-top: 0.5rem;
    border-radius: 0;
    padding-top: 1rem;
}

.mobile-accordion-panel[b-1xg2wybjf4] {
    display: flex;
    flex-direction: column;
    padding-left: 0.75rem;
    margin: 2px 0 6px;
    border-left: 2px solid #eaf7ec;
}

.mobile-sublink[b-1xg2wybjf4] {
    padding: 0.75rem 1rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-radius: 8px;
    color: #4b5563;
    text-decoration: none;
    font-size: 0.95rem;
}

.mobile-sublink:hover[b-1xg2wybjf4],
.mobile-sublink:focus-visible[b-1xg2wybjf4] {
    background: #f3f4f6;
    color: #15803d;
}

/* ---------- Breakpoint: collapse to mobile ---------- */
@media (max-width: 768px) {
    .nav-desktop[b-1xg2wybjf4] {
        display: none;
    }

    .hamburger[b-1xg2wybjf4] {
        display: flex;
    }

    .topbar-inner[b-1xg2wybjf4] {
        padding: 0 1rem;
        height: 56px;
    }

    .gateway-logo[b-1xg2wybjf4] {
        width: 34px;
        height: 34px;
        min-width: 34px;
    }

    .brand-text[b-1xg2wybjf4] {
        font-size: 0.95rem;
    }
}

@media (min-width: 769px) {
    .mobile-overlay[b-1xg2wybjf4],
    .mobile-panel[b-1xg2wybjf4] {
        display: none;
    }
}
/* /Components/Layout/UnitLayout.razor.rz.scp.css */
.layout-shell[b-6hefyge2cl] {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.theme-topbar[b-6hefyge2cl] {
    height: 6px;
    background: var(--top-bar-color, #0F2440);
}

.local-shell .page-header[b-6hefyge2cl] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.25rem;
    background: #fff;
    border-bottom: 3px solid var(--accent-color, #2E86AB);
    color: #111;
}

/* No separate colored nav band here (unlike Division's .primary-nav) — the
   nav sits directly in the now-white masthead, so it needs its own color
   instead of inheriting white-on-white. Reuses --accent-color, matching the
   masthead border directly above it. */
.local-shell .page-header nav a[b-6hefyge2cl] {
    color: var(--accent-color, #2E86AB);
    font-weight: 600;
}

.brand-block[b-6hefyge2cl] {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.site-logo[b-6hefyge2cl] {
    max-width: 140px;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Horizontal masthead logo row (PTA logo, school crest, partner logo) —
   height-matched and proportionally scaled, per-logo spacing instead of
   relying solely on the flex gap so a wrapped row still reads cleanly. */
.masthead-logo[b-6hefyge2cl] {
    max-height: 48px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin-right: 12px;
}

.masthead-logo:last-child[b-6hefyge2cl] {
    margin-right: 0;
}

.local-shell .banner-image[b-6hefyge2cl] {
    display: block;
    width: 100%;
    max-height: 140px;
    object-fit: cover;
}

.layout-body[b-6hefyge2cl] {
    padding: 1.25rem;
    flex: 1 0 auto;
}

/* -------------------------------------------------------
   FOOTER
------------------------------------------------------- */
.unit-footer-stack[b-6hefyge2cl] {
    margin-top: auto;
    width: 100%;
}

.unit-footer-nav[b-6hefyge2cl],
.unit-footer-links[b-6hefyge2cl],
.unit-footer-legal[b-6hefyge2cl] {
    text-align: center;
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
    color: #fff;
}

.unit-footer-nav[b-6hefyge2cl] {
    background: var(--footer-color-1, #1F3A5F);
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.unit-footer-links[b-6hefyge2cl] {
    background: var(--footer-color-2, #173252);
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.unit-footer-legal[b-6hefyge2cl] {
    background: var(--footer-color-3, #102540);
}

.unit-footer-bottom[b-6hefyge2cl] {
    height: 6px;
    background: var(--footer-color-4, #0A1930);
}

.unit-footer-nav a[b-6hefyge2cl],
.unit-footer-links a[b-6hefyge2cl] {
    color: #fff;
    text-decoration: none;
}

.unit-footer-nav a:hover[b-6hefyge2cl],
.unit-footer-links a:hover[b-6hefyge2cl] {
    text-decoration: underline;
}
/* /Components/PortalPages/GlobalAdmin/FieldBox.razor.rz.scp.css */
.field-box[b-1enweo2hmg] {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.5rem;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 0.25rem;
    background-color: var(--bs-tertiary-bg, #f8f9fa);
    font-size: 0.8125rem;
    white-space: nowrap;
}

.field-box-label[b-1enweo2hmg] {
    color: var(--bs-secondary-color, #6c757d);
    font-weight: 600;
}

.field-box-value[b-1enweo2hmg] {
    color: inherit;
    text-decoration: none;
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* /Components/PortalPages/GlobalAdmin/Index.razor.rz.scp.css */
/* Overview cards now come from the shared global-admin.css (.ga-overview-*)
   loaded by GlobalAdminLayout — nothing left to scope here. */
/* /Components/PortalPages/SetupSetup.razor.rz.scp.css */
/* ------------------------------------------------------------
   Layout
------------------------------------------------------------ */

.setup-page[b-34ay449r2n] {
    max-width: 900px;
    margin: 3rem auto;
    padding: 2rem;
    font-family: system-ui, sans-serif;
    color: #333;
}

.setup-header[b-34ay449r2n] {
    text-align: center;
    margin-bottom: 2.5rem;
}

    .setup-header h1[b-34ay449r2n] {
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: .5rem;
    }

.setup-muted[b-34ay449r2n] {
    color: #666;
    font-size: .95rem;
}

/* ------------------------------------------------------------
   Step Headings
------------------------------------------------------------ */

h2[b-34ay449r2n] {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2a3f8f;
}

/* ------------------------------------------------------------
   Instructions Box
------------------------------------------------------------ */

.setup-instructions[b-34ay449r2n] {
    background: #f7f9ff;
    border: 1px solid #d9e2ff;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

    .setup-instructions h2[b-34ay449r2n] {
        margin-top: 0;
        font-size: 1.2rem;
        font-weight: 700;
        color: #2a3f8f;
    }

    .setup-instructions ol[b-34ay449r2n] {
        margin: 0;
        padding-left: 1.25rem;
        color: #333;
    }

    .setup-instructions li[b-34ay449r2n] {
        margin-bottom: .5rem;
        line-height: 1.4;
    }

.setup-note[b-34ay449r2n] {
    margin-top: 1rem;
    font-size: .9rem;
    color: #555;
    font-style: italic;
}

.restart-note[b-34ay449r2n] {
    margin-top: 1rem;
    padding: 1rem;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 8px;
    color: #8a6d1d;
    font-size: .9rem;
    line-height: 1.4;
}

/* ------------------------------------------------------------
   Setup Groups
------------------------------------------------------------ */

.setup-group[b-34ay449r2n] {
    background: #fff;
    padding: 1.75rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    border: 1px solid #e5e5e5;
}

    .setup-group h3[b-34ay449r2n] {
        margin-top: 0;
        font-size: 1.25rem;
        font-weight: 600;
        margin-bottom: .5rem;
    }

.setup-help[b-34ay449r2n] {
    margin-top: 0;
    margin-bottom: 1.25rem;
    color: #777;
    font-size: .9rem;
}

/* ------------------------------------------------------------
   Form Grid
------------------------------------------------------------ */

.group-grid[b-34ay449r2n] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

label[b-34ay449r2n] {
    display: block;
    font-weight: 600;
    margin-bottom: .35rem;
    font-size: .9rem;
}

input[type="text"][b-34ay449r2n],
input[type="password"][b-34ay449r2n],
input[type="email"][b-34ay449r2n],
input[type="number"][b-34ay449r2n] {
    width: 100%;
    padding: .55rem .75rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: .95rem;
    transition: border-color .2s;
}

input:focus[b-34ay449r2n] {
    outline: none;
    border-color: #3366ff;
    box-shadow: 0 0 0 2px rgba(51,102,255,0.15);
}

.checkbox-field[b-34ay449r2n] {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: .5rem;
}

/* ------------------------------------------------------------
   Buttons
------------------------------------------------------------ */

button[b-34ay449r2n] {
    background: #3366ff;
    color: white;
    padding: .65rem 1.25rem;
    border: none;
    border-radius: 8px;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}

    button:hover:not([disabled])[b-34ay449r2n] {
        background: #2554d6;
    }

    button[disabled][b-34ay449r2n] {
        opacity: .6;
        cursor: not-allowed;
    }

.secondary-button[b-34ay449r2n] {
    background: transparent;
    color: #3366ff;
    border: 1px solid #3366ff;
    margin-left: .75rem;
}

    .secondary-button:hover:not([disabled])[b-34ay449r2n] {
        background: #f0f4ff;
    }

/* ------------------------------------------------------------
   Final Launch Button (🚀)
------------------------------------------------------------ */

.launch-button[b-34ay449r2n] {
    background: #28a745;
    padding: 0.85rem 2rem;
    font-size: 1.1rem;
    border-radius: 10px;
    margin-top: 1.5rem;
}

    .launch-button:hover[b-34ay449r2n] {
        background: #1e7e34;
    }

/* ------------------------------------------------------------
   Final Launch Section
------------------------------------------------------------ */

.final-launch[b-34ay449r2n] {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: #f0f7ff;
    border: 1px solid #d0e3ff;
    border-radius: 12px;
}

    .final-launch h2[b-34ay449r2n] {
        font-size: 1.8rem;
        margin-bottom: .75rem;
        color: #1f3d8f;
    }

    .final-launch p[b-34ay449r2n] {
        font-size: 1rem;
        color: #444;
    }

/* ------------------------------------------------------------
   Status Text
------------------------------------------------------------ */

.success-text[b-34ay449r2n] {
    color: #0a7a0a;
    font-weight: 600;
    margin-top: .75rem;
}

.error-text[b-34ay449r2n] {
    color: #c62828;
    font-weight: 600;
    margin-top: .75rem;
}

/* ------------------------------------------------------------
   Spinner
------------------------------------------------------------ */

.spinner-container[b-34ay449r2n],
.restart-wait[b-34ay449r2n] {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.spinner[b-34ay449r2n] {
    width: 48px;
    height: 48px;
    border: 5px solid #ccc;
    border-top-color: #3366ff;
    border-radius: 50%;
    animation: spin-b-34ay449r2n 0.8s linear infinite;
}

@keyframes spin-b-34ay449r2n {
    to {
        transform: rotate(360deg);
    }
}


.group-grid.two-col[b-34ay449r2n] {
    display: grid;
    grid-template-columns: 1fr 1fr !important; /* exactly two columns */
    grid-auto-rows: auto; /* rows grow as needed */
    gap: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
}
