/* nipunindia.com font format only — Inter body + Poppins headings (dashboard-scoped, !important) */
body.fr-portal.fr-dash-nipunindia-fonts,
body.fr-portal.fr-dash-nipunindia-fonts .fr-dash-shell,
body.fr-portal.fr-dash-nipunindia-fonts .fr-dash-shell--ios {
    --ac-font-body: Inter, system-ui, sans-serif !important;
    --ac-font-display: Poppins, system-ui, sans-serif !important;
    --fr-font-sans: Inter, system-ui, sans-serif !important;
    --fr-font-heading: Poppins, system-ui, sans-serif !important;
    font-family: Inter, system-ui, sans-serif !important;
    font-weight: 400 !important;
    line-height: 1.55 !important;
    letter-spacing: 0 !important;
}

body.fr-portal.fr-dash-nipunindia-fonts *:not(i):not(.fas):not(.fa-solid):not(.far):not(.fa-regular):not(.fab):not(.fa-brands) {
    font-family: Inter, system-ui, sans-serif !important;
}

body.fr-portal.fr-dash-nipunindia-fonts h1,
body.fr-portal.fr-dash-nipunindia-fonts h2,
body.fr-portal.fr-dash-nipunindia-fonts h3,
body.fr-portal.fr-dash-nipunindia-fonts h4,
body.fr-portal.fr-dash-nipunindia-fonts h5,
body.fr-portal.fr-dash-nipunindia-fonts .fr-page-title,
body.fr-portal.fr-dash-nipunindia-fonts .fr-dash-section-title,
body.fr-portal.fr-dash-nipunindia-fonts .fr-panel__title,
body.fr-portal.fr-dash-nipunindia-fonts .fr-dash-panel__title,
body.fr-portal.fr-dash-nipunindia-fonts .fr-chart-card__title,
body.fr-portal.fr-dash-nipunindia-fonts .fr-daily-fee-card__title,
body.fr-portal.fr-dash-nipunindia-fonts .fr-top-students-card__title,
body.fr-portal.fr-dash-nipunindia-fonts .fr-dash-header__title--compact,
body.fr-portal.fr-dash-nipunindia-fonts .fr-dash-kpi-card__value,
body.fr-portal.fr-dash-nipunindia-fonts .fr-dash-mini-card__value,
body.fr-portal.fr-dash-nipunindia-fonts .fr-dash-insight-stat__value,
body.fr-portal.fr-dash-nipunindia-fonts .fr-dash-holiday-cal__month-label,
body.fr-portal.fr-dash-nipunindia-fonts .fr-dash-insights__fee-tile-value,
body.fr-portal.fr-dash-nipunindia-fonts .fr-dash-timeline__title,
body.fr-portal.fr-dash-nipunindia-fonts .font-heading,
body.fr-portal.fr-dash-nipunindia-fonts .fr-premium-ribbon__title {
    font-family: Poppins, system-ui, sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: -0.015em !important;
    line-height: 1.35 !important;
}

body.fr-portal.fr-dash-nipunindia-fonts .fr-dash-kpi-card__value,
body.fr-portal.fr-dash-nipunindia-fonts .fr-dash-mini-card__value,
body.fr-portal.fr-dash-nipunindia-fonts .fr-dash-insight-stat__value,
body.fr-portal.fr-dash-nipunindia-fonts .fr-dash-insights__fee-tile-value {
    font-weight: 700 !important;
    line-height: 1.15 !important;
    font-variant-numeric: tabular-nums !important;
}

body.fr-portal.fr-dash-nipunindia-fonts .fas,
body.fr-portal.fr-dash-nipunindia-fonts .fa-solid,
body.fr-portal.fr-dash-nipunindia-fonts i.fas,
body.fr-portal.fr-dash-nipunindia-fonts i.fa-solid {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}
body.fr-portal.fr-dash-nipunindia-fonts .far,
body.fr-portal.fr-dash-nipunindia-fonts .fa-regular,
body.fr-portal.fr-dash-nipunindia-fonts i.far,
body.fr-portal.fr-dash-nipunindia-fonts i.fa-regular {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 400 !important;
}
body.fr-portal.fr-dash-nipunindia-fonts .fab,
body.fr-portal.fr-dash-nipunindia-fonts .fa-brands,
body.fr-portal.fr-dash-nipunindia-fonts i.fab,
body.fr-portal.fr-dash-nipunindia-fonts i.fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

body { background: #f6f7f9; }
.fr-dash-shell { max-width: none; margin: 0; width: 100%; }
.fr-subscription-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    max-width: min(100%, 17rem);
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    border: 1px solid;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    text-align: left;
}
.fr-subscription-chip--danger { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.fr-subscription-chip--warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.fr-subscription-chip--success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.fr-subscription-chip--info { background: #f0f9ff; border-color: #bae6fd; color: #0c4a6e; }
@media (min-width: 1024px) {
    .fr-subscription-chip { max-width: 22rem; }
}
.fr-panel {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 0.9rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.045);
}
.fr-panel h4 { letter-spacing: -0.02em; }
.fr-chart-card {
    background: #fff;
    border-radius: 0.75rem;
    border: 1px solid #f3f4f6;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 320px;
}
.fr-chart-card__head {
    padding: 1rem 1.15rem .65rem;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
}
.fr-chart-card__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}
.fr-chart-card__sub {
    font-size: .75rem;
    font-weight: 500;
    color: #6b7280;
    margin: .25rem 0 0;
}
.fr-chart-card__body {
    flex: 1;
    padding: .75rem 1rem 1.1rem;
    position: relative;
}
.fr-chart-canvas-wrap {
    position: relative;
    width: 100%;
    height: 260px;
    min-height: 260px;
}
.fr-chart-canvas-wrap--short {
    height: 220px;
    min-height: 220px;
}
.fr-chart-canvas-wrap--tall {
    height: 340px;
    min-height: 340px;
}
.fr-chart-canvas-wrap--classbar {
    height: auto;
    min-height: 200px;
}
.fr-chart-canvas-wrap canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}
.fr-chart-fallback-msg {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    font-size: .8rem;
    font-weight: 600;
    color: #64748b;
    background: #f8fafc;
    border-radius: .75rem;
}
.fr-chart-fallback-msg.is-visible {
    display: flex;
}
#fr-dash-insights {
    scroll-margin-top: 5rem;
}
.fr-insights-wrap {
    padding: 0;
}

.fr-ui-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}
.fr-ui-chip--blue { background: #e8edff; color: #3b5bdb; }
.fr-ui-chip--green { background: #d1fae5; color: #047857; }
.fr-ui-chip--amber { background: #fef3c7; color: #b45309; }
.fr-ui-chip--pink { background: #fce7f3; color: #be185d; }
.fr-ui-chip--purple { background: #ede9fe; color: #6d28d9; }
.fr-ui-chip--red { background: #fee2e2; color: #b91c1c; }
.fr-ui-chip--sky { background: #e0f2fe; color: #0369a1; }
a.fr-ui-chip:hover { filter: brightness(0.96); }

.fr-dash-band-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}
.fr-dash-band-head__kicker {
    margin: 0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b;
}
.fr-dash-band-head__title {
    margin: 0.15rem 0 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}

.fr-dash-analytics-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
@media (min-width: 1100px) {
    .fr-dash-analytics-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: stretch;
    }
    .fr-dash-analytics-grid > .fr-daily-fee-card,
    .fr-dash-analytics-grid > .fr-gender-dist-card,
    .fr-dash-analytics-grid > .fr-chart-card {
        width: 100%;
        height: 3.5in;
        min-height: 3.5in;
        max-width: none;
    }
}

.fr-dash-lists-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: start;
}
@media (min-width: 1100px) {
    .fr-dash-lists-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.fr-dash-lists-card__head,
.fr-chart-card__head--row,
.fr-daily-fee-card__head,
.fr-gender-dist-card__head,
.fr-top-students-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.6rem;
}

.fr-dash-lists-card__head {
    margin-bottom: 0.85rem;
}

.fr-dash-insights__timeline {
    padding: 1.1rem 1.15rem 1rem;
    min-height: 0;
}

.fr-chart-card--wide {
    margin-top: 1rem;
}
.fr-chart-card--classbar {
    margin-top: 1rem;
    width: min(100%, 6.5in);
    max-width: 6.5in;
    min-height: 0;
    height: auto;
    overflow: visible;
}
/* Enrollment card: wider + slightly taller (calendar untouched) */
.fr-chart-card--classbar.fr-enroll-card {
    width: 100%;
    max-width: min(100%, 56rem);
    min-height: 16.5rem;
    padding: 1.15rem 1.25rem 1.2rem;
}
.fr-dash-fee-snap-slot {
    margin-top: 1rem;
}

/* Daily fee collection — screenshot bar card (last 15 days) */
.fr-daily-fee-slot {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 1rem;
    min-width: 0;
}

.fr-daily-fee-card {
    width: 100%;
    height: 3.5in;
    max-width: 100%;
    box-sizing: border-box;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e8eaf0;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.055);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.fr-daily-fee-card__head {
    flex-shrink: 0;
    padding: 0.85rem 1.15rem 0.72rem;
    border-bottom: 1px solid #eceff4;
    background: #fff;
}

.fr-daily-fee-card__title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 700;
    color: #3A3F51;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.fr-daily-fee-card__body {
    flex: 1;
    min-height: 0;
    position: relative;
    padding: 0.45rem 0.75rem 0.55rem 0.4rem;
}

.fr-daily-fee-card__body canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 420px) {
    .fr-daily-fee-card {
        width: 100%;
        height: auto;
        min-height: 3.5in;
        aspect-ratio: 5 / 3.5;
    }
}

/* Top Students — one #1 per class / section */
.fr-top-students-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e8eaf0;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.055);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.fr-top-students-card__head {
    flex-shrink: 0;
    padding: 0.85rem 1.15rem 0.72rem;
    border-bottom: 1px solid #eceff4;
}

.fr-top-students-card__title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 700;
    color: #3A3F51;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.fr-top-students-card__empty {
    margin: 0;
    padding: 1.1rem 1.15rem 1.25rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #94a3b8;
    line-height: 1.45;
}

.fr-top-students-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 22rem;
    overflow-y: auto;
}

.fr-top-students-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.72rem 1.1rem;
    border-bottom: 1px solid #f1f3f7;
}

.fr-top-students-row:last-child {
    border-bottom: 0;
}

.fr-top-students-row:hover {
    background: #f4f6fa;
}

.fr-top-students-rank {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

.fr-top-students-rank.is-1 {
    background: #FFD700;
    color: #111827;
}

.fr-top-students-rank.is-2 {
    background: #c5c9d1;
    color: #374151;
}

.fr-top-students-rank.is-3 {
    background: #CD7F32;
    color: #fff;
}

.fr-top-students-rank.is-rest {
    background: #eceef2;
    color: #4b5563;
}

.fr-top-students-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #e8edf5;
}

.fr-top-students-avatar--initials {
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 800;
    color: #4f67e8;
    background: #e8edff;
}

.fr-top-students-meta {
    min-width: 0;
    flex: 1;
}

.fr-top-students-name {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fr-top-students-class {
    margin: 0.12rem 0 0;
    font-size: 0.75rem;
    font-weight: 500;
    color: #9aa3b5;
}

.fr-top-students-score {
    text-align: right;
    flex-shrink: 0;
}

.fr-top-students-pct {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #6b7280;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.fr-top-students-grade {
    display: inline-block;
    margin-top: 0.22rem;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    background: #e8e0ff;
    color: #6d28d9;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Gender distribution — screenshot-matched donut card */
.fr-gender-dist-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8edf3;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 320px;
}
.fr-gender-dist-card__head {
    padding: 1rem 1.25rem .85rem;
    border-bottom: 1px solid #e8edf3;
    background: #fff;
}
.fr-gender-dist-card__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.02em;
    line-height: 1.25;
}
.fr-gender-dist-card__body {
    flex: 1;
    padding: 1.15rem 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.fr-gender-dist-chart {
    position: relative;
    width: 100%;
    margin: 0 auto;
}
.fr-gender-dist-chart__center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    text-align: center;
}
.fr-gender-dist-chart__center-label {
    font-size: .75rem;
    font-weight: 500;
    color: #64748b;
    line-height: 1.2;
}
.fr-gender-dist-chart__center-value {
    margin-top: .15rem;
    font-size: 1.65rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.1;
    letter-spacing: -0.03em;
}
.fr-gender-dist-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.75rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}
.fr-gender-dist-legend li {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .8125rem;
    font-weight: 500;
    color: #64748b;
}
.fr-gender-dist-legend__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.fr-gender-dist-legend__dot--male { background: #6782E8; }
.fr-gender-dist-legend__dot--female { background: #FF729F; }
body.fr-portal.fr-dash-nipunindia-fonts .fr-gender-dist-card__title,
body.fr-portal.fr-dash-nipunindia-fonts .fr-gender-dist-chart__center-value {
    font-family: Poppins, system-ui, sans-serif !important;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #eef2f7; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; }

/* Wallet balance chip — dashboard top bar + school banner */
.fr-wallet-chip {
    position: relative;
    display: inline-block;
}
.fr-wallet-chip > summary {
    list-style: none;
    cursor: pointer;
}
.fr-wallet-chip > summary::-webkit-details-marker {
    display: none;
}
.fr-wallet-chip__trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.42rem 0.65rem;
    border-radius: 0.75rem;
    border: 1px solid transparent;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
    user-select: none;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.fr-wallet-chip__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 0.55rem;
    font-size: 0.72rem;
}
.fr-wallet-chip__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}
.fr-wallet-chip__label {
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.82;
}
.fr-wallet-chip__amount {
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.fr-wallet-chip__caret {
    font-size: 0.58rem;
    opacity: 0.7;
    transition: transform 0.15s ease;
}
.fr-wallet-chip[open] .fr-wallet-chip__caret {
    transform: rotate(180deg);
}
.fr-wallet-chip__menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.35rem);
    z-index: 40;
    min-width: 11.5rem;
    padding: 0.35rem;
    border-radius: 0.8rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
}
.fr-wallet-chip__menu-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.7rem;
    border-radius: 0.55rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #334155;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.12s ease, color 0.12s ease;
}
.fr-wallet-chip__menu-item:hover {
    background: #f1f5f9;
    color: #0f172a;
}
.fr-wallet-chip__menu-item--primary {
    color: #022248;
}
.fr-wallet-chip__menu-item--primary:hover {
    background: rgba(2, 34, 72, 0.08);
    color: #011a33;
}

