/* Teacher + parent portal: app shell + top navigation (v2) */

:root {
    --rs-blue: #004bc5;
    --rs-blue-dark: #003087;
    --rs-blue-light: #e6eef9;
    --bs-primary: var(--rs-blue);
    --bs-primary-rgb: 0, 75, 197;
    --bs-link-color: var(--rs-blue);
    --bs-link-hover-color: var(--rs-blue-dark);
}

a {
    color: var(--rs-blue);
}

a:hover {
    color: var(--rs-blue-dark);
}

.btn-primary {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: var(--rs-blue);
    --bs-btn-border-color: var(--rs-blue);
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: var(--rs-blue-dark);
    --bs-btn-hover-border-color: var(--rs-blue-dark);
    --bs-btn-focus-shadow-rgb: 0, 75, 197;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: var(--rs-blue-dark);
    --bs-btn-active-border-color: var(--rs-blue-dark);
    --bs-btn-disabled-color: #ffffff;
    --bs-btn-disabled-bg: var(--rs-blue);
    --bs-btn-disabled-border-color: var(--rs-blue);
}

.btn-outline-primary {
    --bs-btn-color: var(--rs-blue);
    --bs-btn-border-color: var(--rs-blue);
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: var(--rs-blue);
    --bs-btn-hover-border-color: var(--rs-blue);
    --bs-btn-focus-shadow-rgb: 0, 75, 197;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: var(--rs-blue);
    --bs-btn-active-border-color: var(--rs-blue);
    --bs-btn-disabled-color: var(--rs-blue);
    --bs-btn-disabled-border-color: var(--rs-blue);
}

.text-primary {
    color: var(--rs-blue) !important;
}

.teacher-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(180deg, #f1f5f9 0%, var(--rs-gray) 12rem);
}

.teacher-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.04);
    backdrop-filter: blur(12px);
}

.teacher-topbar-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.teacher-topbar-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-height: 4rem;
    gap: 0.5rem 0.75rem;
}

.teacher-topbar-logo.rs-logo {
    font-size: 1.35rem;
    letter-spacing: 0.08em;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    margin-right: auto;
}

.teacher-user-menu {
    flex-shrink: 0;
}

.teacher-user-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    max-width: min(100%, 16rem);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    color: #0f172a;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.35rem 0.55rem 0.35rem 0.35rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.teacher-user-menu-toggle:hover,
.teacher-user-menu-toggle:focus,
.teacher-user-menu-toggle.show {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
}

.teacher-user-menu-toggle::after {
    margin-left: 0.15rem;
}

.teacher-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    background: var(--rs-blue-light);
    color: var(--rs-blue);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.teacher-user-summary {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    line-height: 1.2;
    text-align: left;
}

.teacher-user-name {
    max-width: 11rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
}

.teacher-user-org {
    max-width: 11rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
}

.teacher-user-menu-panel {
    min-width: 15rem;
    padding: 0.35rem;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.teacher-user-menu-header {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.55rem 0.75rem 0.45rem;
    pointer-events: none;
}

.teacher-user-menu-header-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
}

.teacher-user-menu-header-org {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
}

.teacher-user-menu-header-email {
    font-size: 0.75rem;
    color: #64748b;
    word-break: break-word;
}

.teacher-user-menu-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    color: #0f172a;
}

.teacher-user-menu-item:hover,
.teacher-user-menu-item:focus,
.teacher-user-menu-item:active,
.teacher-user-menu-item.active,
.teacher-user-menu-panel .dropdown-item:active,
.teacher-user-menu-panel .dropdown-item.active {
    background: #eef4ff;
    color: var(--rs-blue);
}

.teacher-user-menu-item-danger {
    color: #b91c1c;
}

.teacher-user-menu-item-danger:hover,
.teacher-user-menu-item-danger:focus,
.teacher-user-menu-item-danger:active,
.teacher-user-menu-item-danger.active {
    background: #fef2f2;
    color: #991b1b;
}

.teacher-topbar-toggler {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.4rem 0.55rem;
    color: #334155;
    box-shadow: none;
}

.teacher-topbar-toggler:focus {
    box-shadow: 0 0 0 3px var(--rs-blue-light);
}

.teacher-topbar-collapse {
    align-items: center;
    gap: 0.75rem;
}

.teacher-topbar-menu {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
}

.teacher-topbar-menu .nav-item {
    display: flex;
}

.teacher-topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    position: relative;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.85rem 0.65rem;
    margin: 0;
    transition: color 0.15s ease;
}

.teacher-topbar-link::after {
    content: "";
    position: absolute;
    left: 0.65rem;
    right: 0.65rem;
    bottom: 0.45rem;
    height: 2px;
    border-radius: 2px;
    background: transparent;
    transition: background-color 0.15s ease, transform 0.15s ease;
    transform: scaleX(0.35);
    transform-origin: center;
}

.teacher-topbar-link i {
    opacity: 0.8;
}

.teacher-topbar-link:hover,
.teacher-topbar-link:focus {
    color: var(--rs-blue);
    background: transparent;
}

.teacher-topbar-link:hover::after,
.teacher-topbar-link:focus::after {
    background: rgba(0, 75, 197, 0.35);
    transform: scaleX(1);
}

.teacher-topbar-link.active {
    color: var(--rs-blue);
    background: transparent;
    font-weight: 700;
    box-shadow: none;
}

.teacher-topbar-link.active::after {
    background: var(--rs-blue);
    transform: scaleX(1);
}

.teacher-main {
    flex: 1;
    min-width: 0;
    padding: 1.75rem 1.25rem 2.5rem;
}

.teacher-main-content {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

@media (min-width: 576px) {
    .teacher-user-summary {
        display: flex;
    }
}

@media (min-width: 992px) {
    .teacher-topbar-container {
        padding: 0 1.75rem;
    }

    .teacher-topbar-nav {
        flex-wrap: nowrap;
    }

    .teacher-topbar-logo {
        margin-right: 1rem;
    }

    .teacher-topbar-collapse {
        display: flex !important;
        flex: 1 1 auto;
        order: 2;
    }

    .teacher-user-menu {
        order: 3;
        margin-left: 0.75rem;
    }

    .teacher-topbar-toggler {
        display: none;
    }

    .teacher-topbar-menu {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: stretch;
        gap: 0;
        padding: 0;
        margin: 0 auto;
    }

    .teacher-topbar-link {
        padding: 1rem 0.75rem 0.85rem;
    }

    .teacher-topbar-link::after {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0;
    }
}

@media (max-width: 991.98px) {
    .teacher-topbar-collapse {
        flex: 1 0 100%;
        order: 4;
        margin-top: 0.15rem;
        padding: 0.35rem 0.5rem 0.5rem;
        border-radius: 14px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
    }

    .teacher-topbar-link {
        width: 100%;
        padding: 0.65rem 0.75rem;
    }

    .teacher-topbar-link::after {
        left: 0.75rem;
        right: auto;
        width: 2rem;
        bottom: 0.35rem;
    }

    .teacher-topbar-link:hover::after,
    .teacher-topbar-link:focus::after,
    .teacher-topbar-link.active::after {
        transform: scaleX(1);
    }

    .teacher-topbar-toggler {
        order: 3;
        margin-left: 0.25rem;
    }

    .teacher-user-menu {
        order: 2;
    }

    .teacher-main {
        padding: 1rem 1rem 2rem;
    }
}

.rs-collection-participants-note {
    border-color: #e8eef5 !important;
}

.rs-children-select {
    max-height: 22rem;
    overflow-y: auto;
    border: 1px solid #e8eef5;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    background: #fbfcfe;
}

.rs-children-select .form-check {
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
}

/* SaaS-style fundraising form */
.rs-form-section-head {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.rs-form-step {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: #eff6ff;
    color: var(--rs-blue);
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
}

.rs-option-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

@media (min-width: 576px) {
    .rs-option-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.rs-option-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border: 1.5px solid #e8eef5;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.rs-option-card:hover {
    border-color: #c7d7fe;
}

.rs-option-card-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rs-option-card:has(.rs-option-card-input:checked) {
    border-color: var(--rs-blue);
    background: #f8faff;
    box-shadow: 0 1px 3px rgba(0, 75, 197, 0.12);
}

.rs-option-card:has(.rs-option-card-input:focus-visible) {
    outline: 2px solid var(--rs-blue);
    outline-offset: 2px;
}

.rs-option-card-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 11px;
    background: #ecfdf5;
    color: #059669;
    font-size: 1.05rem;
}

.rs-option-card-icon--registry {
    background: #eef4ff;
    color: var(--rs-blue);
}

.rs-option-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.rs-option-card-title {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.95rem;
}

.rs-option-card-desc {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.4;
}

.rs-option-card-meta {
    font-size: 0.8rem;
    color: #475569;
    margin-top: 0.25rem;
}

.rs-option-card-check {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    color: var(--rs-blue);
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.rs-option-card:has(.rs-option-card-input:checked) .rs-option-card-check {
    opacity: 1;
}

.rs-chip-check {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.9rem;
    border: 1.5px solid #e8eef5;
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.rs-chip-check .form-check-input {
    margin: 0;
}

.rs-chip-check:has(.form-check-input:checked) {
    border-color: var(--rs-blue);
    background: #f8faff;
    color: var(--rs-blue);
}

.rs-chip-check--disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.rs-participants-card {
    position: sticky;
    top: 1.5rem;
}

.rs-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eef2f7;
}

@media print {
    .teacher-topbar {
        display: none !important;
    }

    .teacher-shell {
        min-height: 0;
        background: #ffffff;
    }

    .teacher-main {
        padding: 1rem !important;
    }
}

/* Parent top bar: logo + account menu only */
.parent-topbar-nav {
    justify-content: space-between;
    width: 100%;
}

.parent-topbar .teacher-user-menu {
    margin-left: auto;
}

/* Parent dashboard (SaaS-style home) */
.parent-dashboard {
    max-width: 1200px;
    margin: 0 auto;
}

.parent-dashboard-child-bar .rs-segmented {
    width: 100%;
}

.parent-dashboard-filter {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.parent-dashboard-filter-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

.rs-segmented {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2rem;
    padding: 0.28rem;
    background: #f1f5f9;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    max-width: 100%;
}

.rs-segmented-item {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    border-radius: 9px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.rs-segmented-item:hover {
    color: #334155;
    background: rgba(255, 255, 255, 0.6);
}

.rs-segmented-item.active {
    background: #ffffff;
    color: var(--rs-blue);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.rs-segmented--compact {
    padding: 0.2rem;
}

.rs-segmented--compact .rs-segmented-item {
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
}

.parent-dashboard-alert {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    border: 1px solid #fed7aa;
    background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 100%);
}

.parent-dashboard-alert-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    background: #ffedd5;
    color: #ea580c;
}

.parent-dashboard-alert-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #9a3412;
    margin-bottom: 0.2rem;
}

.parent-dashboard-alert-text {
    font-size: 0.875rem;
    color: #7c2d12;
}

.parent-dashboard-alert-meta {
    display: inline-block;
    margin-left: 0.35rem;
    font-weight: 600;
    color: #c2410c;
}

.parent-metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

@media (min-width: 992px) {
    .parent-metric-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.parent-metric {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1rem;
    row-gap: 0.2rem;
    align-items: center;
    padding: 1.15rem 1.25rem;
    border-radius: 16px;
    border: 1px solid #e8eef5;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    min-height: 5.5rem;
}

.parent-metric-icon {
    grid-row: 1 / span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 11px;
    flex-shrink: 0;
}

.parent-metric-icon .fa-solid {
    font-size: 1.05rem;
    line-height: 1;
}

.parent-dashboard-alert-icon .fa-solid {
    font-size: 1.2rem;
    line-height: 1;
}

.parent-activity-icon .fa-solid {
    font-size: 0.875rem;
    line-height: 1;
}

.rs-empty-state-icon .fa-solid {
    font-size: 1rem;
    line-height: 1;
}

.parent-metric--credit .parent-metric-icon {
    background: #ecfdf5;
    color: #059669;
}

.parent-metric--due .parent-metric-icon {
    background: #eff6ff;
    color: var(--rs-blue);
}

.parent-metric--collections .parent-metric-icon {
    background: #f5f3ff;
    color: #7c3aed;
}

.parent-metric--unpaid .parent-metric-icon {
    background: #fff7ed;
    color: #ea580c;
}

.parent-metric-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.2rem;
}

.parent-metric-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.parent-dashboard-panel .card-body {
    padding: 1.35rem 1.5rem;
}

.parent-dashboard-panel-desc {
    font-size: 0.8125rem;
    color: #64748b;
    margin-top: 0.15rem;
}

.parent-collections-head {
    align-items: flex-start;
}

.parent-collections-scope {
    flex-shrink: 0;
    max-width: 100%;
}

.parent-collection-list {
    border-top: 1px solid #f1f5f9;
}

.parent-collection-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.parent-collection-item--interactive {
    margin: 0 -0.75rem;
    padding: 1rem 0.75rem;
    border-bottom: 0;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.parent-collection-item--interactive + .parent-collection-item--interactive {
    margin-top: 0;
}

.parent-collection-item--interactive:hover {
    background-color: #f8fafc;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.parent-collection-item--interactive:active {
    background-color: #f1f5f9;
}

.parent-collection-item--interactive:focus-visible {
    outline: 2px solid rgba(0, 75, 197, 0.35);
    outline-offset: 2px;
}

.parent-collection-chevron {
    color: #cbd5e1;
    font-size: 0.75rem;
    flex-shrink: 0;
    align-self: center;
}

.parent-collection-detail-amount {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
}

.parent-collection-detail-amount.text-success {
    color: #059669;
}

.parent-collection-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.parent-collection-item:first-child {
    padding-top: 0.75rem;
}

.parent-cashier-collection-row {
    cursor: pointer;
}

.parent-cashier-collection-row:hover {
    background-color: #f8fafc;
}

.parent-cashier-collection-row:focus-visible {
    outline: 2px solid rgba(0, 75, 197, 0.35);
    outline-offset: -2px;
}

.parent-collection-main {
    flex: 1;
    min-width: 0;
}

.parent-collection-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
}

.parent-collection-meta {
    font-size: 0.8125rem;
    color: #94a3b8;
    margin-top: 0.2rem;
}

a.parent-collection-item {
    color: inherit;
}

a.parent-collection-item:hover .parent-collection-title {
    color: var(--rs-blue);
}

#parent-polls .parent-collection-list > li + li {
    border-top: 1px solid #f1f5f9;
}

.parent-poll-row-cta {
    pointer-events: none;
}

.parent-poll-row-action {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}

.parent-dashboard-panel--compact .card-body {
    padding: 1rem 1.25rem;
}

.parent-dashboard-panel--compact .rs-section-card-head {
    margin-bottom: 0.25rem;
}

.rs-section-card-title--sm {
    font-size: 0.9rem;
}

.parent-collection-item--compact {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
}

.parent-poll {
    max-width: 36rem;
}

.parent-poll-header {
    margin-bottom: 1.5rem;
}

.parent-poll-question {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    margin: 0.15rem 0 0.75rem;
}

.parent-poll-lead {
    font-size: 1rem;
    color: #475569;
    line-height: 1.55;
    margin: 0 0 0.9rem;
}

.parent-poll-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.75rem;
}

