﻿
.fee-nav-group {
    padding: 6px 15px 0;
    list-style: none;
}

.fee-submenu-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: #8f9bb3;
    font-weight: 600;
    padding-top: 10px;
}

.sidebar .sidebar-menu > ul > li > ul > li.submenu ul li a i {
    margin-right: 8px;
}

.fee-stat-card {
    background: linear-gradient(135deg,#ffffff 0%,#f7f9fc 100%);
    box-shadow: 0 10px 24px rgba(15,23,42,.05);
}

.filter-card, .panel-card, .fee-stat-card, .mini-stat, .fee-student-card, .report-chart-placeholder {
    border-radius: 14px;
}

.mini-stat {
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #edf2f7;
}

    .mini-stat span {
        display: block;
        color: #64748b;
        font-size: 12px;
        margin-bottom: 6px;
    }

.fee-summary-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #e5e7eb;
}

    .fee-summary-list li:last-child {
        border-bottom: none;
    }

.wizard-steps .step {
    padding: 12px 14px;
    border-radius: 10px;
    background: #f8fafc;
    margin-bottom: 10px;
    border: 1px solid #edf2f7;
    font-weight: 500;
}

    .wizard-steps .step.active {
        background: #fff4eb;
        border-color: #ff8b38;
        color: #ff6b00;
    }

.fee-table thead th, .table thead th {
    background: #f8fafc;
    font-weight: 600;
}

.fee-search {
    max-width: 220px;
}

.report-chart-placeholder {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: repeating-linear-gradient(45deg,#f8fafc,#f8fafc 10px,#eef2f7 10px,#eef2f7 20px);
    color: #64748b;
    border: 1px dashed #cbd5e1;
}

.fee-student-card {
    padding: 16px;
    border: 1px solid #edf2f7;
    border-radius: 14px;
    background: #f8fafc;
}

.page-title + nav .breadcrumb {
    font-size: 13px;
}

.card .card-header h5 {
    margin-bottom: 0;
}

.fee-hero {
    background: linear-gradient(135deg,#1e3a8a,#2563eb);
    color: #fff;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

    .fee-hero .card-body {
        padding: 24px;
    }

    .fee-hero small {
        color: rgba(255,255,255,.75);
    }

.fee-kpi-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,.12)
}

    .fee-kpi-list li:last-child {
        border-bottom: none
    }

.modal .form-label {
    font-weight: 500;
}

.fee-settings-card,
.onboarding-card {
    border: 1px solid #edf1f7;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.04);
}

    .fee-settings-card .card-body,
    .onboarding-card .card-body {
        padding-top: 20px;
    }

.feature-tile {
    border: 1px solid #e7ebf3;
    border-radius: 16px;
    padding: 18px 18px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    min-height: 122px;
    background: #fff;
}

    .feature-tile h6 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .feature-tile p {
        color: #6b7280;
        margin-bottom: 0;
        line-height: 1.6;
    }

    .feature-tile .form-check-input {
        width: 42px;
        height: 22px;
        margin-top: 2px;
    }

.onboarding-steps {
    position: relative;
}

    .onboarding-steps:before {
        content: "";
        position: absolute;
        left: 10px;
        top: 6px;
        bottom: 10px;
        width: 2px;
        background: #d9e1f3;
    }

.step-item {
    position: relative;
    padding-left: 36px;
    padding-bottom: 26px;
}

    .step-item:last-child {
        padding-bottom: 0;
    }

.step-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #c7d2fe;
    position: absolute;
    left: 4px;
    top: 6px;
    z-index: 1;
}

.step-item.active .step-dot {
    background: #4f46e5;
}

.step-content h6 {
    margin-bottom: 6px;
    font-size: 20px;
}

.step-content p {
    margin-bottom: 0;
    color: #5f6d7d;
    line-height: 1.6;
}

.summary-box {
    background: linear-gradient(180deg, #f8faff 0%, #f4f7ff 100%);
    border: 1px solid #e4eafe;
    border-radius: 16px;
    padding: 18px;
}

.summary-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6d75d3;
    margin-bottom: 8px;
}

.quick-checklist li {
    padding: 8px 0;
    color: #374151;
}

.form-actions-sticky {
    background: #fff;
}

.select2-container {
    width: 100% !important;
}

@media (max-width: 1399.98px) {
    .feature-tile {
        min-height: 132px;
    }
}

@media (max-width: 991.98px) {
    .onboarding-card {
        margin-top: 0;
    }
}


.page-hero-note {
    font-size: 13px;
    color: #6b7280;
}