.fr-wallet-chip--bar.fr-wallet-chip--ok .fr-wallet-chip__trigger {
    background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
    border-color: #a7f3d0;
    color: #065f46;
}
.fr-wallet-chip--bar.fr-wallet-chip--ok .fr-wallet-chip__icon {
    background: rgba(6, 95, 70, 0.12);
    color: #047857;
}
.fr-wallet-chip--bar.fr-wallet-chip--warn .fr-wallet-chip__trigger {
    background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fde68a;
    color: #92400e;
}
.fr-wallet-chip--bar.fr-wallet-chip--warn .fr-wallet-chip__icon {
    background: rgba(180, 83, 9, 0.12);
    color: #b45309;
}
.fr-wallet-chip--bar.fr-wallet-chip--danger .fr-wallet-chip__trigger {
    background: linear-gradient(180deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #fecaca;
    color: #991b1b;
}
.fr-wallet-chip--bar.fr-wallet-chip--danger .fr-wallet-chip__icon {
    background: rgba(185, 28, 28, 0.12);
    color: #b91c1c;
}

/* Dashboard insights panel (replaces module grid) */
.fr-dash-insights__summary {
    margin-top: 0;
}
.fr-dash-insight-stat {
    border-radius: 0.9rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    padding: 1rem 1rem 0.95rem;
    min-height: 6.75rem;
    background: linear-gradient(145deg, #f8fafc 0%, #fff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
.fr-dash-insight-stat--navy { border-color: rgba(2, 34, 72, 0.12); background: linear-gradient(145deg, #eef4fb 0%, #fff 100%); }
.fr-dash-insight-stat--teal { border-color: rgba(15, 118, 110, 0.12); background: linear-gradient(145deg, #ecfdf5 0%, #fff 100%); }
.fr-dash-insight-stat--emerald { border-color: rgba(16, 185, 129, 0.12); background: linear-gradient(145deg, #ecfdf5 0%, #fff 100%); }
.fr-dash-insight-stat--gold { border-color: rgba(242, 178, 68, 0.28); background: linear-gradient(145deg, #fffbeb 0%, #fff 100%); }
.fr-dash-insight-stat__label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}
.fr-dash-insight-stat__value {
    margin-top: 0.35rem;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.05;
    color: var(--fr-dash-navy);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.fr-dash-insight-stat__desc {
    margin-top: 0.35rem;
    font-size: 0.6875rem;
    color: #94a3b8;
    line-height: 1.35;
}
.fr-dash-insight-stat__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.65rem;
    background: rgba(2, 34, 72, 0.08);
    color: var(--fr-dash-navy);
    font-size: 0.9rem;
    flex-shrink: 0;
}
.fr-dash-insight-stat--teal .fr-dash-insight-stat__icon { background: rgba(15, 118, 110, 0.1); color: #0f766e; }
.fr-dash-insight-stat--emerald .fr-dash-insight-stat__icon { background: rgba(16, 185, 129, 0.1); color: #059669; }
.fr-dash-insight-stat--gold .fr-dash-insight-stat__icon { background: rgba(242, 178, 68, 0.18); color: #b45309; }

/* Holiday / academic year calendar */
.fr-dash-holiday-cal__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem 1.25rem;
    margin-bottom: 1.1rem;
}
.fr-dash-holiday-cal__hint {
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.35;
}
.fr-dash-holiday-cal__nav {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}
.fr-dash-holiday-cal__month-label {
    min-width: 7.5rem;
    text-align: center;
    font-size: 0.9375rem;
    font-weight: 800;
    color: var(--fr-dash-navy);
    letter-spacing: -0.01em;
}
.fr-dash-holiday-cal__nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: #fff;
    color: var(--fr-dash-navy);
    text-decoration: none;
    font-size: 0.75rem;
    transition: border-color 0.15s ease, background 0.15s ease;
}
a.fr-dash-holiday-cal__nav-btn:hover {
    border-color: rgba(2, 34, 72, 0.22);
    background: #f8fafc;
}
.fr-dash-holiday-cal__nav-btn--disabled {
    opacity: 0.35;
    pointer-events: none;
}
.fr-dash-holiday-cal__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.15rem;
}
@media (min-width: 900px) {
    .fr-dash-holiday-cal__layout {
        grid-template-columns: minmax(0, 1.65fr) minmax(12rem, 0.85fr);
        gap: 1.5rem;
        align-items: start;
    }
}

/* Compact rail beside Recent activity (legacy classes if reused elsewhere) */
.fr-dash-holiday-cal--sidebar .fr-dash-holiday-cal__header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}
.fr-dash-holiday-cal--sidebar .fr-dash-holiday-cal__nav {
    justify-content: space-between;
    width: 100%;
}
.fr-dash-holiday-cal--sidebar .fr-dash-holiday-cal__month-label {
    flex: 1;
    min-width: 0;
    font-size: 0.875rem;
}
.fr-dash-holiday-cal--sidebar .fr-dash-holiday-cal__layout {
    grid-template-columns: 1fr !important;
    gap: 0.9rem;
}
.fr-dash-holiday-cal--sidebar .fr-dash-holiday-cal__cell {
    min-height: 1.9rem;
    border-radius: 0.5rem;
    font-size: 0.72rem;
}
.fr-dash-holiday-cal--sidebar .fr-dash-holiday-cal__dow {
    font-size: 0.55rem;
    gap: 0.22rem;
}
.fr-dash-holiday-cal--sidebar .fr-dash-holiday-cal__grid {
    gap: 0.22rem;
}
.fr-dash-holiday-cal--sidebar .fr-dash-holiday-cal__hint {
    font-size: 0.7rem;
}
.fr-dash-holiday-cal--sidebar .fr-dash-holiday-cal__nav-btn {
    width: 1.9rem;
    height: 1.9rem;
}

/* Poster Academic year calendar — screenshot match (thick yellow + full bold dates) */
.fr-poster-cal {
    --fr-poster-blue: #0047ab;
    --fr-poster-blue-deep: #003a91;
    --fr-poster-yellow: #ffcc00;
    --fr-poster-red: #e10600;
    --fr-poster-ink: #0a0a0a;
    min-width: 0;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}
.fr-poster-cal__card {
    position: relative;
    background: #fff;
    border-radius: 1.15rem;
    overflow: visible;
    border: 1px solid rgba(15, 23, 42, 0.07);
    box-shadow:
        0 12px 28px rgba(15, 23, 42, 0.1),
        0 2px 6px rgba(15, 23, 42, 0.04);
    touch-action: pan-y;
    user-select: none;
}
.fr-poster-cal__hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.4rem;
    min-height: 4.15rem;
    padding: 0.75rem 0.85rem 0.8rem;
    overflow: hidden;
    background: #fff;
    border-radius: 1.15rem 1.15rem 0 0;
}
/* Blue organic left mass (poster wave) */
.fr-poster-cal__hero::before {
    content: '';
    position: absolute;
    left: -20%;
    top: -50%;
    width: 80%;
    height: 195%;
    background: linear-gradient(150deg, var(--fr-poster-blue) 0%, var(--fr-poster-blue-deep) 100%);
    border-radius: 0 0 62% 0 / 0 0 52% 0;
    z-index: 0;
}
/* Yellow year rail — thick poster band */
.fr-poster-cal__hero::after {
    content: '';
    position: absolute;
    right: 0;
    top: 1.05rem;
    width: 52%;
    height: 1.05rem;
    background: var(--fr-poster-yellow);
    z-index: 0;
}
.fr-poster-cal__month {
    position: relative;
    z-index: 1;
    font-size: 1.85rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #fff;
    font-family: Poppins, Inter, system-ui, sans-serif;
    white-space: nowrap;
}
.fr-poster-cal__year {
    position: relative;
    z-index: 1;
    font-size: 1.85rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--fr-poster-blue);
    font-family: Poppins, Inter, system-ui, sans-serif;
}
/* Clear month arrows (not fixed to current month) */
.fr-poster-cal__month-nav {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    padding: 0.28rem 0.55rem;
    background: #fff;
    border-bottom: 1px solid #eef2f7;
}
.fr-poster-cal__month-label {
    flex: 1;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--fr-poster-blue);
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.fr-poster-cal__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 999px;
    background: var(--fr-poster-blue);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 0.68rem;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 71, 171, 0.25);
    -webkit-tap-highlight-color: transparent;
}
a.fr-poster-cal__arrow:hover {
    background: var(--fr-poster-blue-deep);
}
a.fr-poster-cal__arrow:active {
    transform: scale(0.94);
}
.fr-poster-cal__arrow--disabled {
    opacity: 0.35;
    pointer-events: none;
    background: #94a3b8;
    box-shadow: none;
}
.fr-poster-cal__body {
    position: relative;
    z-index: 1;
    padding: 0.45rem 0.7rem 1.35rem;
    background: #fff;
    overflow: visible;
}
.fr-poster-cal__dow {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0;
    margin-bottom: 0.45rem;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1;
    color: var(--fr-poster-ink);
    font-family: Inter, system-ui, sans-serif;
}
.fr-poster-cal__dow--sun {
    color: var(--fr-poster-red) !important;
}
.fr-poster-cal__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.36rem 0.08rem;
}
.fr-poster-cal__cell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    height: 2.2rem;
    aspect-ratio: auto;
    border: none;
    background: transparent;
    border-radius: 0.25rem;
    font-family: Inter, system-ui, sans-serif;
    cursor: default;
    padding: 0;
    line-height: 1;
}
.fr-poster-cal__cell[data-tip] {
    cursor: help;
}
/* Holiday / Sunday name tip on hover (and keyboard focus) */
.fr-poster-cal__cell[data-tip]:hover::after,
.fr-poster-cal__cell[data-tip]:focus-visible::after {
    content: attr(data-tip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 0.3rem);
    transform: translateX(-50%);
    z-index: 30;
    min-width: 5rem;
    max-width: 12rem;
    padding: 0.35rem 0.55rem;
    border-radius: 0.4rem;
    background: #0f172a;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.28);
    pointer-events: none;
}
.fr-poster-cal__cell[data-tip]:hover::before,
.fr-poster-cal__cell[data-tip]:focus-visible::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: calc(100% + 0.05rem);
    transform: translateX(-50%);
    z-index: 31;
    border: 5px solid transparent;
    border-top-color: #0f172a;
    pointer-events: none;
}
.fr-poster-cal__cell--pad {
    min-height: 0;
    aspect-ratio: auto;
    visibility: hidden;
    pointer-events: none;
}
/* Numbers: full bold fill like poster screenshot (size unchanged) */
.fr-poster-cal__day {
    display: block;
    line-height: 1;
    color: var(--fr-poster-ink);
    font-weight: 900;
    font-size: 1.35rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    font-family: Poppins, Inter, system-ui, sans-serif;
}
.fr-poster-cal__cell--sun .fr-poster-cal__day,
.fr-poster-cal__cell--holiday .fr-poster-cal__day {
    color: var(--fr-poster-red) !important;
}
.fr-poster-cal__cell--today {
    box-shadow: inset 0 0 0 2.5px rgba(17, 24, 39, 0.4);
}
/* Thick yellow bottom bar + blue corner */
.fr-poster-cal__bar {
    position: absolute;
    left: 0;
    right: 2.6rem;
    bottom: 0.4rem;
    height: 0.85rem;
    background: var(--fr-poster-yellow);
    z-index: 1;
    pointer-events: none;
}
.fr-poster-cal__corner {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 2.5rem;
    height: 1.7rem;
    background: var(--fr-poster-blue);
    border-radius: 100% 0 1.15rem 0;
    z-index: 2;
    pointer-events: none;
}
.fr-poster-cal__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin-top: 0.35rem;
    padding: 0 0.1rem;
}
.fr-poster-cal__today-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    background: var(--fr-poster-blue);
    color: #fff !important;
    font-size: 0.68rem;
    font-weight: 700;
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent;
}
.fr-poster-cal__ay-chip {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--fr-poster-blue);
}
.fr-poster-cal__manage {
    margin-left: auto;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--fr-poster-blue);
    text-decoration: none;
}
.fr-poster-cal__manage:hover {
    text-decoration: underline;
}
@media (min-width: 1024px) {
    .fr-poster-cal {
        margin-left: 0;
        margin-right: 0;
        max-width: 30rem;
    }
    .fr-poster-cal__day {
        font-size: 1.45rem;
    }
    .fr-poster-cal__cell {
        height: 2.3rem;
        min-height: 0;
    }
}
@media (max-width: 480px) {
    .fr-poster-cal {
        max-width: 100%;
    }
    .fr-poster-cal__month,
    .fr-poster-cal__year {
        font-size: 1.45rem;
    }
    .fr-poster-cal__hero {
        min-height: 3.65rem;
        padding: 0.65rem 0.65rem 0.7rem;
    }
    .fr-poster-cal__hero::after {
        height: 0.9rem;
        top: 0.75rem;
    }
    .fr-poster-cal__bar {
        height: 0.75rem;
        bottom: 0.35rem;
    }
    .fr-poster-cal__day {
        font-size: 1.2rem;
        line-height: 1;
    }
    .fr-poster-cal__dow {
        font-size: 0.95rem;
        margin-bottom: 0.36rem;
    }
    .fr-poster-cal__cell {
        height: 1.95rem;
        min-height: 0;
    }
    .fr-poster-cal__body {
        padding: 0.35rem 0.55rem 1.15rem;
    }
}
.fr-dash-holiday-cal__dow {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.3rem;
    margin-bottom: 0.3rem;
    text-align: center;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
}
.fr-dash-holiday-cal__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.3rem;
}
.fr-dash-holiday-cal__cell {
    aspect-ratio: 1;
    border-radius: 0.65rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #334155;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.05rem;
    min-height: 2.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.fr-dash-holiday-cal__cell--pad {
    border: none;
    background: transparent;
    min-height: 0;
}
.fr-dash-holiday-cal__cell--holiday {
    background: #ede9fe;
    border-color: #c4b5fd;
    color: #4c1d95;
    font-weight: 800;
}
.fr-dash-holiday-cal__cell--today {
    box-shadow: inset 0 0 0 2px rgba(2, 34, 72, 0.55);
}
.fr-dash-holiday-cal__cell--today.fr-dash-holiday-cal__cell--holiday {
    box-shadow: inset 0 0 0 2px rgba(91, 33, 182, 0.65);
}
.fr-dash-holiday-cal__day {
    line-height: 1;
}
.fr-dash-holiday-cal__h {
    font-size: 0.5625rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: #6d28d9;
    line-height: 1;
}
.fr-dash-holiday-cal__empty {
    border: 1px dashed #e2e8f0;
    border-radius: 0.85rem;
    padding: 1.5rem 1rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.8125rem;
    line-height: 1.45;
}
.fr-dash-holiday-cal__empty i {
    display: block;
    font-size: 1.5rem;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
}
.fr-dash-holiday-cal__aside {
    border-radius: 0.9rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: linear-gradient(160deg, #f8fafc 0%, #fff 100%);
    padding: 1rem 1.05rem 1.05rem;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}
.fr-dash-holiday-cal__aside-title {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.65rem;
}
.fr-dash-holiday-cal__aside-empty {
    font-size: 0.8125rem;
    color: #94a3b8;
    line-height: 1.4;
    flex: 1;
}
.fr-dash-holiday-cal__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    flex: 1;
}
.fr-dash-holiday-cal__list li {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}
.fr-dash-holiday-cal__list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.fr-dash-holiday-cal__list-date {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--fr-dash-navy);
}
.fr-dash-holiday-cal__list-title {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.3;
}
.fr-dash-holiday-cal__manage {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.95rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #5b21b6;
    text-decoration: none;
}
.fr-dash-holiday-cal__manage:hover {
    color: #4c1d95;
    text-decoration: underline;
}