.parent-poll-meta-text {
    font-size: 0.8125rem;
    color: #64748b;
}

.parent-poll-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.parent-poll-child {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.parent-poll-options {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.15rem;
}

.parent-poll-options .rs-option-card {
    align-items: center;
    margin: 0;
}

.parent-poll-options .rs-option-card-body {
    padding-right: 1.6rem;
}

.parent-poll-options .rs-option-card-check {
    top: 50%;
    transform: translateY(-50%);
}

.parent-poll-option-static {
    cursor: default;
}

.parent-poll-option-static.is-selected {
    border-color: var(--rs-blue);
    background: #f8faff;
    box-shadow: 0 1px 3px rgba(0, 75, 197, 0.12);
}

.parent-poll-option-static.is-selected .rs-option-card-check {
    opacity: 1;
}

.parent-poll-option-static.is-muted {
    opacity: 0.55;
}

.parent-poll-empty {
    font-size: 0.875rem;
    color: #64748b;
}

.parent-poll-results-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.2rem;
}

.parent-poll-result {
    margin-top: 0.9rem;
}

.parent-poll-result-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
}

.parent-poll-result-track {
    height: 0.5rem;
    background: #eef2f7;
    border-radius: 999px;
    overflow: hidden;
}

.parent-poll-result-fill {
    height: 100%;
    background: var(--rs-blue);
    border-radius: 999px;
}

@media (max-width: 575.98px) {
    .parent-poll-question {
        font-size: 1.4rem;
    }
}

.parent-collection-aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    flex-shrink: 0;
    text-align: right;
}

.parent-collection-amount {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.parent-collection-amount--paid {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #059669;
}

.parent-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.3;
    background: #f1f5f9;
    color: #475569;
}

.parent-status-pill--active {
    background: #ecfdf5;
    color: #047857;
}

.parent-status-pill--closed {
    background: #f1f5f9;
    color: #475569;
}

.parent-status-pill--archived {
    background: #f5f3ff;
    color: #6d28d9;
}

.parent-status-pill--participation-paid {
    background: #ecfdf5;
    color: #047857;
}

.parent-status-pill--participation-unpaid,
.parent-status-pill--participation-overdue {
    background: #fff7ed;
    color: #c2410c;
}

.parent-status-pill--participation-submitted {
    background: #eff6ff;
    color: #1d4ed8;
}

.parent-activity-feed {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    width: 100%;
    margin-top: 0.25rem;
}

.pwa-install-banner {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1rem;
    padding: 0.875rem 1rem;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.pwa-install-banner-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 14px;
    color: #ffffff;
    background: var(--rs-blue);
}

.pwa-install-banner-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    color: #0f172a;
}

.pwa-install-banner-body span {
    font-size: 0.875rem;
    color: #475569;
}

.parent-settings-push-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-top: 0.75rem;
    padding: 0.875rem;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
}

.parent-activity-title-detail {
    font-weight: 500;
    color: #64748b;
}

.parent-activity-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f1f5f9;
}

.parent-activity-pagination-status {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
}

.parent-activity-head {
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
}

.parent-activity-head-actions {
    flex-shrink: 0;
}

.parent-activity-filter-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #f1f5f9;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    color: #64748b;
    transition: background 0.15s ease, color 0.15s ease;
}

.parent-activity-filter-btn:hover,
.parent-activity-filter-btn:focus-visible {
    background: var(--rs-blue-light);
    color: var(--rs-blue);
    border-color: var(--rs-blue-light);
}

.parent-activity-filter-btn .fa-sliders {
    font-size: 0.72rem;
}

.parent-activity-filter-badge {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: var(--rs-blue);
}

.parent-wallet-activity-offcanvas {
    --bs-offcanvas-width: min(420px, 100vw);
}

.parent-wallet-activity-period-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.parent-wallet-activity-period-list .form-check-label {
    font-weight: 500;
}

.parent-wallet-activity-filter-form .form-text {
    font-size: 0.78rem;
}

.parent-wallet-activity-export {
    margin-top: 0.25rem;
}

.parent-wallet-activity-modal .modal-content {
    border-radius: 16px;
    border: 1px solid #e8eef5;
}

.parent-wallet-activity-modal-amount {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.parent-wallet-activity-detail-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.parent-wallet-activity-detail-row {
    display: grid;
    grid-template-columns: minmax(0, 38%) 1fr;
    gap: 0.5rem 1rem;
    margin: 0;
}

.parent-wallet-activity-detail-row dt {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.parent-wallet-activity-detail-row dd {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
    word-break: break-word;
}

.parent-wallet-activity-detail-row dd a {
    color: var(--rs-blue);
    text-decoration: none;
}

.parent-wallet-activity-detail-row dd a:hover {
    text-decoration: underline;
}

/* Parent yearly fees (invoices) */
.parent-invoices-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 767.98px) {
    .parent-invoices-metrics {
        grid-template-columns: 1fr;
    }
}

.parent-invoice-row {
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}

.parent-invoice-row .parent-collection-aside {
    margin-left: auto;
}

.parent-collection-list > li + li .parent-invoice-row {
    margin-top: 0.15rem;
}

.parent-collection-amount--paid-value {
    color: #059669;
}

.parent-invoice-hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.parent-invoice-hero-amount {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: #0f172a;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.parent-invoice-hero-actions {
    margin-top: 1.25rem;
}

.parent-invoice-hero-actions .btn {
    border-radius: 12px;
    font-weight: 600;
}

.parent-invoice-hero-note {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    font-size: 0.875rem;
    color: #64748b;
}

.parent-invoice-detail {
    max-width: 1120px;
}

.parent-invoice-layout {
    display: grid;
    gap: 1.25rem;
    align-items: start;
}

@media (min-width: 992px) {
    .parent-invoice-layout {
        grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
        gap: 1.5rem;
    }
}

.parent-invoice-sidebar {
    min-width: 0;
}

@media (min-width: 992px) {
    .parent-invoice-sidebar {
        position: sticky;
        top: 5.5rem;
    }
}

.parent-invoice-summary__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.parent-invoice-summary__facts {
    display: grid;
    gap: 0.85rem;
    margin: 0 0 1.25rem;
    padding: 0 0 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}

.parent-invoice-summary__facts > div {
    display: grid;
    gap: 0.15rem;
}

.parent-invoice-summary__facts dt {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
    margin: 0;
}

.parent-invoice-summary__facts dd {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
}

.parent-invoice-preview {
    min-width: 0;
    background: linear-gradient(160deg, #eef4fe 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.parent-invoice-preview__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid #e2e8f0;
    backdrop-filter: blur(8px);
}

.parent-invoice-preview__toolbar-title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #334155;
}

.parent-invoice-preview__toolbar-title i {
    color: var(--rs-blue);
}

.parent-invoice-preview__frame {
    padding: 1rem;
    min-height: 28rem;
}

@media (min-width: 992px) {
    .parent-invoice-preview__frame {
        padding: 1.25rem;
        min-height: 36rem;
    }
}

.parent-invoice-preview__pdf {
    display: block;
    width: 100%;
    height: min(72vh, 42rem);
    min-height: 28rem;
    border: 0;
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.parent-invoice-pdf-missing {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.65rem;
    min-height: 22rem;
    padding: 2.5rem 1.5rem;
    border-radius: 0.9rem;
    border: 1px dashed #cbd5e1;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.parent-invoice-pdf-missing__icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    background: #fff7ed;
    color: #c2410c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 0.35rem;
}

.parent-invoice-pdf-missing__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.parent-invoice-pdf-missing__text {
    max-width: 26rem;
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
}

.parent-invoice-doc__paper {
    background: #fff;
    border-radius: 0.9rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    padding: 1.5rem;
    max-width: 44rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .parent-invoice-doc__paper {
        padding: 2rem 2.25rem;
    }
}

.parent-invoice-doc--pending .parent-invoice-doc__paper {
    border-style: dashed;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.parent-invoice-doc__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}

.parent-invoice-doc__brand {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.parent-invoice-doc__logo .rs-logo {
    font-size: 1.15rem;
}

.parent-invoice-doc__issuer {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}

.parent-invoice-doc__title-block {
    text-align: right;
    margin-left: auto;
}

.parent-invoice-doc__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.25rem;
}

.parent-invoice-doc__ref {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0 0 0.5rem;
}

.parent-invoice-doc__meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.parent-invoice-doc__label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
    margin-bottom: 0.2rem;
}

.parent-invoice-doc__value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
}

.parent-invoice-doc__table-wrap {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 1rem;
}

.parent-invoice-doc__table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

.parent-invoice-doc__table th,
.parent-invoice-doc__table td {
    padding: 0.85rem 1rem;
    font-size: 0.875rem;
    vertical-align: top;
}

.parent-invoice-doc__table thead th {
    background: #f8fafc;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid #e2e8f0;
}

.parent-invoice-doc__table tbody td {
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}

.parent-invoice-doc__table tfoot th,
.parent-invoice-doc__table tfoot td {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.parent-invoice-doc__total {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.parent-invoice-doc__footnote {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.5;
}

.parent-invoice-doc__pending {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 0.75rem;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-size: 0.875rem;
    line-height: 1.45;
}

.parent-invoice-doc__pending i {
    margin-top: 0.15rem;
}


.parent-activity-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    margin: 0 -0.75rem;
    padding: 0.75rem;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.parent-activity-item:hover {
    background-color: #f8fafc;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.parent-activity-item:active {
    background-color: #f1f5f9;
}

.parent-activity-collection-link {
    display: inline;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--rs-blue);
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.12em;
    cursor: pointer;
}

.parent-activity-collection-link:hover,
.parent-activity-collection-link:focus-visible {
    color: #003a9b;
}

.parent-activity-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
}

.parent-activity-icon--in {
    background: #ecfdf5;
    color: #059669;
}

.parent-activity-icon--out {
    background: #fef2f2;
    color: #dc2626;
}

.parent-activity-body {
    flex: 1;
    min-width: 0;
}

.parent-activity-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
}

.parent-activity-detail {
    font-size: 0.8125rem;
    color: #475569;
    margin-top: 0.1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.parent-activity-meta {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.2rem;
}

.parent-activity-amount {
    flex-shrink: 0;
    font-size: 0.875rem;
    font-weight: 700;
    white-space: nowrap;
}

/* Parent settings - width follows .parent-dashboard */
.parent-settings-layout {
    display: grid;
    grid-template-columns: minmax(11rem, 13.5rem) minmax(0, 1fr);
    gap: 1.75rem 2.5rem;
    align-items: start;
}

.parent-settings-nav {
    position: sticky;
    top: 5.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.4rem;
    border: 1px solid #e8eef5;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.parent-settings-nav-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.9rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.parent-settings-nav-link i {
    width: 1rem;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.85;
}

.parent-settings-nav-link:hover {
    background: #f8fafc;
    color: var(--rs-blue-dark);
}

.parent-settings-nav-link.is-active {
    background: var(--rs-blue-light);
    color: var(--rs-blue);
}

.parent-settings-nav-link.is-active i {
    opacity: 1;
}

.parent-settings-nav-link:focus-visible {
    background: var(--rs-blue-light);
    color: var(--rs-blue);
    outline: none;
}

.parent-settings-main {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
    min-width: 0;
}

.parent-settings-form {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.parent-settings-panel {
    scroll-margin-top: 5.5rem;
}

.parent-settings-panel > .card-body {
    padding: 1.5rem 1.6rem;
}

.parent-settings-panel-head {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    margin-bottom: 1.35rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid #eef2f7;
}

.parent-settings-panel-head-text {
    min-width: 0;
    flex: 1;
}

.parent-settings-panel-note {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.5;
}

.parent-settings-form-actions {
    margin-top: -0.25rem;
}

.parent-settings-card-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    font-size: 1rem;
}

.parent-settings-card-icon--profile {
    background: #eff6ff;
    color: var(--rs-blue);
}

.parent-settings-card-icon--notify {
    background: #f5f3ff;
    color: #7c3aed;
}

.parent-settings-card-icon--payments {
    background: #f0fdf4;
    color: #059669;
}

.parent-settings-card-icon--calendar {
    background: #ecfeff;
    color: #0891b2;
}

.parent-settings-card-icon--security {
    background: #fff7ed;
    color: #c2410c;
}

.parent-settings-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.4rem;
}

.parent-settings-field-note {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    font-size: 0.8125rem;
    color: #64748b;
    margin-top: 0.45rem;
    line-height: 1.4;
}

.parent-settings-field-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.55rem;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
}

.parent-settings-field-chip--success {
    background: #ecfdf5;
    color: #059669;
}

.parent-settings-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding-left: 0;
    flex-shrink: 0;
}

.parent-settings-switch .form-check-input {
    width: 2.75em;
    height: 1.5em;
    margin: 0;
    cursor: pointer;
}

.parent-settings-switch .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 75, 197, 0.2);
}

.parent-notify {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.parent-notify-device {
    border: 1px solid #dbe7f7;
    border-radius: 14px;
    background: linear-gradient(180deg, #f5f9ff 0%, #eef5ff 100%);
    padding: 1rem 1.1rem;
}

.parent-notify-device-row {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.parent-notify-device-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.7rem;
    background: rgba(0, 75, 197, 0.12);
    color: #004bc5;
    flex-shrink: 0;
}

.parent-notify-device-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1 1 auto;
    min-width: 0;
}

.parent-notify-device-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex-shrink: 0;
}

.parent-notify-pref {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1.05rem;
    border: 1px solid #e8eef5;
    border-radius: 14px;
    background: #f8fafc;
}

.parent-notify-pref-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    margin: 0;
    cursor: pointer;
}

.parent-notify-matrix {
    border: 1px solid #e8eef5;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.parent-notify-matrix-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 4.5rem 4.5rem;
    gap: 0.75rem;
    align-items: center;
    padding: 0.7rem 1.05rem;
    background: #f8fafc;
    border-bottom: 1px solid #eef2f7;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #64748b;
}

.parent-notify-matrix-topic {
    min-width: 0;
}

.parent-notify-matrix-col {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.parent-notify-group + .parent-notify-group {
    border-top: 1px solid #eef2f7;
}

.parent-notify-group-label {
    padding: 0.7rem 1.05rem 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
}

.parent-notify-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.parent-notify-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 4.5rem 4.5rem;
    gap: 0.75rem;
    align-items: center;
    padding: 0.9rem 1.05rem;
}

.parent-notify-item + .parent-notify-item {
    border-top: 1px solid #f1f5f9;
}

.parent-notify-item-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    margin: 0;
}

.parent-notify-item-title {
    font-weight: 600;
    font-size: 0.925rem;
    color: #0f172a;
}

.parent-notify-item-desc {
    font-size: 0.8125rem;
    line-height: 1.4;
    color: #64748b;
}

.parent-settings-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.parent-settings-action {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    width: 100%;
    padding: 0.95rem 1.05rem;
    border: 1px solid #e8eef5;
    border-radius: 14px;
    background: #ffffff;
    color: inherit;
    text-align: left;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.parent-settings-action:hover {
    background: #f8fafc;
    border-color: #dbe3ef;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    color: inherit;
}

.parent-settings-action--cta {
    padding: 1.05rem 1.15rem;
}

.parent-settings-action-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    background: #f1f5f9;
    color: #475569;
}

