/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-7pleobulxs],
.components-reconnect-repeated-attempt-visible[b-7pleobulxs],
.components-reconnect-failed-visible[b-7pleobulxs],
.components-pause-visible[b-7pleobulxs],
.components-resume-failed-visible[b-7pleobulxs],
.components-rejoining-animation[b-7pleobulxs] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-7pleobulxs],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-7pleobulxs],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-7pleobulxs],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-7pleobulxs],
#components-reconnect-modal.components-reconnect-retrying[b-7pleobulxs],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-7pleobulxs],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-7pleobulxs],
#components-reconnect-modal.components-reconnect-failed[b-7pleobulxs],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-7pleobulxs] {
    display: block;
}


#components-reconnect-modal[b-7pleobulxs] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-7pleobulxs 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-7pleobulxs 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-7pleobulxs 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-7pleobulxs]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-7pleobulxs 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-7pleobulxs {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-7pleobulxs {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-7pleobulxs {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-7pleobulxs] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-7pleobulxs] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-7pleobulxs] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-7pleobulxs] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-7pleobulxs] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-7pleobulxs] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-7pleobulxs] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-7pleobulxs 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-7pleobulxs] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-7pleobulxs {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Layout/UserAvatar.razor.rz.scp.css */
/* Scoped styles for UserAvatar.razor.
   The initials circle lives in the top bar; clicking it opens a flyout card.
   Portal-level top-bar/frame styles live in portal.css — only the avatar
   and flyout belong here. */

/* Positioned anchor so the flyout can be right-aligned under the circle */
.avatar-container[b-ge3lxb7o6k] {
    position: relative;
    display: inline-block;
}

/* ── Initials Circle (top bar) ── */
.avatar-circle[b-ge3lxb7o6k] {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1a6fa8;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.25);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    padding: 0;
    line-height: 1;
    /* overflow:hidden clips the photo to the circle boundary */
    overflow: hidden;
}

.avatar-circle:hover[b-ge3lxb7o6k] {
    background: #2d2d50;
}