.fr-dash-insights__action-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.fr-dash-insights__action {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 0.95rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: #fff;
    color: var(--fr-dash-navy);
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.fr-dash-insights__action:hover {
    border-color: rgba(2, 34, 72, 0.18);
    background: #f8fafc;
    transform: translateY(-1px);
}
.fr-dash-insights__action > .fas:first-child {
    width: 2rem;
    height: 2rem;
    border-radius: 0.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 34, 72, 0.08);
    color: var(--fr-dash-navy);
    font-size: 0.85rem;
    flex-shrink: 0;
}
.fr-dash-insights__action-chevron {
    margin-left: auto;
    font-size: 0.7rem;
    color: #94a3b8;
}
.fr-dash-insights__action--primary {
    border-color: rgba(242, 178, 68, 0.45);
    background: linear-gradient(135deg, #fff9eb 0%, #fff 100%);
}
.fr-dash-insights__action--primary > .fas:first-child {
    background: rgba(242, 178, 68, 0.22);
    color: #92400e;
}
.fr-dash-insights__action--gold {
    border-color: rgba(242, 178, 68, 0.45);
    background: linear-gradient(135deg, #fff9eb 0%, #fff 100%);
}
.fr-dash-insights__action--whatsapp > .fas:first-child {
    background: rgba(37, 211, 102, 0.14);
    color: #15803d;
}
.fr-dash-insights__action--disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.fr-dash-insights__live-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0f766e;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}
.fr-dash-insights__live-dot {
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 999px;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}
.fr-dash-insights__empty {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    border-radius: 0.85rem;
    border: 1px dashed rgba(148, 163, 184, 0.45);
    background: #f8fafc;
    color: #64748b;
    font-size: 0.875rem;
}
.fr-dash-insights__empty > .fas {
    color: var(--fr-dash-navy);
    opacity: 0.55;
}

.fr-dash-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.fr-dash-timeline__item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}
.fr-dash-timeline__item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}
.fr-dash-timeline__dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    background: rgba(2, 34, 72, 0.08);
    color: var(--fr-dash-navy);
    font-size: 0.75rem;
    margin-top: 0.1rem;
}
.fr-dash-timeline__item--teal .fr-dash-timeline__dot { background: rgba(15, 118, 110, 0.1); color: #0f766e; }
.fr-dash-timeline__item--emerald .fr-dash-timeline__dot { background: rgba(16, 185, 129, 0.1); color: #059669; }
.fr-dash-timeline__item--rose .fr-dash-timeline__dot { background: rgba(225, 29, 72, 0.1); color: #e11d48; }
.fr-dash-timeline__title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--fr-dash-navy);
    text-decoration: none;
}
a.fr-dash-timeline__title:hover {
    color: #00517f;
    text-decoration: underline;
}
.fr-dash-timeline__time {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
    white-space: nowrap;
}
.fr-dash-timeline__detail {
    margin-top: 0.2rem;
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.4;
}

/* Collection pulse (beside Recent activity) */
.fr-dash-insights__fee-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #00517f;
    text-decoration: none;
    white-space: nowrap;
}
.fr-dash-insights__fee-link:hover {
    color: var(--fr-dash-navy);
    text-decoration: underline;
}
.fr-dash-insights__fee-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}
.fr-dash-insights__fee-tile {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.85rem 0.9rem;
    border-radius: 0.9rem;
    color: #fff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
    min-height: 5.5rem;
}
.fr-dash-insights__fee-tile-body {
    min-width: 0;
    flex: 1;
}
.fr-dash-insights__fee-tile-label {
    margin: 0;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.3;
}
.fr-dash-insights__fee-tile-value {
    margin: 0.35rem 0 0;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    word-break: break-word;
}
.fr-dash-insights__fee-tile-sub {
    margin: 0.3rem 0 0;
    font-size: 0.625rem;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.68);
}
.fr-dash-insights__fee-tile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 0.55rem;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 0.8rem;
    flex-shrink: 0;
}
@media (max-width: 480px) {
    .fr-dash-insights__fee-grid {
        grid-template-columns: 1fr;
    }
}

/* Command centre module cards (8 daily-use) */
.fr-dash-cmd-grid {
    align-items: stretch;
}
.fr-dash-cmd-module {
    text-decoration: none;
    color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    will-change: transform;
}
.fr-dash-cmd-module:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.18);
    color: #fff;
}
.fr-dash-cmd-module:focus-visible {
    outline: 2px solid var(--fr-dash-gold);
    outline-offset: 2px;
}
.fr-dash-cmd-module__icon {
    width: 3rem;
    height: 3rem;
    font-size: 1.15rem;
}
.fr-dash-cmd-module__cta {
    transition: transform 0.15s ease, opacity 0.15s ease;
}
.fr-dash-cmd-module:hover .fr-dash-cmd-module__cta {
    transform: translateX(3px);
    opacity: 1;
}

/* ── Enterprise dashboard polish ── */
.fr-dash-enterprise {
    --fr-dash-navy: #022248;
    --fr-dash-gold: #f2b244;
    --fr-dash-blue: #2563eb;
}

.fr-dash-panel {
    border-radius: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.04);
}
.fr-dash-panel__kicker {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(2, 34, 72, 0.62);
}
.fr-dash-panel__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-top: 0.15rem;
}

/* Compact school header */
.fr-dash-shell--tight-top {
    padding-top: 0 !important;
}
@media (min-width: 768px) {
    .fr-dash-shell--tight-top {
        padding-top: 0 !important;
    }
}
body.fr-portal.fr-portal--dash-hero .fr-dash-shell--tight-top {
    padding-top: 0 !important;
    margin-top: 0 !important;
}
.fr-dash-cmd--sa-exit {
    background: #f59e0b !important;
    border-color: #d97706 !important;
    color: #022248 !important;
    font-weight: 800 !important;
}
.fr-dash-cmd--sa-exit:hover {
    background: #fbbf24 !important;
}
.fr-dash-alert-strip {
    margin-bottom: 0;
    padding-bottom: 0;
}
.fr-dash-header-shell {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.fr-dash-header-top-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    min-height: 0;
    margin: 0;
    padding: 0;
}
.fr-dash-ay-pill--above {
    color: var(--fr-dash-navy);
    background: #fff;
    border: 1px solid rgba(2, 34, 72, 0.14);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.fr-dash-header-top-meta .fr-ay-chip--bar {
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.ncc-bridge-banner--enterprise.ncc-bridge-banner--compact {
    padding: 0.85rem 1rem !important;
    text-align: center !important;
}
@media (min-width: 768px) {
    .ncc-bridge-banner--enterprise.ncc-bridge-banner--compact {
        padding: 1rem 1.15rem !important;
    }
}
/* Logo fixed left; title + quick actions centered in the banner */
.fr-dash-header__row--brand-left {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
}
.fr-dash-header__brand {
    position: relative !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100%;
    min-height: 5.5rem;
    margin: 0 !important;
    gap: 0;
}
@media (min-width: 768px) {
    .fr-dash-header__brand {
        min-height: 6.75rem;
    }
}
.fr-dash-shell .ncc-bridge-banner--compact .fr-dash-header__logo--hero {
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%);
    margin: 0 !important;
    z-index: 2;
}
.fr-dash-header__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    text-align: center;
    /* Equal side padding so title/actions sit in true banner center while logo stays left */
    padding-left: 6rem;
    padding-right: 6rem;
    box-sizing: border-box;
}
@media (min-width: 768px) {
    .fr-dash-header__copy {
        padding-left: 7.5rem;
        padding-right: 7.5rem;
    }
}
@media (max-width: 640px) {
    .fr-dash-header__copy {
        padding-left: 5.75rem;
        padding-right: 0.25rem;
        align-items: center;
    }
}
.fr-dash-header__logo--hero {
    width: 5.5rem;
    height: 5.5rem;
    padding: 0.28rem;
    border-radius: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.92);
    background: #fff;
    object-fit: contain;
    object-position: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}
.fr-dash-header__logo--hero.fr-dash-header__logo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
    font-size: 1.75rem;
    font-weight: 800;
}
@media (min-width: 768px) {
    .fr-dash-header__logo--hero {
        width: 6.75rem;
        height: 6.75rem;
        padding: 0.35rem;
        border-radius: 1.15rem;
    }
    .fr-dash-header__logo--hero.fr-dash-header__logo--placeholder {
        font-size: 2.15rem;
    }
}
.fr-dash-header__title--compact {
    font-size: 2.05rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 0;
    text-align: center !important;
    width: 100%;
}
@media (min-width: 768px) {
    .fr-dash-header__title--compact {
        font-size: 2.75rem;
    }
}
.fr-dash-header__actions--under-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center !important;
    gap: 0.45rem;
    margin-top: 0.55rem;
    width: 100%;
}
.fr-dash-ay-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.ncc-bridge-banner--enterprise .fr-ay-chip--inline {
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    background: rgba(242, 178, 68, 0.16);
    border: 1px solid rgba(242, 178, 68, 0.35);
    color: #fef3c7;
}
.ncc-bridge-banner--enterprise .fr-ay-chip--inline .fr-ay-chip-kicker {
    display: none;
}
.ncc-bridge-banner--enterprise .fr-ay-chip--inline .fr-ay-chip-year {
    font-size: 0.6875rem;
}

/* Quick action buttons */
.fr-dash-quick-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