.parent-settings-action-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.parent-settings-action-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
}

.parent-settings-action-desc {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.4;
}

.parent-settings-action-chevron {
    flex-shrink: 0;
    font-size: 0.75rem;
    color: #94a3b8;
}

.parent-settings-action-btn {
    pointer-events: none;
}

@media (max-width: 575.98px) {
    .rs-segmented {
        width: 100%;
    }

    .parent-collections-head {
        flex-direction: column;
    }

    .parent-collections-scope {
        width: 100%;
    }

    .parent-collections-scope .rs-segmented {
        width: 100%;
    }

    .parent-collection-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .parent-collection-aside {
        flex-direction: row;
        align-items: center;
        width: 100%;
        justify-content: space-between;
    }

    .parent-metric {
        min-height: 0;
    }

    .parent-notify-device-row {
        flex-wrap: wrap;
    }

    .parent-notify-device-actions {
        width: 100%;
        padding-left: 3.3rem;
    }

    .parent-notify-matrix-head,
    .parent-notify-item {
        grid-template-columns: minmax(0, 1fr) 3.75rem 3.75rem;
        gap: 0.45rem;
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .parent-settings-action--cta {
        flex-wrap: wrap;
    }

    .parent-settings-action--cta .parent-settings-action-btn {
        width: 100%;
        margin-top: 0.25rem;
    }

    .parent-settings-switch {
        align-self: center;
    }
}

@media (max-width: 991.98px) {
    .parent-settings-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .parent-settings-nav {
        position: static;
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .parent-settings-nav::-webkit-scrollbar {
        display: none;
    }

    .parent-settings-nav-link {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

/* Teacher SaaS-style hub */
.teacher-hub,
.teacher-child-account {
    max-width: 1200px;
    margin: 0 auto;
}

.teacher-main-content {
    max-width: 1200px;
}

.teacher-hub-header,
.teacher-child-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.teacher-hub-title-block,
.teacher-child-hero-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.teacher-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 0.35rem;
}

.teacher-eyebrow .teacher-eyebrow-back {
    color: #64748b;
    text-decoration: none;
}

.teacher-eyebrow .teacher-eyebrow-back:hover {
    color: var(--rs-blue);
}

.teacher-hub-title,
.teacher-child-hero-title {
    font-size: 1.625rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
}

.teacher-child-rename-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    width: 1.5rem;
    height: 1.5rem;
    margin-left: 0.35rem;
    padding: 0;
    border: 0;
    border-radius: 0.35rem;
    background: transparent;
    color: #94a3b8;
    font-size: 0.8rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.teacher-child-rename-btn:hover,
.teacher-child-rename-btn:focus-visible {
    color: var(--rs-blue);
    background: var(--rs-blue-light);
    outline: none;
}

.teacher-hub-subtitle,
.teacher-child-hero-meta {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.teacher-hub-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.teacher-hub-actions .btn {
    border-radius: 10px;
    font-weight: 600;
}

/* Metric tiles (shared visual language with parent-metric) */
.teacher-metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 992px) {
    .teacher-metric-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.teacher-metric {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1rem;
    row-gap: 0.2rem;
    align-items: center;
    padding: 1.15rem 1.25rem;
    border-radius: 16px;
    border: 1px solid #e8eef5;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    min-height: 5.5rem;
}

.teacher-metric-icon {
    grid-row: 1 / span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 11px;
    flex-shrink: 0;
}

.teacher-metric-icon .fa-solid {
    font-size: 1.05rem;
    line-height: 1;
}

.teacher-metric--credit .teacher-metric-icon {
    background: #ecfdf5;
    color: #059669;
}

.teacher-metric--children .teacher-metric-icon {
    background: #eff6ff;
    color: var(--rs-blue);
}

.teacher-metric--debt .teacher-metric-icon {
    background: #fff7ed;
    color: #ea580c;
}

.teacher-metric--registry .teacher-metric-icon {
    background: #eef4ff;
    color: var(--rs-blue);
}

.teacher-metric--total .teacher-metric-icon {
    background: #f8fafc;
    color: #334155;
}

.teacher-metric-grid--wide {
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}

.teacher-registry-card {
    border-color: #c7d7fe;
    background: linear-gradient(180deg, #f8faff 0%, #fff 100%);
}

.teacher-settings-card-icon--registry {
    background: #eef4ff;
    color: var(--rs-blue);
}

.teacher-registry-balance {
    padding: 0.75rem 0;
}

.funding-source-badge {
    font-size: 0.72rem;
    font-weight: 600;
    vertical-align: middle;
}

.funding-source-badge--general {
    background: #eef4ff;
    color: var(--rs-blue);
}

.funding-source-badge--child {
    background: #ecfdf5;
    color: #059669;
}

/* Subscription funding dashboard */
.subscription-funding {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sf-hero {
    background: #ffffff;
    border: 1px solid #e8eef5;
    border-radius: 16px;
    padding: 1.5rem 1.5rem 1.35rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.sf-hero--done {
    border-color: #bbf7d0;
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 42%);
}

.sf-hero--open {
    border-color: #dbe7f8;
    background: linear-gradient(180deg, #f5f9ff 0%, #ffffff 42%);
}

.sf-hero__top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
}

.sf-hero__eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.65rem;
}

.sf-hero__period {
    font-size: 0.8rem;
    color: #64748b;
}

.sf-hero__title {
    margin: 0 0 0.4rem;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}

.sf-hero__sub {
    margin: 0;
    max-width: 36rem;
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.45;
}

.sf-hero__amount {
    text-align: right;
    min-width: 8.5rem;
}

.sf-hero__amount-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.2rem;
}

.sf-hero__amount-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.1;
}

.sf-hero__amount-of {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.85rem;
    color: #94a3b8;
}

.sf-progress {
    margin-bottom: 1.25rem;
}

.sf-progress__track {
    height: 0.55rem;
    border-radius: 999px;
    background: #e8eef5;
    overflow: hidden;
}

.sf-progress__bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #004bc5 0%, #2f6fed 100%);
    transition: width 0.35s ease;
}

.sf-hero--done .sf-progress__bar {
    background: linear-gradient(90deg, #059669 0%, #34d399 100%);
}

.sf-progress__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.35rem 1rem;
    margin-top: 0.45rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
}

.sf-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.sf-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.sf-pill i {
    font-size: 0.7rem;
}

.sf-pill--ok {
    background: #ecfdf5;
    color: #047857;
}

.sf-pill--wait {
    background: #fffbeb;
    color: #b45309;
}

.sf-pill--muted {
    background: #f1f5f9;
    color: #64748b;
}

.sf-panel {
    background: #ffffff;
    border: 1px solid #e8eef5;
    border-radius: 16px;
    padding: 1.15rem 1.25rem 0.85rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.sf-panel__head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.sf-panel__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

.sf-panel__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.4rem;
    height: 1.4rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    background: #eef4ff;
    color: #004bc5;
    font-size: 0.72rem;
    font-weight: 700;
}

.sf-empty {
    margin: 0.5rem 0 1rem;
    color: #64748b;
    font-size: 0.9rem;
}

.sf-child-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sf-child {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 0;
    border-top: 1px solid #f1f5f9;
}

.sf-child:first-child {
    border-top: 0;
}

.sf-child__avatar {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.7rem;
    display: grid;
    place-items: center;
    background: #eef4ff;
    color: #004bc5;
    font-size: 0.78rem;
    font-weight: 700;
}

.sf-child--paid .sf-child__avatar {
    background: #ecfdf5;
    color: #059669;
}

.sf-child__body {
    min-width: 0;
}

.sf-child__row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.25rem 0.75rem;
    margin-bottom: 0.4rem;
}

.sf-child__name {
    font-weight: 650;
    color: #0f172a;
}

.sf-child__money {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f172a;
}

.sf-child__track {
    height: 0.3rem;
    border-radius: 999px;
    background: #eef2f7;
    overflow: hidden;
}

.sf-child__bar {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #94a3b8;
}

.sf-child--paid .sf-child__bar {
    background: #34d399;
}

@media (max-width: 575.98px) {
    .sf-hero {
        padding: 1.2rem;
    }

    .sf-hero__amount {
        text-align: left;
        width: 100%;
    }

    .sf-child {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
    }

    .sf-child .sf-pill {
        grid-column: 2;
        justify-self: start;
    }
}

.cashier-role-badge {
    font-size: 0.72rem;
    font-weight: 600;
    vertical-align: middle;
}

.cashier-role-badge--primary {
    background: var(--rs-blue-light);
    color: var(--rs-blue);
}

.cashier-roster-section {
    padding: 1rem 0 0.25rem;
}

.cashier-roster-section + .cashier-roster-section {
    border-top: 1px solid #eef2f7;
    margin-top: 0.75rem;
}

.cashier-roster-section--danger {
    border-top-color: #fecaca;
}

.cashier-roster-section__title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin: 0 0 0.75rem;
}

.cashier-roster-section--danger .cashier-roster-section__title {
    color: #b91c1c;
}

.cashier-roster-section__subtitle {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    margin: 0.75rem 0 0.35rem;
}

.cashier-roster-list {
    margin: 0;
}

.cashier-roster-person {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.cashier-roster-person:last-child {
    border-bottom: 0;
}

.cashier-roster-person__name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
}

.cashier-roster-person__meta {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.1rem;
}

.cashier-roster-person--pending {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

.cashier-roster-pending {
    margin-top: 0.35rem;
}

.cashier-roster-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid #eef2f7;
}

.cashier-roster-or {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0;
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cashier-roster-or::before,
.cashier-roster-or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.collection-status-badge--open {
    background: #ecfdf5;
    color: #059669;
}

.collection-status-badge--closed {
    background: #f3f4f6;
    color: #6b7280;
}

.collection-status-badge--cancelled {
    background: #fef2f2;
    color: #dc2626;
}

.teacher-registry-summary {
    border-left: 4px solid var(--rs-blue);
}

.teacher-metric--fundraisings .teacher-metric-icon {
    background: #f5f3ff;
    color: #7c3aed;
}

.teacher-metric--danger .teacher-metric-icon {
    background: #fef2f2;
    color: #dc2626;
}

.teacher-metric-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.2rem;
}

.teacher-metric-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

/* Compact hub overview: cash summary (+ optional debtor jump) */
.hub-summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hub-summary--with-debtor {
        grid-template-columns: 1.5fr 0.7fr;
    }
}

.hub-cash-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hub-cash-primary {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hub-cash-primary .teacher-settings-card-icon {
    width: 3rem;
    height: 3rem;
    font-size: 1.3rem;
}

.hub-cash-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.hub-cash-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.1;
}

.hub-cash-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid #eef2f7;
}

.hub-cash-part-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.15rem;
}

.hub-cash-part-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    flex-shrink: 0;
}

.hub-cash-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    padding: 0;
    border-radius: 0.45rem;
    border: 1px solid #dbe3ee;
    background: #fff;
    color: #334155;
    text-decoration: none;
    line-height: 1;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.hub-cash-icon-btn:hover:not(:disabled) {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

.hub-cash-icon-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.hub-cash-part-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 0.15rem;
}

.hub-cash-part-value {
    font-size: 1.2rem;
    font-weight: 700;
}

.hub-stat-strip .card-body {
    display: flex;
    align-items: center;
    justify-content: space-around;
    text-align: center;
    gap: 0.75rem;
    height: 100%;
}

.hub-debtor-jump {
    width: 100%;
    text-align: inherit;
    cursor: pointer;
    appearance: none;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hub-debtor-jump:hover,
.hub-debtor-jump:focus-visible {
    border-color: #fca5a5;
    box-shadow: 0 0 0 0.15rem rgba(220, 38, 38, 0.12);
    outline: none;
}

.hub-action-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    margin-left: 0.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #e2e8f0;
    color: #0f172a;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

.hub-collapsible > summary {
    list-style: none;
}

.hub-collapsible > summary::-webkit-details-marker {
    display: none;
}

.hub-collapsible__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.hub-collapsible__chevron {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.75rem;
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.hub-collapsible > summary:hover .hub-collapsible__chevron,
.hub-collapsible > summary:focus-visible .hub-collapsible__chevron {
    background: #e2e8f0;
    color: #0f172a;
}

a.hub-collapsible__chevron {
    text-decoration: none;
}

a.hub-collapsible__chevron:hover,
a.hub-collapsible__chevron:focus-visible {
    background: #e2e8f0;
    color: #0f172a;
}

.hub-collapsible[open] > summary .hub-collapsible__chevron {
    transform: rotate(180deg);
}

.hub-collapsible__body {
    border-top: 1px solid #eef2f7;
    margin-top: 0.75rem;
    padding-top: 0.25rem;
}

.hub-collapsible--settings .hub-collapsible__body {
    margin-top: 0;
    border-top: 1px solid #e8eef5;
    padding-top: 0.75rem;
}

.hub-settings-pref {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.15rem 0 0.85rem;
}

.hub-settings-pref-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    margin: 0;
    cursor: pointer;
}

.hub-settings-pref-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
}

.hub-settings-pref-desc {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.4;
}

.hub-settings-divider {
    height: 1px;
    background: #eef2f7;
    margin: 0 0 0.85rem;
}

.hub-settings-archive-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #b91c1c;
    margin: 0 0 0.35rem;
}

.hub-simplified-exit {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.18);
}

.teacher-hub.is-simplified .hub-simplified-exit {
    display: block;
}

.hub-simplified-exit-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.hub-simplified-exit-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.teacher-hub.is-simplified {
    padding-bottom: 4.75rem;
}

.teacher-hub.is-simplified .hub-full-only,
body.hub-simplified-active .hub-full-only {
    display: none !important;
}

.teacher-hub.is-simplified [data-hub-children-col] {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
}

.hub-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hub-stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.1;
}

.hub-stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 0.25rem;
}

.hub-stat-sub {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.1rem;
}

.teacher-settings-card-icon--total {
    background: #f1f5f9;
    color: #334155;
}

/* SaaS-style section card */
.teacher-section-card {
    border: 1px solid #e8eef5;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.teacher-section-card .card-body {
    padding: 1.35rem 1.5rem;
}

.teacher-section-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.teacher-section-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.teacher-section-card-desc {
    font-size: 0.8125rem;
    color: #64748b;
    margin: 0.15rem 0 0;
}

.subscription-summary-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e8eef5;
}

/* Klassiraha plan summary on group hubs */
.subscription-hub-card {
    border-left: 4px solid #94a3b8;
}

.subscription-hub-card--ok {
    border-left-color: #059669;
}

.subscription-hub-card--info {
    border-left-color: #004bc5;
}

.subscription-hub-card--warn {
    border-left-color: #d97706;
}

.subscription-hub-card--danger {
    border-left-color: #dc2626;
}

.subscription-hub-card__main {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem 1.25rem;
    align-items: start;
}

@media (min-width: 768px) {
    .subscription-hub-card__main {
        grid-template-columns: auto 1fr auto auto;
        align-items: center;
    }
}