.metric-card {
    border: 1px solid #edf1f7;
    border-radius: 18px;
    padding: 18px;
    background: #fff;
    min-height: 132px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

    .metric-card .metric-icon {
        width: 46px;
        height: 46px;
        border-radius: 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        margin-bottom: 16px;
    }

    .metric-card h3,
    .metric-card h4 {
        margin-bottom: 4px;
    }

    .metric-card p {
        margin-bottom: 0;
        color: #6b7280;
    }

.metric-trend {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    border-radius: 999px;
    padding: 6px 10px;
    margin-top: 14px;
}

    .metric-trend.up {
        background: #ecfdf3;
        color: #15803d;
    }

    .metric-trend.warn {
        background: #fff7ed;
        color: #c2410c;
    }

    .metric-trend.info {
        background: #eef2ff;
        color: #4338ca;
    }

.section-card,
.data-card,
.kpi-card,
.side-panel-card {
    border: 1px solid #edf1f7;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.04);
}

    .section-card .card-header,
    .data-card .card-header,
    .kpi-card .card-header,
    .side-panel-card .card-header {
        background: transparent;
    }

.filter-strip {
    background: #f8fbff;
    border: 1px solid #edf1f7;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
}

    .filter-strip .form-label {
        font-size: 13px;
        margin-bottom: 8px;
    }

.stat-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.stat-pill {
    border-radius: 999px;
    border: 1px solid #e7ebf3;
    background: #fff;
    padding: 8px 12px;
    font-size: 13px;
    color: #475569;
}

.table thead th {
    white-space: nowrap;
}

.page-actions-sticky {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding-top: 16px;
    z-index: 2;
}

.soft-box {
    background: linear-gradient(180deg, #f8faff 0%, #f6f9ff 100%);
    border: 1px solid #e7ebf3;
    border-radius: 16px;
    padding: 18px;
}

.summary-list li,
.step-checklist li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed #e5e7eb;
}

    .summary-list li:last-child,
    .step-checklist li:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .summary-list li:first-child,
    .step-checklist li:first-child {
        padding-top: 0;
    }

.fee-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 500;
}

    .fee-badge.primary {
        background: #eef2ff;
        color: #4338ca;
    }

    .fee-badge.success {
        background: #ecfdf3;
        color: #15803d;
    }

    .fee-badge.warning {
        background: #fff7ed;
        color: #c2410c;
    }

    .fee-badge.danger {
        background: #fef2f2;
        color: #b91c1c;
    }

.wizard-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wizard-step {
    border: 1px solid #e7ebf3;
    border-radius: 16px;
    padding: 14px 16px;
    background: #fff;
}

    .wizard-step.active {
        border-color: #6366f1;
        background: #f5f7ff;
    }

    .wizard-step h6 {
        margin-bottom: 6px;
    }

.tile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.mini-tile {
    border: 1px solid #e7ebf3;
    border-radius: 16px;
    padding: 16px;
    background: #fff;
}

    .mini-tile h6 {
        margin-bottom: 6px;
    }

    .mini-tile p {
        margin-bottom: 0;
        color: #6b7280;
    }

.empty-state {
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    color: #64748b;
    background: #fbfdff;
}

.timeline-list {
    position: relative;
    margin-left: 14px;
}

    .timeline-list:before {
        content: "";
        position: absolute;
        top: 6px;
        bottom: 8px;
        left: 0;
        width: 2px;
        background: #dbe4f0;
    }

.timeline-item {
    position: relative;
    padding-left: 26px;
    padding-bottom: 18px;
}

    .timeline-item:last-child {
        padding-bottom: 0;
    }

    .timeline-item:before {
        content: "";
        position: absolute;
        left: -6px;
        top: 5px;
        width: 14px;
        height: 14px;
        border-radius: 50%;
        background: #4f46e5;
    }

.tab-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-chip {
    border-radius: 999px;
    padding: 9px 14px;
    border: 1px solid #e7ebf3;
    background: #fff;
    color: #475569;
    font-weight: 500;
}

    .tab-chip.active {
        background: #eef2ff;
        border-color: #c7d2fe;
        color: #4338ca;
    }

.card-note {
    font-size: 13px;
    color: #64748b;
}

.allocation-row,
.split-row {
    background: #fbfdff;
    border: 1px solid #edf1f7;
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 12px;
}

.page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .tile-grid {
        grid-template-columns: 1fr;
    }
}


/** * New css for fee head */

.modal-feature-tile {
    min-height: 130px;
    padding: 16px;
}

.select2-container {
    width: 100% !important;
}

.workspace-layout .main-pane,
.workspace-layout .side-pane {
    transition: all .25s ease;
}

.workspace-layout.panel-hidden .main-pane {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
}

.workspace-layout.panel-hidden .side-pane {
    display: none !important;
}

.fee-heads-table thead th {
    white-space: nowrap;
    font-size: 13px;
}

.fee-heads-table tbody td {
    vertical-align: middle;
}

.fee-head-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 50px;
}

.fee-code {
    font-weight: 700;
    color: #4f46e5;
}

.fee-head-name {
    font-weight: 600;
}

.fee-head-sub {
    font-size: 12px;
    color: #6b7280;
}

.panel-mini-card {
    border-radius: 16px;
}

.delete-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #fff1f2;
    color: #ef4444;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

