/* Parent portal — matches staff/teacher orange theme */

.vgs-parent-login-page {
    --vgs-login-accent: #c2410c;
    --vgs-login-accent-soft: #fff7ed;
}

/* Branded school block — inside login card */
.pp-login-brand-in-card {
    text-align: center;
    margin: -4px 0 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.pp-login-school-logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.pp-login-school-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.1);
    padding: 6px;
}

.pp-login-school-logo--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background: #fff7ed;
}

.pp-login-school-name {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 800;
    color: var(--vgs-login-primary-deep, #9a3412);
    line-height: 1.25;
}

.pp-login-school-affiliation {
    margin: 0 0 10px;
    font-size: 13px;
    color: #64748b;
}

.pp-login-school-tag {
    display: inline-block;
    margin: 0;
    padding: 5px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #c2410c, #ea580c);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Shared parent tab modules — PWA parity */
body.vg-page-parent-child-profile .pp-tab-panel {
    max-width: none;
    width: 100%;
}

body.vg-page-parent-child-profile .pp-filter-form {
    margin-bottom: 14px;
}

body.vg-page-parent-child-profile .pp-filter-card {
    padding: 14px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

body.vg-page-parent-child-profile .pp-filter-field {
    margin-bottom: 0;
}

body.vg-page-parent-child-profile .pp-select {
    width: 100%;
    min-height: 44px;
    border-radius: 12px;
}

body.vg-page-parent-child-profile .pp-section-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin: 0 0 10px;
}

body.vg-page-parent-child-profile .pp-panel-sub {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

body.vg-page-parent-child-profile .pp-empty-state--compact {
    padding: 28px 16px;
}

body.vg-page-parent-child-profile .pp-empty-state--compact .pp-empty-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

/* Homework cards */
body.vg-page-parent-child-profile .pp-hw-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

body.vg-page-parent-child-profile .pp-hw-card {
    padding: 16px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    border-left: 4px solid #c2410c;
}

body.vg-page-parent-child-profile .pp-hw-card--due { border-left-color: #dc2626; }
body.vg-page-parent-child-profile .pp-hw-card--soon { border-left-color: #d97706; }

body.vg-page-parent-child-profile .pp-hw-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

body.vg-page-parent-child-profile .pp-hw-title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
}

body.vg-page-parent-child-profile .pp-hw-due {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fff7ed;
    color: #c2410c;
    white-space: nowrap;
    flex-shrink: 0;
}

body.vg-page-parent-child-profile .pp-hw-due--overdue {
    background: #fef2f2;
    color: #b91c1c;
}

body.vg-page-parent-child-profile .pp-hw-meta {
    font-size: 13px;
    color: #64748b;
}

body.vg-page-parent-child-profile .pp-hw-subject {
    margin-top: 6px;
    font-weight: 700;
    color: #0f172a;
}

body.vg-page-parent-child-profile .pp-hw-assigned {
    margin-top: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
}

body.vg-page-parent-child-profile .pp-hw-desc {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.55;
    color: #334155;
}

/* Fees money grid */
body.vg-page-parent-child-profile .pp-money-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

body.vg-page-parent-child-profile .pp-money-card {
    padding: 14px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

body.vg-page-parent-child-profile .pp-money-card--highlight {
    background: linear-gradient(135deg, #fff7ed, #fff);
    border-color: #fdba74;
}

body.vg-page-parent-child-profile .pp-money-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

body.vg-page-parent-child-profile .pp-money-value {
    display: block;
    margin-top: 4px;
    font-size: 20px;
    font-weight: 800;
    color: #c2410c;
    line-height: 1.2;
}

body.vg-page-parent-child-profile .pp-money-value--paid { color: #16a34a; }
body.vg-page-parent-child-profile .pp-money-value--overdue { color: #dc2626; }
body.vg-page-parent-child-profile .pp-money-value--upcoming { color: #ea580c; }

.pp-fee-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 999px;
}

.pp-fee-badge--paid { background: #dcfce7; color: #166534; }
.pp-fee-badge--overdue { background: #fee2e2; color: #b91c1c; }
.pp-fee-badge--upcoming { background: #ffedd5; color: #c2410c; }

.vgs-fees-upcoming-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: #ffedd5;
    color: #c2410c;
    font-size: 12px;
    font-weight: 700;
}

/* Attendance */
body.vg-page-parent-child-profile .pp-att-filter-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

body.vg-page-parent-child-profile .pp-att-class-chip {
    display: inline-flex;
    align-items: center;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-size: 12px;
    font-weight: 700;
}

body.vg-page-parent-child-profile .pp-att-today-card {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 18px 20px;
    border-radius: 18px;
    margin-bottom: 16px;
    color: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

body.vg-page-parent-child-profile .pp-att-today-card--present {
    background: linear-gradient(135deg, #15803d, #22c55e);
}

body.vg-page-parent-child-profile .pp-att-today-card--absent {
    background: linear-gradient(135deg, #be123c, #f43f5e);
}

body.vg-page-parent-child-profile .pp-att-today-card--leave {
    background: linear-gradient(135deg, #d97706, #fbbf24);
    color: #422006;
}

body.vg-page-parent-child-profile .pp-att-today-card--half {
    background: linear-gradient(135deg, #ea580c, #fb923c);
}

body.vg-page-parent-child-profile .pp-att-today-card--muted {
    background: linear-gradient(135deg, #64748b, #94a3b8);
}

body.vg-page-parent-child-profile .pp-att-today-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.22);
    display: grid;
    place-items: center;
    font-size: 26px;
    font-weight: 800;
    flex-shrink: 0;
}

body.vg-page-parent-child-profile .pp-att-today-card-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.9;
}

body.vg-page-parent-child-profile .pp-att-today-card-status {
    display: block;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.15;
    margin-top: 4px;
}

body.vg-page-parent-child-profile .pp-att-month-chart {
    margin-bottom: 16px;
    padding: 14px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

body.vg-page-parent-child-profile .pp-att-pie-wrap {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

body.vg-page-parent-child-profile .pp-att-pie {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

body.vg-page-parent-child-profile .pp-att-pie-pct {
    font-size: 7px;
    font-weight: 800;
    fill: #15803d;
}

body.vg-page-parent-child-profile .pp-att-pie-cap {
    font-size: 4px;
    font-weight: 700;
    fill: #64748b;
}

body.vg-page-parent-child-profile .pp-att-pie-legend {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
    color: #64748b;
}

body.vg-page-parent-child-profile .pp-att-pie-legend li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

body.vg-page-parent-child-profile .pp-att-pie-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

body.vg-page-parent-child-profile .pp-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

body.vg-page-parent-child-profile .pp-stat-card {
    padding: 14px;
    border-radius: 14px;
    color: #fff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1);
}

body.vg-page-parent-child-profile .pp-stat-card--green { background: linear-gradient(135deg, #059669, #10b981); }
body.vg-page-parent-child-profile .pp-stat-card--rose { background: linear-gradient(135deg, #e11d48, #f43f5e); }
body.vg-page-parent-child-profile .pp-stat-card--amber { background: linear-gradient(135deg, #d97706, #f59e0b); }
body.vg-page-parent-child-profile .pp-stat-card--blue { background: linear-gradient(135deg, #2563eb, #3b82f6); }

body.vg-page-parent-child-profile .pp-stat-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    opacity: 0.92;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

body.vg-page-parent-child-profile .pp-stat-value {
    display: block;
    font-size: 22px;
    font-weight: 800;
    margin-top: 4px;
    line-height: 1.15;
}

body.vg-page-parent-child-profile .pp-att-log {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

body.vg-page-parent-child-profile .pp-att-day {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

body.vg-page-parent-child-profile .pp-att-day-primary {
    font-weight: 700;
    color: #0f172a;
}

body.vg-page-parent-child-profile .pp-att-badge {
    font-size: 12px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 999px;
    white-space: nowrap;
}

body.vg-page-parent-child-profile .pp-att-badge--present { background: #dcfce7; color: #15803d; }
body.vg-page-parent-child-profile .pp-att-badge--absent { background: #fee2e2; color: #b91c1c; }
body.vg-page-parent-child-profile .pp-att-badge--leave { background: #fef3c7; color: #b45309; }
body.vg-page-parent-child-profile .pp-att-badge--half { background: #dbeafe; color: #1d4ed8; }
body.vg-page-parent-child-profile .pp-att-badge--muted { background: #f1f5f9; color: #64748b; }

body.vg-page-parent-child-profile .pp-att-pagination {
    margin-top: 8px;
}

@media (min-width: 640px) {
    body.vg-page-parent-child-profile .pp-att-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.vg-page-parent-child-profile .pp-stat-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.pp-sidebar-session {
    margin-top: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.72);
}

.pp-header-profile {
    pointer-events: none;
}

/* Parent portal content column — mobile full; desktop ~col-8 */
body.vg-parent-portal .vg-workspace {
    width: 100%;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

@media (min-width: 992px) {
    body.vg-parent-portal .vg-workspace {
        width: 66.666%;
        max-width: 880px;
    }
}

/* Notifications inbox (PWA parity) */
.pp-alerts-page {
    padding: 4px 0 28px;
}

.pp-alerts-head {
    margin-bottom: 16px;
}

.pp-alerts-title {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
}

.pp-alerts-sub {
    margin: 4px 0 0;
    font-size: 14px;
    color: #64748b;
}

.pp-alerts-child-tabs,
.pp-alerts-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 0 12px;
    margin-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.pp-alerts-child-tabs::-webkit-scrollbar,
.pp-alerts-tabs::-webkit-scrollbar {
    display: none;
}

.pp-alerts-tab {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.pp-alerts-tab--child {
    background: #f8fafc;
}

.pp-alerts-tab.is-active {
    background: #c2410c;
    border-color: #c2410c;
    color: #fff;
}

.pp-alerts-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.pp-alerts-unread {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #c2410c;
}

.pp-alerts-mark-all {
    min-height: 36px;
    font-size: 12px;
}

.pp-alerts-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pp-alert-card {
    display: block;
    padding: 14px 16px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.pp-alert-card--unread {
    border-color: #fed7aa;
    background: linear-gradient(135deg, #fff7ed, #fff);
}

.pp-alert-card-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
}

.pp-alert-card-title {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
}

.pp-alert-card-type {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
}

.pp-alert-card-body {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: #475569;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pp-alert-card-meta {
    margin: 8px 0 0;
    font-size: 12px;
    color: #94a3b8;
}

.pp-alert-detail-card {
    padding: 18px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.pp-alert-back {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 700;
    color: #c2410c;
    text-decoration: none;
}

.pp-alert-detail-title {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
}

.pp-alert-detail-meta {
    margin: 0 0 12px;
    font-size: 13px;
    color: #64748b;
}

.pp-alert-detail-body {
    font-size: 14px;
    line-height: 1.55;
    color: #334155;
    margin-bottom: 16px;
}

.pp-alert-open-link {
    display: inline-flex;
    text-decoration: none;
}

.vgs-notif-panel-foot {
    padding: 10px 12px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.vgs-notif-view-all {
    font-size: 13px;
    font-weight: 700;
    color: #c2410c;
    text-decoration: none;
}

.vgs-notif-view-all:hover {
    text-decoration: underline;
}

.pp-home {
    max-width: none;
    width: 100%;
    margin: 0 auto;
    padding: 8px 0 24px;
}

.pp-school-welcome {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
    padding: 22px 20px;
    border-radius: 22px;
    background: linear-gradient(135deg, #fff7ed 0%, #fff 55%, #fff7ed 100%);
    border: 1px solid #fed7aa;
    box-shadow: 0 8px 28px rgba(194, 65, 12, 0.08);
}

/* PWA-parity orange hero on Parents Dashboard */
.pp-school-welcome--hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    min-height: min(28vh, 260px);
    padding: 28px 20px 22px;
    border: none;
    color: #fff;
    background: linear-gradient(155deg, #9a3412 0%, #ea580c 42%, #fb923c 100%);
    box-shadow: 0 16px 40px rgba(194, 65, 12, 0.28);
}

.pp-school-welcome-logo-wrap {
    flex-shrink: 0;
}

.pp-school-welcome--hero .pp-school-welcome-logo-wrap {
    padding: 8px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    line-height: 0;
}

.pp-school-welcome-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 18px;
    background: #fff;
    padding: 6px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.pp-school-welcome--hero .pp-school-welcome-logo {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    padding: 0;
    box-shadow: none;
}

.pp-school-welcome-logo--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    background: #fff;
}

.pp-school-welcome--hero .pp-school-welcome-logo--fallback {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    font-size: 40px;
}

.pp-school-welcome-kicker {
    margin: 0 0 4px;
    font-size: 14px;
    color: #c2410c;
    font-weight: 600;
}

.pp-school-welcome--hero .pp-school-welcome-kicker {
    color: rgba(255, 255, 255, 0.95);
}

.pp-school-welcome-title {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
}

.pp-school-welcome--hero .pp-school-welcome-title {
    color: #fff;
    font-size: clamp(20px, 4vw, 26px);
}

.pp-school-welcome-session {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

.pp-school-welcome--hero .pp-school-welcome-session {
    color: rgba(255, 255, 255, 0.9);
}

.pp-school-welcome-powered {
    margin: 10px 0 0;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
}

.pp-school-welcome--hero .pp-school-welcome-powered {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 12px;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.pp-school-brief {
    display: block;
    margin-bottom: 22px;
    padding: 16px 18px;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    background: linear-gradient(160deg, #f8fafc 0%, #ffffff 55%, #f1f5f9 100%);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pp-school-brief:hover {
    border-color: #fdba74;
    box-shadow: 0 10px 28px rgba(194, 65, 12, 0.1);
}

.pp-school-brief-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.pp-school-brief-label {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.pp-school-brief-cta {
    font-size: 12px;
    font-weight: 700;
    color: #c2410c;
}

.pp-school-brief-body {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: #475569;
}

.pp-home-section {
    margin-bottom: 18px;
}

.pp-home-section-title {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
}

.pp-home-section-sub {
    margin: 0;
    font-size: 14px;
    color: #64748b;
}

.pp-home-hero {
    margin-bottom: 24px;
}

.pp-home-greet {
    margin: 0 0 6px;
    color: #64748b;
    font-size: 14px;
}

.pp-home-title {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
}

.pp-home-sub {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.pp-children-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.pp-child-card {
    display: flex;
    gap: 16px;
    padding: 18px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    overflow: hidden;
}

.pp-child-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, #c2410c, #ea580c);
}

.pp-child-card--rose::before { background: linear-gradient(180deg, #e11d48, #fb7185); }
.pp-child-card--purple::before { background: linear-gradient(180deg, #7c3aed, #a78bfa); }
.pp-child-card--teal::before { background: linear-gradient(180deg, #0d9488, #2dd4bf); }

.pp-child-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(194, 65, 12, 0.12);
    border-color: #fdba74;
}

.pp-child-photo {
    width: 72px;
    height: 88px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    background: #fff7ed;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pp-child-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pp-child-initial {
    font-size: 28px;
    font-weight: 800;
    color: #c2410c;
}

.pp-child-body {
    min-width: 0;
    flex: 1;
}

.pp-child-name {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.pp-child-meta {
    margin: 0 0 4px;
    font-size: 13px;
    color: #64748b;
}

.pp-child-roll {
    margin: 0 0 10px;
    font-size: 12px;
    color: #94a3b8;
}

.pp-child-cta {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #c2410c;
}

.pp-empty-state {
    text-align: center;
    padding: 48px 24px;
    background: #fff;
    border-radius: 18px;
    border: 1px dashed #cbd5e1;
}

.pp-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.pp-profile-header-card {
    margin-bottom: 24px;
}

.pp-profile-hero {
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 55%, #f8fafc 100%);
}

/* Compact hero on non-overview tabs — fixes giant photo on mobile */
.pp-profile-hero--compact {
    flex-direction: row !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 14px 16px !important;
}

.pp-profile-hero--compact .sp-profile-photo-wrap {
    width: auto;
    flex-shrink: 0;
}

.pp-profile-hero--compact .sp-profile-photo {
    width: 72px !important;
    height: 88px !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    border-radius: 14px !important;
    font-size: 28px !important;
}

.pp-profile-hero--compact .sp-profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pp-profile-hero--compact .sp-profile-name {
    font-size: 20px;
}

.pp-profile-hero--compact .sp-profile-meta {
    margin-bottom: 0;
    font-size: 13px;
}

.sp-profile-photo img,
.pp-peer-photo img,
.pp-teacher-photo img,
.pp-child-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pp-profile-content-card .pp-profile-tab-content {
    padding: 24px;
}

.pp-count-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-size: 12px;
    font-weight: 700;
}

/* Student-profile style overview (parent read-only) */
body.vg-page-parent-child-profile .sp-overview {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

body.vg-page-parent-child-profile .sp-overview-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

body.vg-page-parent-child-profile .sp-overview-stats--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.vg-page-parent-child-profile .sp-stat-card {
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

body.vg-page-parent-child-profile .sp-stat-card--orange {
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border: 1px solid #fdba74;
}

body.vg-page-parent-child-profile .sp-stat-card--rose {
    background: linear-gradient(135deg, #fff1f2, #ffe4e6);
    border: 1px solid #fda4af;
}

body.vg-page-parent-child-profile .sp-stat-card--purple {
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    border: 1px solid #c4b5fd;
}

body.vg-page-parent-child-profile .sp-stat-card--green {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 1px solid #6ee7b7;
}

body.vg-page-parent-child-profile .sp-stat-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 6px;
}

body.vg-page-parent-child-profile .sp-stat-value {
    display: block;
    font-size: 18px;
    line-height: 1.3;
    color: #0f172a;
    font-weight: 700;
}

body.vg-page-parent-child-profile .sp-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

body.vg-page-parent-child-profile .sp-panel--blue {
    border-color: #bfdbfe;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

body.vg-page-parent-child-profile .sp-panel--purple {
    border-color: #ddd6fe;
    background: linear-gradient(180deg, #ffffff 0%, #faf8ff 100%);
}

body.vg-page-parent-child-profile .sp-panel-title {
    margin: 0 0 4px;
    font-size: 18px;
    color: #0f172a;
}

body.vg-page-parent-child-profile .sp-panel-sub {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

body.vg-page-parent-child-profile .sp-guardian-card {
    border-radius: 16px;
    padding: 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

body.vg-page-parent-child-profile .sp-guardian-card--father {
    background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
    border-color: #bfdbfe;
}

body.vg-page-parent-child-profile .sp-guardian-card--mother {
    background: linear-gradient(180deg, #ffffff 0%, #fff1f2 100%);
    border-color: #fecdd3;
}

body.vg-page-parent-child-profile .sp-guardian-card--primary {
    background: linear-gradient(180deg, #ffffff 0%, #ecfdf5 100%);
    border-color: #a7f3d0;
    margin-top: 14px;
}

body.vg-page-parent-child-profile .sp-guardian-card-title {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

body.vg-page-parent-child-profile .sp-address-card {
    margin-top: 16px;
    padding: 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff7ed, #ffffff);
    border: 1px solid #fed7aa;
}

body.vg-page-parent-child-profile .sp-address-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #9a3412;
    margin-bottom: 8px;
}

.pp-panel-head-main {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.pp-panel-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.pp-panel-icon--orange { background: #ffedd5; border: 1px solid #fdba74; }
.pp-panel-icon--blue { background: #dbeafe; border: 1px solid #93c5fd; }
.pp-panel-icon--green { background: #d1fae5; border: 1px solid #6ee7b7; }
.pp-panel-icon--purple { background: #ede9fe; border: 1px solid #c4b5fd; }

.pp-panel--personal { border-top: 4px solid #ea580c; }
.pp-panel--guardian { border-top: 4px solid #2563eb; }
.pp-panel--school { border-top: 4px solid #059669; }
.pp-panel--history { border-top: 4px solid #7c3aed; }

.pp-tab-head-banner {
    padding: 16px 18px;
    border-radius: 14px;
    margin-bottom: 16px;
}

.pp-tab-head-banner--teachers {
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
    border: 1px solid #fed7aa;
}

body.vg-page-parent-child-profile .sp-tab-title {
    margin: 0 0 4px;
    font-size: 20px;
    color: #0f172a;
}

body.vg-page-parent-child-profile .sp-overview-panels {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

body.vg-page-parent-child-profile .sp-info-row {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

body.vg-page-parent-child-profile .sp-info-label {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #64748b;
}

body.vg-page-parent-child-profile .sp-info-value {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: #1e293b;
}

body.vg-page-parent-child-profile .sp-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

body.vg-page-parent-child-profile .sp-timeline-item {
    position: relative;
    display: flex;
    gap: 12px;
    padding: 0 0 18px 4px;
}

body.vg-page-parent-child-profile .sp-timeline-item:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 18px;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}

body.vg-page-parent-child-profile .sp-timeline-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e2e8f0;
    border: 3px solid #fff;
    flex-shrink: 0;
    margin-top: 2px;
}

body.vg-page-parent-child-profile .sp-timeline-item.is-current .sp-timeline-dot {
    background: #c2410c;
}

body.vg-page-parent-child-profile .sp-timeline-body {
    flex: 1;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
}

body.vg-page-parent-child-profile .sp-timeline-item.is-current .sp-timeline-body {
    background: #fff7ed;
    border-color: #fed7aa;
}

body.vg-page-parent-child-profile .sp-timeline-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

body.vg-page-parent-child-profile .sp-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
}

body.vg-page-parent-child-profile .sp-badge--active {
    background: #dcfce7;
    color: #166534;
}

body.vg-page-parent-child-profile .sp-timeline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 13px;
    color: #64748b;
}

/* My Peers — native contact list */
.pp-peers-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pp-peer-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.pp-peer-row--self {
    background: linear-gradient(135deg, #fff7ed, #ffffff);
    border-color: #fdba74;
}

.pp-peer-photo {
    width: 52px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #fff7ed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c2410c;
    font-weight: 800;
    font-size: 20px;
}

.pp-peer-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pp-peer-name {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.pp-peer-roll {
    font-size: 13px;
    color: #64748b;
    margin-top: 2px;
}

.pp-self-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    background: #c2410c;
    color: #fff;
}

/* Teachers */
.pp-teachers-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pp-teacher-card {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.pp-teacher-card--lead {
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
    border-color: #fdba74;
}

.pp-teacher-photo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    background: #fff7ed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c2410c;
    font-weight: 800;
    font-size: 24px;
    position: relative;
}

.pp-teacher-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pp-teacher-name {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
}

.pp-teacher-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.pp-teacher-role {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-size: 11px;
    font-weight: 700;
}

.pp-teacher-card--lead .pp-teacher-role {
    background: #ffedd5;
    border-color: #fdba74;
}

.pp-teacher-designation {
    margin: 6px 0 0;
    font-size: 13px;
    color: #64748b;
}

.pp-teacher-contacts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.pp-teacher-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.pp-teacher-contact:hover {
    background: #fff7ed;
    border-color: #fdba74;
    color: #9a3412;
}

.pp-teacher-contact--muted {
    color: #94a3b8;
    font-weight: 500;
}

.pp-fees-kpi {
    margin-bottom: 20px;
}

/* Fees — light soft hero (readable on desktop) + component cards */
.pp-fees-hero {
    margin-bottom: 16px;
    padding: 18px 16px;
    border-radius: 22px;
    color: #9a3412;
    background: linear-gradient(160deg, #fffbeb 0%, #fff7ed 48%, #ffedd5 100%);
    border: 1px solid #fed7aa;
    box-shadow: 0 10px 28px rgba(194, 65, 12, 0.1);
}

.pp-fees-hero-main span {
    display: block;
    font-size: 12px;
    font-weight: 700;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #c2410c;
}

.pp-fees-hero-main strong {
    display: block;
    margin-top: 4px;
    font-size: 28px;
    font-weight: 800;
    color: #9a3412;
}

.pp-fees-hero-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
}

.pp-fees-hero-tile {
    padding: 10px 8px;
    border-radius: 14px;
    text-align: center;
}

.pp-fees-hero .pp-fees-hero-tile--paid {
    background: #166534 !important;
    color: #fff !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.pp-fees-hero .pp-fees-hero-tile--overdue {
    background: #b91c1c !important;
    color: #fff !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.pp-fees-hero .pp-fees-hero-tile--upcoming {
    background: #64748b !important;
    color: #fff !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.pp-fees-hero-tile span,
.pp-fees-hero-tile strong {
    display: block;
    color: #fff !important;
}

.pp-fees-hero-tile span {
    font-size: 11px;
    font-weight: 700;
    opacity: 0.95;
}

.pp-fees-hero-tile strong {
    margin-top: 2px;
    font-size: 14px;
    font-weight: 800;
}

.pp-fee-structure {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 18px 0;
}

.pp-fee-row-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.pp-fee-row-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    background: linear-gradient(145deg, #c2410c, #ea580c);
}

.pp-fee-row-card--1 .pp-fee-row-icon { background: linear-gradient(145deg, #e11d48, #fb7185); }
.pp-fee-row-card--2 .pp-fee-row-icon { background: linear-gradient(145deg, #7c3aed, #a78bfa); }
.pp-fee-row-card--3 .pp-fee-row-icon { background: linear-gradient(145deg, #0d9488, #2dd4bf); }

.pp-fee-row-body { min-width: 0; flex: 1; }

.pp-fee-row-top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
}

.pp-fee-row-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
}

.pp-fee-row-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.pp-fee-status {
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.pp-fee-status--paid { background: #dcfce7; color: #166534; }
.pp-fee-status--overdue { background: #fee2e2; color: #b91c1c; }
.pp-fee-status--upcoming { background: #e2e8f0; color: #475569; }
.pp-fee-status--partial,
.pp-fee-status--pending { background: #ffedd5; color: #c2410c; }

a.pp-pay-now-btn,
button.pp-pay-now-btn,
.pp-pay-now-btn {
    background: linear-gradient(135deg, #16a34a, #22c55e) !important;
    border-color: transparent !important;
    box-shadow: 0 6px 18px rgba(22, 163, 74, 0.32) !important;
    color: #fff !important;
}

.pp-pay-component-btn {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    cursor: pointer;
}

/* Choose payment sheet */
.pp-pay-sheet {
    margin: 14px 0 20px;
    padding: 16px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
}

.pp-pay-sheet-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.pp-pay-sheet-head h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
}

.pp-pay-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
}

.pp-pay-method-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 12px;
}

.pp-pay-method-card {
    display: block;
    width: 100%;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    text-align: left;
    font: inherit;
    color: inherit;
    box-sizing: border-box;
}

.pp-pay-method-card--razorpay {
    background: linear-gradient(160deg, #ecfdf5 0%, #f0fdf4 55%, #fff 100%);
    border-color: #86efac;
    box-shadow: 0 10px 28px rgba(22, 163, 74, 0.12);
}

.pp-pay-method-card--manual {
    background: linear-gradient(160deg, #eff6ff 0%, #f8fafc 60%, #fff 100%);
    border-color: #93c5fd;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.08);
}

.pp-pay-method-card--instant {
    background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
    border-color: #86efac;
}

.pp-pay-method-kicker {
    display: inline-block;
    margin-bottom: 8px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #166534;
    background: #dcfce7;
}

.pp-pay-method-kicker--manual {
    color: #1d4ed8;
    background: #dbeafe;
}

.pp-pay-method-title {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
    line-height: 1.3;
}

.pp-pay-method-sub {
    display: block;
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.45;
    margin-bottom: 12px;
}

.pp-pay-online-now-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin-top: 4px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #15803d, #22c55e);
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(21, 128, 61, 0.35);
}

.pp-pay-powered {
    display: block;
    margin-top: 10px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.02em;
}

.pp-pay-manual-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin-top: 12px;
    border: 1px solid #93c5fd;
    border-radius: 12px;
    background: #fff;
    color: #1d4ed8;
    font: inherit;
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
}

.pp-pay-all-wrap {
    margin: 0 0 16px;
    padding: 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border: 1px solid #fdba74;
}

.pp-pay-all-btn {
    width: 100%;
    min-height: 48px;
    font-size: 15px;
    font-weight: 800;
}

.pp-pay-all-hint {
    margin: 8px 0 0;
    font-size: 12px;
    color: #9a3412;
    text-align: center;
    line-height: 1.35;
}

.pp-upi-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 4px 0 8px;
}

.pp-upi-logo {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #334155;
}

.pp-upi-logo--gpay { color: #1a73e8; border-color: #bfdbfe; background: #eff6ff; }
.pp-upi-logo--phonepe { color: #5b2c9d; border-color: #ddd6fe; background: #f5f3ff; }
.pp-upi-logo--paytm { color: #00baf2; border-color: #bae6fd; background: #f0f9ff; }
.pp-upi-logo--bhim { color: #c2410c; border-color: #fed7aa; background: #fff7ed; }

.pp-pay-bank {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.pp-pay-bank h4 {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 800;
    color: #1e40af;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pp-pay-bank-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    padding: 3px 0;
    color: #334155;
}

.pp-pay-bank-row span:first-child {
    color: #64748b;
    font-weight: 600;
}

.pp-pay-bank-row strong {
    font-weight: 700;
    word-break: break-all;
    text-align: right;
}

/* Child overview — quick access (PWA module cards) */
.pp-quick-access {
    margin-bottom: 22px;
}

.pp-quick-access-title {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.pp-module-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

@media (min-width: 768px) {
    .pp-module-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.pp-module-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-height: 108px;
    padding: 14px;
    border-radius: 18px;
    color: #fff;
    text-decoration: none;
    text-align: left;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    position: relative;
    overflow: hidden;
    transition: transform 0.15s ease;
}

.pp-module-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.22) 100%);
    pointer-events: none;
}

.pp-module-card > * {
    position: relative;
    z-index: 1;
}

.pp-module-card:hover {
    transform: translateY(-2px);
    color: #fff;
}

.pp-module-icon {
    font-size: 22px;
    line-height: 1;
    margin-bottom: 4px;
}

.pp-module-label {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.32);
}

.pp-module-desc {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.95);
    margin-top: auto;
    line-height: 1.3;
    font-weight: 600;
}

.pp-module-card--orange { background: linear-gradient(145deg, #c2410c, #fb923c); }
.pp-module-card--rose { background: linear-gradient(145deg, #be123c, #f43f5e); }
.pp-module-card--blue { background: linear-gradient(145deg, #2563eb, #60a5fa); }
.pp-module-card--indigo { background: linear-gradient(145deg, #4f46e5, #818cf8); }
.pp-module-card--green { background: linear-gradient(145deg, #16a34a, #4ade80); }
.pp-module-card--purple { background: linear-gradient(145deg, #7c3aed, #c4b5fd); }
.pp-module-card--teal { background: linear-gradient(145deg, #0d9488, #5eead4); }

/* Parent sidebar — active child + siblings */
.vg-sidebar--parent .pp-sidebar-child-card {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-align: left;
}

.vg-sidebar--parent .pp-sidebar-child-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.8;
}

.vg-sidebar--parent .pp-sidebar-child-name {
    margin-top: 4px;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
}

.vg-sidebar--parent .pp-sidebar-child-meta {
    margin-top: 2px;
    font-size: 12px;
    opacity: 0.85;
}

.vg-sidebar--parent .pp-sidebar-switch {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #fed7aa;
    text-decoration: none;
}

.vg-sidebar--parent .pp-sidebar-switch:hover {
    color: #fff;
    text-decoration: underline;
}

.vg-sidebar--parent .pp-nav-sub {
    display: block;
    font-size: 11px;
    font-weight: 600;
    opacity: 0.75;
    margin-top: 2px;
}

.vg-sidebar--parent .pp-sidebar-siblings {
    margin: 10px 0 6px;
    padding: 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.vg-sidebar--parent .pp-sidebar-siblings-label,
.vg-sidebar--parent .pp-sidebar-child-nav-label {
    padding: 8px 16px 4px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.65;
}

.vg-sidebar--parent .pp-nav-child-notif {
    padding-left: 28px !important;
    font-size: 13px;
    opacity: 0.92;
}

.pp-filter-form {
    margin-bottom: 16px;
    max-width: 280px;
}

@media (min-width: 768px) {
    body.vg-page-parent-child-profile .sp-overview-stats--4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    body.vg-page-parent-child-profile .sp-tab-grid--2 {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 900px) {
    .pp-home {
        padding: 0 0 20px;
    }

    .pp-home-title {
        font-size: 24px;
    }

    .pp-children-grid {
        grid-template-columns: 1fr;
    }

    body.vg-page-parent-child-profile .pp-profile-header-card {
        margin-left: -12px;
        margin-right: -12px;
        margin-bottom: 12px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    body.vg-page-parent-child-profile .pp-profile-header-card > .vgs-card-body {
        padding: 0;
    }

    body.vg-page-parent-child-profile .pp-profile-content-card {
        margin-left: -12px;
        margin-right: -12px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    body.vg-page-parent-child-profile .pp-profile-content-card > .vgs-card-body {
        padding: 16px;
    }

    body.vg-page-parent-child-profile .sp-profile-hero {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        padding: 18px 16px 20px;
    }

    body.vg-page-parent-child-profile .sp-profile-photo {
        width: 100%;
        max-width: none;
        aspect-ratio: 4 / 5;
        max-height: 300px;
        height: auto;
        min-height: 0;
        border-radius: 22px;
        overflow: hidden;
        position: relative;
    }

    body.vg-page-parent-child-profile:not(.pp-hero-compact) .sp-profile-photo img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    body.vg-page-parent-child-profile.pp-hero-compact .sp-profile-hero {
        flex-direction: row !important;
        padding: 12px 14px !important;
        gap: 12px !important;
    }

    body.vg-page-parent-child-profile .sp-profile-tabs {
        position: sticky;
        top: calc(var(--vg-safe-top, 0px) + 56px);
        z-index: 20;
        display: flex !important;
        gap: 6px;
        padding: 8px 10px;
        margin: 0;
        background: rgba(248, 250, 252, 0.94);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid #e2e8f0;
        border-top: 1px solid #e2e8f0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    body.vg-page-parent-child-profile .sp-profile-tabs::-webkit-scrollbar {
        display: none;
    }

    body.vg-page-parent-child-profile .sp-profile-tab {
        flex: 0 0 auto;
        min-height: 44px;
        min-width: 72px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        border-radius: 12px;
        white-space: nowrap;
        line-height: 1.2;
        padding: 8px 12px;
        font-size: 12px;
        font-weight: 700;
        border: 1px solid #e2e8f0;
        border-bottom: 1px solid #e2e8f0;
    }

    body.vg-page-parent-child-profile .sp-profile-tab.is-active {
        background: var(--vgs-primary, #c2410c);
        color: #fff;
        border-color: var(--vgs-primary, #c2410c);
        box-shadow: 0 4px 12px rgba(194, 65, 12, 0.25);
    }

    body.vg-page-parent-child-profile .sp-profile-tab-long {
        display: none;
    }

    body.vg-page-parent-child-profile .sp-profile-tab-short {
        display: inline;
    }

    body.vg-page-parent-child-profile .sp-tab-grid--2 {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
    }

    body.vg-page-parent-child-profile .sp-info-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    body.vg-parent-portal .pp-header-session {
        display: none;
    }

    body.vg-parent-portal .pp-header-profile .vgs-profile-text {
        display: none;
    }

    .pp-peer-row,
    .pp-teacher-card {
        border-radius: 14px;
    }

    .pp-teacher-contact {
        width: 100%;
    }
}

@media (min-width: 769px) {
    body.vg-page-parent-child-profile .sp-profile-tab-short {
        display: none;
    }

    body.vg-page-parent-child-profile .sp-profile-tab-long {
        display: inline;
    }
}

/* School information page */
.pp-school-info {
    max-width: none;
    width: 100%;
    margin: 0 auto;
    padding: 8px 0 28px;
}

.pp-school-info-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
    padding: 20px;
    border-radius: 20px;
    background: linear-gradient(135deg, #fff7ed, #fff);
    border: 1px solid #fed7aa;
}

.pp-school-info-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 18px;
    background: #fff;
    padding: 6px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.pp-school-info-logo--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.pp-school-info-kicker {
    margin: 0 0 4px;
    font-size: 13px;
    color: #c2410c;
    font-weight: 600;
}

.pp-school-info-title {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
}

.pp-school-info-session {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

.pp-school-info-card {
    margin-bottom: 16px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

.pp-school-info-card-title {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}

.pp-school-info-list {
    margin: 0;
}

.pp-school-info-row {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 8px 16px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.pp-school-info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pp-school-info-row dt {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.pp-school-info-row dd {
    margin: 0;
    font-size: 14px;
    color: #0f172a;
    word-break: break-word;
}

.pp-contact-link {
    color: #c2410c;
    text-decoration: none;
    font-weight: 600;
}

.pp-contact-link:hover {
    text-decoration: underline;
}

.pp-school-info-foot {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: #64748b;
    text-align: center;
}

@media (max-width: 768px) {
    .pp-school-welcome {
        flex-direction: column;
        text-align: center;
        padding: 18px 16px;
    }

    .pp-school-welcome--hero {
        min-height: min(32vh, 280px);
        padding: 24px 16px 20px;
    }

    .pp-school-welcome-title {
        font-size: 20px;
    }

    .pp-school-info-hero {
        flex-direction: column;
        text-align: center;
    }

    .pp-school-info-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .pp-fees-hero-main strong {
        font-size: 24px;
    }

    .pp-fee-row-actions .vgs-btn-primary,
    .pp-fee-row-actions .vgs-btn-secondary {
        width: 100%;
        justify-content: center;
    }
}