.subscription-hub-card__icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    display: grid;
    place-items: center;
    background: #f1f5f9;
    color: #334155;
    font-size: 1.15rem;
}

.subscription-hub-card--ok .subscription-hub-card__icon {
    background: #ecfdf5;
    color: #059669;
}

.subscription-hub-card--info .subscription-hub-card__icon {
    background: #eff6ff;
    color: #004bc5;
}

.subscription-hub-card--warn .subscription-hub-card__icon {
    background: #fffbeb;
    color: #d97706;
}

.subscription-hub-card--danger .subscription-hub-card__icon {
    background: #fef2f2;
    color: #dc2626;
}

.subscription-hub-card__title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.65rem;
    margin-bottom: 0.25rem;
}

.subscription-hub-card__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

.subscription-hub-card__hero {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}

.subscription-hub-card__meta {
    margin: 0.35rem 0 0;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.4;
}

.subscription-hub-card__pending {
    color: #004bc5;
    font-weight: 600;
}

.subscription-hub-card__stats {
    display: flex;
    gap: 1.25rem;
}

.subscription-hub-card__stat-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.subscription-hub-card__stat-value {
    display: block;
    margin-top: 0.15rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
}

.subscription-hub-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

@media (max-width: 767.98px) {
    .subscription-hub-card__stats,
    .subscription-hub-card__actions {
        grid-column: 2;
    }
}

.subscription-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.1;
    border: 1px solid transparent;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.subscription-chip:hover {
    text-decoration: none;
    filter: brightness(0.98);
}

.subscription-chip i {
    font-size: 0.78rem;
}

.subscription-chip-divider {
    opacity: 0.55;
}

.subscription-chip-detail {
    font-weight: 500;
    opacity: 0.85;
}

.subscription-chip--ok {
    background: #ecfdf5;
    color: #047857;
    border-color: #bbf7d0;
}

.subscription-chip--info {
    background: var(--rs-blue-light);
    color: var(--rs-blue-dark);
    border-color: rgba(0, 75, 197, 0.18);
}

.subscription-chip--warn {
    background: #fffbeb;
    color: #b45309;
    border-color: #fde68a;
}

.subscription-chip--danger {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.subscription-hub-alert {
    border-radius: 14px;
    border-width: 1px;
}

.subscription-hub-alert .btn {
    white-space: nowrap;
}

.subscription-detail-hero {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.25rem;
}

.subscription-detail-hero__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(0, 75, 197, 0.08);
    color: var(--rs-blue);
    font-size: 1.5rem;
}

.subscription-detail-hero__badge {
    margin-bottom: 0.4rem;
}

.subscription-detail-hero__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: #0f172a;
}

.subscription-detail-hero__sub {
    margin: 0.25rem 0 0;
    color: #475569;
    font-size: 0.92rem;
}

.subscription-detail-hero__free-note {
    color: var(--rs-blue-dark);
}

.subscription-detail-hero__stats {
    display: flex;
    gap: 1.75rem;
    padding-left: 1.25rem;
    border-left: 1px solid #e8eef5;
}

.subscription-detail-hero__stats strong {
    font-size: 1.1rem;
    color: #0f172a;
}

.subscription-plan-card {
    position: relative;
}

.subscription-plan-card__ribbon {
    position: absolute;
    top: -10px;
    right: 12px;
    background: var(--rs-blue);
    color: #ffffff;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(0, 75, 197, 0.18);
}

.subscription-plan-card--featured {
    border-color: #c7d6f5;
    background: linear-gradient(180deg, rgba(0, 75, 197, 0.04), #ffffff 60%);
}

@media (max-width: 767.98px) {
    .subscription-detail-hero {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .subscription-detail-hero__stats {
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid #e8eef5;
        padding-top: 0.9rem;
    }
}

.subscription-plan-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.subscription-plan-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem;
    border: 1px solid #e8eef5;
    border-radius: 16px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.subscription-plan-card:hover {
    border-color: #b9cdf5;
    box-shadow: 0 10px 24px rgba(0, 75, 197, 0.08);
    transform: translateY(-1px);
}

.subscription-plan-card:has(.btn-check:checked) {
    border-color: var(--rs-blue);
    box-shadow: 0 0 0 3px rgba(0, 75, 197, 0.12);
}

.subscription-plan-period {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
}

.subscription-plan-price {
    font-size: 1.4rem;
    line-height: 1.1;
    font-weight: 800;
    color: var(--rs-blue);
}

.subscription-plan-price-block {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.subscription-plan-price-original {
    font-size: 0.85rem;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 500;
}

.subscription-plan-saving {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--rs-blue-dark);
}

.subscription-plan-meta {
    font-size: 0.78rem;
    color: #64748b;
}

/* Clean checkout summary (annual renewal) â€” legacy hooks kept for safety */
.subscription-checkout__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

/* Subscription renew - plan management */
.plan-page {
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

.plan-page__header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.plan-page__back {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
}

.plan-page__back:hover {
    color: #004bc5;
}

.plan-page__title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 750;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.plan {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
}

.plan-current {
    padding: 1.25rem 1.35rem 1.35rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid #e8eef5;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.plan-current--ok {
    border-color: #bbf7d0;
    background: linear-gradient(180deg, #f0fdf4 0%, #fff 48%);
}

.plan-current--wait {
    border-color: #fde68a;
    background: linear-gradient(180deg, #fffbeb 0%, #fff 48%);
}

.plan-current--bad {
    border-color: #fecaca;
    background: linear-gradient(180deg, #fef2f2 0%, #fff 48%);
}

.plan-current__top {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.65rem;
}

.plan-current__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: #e2e8f0;
    color: #334155;
}

.plan-current--ok .plan-current__badge {
    background: #dcfce7;
    color: #166534;
}

.plan-current--wait .plan-current__badge {
    background: #fef3c7;
    color: #92400e;
}

.plan-current--bad .plan-current__badge {
    background: #fee2e2;
    color: #991b1b;
}

.plan-current__title {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.plan-current__hero {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 750;
    line-height: 1.25;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.plan-current__days {
    margin: 0.35rem 0 0;
    font-size: 0.92rem;
    font-weight: 600;
    color: #475569;
}

.plan-current__meta {
    margin: 0.9rem 0 0;
    padding: 0.85rem 0 0;
    border-top: 1px solid #e8eef5;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.88rem;
    color: #475569;
}

.plan-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.45rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e8eef5;
    font-size: 0.82rem;
    color: #475569;
}

.plan-status__dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #94a3b8;
}

.plan-status--ok .plan-status__dot { background: #10b981; }
.plan-status--wait .plan-status__dot { background: #f59e0b; }
.plan-status--bad .plan-status__dot { background: #ef4444; }

.plan-status__label {
    font-weight: 700;
    color: #0f172a;
}

.plan-status__sep {
    color: #cbd5e1;
}

.plan-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.1rem;
    padding: 1.75rem 1.5rem 1.5rem;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.04);
    text-align: center;
}

.plan-card__name {
    margin: 0 0 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.plan-toggle {
    display: inline-flex;
    padding: 0.2rem;
    margin-bottom: 1.35rem;
    background: #f1f5f9;
    border-radius: 999px;
}

.plan-toggle__btn {
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 650;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    cursor: pointer;
}

.plan-toggle__btn.is-active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.plan-lengths {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.35rem 0.2rem 0.2rem;
    margin-bottom: 1.35rem;
    background: #f1f5f9;
    border-radius: 999px;
}

.plan-lengths__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 650;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    cursor: pointer;
}

.plan-lengths__btn.is-active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.plan-lengths__btn .plan-lengths__save {
    position: absolute;
    top: -0.45rem;
    right: -0.35rem;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.4rem;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #bbf7d0;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.15;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    pointer-events: none;
}

.plan-price {
    margin-bottom: 1.35rem;
}

.plan-price__was {
    display: block;
    margin-bottom: 0.15rem;
    font-size: 1rem;
    font-weight: 600;
    color: #94a3b8;
    text-decoration: line-through;
}

.plan-price__row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0.35rem 0.5rem;
}

.plan-price__now {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    color: #0f172a;
}

.plan-price__unit {
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
}

.plan-price__bill {
    margin: 0.55rem 0 0;
    font-size: 0.85rem;
    color: #64748b;
}

.plan-features {
    list-style: none;
    margin: 0 0 1.35rem;
    padding: 0;
    text-align: left;
}

.plan-features li {
    position: relative;
    padding: 0.45rem 0 0.45rem 1.7rem;
    font-size: 0.92rem;
    color: #334155;
    border-top: 1px solid #f1f5f9;
}

.plan-features li:last-child {
    border-bottom: 1px solid #f1f5f9;
}

.plan-features li::before {
    content: "";
    position: absolute;
    left: 0.15rem;
    top: 0.7rem;
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 50%;
    background-color: #ecfdf5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23059669' d='M6.5 10.6 3.9 8l-.9.9 3.5 3.5 7-7-.9-.9z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 0.7rem;
}

.plan-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
    color: #475569;
}

.plan-total strong {
    font-size: 1.15rem;
    color: #0f172a;
}

.plan-total__until {
    margin: 0 0 1.15rem;
    font-size: 0.8rem;
    color: #94a3b8;
    text-align: left;
}

.plan-cta {
    width: 100%;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    font-weight: 700;
}

.plan-code {
    padding: 1rem 1.15rem 1.15rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid #e8eef5;
    text-align: left;
}

.plan-code__title {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

.plan-code__desc {
    margin: 0 0 0.75rem;
    font-size: 0.82rem;
    color: #64748b;
}

.plan-renew-locked {
    padding: 1.1rem 1.2rem 1.2rem;
    border-radius: 1rem;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
}

.plan-renew-locked__title {
    margin: 0 0 0.4rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #334155;
}

.plan-renew-locked__text {
    margin: 0;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.45;
}

.plan-renew-locked__when {
    margin: 0.65rem 0 0;
    font-size: 0.92rem;
    font-weight: 650;
    color: #0f172a;
}

.plan-renew-locked__in {
    margin-left: 0.25rem;
    font-weight: 500;
    color: #64748b;
}

.subscription-checkout__eyebrow {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--rs-blue);
    margin-bottom: 0.2rem;
}

.subscription-checkout__title {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0;
    color: #0f172a;
}

.subscription-checkout__period {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
    color: #475569;
}

.subscription-checkout__ribbon {
    flex-shrink: 0;
    background: rgba(0, 75, 197, 0.08);
    color: var(--rs-blue-dark);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    white-space: nowrap;
}

.subscription-checkout__lines {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid #edf2f7;
}

.subscription-checkout__lines li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0;
    font-size: 0.92rem;
    color: #475569;
    border-bottom: 1px solid #edf2f7;
}

.subscription-checkout__lines li span:last-child {
    font-weight: 600;
    color: #0f172a;
}

.subscription-checkout__lines-strike span:last-child {
    text-decoration: line-through;
    color: #94a3b8;
    font-weight: 500;
}

.subscription-checkout__total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 1rem 0 0.25rem;
}

.subscription-checkout__total span {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
}

.subscription-checkout__total strong {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--rs-blue);
    line-height: 1;
}

.subscription-checkout__note {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    background: #f8fafc;
    border-radius: 12px;
    font-size: 0.88rem;
    color: #475569;
}

.subscription-checkout__note i {
    color: var(--rs-blue);
    margin-top: 0.15rem;
}

.subscription-checkout__actions {
    display: flex;
    flex-direction: column-reverse;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

@media (min-width: 576px) {
    .subscription-checkout__actions {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.subscription-renew-block {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Collapsible discount code */
.subscription-discount {
    border: 1px solid #e8eef5;
    border-radius: 14px;
    background: #ffffff;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.subscription-discount > summary {
    list-style: none;
    cursor: pointer;
    padding: 0.95rem 1.15rem;
    font-weight: 600;
    color: #0f172a;
    user-select: none;
}

.subscription-discount > summary::-webkit-details-marker {
    display: none;
}

.subscription-discount > summary::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    float: right;
    color: #94a3b8;
    font-size: 0.8rem;
    transition: transform 0.15s ease;
}

.subscription-discount[open] > summary::after {
    transform: rotate(180deg);
}

.subscription-discount__body {
    padding: 0 1.15rem 1.15rem;
}

.subscription-invoice-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.subscription-invoice-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 0.85rem 0.75rem;
    border-bottom: 1px solid #edf2f7;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.subscription-invoice-row:last-child {
    border-bottom: 0;
}

.subscription-invoice-row--link:hover,
.subscription-invoice-row--link:focus-visible {
    background: var(--rs-blue-light);
    color: inherit;
    text-decoration: none;
    transform: translateX(2px);
    outline: none;
}

.subscription-invoice-row__chev {
    color: #94a3b8;
    margin-left: 0.5rem;
    transition: color 0.15s ease, transform 0.15s ease;
}

.subscription-invoice-row--link:hover .subscription-invoice-row__chev {
    color: var(--rs-blue);
    transform: translateX(2px);
}

/* Invoice receipt page */
.invoice-card {
    max-width: 880px;
    margin: 0 auto;
}

.invoice-card__brand {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e8eef5;
}

.invoice-card__logo {
    font-size: 1.75rem;
    line-height: 1;
    text-decoration: none;
}

.invoice-card__brand-tagline {
    margin: 0.5rem 0 0;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 500;
}

.invoice-card__brand-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 0.1rem;
}

.invoice-card__company-name {
    font-size: 1rem;
    color: #0f172a;
}

.invoice-card__company-meta {
    color: #64748b;
    font-size: 0.78rem;
}

.invoice-card__header {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: flex-start;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e8eef5;
    margin-bottom: 1.25rem;
}

.invoice-card__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 700;
}

.invoice-card__number {
    margin: 0.2rem 0 0;
    font-size: 1.55rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.invoice-card__totals {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
}

.invoice-card__total-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 700;
}

.invoice-card__total {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--rs-blue);
    line-height: 1;
}

.invoice-card__total-meta {
    color: #475569;
    font-size: 0.85rem;
}

.invoice-card__meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 2rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid #e8eef5;
    margin-bottom: 1.25rem;
}

.invoice-card__meta-label {
    display: block;
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 0.2rem;
}