@media (max-width: 1399.98px) {
    .feature-tile {
        min-height: 132px;
    }
}

@media (max-width: 991.98px) {
    .side-pane {
        display: none !important;
    }

    .workspace-layout .main-pane {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
}


/* 22 June 2026 (this is temperory) Structure + layout for the Student Fee feature. Colors come from CSS variables with neutral fallbacks, so
   your SkoolWeb theme (light/dark) can override them by defining the --sf-* vars at :root. Map .btn / .sf-pill
   to your design system if you already have equivalents. */

.sf-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 1.5rem 1rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sf-page-head h1 {
    margin: 0 0 .25rem;
    font-size: 1.5rem;
}

.sf-page-head--row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.sf-sub {
    margin: 0;
    color: var(--sf-muted, #6b7280);
    font-size: .9rem;
}

    .sf-sub em {
        font-style: normal;
        opacity: .8;
    }

.sf-card {
    background: var(--sf-surface, #fff);
    border: 1px solid var(--sf-border, #e5e7eb);
    border-radius: 12px;
    padding: 1.25rem;
}

.sf-card-head {
    margin-bottom: 1rem;
}

    .sf-card-head h2 {
        margin: 0;
        font-size: 1.05rem;
    }

.sf-divider {
    border: 0;
    border-top: 1px solid var(--sf-border, #e5e7eb);
    margin: 1.25rem 0;
}

.sf-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    align-items: end;
}

.sf-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.sf-field {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    font-size: .85rem;
}

.sf-field--wide {
    grid-column: 1 / -1;
}

.sf-field--action {
    align-self: end;
}

.sf-field > span {
    color: var(--sf-muted, #6b7280);
}

.sf-field input, .sf-field select, .sf-field textarea {
    padding: .55rem .65rem;
    border: 1px solid var(--sf-border, #d1d5db);
    border-radius: 8px;
    background: var(--sf-input, #fff);
    color: inherit;
    font: inherit;
}

    .sf-field input:focus, .sf-field select:focus, .sf-field textarea:focus {
        outline: 2px solid var(--sf-accent, #2563eb);
        outline-offset: 1px;
        border-color: transparent;
    }

.sf-actions {
    display: flex;
    gap: .5rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.btn {
    padding: .55rem .9rem;
    border: 1px solid var(--sf-border, #d1d5db);
    border-radius: 8px;
    background: var(--sf-surface, #fff);
    color: inherit;
    font: inherit;
    cursor: pointer;
}

    .btn:disabled {
        opacity: .5;
        cursor: not-allowed;
    }

.btn--primary {
    background: var(--sf-accent, #2563eb);
    border-color: transparent;
    color: #fff;
}

.btn--danger {
    background: var(--sf-danger, #dc2626);
    border-color: transparent;
    color: #fff;
}

.btn--link {
    border: 0;
    background: transparent;
    color: var(--sf-accent, #2563eb);
    padding-left: 0;
    padding-right: 0;
}

.sf-table-wrap {
    overflow-x: auto;
}

.sf-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}

    .sf-table th, .sf-table td {
        text-align: left;
        padding: .6rem .65rem;
        border-bottom: 1px solid var(--sf-border, #eef0f3);
    }

    .sf-table th {
        color: var(--sf-muted, #6b7280);
        font-weight: 600;
    }

.sf-col-actions {
    text-align: right;
    white-space: nowrap;
}

    .sf-col-actions .btn {
        margin-left: .4rem;
    }

.sf-table-state {
    text-align: center;
    color: var(--sf-muted, #6b7280);
    padding: 1.5rem;
}

.sf-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding-top: 1rem;
}

.sf-pager-label {
    color: var(--sf-muted, #6b7280);
    font-size: .85rem;
}

.sf-pill {
    display: inline-block;
    padding: .15rem .55rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    background: var(--sf-pill-bg, #f3f4f6);
    color: var(--sf-pill-fg, #374151);
}

.sf-pill--active, .sf-pill--approved {
    background: #dcfce7;
    color: #166534;
}

.sf-pill--ended, .sf-pill--rejected, .sf-pill--revoked {
    background: #fee2e2;
    color: #991b1b;
}

.sf-pill--pending {
    background: #fef9c3;
    color: #854d0e;
}

.sf-banner {
    padding: .7rem .9rem;
    border-radius: 8px;
    font-size: .9rem;
}

.sf-banner--ok {
    background: #dcfce7;
    color: #166534;
}

.sf-banner--error {
    background: #fee2e2;
    color: #991b1b;
}

.sf-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 50;
}

.sf-modal {
    background: var(--sf-surface, #fff);
    border-radius: 12px;
    padding: 1.25rem;
    width: min(420px, 100%);
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

    .sf-modal h2 {
        margin: 0;
        font-size: 1.1rem;
    }

@media (prefers-reduced-motion: no-preference) {
    .btn {
        transition: opacity .15s ease;
    }
}