/* Dashboard command bar — single-line developer toolbar */
/* Beat franchise-panel-polish desktop `display:flex !important` on .fr-panel-global-bar */
body.fr-portal .fr-dash-command-bar.fr-panel-global-bar,
body.fr-portal #fr-panel-global-bar.fr-dash-command-bar {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 0 !important;
    gap: 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: color-mix(in srgb, #ffffff 92%, var(--fr-primary, #003366) 8%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04), 0 6px 18px -14px rgba(15, 23, 42, 0.35);
}
body.fr-portal #fr-panel-global-bar.fr-dash-command-bar {
    min-width: 0;
    max-width: 100%;
}
.fr-dash-command-bar__track {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.35rem;
    min-height: 2.75rem;
    width: 100%;
    max-width: min(1480px, 100%);
    margin: 0 auto;
    padding: 0.4rem 0.85rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.fr-dash-command-bar__track::-webkit-scrollbar { height: 3px; }
.fr-dash-cmd-year-form {
    margin: 0;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}
.fr-dash-cmd {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    height: 2rem;
    padding: 0 0.7rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: #fff;
    color: #0f172a !important;
    text-decoration: none !important;
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: -0.01em;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}
.fr-dash-cmd i {
    font-size: 0.72rem;
    color: var(--fr-primary, #003366);
    opacity: 0.92;
}
.fr-dash-cmd:hover {
    background: color-mix(in srgb, var(--fr-primary, #003366) 8%, #fff);
    border-color: color-mix(in srgb, var(--fr-primary, #003366) 28%, #e2e8f0);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}
.fr-dash-cmd:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--fr-primary, #003366) 18%, transparent);
}
.fr-dash-cmd--icon {
    width: 2rem;
    padding: 0;
    justify-content: center;
}
.fr-dash-cmd--year {
    padding-right: 0.35rem;
    gap: 0.35rem;
    background: color-mix(in srgb, var(--fr-primary, #003366) 6%, #fff);
    border-color: color-mix(in srgb, var(--fr-primary, #003366) 22%, #e2e8f0);
    font-weight: 700;
    color: var(--fr-primary-deep, #001e40) !important;
}
.fr-dash-cmd--year:hover {
    transform: none;
}
.fr-dash-cmd-year-select {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%2364748b' d='M1 1l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 0.1rem center;
    padding: 0 1.1rem 0 0;
    margin: 0;
    min-width: 7.5rem;
    max-width: 11rem;
    font: inherit;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: -0.015em;
    color: var(--fr-primary-deep, #001e40);
    cursor: pointer;
    outline: none;
}
.fr-dash-cmd-sep {
    flex: 0 0 auto;
    width: 1px;
    height: 1.15rem;
    margin: 0 0.15rem;
    background: rgba(15, 23, 42, 0.12);
}
.fr-dash-cmd-flex {
    flex: 1 1 auto;
    min-width: 0.75rem;
}
.fr-dash-cmd-utils {
    gap: 0.3rem !important;
}
/* Unify util buttons with command chips on dashboard */
body.fr-portal .fr-dash-command-bar .fr-util-btn.fr-dash-cmd {
    height: 2rem !important;
    min-height: 2rem !important;
    min-width: 0 !important;
    padding: 0 0.65rem !important;
    border-radius: 0.5rem !important;
    gap: 0.35rem !important;
    background: #fff !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    box-shadow: none !important;
}
body.fr-portal .fr-dash-command-bar .fr-util-btn.fr-dash-cmd:hover {
    background: color-mix(in srgb, var(--fr-primary, #003366) 8%, #fff) !important;
    border-color: color-mix(in srgb, var(--fr-primary, #003366) 28%, #e2e8f0) !important;
}
body.fr-portal .fr-dash-command-bar .fr-util-btn.fr-dash-cmd .fr-util-btn__label {
    display: inline !important;
    font-size: 0.78rem !important;
    font-weight: 650 !important;
    letter-spacing: -0.01em;
}
.fr-dash-command-bar .fr-util-btn--danger {
    color: #b91c1c !important;
    border-color: rgba(185, 28, 28, 0.22);
    background: #fff7f7;
}
.fr-dash-command-bar .fr-util-btn--danger i {
    color: #b91c1c;
}
.fr-dash-command-bar .fr-util-btn--danger:hover {
    background: #fef2f2;
    border-color: rgba(185, 28, 28, 0.35);
}
.fr-dash-command-bar .fr-util-badge {
    position: relative;
    top: 0;
    right: 0;
    margin-left: -0.1rem;
    min-width: 1rem;
    height: 1rem;
    padding: 0 0.28rem;
    font-size: 0.62rem;
    line-height: 1rem;
}
html[data-erp-theme="dark"] .fr-dash-command-bar.fr-panel-global-bar {
    background: color-mix(in srgb, #0f172a 88%, var(--fr-primary, #003366) 12%);
    border-bottom-color: rgba(148, 163, 184, 0.16);
}
html[data-erp-theme="dark"] .fr-dash-cmd {
    background: rgba(15, 23, 42, 0.55);
    border-color: rgba(148, 163, 184, 0.18);
    color: #e2e8f0 !important;
}
html[data-erp-theme="dark"] .fr-dash-cmd i {
    color: color-mix(in srgb, var(--fr-primary, #60a5fa) 70%, #e2e8f0);
}
html[data-erp-theme="dark"] .fr-dash-cmd:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(148, 163, 184, 0.28);
}
html[data-erp-theme="dark"] .fr-dash-cmd--year,
html[data-erp-theme="dark"] .fr-dash-cmd-year-select {
    color: #f8fafc !important;
}
html[data-erp-theme="dark"] .fr-dash-cmd-sep {
    background: rgba(148, 163, 184, 0.22);
}
html[data-erp-theme="dark"] .fr-dash-command-bar .fr-util-btn--danger {
    background: rgba(127, 29, 29, 0.25);
    color: #fecaca !important;
}
@media (max-width: 720px) {
    .fr-dash-command-bar__track {
        padding-left: 0.65rem;
        padding-right: 0.65rem;
        gap: 0.28rem;
    }
    .fr-dash-cmd {
        padding: 0 0.55rem;
        font-size: 0.74rem;
    }
    .fr-dash-cmd-year-select {
        min-width: 6.75rem;
        max-width: 9.5rem;
        font-size: 0.74rem;
    }
}

.fr-dash-quick-btn--primary {
    background: #fff;
    color: var(--fr-dash-navy);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.fr-dash-quick-btn--primary:hover {
    background: #f8fafc;
    transform: translateY(-1px);
}
.fr-dash-quick-btn--gold {
    background: linear-gradient(180deg, #f2b244 0%, #d4922a 100%);
    color: #1e293b;
}
.fr-dash-quick-btn--ghost {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
}
.fr-dash-quick-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(242, 178, 68, 0.4);
}

/* Compact alert pills */
.fr-dash-alert-strip__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 1400px;
    margin: 0 auto;
}
.fr-dash-alert-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.fr-dash-alert-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}
.fr-dash-alert-pill--amber {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}
.fr-dash-alert-pill--danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}
.fr-dash-alert-pill--warn {
    background: #f0f9ff;
    border-color: #bae6fd;
    color: #0c4a6e;
}

/* KPI hero cards */
.fr-dash-kpi-grid {
    align-items: stretch;
}
.fr-dash-kpi-card {
    min-height: 8.5rem;
    display: flex;
    flex-direction: column;
    color: #fff;
    /* CSS gradients — do not rely on Tailwind CDN for colors */
    background: linear-gradient(145deg, #002443 0%, #00517f 100%);
}
.fr-dash-kpi-card--teal {
    background: linear-gradient(145deg, #0f766e 0%, #14b8a6 100%) !important;
}
.fr-dash-kpi-card--navy {
    background: linear-gradient(145deg, #1e3a8a 0%, #3b82f6 100%) !important;
}
.fr-dash-kpi-card--emerald {
    background: linear-gradient(145deg, #047857 0%, #10b981 100%) !important;
}
.fr-dash-kpi-card--gold {
    background: linear-gradient(145deg, #ca8a04 0%, #eab308 100%) !important;
}
.fr-dash-kpi-card--blue {
    background: linear-gradient(145deg, #1d4ed8 0%, #60a5fa 100%) !important;
}
.fr-dash-kpi-card--sky {
    background: linear-gradient(145deg, #0369a1 0%, #0ea5e9 100%) !important;
}
.fr-dash-kpi-card--cyan {
    background: linear-gradient(145deg, #0891b2 0%, #22d3ee 100%) !important;
}
.fr-dash-kpi-card--pink {
    background: linear-gradient(145deg, #db2777 0%, #f472b6 100%) !important;
}
.fr-dash-kpi-card--amber {
    background: linear-gradient(145deg, #b45309 0%, #f59e0b 100%) !important;
}
.fr-dash-kpi-card--indigo {
    background: linear-gradient(145deg, #4338ca 0%, #6366f1 100%) !important;
}
.fr-dash-kpi-card--rose {
    background: linear-gradient(145deg, #be123c 0%, #f43f5e 100%) !important;
}
.fr-dash-kpi-card--violet {
    background: linear-gradient(145deg, #6d28d9 0%, #a855f7 100%) !important;
}
.fr-dash-kpi-card--slate {
    background: linear-gradient(145deg, #475569 0%, #64748b 100%) !important;
}
.fr-dash-kpi-card__glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.18) 0%, transparent 55%);
    pointer-events: none;
}
/* English copy a bit larger; keep big numbers unchanged */
.fr-dash-kpi-card__label {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.25;
}
.fr-dash-kpi-card__value {
    margin: 0.45rem 0 0;
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
}
@media (min-width: 768px) {
    .fr-dash-kpi-card__value {
        font-size: 2rem;
    }
}
.fr-dash-kpi-card__desc {
    margin: 0.55rem 0 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fr-dash-kpi-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
}
.fr-dash-kpi-card__icon--hero {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.05rem;
}
.fr-dash-kpi-card__link {
    font-size: 0.8125rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}
.fr-dash-kpi-card__link:hover {
    color: #fff;
    text-decoration: underline;
}

/* Smart-admin watermark KPI tiles — franchise dashboard live metrics only */
.fr-dash-kpi-grid--smart .fr-dash-kpi-card--smart {
    position: relative;
    min-height: 6.25rem;
    border-radius: 0.85rem;
    border: none;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
    padding: 1.15rem 1.25rem;
    overflow: hidden;
}
.fr-dash-kpi-grid--smart .fr-dash-kpi-card--smart::before {
    content: "";
    position: absolute;
    top: -70%;
    right: -22%;
    width: 62%;
    height: 210%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    pointer-events: none;
    z-index: 0;
}
.fr-dash-kpi-grid--smart .fr-dash-kpi-card--smart::after {
    content: "";
    position: absolute;
    right: -18%;
    bottom: -85%;
    width: 58%;
    height: 170%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    pointer-events: none;
    z-index: 0;
}
.fr-dash-kpi-grid--smart .fr-dash-kpi-card__smart-deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, 0.14) 100%);
}
.fr-dash-kpi-grid--smart .fr-dash-kpi-card__smart-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    min-height: 100%;
}
.fr-dash-kpi-grid--smart .fr-dash-kpi-card__smart-icon {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.4rem;
    height: 3.4rem;
    flex-shrink: 0;
    font-size: 2.15rem;
    color: rgba(255, 255, 255, 0.42);
    pointer-events: none;
    z-index: 1;
}
.fr-dash-kpi-grid--smart .fr-dash-kpi-card__smart-body {
    position: relative;
    z-index: 2;
    flex: 1;
    max-width: none;
    text-align: right;
    min-width: 0;
}
.fr-dash-kpi-grid--smart .fr-dash-kpi-card__value {
    margin: 0;
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    letter-spacing: -0.02em;
}
.fr-dash-kpi-grid--smart .fr-dash-kpi-card__label {
    margin: 0.35rem 0 0;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: rgba(255, 255, 255, 0.94);
    line-height: 1.3;
}
.fr-dash-kpi-grid--smart .fr-dash-kpi-card__desc {
    display: none;
}
.fr-dash-kpi-grid--smart .fr-dash-kpi-card__link--smart {
    display: inline-block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
}
.fr-dash-kpi-grid--smart .fr-dash-kpi-card:nth-child(1) {
    background: linear-gradient(90deg, #ff7a4d 0%, #f7c948 100%) !important;
}
.fr-dash-kpi-grid--smart .fr-dash-kpi-card:nth-child(2) {
    background: linear-gradient(90deg, #e11d73 0%, #fb7185 100%) !important;
}
.fr-dash-kpi-grid--smart .fr-dash-kpi-card:nth-child(3) {
    background: linear-gradient(90deg, #0f766e 0%, #4ade80 100%) !important;
}
.fr-dash-kpi-grid--smart .fr-dash-kpi-card:nth-child(4) {
    background: linear-gradient(90deg, #4f6ef7 0%, #8b5cf6 100%) !important;
}
.fr-dash-kpi-grid--smart .fr-dash-kpi-card:nth-child(5) {
    background: linear-gradient(90deg, #0284c7 0%, #38bdf8 100%) !important;
}
.fr-dash-kpi-grid--smart .fr-dash-kpi-card:nth-child(6) {
    background: linear-gradient(90deg, #7c3aed 0%, #c084fc 100%) !important;
}
.fr-dash-kpi-grid--smart .fr-dash-kpi-card:nth-child(7) {
    background: linear-gradient(90deg, #db2777 0%, #f9a8d4 100%) !important;
}
.fr-dash-kpi-grid--smart .fr-dash-kpi-card:nth-child(8) {
    background: linear-gradient(90deg, #0d9488 0%, #5eead4 100%) !important;
}
@media (min-width: 768px) {
    .fr-dash-kpi-grid--smart .fr-dash-kpi-card__value {
        font-size: 2.125rem;
    }
}
body.fr-portal.fr-dash-nipunindia-fonts .fr-dash-kpi-grid--smart .fr-dash-kpi-card__value {
    font-size: 2rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    line-height: 1 !important;
}
@media (min-width: 768px) {
    body.fr-portal.fr-dash-nipunindia-fonts .fr-dash-kpi-grid--smart .fr-dash-kpi-card__value {
        font-size: 2.125rem !important;
    }
}
body.fr-portal.fr-dash-nipunindia-fonts .fr-dash-kpi-grid--smart .fr-dash-kpi-card__label {
    font-size: 0.9375rem !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    line-height: 1.3 !important;
}
body.fr-portal.fr-dash-nipunindia-fonts .fr-dash-kpi-grid--smart .fr-dash-kpi-card__desc {
    font-size: 0.8125rem !important;
    font-weight: 400 !important;
    line-height: 1.35 !important;
}
body.fr-portal.fr-dash-nipunindia-fonts .fr-dash-kpi-grid--smart .fr-dash-kpi-card__link--smart {
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
}

/* Mini metric tiles */
.fr-dash-mini-grid {
    align-items: stretch;
}
.fr-dash-mini-card {
    border-radius: 0.85rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    padding: 1rem 1rem 0.95rem;
    min-height: 7.5rem;
    background: linear-gradient(145deg, #f8fafc 0%, #fff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.fr-dash-mini-card--navy { background: linear-gradient(145deg, #eef4fb 0%, #f8fafc 100%); border-color: rgba(2, 34, 72, 0.1); }
.fr-dash-mini-card--teal { background: linear-gradient(145deg, #ecfdf5 0%, #f8fafc 100%); border-color: rgba(15, 118, 110, 0.12); }
.fr-dash-mini-card--violet { background: linear-gradient(145deg, #f5f3ff 0%, #fafafa 100%); border-color: rgba(79, 70, 229, 0.12); }
.fr-dash-mini-card--emerald { background: linear-gradient(145deg, #ecfdf5 0%, #fff 100%); border-color: rgba(16, 185, 129, 0.12); }
.fr-dash-mini-card--gold { background: linear-gradient(145deg, #fffbeb 0%, #fff 100%); border-color: rgba(242, 178, 68, 0.25); }
.fr-dash-mini-card--blue { background: linear-gradient(145deg, #eff6ff 0%, #fff 100%); border-color: rgba(37, 99, 235, 0.12); }
.fr-dash-mini-card--rose { background: linear-gradient(145deg, #fff1f2 0%, #fff 100%); border-color: rgba(225, 29, 72, 0.12); }
.fr-dash-mini-card--slate { background: linear-gradient(145deg, #f1f5f9 0%, #fff 100%); }
.fr-dash-mini-card__label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}
.fr-dash-mini-card__value {
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.1;
    margin-top: 0.35rem;
    color: #0f172a;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.fr-dash-mini-card__desc {
    margin-top: 0.35rem;
    font-size: 0.6875rem;
    color: #94a3b8;
    line-height: 1.35;
}
.fr-dash-mini-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.6rem;
    background: rgba(2, 34, 72, 0.08);
    color: var(--fr-dash-navy);
    font-size: 0.85rem;
    flex-shrink: 0;
}
.fr-dash-mini-card--teal .fr-dash-mini-card__icon { background: rgba(15, 118, 110, 0.1); color: #0f766e; }
.fr-dash-mini-card--violet .fr-dash-mini-card__icon { background: rgba(79, 70, 229, 0.1); color: #4f46e5; }
.fr-dash-mini-card--emerald .fr-dash-mini-card__icon { background: rgba(16, 185, 129, 0.1); color: #059669; }
.fr-dash-mini-card--gold .fr-dash-mini-card__icon { background: rgba(242, 178, 68, 0.18); color: #b45309; }
.fr-dash-mini-card--blue .fr-dash-mini-card__icon { background: rgba(37, 99, 235, 0.1); color: #2563eb; }
.fr-dash-mini-card--rose .fr-dash-mini-card__icon { background: rgba(225, 29, 72, 0.1); color: #e11d48; }
.fr-dash-mini-card__link {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--fr-dash-navy);
    text-decoration: none;
}
.fr-dash-mini-card__link:hover {
    text-decoration: underline;
}

/* Compact wallet chip (global bar + header) */
.fr-wallet-chip--bar .fr-wallet-chip__trigger,
.fr-wallet-chip--banner .fr-wallet-chip__trigger {
    padding: 0.32rem 0.55rem;
    border-radius: 999px;
    gap: 0.38rem;
}
.fr-wallet-chip--bar .fr-wallet-chip__icon,
.fr-wallet-chip--banner .fr-wallet-chip__icon {
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 999px;
    font-size: 0.65rem;
}
.fr-wallet-chip--bar .fr-wallet-chip__amount,
.fr-wallet-chip--banner .fr-wallet-chip__amount {
    font-size: 0.78rem;
}
.fr-wallet-chip--bar .fr-wallet-chip__label,
.fr-wallet-chip--banner .fr-wallet-chip__label {
    font-size: 0.52rem;
}
.fr-wallet-chip--bar .fr-wallet-chip__caret,
.fr-wallet-chip--banner .fr-wallet-chip__caret {
    display: none;
}

.fr-wallet-chip--banner.fr-wallet-chip--ok .fr-wallet-chip__trigger {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.fr-wallet-chip--banner.fr-wallet-chip--ok .fr-wallet-chip__icon {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}
.fr-wallet-chip--banner.fr-wallet-chip--warn .fr-wallet-chip__trigger {
    background: rgba(251, 191, 36, 0.22);
    border-color: rgba(251, 191, 36, 0.45);
    color: #fffbeb;
}
.fr-wallet-chip--banner.fr-wallet-chip--warn .fr-wallet-chip__icon {
    background: rgba(251, 191, 36, 0.28);
    color: #fff;
}
.fr-wallet-chip--banner.fr-wallet-chip--danger .fr-wallet-chip__trigger {
    background: rgba(248, 113, 113, 0.24);
    border-color: rgba(252, 165, 165, 0.5);
    color: #fff;
}
.fr-wallet-chip--banner.fr-wallet-chip--danger .fr-wallet-chip__icon {
    background: rgba(248, 113, 113, 0.3);
    color: #fff;
}
.fr-wallet-chip--banner[open] .fr-wallet-chip__trigger {
    background: rgba(255, 255, 255, 0.22);
}

@media (max-width: 639px) {
    .fr-wallet-chip__label {
        display: none;
    }
    .fr-wallet-chip__amount {
        font-size: 0.86rem;
    }
}

/* -------------------------------------------------------------------------- */
/* Dashboard Soft polish — presentation only (no data/API changes)            */
/* -------------------------------------------------------------------------- */
.fr-dash-enterprise {
    --fr-dash-navy: #001a41;
    --fr-dash-navy-mid: #002966;
    --fr-dash-gold: #c4a35a;
    --fr-dash-muted: #605e5c;
    --fr-dash-border: #edebe9;
    --fr-dash-soft: #f3f2f1;
    --fr-dash-surface: #ffffff;
}

body:has(.fr-dash-enterprise) {
    background: #f3f2f1 !important;
}

.fr-dash-shell.fr-dash-enterprise {
    max-width: none;
}

.fr-dash-shell.fr-dash-enterprise > * + * {
    margin-top: 0;
}

.fr-dash-enterprise .fr-dash-panel,
.fr-dash-enterprise .fr-panel,
.fr-dash-enterprise .fr-chart-card,
.fr-dash-enterprise section.rounded-2xl.border.bg-white {
    border-radius: 12px !important;
    border-color: var(--fr-dash-border) !important;
    background: var(--fr-dash-surface) !important;
    box-shadow: 0 8px 28px rgba(0, 26, 65, 0.06) !important;
}

.fr-dash-enterprise .fr-dash-panel__kicker {
    color: var(--fr-dash-muted);
    letter-spacing: 0.1em;
}

.fr-dash-enterprise .fr-dash-panel__title {
    color: var(--fr-dash-navy);
    font-weight: 700;
}

.fr-dash-enterprise .fr-dash-insight-stat,
.fr-dash-enterprise .fr-dash-mini-card {
    border-radius: 10px;
    border: 1px solid var(--fr-dash-border);
    background: linear-gradient(165deg, #faf9f8 0%, #ffffff 70%);
    box-shadow: none;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.fr-dash-enterprise .fr-dash-insight-stat:hover,
.fr-dash-enterprise .fr-dash-mini-card:hover {
    border-color: rgba(0, 26, 65, 0.18);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -18px rgba(0, 26, 65, 0.28);
}

.fr-dash-enterprise .fr-dash-insight-stat__value,
.fr-dash-enterprise .fr-dash-mini-card__value {
    color: var(--fr-dash-navy);
    letter-spacing: -0.03em;
}

.fr-dash-enterprise .fr-dash-insight-stat__label,
.fr-dash-enterprise .fr-dash-mini-card__label {
    color: var(--fr-dash-muted);
}

.fr-dash-enterprise .fr-dash-insights__action {
    border-radius: 8px;
    border-color: var(--fr-dash-border);
    box-shadow: none;
}

.fr-dash-enterprise .fr-dash-insights__action:hover {
    border-color: rgba(0, 26, 65, 0.22);
    background: #f8fafc;
}

.fr-dash-enterprise .fr-chart-card {
    min-height: 300px;
}

.fr-dash-enterprise .fr-chart-card__head {
    background: linear-gradient(180deg, #faf9f8 0%, #ffffff 100%);
    border-bottom-color: var(--fr-dash-border);
}

.fr-dash-enterprise .fr-chart-card__title {
    color: var(--fr-dash-navy);
    font-weight: 700;
}

.fr-dash-enterprise .fr-chart-card__sub {
    color: var(--fr-dash-muted);
}

.fr-dash-enterprise .fr-dash-alert-pill {
    border-radius: 999px;
    font-weight: 650;
    box-shadow: none;
}

.fr-dash-enterprise .fr-dash-alert-pill:hover {
    box-shadow: 0 6px 16px -10px rgba(0, 26, 65, 0.28);
}

.fr-dash-enterprise .ncc-bridge-banner--enterprise.ncc-bridge-banner--compact {
    border-radius: 14px !important;
    box-shadow: 0 14px 36px -22px rgba(0, 26, 65, 0.45) !important;
}

.fr-dash-enterprise .fr-dash-quick-btn {
    border-radius: 8px;
    font-weight: 650;
}

.fr-dash-enterprise .fr-dash-quick-btn--primary {
    background: #ffffff;
    color: var(--fr-dash-navy);
    border: 1px solid rgba(255, 255, 255, 0.85);
}

.fr-dash-enterprise .fr-dash-quick-btn--ghost {
    backdrop-filter: blur(4px);
}

.fr-dash-enterprise .fr-dash-header__title--compact {
    font-weight: 900;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

/* Fee / transport / exam snapshot sections */
.fr-dash-enterprise section.rounded-2xl {
    padding: 1.25rem 1.35rem !important;
}

.fr-dash-enterprise section .text-\[11px\].font-bold.uppercase,
.fr-dash-enterprise section p.text-\[11px\].font-bold {
    color: var(--fr-dash-muted) !important;
    letter-spacing: 0.1em !important;
}

.fr-dash-enterprise section h2.text-lg.font-bold {
    color: var(--fr-dash-navy) !important;
    letter-spacing: -0.02em;
}

.fr-dash-enterprise a.px-3.py-2.rounded-lg,
.fr-dash-enterprise a.px-4.py-2.rounded-xl {
    border-radius: 8px !important;
    font-weight: 650 !important;
    transition: filter 0.15s ease, transform 0.15s ease;
}

.fr-dash-enterprise a.px-3.py-2.rounded-lg:hover,
.fr-dash-enterprise a.px-4.py-2.rounded-xl:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.fr-dash-enterprise a.bg-primary,
.fr-dash-enterprise a.bg-indigo-600,
.fr-dash-enterprise a.bg-emerald-600,
.fr-dash-enterprise a.bg-teal-600 {
    background: #001a41 !important;
    color: #fff !important;
    border-color: #001a41 !important;
}

.fr-dash-enterprise a.border.border-gray-200 {
    border-color: var(--fr-dash-border) !important;
    color: var(--fr-dash-navy) !important;
    background: #fff !important;
}

.fr-dash-enterprise a.border.border-gray-200:hover {
    background: #faf9f8 !important;
}

@media (max-width: 767px) {
    .fr-dash-shell.fr-dash-enterprise {
        padding-left: 0.85rem !important;
        padding-right: 0.85rem !important;
    }

    .fr-dash-enterprise .fr-dash-panel,
    .fr-dash-enterprise section.rounded-2xl.border.bg-white {
        border-radius: 10px !important;
    }
}

/* —— iOS large-title shell (matches student-directory premium ribbon) —— */
body:has(.fr-dash-shell--ios) {
    background: #f2f2f7 !important;
}
.fr-dash-shell--ios {
    font-family: Inter, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}
.fr-dash-shell--ios .fr-panel,
.fr-dash-shell--ios .fr-chart-card,
.fr-dash-shell--ios .fr-dash-panel,
.fr-dash-shell--ios section.rounded-2xl.border.bg-white {
    border: 0 !important;
    border-radius: 1.15rem !important;
    box-shadow: 0 0.5px 0 rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.04) !important;
}
.fr-dash-shell--ios .fr-dash-alert-pill {
    border-radius: 980px !important;
}
.fr-dash-shell--ios .fr-dash-panel__title,
.fr-dash-shell--ios section h2.text-lg.font-bold,
.fr-dash-shell--ios h1,
.fr-dash-shell--ios h2,
.fr-dash-shell--ios h3,
.fr-dash-shell--ios h4,
.fr-dash-shell--ios .fr-chart-card__title,
.fr-dash-shell--ios .fr-dash-header__title--compact,
.fr-dash-shell--ios .fr-dash-kpi-card__value,
.fr-dash-shell--ios .fr-dash-mini-card__value,
.fr-dash-shell--ios .fr-dash-insight-stat__value {
    font-family: Poppins, system-ui, sans-serif;
    letter-spacing: -0.015em !important;
}

/* -------------------------------------------------------------------------- */
/* Dashboard typography polish — FONTS ONLY (family / size / weight / spacing)  */
/* Smart-admin style: Inter body 14px, Poppins 600 headings, tabular metrics   */
/* -------------------------------------------------------------------------- */
body.fr-portal.fr-dash-nipunindia-fonts,
body.fr-portal.fr-dash-nipunindia-fonts .fr-dash-shell {
    font-size: 0.9375rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body.fr-portal.fr-dash-nipunindia-fonts .fr-dash-panel__title,
body.fr-portal.fr-dash-nipunindia-fonts section h2.text-lg.font-bold,
body.fr-portal.fr-dash-nipunindia-fonts .fr-dash-header__title--compact {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.015em !important;
    line-height: 1.35 !important;
}

body.fr-portal.fr-dash-nipunindia-fonts .fr-premium-ribbon--dashboard .fr-premium-ribbon__title,
body.fr-portal.fr-dash-nipunindia-fonts .fr-premium-ribbon--dashboard.fr-premium-ribbon--react .fr-premium-ribbon__title {
    font-family: Poppins, system-ui, sans-serif !important;
    font-size: clamp(2.15rem, 2.35vw + 0.95rem, 3.15rem) !important;
    font-weight: 900 !important;
    letter-spacing: -0.04em !important;
    line-height: 1.08 !important;
    text-align: center !important;
    white-space: normal !important;
}

@media (max-width: 768px) {
    body.fr-portal.fr-dash-nipunindia-fonts .fr-premium-ribbon--dashboard .fr-premium-ribbon__title,
    body.fr-portal.fr-dash-nipunindia-fonts .fr-premium-ribbon--dashboard.fr-premium-ribbon--react .fr-premium-ribbon__title {
        font-size: clamp(1.35rem, 5vw + 0.3rem, 1.95rem) !important;
        text-align: center !important;
    }
}

body.fr-portal.fr-dash-nipunindia-fonts .fr-dash-panel__kicker,
body.fr-portal.fr-dash-nipunindia-fonts section .text-\[11px\].font-bold,
body.fr-portal.fr-dash-nipunindia-fonts .text-\[11px\].font-bold.uppercase {
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    line-height: 1.35 !important;
}

body.fr-portal.fr-dash-nipunindia-fonts .fr-dash-kpi-card__label {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.03em !important;
    line-height: 1.35 !important;
}

body.fr-portal.fr-dash-nipunindia-fonts .fr-dash-kpi-card__value {
    font-size: 1.875rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.1 !important;
    font-variant-numeric: tabular-nums !important;
}

@media (min-width: 768px) {
    body.fr-portal.fr-dash-nipunindia-fonts .fr-dash-kpi-card__value {
        font-size: 2.125rem !important;
    }
}

body.fr-portal.fr-dash-nipunindia-fonts .fr-dash-kpi-card__desc {
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
}

body.fr-portal.fr-dash-nipunindia-fonts .fr-dash-kpi-card__link {
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
}

body.fr-portal.fr-dash-nipunindia-fonts .fr-dash-mini-card__label {
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em !important;
    line-height: 1.35 !important;
}

body.fr-portal.fr-dash-nipunindia-fonts .fr-dash-mini-card__value {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.15 !important;
    font-variant-numeric: tabular-nums !important;
}

body.fr-portal.fr-dash-nipunindia-fonts .fr-dash-mini-card__desc {
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
}

body.fr-portal.fr-dash-nipunindia-fonts .fr-chart-card__title {
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    line-height: 1.35 !important;
}

body.fr-portal.fr-dash-nipunindia-fonts .fr-chart-card__sub,
body.fr-portal.fr-dash-nipunindia-fonts section p.text-sm.text-gray-500 {
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
}

body.fr-portal.fr-dash-nipunindia-fonts .fr-gender-dist-card__title {
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    line-height: 1.35 !important;
}

body.fr-portal.fr-dash-nipunindia-fonts .fr-gender-dist-chart__center-label {
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
}

body.fr-portal.fr-dash-nipunindia-fonts .fr-gender-dist-chart__center-value {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.1 !important;
    font-variant-numeric: tabular-nums !important;
}

body.fr-portal.fr-dash-nipunindia-fonts .fr-gender-dist-legend li {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
}

body.fr-portal.fr-dash-nipunindia-fonts .fr-dash-cmd,
body.fr-portal.fr-dash-nipunindia-fonts .fr-dash-cmd-year-select {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    line-height: 1.25 !important;
}

body.fr-portal.fr-dash-nipunindia-fonts .fr-dash-timeline__title {
    font-size: 0.9375rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
}

body.fr-portal.fr-dash-nipunindia-fonts .fr-dash-timeline__detail,
body.fr-portal.fr-dash-nipunindia-fonts .fr-dash-timeline__time {
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
}

body.fr-portal.fr-dash-nipunindia-fonts .fr-dash-alert-pill {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}

body.fr-portal.fr-dash-nipunindia-fonts a.text-sm.font-semibold,
body.fr-portal.fr-dash-nipunindia-fonts a.px-4.py-2.rounded-xl {
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
}

/* Transport fleet — light card (5in−1cm × 4in+1.5cm) beside attendance */
.fr-dash-att-fleet-row,
.fr-dash-fleet-wrap,
.fr-fleet-card {
    --fr-fleet-w: calc(3.5in + 1.5in - 1cm);
    --fr-fleet-h: calc(4in + 1.5cm);
}

.fr-dash-att-fleet-row {
    display: grid;
    grid-template-columns: minmax(0, var(--fr-fleet-w)) minmax(0, 1fr);
    align-items: start;
    gap: 1rem;
    min-width: 0;
    margin-top: 0;
}

.fr-dash-att-fleet-row:not(:has(.fr-dash-fleet-wrap)) {
    grid-template-columns: 1fr;
}

.fr-dash-att-fleet-row .fr-chart-card {
    min-height: var(--fr-fleet-h);
    height: var(--fr-fleet-h);
}

.fr-dash-fleet-wrap {
    display: flex;
    justify-content: flex-start;
    margin: 0;
    min-width: 0;
    width: var(--fr-fleet-w);
    max-width: 100%;
    height: var(--fr-fleet-h);
}

.fr-dash-fleet-wrap--chart-slot {
    display: flex;
    flex-direction: column;
}

.fr-fleet-card {
    position: relative;
    box-sizing: border-box;
    width: var(--fr-fleet-w);
    height: var(--fr-fleet-h);
    max-width: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 0.7rem 0.75rem 0.6rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    color: #1e293b;
}

.fr-fleet-card__head {
    margin-bottom: 0.45rem;
    padding-right: 2rem;
    flex-shrink: 0;
}

.fr-fleet-card__kicker {
    margin: 0;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #94a3b8;
}

.fr-fleet-card__title {
    margin: 0.08rem 0 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: #002443;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.fr-fleet-card__settings {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: #5A8DEE;
    color: #fff;
    display: grid;
    place-items: center;
    text-decoration: none;
    box-shadow: 0 3px 8px rgba(90, 141, 238, 0.28);
    z-index: 2;
    font-size: 11px;
}

.fr-fleet-card__settings:hover {
    background: #4a7de0;
    color: #fff;
}

.fr-fleet-top-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

.fr-fleet-stat {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.38rem 0.25rem 0.32rem;
    background: #fff;
    text-align: center;
}

.fr-fleet-stat__value {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.fr-fleet-stat__value span {
    font-size: 0.68rem;
    font-weight: 700;
    color: #64748b;
}

.fr-fleet-stat__label {
    margin: 0.16rem 0 0;
    font-size: 9px;
    font-weight: 600;
    color: #94a3b8;
}

.fr-fleet-section {
    margin-bottom: 0.45rem;
    flex-shrink: 0;
}

.fr-fleet-section--util {
    margin-bottom: 0.4rem;
    margin-top: auto;
}

.fr-fleet-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    margin-bottom: 0.32rem;
}

.fr-fleet-section__head h3 {
    margin: 0;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}

.fr-fleet-section__head span {
    font-size: 9px;
    color: #94a3b8;
    font-weight: 600;
}

.fr-fleet-status-bar {
    display: flex;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: #e8eef5;
}

.fr-fleet-status-bar__seg.is-live { background: #28C76F; }
.fr-fleet-status-bar__seg.is-idle { background: #F5C518; }
.fr-fleet-status-bar__seg.is-service { background: #5A8DEE; }
.fr-fleet-status-bar__seg.is-offline { background: #94a3b8; }

.fr-fleet-legend {
    list-style: none;
    margin: 0.35rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.22rem 0.55rem;
    font-size: 9px;
    color: #64748b;
    font-weight: 600;
}

.fr-fleet-legend li {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
}

.fr-fleet-legend i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.fr-fleet-legend i.is-live { background: #28C76F; }
.fr-fleet-legend i.is-idle { background: #F5C518; }
.fr-fleet-legend i.is-service { background: #5A8DEE; }
.fr-fleet-legend i.is-offline { background: #94a3b8; }

.fr-fleet-rings {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.2rem;
    margin-bottom: 0.4rem;
    flex-shrink: 0;
}

.fr-fleet-donut {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.fr-fleet-donut__chart {
    position: relative;
    width: 100%;
    max-width: 58px;
    aspect-ratio: 1;
    margin: 0 auto;
}

.fr-fleet-donut__svg {
    width: 100%;
    height: 100%;
    display: block;
}

.fr-fleet-donut__center {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.fr-fleet-donut__center strong {
    font-size: 11px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.fr-fleet-donut__label {
    margin: 0.12rem 0 0;
    font-size: 9px;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.01em;
}

.fr-fleet-delta {
    font-size: 8px;
    font-weight: 700;
    white-space: nowrap;
}

.fr-fleet-delta.is-up { color: #28C76F; }
.fr-fleet-delta.is-down { color: #ef4444; }

.fr-fleet-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.28rem;
    height: 42px;
    padding: 0.28rem 0.35rem 0.12rem;
    background: #f3f7fc;
    border-radius: 8px;
}

.fr-fleet-bars span {
    flex: 1;
    min-width: 0;
    min-height: 6px;
    border-radius: 4px 4px 1px 1px;
    background: #5A8DEE;
}

.fr-fleet-drivers {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.38rem 0.55rem;
    background: #fff;
    flex-shrink: 0;
}

.fr-fleet-drivers__left {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
}

.fr-fleet-drivers__icon {
    color: #5A8DEE;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fr-fleet-drivers strong {
    font-size: 12px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

@media (max-width: 1023px) {
    .fr-dash-att-fleet-row {
        grid-template-columns: 1fr;
    }

    .fr-dash-fleet-wrap {
        width: var(--fr-fleet-w);
        max-width: 100%;
        height: var(--fr-fleet-h);
        margin: 0 auto;
    }
}

@media (max-width: 420px) {
    .fr-dash-fleet-wrap,
    .fr-fleet-card {
        width: 100%;
        height: auto;
        min-height: var(--fr-fleet-h);
        aspect-ratio: calc(5in - 1cm) / calc(4in + 1.5cm);
    }
}

/* -------------------------------------------------------------------------- */
/* Master visual polish v2 — look only. Same options, links, data, layout.    */
/* No backend / API / DB. Scoped to .fr-dash-enterprise / command bar.        */
/* -------------------------------------------------------------------------- */
body.fr-portal:has(.fr-dash-enterprise) {
    background:
        radial-gradient(1200px 480px at 8% -8%, color-mix(in srgb, var(--fr-primary, #003366) 10%, transparent), transparent 60%),
        radial-gradient(900px 420px at 92% 0%, rgba(196, 163, 90, 0.10), transparent 55%),
        linear-gradient(180deg, #eef1f6 0%, #f5f6f8 42%, #f3f2f1 100%) !important;
}

.fr-dash-shell.fr-dash-enterprise.fr-dash-shell--ios {
    --fr-dash-radius: 16px;
    --fr-dash-radius-sm: 12px;
    --fr-dash-ink: #0b1f3a;
    --fr-dash-line: rgba(15, 23, 42, 0.08);
    --fr-dash-elevate: 0 1px 0 rgba(255, 255, 255, 0.75) inset, 0 10px 30px -18px rgba(15, 23, 42, 0.28);
}

.fr-dash-shell.fr-dash-enterprise.fr-dash-shell--ios {
    gap: 0;
}

.fr-dash-shell.fr-dash-enterprise > section,
.fr-dash-shell.fr-dash-enterprise > .fr-dash-panel,
.fr-dash-shell.fr-dash-enterprise > .fr-panel {
    animation: frDashRise 0.45s ease both;
}

.fr-dash-shell.fr-dash-enterprise > *:nth-child(1) { animation-delay: 0.02s; }
.fr-dash-shell.fr-dash-enterprise > *:nth-child(2) { animation-delay: 0.05s; }
.fr-dash-shell.fr-dash-enterprise > *:nth-child(3) { animation-delay: 0.08s; }
.fr-dash-shell.fr-dash-enterprise > *:nth-child(4) { animation-delay: 0.11s; }
.fr-dash-shell.fr-dash-enterprise > *:nth-child(5) { animation-delay: 0.14s; }

@keyframes frDashRise {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .fr-dash-shell.fr-dash-enterprise > section,
    .fr-dash-shell.fr-dash-enterprise > .fr-dash-panel,
    .fr-dash-shell.fr-dash-enterprise > .fr-panel {
        animation: none !important;
    }
}

/* Command bar — sharper glass, clearer hierarchy */
body.fr-portal .fr-dash-command-bar.fr-panel-global-bar,
body.fr-portal #fr-panel-global-bar.fr-dash-command-bar {
    border-bottom: 1px solid color-mix(in srgb, var(--fr-primary, #003366) 14%, transparent) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.86) 100%) !important;
    backdrop-filter: blur(16px) saturate(1.2) !important;
    -webkit-backdrop-filter: blur(16px) saturate(1.2) !important;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 8px 24px -20px rgba(15, 23, 42, 0.45) !important;
}

.fr-dash-command-bar__track {
    max-width: 1520px;
    min-height: 3rem;
    padding: 0.45rem 1rem;
    gap: 0.4rem;
}

.fr-dash-cmd {
    height: 2.15rem;
    padding: 0 0.8rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    font-size: 0.8rem;
    font-weight: 650;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.fr-dash-cmd:hover {
    transform: translateY(-0.5px);
    border-color: color-mix(in srgb, var(--fr-primary, #003366) 32%, #e2e8f0);
    box-shadow: 0 6px 14px -12px rgba(15, 23, 42, 0.45);
}

.fr-dash-cmd--primary,
a.fr-dash-cmd[href*="fees-collect"] {
    background: color-mix(in srgb, var(--fr-primary, #003366) 92%, #000) !important;
    border-color: transparent !important;
    color: #fff !important;
}

.fr-dash-cmd--primary i,
a.fr-dash-cmd[href*="fees-collect"] i {
    color: #fff !important;
    opacity: 1;
}

a.fr-dash-cmd[href*="fees-collect"]:hover {
    filter: brightness(1.06);
    color: #fff !important;
}

/* KPI hero cards — richer depth, keep same labels/links */
.fr-dash-enterprise .fr-dash-kpi-card--hero,
.fr-dash-enterprise .fr-dash-kpi-card--smart {
    border-radius: var(--fr-dash-radius, 16px) !important;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.22) inset,
        0 14px 36px -18px rgba(15, 23, 42, 0.45) !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.fr-dash-enterprise .fr-dash-kpi-card--hero:hover,
.fr-dash-enterprise .fr-dash-kpi-card--smart:hover {
    transform: translateY(-2px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.28) inset,
        0 22px 40px -20px rgba(15, 23, 42, 0.5) !important;
    filter: saturate(1.04);
}

.fr-dash-enterprise .fr-dash-kpi-card__value {
    letter-spacing: -0.04em !important;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.fr-dash-enterprise .fr-dash-kpi-card__label {
    opacity: 0.92;
    letter-spacing: 0.02em;
}

.fr-dash-enterprise .fr-dash-kpi-card__link,
.fr-dash-enterprise .fr-dash-kpi-card__link--smart {
    backdrop-filter: blur(6px);
    border-radius: 999px;
    transition: background 0.15s ease, transform 0.15s ease;
}

.fr-dash-enterprise .fr-dash-kpi-card__link:hover,
.fr-dash-enterprise .fr-dash-kpi-card__link--smart:hover {
    transform: translateX(2px);
}

/* Panels / charts / snapshots — quieter chrome, clearer titles */
.fr-dash-enterprise .fr-dash-panel,
.fr-dash-enterprise .fr-panel,
.fr-dash-enterprise .fr-chart-card,
.fr-dash-enterprise section.rounded-2xl.border.bg-white,
.fr-dash-enterprise .fr-daily-fee-card,
.fr-dash-enterprise .fr-top-students-card,
.fr-dash-enterprise .fr-fleet-card {
    border-radius: var(--fr-dash-radius, 16px) !important;
    border: 1px solid var(--fr-dash-line, rgba(15, 23, 42, 0.08)) !important;
    box-shadow: var(--fr-dash-elevate) !important;
    background: rgba(255, 255, 255, 0.96) !important;
}

.fr-dash-enterprise .fr-dash-panel__kicker,
.fr-dash-enterprise .fr-dash-section-kicker,
.fr-dash-enterprise .ncc-bridge-banner__kicker {
    font-size: 0.68rem !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase;
    color: #64748b !important;
    font-weight: 700 !important;
}

.fr-dash-enterprise .fr-dash-panel__title,
.fr-dash-enterprise .fr-chart-card__title,
.fr-dash-enterprise .fr-daily-fee-card__title,
.fr-dash-enterprise .fr-top-students-card__title {
    color: var(--fr-dash-ink, #0b1f3a) !important;
    letter-spacing: -0.025em !important;
}

.fr-dash-enterprise .fr-chart-card__head {
    background: linear-gradient(180deg, #fbfcfe 0%, #ffffff 100%) !important;
}

.fr-dash-enterprise .fr-dash-insight-stat,
.fr-dash-enterprise .fr-dash-mini-card,
.fr-dash-enterprise .fr-dash-insights__fee-tile {
    border-radius: var(--fr-dash-radius-sm, 12px) !important;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.fr-dash-enterprise .fr-dash-insight-stat:hover,
.fr-dash-enterprise .fr-dash-mini-card:hover,
.fr-dash-enterprise .fr-dash-insights__fee-tile:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--fr-primary, #003366) 22%, #e2e8f0) !important;
    box-shadow: 0 14px 28px -20px rgba(15, 23, 42, 0.4) !important;
}

/* Alert strip — cleaner pills */
.fr-dash-alert-strip__inner {
    gap: 0.5rem;
}

.fr-dash-enterprise .fr-dash-alert-pill {
    padding: 0.55rem 0.9rem;
    border: 1px solid rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(8px);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fr-dash-enterprise .fr-dash-alert-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px -14px rgba(15, 23, 42, 0.35);
}

/* Ribbon hero — keep same title text, richer presence */
body.fr-portal.fr-dash-nipunindia-fonts .fr-premium-ribbon--dashboard {
    box-shadow: 0 18px 40px -28px rgba(0, 26, 65, 0.55) !important;
}

body.fr-portal.fr-dash-nipunindia-fonts .fr-premium-ribbon--dashboard .fr-premium-ribbon__title,
body.fr-portal.fr-dash-nipunindia-fonts h1.fr-premium-ribbon__title--hero {
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28) !important;
}

/* Dark theme parity */
html[data-erp-theme="dark"] body.fr-portal:has(.fr-dash-enterprise) {
    background:
        radial-gradient(1000px 420px at 10% -10%, color-mix(in srgb, var(--fr-primary, #3b82f6) 18%, transparent), transparent 55%),
        #0b1220 !important;
}

html[data-erp-theme="dark"] .fr-dash-enterprise .fr-dash-panel,
html[data-erp-theme="dark"] .fr-dash-enterprise .fr-panel,
html[data-erp-theme="dark"] .fr-dash-enterprise .fr-chart-card,
html[data-erp-theme="dark"] .fr-dash-enterprise section.rounded-2xl.border.bg-white {
    background: rgba(15, 23, 42, 0.88) !important;
    border-color: rgba(148, 163, 184, 0.16) !important;
    box-shadow: 0 12px 32px -20px rgba(0, 0, 0, 0.55) !important;
}

html[data-erp-theme="dark"] body.fr-portal .fr-dash-command-bar.fr-panel-global-bar {
    background: rgba(15, 23, 42, 0.88) !important;
    border-bottom-color: rgba(148, 163, 184, 0.14) !important;
}

/* -------------------------------------------------------------------------- */
/* Master visual polish v3 — deeper surfaces, still zero option/data changes  */
/* -------------------------------------------------------------------------- */

/* Section band titles */
.fr-dash-enterprise .fr-dash-band-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.fr-dash-enterprise .fr-dash-band-head__kicker {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #64748b;
}

.fr-dash-enterprise .fr-dash-band-head__title {
    margin: 0.15rem 0 0;
    font-size: 1.15rem !important;
    font-weight: 750 !important;
    letter-spacing: -0.03em !important;
    color: #0b1f3a !important;
}

.fr-dash-enterprise .fr-ui-chip {
    padding: 0.28rem 0.7rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
    font-size: 10px;
    letter-spacing: 0.06em;
}

.fr-dash-enterprise .fr-ui-chip--blue {
    background: color-mix(in srgb, var(--fr-primary, #003366) 8%, #fff);
    border-color: color-mix(in srgb, var(--fr-primary, #003366) 18%, #e2e8f0);
    color: var(--fr-primary, #003366);
}

/* Analytics cards */
.fr-dash-enterprise .fr-dash-analytics-grid {
    gap: 1rem;
}

.fr-dash-enterprise .fr-daily-fee-card,
.fr-dash-enterprise .fr-gender-dist-card,
.fr-dash-enterprise .fr-top-students-card,
.fr-dash-enterprise .fr-fleet-card {
    overflow: hidden;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.fr-dash-enterprise .fr-daily-fee-card:hover,
.fr-dash-enterprise .fr-gender-dist-card:hover,
.fr-dash-enterprise .fr-top-students-card:hover,
.fr-dash-enterprise .fr-fleet-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--fr-primary, #003366) 20%, #e2e8f0) !important;
    box-shadow: 0 18px 36px -22px rgba(15, 23, 42, 0.4) !important;
}

.fr-dash-enterprise .fr-daily-fee-card__head,
.fr-dash-enterprise .fr-top-students-card__head,
.fr-dash-enterprise .fr-gender-dist-card__head {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    padding: 0.85rem 1rem 0.7rem;
}

.fr-dash-enterprise .fr-daily-fee-card__title,
.fr-dash-enterprise .fr-top-students-card__title,
.fr-dash-enterprise .fr-gender-dist-card__title {
    font-size: 0.92rem !important;
    font-weight: 750 !important;
    color: #0b1f3a !important;
}

.fr-dash-enterprise .fr-top-students-row {
    border-radius: 10px;
    margin: 0 0.35rem;
    padding-left: 0.55rem;
    padding-right: 0.55rem;
    transition: background 0.12s ease;
}

.fr-dash-enterprise .fr-top-students-row:hover {
    background: color-mix(in srgb, var(--fr-primary, #003366) 5%, #fff);
}

.fr-dash-enterprise .fr-top-students-rank.is-1,
.fr-dash-enterprise .fr-top-students-rank.is-2,
.fr-dash-enterprise .fr-top-students-rank.is-3 {
    box-shadow: 0 4px 10px -6px rgba(15, 23, 42, 0.35);
}

/* Holiday calendar */
.fr-dash-enterprise .fr-dash-holiday-cal__cell {
    border-radius: 10px;
    transition: background 0.12s ease, transform 0.12s ease, box-shadow 0.12s ease;
}

.fr-dash-enterprise .fr-dash-holiday-cal__cell:not(.fr-dash-holiday-cal__cell--pad):hover {
    background: #f8fafc;
    transform: translateY(-1px);
}

.fr-dash-enterprise .fr-dash-holiday-cal__cell--today {
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--fr-primary, #003366) 55%, transparent);
    background: color-mix(in srgb, var(--fr-primary, #003366) 7%, #fff);
}

.fr-dash-enterprise .fr-dash-holiday-cal__cell--holiday {
    background: linear-gradient(160deg, #fff7ed 0%, #ffedd5 100%);
}

.fr-dash-enterprise .fr-dash-holiday-cal__nav-btn {
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    transition: background 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
}

a.fr-dash-holiday-cal__nav-btn:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--fr-primary, #003366) 28%, #e2e8f0);
    background: color-mix(in srgb, var(--fr-primary, #003366) 6%, #fff);
}

/* Insights quick actions */
.fr-dash-enterprise .fr-dash-insights__action {
    border-radius: 12px !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    background: #fff !important;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
    transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease !important;
}

.fr-dash-enterprise .fr-dash-insights__action:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--fr-primary, #003366) 24%, #e2e8f0) !important;
    box-shadow: 0 12px 24px -18px rgba(15, 23, 42, 0.4) !important;
    background: #fff !important;
}

.fr-dash-enterprise .fr-dash-insights__action--primary {
    background: color-mix(in srgb, var(--fr-primary, #003366) 8%, #fff) !important;
    border-color: color-mix(in srgb, var(--fr-primary, #003366) 22%, #e2e8f0) !important;
}

.fr-dash-enterprise .fr-dash-insights__fee-tile {
    background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%) !important;
}

.fr-dash-enterprise .fr-dash-insights__fee-tile-value {
    letter-spacing: -0.03em;
    color: #0b1f3a;
}

.fr-dash-enterprise .fr-dash-insights__live-pill {
    border-radius: 999px;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

/* Metric grid breathing room */
.fr-dash-enterprise .fr-dash-kpi-grid,
.fr-dash-enterprise .fr-dash-kpi-grid--smart {
    gap: 1rem !important;
}

.fr-dash-enterprise .fr-dash-kpi-grid--smart .fr-dash-kpi-card--smart {
    min-height: 6.75rem;
    border-radius: 16px !important;
}

.fr-dash-enterprise .fr-dash-kpi-grid--smart .fr-dash-kpi-card__value {
    font-size: 2rem !important;
    letter-spacing: -0.045em !important;
}

.fr-dash-enterprise .fr-dash-kpi-grid--smart .fr-dash-kpi-card__smart-icon {
    width: 3.6rem;
    height: 3.6rem;
    font-size: 2.25rem;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.12));
}

/* Snapshot / NCC sections */
.fr-dash-enterprise .ncc-bridge-banner--enterprise {
    overflow: hidden;
}

.fr-dash-enterprise .ncc-bridge-banner--enterprise.ncc-bridge-banner--compact {
    border: 1px solid rgba(15, 23, 42, 0.07) !important;
    box-shadow: 0 12px 30px -20px rgba(15, 23, 42, 0.35) !important;
}

/* Command year select */
.fr-dash-enterprise .fr-dash-cmd--year select,
.fr-dash-command-bar .fr-dash-cmd--year select {
    border: 0;
    background: transparent;
    font-weight: 700;
    font-size: 0.8rem;
    color: #0f172a;
    max-width: 8.5rem;
    cursor: pointer;
}

.fr-dash-command-bar .fr-dash-cmd--year:hover {
    background: color-mix(in srgb, var(--fr-primary, #003366) 7%, #fff);
}

/* Soft scrollbar on command track */
.fr-dash-command-bar__track::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--fr-primary, #003366) 28%, #cbd5e1);
    border-radius: 999px;
}

/* Mobile: keep density, slightly larger tap targets */
@media (max-width: 767px) {
    .fr-dash-command-bar__track {
        padding: 0.4rem 0.7rem;
        gap: 0.35rem;
    }
    .fr-dash-cmd {
        height: 2.25rem;
        font-size: 0.76rem;
    }
    .fr-dash-enterprise .fr-dash-band-head__title {
        font-size: 1.05rem !important;
    }
}

html[data-erp-theme="dark"] .fr-dash-enterprise .fr-dash-band-head__title,
html[data-erp-theme="dark"] .fr-dash-enterprise .fr-daily-fee-card__title,
html[data-erp-theme="dark"] .fr-dash-enterprise .fr-top-students-card__title {
    color: #e2e8f0 !important;
}

html[data-erp-theme="dark"] .fr-dash-enterprise .fr-daily-fee-card__head,
html[data-erp-theme="dark"] .fr-dash-enterprise .fr-top-students-card__head {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.6) 100%);
    border-bottom-color: rgba(148, 163, 184, 0.12);
}

html[data-erp-theme="dark"] .fr-dash-enterprise .fr-dash-insights__action,
html[data-erp-theme="dark"] .fr-dash-enterprise .fr-ui-chip {
    background: rgba(30, 41, 59, 0.9) !important;
    border-color: rgba(148, 163, 184, 0.16) !important;
    color: #e2e8f0;
}

/* ---- Standalone-look: Students by class + Calendar (pc widgets) ---- */
.fr-enroll-card {
    background: #fff !important;
    border: 1px solid rgba(91, 52, 214, 0.08) !important;
    border-radius: 16px !important;
    box-shadow: 0 6px 20px rgba(60, 40, 150, 0.07) !important;
}
.fr-enroll-card .fr-chart-card__title {
    font-weight: 800 !important;
    color: #241f47 !important;
    font-size: 15.5px !important;
}
.fr-enroll-card .fr-chart-card__sub {
    color: #7b7699 !important;
    font-size: 12.5px !important;
}
.fr-enroll-chip {
    margin-left: auto;
    background: #f4f4fb;
    color: #5b34d6;
    font-size: 11.5px;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 999px;
    white-space: nowrap;
}
.fr-enroll-card__body {
    padding-top: 0.45rem !important;
    padding-bottom: 0.25rem !important;
}
.fr-enroll-empty {
    margin: 0;
    font-size: 13px;
    color: #7b7699;
}
.fr-enroll-bars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px 28px;
}
.fr-enroll-bars__col {
    display: grid;
    gap: 10px;
    min-width: 0;
}
.fr-enroll-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 36px;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #6b6890;
    min-height: 1.35rem;
}
.fr-enroll-row__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fr-enroll-row__track {
    height: 12px;
    border-radius: 999px;
    background: #eceafc;
    overflow: hidden;
}
.fr-enroll-row__fill {
    display: block;
    height: 12px;
    border-radius: 999px;
    min-width: 0;
}
.fr-enroll-row__count {
    text-align: right;
    color: #241f47;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

/* Calendar — standalone flat purple look (same place) */
.fr-poster-cal--pc {
    --fr-poster-blue: #5b34d6;
    --fr-poster-blue-deep: #4325ab;
    --fr-poster-yellow: #ffb020;
    --fr-poster-red: #be185d;
    --fr-poster-ink: #241f47;
    max-width: none;
}
.fr-poster-cal--pc .fr-poster-cal__card {
    border-radius: 16px;
    border: 1px solid rgba(91, 52, 214, 0.08);
    box-shadow: 0 6px 20px rgba(60, 40, 150, 0.07);
    overflow: hidden;
    padding: 14px;
}
.fr-poster-cal--pc .fr-poster-cal__hero,
.fr-poster-cal--pc .fr-poster-cal__bar,
.fr-poster-cal--pc .fr-poster-cal__corner {
    display: none !important;
}
.fr-poster-cal--pc .fr-poster-cal__month-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0 0 10px;
    border-bottom: none;
    background: transparent;
}
.fr-poster-cal--pc .fr-poster-cal__month-label {
    flex: 1;
    text-align: left;
    font-size: 15.5px;
    font-weight: 800;
    color: #241f47;
    letter-spacing: -0.02em;
}
.fr-poster-cal--pc .fr-poster-cal__nav-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.fr-poster-cal--pc .fr-poster-cal__arrow {
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    background: #f4f4fb;
    color: #4a4470 !important;
    box-shadow: none;
    font-size: 0.65rem;
}
a.fr-poster-cal--pc .fr-poster-cal__arrow:hover,
.fr-poster-cal--pc a.fr-poster-cal__arrow:hover {
    background: #ede9ff;
    color: #5b34d6 !important;
}
.fr-poster-cal--pc .fr-poster-cal__body {
    padding: 0;
}
.fr-poster-cal--pc .fr-poster-cal__dow {
    color: #9a96b5;
    font-size: 11px;
    font-weight: 600;
}
.fr-poster-cal--pc .fr-poster-cal__dow--sun {
    color: #be185d;
}
.fr-poster-cal--pc .fr-poster-cal__cell {
    border-radius: 8px;
    background: #f8f8fd;
    min-height: 0;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    box-shadow: none;
}
.fr-poster-cal--pc .fr-poster-cal__day {
    font-size: 12.5px;
    font-weight: 700;
    color: #241f47;
}
.fr-poster-cal--pc .fr-poster-cal__cell--sun .fr-poster-cal__day {
    color: #be185d !important;
}
.fr-poster-cal--pc .fr-poster-cal__cell--holiday {
    background: #fff3e2;
}
.fr-poster-cal--pc .fr-poster-cal__cell--holiday .fr-poster-cal__day {
    color: #b45309 !important;
    font-weight: 700;
}
.fr-poster-cal--pc .fr-poster-cal__cell--today {
    background: #5b34d6 !important;
    box-shadow: none;
}
.fr-poster-cal--pc .fr-poster-cal__cell--today .fr-poster-cal__day {
    color: #fff !important;
    font-weight: 800;
}
.fr-poster-cal--pc .fr-poster-cal__events {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}
.fr-poster-cal--pc .fr-poster-cal__events-empty {
    margin: 0;
    font-size: 12.5px;
    color: #7b7699;
}
.fr-poster-cal--pc .fr-poster-cal__event {
    display: flex;
    gap: 10px;
    align-items: center;
    border-radius: 12px;
    padding: 9px 12px;
}
.fr-poster-cal--pc .fr-poster-cal__event--amber {
    background: #fff8ec;
}
.fr-poster-cal--pc .fr-poster-cal__event--violet {
    background: #f6f4ff;
}
.fr-poster-cal--pc .fr-poster-cal__event-day {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    color: #fff;
    font-weight: 800;
    font-size: 11px;
    display: grid;
    place-items: center;
    flex: none;
}
.fr-poster-cal--pc .fr-poster-cal__event--amber .fr-poster-cal__event-day {
    background: #f59e0b;
}
.fr-poster-cal--pc .fr-poster-cal__event--violet .fr-poster-cal__event-day {
    background: #5b34d6;
}
.fr-poster-cal--pc .fr-poster-cal__event-copy {
    font-size: 12.5px;
    min-width: 0;
}
.fr-poster-cal--pc .fr-poster-cal__event-copy strong {
    display: block;
    color: #241f47;
    font-weight: 700;
}
.fr-poster-cal--pc .fr-poster-cal__event-copy span {
    color: #7b7699;
}

/* Device matrix — dashboard cards/grids/tables */
body.fr-portal .fr-dash-shell,
body.fr-portal .fr-dash-shell--ios {
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
}

body.fr-portal .fr-dash-shell .grid > *,
body.fr-portal .fr-dash-kpi-card,
body.fr-portal .fr-dash-mini-card,
body.fr-portal .fr-chart-card {
    min-width: 0;
    max-width: 100%;
}

@media (min-width: 1441px) {
    body.fr-portal .fr-dash-shell .grid.lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1025px) and (max-width: 1440px) {
    body.fr-portal .fr-dash-shell .grid.lg\:grid-cols-4,
    body.fr-portal .fr-dash-shell .grid.md\:grid-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    body.fr-portal .fr-dash-shell .grid.md\:grid-cols-3,
    body.fr-portal .fr-dash-shell .grid.md\:grid-cols-4,
    body.fr-portal .fr-dash-shell .grid.lg\:grid-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 767px) {
    body.fr-portal .fr-dash-shell .grid,
    body.fr-portal .fr-dash-shell .grid.md\:grid-cols-2,
    body.fr-portal .fr-dash-shell .grid.md\:grid-cols-3,
    body.fr-portal .fr-dash-shell .grid.md\:grid-cols-4,
    body.fr-portal .fr-dash-shell .grid.lg\:grid-cols-4 {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    body.fr-portal .fr-dash-shell table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    body.fr-portal .fr-dash-shell .overflow-x-auto {
        max-width: 100%;
    }
}

/* ── Dashboard polish 2026-10-11 ───────────────────────────────────────── */

/* Daily fee collection: clear empty state instead of a flat chart. */
.fr-chart-empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    text-align: center;
    padding: 1rem;
}
.fr-chart-empty[hidden] { display: none; }
.fr-daily-fee-card__body { position: relative; }
.fr-chart-empty__icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 1.15rem;
    margin-bottom: .25rem;
}
.fr-chart-empty__title { font-size: .92rem; font-weight: 700; color: #1e293b; margin: 0; }
.fr-chart-empty__sub { font-size: .78rem; color: #64748b; margin: 0; }
.fr-chart-empty__cta {
    margin-top: .5rem;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .9rem;
    border-radius: 10px;
    background: #4f46e5;
    color: #fff !important;
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
}
.fr-chart-empty__cta:hover { background: #4338ca; }

/* Fee overview donut: collected % in the centre (legend sits below, ~34px). */
.fr-fee-pie-centre {
    position: absolute;
    inset: 0 0 34px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    text-align: center;
}
.fr-fee-pie-centre[hidden] { display: none; }
.fr-fee-pie-centre strong { font-size: 1.45rem; font-weight: 800; color: #1e293b; line-height: 1.1; }
.fr-fee-pie-centre span { font-size: .72rem; font-weight: 600; color: #64748b; }

/* Activity / toppers / calendar: equal-height columns on desktop (no empty gap under shorter cards). */
@media (min-width: 1100px) {
    .fr-dash-lists-grid { align-items: stretch; }
    .fr-dash-lists-grid > .fr-top-students-card,
    .fr-dash-lists-grid > .fr-dash-insights__timeline { height: 100%; }
    .fr-dash-lists-grid > .fr-top-students-card .fr-top-students-list {
        flex: 1 1 0;
        min-height: 0;
        max-height: none;
    }
}

/* Today's to-do strip */
.fr-dash-todo-label {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .2rem;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #475569;
}
.fr-dash-alert-pill__go { font-size: .65rem; opacity: .55; margin-left: .1rem; }
.fr-dash-alert-pill--rose { background: #fff1f2; border-color: #fecdd3; color: #9f1239; }
.fr-dash-alert-pill--green { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.fr-dash-alert-pill--blue { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }

/* ---- 2026-10 dashboard redesign: plain greeting header + pending-fees table ---- */
body.fr-portal .fr-dash-head {
    padding-top: 1rem;
    padding-bottom: 0.35rem;
}
body.fr-portal .fr-dash-head__title {
    margin: 0;
    font-size: clamp(1.25rem, 1.1vw + 0.9rem, 1.6rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.2 !important;
    color: #0f172a;
}
body.fr-portal .fr-dash-head__sub {
    margin: 0.25rem 0 0;
    font-size: 0.8125rem;
    color: #475569;
}
body.fr-portal .fr-dash-pending {
    padding: 0;
    overflow: hidden;
}
body.fr-portal .fr-dash-pending__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.5rem 1rem;
    padding: 1.1rem 1.25rem 0.6rem;
}
body.fr-portal .fr-dash-pending__link {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--fr-primary, #022248);
    text-decoration: none;
    white-space: nowrap;
}
body.fr-portal .fr-dash-pending__link:hover { text-decoration: underline; }
body.fr-portal .fr-dash-pending__scroll {
    max-width: 100%;
    overflow-x: auto;
}
body.fr-portal .fr-dash-pending__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}
body.fr-portal .fr-dash-pending__table th {
    text-align: left;
    padding: 0.55rem 1.25rem;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
    border-top: 1px solid #eef2f7;
    border-bottom: 1px solid #e5e9f2;
    white-space: nowrap;
}
body.fr-portal .fr-dash-pending__table td {
    padding: 0.7rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    white-space: nowrap;
}
body.fr-portal .fr-dash-pending__table .num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
body.fr-portal .fr-dash-pending__class {
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
}
body.fr-portal .fr-dash-pending__class:hover { color: var(--fr-primary, #022248); text-decoration: underline; }
body.fr-portal .fr-dash-pending__paid { color: #047857; font-weight: 600; }
body.fr-portal .fr-dash-pending__due { color: #be123c; font-weight: 800; }
body.fr-portal .fr-dash-pending__pct {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
}
body.fr-portal .fr-dash-pending__pct--low { background: #fff1f2; color: #9f1239; }
body.fr-portal .fr-dash-pending__pct--mid { background: #fff7ed; color: #9a3412; }
body.fr-portal .fr-dash-pending__pct--high { background: #ecfdf5; color: #065f46; }
body.fr-portal .fr-dash-pending__foot {
    margin: 0;
    padding: 0.6rem 1.25rem 0.9rem;
    font-size: 0.72rem;
    color: #64748b;
}