.invoice-card__lines {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.invoice-card__lines-head {
    display: grid;
    grid-template-columns: 2fr 0.7fr 0.9fr 1fr;
    gap: 1rem;
    padding: 0.5rem 0.75rem;
    background: #f8fafc;
    border-radius: 10px;
    font-size: 0.78rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.invoice-card__line {
    display: grid;
    grid-template-columns: 2fr 0.7fr 0.9fr 1fr;
    gap: 1rem;
    padding: 0.85rem 0.75rem;
    border-bottom: 1px solid #edf2f7;
}

.invoice-card__line:last-child {
    border-bottom: 0;
}

.invoice-card__totals-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e8eef5;
}

.invoice-card__totals-footer > div {
    text-align: right;
}

.invoice-card__total-amount {
    font-size: 1.5rem;
    color: var(--rs-blue);
    display: block;
}

.invoice-card__notes {
    color: #475569;
    font-size: 0.9rem;
    padding-top: 1rem;
    border-top: 1px dashed #e8eef5;
}

.invoice-card__footer {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e8eef5;
    font-size: 0.82rem;
    color: #475569;
}

.invoice-card__footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.invoice-card__footer-col strong {
    color: #0f172a;
    font-size: 0.92rem;
    margin-bottom: 0.1rem;
}

.invoice-card__footer-line {
    line-height: 1.4;
}

@media (max-width: 575.98px) {
    .invoice-card__brand,
    .invoice-card__header,
    .invoice-card__meta-grid,
    .invoice-card__lines-head,
    .invoice-card__line,
    .invoice-card__footer {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .invoice-card__brand,
    .invoice-card__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .invoice-card__brand-right,
    .invoice-card__totals {
        text-align: left;
        align-items: flex-start;
    }

    .invoice-card__lines-head {
        display: none;
    }

    .invoice-card__line span.text-end {
        text-align: left !important;
    }
}

/* invoice print rules live with the global @media print block below */

@media (max-width: 767.98px) {
    .subscription-summary-strip,
    .subscription-plan-grid {
        grid-template-columns: 1fr;
    }
}

/* Filter chips: reuse rs-segmented */
.teacher-hub-filter .rs-segmented {
    margin: 0;
}

/* Child list (group hub) */
.teacher-child-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.teacher-child-row {
    display: grid;
    grid-template-columns: 2.5rem 1fr auto 2.75rem auto;
    align-items: center;
    column-gap: 0.85rem;
    padding: 0.65rem 0.5rem;
    border-radius: 12px;
    transition: background-color 0.15s ease;
}

.teacher-child-row--selectable {
    grid-template-columns: 1.25rem 2.5rem 1fr auto 2.75rem auto;
}

.teacher-child-select {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    cursor: pointer;
}

.teacher-child-select .form-check-input {
    margin: 0;
    float: none;
    width: 1.1rem;
    height: 1.1rem;
    cursor: pointer;
}

.teacher-child-row:hover {
    background-color: #f8fafc;
}

.teacher-child-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: var(--rs-blue);
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.teacher-child-avatar--debtor {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    color: #c2410c;
}

.teacher-child-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.teacher-child-name-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    max-width: 100%;
}

.teacher-child-name {
    flex: 0 1 auto;
    min-width: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
}

.teacher-child-name:hover {
    color: var(--rs-blue);
}

.teacher-child-meta-link {
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.teacher-child-meta-link:hover .teacher-child-meta:not(.teacher-child-meta--debt) {
    color: var(--rs-blue);
}

.teacher-child-status-icons {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    flex-shrink: 0;
}

.teacher-child-status-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 0.78rem;
    line-height: 1;
    cursor: default;
}

.teacher-child-status-icon--invite {
    color: #64748b;
}

.teacher-child-status-icon--linked {
    color: #2f6fed;
}

.teacher-child-status-tip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 0.4rem);
    transform: translateX(-50%);
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: max-content;
    max-width: 14rem;
    padding: 0.45rem 0.6rem;
    border-radius: 0.45rem;
    background: #0f172a;
    color: #f8fafc;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.35;
    text-align: left;
    white-space: normal;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.22);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.12s ease, visibility 0.12s ease;
}

.teacher-child-status-tip__label {
    font-weight: 700;
    color: #cbd5e1;
}

.teacher-child-status-tip__item {
    display: block;
    word-break: break-word;
}

.teacher-child-status-tip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border: 5px solid transparent;
    border-top-color: #0f172a;
}

.teacher-child-status-icon:hover .teacher-child-status-tip,
.teacher-child-status-icon:focus-visible .teacher-child-status-tip {
    opacity: 1;
    visibility: visible;
}

.teacher-child-meta {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: 0.1rem;
}

.teacher-child-meta--debt {
    color: #c2410c;
    font-weight: 600;
}

.teacher-child-balance {
    font-size: 1.1rem;
    font-weight: 700;
    text-align: right;
    min-width: 5rem;
    white-space: nowrap;
}

.teacher-child-balance.text-success {
    color: #059669 !important;
}

.teacher-child-balance.text-danger {
    color: #dc2626 !important;
}

.teacher-child-topup-btn {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--rs-blue);
    border-color: var(--rs-blue);
    box-shadow: 0 1px 3px rgba(0, 75, 197, 0.25);
}

.teacher-child-topup-btn:hover {
    background: #003a9c;
    border-color: #003a9c;
    box-shadow: 0 2px 6px rgba(0, 75, 197, 0.32);
}

.teacher-child-actions .btn {
    border-radius: 10px;
    color: #64748b;
    border-color: #e2e8f0;
}

.teacher-child-actions .btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.teacher-children-card-head__tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
}

.teacher-children-sort {
    width: auto;
    min-width: 10rem;
}

@media (max-width: 767.98px) {
    .teacher-hub .teacher-metric-grid {
        display: none;
    }

    .teacher-children-card-head {
        flex-direction: column;
        align-items: stretch;
        gap: 0.55rem;
        margin-bottom: 0.75rem;
    }

    .teacher-children-card-head__desc {
        display: none;
    }

    .is-children-filtered .teacher-children-card-head__desc {
        display: block;
        margin-top: 0.1rem;
    }

    .teacher-children-card-head__tools {
        width: 100%;
        justify-content: stretch;
    }

    .teacher-children-sort {
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
    }

    .teacher-children-filter-btn {
        flex: 0 0 auto;
        padding: 0.4rem 0.7rem;
    }

    .teacher-children-filter-btn__label {
        display: none;
    }

    .teacher-child-actions {
        display: none;
    }

    .teacher-child-row {
        grid-template-columns: 2.25rem 1fr auto 2.5rem;
        column-gap: 0.65rem;
        padding: 0.6rem 0.4rem;
    }

    .teacher-child-row--selectable {
        grid-template-columns: 1.1rem 2.25rem 1fr auto 2.5rem;
    }

    .teacher-child-avatar {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 0.8rem;
    }

    .teacher-child-name {
        font-size: 0.92rem;
    }

    .teacher-child-balance {
        font-size: 1rem;
        min-width: 4rem;
    }

    .teacher-child-topup-btn {
        width: 2.5rem;
        height: 2.5rem;
    }

    .teacher-hub-header {
        margin-bottom: 1rem;
    }
}

/* Child detail */
.teacher-child-hero-avatar {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: var(--rs-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.teacher-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.3;
    background: #f1f5f9;
    color: #475569;
}

.teacher-status-pill--confirmed {
    background: #ecfdf5;
    color: #047857;
}

.teacher-status-pill--pending {
    background: #fff7ed;
    color: #c2410c;
}

.teacher-status-pill--rejected,
.teacher-status-pill--cancelled {
    background: #fef2f2;
    color: #b91c1c;
}

.teacher-status-pill--archived {
    background: #f1f5f9;
    color: #475569;
}

/* Ledger feed */
.teacher-ledger-feed {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.teacher-ledger-item {
    display: grid;
    grid-template-columns: 2.25rem 1fr auto;
    align-items: center;
    column-gap: 0.85rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.teacher-ledger-item:last-child {
    border-bottom: 0;
}

.teacher-ledger-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    font-size: 0.95rem;
}

.teacher-ledger-icon--in {
    background: #ecfdf5;
    color: #059669;
}

.teacher-ledger-icon--out {
    background: #fef2f2;
    color: #dc2626;
}

.teacher-ledger-body {
    min-width: 0;
}

.teacher-ledger-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.teacher-ledger-meta {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: 0.15rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.teacher-ledger-amount {
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
    text-align: right;
}

.teacher-ledger-amount--in {
    color: #047857;
}

.teacher-ledger-amount--out {
    color: #b91c1c;
}

.teacher-ledger-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    font-size: 0.8125rem;
    color: #64748b;
}

/* Linked parent rows */
.teacher-parent-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.teacher-parent-row:last-child {
    margin-bottom: 0;
}

/* Groups list (card grid) */
.teacher-groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.teacher-group-tile {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem;
    border-radius: 16px;
    border: 1px solid #e8eef5;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.teacher-group-tile:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
    color: inherit;
}

.teacher-group-tile--add {
    align-items: center;
    justify-content: center;
    text-align: center;
    border-style: dashed;
    border-color: #cbd5e1;
    background: #fbfcff;
    box-shadow: none;
}

.teacher-group-tile--add:hover {
    border-color: var(--rs-blue);
    background: #f5f8ff;
}

.teacher-group-tile-add-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: #eff6ff;
    color: var(--rs-blue);
    font-size: 1.1rem;
}

.teacher-group-tile-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: var(--rs-blue);
    font-size: 1rem;
}

.teacher-group-tile-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0.5rem 0 0;
}

.teacher-group-tile-meta {
    font-size: 0.8125rem;
    color: #64748b;
    margin: 0;
}

.teacher-group-tile-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px dashed #e8eef5;
    font-size: 0.875rem;
    color: #475569;
    font-weight: 600;
}

.teacher-group-tile-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin: 0.35rem 0 0;
    padding: 0.65rem 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.teacher-group-tile-stats > div {
    min-width: 0;
}

.teacher-group-tile-stats dt {
    margin: 0;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.teacher-group-tile-stats dd {
    margin: 0.1rem 0 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.teacher-group-tile-stat-sub {
    font-weight: 500;
    font-size: 0.8rem;
    color: #94a3b8;
}

.teacher-group-tile-registry {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.5rem 0 0;
    font-size: 0.78rem;
    color: #64748b;
}

.teacher-group-tile-registry .fa-vault {
    color: var(--rs-blue);
}

.teacher-group-tile--alert .teacher-group-tile-icon {
    background: #fff7ed;
    color: #c2410c;
}

/* Teacher settings (parent-style layout) */
.teacher-settings {
    max-width: 1100px;
    margin: 0 auto;
}

.teacher-settings-card-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    font-size: 1rem;
}

.teacher-settings-card-icon--profile {
    background: #eff6ff;
    color: var(--rs-blue);
}

.teacher-settings-card-icon--payout {
    background: #ecfdf5;
    color: #059669;
}

.teacher-settings-card-icon--security {
    background: #f5f3ff;
    color: #7c3aed;
}

.teacher-settings-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 0.35rem;
}

.teacher-settings-field-note {
    font-size: 0.8125rem;
    color: #64748b;
    margin-top: 0.4rem;
}

.teacher-cash-form .form-control,
.teacher-cash-form .form-select {
    border-radius: 10px;
}

.teacher-cash-form .input-group .btn {
    border-radius: 10px;
}

/* Print slip â€” simple A4-ready parent invite */
.teacher-print-slip {
    max-width: 460px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #1f2937;
    overflow: hidden;
}

.teacher-print-slip-inner {
    padding: 2.25rem 1.75rem;
    text-align: center;
}

.teacher-print-slip-brand {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    margin: 0 0 1.5rem;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1;
}

.teacher-print-slip-label {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #64748b;
}

.teacher-print-slip-child {
    margin: 0 0 0.4rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    word-break: break-word;
}

.teacher-print-slip-meta {
    margin: 0 0 1.75rem;
    font-size: 0.9rem;
    color: #64748b;
}

.teacher-print-slip-dot {
    margin: 0 0.4rem;
    color: #cbd5e1;
}

.teacher-print-slip-qr {
    display: block;
    width: 220px;
    height: 220px;
    max-width: 100%;
    margin: 0 auto 0.9rem;
    background: #ffffff;
}

.teacher-print-slip-url {
    margin: 0 0 1.5rem;
    font-size: 0.78rem;
    color: #004bc5;
    word-break: break-all;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

.teacher-print-slip-help {
    margin: 0 0 1.5rem;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #475569;
}

.teacher-print-slip-foot {
    margin: 0;
    font-size: 0.78rem;
    color: #94a3b8;
    letter-spacing: 0.02em;
}

/* Body-level clone used at print time so the slip is not clipped by the modal. */
.teacher-print-slip-clone {
    display: none;
}

@media print {
    @page {
        size: A4;
        margin: 20mm;
    }

    body.teacher-printing {
        background: #ffffff !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    body.teacher-printing > *:not(.teacher-print-slip-clone) {
        display: none !important;
    }

    .teacher-print-slip-clone {
        display: block !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: #ffffff !important;
        page-break-inside: avoid;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .teacher-print-slip-clone .teacher-print-slip-inner {
        padding: 30mm 15mm !important;
        max-width: 170mm;
        margin: 0 auto;
    }

    .teacher-print-slip-clone .teacher-print-slip-url {
        color: #004bc5 !important;
    }

    .teacher-print-slip-clone .teacher-print-slip-brand .brand-blue {
        color: #004bc5 !important;
    }

    .teacher-print-slip-clone .teacher-print-slip-brand .brand-gray {
        color: #94a3b8 !important;
    }

    .teacher-print-slip-clone .teacher-print-slip-qr {
        width: 70mm !important;
        height: 70mm !important;
    }

    .teacher-print-slip-clone .teacher-print-slip-child {
        font-size: 22pt !important;
    }

    /* Invoice print is a full-page route (no modal), so the absolute trick still works. */
    .invoice-print,
    .invoice-print * {
        visibility: visible;
    }

    .invoice-print {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        padding: 0.75rem 1.25rem;
        background: #ffffff;
    }

    .invoice-print .invoice-card {
        box-shadow: none !important;
        border: 1px solid #e2e8f0 !important;
        max-width: 100% !important;
    }
}

/* Admin portal (v2): reuse teacher/parent SaaS shell */
.admin-shell-modern .teacher-main-content {
    max-width: 1200px;
}

.admin-topbar .teacher-topbar-logo {
    margin-right: 1rem;
}

.admin-user-menu .teacher-user-avatar {
    background: #eff6ff;
    color: var(--rs-blue);
}

.admin-secondary-metrics {
    margin-top: -0.5rem;
}

.admin-alert-stack {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.admin-action-alert {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border: 1px solid #e8eef5;
    border-radius: 16px;
    background: #ffffff;
    color: #0f172a;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.admin-action-alert:hover {
    color: #0f172a;
    border-color: #dbeafe;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.admin-action-alert-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    background: #eff6ff;
    color: var(--rs-blue);
}

.admin-action-alert--warning .admin-action-alert-icon {
    background: #fff7ed;
    color: #ea580c;
}

.admin-action-alert--danger .admin-action-alert-icon {
    background: #fef2f2;
    color: #dc2626;
}

.admin-action-alert--success .admin-action-alert-icon {
    background: #ecfdf5;
    color: #059669;
}

.admin-action-alert-body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.1rem;
}

.admin-action-alert-title {
    font-weight: 700;
    color: #0f172a;
}

.admin-action-alert-desc {
    font-size: 0.85rem;
    color: #64748b;
}

.admin-people-list {
    display: grid;
    gap: 1rem;
}

.admin-people-card {
    overflow: hidden;
}

.admin-people-card--alert {
    border-color: #fed7aa;
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 42%);
}

.admin-people-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-person-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.85rem;
}

.admin-person-main {
    min-width: 0;
}

.admin-assignment-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.admin-person-chip {
    display: inline-grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.65rem;
    min-width: min(100%, 18rem);
    padding: 0.45rem 0.5rem;
    border: 1px solid #e8eef5;
    border-radius: 999px;
    background: #f8fafc;
}