/* Photo inside either circle — fills the circle and preserves aspect ratio */
.avatar-photo[b-ge3lxb7o6k] {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* ── Backdrop ── */
/* Full-screen invisible overlay — clicking outside closes the flyout without
   triggering any underlying page action. z-index sits below the flyout card. */
.avatar-backdrop[b-ge3lxb7o6k] {
    position: fixed;
    inset: 0;
    z-index: 99;
}

/* ── Flyout Card ── */
.avatar-flyout[b-ge3lxb7o6k] {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 260px;
    background: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 100;
    overflow: hidden;
}

/* Header: large circle + name + email, centred on a light background */
.avatar-flyout-header[b-ge3lxb7o6k] {
    padding: 18px 18px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    background: #f8f9fa;
}

/* Larger initials circle inside the flyout header */
.avatar-circle-lg[b-ge3lxb7o6k] {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #1a6fa8;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    /* overflow:hidden clips the photo to the circle boundary */
    overflow: hidden;
}

.avatar-flyout-name[b-ge3lxb7o6k] {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.3;
}

.avatar-flyout-email[b-ge3lxb7o6k] {
    font-size: 0.8rem;
    color: #777;
    word-break: break-all;
}

.avatar-divider[b-ge3lxb7o6k] {
    margin: 0;
    border: none;
    border-top: 1px solid #e1e4e8;
}

/* Each link row in the flyout */
.avatar-flyout-link[b-ge3lxb7o6k] {
    display: block;
    padding: 11px 18px;
    font-size: 0.9rem;
    color: #333;
    text-decoration: none;
    transition: background 0.12s;
}

.avatar-flyout-link:hover[b-ge3lxb7o6k] {
    background: #f0f4ff;
    color: #1a1a2e;
    text-decoration: none;
}

/* My Profile is a button not a link — reset browser button defaults so it looks
   identical to the anchor rows above it in the flyout. */
button.avatar-flyout-link-btn[b-ge3lxb7o6k] {
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

/* Sign Out row — red tint signals a destructive / session-ending action */
.avatar-flyout-signout[b-ge3lxb7o6k] {
    color: #c0392b;
}

.avatar-flyout-signout:hover[b-ge3lxb7o6k] {
    background: #fff5f5;
    color: #a93226;
}
/* /Components/Pages/Family/Dashboard.razor.rz.scp.css */
/* ===== DASHBOARD CARDS — visual uplift (Phase 7.1) =====
   The global .form-card class is intentionally minimal (flat, low-shadow, tight
   corners) so it stays neutral across every portal that reuses it — uplifting it
   directly would change PLO Admin/GW Admin/Sponsor cards too. This page gets its
   own wrapper class instead: deeper shadow, bigger radius, more breathing room,
   and a left-border accent that signals what kind of card it is at a glance.
   Scoped to this page only — Dashboard.razor.css is a CSS-isolated file, so these
   rules cannot leak onto any other page even if the class names were reused. */
.dashboard-card[b-wfda02kuy4] {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
    padding: 20px;
    margin-bottom: 16px;
    border-left: 4px solid transparent;
}

.dashboard-card-featured[b-wfda02kuy4] {
    border-left-color: #f39c12;
}

/* Upcoming Events owns its own internal header/row padding (a list, not prose) —
   the base card's 20px padding would double up with each row's own padding, so
   it's zeroed here and the header/row markup supplies its own spacing instead. */
.dashboard-card-events[b-wfda02kuy4] {
    border-left-color: #3498db;
    padding: 0;
    overflow: hidden;
}

.dashboard-card-election[b-wfda02kuy4] {
    border-left-color: #8e44ad;
}

.dashboard-card-activity[b-wfda02kuy4] {
    border-left-color: #27ae60;
}

/* ===== RECENT ACTIVITY TIMELINE (Phase 7.1) ===== */
.dashboard-card-header[b-wfda02kuy4] {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 0.95em;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.dashboard-card-header i[b-wfda02kuy4] {
    color: #27ae60;
    margin-right: 8px;
}

/* Fixed max-height + overflow-y:auto so a long activity history scrolls inside
   its own card instead of pushing the join request inbox further down the page. */
.dashboard-activity-scroll[b-wfda02kuy4] {
    max-height: 320px;
    overflow-y: auto;
}

.dashboard-activity-empty[b-wfda02kuy4] {
    color: #888;
    font-size: 0.88em;
    margin: 0;
    padding: 8px 0;
}

.dashboard-activity-row[b-wfda02kuy4] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.dashboard-activity-row:last-child[b-wfda02kuy4] {
    border-bottom: none;
}

.dashboard-activity-date[b-wfda02kuy4] {
    flex-shrink: 0;
    min-width: 100px;
    font-size: 0.82em;
    color: #888;
    white-space: nowrap;
}

.dashboard-activity-title[b-wfda02kuy4] {
    flex: 1;
    min-width: 0;
    font-weight: 500;
    font-size: 0.9em;
    color: #1a1a2e;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-activity-badge[b-wfda02kuy4] {
    flex-shrink: 0;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.dashboard-activity-badge-meeting[b-wfda02kuy4] {
    background: #dbeafe;
    color: #1e40af;
}

.dashboard-activity-badge-volunteer[b-wfda02kuy4] {
    background: #d1fae5;
    color: #166534;
}

.dashboard-activity-hours[b-wfda02kuy4] {
    flex-shrink: 0;
    min-width: 50px;
    font-size: 0.85em;
    font-weight: 700;
    color: #27ae60;
    text-align: right;
}

/* Amber banner shown when an officer sets the family's status to Pending.
   The left border makes it visually distinct from standard form-card blocks. */
.pending-status-banner[b-wfda02kuy4] {
    background: #fffbeb;
    border: 1px solid #f59e0b;
    border-left: 4px solid #d97706;
    border-radius: 6px;
    padding: 14px 16px;
    margin-bottom: 20px;
    color: #78350f;
}

.pending-status-banner strong[b-wfda02kuy4] {
    display: block;
    margin-bottom: 4px;
    font-size: 0.95em;
}

.pending-status-banner p[b-wfda02kuy4] {
    margin: 0;
    font-size: 0.9em;
    line-height: 1.5;
}

/* Join Request inbox sits between the welcome header and main content */
.join-request-inbox[b-wfda02kuy4] {
    margin-bottom: 20px;
}

/* Heading styled lighter than a page title but bolder than body text */
.inbox-heading[b-wfda02kuy4] {
    font-size: 1.1em;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 14px 0;
}

/* Confirmation message shown after approving or denying */
.inbox-confirmation[b-wfda02kuy4] {
    margin-bottom: 12px;
}

/* Each join request card: name/date column on the left, action buttons on the right */
.join-request-card[b-wfda02kuy4] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.join-request-meta[b-wfda02kuy4] {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.join-request-email[b-wfda02kuy4] {
    font-size: 0.85em;
    color: #666;
}

.join-request-date[b-wfda02kuy4] {
    font-size: 0.8em;
    color: #999;
}

/* Approve + Deny sit side by side and do not grow with the card */
.join-request-actions[b-wfda02kuy4] {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
/* /Components/Pages/Family/FamilyDocuments.razor.rz.scp.css */
/* ================================================================
   Family Document Library — scoped component styles
   All folder-row, doc-card, and breadcrumb styles live here,
   NOT in portal.css.
   ================================================================ */

/* ── Breadcrumb ── */

.doc-breadcrumb[b-ojkwie9u7q] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
    margin-bottom: 20px;
    font-size: 0.9em;
}

.doc-breadcrumb-link[b-ojkwie9u7q] {
    font-size: inherit !important;
}

/* Bold weight marks the current level without changing color */
.doc-breadcrumb-current[b-ojkwie9u7q] {
    font-weight: 700;
}

.doc-breadcrumb-sep[b-ojkwie9u7q] {
    margin: 0 4px;
    color: #aaa;
}

/* ── Folder Rows (read-only) ── */

.dl-folder-list[b-ojkwie9u7q] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
}

/* Button element styled as a full-width row card */
.dl-folder-row[b-ojkwie9u7q] {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 52px;
    width: 100%;
    background: #fff;
    border: 1px solid #e1e4e8;
    border-left: 3px solid transparent;
    border-radius: 8px;
    padding: 0 16px 0 12px;
    cursor: pointer;
    text-align: left;
    transition: background 0.12s ease, border-left-color 0.12s ease;
}

.dl-folder-row:hover[b-ojkwie9u7q] {
    background: #f8f9fa;
    border-left-color: #f0a500;
}

.dl-folder-icon[b-ojkwie9u7q] {
    font-size: 1.4rem;
    color: #f0a500;
    flex-shrink: 0;
    line-height: 1;
}

.dl-folder-info[b-ojkwie9u7q] {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}

.dl-folder-name[b-ojkwie9u7q] {
    font-weight: 600;
    font-size: 0.9em;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dl-folder-count[b-ojkwie9u7q] {
    font-size: 0.72em;
    color: #888;
}

/* ── Document Card Grid ── */

.dl-doc-grid[b-ojkwie9u7q] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

@media (max-width: 480px) {
    .dl-doc-grid[b-ojkwie9u7q] { grid-template-columns: repeat(2, 1fr); }
}

.dl-doc-card[b-ojkwie9u7q] {
    background: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.dl-doc-card:hover[b-ojkwie9u7q] {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);
    transform: translateY(-2px);
}

.dl-doc-card-featured[b-ojkwie9u7q] {
    border: 2px solid #f39c12;
}

.dl-doc-icon-area[b-ojkwie9u7q] {
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px 0 18px;
    position: relative;
    min-height: 90px;
}

.dl-doc-featured-badge[b-ojkwie9u7q] {
    position: absolute;
    bottom: 6px;
    left: 8px;
    background: #f39c12;
    color: #fff;
    font-size: 0.68em;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
}

.dl-doc-card-body[b-ojkwie9u7q] {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.dl-doc-card-title[b-ojkwie9u7q] {
    font-weight: 700;
    font-size: 0.875em;
    color: #1a1a2e;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dl-doc-card-meta[b-ojkwie9u7q] {
    font-size: 0.72em;
    color: #888;
    margin-top: auto;
    padding-top: 4px;
}

/* Download button must escape the invisible overlay link above it */
.dl-doc-download[b-ojkwie9u7q] {
    position: relative;
    z-index: 2;
    margin-top: 6px;
}
/* /Components/Pages/Family/FamilyEvents.razor.rz.scp.css */
/* Volunteer event card */
.vol-card[b-nr0gps1la1] {
    background: white;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    border-left: 5px solid #27ae60;
    padding: 18px 20px;
    margin-bottom: 14px;
    transition: box-shadow 0.2s ease;
}

.vol-card:hover[b-nr0gps1la1] {
    box-shadow: 0 6px 22px rgba(0,0,0,0.15);
}

.vol-card.urgency-red[b-nr0gps1la1]    { border-left-color: #e74c3c; }
.vol-card.urgency-yellow[b-nr0gps1la1] { border-left-color: #f39c12; }
.vol-card.urgency-green[b-nr0gps1la1]  { border-left-color: #27ae60; }

.vol-card-title[b-nr0gps1la1] {
    font-size: 1.05em;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.vol-card-meta[b-nr0gps1la1] {
    font-size: 0.88em;
    color: #555;
    line-height: 1.8;
    margin-bottom: 12px;
}

.vol-urgency-badge[b-nr0gps1la1] {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.78em;
    font-weight: 600;
}

.vol-urgency-badge.urgency-red[b-nr0gps1la1]    { background: #fde8e8; color: #c0392b; }
.vol-urgency-badge.urgency-yellow[b-nr0gps1la1] { background: #fef3cd; color: #856404; }
.vol-urgency-badge.urgency-green[b-nr0gps1la1]  { background: #d4edda; color: #155724; }

/* Capacity bar */
.vol-capacity-block[b-nr0gps1la1] {
    background: #f4f6f8;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 14px;
}

.vol-capacity-text[b-nr0gps1la1] {
    font-size: 0.83em;
    color: #555;
    margin-bottom: 6px;
}

.vol-progress-track[b-nr0gps1la1] {
    height: 8px;
    background: #e1e4e8;
    border-radius: 4px;
    overflow: hidden;
}

.vol-progress-fill[b-nr0gps1la1] {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.vol-progress-fill.urgency-red[b-nr0gps1la1]    { background: #e74c3c; }
.vol-progress-fill.urgency-yellow[b-nr0gps1la1] { background: #f39c12; }
.vol-progress-fill.urgency-green[b-nr0gps1la1]  { background: #27ae60; }

/* Signup modal */
.vol-modal-overlay[b-nr0gps1la1] {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.vol-modal[b-nr0gps1la1] {
    background: white;
    border-radius: 14px;
    max-width: 560px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    padding: 26px 28px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.20);
}

.vol-modal-header[b-nr0gps1la1] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e1e4e8;
}

.vol-modal-header h3[b-nr0gps1la1] {
    margin: 0;
    font-size: 1.1em;
    color: #1a1a2e;
}

/* Guardian selection rows */
.vol-guardian-item[b-nr0gps1la1] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
    user-select: none;
}

.vol-guardian-item:hover[b-nr0gps1la1] {
    border-color: #adb5bd;
}

.vol-guardian-item.selected[b-nr0gps1la1] {
    border-color: #27ae60;
    background: #f0faf3;
}

.vol-guardian-name[b-nr0gps1la1] {
    font-weight: 600;
    color: #1a1a2e;
    font-size: 0.95em;
}

.vol-guardian-email[b-nr0gps1la1] {
    font-size: 0.83em;
    color: #666;
    margin-top: 2px;
}
/* /Components/Pages/Family/MyFamily.razor.rz.scp.css */
/* ===== MY FAMILY — section card styling uplift (Phase 7.2) =====
   The global .form-card class is intentionally minimal (flat, low-shadow, tight
   corners) so it stays neutral across every portal that reuses it — uplifting it
   directly would change PLO Admin/GW Admin/Sponsor cards too. This page gets its
   own wrapper class instead: deeper shadow, bigger radius, more breathing room,
   and a left-border accent that gives the three sections (Guardians, Emergency
   Contacts, Students) distinct visual identity instead of looking identical.
   Scoped to this page only — MyFamily.razor.css is a CSS-isolated file, so these
   rules cannot leak onto any other page even if the class names were reused. */
.family-section-card[b-imys6zkc1l] {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.10);
    padding: 24px;
    margin-bottom: 20px;
    border-left: 5px solid transparent;
}

.family-section-card-blue[b-imys6zkc1l] {
    border-left-color: #3498db;
}

.family-section-card-orange[b-imys6zkc1l] {
    border-left-color: #e67e22;
}

.family-section-card-green[b-imys6zkc1l] {
    border-left-color: #27ae60;
}

/* Member cards nested inside a section card get a subtle warm background and a
   touch more padding than the global .member-card default — scoped to descendants
   of .family-section-card specifically, so portal.css's own .member-card rule
   (used elsewhere, e.g. PLO Admin's Our Families) is completely untouched. */
.family-section-card .member-card[b-imys6zkc1l] {
    background: #f9f9fb;
    padding: 12px 16px;
}

/* Section titles — larger and bolder than the global .form-section-title, colored
   to match their parent card's accent so the heading and the left border read as
   one deliberate color-coded section rather than two unrelated style choices. */
.family-section-title-blue[b-imys6zkc1l],
.family-section-title-orange[b-imys6zkc1l],
.family-section-title-green[b-imys6zkc1l] {
    font-size: 1.25em;
    font-weight: 700;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.family-section-title-blue[b-imys6zkc1l] {
    color: #3498db;
}

.family-section-title-orange[b-imys6zkc1l] {
    color: #e67e22;
}

.family-section-title-green[b-imys6zkc1l] {
    color: #27ae60;
}
/* /Components/Pages/PLOAdmin/Documents.razor.rz.scp.css */
/* ================================================================
   PLO Admin Document Library — scoped component styles
   All folder and doc-tile styles live here, NOT in portal.css.
   ================================================================ */

/* ── Folder Rows ── */

.dl-folder-list[b-c1otrra22j] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
}

.dl-folder-row[b-c1otrra22j] {
    display: flex;
    align-items: center;
    height: 52px;
    background: #fff;
    border: 1px solid #e1e4e8;
    border-left: 3px solid transparent;
    border-radius: 8px;
    position: relative;
    transition: background 0.12s ease, border-left-color 0.12s ease;
}

.dl-folder-row:hover[b-c1otrra22j] {
    background: #f8f9fa;
    border-left-color: #f0a500;
}

/* Raised when ⋮ menu is open or rename is active — keeps dropdown above sibling rows */
.dl-folder-row.dl-folder-row-active[b-c1otrra22j] {
    background: #f8f9fa;
    border-left-color: #f0a500;
    z-index: 50;
}

/* Navigate button — covers left portion of the row */
.dl-folder-row-click[b-c1otrra22j] {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    padding: 0 0 0 12px;
    height: 100%;
    cursor: pointer;
    background: none;
    border: none;
    text-align: left;
}

.dl-folder-icon[b-c1otrra22j] {
    font-size: 1.4rem;
    color: #f0a500;
    flex-shrink: 0;
    line-height: 1;
}

.dl-folder-info[b-c1otrra22j] {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}

.dl-folder-name[b-c1otrra22j] {
    font-weight: 600;
    font-size: 0.9em;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dl-folder-count[b-c1otrra22j] {
    font-size: 0.72em;
    color: #888;
}

/* Rename inline edit — replaces the click area when renaming */
.dl-folder-rename-area[b-c1otrra22j] {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    padding: 0 8px 0 12px;
    height: 100%;
}

.dl-folder-rename-area input[b-c1otrra22j] {
    flex: 1;
    min-width: 0;
    height: 30px;
    padding: 0 6px;
    font-size: 0.875em;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.dl-folder-rename-area input:focus[b-c1otrra22j] {
    outline: none;
    border-color: #86b7fe;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

.dl-folder-rename-error[b-c1otrra22j] {
    font-size: 0.72em;
    color: #dc3545;
    white-space: nowrap;
}

/* ── ⋮ button and dropdown (shared by folder rows and doc cards) ── */

.dl-menu-wrap[b-c1otrra22j] {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 0 8px 0 4px;
    height: 100%;
    z-index: 10;
}

.dl-menu-btn[b-c1otrra22j] {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: #777;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    flex-shrink: 0;
    transition: background 0.1s ease, color 0.1s ease;
}

.dl-menu-btn:hover[b-c1otrra22j] {
    background: #e9ecef;
    color: #333;
}

.dl-menu-dropdown[b-c1otrra22j] {
    position: absolute;
    top: calc(100% + 2px);
    right: 0;
    z-index: 300;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.13);
    min-width: 130px;
    padding: 4px 0;
}

.dl-menu-item[b-c1otrra22j] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    font-size: 0.875em;
    color: #333;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.1s ease;
}

.dl-menu-item:hover[b-c1otrra22j] {
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
}

.dl-menu-item-danger[b-c1otrra22j] {
    color: #dc3545;
}

.dl-menu-item-danger:hover[b-c1otrra22j] {
    background: #fff5f5;
    color: #dc3545;
}

/* ── Document Card Grid ── */

.dl-doc-grid[b-c1otrra22j] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

@media (max-width: 1100px) {
    .dl-doc-grid[b-c1otrra22j] { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .dl-doc-grid[b-c1otrra22j] { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .dl-doc-grid[b-c1otrra22j] { grid-template-columns: 1fr; }
}

.dl-doc-card[b-c1otrra22j] {
    background: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 12px;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.dl-doc-card:hover[b-c1otrra22j] {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);
    transform: translateY(-2px);
}

.dl-doc-card-featured[b-c1otrra22j] {
    border: 2px solid #f39c12;
}

/* Raised when its ⋮ menu is open so the dropdown clears sibling cards */
.dl-doc-card.dl-card-menu-open[b-c1otrra22j] {
    z-index: 100;
}

.dl-doc-icon-area[b-c1otrra22j] {
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px 0 18px;
    position: relative;
    min-height: 90px;
    border-radius: 10px 10px 0 0;
}

.dl-doc-card-select[b-c1otrra22j] {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 15px;
    height: 15px;
    cursor: pointer;
    z-index: 2;
    accent-color: #0d6efd;
}

.dl-doc-menu-wrap[b-c1otrra22j] {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
}

.dl-doc-featured-badge[b-c1otrra22j] {
    position: absolute;
    bottom: 6px;
    left: 8px;
    background: #f39c12;
    color: #fff;
    font-size: 0.68em;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    white-space: nowrap;
}

.dl-doc-card-body[b-c1otrra22j] {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.dl-doc-card-title[b-c1otrra22j] {
    font-weight: 700;
    font-size: 0.875em;
    color: #1a1a2e;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dl-doc-card-meta[b-c1otrra22j] {
    font-size: 0.72em;
    color: #888;
    margin-top: auto;
    padding-top: 2px;
}

/* Move select replaces body content when _movingDocId == this card */
.dl-doc-card-move[b-c1otrra22j] {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.dl-doc-card-move-label[b-c1otrra22j] {
    font-size: 0.8em;
    font-weight: 600;
    color: #555;
}
/* /Components/Pages/PLOAdmin/OurFamilies.razor.rz.scp.css */
/* Scoped styles for OurFamilies.razor (Phase 2C).
   Global classes (data-table, status-badge, btn-*, form-control, toast-message, etc.)
   live in portal.css — only page-specific overrides and new components belong here. */

/* ── Stats Grid ── */
.stats-grid[b-ivfk2ld29k] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card[b-ivfk2ld29k] {
    background: #fff;
    border: 1px solid #e1e4e8;
    border-left: 4px solid #1a6fa8;
    border-radius: 8px;
    padding: 20px 24px;
}

/* Amber accent when the count is non-zero and needs attention */
.stat-card-warn[b-ivfk2ld29k] {
    border-left-color: #d97706;
}

/* ── Skeleton Loader ── */
@keyframes skeleton-pulse-b-ivfk2ld29k {
    0%   { background-color: #e8e8e8; }
    50%  { background-color: #d0d0d0; }
    100% { background-color: #e8e8e8; }
}

.skeleton-card[b-ivfk2ld29k] {
    height: 80px;
    border-radius: 8px;
    animation: skeleton-pulse-b-ivfk2ld29k 1.4s ease-in-out infinite;
    border: none;
    border-left: none;
}

/* ── Filter Bar ── */
.filter-bar[b-ivfk2ld29k] {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.filter-search[b-ivfk2ld29k] {
    max-width: 300px;
}

.status-filter-group[b-ivfk2ld29k] {
    display: flex;
    gap: 6px;
}

.status-filter-btn[b-ivfk2ld29k] {
    padding: 6px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 20px;
    background: #fff;
    color: #555;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.status-filter-btn:hover[b-ivfk2ld29k] {
    background: #f0f0f0;
}

.status-filter-btn.sfb-active[b-ivfk2ld29k] {
    background: #1a6fa8;
    color: #fff;
    border-color: #1a6fa8;
}

/* ── Family Card Grid ── */
.family-grid[b-ivfk2ld29k] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.family-card[b-ivfk2ld29k] {
    background: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 10px;
    padding: 18px 20px;
    cursor: pointer;
    transition: box-shadow 0.15s, border-color 0.15s;
}

.family-card:hover[b-ivfk2ld29k] {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: #c0c4ce;
}

.card-inactive[b-ivfk2ld29k] {
    opacity: 0.6;
    background: #f9f9f9;
}

.card-top-row[b-ivfk2ld29k] {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.family-name[b-ivfk2ld29k] {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
}

.card-guardian[b-ivfk2ld29k] {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 2px;
}

.card-email[b-ivfk2ld29k] {
    font-size: 0.82rem;
    color: #777;
    margin-bottom: 8px;
}

.card-students[b-ivfk2ld29k] {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 6px;
}

.card-tag[b-ivfk2ld29k] {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 4px;
}

.tag-warning[b-ivfk2ld29k] {
    background: #fff3cd;
    color: #856404;
}

/* ── Empty State ── */
.fam-empty-state[b-ivfk2ld29k] {
    background: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 10px;
    padding: 50px 30px;
    text-align: center;
    color: #777;
    margin-bottom: 24px;
}

.fam-empty-icon[b-ivfk2ld29k] {
    font-size: 3em;
    margin-bottom: 15px;
}

.fam-empty-state h3[b-ivfk2ld29k] {
    color: #1a1a2e;
    margin-bottom: 8px;
    font-size: 1.2em;
}

.fam-empty-state a[b-ivfk2ld29k] {
    color: #3498db;
    font-weight: 500;
}

/* ── Join Requests Section ── */
.join-requests-section[b-ivfk2ld29k] {
    margin-top: 32px;
}

.join-requests-section h2[b-ivfk2ld29k] {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-count[b-ivfk2ld29k] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: #d97706;
    color: #fff;
    border-radius: 11px;
    font-size: 0.78rem;
    font-weight: 700;
}

/* ── Panel Backdrop ── */
.panel-backdrop[b-ivfk2ld29k] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 200;
}

/* ── Slide-out Detail Panel ── */
.family-detail-panel[b-ivfk2ld29k] {
    position: fixed;
    top: 0;
    right: 0;
    width: 480px;
    max-width: 100vw;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    z-index: 201;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.panel-header[b-ivfk2ld29k] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e1e4e8;
    background: #fff;
    flex-shrink: 0;
}

.panel-title[b-ivfk2ld29k] {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a2e;
}

.panel-close[b-ivfk2ld29k] {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #777;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    line-height: 1;
}

.panel-close:hover[b-ivfk2ld29k] {
    background: #f0f0f0;
    color: #333;
}

.panel-body[b-ivfk2ld29k] {
    flex: 1;
    overflow-y: auto;
    padding: 0 0 40px 0;
}

/* ── Panel Sections ── */
.panel-section[b-ivfk2ld29k] {
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.panel-section:last-child[b-ivfk2ld29k] {
    border-bottom: none;
}

.panel-section-title[b-ivfk2ld29k] {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888;
    margin-bottom: 14px;
}

/* Wraps the Audit Log title + Export PDF button so they sit on the same row */
.audit-log-header[b-ivfk2ld29k] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* Title inside the header row — remove bottom margin so the button aligns cleanly */
.audit-log-header .panel-section-title[b-ivfk2ld29k] {
    margin-bottom: 0;
}

/* ── Status Toggle Buttons ── */
.status-toggle-row[b-ivfk2ld29k] {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
}

.status-btn[b-ivfk2ld29k] {
    flex: 1;
    padding: 8px 0;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    background: #fff;
    color: #555;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.15s;
}

.stb-active[b-ivfk2ld29k]  { background: #d4edda; border-color: #28a745; color: #155724; font-weight: 600; }
.stb-pending[b-ivfk2ld29k] { background: #fff3cd; border-color: #d97706; color: #856404; font-weight: 600; }
.stb-inactive[b-ivfk2ld29k]{ background: #e2e3e5; border-color: #6c757d; color: #495057; font-weight: 600; }

/* ── Status Note Read View ── */
/* Off-white inset block that shows the saved Pending note.
   Replaces the textarea after saving so the officer gets a clear "done" state. */
.status-note-view[b-ivfk2ld29k] {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #f8f9fa;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    padding: 10px 12px;
}

.status-note-text[b-ivfk2ld29k] {
    flex: 1;
    font-size: 0.875rem;
    color: #333;
    line-height: 1.5;
    white-space: pre-wrap;
}

/* ── Member Rows ── */
.member-row[b-ivfk2ld29k] {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

.member-row:last-of-type[b-ivfk2ld29k] {
    border-bottom: none;
}

.member-info[b-ivfk2ld29k] {
    flex: 1;
    min-width: 0;
}

.member-name[b-ivfk2ld29k] {
    font-size: 0.95rem;
    font-weight: 500;
    color: #222;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 2px;
}

.member-email[b-ivfk2ld29k] {
    font-size: 0.82rem;
}

/* ── Family Fee (on Account Holders → Primary row) ── */
.fee-paid-badge[b-ivfk2ld29k] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: #d4edda;
    color: #155724;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
}

/* Plain text button so it doesn't look like an action — just an escape hatch */
.fee-undo-link[b-ivfk2ld29k] {
    background: none;
    border: none;
    color: #888;
    font-size: 0.78rem;
    text-decoration: underline;
    cursor: pointer;
    padding: 0 4px;
}

.fee-undo-link:hover[b-ivfk2ld29k] {
    color: #333;
}

/* ── Role Chips ── */
.role-chip[b-ivfk2ld29k] {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.role-primary[b-ivfk2ld29k]  { background: #cfe2ff; color: #084298; }
.role-member[b-ivfk2ld29k]   { background: #e8e8e8; color: #555; }
.role-ploadmin[b-ivfk2ld29k] { background: #d1f0e0; color: #0a6640; }
.role-sponsor[b-ivfk2ld29k]  { background: #ede0ff; color: #5b21b6; }
/* Blue chip shown when a household adult also holds an officer role in this org */
.role-officer[b-ivfk2ld29k]  { background: #1a6fa8; color: #fff; }

/* ── Promote Form ── */
.promote-form[b-ivfk2ld29k] {
    background: #f8f9fa;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    padding: 14px 16px;
    margin-top: 12px;
}

/* ── Background Check ── */
.bg-check-row[b-ivfk2ld29k] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.bg-check-label[b-ivfk2ld29k] {
    font-size: 0.8rem;
    color: #888;
    flex-shrink: 0;
}

.bg-check-btn[b-ivfk2ld29k] {
    padding: 3px 12px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
}

.bg-check-btn:hover[b-ivfk2ld29k] { opacity: 0.8; }

.bgc-none[b-ivfk2ld29k]    { background: #f0f0f0; color: #888; border-color: #d0d0d0; }
.bgc-pending[b-ivfk2ld29k] { background: #fff3cd; color: #856404; border-color: #f0c040; }
.bgc-cleared[b-ivfk2ld29k] { background: #d4edda; color: #155724; border-color: #a3d9a8; }
.bgc-expired[b-ivfk2ld29k] { background: #f8d7da; color: #721c24; border-color: #f0a8ae; }

/* ── Students ── */
.student-row[b-ivfk2ld29k] {
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

.student-row:last-child[b-ivfk2ld29k] {
    border-bottom: none;
}

.student-name[b-ivfk2ld29k] {
    font-size: 0.95rem;
    font-weight: 500;
    color: #222;
    margin-bottom: 4px;
}

.fee-row[b-ivfk2ld29k] {
    margin-top: 6px;
}

.fee-label[b-ivfk2ld29k] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #444;
    cursor: pointer;
}

.fee-label input[type="checkbox"][b-ivfk2ld29k] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* ── Audit Log ── */
.audit-log-toggle[b-ivfk2ld29k] {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.audit-log-toggle:hover[b-ivfk2ld29k] {
    color: #1a1a2e;
}

.audit-caret[b-ivfk2ld29k] {
    font-size: 0.75em;
}

.audit-row[b-ivfk2ld29k] {
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

.audit-row:last-child[b-ivfk2ld29k] {
    border-bottom: none;
}

.audit-action[b-ivfk2ld29k] {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}

.audit-meta[b-ivfk2ld29k] {
    font-size: 0.78rem;
    margin-bottom: 2px;
}

.audit-details[b-ivfk2ld29k] {
    font-size: 0.82rem;
    font-style: italic;
}

/* ── Shared text util ── */
.muted-text[b-ivfk2ld29k] {
    color: #888;
}