.admin-person-chip-body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1.2;
}

.admin-person-chip-title {
    overflow: hidden;
    color: #0f172a;
    font-size: 0.86rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-person-chip-subtitle {
    overflow: hidden;
    color: #64748b;
    font-size: 0.74rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-people-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
}

.admin-inline-form {
    display: flex;
    align-items: center;
    flex: 1 1 18rem;
    gap: 0.5rem;
    margin: 0;
}

.admin-inline-form .form-select {
    min-width: 0;
}

.admin-edit-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    gap: 0.75rem;
    align-items: start;
}

.admin-mobile-card-list {
    display: grid;
    gap: 0.85rem;
}

.admin-mobile-card {
    padding: 1rem;
    border: 1px solid #e8eef5;
    border-radius: 16px;
    background: #ffffff;
}

.admin-mobile-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.admin-mobile-card-title {
    margin: 0;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 700;
}

.admin-mobile-card-meta {
    margin: 0.1rem 0 0;
    color: #64748b;
    font-size: 0.85rem;
}

.admin-mobile-card-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0 0 1rem;
}

.admin-mobile-card-stats dt {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.admin-mobile-card-stats dd {
    margin: 0.2rem 0 0;
    color: #0f172a;
    font-weight: 700;
}

@media (max-width: 767.98px) {
    .admin-people-metrics,
    .admin-secondary-metrics {
        display: none;
    }

    .admin-people-card-head,
    .admin-person-row {
        grid-template-columns: auto 1fr;
    }

    .admin-person-row .teacher-status-pill {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .admin-inline-form,
    .admin-people-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-inline-form {
        flex-basis: auto;
        width: 100%;
    }

    .admin-inline-form .btn,
    .admin-people-actions > .btn,
    .admin-people-actions > a {
        width: 100%;
    }

    .admin-edit-grid {
        grid-template-columns: 1fr;
    }
}

/* Landing hero preview image */
.hero-mockup-screen--image {
    height: 400px;
    background: transparent;
    padding: 0;
    overflow: hidden;
    border-radius: 12px;
}

.hero-mockup-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Public marketing pages */
.kr-marketing-hero p {
    max-width: 760px;
    margin-inline: auto;
}

.kr-section-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--rs-blue);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.kr-truth-card,
.kr-role-tile,
.kr-feature-block,
.kr-calc,
.kr-included-card,
.kr-faq-nav,
.kr-handover,
.kr-plan-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.06);
}

.kr-truth-card {
    padding: 2rem;
}

.kr-truth-card h2 {
    margin-bottom: 1rem;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
}

.kr-truth-card ul,
.kr-role-tile ul,
.kr-included-card ul {
    padding-left: 1.25rem;
    color: #475569;
}

.kr-truth-card li,
.kr-role-tile li,
.kr-included-card li {
    margin-bottom: 0.6rem;
}

.kr-truth-card--yes {
    border-color: rgba(0, 75, 197, 0.16);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.kr-truth-card--no {
    background: linear-gradient(180deg, #ffffff 0%, #fffaf3 100%);
}

.kr-role-tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.kr-role-tile {
    padding: 1.5rem;
}

.kr-role-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    border-radius: 18px;
    color: var(--rs-blue);
    background: var(--rs-blue-light);
}

.kr-role-tile h3,
.kr-step h3,
.kr-feature-block h2,
.kr-handover h2,
.kr-included-card h2,
.kr-calc h2,
.kr-plan-card h2 {
    font-weight: 800;
}

.kr-role-tile p,
.kr-step p,
.kr-feature-block p,
.kr-handover p,
.kr-plan-card p {
    color: #64748b;
}

.kr-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.kr-step {
    position: relative;
    padding: 1.5rem;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.kr-step > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 800;
    background: var(--rs-blue);
}

.kr-handover {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
    padding: 2rem;
}

.kr-handover-points {
    display: grid;
    gap: 0.75rem;
}

.kr-handover-points div {
    padding: 1rem;
    border-radius: 16px;
    color: #0f172a;
    font-weight: 700;
    background: #f8fafc;
}

.kr-trust-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.kr-trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(0, 75, 197, 0.14);
    border-radius: 999px;
    color: #0f172a;
    font-weight: 700;
    background: #ffffff;
}

.kr-feature-block {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 1.25rem;
    padding: 2rem;
}

.kr-feature-list {
    display: grid;
    gap: 0.85rem;
}

.kr-feature-list div {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 16px;
    background: #f8fafc;
    color: #334155;
}

.kr-feature-list svg {
    flex: 0 0 auto;
    color: var(--rs-blue);
}

.kr-price-head {
    max-width: 620px;
    margin-inline: auto;
}

.kr-price-number {
    color: var(--rs-blue);
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1;
}

.kr-plan-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.kr-plan-card {
    position: relative;
    padding: 1.5rem;
    overflow: hidden;
}

.kr-plan-card--featured {
    border-color: rgba(0, 75, 197, 0.35);
    box-shadow: 0 24px 70px rgba(0, 75, 197, 0.15);
}

.kr-plan-ribbon {
    display: inline-flex;
    margin-bottom: 1rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    background: var(--rs-blue);
}

.kr-plan-price {
    color: #0f172a;
    font-size: 1.2rem;
    font-weight: 800;
}

.kr-plan-saving {
    margin-top: 0.75rem;
    color: var(--rs-blue);
    font-size: 0.9rem;
    font-weight: 800;
}

.kr-calc,
.kr-included-card {
    padding: 2rem;
}

.kr-calc__label {
    display: block;
    margin-bottom: 0.5rem;
    color: #0f172a;
    font-weight: 800;
}

.kr-calc__total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 1.5rem 0 0.75rem;
    padding: 1.25rem;
    border-radius: 18px;
    color: #ffffff;
    background: var(--rs-blue);
}

.kr-calc__total span {
    opacity: 0.85;
}

.kr-calc__total strong {
    font-size: 1.8rem;
}

.kr-faq-list {
    max-width: 860px;
}

.kr-faq-list details {
    margin-bottom: 0.8rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.05);
}

.kr-faq-list summary {
    cursor: pointer;
    padding: 1rem 1.25rem;
    color: #0f172a;
    font-weight: 800;
}

.kr-faq-list p {
    margin: 0;
    padding: 0 1.25rem 1.15rem;
    color: #64748b;
}

.kr-faq-nav {
    position: sticky;
    top: 6rem;
    display: grid;
    gap: 0.4rem;
    padding: 1rem;
}

.kr-faq-nav a {
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    color: #334155;
    font-weight: 700;
    text-decoration: none;
}

.kr-faq-nav a:hover {
    color: var(--rs-blue);
    background: var(--rs-blue-light);
}

.kr-faq-section {
    scroll-margin-top: 6rem;
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.05);
}

.kr-faq-accordion .accordion-item {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.kr-faq-accordion .accordion-button {
    font-weight: 800;
}

.kr-faq-accordion .accordion-button:not(.collapsed) {
    color: var(--rs-blue);
    background: var(--rs-blue-light);
}

@media (max-width: 991.98px) {
    .kr-role-tiles,
    .kr-steps,
    .kr-plan-grid,
    .kr-feature-block,
    .kr-handover {
        grid-template-columns: 1fr;
    }

    .kr-faq-nav {
        position: static;
    }
}

@media (max-width: 575.98px) {
    .kr-truth-card,
    .kr-role-tile,
    .kr-feature-block,
    .kr-calc,
    .kr-included-card,
    .kr-handover,
    .kr-faq-section {
        padding: 1.25rem;
    }
}

.rs-register-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 0.35rem;
    background: rgba(0, 75, 197, 0.06);
    border-radius: 14px;
}

.rs-register-switch__option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    color: #1f2937;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.rs-register-switch__option:hover {
    background: rgba(0, 75, 197, 0.1);
    color: var(--rs-blue);
}

.rs-register-switch__option.is-active {
    background: #ffffff;
    color: var(--rs-blue);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    cursor: default;
}

.rs-register-switch__option.is-active:hover {
    background: #ffffff;
}

.rs-register-switch__title {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
}

.rs-register-switch__hint {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.15rem;
}

.rs-register-switch__option.is-active .rs-register-switch__hint {
    color: rgba(0, 75, 197, 0.7);
}

/* Platform owner console (light SaaS shell, matches teacher/admin v2) */
.owner-shell-modern {
    background: linear-gradient(180deg, #f1f5f9 0%, var(--rs-gray) 12rem);
}

.owner-shell-modern .teacher-main-content {
    max-width: 1200px;
}

.owner-topbar-modern .owner-topbar-nav {
    width: 100%;
}

.owner-topbar-modern .owner-topbar-logo.rs-logo {
    margin-right: 0;
}

.owner-menu-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    padding: 0;
}

.owner-menu-btn:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: #cbd5e1;
}

.owner-topbar-search {
    display: flex;
    flex: 1 1 14rem;
    max-width: 22rem;
    margin: 0 0.75rem 0 1rem;
    min-width: 0;
}

.owner-topbar-search .form-control {
    border-radius: 999px;
    background: #f8fafc;
    border-color: #e2e8f0;
}

.owner-topbar-end {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-left: auto;
    flex-shrink: 0;
}

.owner-env-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--rs-blue);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.owner-user-menu .teacher-user-avatar {
    background: #eff6ff;
    color: var(--rs-blue);
}

/* Owner navigation offcanvas */
.owner-nav-drawer .offcanvas-header {
    border-bottom: 1px solid #e5e7eb;
}

.owner-nav-drawer .offcanvas-title {
    font-weight: 700;
    color: #0f172a;
}

.owner-nav {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.owner-nav-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.85rem;
    margin-bottom: 0.1rem;
    border-radius: 12px;
    color: #334155;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    min-height: 2.75rem;
}

.owner-nav-link:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.owner-nav-link.is-active {
    background: #eff6ff;
    color: var(--rs-blue);
    font-weight: 600;
}

.owner-nav-link .fa-solid {
    width: 1.1rem;
    text-align: center;
    color: #94a3b8;
}

.owner-nav-link.is-active .fa-solid {
    color: var(--rs-blue);
}

.owner-nav-group {
    margin-bottom: 0.1rem;
}

.owner-nav-group-toggle {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.55rem 0.85rem;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    min-height: 2.75rem;
}

.owner-nav-group-toggle:hover {
    background: #f8fafc;
    color: #334155;
}

.owner-nav-group-label {
    flex: 1;
    text-align: left;
}

.owner-nav-chevron {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.owner-nav-group-toggle.collapsed .owner-nav-chevron {
    transform: rotate(-90deg);
}

.owner-nav-group-items {
    padding-left: 0.5rem;
    margin: 0.1rem 0 0.35rem;
    border-left: 2px solid #e2e8f0;
}

.owner-nav-footer {
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    margin-top: 0.5rem;
}

/* ===== Owner page header ===== */
.owner-shell-modern .teacher-main .teacher-hub,
.owner-shell-modern .teacher-main .teacher-child-account {
    max-width: none;
}

.owner-shell-modern .teacher-main .teacher-hub-title,
.owner-hub-title,
.teacher-hub-title.owner-hub-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
}

/* ===== Stat cards ===== */
.owner-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.owner-stat {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1.1rem 1.25rem;
    background: #fff;
    border: 1px solid #e6ebf2;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.owner-stat-icon {
    flex-shrink: 0;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    background: #eff6ff;
    color: #2563eb;
}

.owner-stat-icon.is-green { background: #ecfdf5; color: #059669; }
.owner-stat-icon.is-amber { background: #fffbeb; color: #d97706; }
.owner-stat-icon.is-violet { background: #f5f3ff; color: #7c3aed; }
.owner-stat-icon.is-red { background: #fef2f2; color: #dc2626; }
.owner-stat-icon.is-slate { background: #f1f5f9; color: #475569; }

.owner-stat-body {
    min-width: 0;
}

.owner-stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.owner-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.15;
    margin-top: 0.15rem;
}

/* ===== Section cards / panels ===== */
.owner-shell-modern .teacher-main .card,
.owner-shell-modern .teacher-main .teacher-section-card {
    border: 1px solid #e6ebf2;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.owner-panel-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.owner-panel-title .fa-solid {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* ===== Tables ===== */
.owner-shell-modern .teacher-main .table {
    margin: 0;
}

.owner-shell-modern .teacher-main .table > thead > tr > th {
    padding: 0.75rem 1rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    background: #fafbfd;
    border-bottom: 1px solid #e6ebf2;
}

.owner-shell-modern .teacher-main .table > tbody > tr > td {
    padding: 0.8rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f4f8;
    color: #334155;
}

.owner-shell-modern .teacher-main .table > tbody > tr:last-child > td {
    border-bottom: 0;
}

.owner-shell-modern .teacher-main .table > tbody > tr:hover {
    background: #f8fafc;
}

.owner-shell-modern .teacher-main .table-responsive.card,
.owner-shell-modern .teacher-main .table-responsive.teacher-section-card {
    overflow: hidden;
    padding: 0;
}

/* ===== Status pills ===== */
.owner-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1.4;
}

.owner-pill::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: currentColor;
}

.owner-pill--green { background: #ecfdf5; color: #047857; }
.owner-pill--amber { background: #fffbeb; color: #b45309; }
.owner-pill--red { background: #fef2f2; color: #b91c1c; }
.owner-pill--blue { background: #eff6ff; color: #1d4ed8; }
.owner-pill--violet { background: #f5f3ff; color: #6d28d9; }
.owner-pill--gray { background: #f1f5f9; color: #475569; }

/* ===== Forms / toolbar ===== */
.owner-shell-modern .teacher-main .form-control,
.owner-shell-modern .teacher-main .form-select {
    border-radius: 10px;
    border-color: #dbe2ea;
}

.owner-shell-modern .teacher-main .form-control:focus,
.owner-shell-modern .teacher-main .form-select:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.12);
}

.owner-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

/* ===== Buttons ===== */
.owner-shell-modern .teacher-main .btn {
    border-radius: 10px;
    font-weight: 600;
}

.owner-shell-modern .teacher-main .btn-outline-secondary {
    border-color: #dbe2ea;
    color: #475569;
}

.owner-shell-modern .teacher-main .btn-outline-secondary:hover {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
}

/* ===== Translations manager ===== */
.owner-trans-catalog {
    display: block;
    padding: 1.1rem 1.25rem;
    background: #fff;
    border: 1px solid #e6ebf2;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.owner-trans-catalog:hover {
    border-color: #c7d2fe;
}

.owner-trans-catalog.is-active {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px #2563eb;
}

.owner-trans-catalog-name {
    font-weight: 600;
    color: #0f172a;
}

.owner-trans-catalog-pct {
    font-weight: 700;
    color: #2563eb;
}

.owner-trans-progress {
    height: 0.5rem;
    border-radius: 999px;
    background: #eef2f7;
}

.owner-trans-catalog-meta {
    margin-top: 0.45rem;
    font-size: 0.78rem;
    color: #64748b;
}

.owner-trans-search {
    min-width: 16rem;
}

.owner-trans-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.owner-trans-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    background: #fcfdff;
}

.owner-trans-row.is-missing {
    border-color: #fde0c8;
    background: #fffaf4;
}

.owner-trans-msgid {
    font-size: 0.9rem;
    color: #0f172a;
    word-break: break-word;
}

.owner-trans-msgid-plural {
    color: #475569;
    font-style: italic;
    margin-top: 0.2rem;
}

.owner-trans-refs {
    margin-top: 0.4rem;
    font-size: 0.72rem;
    color: #94a3b8;
    font-family: var(--bs-font-monospace, monospace);
    word-break: break-all;
}

.owner-trans-plural-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin: 0.35rem 0 0.15rem;
}

.owner-trans-plural-label:first-child {
    margin-top: 0;
}

.owner-trans-save-bar {
    position: sticky;
    bottom: 0;
    margin-top: 1rem;
    padding-top: 1rem;
    background: linear-gradient(to top, #fff 70%, rgba(255, 255, 255, 0));
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 767.98px) {
    .owner-trans-row {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
}

/* ===== Logs viewer ===== */
.owner-log-files {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.owner-log-file {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.7rem 1rem;
    min-width: 12rem;
    background: #fff;
    border: 1px solid #e6ebf2;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.owner-log-file:hover {
    border-color: #c7d2fe;
}

.owner-log-file.is-active {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px #2563eb;
}

.owner-log-file-name {
    font-weight: 600;
    color: #0f172a;
}

.owner-log-file-name .fa-solid {
    color: #94a3b8;
    margin-right: 0.3rem;
}

.owner-log-file-meta {
    font-size: 0.74rem;
    color: #94a3b8;
}

.owner-log-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.owner-log-item {
    border: 1px solid #eef2f7;
    border-left-width: 3px;
    border-radius: 10px;
    overflow: hidden;
    background: #fcfdff;
}

.owner-log-item--red { border-left-color: #dc2626; }
.owner-log-item--amber { border-left-color: #d97706; }
.owner-log-item--blue { border-left-color: #2563eb; }
.owner-log-item--gray { border-left-color: #94a3b8; }

.owner-log-head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    padding: 0.7rem 0.9rem;
    background: none;
    border: 0;
    text-align: left;
    cursor: pointer;
}

.owner-log-head--flat {
    cursor: default;
}

.owner-log-level {
    text-transform: capitalize;
    flex-shrink: 0;
}

.owner-log-count {
    flex-shrink: 0;
    font-weight: 700;
    font-size: 0.8rem;
    color: #b91c1c;
    background: #fef2f2;
    border-radius: 999px;
    padding: 0.1rem 0.5rem;
    min-width: 2.2rem;
    text-align: center;
}

.owner-log-item--amber .owner-log-count { color: #b45309; background: #fffbeb; }
.owner-log-item--blue .owner-log-count { color: #1d4ed8; background: #eff6ff; }
.owner-log-item--gray .owner-log-count { color: #475569; background: #f1f5f9; }

.owner-log-message {
    flex: 1;
    min-width: 0;
    font-size: 0.88rem;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.owner-log-exception {
    font-family: var(--bs-font-monospace, monospace);
    font-size: 0.8rem;
    color: #b91c1c;
    margin-right: 0.4rem;
}

.owner-log-when {
    flex-shrink: 0;
    font-size: 0.76rem;
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
}

.owner-log-when--lead {
    color: #64748b;
    font-family: var(--bs-font-monospace, monospace);
}

.owner-log-chevron {
    flex-shrink: 0;
    color: #94a3b8;
    font-size: 0.75rem;
    transition: transform 0.15s ease;
}

.owner-log-head[aria-expanded="true"] .owner-log-chevron {
    transform: rotate(180deg);
}

.owner-log-body {
    padding: 0 0.9rem 0.85rem;
}

.owner-log-body-meta {
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.owner-log-trace {
    margin: 0;
    padding: 0.75rem 0.9rem;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 8px;
    font-size: 0.76rem;
    line-height: 1.5;
    max-height: 26rem;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

@media (max-width: 767.98px) {
    .owner-log-when {
        display: none;
    }

    .owner-log-message {
        white-space: normal;
    }
}

.owner-impersonation-banner {
    position: sticky;
    top: 0;
    z-index: 1050;
    background: #b45309;
    color: #fff;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.owner-alert-list .alert {
    margin-bottom: 0.5rem;
}

/* Owner dashboard */
.owner-dashboard-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
    margin: 0 0 0.75rem;
}

.owner-dashboard-secondary-metrics {
    margin-bottom: 1.75rem;
}

.owner-stat-value--compact {
    font-size: 1.15rem;
}

.owner-metric-link {
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.owner-metric-link:hover {
    color: inherit;
    border-color: #c7d2fe;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.owner-quick-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

@media (min-width: 768px) {
    .owner-quick-links {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.owner-quick-link {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 1rem 1.1rem;
    border: 1px solid #e8eef5;
    border-radius: 16px;
    background: #fff;
    text-decoration: none;
    color: #0f172a;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    min-height: 5.5rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.owner-quick-link:hover {
    color: #0f172a;
    border-color: #c7d2fe;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.owner-quick-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    background: #eff6ff;
    color: var(--rs-blue);
    font-size: 0.95rem;
}

.owner-quick-link-label {
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 0.35rem;
}

.owner-quick-link-desc {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.35;
}

.owner-breakdown-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.owner-breakdown-item + .owner-breakdown-item {
    margin-top: 0.85rem;
}

.owner-breakdown-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.owner-breakdown-bar {
    height: 0.35rem;
    border-radius: 999px;
    background: #f1f5f9;
    overflow: hidden;
}

.owner-breakdown-bar > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--rs-blue);
    min-width: 2px;
}

.owner-breakdown-bar--violet > span {
    background: #7c3aed;
}

.owner-breakdown-bar--green > span {
    background: #10b981;
}

.owner-analytics-range {
    max-width: 20rem;
}

.owner-analytics-secondary-metrics {
    margin-bottom: 1.5rem;
}

.owner-analytics-path {
    font-size: 0.82rem;
    word-break: break-all;
}

.owner-breakdown-head--stack {
    align-items: flex-start;
}

@media (max-width: 991.98px) {
    .owner-env-pill {
        display: none;
    }

    .owner-shell-modern .teacher-main .teacher-hub .teacher-metric-grid,
    .owner-shell-modern .teacher-main .owner-stat-grid {
        display: grid !important;
    }

    .owner-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Floating "Getting started" onboarding checklist (solo cashier hub) */
.gs-widget {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1040;
    width: 340px;
    max-width: calc(100vw - 32px);
}

.gs-card {
    background: #fff;
    border: 1px solid var(--rs-blue-light);
    border-radius: 18px;
    box-shadow: 0 20px 52px rgba(15, 23, 42, 0.24);
    overflow: hidden;
    animation: gsRise 0.28s ease;
}

@keyframes gsRise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.gs-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px 10px;
    background: linear-gradient(135deg, var(--rs-blue), var(--rs-blue-dark));
    color: #fff;
}

.gs-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.9;
}

.gs-card-title {
    display: block;
    font-size: 17px;
    line-height: 1.2;
    margin-top: 3px;
}

.gs-min {
    border: none;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    cursor: pointer;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    transition: background 0.15s;
}

.gs-min:hover { background: rgba(255, 255, 255, 0.32); }

.gs-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px 4px;
}

.gs-progress-bar {
    flex: 1;
    height: 7px;
    border-radius: 999px;
    background: var(--rs-blue-light);
    overflow: hidden;
}

.gs-progress-bar > span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--rs-blue), #65a3ff);
    border-radius: 999px;
    transition: width 0.4s ease;
}

.gs-progress-text {
    font-size: 12px;
    font-weight: 800;
    color: var(--rs-blue);
    white-space: nowrap;
}

.gs-steps {
    list-style: none;
    margin: 6px 0 0;
    padding: 6px 8px 4px;
}

.gs-step {
    display: flex;
    gap: 11px;
    padding: 9px 8px;
    border-radius: 12px;
}

.gs-step + .gs-step { border-top: 1px solid #eef3fb; }

.gs-step-mark {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--rs-blue-light);
    color: var(--rs-blue);
    font-size: 14px;
}

.gs-step.is-done .gs-step-mark {
    background: #dcfce7;
    color: #16a34a;
}

.gs-step-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.gs-step-label {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--rs-blue-dark);
}

.gs-step.is-done .gs-step-label {
    color: #94a3b8;
    text-decoration: line-through;
}

.gs-step-desc {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.35;
}

.gs-step-cta {
    align-self: flex-start;
    margin-top: 5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: var(--rs-blue-light);
    color: var(--rs-blue);
    font-size: 12.5px;
    font-weight: 800;
    padding: 5px 11px;
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
}

.gs-step-cta:hover { background: #d4e3fb; color: var(--rs-blue-dark); }

.gs-card-foot {
    padding: 4px 16px 14px;
    text-align: center;
}

.gs-hide {
    border: none;
    background: none;
    color: #94a3b8;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 8px;
}

.gs-hide:hover { color: #64748b; text-decoration: underline; }

.gs-fab {
    display: none;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    border: none;
    background: linear-gradient(135deg, var(--rs-blue), var(--rs-blue-dark));
    color: #fff;
    padding: 13px 18px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 14px 34px rgba(0, 75, 197, 0.34);
}

.gs-fab .gs-fab-count {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 1px 9px;
    font-size: 12.5px;
}

.gs-widget.gs-collapsed { width: auto; }
.gs-widget.gs-collapsed .gs-card { display: none; }
.gs-widget.gs-collapsed .gs-fab { display: inline-flex; }

.gs-flash {
    animation: gsFlash 1.6s ease;
}

@keyframes gsFlash {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 75, 197, 0); }
    25% { box-shadow: 0 0 0 4px rgba(0, 75, 197, 0.35); }
}

@media (max-width: 480px) {
    .gs-widget { right: 12px; bottom: 12px; width: calc(100vw - 24px); }
}

/* Full-screen setup wizard (new solo-group cashier) */
.setup-wizard .sw-content { border: none; background: linear-gradient(170deg, #f8fbff, #eef4ff); }

.sw-header {
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--rs-blue-light);
    background: #fff;
    padding: 12px 20px;
}

.setup-wizard .rs-logo {
    display: inline-flex;
    align-items: center;
    font-size: 22px;
    letter-spacing: 0.06em;
    text-transform: lowercase;
    font-family: 'Quicksand', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.setup-wizard .rs-logo .brand-blue { color: var(--rs-blue); font-weight: 700; }
.setup-wizard .rs-logo .brand-gray { color: #94a3b8; font-weight: 300; }
.sw-header-spacer { width: 32px; }

.sw-steps {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.sw-step-dot {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #94a3b8;
    font-weight: 700;
    font-size: 13.5px;
}

.sw-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #e2e8f0;
    color: #64748b;
    font-size: 12.5px;
    flex-shrink: 0;
}

.sw-step-dot + .sw-step-dot::before {
    content: "";
    width: 18px;
    height: 2px;
    background: #e2e8f0;
    border-radius: 2px;
    margin-right: 8px;
}

.sw-step-dot.is-active { color: var(--rs-blue); }
.sw-step-dot.is-active .sw-step-num { background: var(--rs-blue); color: #fff; }
.sw-step-dot.is-done .sw-step-num { background: #16a34a; color: #fff; }

.sw-body { padding: 0; overflow-y: auto; }

.sw-panel { display: none; }
.sw-panel.is-active { display: block; animation: gsRise 0.25s ease; }

.sw-panel-inner {
    width: min(960px, 100%);
    margin: 0 auto;
    padding: 38px 24px 56px;
}

.sw-panel-narrow { max-width: 620px; text-align: center; }

.sw-panel-split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.sw-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--rs-blue);
    background: var(--rs-blue-light);
    border-radius: 999px;
    padding: 4px 12px;
    margin-bottom: 14px;
}

.sw-title { font-size: 30px; line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 12px; color: var(--rs-blue-dark); }
.sw-lead { font-size: 16.5px; line-height: 1.55; color: #475569; margin: 0 0 18px; }

.sw-bullets { list-style: none; margin: 0; padding: 0; }
.sw-bullets li { display: flex; gap: 11px; align-items: flex-start; padding: 9px 0; font-size: 15px; line-height: 1.45; color: #334155; }
.sw-bullets li i { color: var(--rs-blue); margin-top: 3px; flex-shrink: 0; }

.sw-note { display: flex; align-items: center; gap: 9px; border-radius: 12px; padding: 11px 14px; font-size: 14.5px; font-weight: 600; margin-bottom: 18px; }
.sw-note--ok { background: #dcfce7; color: #15803d; }

.sw-child-form { margin-top: 4px; }
.sw-child-rows { display: flex; flex-direction: column; gap: 10px; }
.sw-child-row { display: grid; grid-template-columns: 1fr 1fr 44px; gap: 10px; align-items: center; }
.sw-child-row .form-control { height: 48px; font-size: 15px; }

.sw-row-remove {
    border: 1px solid var(--rs-blue-light);
    background: #fff;
    color: #94a3b8;
    border-radius: 12px;
    height: 48px;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}
.sw-row-remove:hover { color: #dc2626; border-color: #f1b0b0; }

.sw-add-row {
    margin-top: 12px;
    border: 1px dashed #b8cdf0;
    background: #fff;
    color: var(--rs-blue);
    font-weight: 800;
    font-size: 14px;
    border-radius: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.15s;
}
.sw-add-row:hover { background: var(--rs-blue-light); }
.sw-cap-hint { margin: 10px 0 0; font-size: 13px; color: #94a3b8; }

.sw-actions { display: flex; align-items: center; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.sw-actions--center { justify-content: center; }
.sw-primary { min-width: 200px; }
.sw-skip { color: #94a3b8; font-weight: 700; text-decoration: none; }
.sw-skip:hover { color: #64748b; }

/* Demo mockups */
.sw-panel-demo { display: flex; justify-content: center; }
.sw-demo-card {
    width: 100%;
    max-width: 320px;
    background: #fff;
    border: 1px solid var(--rs-blue-light);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 20px 46px rgba(15, 23, 42, 0.12);
}

.sw-demo-childrow { display: flex; align-items: center; gap: 10px; }
.sw-demo-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--rs-blue); color: #fff; display: grid; place-items: center; font-weight: 800; }
.sw-demo-childname { font-weight: 700; color: var(--rs-blue-dark); }
.sw-demo-chip { margin-left: auto; font-size: 11.5px; font-weight: 800; color: var(--rs-blue); background: var(--rs-blue-light); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.sw-demo-arrow { text-align: center; color: #cbd5e1; margin: 12px 0; }
.sw-demo-phone { border: 2px solid var(--rs-blue-light); border-radius: 16px; padding: 14px; background: #f8fbff; }
.sw-demo-phone-top { font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: #94a3b8; }
.sw-demo-phone-balance { font-size: 26px; font-weight: 900; color: var(--rs-blue); letter-spacing: -0.03em; margin: 2px 0 10px; }
.sw-demo-phone-row { display: flex; justify-content: space-between; font-size: 13.5px; color: #475569; padding: 5px 0; border-top: 1px solid #e7eefb; }

.sw-demo-title { font-weight: 800; color: var(--rs-blue-dark); margin-bottom: 12px; }
.sw-demo-presets { display: flex; gap: 8px; margin-bottom: 12px; }
.sw-demo-preset { flex: 1; text-align: center; border: 1px solid var(--rs-blue-light); border-radius: 10px; padding: 8px 0; font-weight: 800; color: var(--rs-blue); }
.sw-demo-preset--active { background: var(--rs-blue); color: #fff; border-color: var(--rs-blue); }
.sw-demo-fakeinput { border: 1px solid var(--rs-blue-light); border-radius: 10px; padding: 11px 14px; font-size: 18px; font-weight: 800; color: var(--rs-blue-dark); }
.sw-demo-divider { text-align: center; color: #94a3b8; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin: 14px 0; position: relative; }
.sw-demo-fundraising { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--rs-blue-light); border-radius: 12px; padding: 12px 14px; }
.sw-demo-fundraising > span:first-child { font-weight: 700; color: var(--rs-blue-dark); }
.sw-demo-fund-amt { font-size: 13px; color: #64748b; }

.sw-email-icon { font-size: 52px; color: var(--rs-blue); margin-bottom: 12px; }
.sw-email-icon--ok { color: #16a34a; }
.sw-email-actions { display: flex; align-items: center; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 6px; }
.sw-resend-status { font-size: 13.5px; color: #16a34a; font-weight: 700; }

@media (max-width: 760px) {
    .sw-panel-split { grid-template-columns: 1fr; gap: 24px; }
    .sw-step-name { display: none; }
    .sw-step-dot + .sw-step-dot::before { width: 12px; margin-right: 6px; }
    .sw-title { font-size: 24px; }
    .sw-primary { min-width: 0; flex: 1; }
    .sw-panel-inner { padding: 26px 18px 44px; }
}

/* Fundraising calendar (FullCalendar) */
.cal-view-toggle.rs-segmented {
    flex-shrink: 0;
}

.cal-fundraising-calendar {
    --fc-border-color: #e7eefb;
    --fc-button-bg-color: #fff;
    --fc-button-border-color: #d7e3f8;
    --fc-button-text-color: var(--rs-blue-dark);
    --fc-button-hover-bg-color: var(--rs-blue-light);
    --fc-button-hover-border-color: #b8cdf0;
    --fc-button-active-bg-color: var(--rs-blue);
    --fc-button-active-border-color: var(--rs-blue);
    --fc-today-bg-color: rgba(0, 75, 197, 0.07);
    --fc-event-border-color: transparent;
    --fc-page-bg-color: #fff;
    --fc-neutral-bg-color: #f8fbff;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.cal-fundraising-calendar .fc-scrollgrid {
    border-radius: 14px;
    border-color: var(--fc-border-color) !important;
}

.cal-fundraising-calendar .fc-header-toolbar {
    margin-bottom: 1rem !important;
    gap: 10px;
}

.cal-fundraising-calendar .fc-toolbar-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--rs-blue-dark);
    letter-spacing: -0.02em;
}

.cal-fundraising-calendar .fc-button {
    font-weight: 700;
    border-radius: 10px;
    box-shadow: none !important;
    padding: 0.4rem 0.8rem;
    text-transform: capitalize;
}

.cal-fundraising-calendar .fc-button-primary:not(:disabled).fc-button-active,
.cal-fundraising-calendar .fc-button-primary:not(:disabled):active {
    background: var(--rs-blue);
    border-color: var(--rs-blue);
}

.cal-fundraising-calendar .fc-col-header-cell-cushion,
.cal-fundraising-calendar .fc-daygrid-day-number {
    color: #64748b;
    font-weight: 700;
    text-decoration: none;
}

.cal-fundraising-calendar .fc-daygrid-day-number {
    padding: 6px 8px;
}

.cal-fundraising-calendar .fc-daygrid-day-frame {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.cal-fundraising-calendar .fc-daygrid-day:not(.fc-day-disabled):hover .fc-daygrid-day-frame {
    background: rgba(0, 75, 197, 0.04);
}

.cal-fundraising-calendar .fc-day-today .fc-daygrid-day-number {
    color: var(--rs-blue);
    background: var(--rs-blue-light);
    border-radius: 8px;
    line-height: 1.4;
}

.cal-event--open {
    background: var(--rs-blue) !important;
    border-color: var(--rs-blue) !important;
}

.cal-event--closed {
    background: #94a3b8 !important;
    border-color: #94a3b8 !important;
}

.cal-fundraising-calendar .fc-event {
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 5px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.cal-fundraising-calendar .fc-daygrid-event-dot {
    display: none;
}

.cal-fundraising-calendar .fc-daygrid-more-link {
    font-weight: 800;
    color: var(--rs-blue);
}

.cal-fundraising-calendar--phone .fc-header-toolbar {
    flex-wrap: wrap;
}

.cal-fundraising-calendar--phone .fc-toolbar-chunk {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.cal-fundraising-calendar--phone .fc-toolbar-chunk:nth-child(2) {
    flex: 1 1 100%;
    order: -1;
}

.cal-fundraising-calendar--phone .fc-toolbar-title {
    font-size: 0.95rem;
    text-align: center;
    width: 100%;
}

.cal-fundraising-calendar--phone .fc-button {
    font-size: 0.82rem;
    padding: 0.35rem 0.65rem;
}

.cal-fundraising-calendar--phone .fc-col-header-cell-cushion {
    font-size: 0.72rem;
    padding: 6px 2px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.cal-fundraising-calendar--phone .fc-daygrid-day-number {
    font-size: 0.8rem;
    padding: 4px 6px;
}

.cal-fundraising-calendar--phone .fc-daygrid-day-frame {
    min-height: 5.5rem;
}

.cal-fundraising-calendar--phone .fc-event {
    font-size: 11px;
    line-height: 1.3;
    white-space: normal;
}

.cal-sync-actions .btn {
    font-weight: 700;
}

.cal-sync-help p {
    line-height: 1.5;
}

@media (min-width: 768px) {
    .cal-fundraising-calendar {
        min-height: 480px;
    }

    .cal-fundraising-calendar .fc-daygrid-day-frame {
        min-height: 6.5rem;
    }
}

@media (max-width: 767px) {
    .cal-fundraising-calendar {
        min-height: 340px;
    }
}

.print-layout {
    background: #f8fafc;
}

.print-layout-toolbar {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.print-layout-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 1rem 2rem;
}

.collection-manifest {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
}

.collection-manifest-head {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.collection-manifest-brand {
    margin-bottom: 0.75rem;
}

.collection-manifest-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: #0f172a;
}

.collection-manifest-subtitle {
    margin: 0 0 1rem;
    color: #64748b;
    font-size: 0.95rem;
}

.collection-manifest-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem 1rem;
    margin: 0;
}

.collection-manifest-meta div {
    margin: 0;
}

.collection-manifest-meta dt {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 0.15rem;
}

.collection-manifest-meta dd {
    margin: 0;
    font-weight: 600;
    color: #0f172a;
}

.collection-manifest-note {
    margin: 1rem 0 0;
    color: #475569;
    font-size: 0.9rem;
}

.collection-manifest-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.collection-manifest-table th,
.collection-manifest-table td {
    border: 1px solid #cbd5e1;
    padding: 0.55rem 0.6rem;
    vertical-align: top;
    text-align: left;
}

.collection-manifest-table thead th {
    background: #f1f5f9;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #475569;
}

.collection-manifest-num {
    width: 2rem;
    text-align: center;
}

.collection-manifest-pay {
    width: 7rem;
    white-space: nowrap;
}

.collection-manifest-pay-status {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
    margin-top: 0.15rem;
}

.collection-manifest-check {
    width: 3.5rem;
    text-align: center;
}

.collection-manifest-notes {
    width: 8rem;
    min-height: 2rem;
}

.collection-manifest-checkbox {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 1.5px solid #64748b;
    border-radius: 2px;
}

.collection-manifest-multiline {
    white-space: pre-line;
    word-break: break-word;
}

.collection-manifest-empty {
    color: #64748b;
    margin: 0;
}

.collection-manifest-foot {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 0.8rem;
}

.collection-manifest-foot-brand {
    margin: 0.35rem 0 0;
    font-weight: 600;
    color: #94a3b8;
}

@media print {
    .no-print {
        display: none !important;
    }

    .print-layout {
        background: #fff;
    }

    .print-layout-main {
        max-width: none;
        padding: 0;
    }

    .collection-manifest {
        border: none;
        border-radius: 0;
        padding: 0;
    }

    .collection-manifest-table {
        font-size: 10pt;
    }

    .collection-manifest-table th,
    .collection-manifest-table td {
        padding: 0.35rem 0.4rem;
    }
}

/* Announcement poster sheet (parent modal + owner builder preview) */
.announcement-modal .modal-dialog {
    max-width: 28rem;
}

.announcement-modal .modal-content,
.announcement-sheet {
    border: 0;
    border-radius: 1.35rem;
    overflow: hidden;
    background: #fffdf8;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}

.announcement-hero {
    position: relative;
    flex-shrink: 0;
    height: 11.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(145deg, var(--rs-blue) 0%, #1a5fe0 42%, var(--rs-blue-dark) 100%);
}

.announcement-hero::before,
.announcement-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.announcement-hero::before {
    width: 14rem;
    height: 14rem;
    top: -6rem;
    left: -4rem;
}

.announcement-hero::after {
    width: 10rem;
    height: 10rem;
    right: -3rem;
    bottom: -4rem;
    background: rgba(0, 0, 0, 0.12);
}

.announcement-hero img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.announcement-hero-mark {
    position: relative;
    z-index: 1;
    width: 4.75rem;
    height: 4.75rem;
    border-radius: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.28);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.35);
    color: #fff;
    font-size: 2rem;
    transform: rotate(-6deg);
}

.announcement-hero--social .announcement-hero-mark {
    background: #1877f2;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    transform: none;
}

.announcement-hero--feedback {
    background: linear-gradient(145deg, #0f766e 0%, #0d9488 50%, #115e59 100%);
}

.announcement-hero--complete_profile {
    background: linear-gradient(145deg, #4338ca 0%, #4f46e5 48%, #312e81 100%);
}

.announcement-hero--verify_email {
    background: linear-gradient(145deg, #0369a1 0%, #0284c7 50%, #0c4a6e 100%);
}

.announcement-hero--enable_push {
    background: linear-gradient(145deg, #b45309 0%, #d97706 48%, #78350f 100%);
}

.announcement-hero--acknowledge {
    background: linear-gradient(145deg, #334155 0%, #475569 50%, #1e293b 100%);
}

.announcement-hero--invite {
    background: linear-gradient(145deg, #7c3aed 0%, #6d28d9 48%, #4c1d95 100%);
}

.announcement-hero-close {
    position: absolute;
    z-index: 2;
    top: 0.75rem;
    right: 0.75rem;
    width: 2.1rem;
    height: 2.1rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.92);
    color: #1f2937;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.announcement-hero-close:hover {
    background: #fff;
}

.announcement-panel {
    padding: 1.35rem 1.4rem 1.5rem;
}

.announcement-badge {
    display: inline-flex;
    align-items: center;
    background: #fef3c7;
    color: #92400e;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    margin-bottom: 0.7rem;
}

.announcement-title {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: #0f172a;
    margin: 0 0 0.65rem;
    max-width: 22rem;
}

.announcement-body {
    font-size: 0.98rem;
    line-height: 1.55;
    color: #334155;
    max-width: 22rem;
}

.announcement-body p:last-child {
    margin-bottom: 0;
}

.announcement-field {
    margin-top: 1.1rem;
}

.announcement-field .form-label,
.announcement-field-label {
    font-size: 0.82rem;
    font-weight: 650;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

.announcement-field .form-control,
.announcement-input {
    border-radius: 0.85rem;
    border-color: rgba(15, 23, 42, 0.12);
    padding: 0.7rem 0.85rem;
    background: #fff;
}

.announcement-field .form-control:focus,
.announcement-input:focus {
    border-color: var(--rs-blue);
    box-shadow: 0 0 0 3px var(--rs-blue-light);
}

.announcement-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    margin-top: 1.25rem;
}

.announcement-cta {
    appearance: none;
    border: 0;
    background: linear-gradient(90deg, var(--rs-blue) 0%, #2f6fed 100%);
    color: #fff;
    font-weight: 700;
    padding: 0.78rem 1.2rem;
    border-radius: 999px;
    box-shadow: 0 10px 22px rgba(0, 75, 197, 0.28);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.85rem;
    flex: 1 1 12rem;
}

.announcement-cta:hover,
.announcement-cta:focus {
    color: #fff;
    filter: brightness(1.05);
}

.announcement-later {
    appearance: none;
    border: 0;
    background: none;
    color: #64748b;
    font-weight: 650;
    padding: 0.45rem 0.2rem;
}

.announcement-later:hover {
    color: #334155;
}

.announcement-actions form {
    margin: 0;
    display: contents;
}

.announcement-actions input[type="hidden"],
.announcement-actions form > div {
    display: none !important;
}

.invite-sheet-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}

.invite-sheet-item {
    padding: 0.95rem 0 0.15rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.invite-sheet-item:first-child {
    border-top: 0;
    padding-top: 0.35rem;
}

.invite-sheet-name {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.invite-sheet-meta {
    margin: 0.15rem 0 0;
    font-size: 0.88rem;
    color: #64748b;
}

.invite-sheet-item .announcement-actions {
    margin-top: 0.75rem;
}

.invite-sheet-later {
    margin-top: 0.35rem;
    justify-content: center;
}

@media (max-width: 575.98px) {
    .announcement-cta {
        flex: 1 1 100%;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .announcement-hero-mark {
        transform: none;
    }
}

.announcement-builder {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 22rem);
    gap: 1.5rem;
    align-items: start;
}

.announcement-builder-preview {
    position: sticky;
    top: 5.5rem;
}

.announcement-builder-preview-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 0.65rem;
}

.announcement-kind-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.announcement-kind-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0;
    padding: 0.7rem 0.75rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 0.9rem;
    background: #fff;
    cursor: pointer;
}

.announcement-kind-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.announcement-kind-card.is-active {
    border-color: var(--rs-blue);
    box-shadow: 0 0 0 3px var(--rs-blue-light);
}

.announcement-kind-swatch {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex: 0 0 auto;
    background: var(--rs-blue);
}

.announcement-kind-swatch--feedback { background: #0d9488; }
.announcement-kind-swatch--social { background: #1877f2; }
.announcement-kind-swatch--complete_profile { background: #4f46e5; }
.announcement-kind-swatch--verify_email { background: #0284c7; }
.announcement-kind-swatch--enable_push { background: #d97706; }
.announcement-kind-swatch--acknowledge { background: #475569; }

.announcement-kind-card strong {
    display: block;
    font-size: 0.88rem;
    color: #0f172a;
}

.announcement-kind-card span {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.3;
}

@media (max-width: 991.98px) {
    .announcement-builder {
        grid-template-columns: 1fr;
    }

    .announcement-builder-preview {
        position: static;
        order: -1;
    }
}

